@iblai/iblai-api 4.2.1-ai-plus → 4.3.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.
Files changed (104) hide show
  1. package/dist/index.cjs.js +43 -1507
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +44 -1506
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +43 -1507
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +1 -44
  8. package/dist/types/models/{Provider637Enum.d.ts → ProviderEnum.d.ts} +1 -1
  9. package/dist/types/models/UserMemoryEntry.d.ts +1 -1
  10. package/dist/types/models/Voice.d.ts +2 -2
  11. package/dist/types/services/AiAccountService.d.ts +26 -83
  12. package/package.json +1 -1
  13. package/src/core/OpenAPI.ts +1 -1
  14. package/src/index.ts +1 -44
  15. package/src/models/{Provider637Enum.ts → ProviderEnum.ts} +1 -1
  16. package/src/models/UserMemoryEntry.ts +1 -1
  17. package/src/models/Voice.ts +2 -2
  18. package/src/services/AiAccountService.ts +38 -127
  19. package/dist/types/models/APITokenCost.d.ts +0 -14
  20. package/dist/types/models/Bot.d.ts +0 -15
  21. package/dist/types/models/BotCommand.d.ts +0 -6
  22. package/dist/types/models/BotCreate.d.ts +0 -12
  23. package/dist/types/models/DataSet.d.ts +0 -21
  24. package/dist/types/models/DataSetCreate.d.ts +0 -12
  25. package/dist/types/models/DataSetStatusEnum.d.ts +0 -12
  26. package/dist/types/models/DiscordConfig.d.ts +0 -7
  27. package/dist/types/models/DiscordUserConfig.d.ts +0 -10
  28. package/dist/types/models/DiscordWebhook.d.ts +0 -6
  29. package/dist/types/models/IBLAIPlatformMeta.d.ts +0 -3
  30. package/dist/types/models/IBLAIPlatformMetaRequest.d.ts +0 -6
  31. package/dist/types/models/IBLAIPlatformMetaUpdateRequest.d.ts +0 -10
  32. package/dist/types/models/PaginatedDataSetList.d.ts +0 -7
  33. package/dist/types/models/PaginatedTrainingList.d.ts +0 -7
  34. package/dist/types/models/PatchedBotCommand.d.ts +0 -6
  35. package/dist/types/models/PatchedBotCreate.d.ts +0 -12
  36. package/dist/types/models/PatchedDataSet.d.ts +0 -21
  37. package/dist/types/models/PatchedDiscordConfig.d.ts +0 -7
  38. package/dist/types/models/PatchedDiscordUserConfig.d.ts +0 -10
  39. package/dist/types/models/PatchedSlackConfig.d.ts +0 -8
  40. package/dist/types/models/PatchedSlackUserConfig.d.ts +0 -17
  41. package/dist/types/models/PatchedTeamsConfig.d.ts +0 -7
  42. package/dist/types/models/PatchedTrainingCreate.d.ts +0 -31
  43. package/dist/types/models/PatchedWebexConfig.d.ts +0 -10
  44. package/dist/types/models/PatchedWhatsappConfig.d.ts +0 -11
  45. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +0 -10
  46. package/dist/types/models/Provider05cEnum.d.ts +0 -14
  47. package/dist/types/models/Provider63aEnum.d.ts +0 -6
  48. package/dist/types/models/SlackConfig.d.ts +0 -8
  49. package/dist/types/models/SlackUserConfig.d.ts +0 -17
  50. package/dist/types/models/SlackWebhook.d.ts +0 -6
  51. package/dist/types/models/TeamsConfig.d.ts +0 -7
  52. package/dist/types/models/TeamsWebhook.d.ts +0 -17
  53. package/dist/types/models/Training.d.ts +0 -41
  54. package/dist/types/models/TrainingCreate.d.ts +0 -31
  55. package/dist/types/models/WebexConfig.d.ts +0 -10
  56. package/dist/types/models/WebexWebhook.d.ts +0 -4
  57. package/dist/types/models/WhatAppWebHook.d.ts +0 -3
  58. package/dist/types/models/WhatsappConfig.d.ts +0 -11
  59. package/dist/types/models/WhatsappUserConfig.d.ts +0 -10
  60. package/dist/types/services/AiBotService.d.ts +0 -642
  61. package/dist/types/services/AiFinetuningService.d.ts +0 -232
  62. package/src/models/APITokenCost.ts +0 -19
  63. package/src/models/Bot.ts +0 -20
  64. package/src/models/BotCommand.ts +0 -11
  65. package/src/models/BotCreate.ts +0 -17
  66. package/src/models/DataSet.ts +0 -26
  67. package/src/models/DataSetCreate.ts +0 -17
  68. package/src/models/DataSetStatusEnum.ts +0 -16
  69. package/src/models/DiscordConfig.ts +0 -12
  70. package/src/models/DiscordUserConfig.ts +0 -15
  71. package/src/models/DiscordWebhook.ts +0 -11
  72. package/src/models/IBLAIPlatformMeta.ts +0 -8
  73. package/src/models/IBLAIPlatformMetaRequest.ts +0 -11
  74. package/src/models/IBLAIPlatformMetaUpdateRequest.ts +0 -15
  75. package/src/models/PaginatedDataSetList.ts +0 -12
  76. package/src/models/PaginatedTrainingList.ts +0 -12
  77. package/src/models/PatchedBotCommand.ts +0 -11
  78. package/src/models/PatchedBotCreate.ts +0 -17
  79. package/src/models/PatchedDataSet.ts +0 -26
  80. package/src/models/PatchedDiscordConfig.ts +0 -12
  81. package/src/models/PatchedDiscordUserConfig.ts +0 -15
  82. package/src/models/PatchedSlackConfig.ts +0 -13
  83. package/src/models/PatchedSlackUserConfig.ts +0 -22
  84. package/src/models/PatchedTeamsConfig.ts +0 -12
  85. package/src/models/PatchedTrainingCreate.ts +0 -36
  86. package/src/models/PatchedWebexConfig.ts +0 -15
  87. package/src/models/PatchedWhatsappConfig.ts +0 -16
  88. package/src/models/PatchedWhatsappUserConfig.ts +0 -15
  89. package/src/models/Provider05cEnum.ts +0 -18
  90. package/src/models/Provider63aEnum.ts +0 -10
  91. package/src/models/SlackConfig.ts +0 -13
  92. package/src/models/SlackUserConfig.ts +0 -22
  93. package/src/models/SlackWebhook.ts +0 -11
  94. package/src/models/TeamsConfig.ts +0 -12
  95. package/src/models/TeamsWebhook.ts +0 -22
  96. package/src/models/Training.ts +0 -46
  97. package/src/models/TrainingCreate.ts +0 -36
  98. package/src/models/WebexConfig.ts +0 -15
  99. package/src/models/WebexWebhook.ts +0 -9
  100. package/src/models/WhatAppWebHook.ts +0 -8
  101. package/src/models/WhatsappConfig.ts +0 -16
  102. package/src/models/WhatsappUserConfig.ts +0 -15
  103. package/src/services/AiBotService.ts +0 -1330
  104. package/src/services/AiFinetuningService.ts +0 -472
package/src/index.ts CHANGED
@@ -22,7 +22,6 @@ export type { AIUserProfileRequest } from './models/AIUserProfileRequest';
22
22
  export { AlignMentorBubbleEnum } from './models/AlignMentorBubbleEnum';
23
23
  export type { AnalyticsOverview } from './models/AnalyticsOverview';
24
24
  export type { Answer } from './models/Answer';
25
- export type { APITokenCost } from './models/APITokenCost';
26
25
  export type { App } from './models/App';
27
26
  export type { AppleSubscriptionStatusRequest } from './models/AppleSubscriptionStatusRequest';
28
27
  export type { AppleSubscriptionStatusView } from './models/AppleSubscriptionStatusView';
@@ -48,9 +47,6 @@ export { BlankEnum } from './models/BlankEnum';
48
47
  export type { BlankPlatformInvitationCreate } from './models/BlankPlatformInvitationCreate';
49
48
  export type { BlankProgramInvitationCreate } from './models/BlankProgramInvitationCreate';
50
49
  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
50
  export type { BulkCourseInvitationCreate } from './models/BulkCourseInvitationCreate';
55
51
  export type { BulkCourseInvitationResponse } from './models/BulkCourseInvitationResponse';
56
52
  export type { BulkCreateAssertion } from './models/BulkCreateAssertion';
@@ -143,9 +139,6 @@ export type { Credential } from './models/Credential';
143
139
  export type { CredentialRequest } from './models/CredentialRequest';
144
140
  export type { CrontabSchedule } from './models/CrontabSchedule';
145
141
  export type { CustomInstructionResponse } from './models/CustomInstructionResponse';
146
- export type { DataSet } from './models/DataSet';
147
- export type { DataSetCreate } from './models/DataSetCreate';
148
- export { DataSetStatusEnum } from './models/DataSetStatusEnum';
149
142
  export type { DateRange } from './models/DateRange';
150
143
  export type { DesiredRole } from './models/DesiredRole';
151
144
  export type { DesiredRoleCreateUpdateRequest } from './models/DesiredRoleCreateUpdateRequest';
@@ -154,9 +147,6 @@ export type { DesiredSkillCreateUpdateRequest } from './models/DesiredSkillCreat
154
147
  export type { DetailedGradeSubsection } from './models/DetailedGradeSubsection';
155
148
  export type { DetailedGradeView } from './models/DetailedGradeView';
156
149
  export type { DetailedGradeViewData } from './models/DetailedGradeViewData';
157
- export type { DiscordConfig } from './models/DiscordConfig';
158
- export type { DiscordUserConfig } from './models/DiscordUserConfig';
159
- export type { DiscordWebhook } from './models/DiscordWebhook';
160
150
  export type { Document } from './models/Document';
161
151
  export type { DocumentFacet } from './models/DocumentFacet';
162
152
  export type { DocumentSearchResponse } from './models/DocumentSearchResponse';
@@ -198,9 +188,6 @@ export type { HeygenVideoDetail } from './models/HeygenVideoDetail';
198
188
  export type { HeygenVideoRequest } from './models/HeygenVideoRequest';
199
189
  export type { HumanSupportTicket } from './models/HumanSupportTicket';
200
190
  export { HumanSupportTicketStatusEnum } from './models/HumanSupportTicketStatusEnum';
201
- export type { IBLAIPlatformMeta } from './models/IBLAIPlatformMeta';
202
- export type { IBLAIPlatformMetaRequest } from './models/IBLAIPlatformMetaRequest';
203
- export type { IBLAIPlatformMetaUpdateRequest } from './models/IBLAIPlatformMetaUpdateRequest';
204
191
  export type { ImageUpload } from './models/ImageUpload';
205
192
  export type { InputQuestion } from './models/InputQuestion';
206
193
  export type { Institution } from './models/Institution';
@@ -310,7 +297,6 @@ export type { PaginatedCourseLicense } from './models/PaginatedCourseLicense';
310
297
  export type { PaginatedCourseLicenseAssignment } from './models/PaginatedCourseLicenseAssignment';
311
298
  export type { PaginatedCourseLicenseGroupAssignment } from './models/PaginatedCourseLicenseGroupAssignment';
312
299
  export type { PaginatedCourseSuggestion } from './models/PaginatedCourseSuggestion';
313
- export type { PaginatedDataSetList } from './models/PaginatedDataSetList';
314
300
  export type { PaginatedEdxCourseList } from './models/PaginatedEdxCourseList';
315
301
  export type { PaginatedEmailPromptListList } from './models/PaginatedEmailPromptListList';
316
302
  export type { PaginatedHeygenMarketingVideoListList } from './models/PaginatedHeygenMarketingVideoListList';
@@ -344,7 +330,6 @@ export type { PaginatedSubSectionList } from './models/PaginatedSubSectionList';
344
330
  export type { PaginatedTicketMessageList } from './models/PaginatedTicketMessageList';
345
331
  export type { PaginatedTopicStatisticsResponse } from './models/PaginatedTopicStatisticsResponse';
346
332
  export type { PaginatedTraceList } from './models/PaginatedTraceList';
347
- export type { PaginatedTrainingList } from './models/PaginatedTrainingList';
348
333
  export type { PaginatedUnitList } from './models/PaginatedUnitList';
349
334
  export type { PaginatedUserAppList } from './models/PaginatedUserAppList';
350
335
  export type { PaginatedUserEdxMemoryList } from './models/PaginatedUserEdxMemoryList';
@@ -354,15 +339,10 @@ export type { PaginatedUserLicenseGroupAssignment } from './models/PaginatedUser
354
339
  export type { PaginatedUserMemoryList } from './models/PaginatedUserMemoryList';
355
340
  export type { PaginatedVoiceList } from './models/PaginatedVoiceList';
356
341
  export type { Pagination } from './models/Pagination';
357
- export type { PatchedBotCommand } from './models/PatchedBotCommand';
358
- export type { PatchedBotCreate } from './models/PatchedBotCreate';
359
342
  export type { PatchedCallConfiguration } from './models/PatchedCallConfiguration';
360
343
  export type { PatchedConversations } from './models/PatchedConversations';
361
344
  export type { PatchedCourseCreationTaskFile } from './models/PatchedCourseCreationTaskFile';
362
345
  export type { PatchedCredentialRequest } from './models/PatchedCredentialRequest';
363
- export type { PatchedDataSet } from './models/PatchedDataSet';
364
- export type { PatchedDiscordConfig } from './models/PatchedDiscordConfig';
365
- export type { PatchedDiscordUserConfig } from './models/PatchedDiscordUserConfig';
366
346
  export type { PatchedHumanSupportTicket } from './models/PatchedHumanSupportTicket';
367
347
  export type { PatchedLLMCredentialRequest } from './models/PatchedLLMCredentialRequest';
368
348
  export type { PatchedMCPServer } from './models/PatchedMCPServer';
@@ -379,16 +359,9 @@ export type { PatchedRbacPolicy } from './models/PatchedRbacPolicy';
379
359
  export type { PatchedRbacRole } from './models/PatchedRbacRole';
380
360
  export type { PatchedSection } from './models/PatchedSection';
381
361
  export type { PatchedSkillThreshold } from './models/PatchedSkillThreshold';
382
- export type { PatchedSlackConfig } from './models/PatchedSlackConfig';
383
- export type { PatchedSlackUserConfig } from './models/PatchedSlackUserConfig';
384
362
  export type { PatchedSubSection } from './models/PatchedSubSection';
385
- export type { PatchedTeamsConfig } from './models/PatchedTeamsConfig';
386
363
  export type { PatchedTicketMessage } from './models/PatchedTicketMessage';
387
- export type { PatchedTrainingCreate } from './models/PatchedTrainingCreate';
388
364
  export type { PatchedUnit } from './models/PatchedUnit';
389
- export type { PatchedWebexConfig } from './models/PatchedWebexConfig';
390
- export type { PatchedWhatsappConfig } from './models/PatchedWhatsappConfig';
391
- export type { PatchedWhatsappUserConfig } from './models/PatchedWhatsappUserConfig';
392
365
  export type { Pathway } from './models/Pathway';
393
366
  export type { PathwayCompletionResponse } from './models/PathwayCompletionResponse';
394
367
  export type { PathwayCreateUpdateRequest } from './models/PathwayCreateUpdateRequest';
@@ -491,9 +464,7 @@ export type { PromptCategory } from './models/PromptCategory';
491
464
  export type { PromptFacet } from './models/PromptFacet';
492
465
  export type { PromptSearchResponse } from './models/PromptSearchResponse';
493
466
  export { PromptVisibilityEnum } from './models/PromptVisibilityEnum';
494
- export { Provider05cEnum } from './models/Provider05cEnum';
495
- export { Provider637Enum } from './models/Provider637Enum';
496
- export { Provider63aEnum } from './models/Provider63aEnum';
467
+ export { ProviderEnum } from './models/ProviderEnum';
497
468
  export type { QuestionCardTag } from './models/QuestionCardTag';
498
469
  export type { QuestionRequest } from './models/QuestionRequest';
499
470
  export type { QuestionResponse } from './models/QuestionResponse';
@@ -565,9 +536,6 @@ export type { SkillCreateUpdateRequest } from './models/SkillCreateUpdateRequest
565
536
  export type { SkillDetail } from './models/SkillDetail';
566
537
  export type { SkillInfo } from './models/SkillInfo';
567
538
  export type { SkillThreshold } from './models/SkillThreshold';
568
- export type { SlackConfig } from './models/SlackConfig';
569
- export type { SlackUserConfig } from './models/SlackUserConfig';
570
- export type { SlackWebhook } from './models/SlackWebhook';
571
539
  export type { SpacedRepetitionLearningPath } from './models/SpacedRepetitionLearningPath';
572
540
  export type { SpacedRepetitionQuestionStats } from './models/SpacedRepetitionQuestionStats';
573
541
  export type { StarMentor } from './models/StarMentor';
@@ -595,8 +563,6 @@ export type { SubTimeChild } from './models/SubTimeChild';
595
563
  export type { TagsView } from './models/TagsView';
596
564
  export { TargetSystemEnum } from './models/TargetSystemEnum';
597
565
  export type { TaskView } from './models/TaskView';
598
- export type { TeamsConfig } from './models/TeamsConfig';
599
- export type { TeamsWebhook } from './models/TeamsWebhook';
600
566
  export type { TemplateMentor } from './models/TemplateMentor';
601
567
  export type { TenantLaunchError } from './models/TenantLaunchError';
602
568
  export type { TenantLaunchFailed } from './models/TenantLaunchFailed';
@@ -632,8 +598,6 @@ export type { TrainChatSessionDocumentView } from './models/TrainChatSessionDocu
632
598
  export type { TrainChatSessionDocumentViewRequest } from './models/TrainChatSessionDocumentViewRequest';
633
599
  export type { TrainDocumentViewRequest } from './models/TrainDocumentViewRequest';
634
600
  export type { TrainDocumentViewResponse } from './models/TrainDocumentViewResponse';
635
- export type { Training } from './models/Training';
636
- export type { TrainingCreate } from './models/TrainingCreate';
637
601
  export { TrainingStatusEnum } from './models/TrainingStatusEnum';
638
602
  export { TransportEnum } from './models/TransportEnum';
639
603
  export type { TrendEntry } from './models/TrendEntry';
@@ -709,20 +673,13 @@ export type { WatchedVideosPerCourse } from './models/WatchedVideosPerCourse';
709
673
  export type { WatchedVideosPerCourseData } from './models/WatchedVideosPerCourseData';
710
674
  export type { WatchedVideosPerUser } from './models/WatchedVideosPerUser';
711
675
  export type { WatchedVideosPerUserData } from './models/WatchedVideosPerUserData';
712
- export type { WebexConfig } from './models/WebexConfig';
713
- export type { WebexWebhook } from './models/WebexWebhook';
714
676
  export type { WebResource } from './models/WebResource';
715
677
  export type { WebResourceCard } from './models/WebResourceCard';
716
678
  export type { WebResourcesQuery } from './models/WebResourcesQuery';
717
- export type { WhatAppWebHook } from './models/WhatAppWebHook';
718
- export type { WhatsappConfig } from './models/WhatsappConfig';
719
- export type { WhatsappUserConfig } from './models/WhatsappUserConfig';
720
679
  export type { WhitelistedDomain } from './models/WhitelistedDomain';
721
680
 
722
681
  export { AiAccountService } from './services/AiAccountService';
723
682
  export { AiAnalyticsService } from './services/AiAnalyticsService';
724
- export { AiBotService } from './services/AiBotService';
725
- export { AiFinetuningService } from './services/AiFinetuningService';
726
683
  export { AiIndexService } from './services/AiIndexService';
727
684
  export { AiMarketingService } from './services/AiMarketingService';
728
685
  export { AiMediaService } from './services/AiMediaService';
@@ -7,7 +7,7 @@
7
7
  * * `google` - Google
8
8
  * * `elevenlabs` - Elevenlabs
9
9
  */
10
- export enum Provider637Enum {
10
+ export enum ProviderEnum {
11
11
  OPENAI = 'openai',
12
12
  GOOGLE = 'google',
13
13
  ELEVENLABS = 'elevenlabs',
@@ -4,7 +4,7 @@
4
4
  /* eslint-disable */
5
5
  export type UserMemoryEntry = {
6
6
  key: string;
7
- value?: string | null;
7
+ value?: string;
8
8
  readonly inserted_at: string;
9
9
  readonly updated_at: string;
10
10
  readonly expires_at: string | null;
@@ -2,11 +2,11 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
- import type { Provider637Enum } from './Provider637Enum';
5
+ import type { ProviderEnum } from './ProviderEnum';
6
6
  export type Voice = {
7
7
  readonly id: number;
8
8
  name: string;
9
- provider: Provider637Enum;
9
+ provider: ProviderEnum;
10
10
  language?: string;
11
11
  description?: string;
12
12
  readonly audio_url: string;
@@ -2,11 +2,7 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
- import type { APITokenCost } from '../models/APITokenCost';
6
5
  import type { CredentialRequest } from '../models/CredentialRequest';
7
- import type { IBLAIPlatformMeta } from '../models/IBLAIPlatformMeta';
8
- import type { IBLAIPlatformMetaRequest } from '../models/IBLAIPlatformMetaRequest';
9
- import type { IBLAIPlatformMetaUpdateRequest } from '../models/IBLAIPlatformMetaUpdateRequest';
10
6
  import type { IntegrationCredential } from '../models/IntegrationCredential';
11
7
  import type { LLMCredentialRequest } from '../models/LLMCredentialRequest';
12
8
  import type { LLMCredentialResponse } from '../models/LLMCredentialResponse';
@@ -123,6 +119,35 @@ export class AiAccountService {
123
119
  mediaType: 'application/json',
124
120
  });
125
121
  }
122
+ /**
123
+ * Delete an existing LLM credential for an organization.
124
+ *
125
+ * Args:
126
+ * request: The HTTP request containing updated credential information
127
+ * org: Organization key identifier
128
+ *
129
+ * Returns:
130
+ * Response: 204
131
+ *
132
+ * Raises:
133
+ * NotFound: When organization or credential is not found
134
+ * ValidationError: When request data is invalid
135
+ * @returns void
136
+ * @throws ApiError
137
+ */
138
+ public static aiAccountOrgsCredentialDestroy({
139
+ org,
140
+ }: {
141
+ org: string,
142
+ }): CancelablePromise<void> {
143
+ return __request(OpenAPI, {
144
+ method: 'DELETE',
145
+ url: '/api/ai-account/orgs/{org}/credential/',
146
+ path: {
147
+ 'org': org,
148
+ },
149
+ });
150
+ }
126
151
  /**
127
152
  * Retrieve integration credentials for an organization.
128
153
  *
@@ -230,146 +255,32 @@ export class AiAccountService {
230
255
  });
231
256
  }
232
257
  /**
233
- * Retrieve platform metadata for a specific organization.
234
- *
235
- * Args:
236
- * request: The HTTP request
237
- * org: Organization key identifier
238
- *
239
- * Returns:
240
- * Response: Platform metadata including service configurations and active services
241
- *
242
- * Raises:
243
- * NotFound: When platform metadata is not found
244
- * @returns IBLAIPlatformMeta
245
- * @throws ApiError
246
- */
247
- public static aiAccountOrgsPlatformMetadataList({
248
- org,
249
- }: {
250
- org: string,
251
- }): CancelablePromise<Array<IBLAIPlatformMeta>> {
252
- return __request(OpenAPI, {
253
- method: 'GET',
254
- url: '/api/ai-account/orgs/{org}/platform-metadata/',
255
- path: {
256
- 'org': org,
257
- },
258
- });
259
- }
260
- /**
261
- * Create or update platform metadata for a specific organization.
262
- *
263
- * Args:
264
- * request: The HTTP request containing metadata information
265
- * org: Organization key identifier
266
- *
267
- * Returns:
268
- * Response: Created/updated platform metadata
269
- *
270
- * Raises:
271
- * NotFound: When platform is not found
272
- * ValidationError: When request data is invalid
273
- * @returns IBLAIPlatformMeta
274
- * @throws ApiError
275
- */
276
- public static aiAccountOrgsPlatformMetadataCreate({
277
- org,
278
- requestBody,
279
- }: {
280
- org: string,
281
- requestBody: IBLAIPlatformMetaRequest,
282
- }): CancelablePromise<IBLAIPlatformMeta> {
283
- return __request(OpenAPI, {
284
- method: 'POST',
285
- url: '/api/ai-account/orgs/{org}/platform-metadata/',
286
- path: {
287
- 'org': org,
288
- },
289
- body: requestBody,
290
- mediaType: 'application/json',
291
- });
292
- }
293
- /**
294
- * Update specific fields of platform metadata for an organization.
295
- *
296
- * This endpoint allows updating the active LLM provider and available LLMs.
258
+ * Delete an existing integration credential for an organization.
297
259
  *
298
260
  * Args:
299
- * request: The HTTP request containing update information
261
+ * request: The HTTP request containing credential information (must include 'id')
300
262
  * org: Organization key identifier
301
263
  *
302
264
  * Returns:
303
- * Response: Updated platform metadata
265
+ * Response: 204
304
266
  *
305
267
  * Raises:
306
- * NotFound: When platform metadata is not found
268
+ * NotFound: When organization or credential is not found
307
269
  * ValidationError: When request data is invalid
308
- * @returns IBLAIPlatformMeta
309
- * @throws ApiError
310
- */
311
- public static aiAccountOrgsPlatformMetadataUpdate({
312
- org,
313
- requestBody,
314
- }: {
315
- org: string,
316
- requestBody?: IBLAIPlatformMetaUpdateRequest,
317
- }): CancelablePromise<Array<IBLAIPlatformMeta>> {
318
- return __request(OpenAPI, {
319
- method: 'PUT',
320
- url: '/api/ai-account/orgs/{org}/platform-metadata/',
321
- path: {
322
- 'org': org,
323
- },
324
- body: requestBody,
325
- mediaType: 'application/json',
326
- });
327
- }
328
- /**
329
- * Retrieve weekly token usage statistics for an organization.
330
- *
331
- * Query Parameters:
332
- * username (optional): Filter results by specific username
333
- * session_id (optional): Filter results by specific session ID
334
- *
335
- * Args:
336
- * request: The HTTP request
337
- * org: Organization key identifier
338
- *
339
- * Returns:
340
- * Response: List of weekly token usage records with prompt and completion tokens
341
- *
342
- * Raises:
343
- * NotFound: When organization is not found or when no sessions match the filters
344
- * ValidationError: When query parameters are invalid
345
- * @returns APITokenCost
270
+ * @returns void
346
271
  * @throws ApiError
347
272
  */
348
- public static aiAccountOrgsTokensList({
273
+ public static aiAccountOrgsIntegrationCredentialDestroy({
349
274
  org,
350
- sessionId,
351
- username,
352
275
  }: {
353
276
  org: string,
354
- /**
355
- * Filter token usage by specific chat session ID
356
- */
357
- sessionId?: string,
358
- /**
359
- * Filter token usage by specific username
360
- */
361
- username?: string,
362
- }): CancelablePromise<Array<APITokenCost>> {
277
+ }): CancelablePromise<void> {
363
278
  return __request(OpenAPI, {
364
- method: 'GET',
365
- url: '/api/ai-account/orgs/{org}/tokens/',
279
+ method: 'DELETE',
280
+ url: '/api/ai-account/orgs/{org}/integration-credential/',
366
281
  path: {
367
282
  'org': org,
368
283
  },
369
- query: {
370
- 'session_id': sessionId,
371
- 'username': username,
372
- },
373
284
  });
374
285
  }
375
286
  /**
@@ -1,14 +0,0 @@
1
- export type APITokenCost = {
2
- /**
3
- * Week start date for token usage aggregation
4
- */
5
- date: string;
6
- /**
7
- * Total completion tokens used in this week
8
- */
9
- completion_tokens: number;
10
- /**
11
- * Total prompt tokens used in this week
12
- */
13
- prompt_tokens: number;
14
- };
@@ -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,3 +0,0 @@
1
- export type IBLAIPlatformMeta = {
2
- metadata?: any;
3
- };
@@ -1,6 +0,0 @@
1
- export type IBLAIPlatformMetaRequest = {
2
- /**
3
- * Platform metadata including LLM configurations and active services
4
- */
5
- data: any;
6
- };
@@ -1,10 +0,0 @@
1
- export type IBLAIPlatformMetaUpdateRequest = {
2
- /**
3
- * The LLM provider to set as active (e.g., 'openai', 'google')
4
- */
5
- active_llm?: string;
6
- /**
7
- * List of LLM providers to add to available providers
8
- */
9
- llms?: Array<string>;
10
- };
@@ -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
- };
@@ -1,7 +0,0 @@
1
- import type { Training } from './Training';
2
- export type PaginatedTrainingList = {
3
- count: number;
4
- next?: string | null;
5
- previous?: string | null;
6
- results: Array<Training>;
7
- };
@@ -1,6 +0,0 @@
1
- export type PatchedBotCommand = {
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 PatchedBotCreate = {
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 PatchedDataSet = {
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,7 +0,0 @@
1
- export type PatchedDiscordConfig = {
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 PatchedDiscordUserConfig = {
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,8 +0,0 @@
1
- export type PatchedSlackConfig = {
2
- readonly id?: number;
3
- bot?: number;
4
- client_id?: string;
5
- client_secret?: string;
6
- app_token?: string;
7
- verification_token?: string;
8
- };
@@ -1,17 +0,0 @@
1
- export type PatchedSlackUserConfig = {
2
- readonly id?: number;
3
- /**
4
- * edX user ID
5
- */
6
- readonly user?: number;
7
- /**
8
- * Team Domain in the stated slack workspace. This is also the workspace name.
9
- */
10
- slack_team_domain?: string;
11
- /**
12
- * Username in the stated slack workspace
13
- */
14
- slack_username?: string;
15
- readonly date_created?: string;
16
- readonly last_modified?: string;
17
- };