@iblai/iblai-api 3.48.5-ai-plus → 3.49.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 (113) hide show
  1. package/dist/index.cjs.js +638 -1729
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +639 -1728
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +638 -1729
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +8 -41
  8. package/dist/types/models/CallConfiguration.d.ts +26 -0
  9. package/dist/types/models/CallConfigurationModeEnum.d.ts +8 -0
  10. package/dist/types/models/LlmProviderEnum.d.ts +8 -0
  11. package/dist/types/models/Mentor.d.ts +2 -0
  12. package/dist/types/models/MentorSettings.d.ts +2 -0
  13. package/dist/types/models/PatchedCallConfiguration.d.ts +26 -0
  14. package/dist/types/models/{VoiceProviderEnum.d.ts → ProviderEnum.d.ts} +1 -1
  15. package/dist/types/models/StripeCheckoutSessionRequest.d.ts +2 -2
  16. package/dist/types/models/{ModeEnum.d.ts → StripeCheckoutSessionRequestModeEnum.d.ts} +1 -1
  17. package/dist/types/models/SttProviderEnum.d.ts +12 -0
  18. package/dist/types/models/TtsProviderEnum.d.ts +10 -0
  19. package/dist/types/models/Voice.d.ts +2 -2
  20. package/dist/types/services/AiMentorService.d.ts +193 -0
  21. package/package.json +1 -1
  22. package/src/core/OpenAPI.ts +1 -1
  23. package/src/index.ts +8 -41
  24. package/src/models/CallConfiguration.ts +31 -0
  25. package/src/models/CallConfigurationModeEnum.ts +12 -0
  26. package/src/models/{Provider63aEnum.ts → LlmProviderEnum.ts} +3 -1
  27. package/src/models/Mentor.ts +2 -0
  28. package/src/models/MentorSettings.ts +2 -0
  29. package/src/models/PatchedCallConfiguration.ts +31 -0
  30. package/src/models/{VoiceProviderEnum.ts → ProviderEnum.ts} +1 -1
  31. package/src/models/StripeCheckoutSessionRequest.ts +2 -2
  32. package/src/models/{ModeEnum.ts → StripeCheckoutSessionRequestModeEnum.ts} +1 -1
  33. package/src/models/SttProviderEnum.ts +16 -0
  34. package/src/models/TtsProviderEnum.ts +14 -0
  35. package/src/models/Voice.ts +2 -2
  36. package/src/services/AiMentorService.ts +286 -0
  37. package/dist/types/models/Bot.d.ts +0 -15
  38. package/dist/types/models/BotCommand.d.ts +0 -6
  39. package/dist/types/models/BotCreate.d.ts +0 -12
  40. package/dist/types/models/DataSet.d.ts +0 -21
  41. package/dist/types/models/DataSetCreate.d.ts +0 -12
  42. package/dist/types/models/DataSetStatusEnum.d.ts +0 -12
  43. package/dist/types/models/DiscordConfig.d.ts +0 -7
  44. package/dist/types/models/DiscordUserConfig.d.ts +0 -10
  45. package/dist/types/models/DiscordWebhook.d.ts +0 -6
  46. package/dist/types/models/PaginatedDataSetList.d.ts +0 -7
  47. package/dist/types/models/PaginatedTrainingList.d.ts +0 -7
  48. package/dist/types/models/PatchedBotCommand.d.ts +0 -6
  49. package/dist/types/models/PatchedBotCreate.d.ts +0 -12
  50. package/dist/types/models/PatchedDataSet.d.ts +0 -21
  51. package/dist/types/models/PatchedDiscordConfig.d.ts +0 -7
  52. package/dist/types/models/PatchedDiscordUserConfig.d.ts +0 -10
  53. package/dist/types/models/PatchedSlackConfig.d.ts +0 -8
  54. package/dist/types/models/PatchedSlackUserConfig.d.ts +0 -17
  55. package/dist/types/models/PatchedTeamsConfig.d.ts +0 -7
  56. package/dist/types/models/PatchedTrainingCreate.d.ts +0 -31
  57. package/dist/types/models/PatchedWebexConfig.d.ts +0 -10
  58. package/dist/types/models/PatchedWhatsappConfig.d.ts +0 -11
  59. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +0 -10
  60. package/dist/types/models/Provider05cEnum.d.ts +0 -14
  61. package/dist/types/models/Provider63aEnum.d.ts +0 -6
  62. package/dist/types/models/SlackConfig.d.ts +0 -8
  63. package/dist/types/models/SlackUserConfig.d.ts +0 -17
  64. package/dist/types/models/SlackWebhook.d.ts +0 -6
  65. package/dist/types/models/TeamsConfig.d.ts +0 -7
  66. package/dist/types/models/TeamsWebhook.d.ts +0 -17
  67. package/dist/types/models/Training.d.ts +0 -41
  68. package/dist/types/models/TrainingCreate.d.ts +0 -31
  69. package/dist/types/models/WebexConfig.d.ts +0 -10
  70. package/dist/types/models/WebexWebhook.d.ts +0 -4
  71. package/dist/types/models/WhatAppWebHook.d.ts +0 -3
  72. package/dist/types/models/WhatsappConfig.d.ts +0 -11
  73. package/dist/types/models/WhatsappUserConfig.d.ts +0 -10
  74. package/dist/types/services/AiBotService.d.ts +0 -642
  75. package/dist/types/services/AiFinetuningService.d.ts +0 -232
  76. package/src/models/Bot.ts +0 -20
  77. package/src/models/BotCommand.ts +0 -11
  78. package/src/models/BotCreate.ts +0 -17
  79. package/src/models/DataSet.ts +0 -26
  80. package/src/models/DataSetCreate.ts +0 -17
  81. package/src/models/DataSetStatusEnum.ts +0 -16
  82. package/src/models/DiscordConfig.ts +0 -12
  83. package/src/models/DiscordUserConfig.ts +0 -15
  84. package/src/models/DiscordWebhook.ts +0 -11
  85. package/src/models/PaginatedDataSetList.ts +0 -12
  86. package/src/models/PaginatedTrainingList.ts +0 -12
  87. package/src/models/PatchedBotCommand.ts +0 -11
  88. package/src/models/PatchedBotCreate.ts +0 -17
  89. package/src/models/PatchedDataSet.ts +0 -26
  90. package/src/models/PatchedDiscordConfig.ts +0 -12
  91. package/src/models/PatchedDiscordUserConfig.ts +0 -15
  92. package/src/models/PatchedSlackConfig.ts +0 -13
  93. package/src/models/PatchedSlackUserConfig.ts +0 -22
  94. package/src/models/PatchedTeamsConfig.ts +0 -12
  95. package/src/models/PatchedTrainingCreate.ts +0 -36
  96. package/src/models/PatchedWebexConfig.ts +0 -15
  97. package/src/models/PatchedWhatsappConfig.ts +0 -16
  98. package/src/models/PatchedWhatsappUserConfig.ts +0 -15
  99. package/src/models/Provider05cEnum.ts +0 -18
  100. package/src/models/SlackConfig.ts +0 -13
  101. package/src/models/SlackUserConfig.ts +0 -22
  102. package/src/models/SlackWebhook.ts +0 -11
  103. package/src/models/TeamsConfig.ts +0 -12
  104. package/src/models/TeamsWebhook.ts +0 -22
  105. package/src/models/Training.ts +0 -46
  106. package/src/models/TrainingCreate.ts +0 -36
  107. package/src/models/WebexConfig.ts +0 -15
  108. package/src/models/WebexWebhook.ts +0 -9
  109. package/src/models/WhatAppWebHook.ts +0 -8
  110. package/src/models/WhatsappConfig.ts +0 -16
  111. package/src/models/WhatsappUserConfig.ts +0 -15
  112. package/src/services/AiBotService.ts +0 -1330
  113. package/src/services/AiFinetuningService.ts +0 -472
package/dist/index.cjs.js CHANGED
@@ -110,7 +110,7 @@ class CancelablePromise {
110
110
 
111
111
  const OpenAPI = {
112
112
  BASE: 'https://base.manager.iblai.app',
113
- VERSION: '3.48.5-ai-plus',
113
+ VERSION: '3.49.0-ai',
114
114
  WITH_CREDENTIALS: false,
115
115
  CREDENTIALS: 'include',
116
116
  TOKEN: undefined,
@@ -167,6 +167,20 @@ exports.AlignMentorBubbleEnum = void 0;
167
167
  exports.BlankEnum = void 0;
168
168
  (function (BlankEnum) {})(exports.BlankEnum || (exports.BlankEnum = {}));
169
169
 
170
+ /* generated using openapi-typescript-codegen -- do not edit */
171
+ /* istanbul ignore file */
172
+ /* tslint:disable */
173
+ /* eslint-disable */
174
+ /**
175
+ * * `realtime` - Realtime
176
+ * * `inference` - Inference
177
+ */
178
+ exports.CallConfigurationModeEnum = void 0;
179
+ (function (CallConfigurationModeEnum) {
180
+ CallConfigurationModeEnum["REALTIME"] = "realtime";
181
+ CallConfigurationModeEnum["INFERENCE"] = "inference";
182
+ })(exports.CallConfigurationModeEnum || (exports.CallConfigurationModeEnum = {}));
183
+
170
184
  /* generated using openapi-typescript-codegen -- do not edit */
171
185
  /* istanbul ignore file */
172
186
  /* tslint:disable */
@@ -231,24 +245,6 @@ exports.CourseCreationTaskStatusEnum = void 0;
231
245
  CourseCreationTaskStatusEnum["IN_PROGRESS"] = "In Progress";
232
246
  })(exports.CourseCreationTaskStatusEnum || (exports.CourseCreationTaskStatusEnum = {}));
233
247
 
234
- /* generated using openapi-typescript-codegen -- do not edit */
235
- /* istanbul ignore file */
236
- /* tslint:disable */
237
- /* eslint-disable */
238
- /**
239
- * * `pending` - Pending
240
- * * `processing` - Processing
241
- * * `completed` - Completed
242
- * * `failed` - Failed
243
- */
244
- exports.DataSetStatusEnum = void 0;
245
- (function (DataSetStatusEnum) {
246
- DataSetStatusEnum["PENDING"] = "pending";
247
- DataSetStatusEnum["PROCESSING"] = "processing";
248
- DataSetStatusEnum["COMPLETED"] = "completed";
249
- DataSetStatusEnum["FAILED"] = "failed";
250
- })(exports.DataSetStatusEnum || (exports.DataSetStatusEnum = {}));
251
-
252
248
  /* generated using openapi-typescript-codegen -- do not edit */
253
249
  /* istanbul ignore file */
254
250
  /* tslint:disable */
@@ -337,6 +333,20 @@ exports.KindEnum = void 0;
337
333
  KindEnum["HELP_REQUEST"] = "HelpRequest";
338
334
  })(exports.KindEnum || (exports.KindEnum = {}));
339
335
 
336
+ /* generated using openapi-typescript-codegen -- do not edit */
337
+ /* istanbul ignore file */
338
+ /* tslint:disable */
339
+ /* eslint-disable */
340
+ /**
341
+ * * `openai` - Openai
342
+ * * `google` - Google
343
+ */
344
+ exports.LlmProviderEnum = void 0;
345
+ (function (LlmProviderEnum) {
346
+ LlmProviderEnum["OPENAI"] = "openai";
347
+ LlmProviderEnum["GOOGLE"] = "google";
348
+ })(exports.LlmProviderEnum || (exports.LlmProviderEnum = {}));
349
+
340
350
  /* generated using openapi-typescript-codegen -- do not edit */
341
351
  /* istanbul ignore file */
342
352
  /* tslint:disable */
@@ -373,22 +383,6 @@ exports.MentorVisibilityEnum = void 0;
373
383
  MentorVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
374
384
  })(exports.MentorVisibilityEnum || (exports.MentorVisibilityEnum = {}));
375
385
 
376
- /* generated using openapi-typescript-codegen -- do not edit */
377
- /* istanbul ignore file */
378
- /* tslint:disable */
379
- /* eslint-disable */
380
- /**
381
- * * `subscription` - subscription
382
- * * `payment` - payment
383
- * * `setup` - setup
384
- */
385
- exports.ModeEnum = void 0;
386
- (function (ModeEnum) {
387
- ModeEnum["SUBSCRIPTION"] = "subscription";
388
- ModeEnum["PAYMENT"] = "payment";
389
- ModeEnum["SETUP"] = "setup";
390
- })(exports.ModeEnum || (exports.ModeEnum = {}));
391
-
392
386
  /* generated using openapi-typescript-codegen -- do not edit */
393
387
  /* istanbul ignore file */
394
388
  /* tslint:disable */
@@ -531,37 +525,21 @@ exports.PromptVisibilityEnum = void 0;
531
525
  PromptVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
532
526
  })(exports.PromptVisibilityEnum || (exports.PromptVisibilityEnum = {}));
533
527
 
534
- /* generated using openapi-typescript-codegen -- do not edit */
535
- /* istanbul ignore file */
536
- /* tslint:disable */
537
- /* eslint-disable */
538
- /**
539
- * * `webex` - Webex
540
- * * `slack` - Slack
541
- * * `whatsapp` - Whatsapp
542
- * * `discord` - Discord
543
- * * `teams` - Teams
544
- */
545
- exports.Provider05cEnum = void 0;
546
- (function (Provider05cEnum) {
547
- Provider05cEnum["WEBEX"] = "webex";
548
- Provider05cEnum["SLACK"] = "slack";
549
- Provider05cEnum["WHATSAPP"] = "whatsapp";
550
- Provider05cEnum["DISCORD"] = "discord";
551
- Provider05cEnum["TEAMS"] = "teams";
552
- })(exports.Provider05cEnum || (exports.Provider05cEnum = {}));
553
-
554
528
  /* generated using openapi-typescript-codegen -- do not edit */
555
529
  /* istanbul ignore file */
556
530
  /* tslint:disable */
557
531
  /* eslint-disable */
558
532
  /**
559
533
  * * `openai` - Openai
534
+ * * `google` - Google
535
+ * * `elevenlabs` - Elevenlabs
560
536
  */
561
- exports.Provider63aEnum = void 0;
562
- (function (Provider63aEnum) {
563
- Provider63aEnum["OPENAI"] = "openai";
564
- })(exports.Provider63aEnum || (exports.Provider63aEnum = {}));
537
+ exports.ProviderEnum = void 0;
538
+ (function (ProviderEnum) {
539
+ ProviderEnum["OPENAI"] = "openai";
540
+ ProviderEnum["GOOGLE"] = "google";
541
+ ProviderEnum["ELEVENLABS"] = "elevenlabs";
542
+ })(exports.ProviderEnum || (exports.ProviderEnum = {}));
565
543
 
566
544
  /* generated using openapi-typescript-codegen -- do not edit */
567
545
  /* istanbul ignore file */
@@ -657,6 +635,40 @@ exports.StepStatusEnum = void 0;
657
635
  StepStatusEnum["PENDING"] = "pending";
658
636
  })(exports.StepStatusEnum || (exports.StepStatusEnum = {}));
659
637
 
638
+ /* generated using openapi-typescript-codegen -- do not edit */
639
+ /* istanbul ignore file */
640
+ /* tslint:disable */
641
+ /* eslint-disable */
642
+ /**
643
+ * * `subscription` - subscription
644
+ * * `payment` - payment
645
+ * * `setup` - setup
646
+ */
647
+ exports.StripeCheckoutSessionRequestModeEnum = void 0;
648
+ (function (StripeCheckoutSessionRequestModeEnum) {
649
+ StripeCheckoutSessionRequestModeEnum["SUBSCRIPTION"] = "subscription";
650
+ StripeCheckoutSessionRequestModeEnum["PAYMENT"] = "payment";
651
+ StripeCheckoutSessionRequestModeEnum["SETUP"] = "setup";
652
+ })(exports.StripeCheckoutSessionRequestModeEnum || (exports.StripeCheckoutSessionRequestModeEnum = {}));
653
+
654
+ /* generated using openapi-typescript-codegen -- do not edit */
655
+ /* istanbul ignore file */
656
+ /* tslint:disable */
657
+ /* eslint-disable */
658
+ /**
659
+ * * `openai` - Openai
660
+ * * `google` - Google
661
+ * * `deepgram` - Deepgram
662
+ * * `cartesia` - Cartesia
663
+ */
664
+ exports.SttProviderEnum = void 0;
665
+ (function (SttProviderEnum) {
666
+ SttProviderEnum["OPENAI"] = "openai";
667
+ SttProviderEnum["GOOGLE"] = "google";
668
+ SttProviderEnum["DEEPGRAM"] = "deepgram";
669
+ SttProviderEnum["CARTESIA"] = "cartesia";
670
+ })(exports.SttProviderEnum || (exports.SttProviderEnum = {}));
671
+
660
672
  /* generated using openapi-typescript-codegen -- do not edit */
661
673
  /* istanbul ignore file */
662
674
  /* tslint:disable */
@@ -722,30 +734,30 @@ exports.TransportEnum = void 0;
722
734
  /* tslint:disable */
723
735
  /* eslint-disable */
724
736
  /**
725
- * * `tutorial` - Tutorial
726
- * * `assessment` - Assessment
737
+ * * `openai` - Openai
738
+ * * `google` - Google
739
+ * * `elevenlabs` - Elevenlabs
727
740
  */
728
- exports.TypeC42Enum = void 0;
729
- (function (TypeC42Enum) {
730
- TypeC42Enum["TUTORIAL"] = "tutorial";
731
- TypeC42Enum["ASSESSMENT"] = "assessment";
732
- })(exports.TypeC42Enum || (exports.TypeC42Enum = {}));
741
+ exports.TtsProviderEnum = void 0;
742
+ (function (TtsProviderEnum) {
743
+ TtsProviderEnum["OPENAI"] = "openai";
744
+ TtsProviderEnum["GOOGLE"] = "google";
745
+ TtsProviderEnum["ELEVENLABS"] = "elevenlabs";
746
+ })(exports.TtsProviderEnum || (exports.TtsProviderEnum = {}));
733
747
 
734
748
  /* generated using openapi-typescript-codegen -- do not edit */
735
749
  /* istanbul ignore file */
736
750
  /* tslint:disable */
737
751
  /* eslint-disable */
738
752
  /**
739
- * * `openai` - Openai
740
- * * `google` - Google
741
- * * `elevenlabs` - Elevenlabs
753
+ * * `tutorial` - Tutorial
754
+ * * `assessment` - Assessment
742
755
  */
743
- exports.VoiceProviderEnum = void 0;
744
- (function (VoiceProviderEnum) {
745
- VoiceProviderEnum["OPENAI"] = "openai";
746
- VoiceProviderEnum["GOOGLE"] = "google";
747
- VoiceProviderEnum["ELEVENLABS"] = "elevenlabs";
748
- })(exports.VoiceProviderEnum || (exports.VoiceProviderEnum = {}));
756
+ exports.TypeC42Enum = void 0;
757
+ (function (TypeC42Enum) {
758
+ TypeC42Enum["TUTORIAL"] = "tutorial";
759
+ TypeC42Enum["ASSESSMENT"] = "assessment";
760
+ })(exports.TypeC42Enum || (exports.TypeC42Enum = {}));
749
761
 
750
762
  /* generated using openapi-typescript-codegen -- do not edit */
751
763
  /* istanbul ignore file */
@@ -5723,1786 +5735,445 @@ class AiAnalyticsService {
5723
5735
  }
5724
5736
  }
5725
5737
 
5726
- class AiBotService {
5738
+ class AiIndexService {
5727
5739
  /**
5728
- * Create modify and update bot information for a specific tenant.
5729
- * @returns Bot
5740
+ * Retrieve details of a specific document embedding.
5741
+ *
5742
+ * This endpoint returns detailed information about a specific
5743
+ * document embedding identified by its ID.
5744
+ *
5745
+ * Args:
5746
+ * request: The HTTP request.
5747
+ * org: Organization key identifier.
5748
+ * document_id: The ID of the document embedding to retrieve.
5749
+ *
5750
+ * Returns:
5751
+ * Response: Detailed information about the document embedding.
5752
+ *
5753
+ * Raises:
5754
+ * NotFound: If the specified document embedding does not exist.
5755
+ * @returns RetrieverDocumentEmbedding
5730
5756
  * @throws ApiError
5731
5757
  */
5732
- static aiBotV1BotsBotList({
5733
- org
5758
+ static aiIndexOrgsUsersDocumentsRetrieve({
5759
+ documentId,
5760
+ org,
5761
+ userId
5734
5762
  }) {
5735
5763
  return request(OpenAPI, {
5736
5764
  method: 'GET',
5737
- url: '/api/ai-bot/v1/bots/{org}/bot/',
5765
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
5738
5766
  path: {
5739
- 'org': org
5767
+ 'document_id': documentId,
5768
+ 'org': org,
5769
+ 'user_id': userId
5770
+ },
5771
+ errors: {
5772
+ 404: `Document not found`
5740
5773
  }
5741
5774
  });
5742
5775
  }
5743
5776
  /**
5744
- * Create modify and update bot information for a specific tenant.
5745
- * @returns BotCreate
5777
+ * Update a specific document embedding.
5778
+ *
5779
+ * This endpoint allows updating various properties of a document embedding,
5780
+ * including its name, type, pathway, and training status.
5781
+ *
5782
+ * Args:
5783
+ * request: The HTTP request containing the updated document data.
5784
+ * org: Organization key identifier.
5785
+ * document_id: The ID of the document embedding to update.
5786
+ *
5787
+ * Returns:
5788
+ * Response: The updated document embedding information.
5789
+ *
5790
+ * Raises:
5791
+ * BadRequest: If the provided data is invalid.
5792
+ * NotFound: If the specified document embedding does not exist.
5793
+ * @returns RetrieverDocumentEmbedding
5746
5794
  * @throws ApiError
5747
5795
  */
5748
- static aiBotV1BotsBotCreate({
5796
+ static aiIndexOrgsUsersDocumentsUpdate({
5797
+ documentId,
5749
5798
  org,
5750
- requestBody
5799
+ userId,
5800
+ formData
5751
5801
  }) {
5752
5802
  return request(OpenAPI, {
5753
- method: 'POST',
5754
- url: '/api/ai-bot/v1/bots/{org}/bot/',
5803
+ method: 'PUT',
5804
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
5755
5805
  path: {
5756
- 'org': org
5806
+ 'document_id': documentId,
5807
+ 'org': org,
5808
+ 'user_id': userId
5757
5809
  },
5758
- body: requestBody,
5759
- mediaType: 'application/json'
5760
- });
5761
- }
5762
- /**
5763
- * Create slash commands for a specific bot
5764
- * eg. /iblai-baseline
5765
- * @returns BotCommand
5766
- * @throws ApiError
5767
- */
5768
- static aiBotV1BotsBotCommandsList({
5769
- org
5770
- }) {
5771
- return request(OpenAPI, {
5772
- method: 'GET',
5773
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
5774
- path: {
5775
- 'org': org
5810
+ formData: formData,
5811
+ mediaType: 'multipart/form-data',
5812
+ errors: {
5813
+ 400: `Invalid request data`,
5814
+ 404: `Document not found`
5776
5815
  }
5777
5816
  });
5778
5817
  }
5779
5818
  /**
5780
- * Create slash commands for a specific bot
5781
- * eg. /iblai-baseline
5782
- * @returns BotCommand
5819
+ * Delete a specific document embedding.
5820
+ *
5821
+ * This endpoint removes a document embedding from the system,
5822
+ * including untraining it from any associated pathways.
5823
+ *
5824
+ * Args:
5825
+ * request: The HTTP request.
5826
+ * org: Organization key identifier.
5827
+ * document_id: The ID of the document embedding to delete.
5828
+ *
5829
+ * Returns:
5830
+ * Response: An empty response with a 204 status code if successful.
5831
+ *
5832
+ * Raises:
5833
+ * NotFound: If the specified document embedding does not exist.
5834
+ * @returns void
5783
5835
  * @throws ApiError
5784
5836
  */
5785
- static aiBotV1BotsBotCommandsCreate({
5837
+ static aiIndexOrgsUsersDocumentsDestroy({
5838
+ documentId,
5786
5839
  org,
5787
- requestBody
5840
+ userId
5788
5841
  }) {
5789
5842
  return request(OpenAPI, {
5790
- method: 'POST',
5791
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
5843
+ method: 'DELETE',
5844
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
5792
5845
  path: {
5793
- 'org': org
5846
+ 'document_id': documentId,
5847
+ 'org': org,
5848
+ 'user_id': userId
5794
5849
  },
5795
- body: requestBody,
5796
- mediaType: 'application/json'
5850
+ errors: {
5851
+ 404: `Document not found`
5852
+ }
5797
5853
  });
5798
5854
  }
5799
5855
  /**
5800
- * Create slash commands for a specific bot
5801
- * eg. /iblai-baseline
5802
- * @returns BotCommand
5856
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
5857
+ * @returns DocumentSettingsResponse
5803
5858
  * @throws ApiError
5804
5859
  */
5805
- static aiBotV1BotsBotCommandsRetrieve({
5806
- id,
5807
- org
5860
+ static aiIndexOrgsUsersDocumentsSettingsRetrieve({
5861
+ documentId,
5862
+ org,
5863
+ userId
5808
5864
  }) {
5809
5865
  return request(OpenAPI, {
5810
5866
  method: 'GET',
5811
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
5867
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
5812
5868
  path: {
5813
- 'id': id,
5814
- 'org': org
5869
+ 'document_id': documentId,
5870
+ 'org': org,
5871
+ 'user_id': userId
5815
5872
  }
5816
5873
  });
5817
5874
  }
5818
5875
  /**
5819
- * Create slash commands for a specific bot
5820
- * eg. /iblai-baseline
5821
- * @returns BotCommand
5876
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
5877
+ * @returns DocumentSettingsResponse
5822
5878
  * @throws ApiError
5823
5879
  */
5824
- static aiBotV1BotsBotCommandsUpdate({
5825
- id,
5880
+ static aiIndexOrgsUsersDocumentsSettingsCreate({
5881
+ documentId,
5826
5882
  org,
5883
+ userId,
5827
5884
  requestBody
5828
5885
  }) {
5829
5886
  return request(OpenAPI, {
5830
- method: 'PUT',
5831
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
5887
+ method: 'POST',
5888
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
5832
5889
  path: {
5833
- 'id': id,
5834
- 'org': org
5890
+ 'document_id': documentId,
5891
+ 'org': org,
5892
+ 'user_id': userId
5835
5893
  },
5836
5894
  body: requestBody,
5837
5895
  mediaType: 'application/json'
5838
5896
  });
5839
5897
  }
5840
5898
  /**
5841
- * Create slash commands for a specific bot
5842
- * eg. /iblai-baseline
5843
- * @returns BotCommand
5899
+ * Train a graph-based document through a worker process.
5900
+ *
5901
+ * This endpoint queues graph-based documents for training through a
5902
+ * specialized worker process that handles knowledge graph processing.
5903
+ *
5904
+ * Args:
5905
+ * request: The HTTP request containing the document information.
5906
+ * org: Organization key identifier.
5907
+ *
5908
+ * Returns:
5909
+ * Response: A confirmation that the document was queued for training,
5910
+ * including a task ID for tracking the progress.
5911
+ *
5912
+ * Raises:
5913
+ * ValidationError: If the request data is invalid.
5914
+ * BadRequest: If there was an error processing the document.
5915
+ * @returns TrainDocumentViewResponse
5844
5916
  * @throws ApiError
5845
5917
  */
5846
- static aiBotV1BotsBotCommandsPartialUpdate({
5847
- id,
5918
+ static aiIndexOrgsUsersDocumentsGraphTrainCreate({
5848
5919
  org,
5849
- requestBody
5920
+ userId,
5921
+ formData
5850
5922
  }) {
5851
5923
  return request(OpenAPI, {
5852
- method: 'PATCH',
5853
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
5924
+ method: 'POST',
5925
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/graph-train/',
5854
5926
  path: {
5855
- 'id': id,
5856
- 'org': org
5927
+ 'org': org,
5928
+ 'user_id': userId
5857
5929
  },
5858
- body: requestBody,
5859
- mediaType: 'application/json'
5860
- });
5861
- }
5862
- /**
5863
- * Create slash commands for a specific bot
5864
- * eg. /iblai-baseline
5865
- * @returns void
5866
- * @throws ApiError
5867
- */
5868
- static aiBotV1BotsBotCommandsDestroy({
5869
- id,
5870
- org
5871
- }) {
5872
- return request(OpenAPI, {
5873
- method: 'DELETE',
5874
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
5875
- path: {
5876
- 'id': id,
5877
- 'org': org
5930
+ formData: formData,
5931
+ mediaType: 'multipart/form-data',
5932
+ errors: {
5933
+ 400: `Invalid request data or document processing error`
5878
5934
  }
5879
5935
  });
5880
5936
  }
5881
5937
  /**
5882
- * Create modify and update bot information for a specific tenant.
5883
- * @returns Bot
5884
- * @throws ApiError
5885
- */
5886
- static aiBotV1BotsBotRetrieve({
5887
- id,
5888
- org
5938
+ * Description:
5939
+ * Retrieves a list of document embeddings for a specific pathway with optional search and pagination.
5940
+ *
5941
+ * Methods:
5942
+ * - GET: Retrieves document embeddings that match the specified search criteria and are paginated according to offset and limit.
5943
+ *
5944
+ * Parameters:
5945
+ * - search (str): Search query to filter document names or URLs.
5946
+ * - offset (int): Offset number for pagination.
5947
+ * - limit (int): Limit number for pagination.
5948
+ *
5949
+ * Returns:
5950
+ * - GET: A paginated list of document embeddings with their details.
5951
+ * {
5952
+ * "count": 10,
5953
+ * "next": "http://api.example.com/retriever_documents/?offset=10&limit=2",
5954
+ * "previous": "http://api.example.com/retriever_documents/?offset=0&limit=2",
5955
+ * "results": [
5956
+ * {
5957
+ * "document_name": "Document2",
5958
+ * "platform_key": "example_platform",
5959
+ * "pathway": "example_pathway"
5960
+ * }
5961
+ * ]
5962
+ * }
5963
+ *
5964
+ * Error Responses:
5965
+ * - 400 Bad Request: Invalid query parameters.
5966
+ * - 404 Not Found: No document embeddings found for the specified criteria.
5967
+ * @returns RetrieverDocumentEmbedding
5968
+ * @throws ApiError
5969
+ */
5970
+ static aiIndexOrgsUsersDocumentsPathwaysList({
5971
+ org,
5972
+ pathway,
5973
+ userId,
5974
+ limit,
5975
+ offset,
5976
+ search
5889
5977
  }) {
5890
5978
  return request(OpenAPI, {
5891
5979
  method: 'GET',
5892
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
5980
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/pathways/{pathway}/',
5893
5981
  path: {
5894
- 'id': id,
5895
- 'org': org
5982
+ 'org': org,
5983
+ 'pathway': pathway,
5984
+ 'user_id': userId
5985
+ },
5986
+ query: {
5987
+ 'limit': limit,
5988
+ 'offset': offset,
5989
+ 'search': search
5896
5990
  }
5897
5991
  });
5898
5992
  }
5899
5993
  /**
5900
- * Create modify and update bot information for a specific tenant.
5901
- * @returns BotCreate
5994
+ * Retrieve resource documents similar to the given query.
5995
+ *
5996
+ * This endpoint performs a semantic search to find documents that are
5997
+ * relevant to the provided query within the specified pathway.
5998
+ *
5999
+ * Args:
6000
+ * request: The HTTP request containing the search query.
6001
+ * org: Organization key identifier.
6002
+ *
6003
+ * Returns:
6004
+ * Response: A list of documents relevant to the search query.
6005
+ *
6006
+ * Raises:
6007
+ * ValidationError: If the request data is invalid.
6008
+ * @returns RetrieverResponseSearch
5902
6009
  * @throws ApiError
5903
6010
  */
5904
- static aiBotV1BotsBotUpdate({
5905
- id,
6011
+ static aiIndexOrgsUsersDocumentsSearchCreate({
5906
6012
  org,
6013
+ userId,
5907
6014
  requestBody
5908
6015
  }) {
5909
6016
  return request(OpenAPI, {
5910
- method: 'PUT',
5911
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
6017
+ method: 'POST',
6018
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/search/',
5912
6019
  path: {
5913
- 'id': id,
5914
- 'org': org
6020
+ 'org': org,
6021
+ 'user_id': userId
5915
6022
  },
5916
6023
  body: requestBody,
5917
- mediaType: 'application/json'
6024
+ mediaType: 'application/json',
6025
+ errors: {
6026
+ 400: `Invalid request data`
6027
+ }
5918
6028
  });
5919
6029
  }
5920
6030
  /**
5921
- * Create modify and update bot information for a specific tenant.
5922
- * @returns BotCreate
6031
+ * Retrieve document sources related to a given query.
6032
+ *
6033
+ * This endpoint performs a semantic search to find document sources
6034
+ * that are relevant to the provided query within the specified pathway,
6035
+ * and returns them along with confidence levels.
6036
+ *
6037
+ * Args:
6038
+ * request: The HTTP request containing the search query.
6039
+ * org: Organization key identifier.
6040
+ *
6041
+ * Returns:
6042
+ * Response: A list of document sources with confidence levels.
6043
+ *
6044
+ * Raises:
6045
+ * ValidationError: If the request data is invalid.
6046
+ * @returns RetrieverRequestSearchDocument
5923
6047
  * @throws ApiError
5924
6048
  */
5925
- static aiBotV1BotsBotPartialUpdate({
5926
- id,
6049
+ static aiIndexOrgsUsersDocumentsSourcesCreate({
5927
6050
  org,
6051
+ userId,
5928
6052
  requestBody
5929
6053
  }) {
5930
6054
  return request(OpenAPI, {
5931
- method: 'PATCH',
5932
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
6055
+ method: 'POST',
6056
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/sources/',
5933
6057
  path: {
5934
- 'id': id,
5935
- 'org': org
6058
+ 'org': org,
6059
+ 'user_id': userId
5936
6060
  },
5937
6061
  body: requestBody,
5938
- mediaType: 'application/json'
5939
- });
5940
- }
5941
- /**
5942
- * Create modify and update bot information for a specific tenant.
5943
- * @returns void
5944
- * @throws ApiError
5945
- */
5946
- static aiBotV1BotsBotDestroy({
5947
- id,
5948
- org
5949
- }) {
5950
- return request(OpenAPI, {
5951
- method: 'DELETE',
5952
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
5953
- path: {
5954
- 'id': id,
5955
- 'org': org
6062
+ mediaType: 'application/json',
6063
+ errors: {
6064
+ 400: `Invalid request data`
5956
6065
  }
5957
6066
  });
5958
6067
  }
5959
6068
  /**
5960
- * Create modify and update bot information for a specific tenant.
5961
- * @returns DiscordConfig
6069
+ * Check the status of a document training task.
6070
+ *
6071
+ * This endpoint retrieves the current status of an asynchronous
6072
+ * document training task that was previously initiated.
6073
+ *
6074
+ * Args:
6075
+ * request: The HTTP request.
6076
+ * org: Organization key identifier.
6077
+ * task_id: The ID of the training task to check.
6078
+ *
6079
+ * Returns:
6080
+ * Response: The current status of the document training task,
6081
+ * which can be "pending", "completed", or "failed".
6082
+ * @returns CheckDocumentTrainingStatus
5962
6083
  * @throws ApiError
5963
6084
  */
5964
- static aiBotV1BotsBotConfigDiscordRetrieve({
5965
- id,
5966
- org
6085
+ static aiIndexOrgsUsersDocumentsTasksRetrieve({
6086
+ org,
6087
+ taskId,
6088
+ userId
5967
6089
  }) {
5968
6090
  return request(OpenAPI, {
5969
6091
  method: 'GET',
5970
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
6092
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/tasks/{task_id}/',
5971
6093
  path: {
5972
- 'id': id,
5973
- 'org': org
6094
+ 'org': org,
6095
+ 'task_id': taskId,
6096
+ 'user_id': userId
5974
6097
  }
5975
6098
  });
5976
6099
  }
5977
6100
  /**
5978
- * Create modify and update bot information for a specific tenant.
5979
- * @returns DiscordConfig
6101
+ * Train a document through a worker process.
6102
+ *
6103
+ * This endpoint queues larger documents for training through a worker
6104
+ * process, which is more suitable for handling documents that would
6105
+ * take too long to process directly.
6106
+ *
6107
+ * Args:
6108
+ * request: The HTTP request containing the document information.
6109
+ * org: Organization key identifier.
6110
+ *
6111
+ * Returns:
6112
+ * Response: A confirmation that the document was queued for training,
6113
+ * including a task ID for tracking the progress.
6114
+ *
6115
+ * Raises:
6116
+ * ValidationError: If the request data is invalid.
6117
+ * BadRequest: If there was an error processing the document.
6118
+ * @returns TrainDocumentViewResponse
5980
6119
  * @throws ApiError
5981
6120
  */
5982
- static aiBotV1BotsBotConfigDiscordPartialUpdate({
5983
- id,
6121
+ static aiIndexOrgsUsersDocumentsTrainCreate({
5984
6122
  org,
5985
- requestBody
6123
+ userId,
6124
+ formData
5986
6125
  }) {
5987
6126
  return request(OpenAPI, {
5988
- method: 'PATCH',
5989
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
6127
+ method: 'POST',
6128
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/train/',
5990
6129
  path: {
5991
- 'id': id,
5992
- 'org': org
6130
+ 'org': org,
6131
+ 'user_id': userId
5993
6132
  },
5994
- body: requestBody,
5995
- mediaType: 'application/json'
5996
- });
5997
- }
5998
- /**
5999
- * Create modify and update bot information for a specific tenant.
6000
- * @returns SlackConfig
6001
- * @throws ApiError
6002
- */
6003
- static aiBotV1BotsBotConfigSlackRetrieve({
6004
- id,
6005
- org
6006
- }) {
6007
- return request(OpenAPI, {
6008
- method: 'GET',
6009
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
6010
- path: {
6011
- 'id': id,
6012
- 'org': org
6133
+ formData: formData,
6134
+ mediaType: 'multipart/form-data',
6135
+ errors: {
6136
+ 400: `Invalid request data`
6013
6137
  }
6014
6138
  });
6015
6139
  }
6016
6140
  /**
6017
- * Create modify and update bot information for a specific tenant.
6018
- * @returns SlackConfig
6141
+ * Train a document directly without using a worker.
6142
+ *
6143
+ * This endpoint is designed for training smaller documents directly
6144
+ * without queuing them through a worker process. For larger documents,
6145
+ * use the TrainDocumentView endpoint instead.
6146
+ *
6147
+ * Args:
6148
+ * request: The HTTP request containing the document information.
6149
+ * org: Organization key identifier.
6150
+ *
6151
+ * Returns:
6152
+ * Response: A confirmation that the document was trained successfully.
6153
+ *
6154
+ * Raises:
6155
+ * ValidationError: If the request data is invalid.
6156
+ * BadRequest: If the document training failed.
6157
+ * @returns RetreiverTrainViewResponse
6019
6158
  * @throws ApiError
6020
6159
  */
6021
- static aiBotV1BotsBotConfigSlackUpdateCreate({
6022
- id,
6160
+ static aiIndexOrgsUsersDocumentsTrainRetrieverCreate({
6023
6161
  org,
6024
- requestBody
6162
+ userId,
6163
+ formData
6025
6164
  }) {
6026
6165
  return request(OpenAPI, {
6027
6166
  method: 'POST',
6028
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
6167
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/train/retriever/',
6029
6168
  path: {
6030
- 'id': id,
6031
- 'org': org
6169
+ 'org': org,
6170
+ 'user_id': userId
6032
6171
  },
6033
- body: requestBody,
6034
- mediaType: 'application/json'
6035
- });
6036
- }
6037
- /**
6038
- * Create modify and update bot information for a specific tenant.
6039
- * @returns SlackConfig
6040
- * @throws ApiError
6041
- */
6042
- static aiBotV1BotsBotConfigSlackUpdateUpdate({
6043
- id,
6044
- org,
6045
- requestBody
6046
- }) {
6047
- return request(OpenAPI, {
6048
- method: 'PUT',
6049
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
6050
- path: {
6051
- 'id': id,
6052
- 'org': org
6053
- },
6054
- body: requestBody,
6055
- mediaType: 'application/json'
6056
- });
6057
- }
6058
- /**
6059
- * Create modify and update bot information for a specific tenant.
6060
- * @returns SlackConfig
6061
- * @throws ApiError
6062
- */
6063
- static aiBotV1BotsBotConfigSlackUpdatePartialUpdate({
6064
- id,
6065
- org,
6066
- requestBody
6067
- }) {
6068
- return request(OpenAPI, {
6069
- method: 'PATCH',
6070
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
6071
- path: {
6072
- 'id': id,
6073
- 'org': org
6074
- },
6075
- body: requestBody,
6076
- mediaType: 'application/json'
6077
- });
6078
- }
6079
- /**
6080
- * Create modify and update bot information for a specific tenant.
6081
- * @returns TeamsConfig
6082
- * @throws ApiError
6083
- */
6084
- static aiBotV1BotsBotConfigTeamsRetrieve({
6085
- id,
6086
- org
6087
- }) {
6088
- return request(OpenAPI, {
6089
- method: 'GET',
6090
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
6091
- path: {
6092
- 'id': id,
6093
- 'org': org
6094
- }
6095
- });
6096
- }
6097
- /**
6098
- * Create modify and update bot information for a specific tenant.
6099
- * @returns TeamsConfig
6100
- * @throws ApiError
6101
- */
6102
- static aiBotV1BotsBotConfigTeamsUpdateCreate({
6103
- id,
6104
- org,
6105
- requestBody
6106
- }) {
6107
- return request(OpenAPI, {
6108
- method: 'POST',
6109
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
6110
- path: {
6111
- 'id': id,
6112
- 'org': org
6113
- },
6114
- body: requestBody,
6115
- mediaType: 'application/json'
6116
- });
6117
- }
6118
- /**
6119
- * Create modify and update bot information for a specific tenant.
6120
- * @returns TeamsConfig
6121
- * @throws ApiError
6122
- */
6123
- static aiBotV1BotsBotConfigTeamsUpdateUpdate({
6124
- id,
6125
- org,
6126
- requestBody
6127
- }) {
6128
- return request(OpenAPI, {
6129
- method: 'PUT',
6130
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
6131
- path: {
6132
- 'id': id,
6133
- 'org': org
6134
- },
6135
- body: requestBody,
6136
- mediaType: 'application/json'
6137
- });
6138
- }
6139
- /**
6140
- * Create modify and update bot information for a specific tenant.
6141
- * @returns TeamsConfig
6142
- * @throws ApiError
6143
- */
6144
- static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate({
6145
- id,
6146
- org,
6147
- requestBody
6148
- }) {
6149
- return request(OpenAPI, {
6150
- method: 'PATCH',
6151
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
6152
- path: {
6153
- 'id': id,
6154
- 'org': org
6155
- },
6156
- body: requestBody,
6157
- mediaType: 'application/json'
6158
- });
6159
- }
6160
- /**
6161
- * Create modify and update bot information for a specific tenant.
6162
- * @returns WebexConfig
6163
- * @throws ApiError
6164
- */
6165
- static aiBotV1BotsBotConfigWebexRetrieve({
6166
- id,
6167
- org
6168
- }) {
6169
- return request(OpenAPI, {
6170
- method: 'GET',
6171
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
6172
- path: {
6173
- 'id': id,
6174
- 'org': org
6175
- }
6176
- });
6177
- }
6178
- /**
6179
- * Create modify and update bot information for a specific tenant.
6180
- * @returns WebexConfig
6181
- * @throws ApiError
6182
- */
6183
- static aiBotV1BotsBotConfigWebexPartialUpdate({
6184
- id,
6185
- org,
6186
- requestBody
6187
- }) {
6188
- return request(OpenAPI, {
6189
- method: 'PATCH',
6190
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
6191
- path: {
6192
- 'id': id,
6193
- 'org': org
6194
- },
6195
- body: requestBody,
6196
- mediaType: 'application/json'
6197
- });
6198
- }
6199
- /**
6200
- * Create modify and update bot information for a specific tenant.
6201
- * @returns WhatsappConfig
6202
- * @throws ApiError
6203
- */
6204
- static aiBotV1BotsBotConfigWhatsappRetrieve({
6205
- id,
6206
- org
6207
- }) {
6208
- return request(OpenAPI, {
6209
- method: 'GET',
6210
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
6211
- path: {
6212
- 'id': id,
6213
- 'org': org
6214
- }
6215
- });
6216
- }
6217
- /**
6218
- * Create modify and update bot information for a specific tenant.
6219
- * @returns WhatsappConfig
6220
- * @throws ApiError
6221
- */
6222
- static aiBotV1BotsBotWhatsappConfigUpdate({
6223
- id,
6224
- org,
6225
- requestBody
6226
- }) {
6227
- return request(OpenAPI, {
6228
- method: 'PUT',
6229
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
6230
- path: {
6231
- 'id': id,
6232
- 'org': org
6233
- },
6234
- body: requestBody,
6235
- mediaType: 'application/json'
6236
- });
6237
- }
6238
- /**
6239
- * Create modify and update bot information for a specific tenant.
6240
- * @returns WhatsappConfig
6241
- * @throws ApiError
6242
- */
6243
- static aiBotV1BotsBotWhatsappConfigPartialUpdate({
6244
- id,
6245
- org,
6246
- requestBody
6247
- }) {
6248
- return request(OpenAPI, {
6249
- method: 'PATCH',
6250
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
6251
- path: {
6252
- 'id': id,
6253
- 'org': org
6254
- },
6255
- body: requestBody,
6256
- mediaType: 'application/json'
6257
- });
6258
- }
6259
- /**
6260
- * Setup discord user id linkage with discord bots
6261
- * this will be used to authenticate the user when interracting with discord bots.
6262
- * the user id can be copied from the discord app after tapping on the user profile.
6263
- * @returns DiscordUserConfig
6264
- * @throws ApiError
6265
- */
6266
- static aiBotV1BotsDiscordUserConfigList({
6267
- org
6268
- }) {
6269
- return request(OpenAPI, {
6270
- method: 'GET',
6271
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
6272
- path: {
6273
- 'org': org
6274
- }
6275
- });
6276
- }
6277
- /**
6278
- * Setup discord user id linkage with discord bots
6279
- * this will be used to authenticate the user when interracting with discord bots.
6280
- * the user id can be copied from the discord app after tapping on the user profile.
6281
- * @returns DiscordUserConfig
6282
- * @throws ApiError
6283
- */
6284
- static aiBotV1BotsDiscordUserConfigCreate({
6285
- org,
6286
- requestBody
6287
- }) {
6288
- return request(OpenAPI, {
6289
- method: 'POST',
6290
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
6291
- path: {
6292
- 'org': org
6293
- },
6294
- body: requestBody,
6295
- mediaType: 'application/json'
6296
- });
6297
- }
6298
- /**
6299
- * Setup discord user id linkage with discord bots
6300
- * this will be used to authenticate the user when interracting with discord bots.
6301
- * the user id can be copied from the discord app after tapping on the user profile.
6302
- * @returns DiscordUserConfig
6303
- * @throws ApiError
6304
- */
6305
- static aiBotV1BotsDiscordUserConfigRetrieve({
6306
- id,
6307
- org
6308
- }) {
6309
- return request(OpenAPI, {
6310
- method: 'GET',
6311
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6312
- path: {
6313
- 'id': id,
6314
- 'org': org
6315
- }
6316
- });
6317
- }
6318
- /**
6319
- * Setup discord user id linkage with discord bots
6320
- * this will be used to authenticate the user when interracting with discord bots.
6321
- * the user id can be copied from the discord app after tapping on the user profile.
6322
- * @returns DiscordUserConfig
6323
- * @throws ApiError
6324
- */
6325
- static aiBotV1BotsDiscordUserConfigUpdate({
6326
- id,
6327
- org,
6328
- requestBody
6329
- }) {
6330
- return request(OpenAPI, {
6331
- method: 'PUT',
6332
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6333
- path: {
6334
- 'id': id,
6335
- 'org': org
6336
- },
6337
- body: requestBody,
6338
- mediaType: 'application/json'
6339
- });
6340
- }
6341
- /**
6342
- * Setup discord user id linkage with discord bots
6343
- * this will be used to authenticate the user when interracting with discord bots.
6344
- * the user id can be copied from the discord app after tapping on the user profile.
6345
- * @returns DiscordUserConfig
6346
- * @throws ApiError
6347
- */
6348
- static aiBotV1BotsDiscordUserConfigPartialUpdate({
6349
- id,
6350
- org,
6351
- requestBody
6352
- }) {
6353
- return request(OpenAPI, {
6354
- method: 'PATCH',
6355
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6356
- path: {
6357
- 'id': id,
6358
- 'org': org
6359
- },
6360
- body: requestBody,
6361
- mediaType: 'application/json'
6362
- });
6363
- }
6364
- /**
6365
- * Setup discord user id linkage with discord bots
6366
- * this will be used to authenticate the user when interracting with discord bots.
6367
- * the user id can be copied from the discord app after tapping on the user profile.
6368
- * @returns void
6369
- * @throws ApiError
6370
- */
6371
- static aiBotV1BotsDiscordUserConfigDestroy({
6372
- id,
6373
- org
6374
- }) {
6375
- return request(OpenAPI, {
6376
- method: 'DELETE',
6377
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6378
- path: {
6379
- 'id': id,
6380
- 'org': org
6381
- }
6382
- });
6383
- }
6384
- /**
6385
- * Setup slack username and domain linkage with slack bots
6386
- * this will be used to authenticate the user when interracting with slack bots.
6387
- * @returns SlackUserConfig
6388
- * @throws ApiError
6389
- */
6390
- static aiBotV1BotsSlackUserConfigList({
6391
- org
6392
- }) {
6393
- return request(OpenAPI, {
6394
- method: 'GET',
6395
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
6396
- path: {
6397
- 'org': org
6398
- }
6399
- });
6400
- }
6401
- /**
6402
- * Setup slack username and domain linkage with slack bots
6403
- * this will be used to authenticate the user when interracting with slack bots.
6404
- * @returns SlackUserConfig
6405
- * @throws ApiError
6406
- */
6407
- static aiBotV1BotsSlackUserConfigCreate({
6408
- org,
6409
- requestBody
6410
- }) {
6411
- return request(OpenAPI, {
6412
- method: 'POST',
6413
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
6414
- path: {
6415
- 'org': org
6416
- },
6417
- body: requestBody,
6418
- mediaType: 'application/json'
6419
- });
6420
- }
6421
- /**
6422
- * Setup slack username and domain linkage with slack bots
6423
- * this will be used to authenticate the user when interracting with slack bots.
6424
- * @returns SlackUserConfig
6425
- * @throws ApiError
6426
- */
6427
- static aiBotV1BotsSlackUserConfigRetrieve({
6428
- id,
6429
- org
6430
- }) {
6431
- return request(OpenAPI, {
6432
- method: 'GET',
6433
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6434
- path: {
6435
- 'id': id,
6436
- 'org': org
6437
- }
6438
- });
6439
- }
6440
- /**
6441
- * Setup slack username and domain linkage with slack bots
6442
- * this will be used to authenticate the user when interracting with slack bots.
6443
- * @returns SlackUserConfig
6444
- * @throws ApiError
6445
- */
6446
- static aiBotV1BotsSlackUserConfigUpdate({
6447
- id,
6448
- org,
6449
- requestBody
6450
- }) {
6451
- return request(OpenAPI, {
6452
- method: 'PUT',
6453
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6454
- path: {
6455
- 'id': id,
6456
- 'org': org
6457
- },
6458
- body: requestBody,
6459
- mediaType: 'application/json'
6460
- });
6461
- }
6462
- /**
6463
- * Setup slack username and domain linkage with slack bots
6464
- * this will be used to authenticate the user when interracting with slack bots.
6465
- * @returns SlackUserConfig
6466
- * @throws ApiError
6467
- */
6468
- static aiBotV1BotsSlackUserConfigPartialUpdate({
6469
- id,
6470
- org,
6471
- requestBody
6472
- }) {
6473
- return request(OpenAPI, {
6474
- method: 'PATCH',
6475
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6476
- path: {
6477
- 'id': id,
6478
- 'org': org
6479
- },
6480
- body: requestBody,
6481
- mediaType: 'application/json'
6482
- });
6483
- }
6484
- /**
6485
- * Setup slack username and domain linkage with slack bots
6486
- * this will be used to authenticate the user when interracting with slack bots.
6487
- * @returns void
6488
- * @throws ApiError
6489
- */
6490
- static aiBotV1BotsSlackUserConfigDestroy({
6491
- id,
6492
- org
6493
- }) {
6494
- return request(OpenAPI, {
6495
- method: 'DELETE',
6496
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6497
- path: {
6498
- 'id': id,
6499
- 'org': org
6500
- }
6501
- });
6502
- }
6503
- /**
6504
- * Setup phone number linkage with whatsapp bots
6505
- * This phone number will be used to authenticate and allow access to whatsapp bots.
6506
- * @returns WhatsappUserConfig
6507
- * @throws ApiError
6508
- */
6509
- static aiBotV1BotsWhatsappUserConfigList({
6510
- org
6511
- }) {
6512
- return request(OpenAPI, {
6513
- method: 'GET',
6514
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
6515
- path: {
6516
- 'org': org
6517
- }
6518
- });
6519
- }
6520
- /**
6521
- * Setup phone number linkage with whatsapp bots
6522
- * This phone number will be used to authenticate and allow access to whatsapp bots.
6523
- * @returns WhatsappUserConfig
6524
- * @throws ApiError
6525
- */
6526
- static aiBotV1BotsWhatsappUserConfigCreate({
6527
- org,
6528
- requestBody
6529
- }) {
6530
- return request(OpenAPI, {
6531
- method: 'POST',
6532
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
6533
- path: {
6534
- 'org': org
6535
- },
6536
- body: requestBody,
6537
- mediaType: 'application/json'
6538
- });
6539
- }
6540
- /**
6541
- * Setup phone number linkage with whatsapp bots
6542
- * This phone number will be used to authenticate and allow access to whatsapp bots.
6543
- * @returns WhatsappUserConfig
6544
- * @throws ApiError
6545
- */
6546
- static aiBotV1BotsWhatsappUserConfigRetrieve({
6547
- id,
6548
- org
6549
- }) {
6550
- return request(OpenAPI, {
6551
- method: 'GET',
6552
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6553
- path: {
6554
- 'id': id,
6555
- 'org': org
6556
- }
6557
- });
6558
- }
6559
- /**
6560
- * Setup phone number linkage with whatsapp bots
6561
- * This phone number will be used to authenticate and allow access to whatsapp bots.
6562
- * @returns WhatsappUserConfig
6563
- * @throws ApiError
6564
- */
6565
- static aiBotV1BotsWhatsappUserConfigUpdate({
6566
- id,
6567
- org,
6568
- requestBody
6569
- }) {
6570
- return request(OpenAPI, {
6571
- method: 'PUT',
6572
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6573
- path: {
6574
- 'id': id,
6575
- 'org': org
6576
- },
6577
- body: requestBody,
6578
- mediaType: 'application/json'
6579
- });
6580
- }
6581
- /**
6582
- * Setup phone number linkage with whatsapp bots
6583
- * This phone number will be used to authenticate and allow access to whatsapp bots.
6584
- * @returns WhatsappUserConfig
6585
- * @throws ApiError
6586
- */
6587
- static aiBotV1BotsWhatsappUserConfigPartialUpdate({
6588
- id,
6589
- org,
6590
- requestBody
6591
- }) {
6592
- return request(OpenAPI, {
6593
- method: 'PATCH',
6594
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6595
- path: {
6596
- 'id': id,
6597
- 'org': org
6598
- },
6599
- body: requestBody,
6600
- mediaType: 'application/json'
6601
- });
6602
- }
6603
- /**
6604
- * Setup phone number linkage with whatsapp bots
6605
- * This phone number will be used to authenticate and allow access to whatsapp bots.
6606
- * @returns void
6607
- * @throws ApiError
6608
- */
6609
- static aiBotV1BotsWhatsappUserConfigDestroy({
6610
- id,
6611
- org
6612
- }) {
6613
- return request(OpenAPI, {
6614
- method: 'DELETE',
6615
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6616
- path: {
6617
- 'id': id,
6618
- 'org': org
6619
- }
6620
- });
6621
- }
6622
- /**
6623
- * Webhook endpoint to receive and process discord messages.
6624
- * @returns DiscordWebhook
6625
- * @throws ApiError
6626
- */
6627
- static aiBotV1BotsWebhooksDiscordCreate({
6628
- name,
6629
- org,
6630
- requestBody
6631
- }) {
6632
- return request(OpenAPI, {
6633
- method: 'POST',
6634
- url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
6635
- path: {
6636
- 'name': name,
6637
- 'org': org
6638
- },
6639
- body: requestBody,
6640
- mediaType: 'application/json'
6641
- });
6642
- }
6643
- /**
6644
- * @returns SlackWebhook
6645
- * @throws ApiError
6646
- */
6647
- static aiBotV1BotsWebhooksSlackCreate({
6648
- name,
6649
- org,
6650
- requestBody
6651
- }) {
6652
- return request(OpenAPI, {
6653
- method: 'POST',
6654
- url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
6655
- path: {
6656
- 'name': name,
6657
- 'org': org
6658
- },
6659
- body: requestBody,
6660
- mediaType: 'application/json'
6661
- });
6662
- }
6663
- /**
6664
- * @returns TeamsWebhook
6665
- * @throws ApiError
6666
- */
6667
- static aiBotV1BotsWebhooksTeamsCreate({
6668
- name,
6669
- org,
6670
- requestBody
6671
- }) {
6672
- return request(OpenAPI, {
6673
- method: 'POST',
6674
- url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
6675
- path: {
6676
- 'name': name,
6677
- 'org': org
6678
- },
6679
- body: requestBody,
6680
- mediaType: 'application/json'
6681
- });
6682
- }
6683
- /**
6684
- * Webhook endpoint to receive and process discord messages.
6685
- * @returns WebexWebhook
6686
- * @throws ApiError
6687
- */
6688
- static aiBotV1BotsWebhooksWebexCreate({
6689
- name,
6690
- org,
6691
- requestBody
6692
- }) {
6693
- return request(OpenAPI, {
6694
- method: 'POST',
6695
- url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
6696
- path: {
6697
- 'name': name,
6698
- 'org': org
6699
- },
6700
- body: requestBody,
6701
- mediaType: 'application/json'
6702
- });
6703
- }
6704
- /**
6705
- * Respond to whatsapp's webhook challenge.
6706
- * Parameters Required include the tenant key (org) and the name of the bot: (name)
6707
- * @returns WhatAppWebHook
6708
- * @throws ApiError
6709
- */
6710
- static aiBotV1BotsWebhooksWhatsappRetrieve({
6711
- name,
6712
- org
6713
- }) {
6714
- return request(OpenAPI, {
6715
- method: 'GET',
6716
- url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
6717
- path: {
6718
- 'name': name,
6719
- 'org': org
6720
- }
6721
- });
6722
- }
6723
- /**
6724
- * Accept and process webhook events from whatsapp.
6725
- * @returns WhatAppWebHook
6726
- * @throws ApiError
6727
- */
6728
- static aiBotV1BotsWebhooksWhatsappCreate({
6729
- name,
6730
- org,
6731
- requestBody
6732
- }) {
6733
- return request(OpenAPI, {
6734
- method: 'POST',
6735
- url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
6736
- path: {
6737
- 'name': name,
6738
- 'org': org
6739
- },
6740
- body: requestBody,
6741
- mediaType: 'application/json'
6742
- });
6743
- }
6744
- }
6745
-
6746
- class AiFinetuningService {
6747
- /**
6748
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6749
- * @returns PaginatedDataSetList
6750
- * @throws ApiError
6751
- */
6752
- static aiFinetuningV1OrgUserDatasetsList({
6753
- org,
6754
- username,
6755
- dateCreated,
6756
- numDataPoints,
6757
- ordering,
6758
- page,
6759
- pageSize,
6760
- retryAttempts,
6761
- search,
6762
- status
6763
- }) {
6764
- return request(OpenAPI, {
6765
- method: 'GET',
6766
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
6767
- path: {
6768
- 'org': org,
6769
- 'username': username
6770
- },
6771
- query: {
6772
- 'date_created': dateCreated,
6773
- 'num_data_points': numDataPoints,
6774
- 'ordering': ordering,
6775
- 'page': page,
6776
- 'page_size': pageSize,
6777
- 'retry_attempts': retryAttempts,
6778
- 'search': search,
6779
- 'status': status
6780
- }
6781
- });
6782
- }
6783
- /**
6784
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6785
- * @returns DataSetCreate
6786
- * @throws ApiError
6787
- */
6788
- static aiFinetuningV1OrgUserDatasetsCreate({
6789
- org,
6790
- username,
6791
- requestBody
6792
- }) {
6793
- return request(OpenAPI, {
6794
- method: 'POST',
6795
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
6796
- path: {
6797
- 'org': org,
6798
- 'username': username
6799
- },
6800
- body: requestBody,
6801
- mediaType: 'application/json'
6802
- });
6803
- }
6804
- /**
6805
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6806
- * @returns DataSet
6807
- * @throws ApiError
6808
- */
6809
- static aiFinetuningV1OrgUserDatasetsRetrieve({
6810
- id,
6811
- org,
6812
- username
6813
- }) {
6814
- return request(OpenAPI, {
6815
- method: 'GET',
6816
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
6817
- path: {
6818
- 'id': id,
6819
- 'org': org,
6820
- 'username': username
6821
- }
6822
- });
6823
- }
6824
- /**
6825
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6826
- * @returns DataSet
6827
- * @throws ApiError
6828
- */
6829
- static aiFinetuningV1OrgUserDatasetsUpdate({
6830
- id,
6831
- org,
6832
- username,
6833
- requestBody
6834
- }) {
6835
- return request(OpenAPI, {
6836
- method: 'PUT',
6837
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
6838
- path: {
6839
- 'id': id,
6840
- 'org': org,
6841
- 'username': username
6842
- },
6843
- body: requestBody,
6844
- mediaType: 'application/json'
6845
- });
6846
- }
6847
- /**
6848
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6849
- * @returns DataSet
6850
- * @throws ApiError
6851
- */
6852
- static aiFinetuningV1OrgUserDatasetsPartialUpdate({
6853
- id,
6854
- org,
6855
- username,
6856
- requestBody
6857
- }) {
6858
- return request(OpenAPI, {
6859
- method: 'PATCH',
6860
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
6861
- path: {
6862
- 'id': id,
6863
- 'org': org,
6864
- 'username': username
6865
- },
6866
- body: requestBody,
6867
- mediaType: 'application/json'
6868
- });
6869
- }
6870
- /**
6871
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6872
- * @returns void
6873
- * @throws ApiError
6874
- */
6875
- static aiFinetuningV1OrgUserDatasetsDestroy({
6876
- id,
6877
- org,
6878
- username
6879
- }) {
6880
- return request(OpenAPI, {
6881
- method: 'DELETE',
6882
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
6883
- path: {
6884
- 'id': id,
6885
- 'org': org,
6886
- 'username': username
6887
- }
6888
- });
6889
- }
6890
- /**
6891
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6892
- * @returns PaginatedTrainingList
6893
- * @throws ApiError
6894
- */
6895
- static aiFinetuningV1OrgUserTrainingsList({
6896
- org,
6897
- username,
6898
- baseModelName,
6899
- dataset,
6900
- dateCreated,
6901
- fineTunedModel,
6902
- lastModified,
6903
- ordering,
6904
- page,
6905
- pageSize,
6906
- preprocessDataset,
6907
- provider,
6908
- search,
6909
- status
6910
- }) {
6911
- return request(OpenAPI, {
6912
- method: 'GET',
6913
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
6914
- path: {
6915
- 'org': org,
6916
- 'username': username
6917
- },
6918
- query: {
6919
- 'base_model_name': baseModelName,
6920
- 'dataset': dataset,
6921
- 'date_created': dateCreated,
6922
- 'fine_tuned_model': fineTunedModel,
6923
- 'last_modified': lastModified,
6924
- 'ordering': ordering,
6925
- 'page': page,
6926
- 'page_size': pageSize,
6927
- 'preprocess_dataset': preprocessDataset,
6928
- 'provider': provider,
6929
- 'search': search,
6930
- 'status': status
6931
- }
6932
- });
6933
- }
6934
- /**
6935
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6936
- * @returns TrainingCreate
6937
- * @throws ApiError
6938
- */
6939
- static aiFinetuningV1OrgUserTrainingsCreate({
6940
- org,
6941
- username,
6942
- requestBody
6943
- }) {
6944
- return request(OpenAPI, {
6945
- method: 'POST',
6946
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
6947
- path: {
6948
- 'org': org,
6949
- 'username': username
6950
- },
6951
- body: requestBody,
6952
- mediaType: 'application/json'
6953
- });
6954
- }
6955
- /**
6956
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6957
- * @returns Training
6958
- * @throws ApiError
6959
- */
6960
- static aiFinetuningV1OrgUserTrainingsRetrieve({
6961
- id,
6962
- org,
6963
- username
6964
- }) {
6965
- return request(OpenAPI, {
6966
- method: 'GET',
6967
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
6968
- path: {
6969
- 'id': id,
6970
- 'org': org,
6971
- 'username': username
6972
- }
6973
- });
6974
- }
6975
- /**
6976
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6977
- * @returns TrainingCreate
6978
- * @throws ApiError
6979
- */
6980
- static aiFinetuningV1OrgUserTrainingsUpdate({
6981
- id,
6982
- org,
6983
- username,
6984
- requestBody
6985
- }) {
6986
- return request(OpenAPI, {
6987
- method: 'PUT',
6988
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
6989
- path: {
6990
- 'id': id,
6991
- 'org': org,
6992
- 'username': username
6993
- },
6994
- body: requestBody,
6995
- mediaType: 'application/json'
6996
- });
6997
- }
6998
- /**
6999
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7000
- * @returns TrainingCreate
7001
- * @throws ApiError
7002
- */
7003
- static aiFinetuningV1OrgUserTrainingsPartialUpdate({
7004
- id,
7005
- org,
7006
- username,
7007
- requestBody
7008
- }) {
7009
- return request(OpenAPI, {
7010
- method: 'PATCH',
7011
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7012
- path: {
7013
- 'id': id,
7014
- 'org': org,
7015
- 'username': username
7016
- },
7017
- body: requestBody,
7018
- mediaType: 'application/json'
7019
- });
7020
- }
7021
- /**
7022
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7023
- * @returns void
7024
- * @throws ApiError
7025
- */
7026
- static aiFinetuningV1OrgUserTrainingsDestroy({
7027
- id,
7028
- org,
7029
- username
7030
- }) {
7031
- return request(OpenAPI, {
7032
- method: 'DELETE',
7033
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7034
- path: {
7035
- 'id': id,
7036
- 'org': org,
7037
- 'username': username
7038
- }
7039
- });
7040
- }
7041
- /**
7042
- * Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
7043
- * Filtering and pagination is allowed.
7044
- *
7045
- * NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
7046
- * training list endpoint.
7047
- * Returns:
7048
- * Response: A paginated response containing the serialized fine-tuned models.
7049
- * @returns Training
7050
- * @throws ApiError
7051
- */
7052
- static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve({
7053
- org,
7054
- username
7055
- }) {
7056
- return request(OpenAPI, {
7057
- method: 'GET',
7058
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
7059
- path: {
7060
- 'org': org,
7061
- 'username': username
7062
- }
7063
- });
7064
- }
7065
- }
7066
-
7067
- class AiIndexService {
7068
- /**
7069
- * Retrieve details of a specific document embedding.
7070
- *
7071
- * This endpoint returns detailed information about a specific
7072
- * document embedding identified by its ID.
7073
- *
7074
- * Args:
7075
- * request: The HTTP request.
7076
- * org: Organization key identifier.
7077
- * document_id: The ID of the document embedding to retrieve.
7078
- *
7079
- * Returns:
7080
- * Response: Detailed information about the document embedding.
7081
- *
7082
- * Raises:
7083
- * NotFound: If the specified document embedding does not exist.
7084
- * @returns RetrieverDocumentEmbedding
7085
- * @throws ApiError
7086
- */
7087
- static aiIndexOrgsUsersDocumentsRetrieve({
7088
- documentId,
7089
- org,
7090
- userId
7091
- }) {
7092
- return request(OpenAPI, {
7093
- method: 'GET',
7094
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
7095
- path: {
7096
- 'document_id': documentId,
7097
- 'org': org,
7098
- 'user_id': userId
7099
- },
7100
- errors: {
7101
- 404: `Document not found`
7102
- }
7103
- });
7104
- }
7105
- /**
7106
- * Update a specific document embedding.
7107
- *
7108
- * This endpoint allows updating various properties of a document embedding,
7109
- * including its name, type, pathway, and training status.
7110
- *
7111
- * Args:
7112
- * request: The HTTP request containing the updated document data.
7113
- * org: Organization key identifier.
7114
- * document_id: The ID of the document embedding to update.
7115
- *
7116
- * Returns:
7117
- * Response: The updated document embedding information.
7118
- *
7119
- * Raises:
7120
- * BadRequest: If the provided data is invalid.
7121
- * NotFound: If the specified document embedding does not exist.
7122
- * @returns RetrieverDocumentEmbedding
7123
- * @throws ApiError
7124
- */
7125
- static aiIndexOrgsUsersDocumentsUpdate({
7126
- documentId,
7127
- org,
7128
- userId,
7129
- formData
7130
- }) {
7131
- return request(OpenAPI, {
7132
- method: 'PUT',
7133
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
7134
- path: {
7135
- 'document_id': documentId,
7136
- 'org': org,
7137
- 'user_id': userId
7138
- },
7139
- formData: formData,
7140
- mediaType: 'multipart/form-data',
7141
- errors: {
7142
- 400: `Invalid request data`,
7143
- 404: `Document not found`
7144
- }
7145
- });
7146
- }
7147
- /**
7148
- * Delete a specific document embedding.
7149
- *
7150
- * This endpoint removes a document embedding from the system,
7151
- * including untraining it from any associated pathways.
7152
- *
7153
- * Args:
7154
- * request: The HTTP request.
7155
- * org: Organization key identifier.
7156
- * document_id: The ID of the document embedding to delete.
7157
- *
7158
- * Returns:
7159
- * Response: An empty response with a 204 status code if successful.
7160
- *
7161
- * Raises:
7162
- * NotFound: If the specified document embedding does not exist.
7163
- * @returns void
7164
- * @throws ApiError
7165
- */
7166
- static aiIndexOrgsUsersDocumentsDestroy({
7167
- documentId,
7168
- org,
7169
- userId
7170
- }) {
7171
- return request(OpenAPI, {
7172
- method: 'DELETE',
7173
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
7174
- path: {
7175
- 'document_id': documentId,
7176
- 'org': org,
7177
- 'user_id': userId
7178
- },
7179
- errors: {
7180
- 404: `Document not found`
7181
- }
7182
- });
7183
- }
7184
- /**
7185
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7186
- * @returns DocumentSettingsResponse
7187
- * @throws ApiError
7188
- */
7189
- static aiIndexOrgsUsersDocumentsSettingsRetrieve({
7190
- documentId,
7191
- org,
7192
- userId
7193
- }) {
7194
- return request(OpenAPI, {
7195
- method: 'GET',
7196
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
7197
- path: {
7198
- 'document_id': documentId,
7199
- 'org': org,
7200
- 'user_id': userId
7201
- }
7202
- });
7203
- }
7204
- /**
7205
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7206
- * @returns DocumentSettingsResponse
7207
- * @throws ApiError
7208
- */
7209
- static aiIndexOrgsUsersDocumentsSettingsCreate({
7210
- documentId,
7211
- org,
7212
- userId,
7213
- requestBody
7214
- }) {
7215
- return request(OpenAPI, {
7216
- method: 'POST',
7217
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
7218
- path: {
7219
- 'document_id': documentId,
7220
- 'org': org,
7221
- 'user_id': userId
7222
- },
7223
- body: requestBody,
7224
- mediaType: 'application/json'
7225
- });
7226
- }
7227
- /**
7228
- * Train a graph-based document through a worker process.
7229
- *
7230
- * This endpoint queues graph-based documents for training through a
7231
- * specialized worker process that handles knowledge graph processing.
7232
- *
7233
- * Args:
7234
- * request: The HTTP request containing the document information.
7235
- * org: Organization key identifier.
7236
- *
7237
- * Returns:
7238
- * Response: A confirmation that the document was queued for training,
7239
- * including a task ID for tracking the progress.
7240
- *
7241
- * Raises:
7242
- * ValidationError: If the request data is invalid.
7243
- * BadRequest: If there was an error processing the document.
7244
- * @returns TrainDocumentViewResponse
7245
- * @throws ApiError
7246
- */
7247
- static aiIndexOrgsUsersDocumentsGraphTrainCreate({
7248
- org,
7249
- userId,
7250
- formData
7251
- }) {
7252
- return request(OpenAPI, {
7253
- method: 'POST',
7254
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/graph-train/',
7255
- path: {
7256
- 'org': org,
7257
- 'user_id': userId
7258
- },
7259
- formData: formData,
7260
- mediaType: 'multipart/form-data',
7261
- errors: {
7262
- 400: `Invalid request data or document processing error`
7263
- }
7264
- });
7265
- }
7266
- /**
7267
- * Description:
7268
- * Retrieves a list of document embeddings for a specific pathway with optional search and pagination.
7269
- *
7270
- * Methods:
7271
- * - GET: Retrieves document embeddings that match the specified search criteria and are paginated according to offset and limit.
7272
- *
7273
- * Parameters:
7274
- * - search (str): Search query to filter document names or URLs.
7275
- * - offset (int): Offset number for pagination.
7276
- * - limit (int): Limit number for pagination.
7277
- *
7278
- * Returns:
7279
- * - GET: A paginated list of document embeddings with their details.
7280
- * {
7281
- * "count": 10,
7282
- * "next": "http://api.example.com/retriever_documents/?offset=10&limit=2",
7283
- * "previous": "http://api.example.com/retriever_documents/?offset=0&limit=2",
7284
- * "results": [
7285
- * {
7286
- * "document_name": "Document2",
7287
- * "platform_key": "example_platform",
7288
- * "pathway": "example_pathway"
7289
- * }
7290
- * ]
7291
- * }
7292
- *
7293
- * Error Responses:
7294
- * - 400 Bad Request: Invalid query parameters.
7295
- * - 404 Not Found: No document embeddings found for the specified criteria.
7296
- * @returns RetrieverDocumentEmbedding
7297
- * @throws ApiError
7298
- */
7299
- static aiIndexOrgsUsersDocumentsPathwaysList({
7300
- org,
7301
- pathway,
7302
- userId,
7303
- limit,
7304
- offset,
7305
- search
7306
- }) {
7307
- return request(OpenAPI, {
7308
- method: 'GET',
7309
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/pathways/{pathway}/',
7310
- path: {
7311
- 'org': org,
7312
- 'pathway': pathway,
7313
- 'user_id': userId
7314
- },
7315
- query: {
7316
- 'limit': limit,
7317
- 'offset': offset,
7318
- 'search': search
7319
- }
7320
- });
7321
- }
7322
- /**
7323
- * Retrieve resource documents similar to the given query.
7324
- *
7325
- * This endpoint performs a semantic search to find documents that are
7326
- * relevant to the provided query within the specified pathway.
7327
- *
7328
- * Args:
7329
- * request: The HTTP request containing the search query.
7330
- * org: Organization key identifier.
7331
- *
7332
- * Returns:
7333
- * Response: A list of documents relevant to the search query.
7334
- *
7335
- * Raises:
7336
- * ValidationError: If the request data is invalid.
7337
- * @returns RetrieverResponseSearch
7338
- * @throws ApiError
7339
- */
7340
- static aiIndexOrgsUsersDocumentsSearchCreate({
7341
- org,
7342
- userId,
7343
- requestBody
7344
- }) {
7345
- return request(OpenAPI, {
7346
- method: 'POST',
7347
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/search/',
7348
- path: {
7349
- 'org': org,
7350
- 'user_id': userId
7351
- },
7352
- body: requestBody,
7353
- mediaType: 'application/json',
7354
- errors: {
7355
- 400: `Invalid request data`
7356
- }
7357
- });
7358
- }
7359
- /**
7360
- * Retrieve document sources related to a given query.
7361
- *
7362
- * This endpoint performs a semantic search to find document sources
7363
- * that are relevant to the provided query within the specified pathway,
7364
- * and returns them along with confidence levels.
7365
- *
7366
- * Args:
7367
- * request: The HTTP request containing the search query.
7368
- * org: Organization key identifier.
7369
- *
7370
- * Returns:
7371
- * Response: A list of document sources with confidence levels.
7372
- *
7373
- * Raises:
7374
- * ValidationError: If the request data is invalid.
7375
- * @returns RetrieverRequestSearchDocument
7376
- * @throws ApiError
7377
- */
7378
- static aiIndexOrgsUsersDocumentsSourcesCreate({
7379
- org,
7380
- userId,
7381
- requestBody
7382
- }) {
7383
- return request(OpenAPI, {
7384
- method: 'POST',
7385
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/sources/',
7386
- path: {
7387
- 'org': org,
7388
- 'user_id': userId
7389
- },
7390
- body: requestBody,
7391
- mediaType: 'application/json',
7392
- errors: {
7393
- 400: `Invalid request data`
7394
- }
7395
- });
7396
- }
7397
- /**
7398
- * Check the status of a document training task.
7399
- *
7400
- * This endpoint retrieves the current status of an asynchronous
7401
- * document training task that was previously initiated.
7402
- *
7403
- * Args:
7404
- * request: The HTTP request.
7405
- * org: Organization key identifier.
7406
- * task_id: The ID of the training task to check.
7407
- *
7408
- * Returns:
7409
- * Response: The current status of the document training task,
7410
- * which can be "pending", "completed", or "failed".
7411
- * @returns CheckDocumentTrainingStatus
7412
- * @throws ApiError
7413
- */
7414
- static aiIndexOrgsUsersDocumentsTasksRetrieve({
7415
- org,
7416
- taskId,
7417
- userId
7418
- }) {
7419
- return request(OpenAPI, {
7420
- method: 'GET',
7421
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/tasks/{task_id}/',
7422
- path: {
7423
- 'org': org,
7424
- 'task_id': taskId,
7425
- 'user_id': userId
7426
- }
7427
- });
7428
- }
7429
- /**
7430
- * Train a document through a worker process.
7431
- *
7432
- * This endpoint queues larger documents for training through a worker
7433
- * process, which is more suitable for handling documents that would
7434
- * take too long to process directly.
7435
- *
7436
- * Args:
7437
- * request: The HTTP request containing the document information.
7438
- * org: Organization key identifier.
7439
- *
7440
- * Returns:
7441
- * Response: A confirmation that the document was queued for training,
7442
- * including a task ID for tracking the progress.
7443
- *
7444
- * Raises:
7445
- * ValidationError: If the request data is invalid.
7446
- * BadRequest: If there was an error processing the document.
7447
- * @returns TrainDocumentViewResponse
7448
- * @throws ApiError
7449
- */
7450
- static aiIndexOrgsUsersDocumentsTrainCreate({
7451
- org,
7452
- userId,
7453
- formData
7454
- }) {
7455
- return request(OpenAPI, {
7456
- method: 'POST',
7457
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/train/',
7458
- path: {
7459
- 'org': org,
7460
- 'user_id': userId
7461
- },
7462
- formData: formData,
7463
- mediaType: 'multipart/form-data',
7464
- errors: {
7465
- 400: `Invalid request data`
7466
- }
7467
- });
7468
- }
7469
- /**
7470
- * Train a document directly without using a worker.
7471
- *
7472
- * This endpoint is designed for training smaller documents directly
7473
- * without queuing them through a worker process. For larger documents,
7474
- * use the TrainDocumentView endpoint instead.
7475
- *
7476
- * Args:
7477
- * request: The HTTP request containing the document information.
7478
- * org: Organization key identifier.
7479
- *
7480
- * Returns:
7481
- * Response: A confirmation that the document was trained successfully.
7482
- *
7483
- * Raises:
7484
- * ValidationError: If the request data is invalid.
7485
- * BadRequest: If the document training failed.
7486
- * @returns RetreiverTrainViewResponse
7487
- * @throws ApiError
7488
- */
7489
- static aiIndexOrgsUsersDocumentsTrainRetrieverCreate({
7490
- org,
7491
- userId,
7492
- formData
7493
- }) {
7494
- return request(OpenAPI, {
7495
- method: 'POST',
7496
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/train/retriever/',
7497
- path: {
7498
- 'org': org,
7499
- 'user_id': userId
7500
- },
7501
- formData: formData,
7502
- mediaType: 'multipart/form-data',
7503
- errors: {
7504
- 400: `Invalid request data or training failed`
7505
- }
6172
+ formData: formData,
6173
+ mediaType: 'multipart/form-data',
6174
+ errors: {
6175
+ 400: `Invalid request data or training failed`
6176
+ }
7506
6177
  });
7507
6178
  }
7508
6179
  /**
@@ -8933,6 +7604,246 @@ class AiMentorService {
8933
7604
  }
8934
7605
  });
8935
7606
  }
7607
+ /**
7608
+ * API ViewSet for managing call configurations.
7609
+ *
7610
+ * This ViewSet provides endpoints to retrieve, create, and update call configurations
7611
+ * for mentors. Call configurations define how voice calls are handled for a mentor.
7612
+ *
7613
+ * Permissions:
7614
+ * - Accessible only to platform admins.
7615
+ *
7616
+ * Endpoints:
7617
+ * GET /api/org/{org}/mentors/{mentor_pk}/call-configurations/
7618
+ * - List all call configurations for a specific mentor
7619
+ * - Returns paginated list of call configurations
7620
+ *
7621
+ * POST /api/org/{org}/mentors/{mentor_pk}/call-configurations/
7622
+ * - Create a new call configuration for a mentor
7623
+ * - Requires call configuration data in request body
7624
+ *
7625
+ * PUT /api/org/{org}/mentors/{mentor_pk}/call-configurations/{id}/
7626
+ * - Update an existing call configuration
7627
+ * - Requires call configuration data in request body
7628
+ *
7629
+ * Query Parameters:
7630
+ * - mentor: Filter configurations by mentor ID
7631
+ *
7632
+ * Returns:
7633
+ * - CallConfigurationSerializer data
7634
+ * @returns CallConfiguration
7635
+ * @throws ApiError
7636
+ */
7637
+ static aiMentorOrgsUsersCallConfigurationsList({
7638
+ org,
7639
+ userId,
7640
+ mentor,
7641
+ mode,
7642
+ ordering,
7643
+ search
7644
+ }) {
7645
+ return request(OpenAPI, {
7646
+ method: 'GET',
7647
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/call-configurations/',
7648
+ path: {
7649
+ 'org': org,
7650
+ 'user_id': userId
7651
+ },
7652
+ query: {
7653
+ 'mentor': mentor,
7654
+ 'mode': mode,
7655
+ 'ordering': ordering,
7656
+ 'search': search
7657
+ }
7658
+ });
7659
+ }
7660
+ /**
7661
+ * API ViewSet for managing call configurations.
7662
+ *
7663
+ * This ViewSet provides endpoints to retrieve, create, and update call configurations
7664
+ * for mentors. Call configurations define how voice calls are handled for a mentor.
7665
+ *
7666
+ * Permissions:
7667
+ * - Accessible only to platform admins.
7668
+ *
7669
+ * Endpoints:
7670
+ * GET /api/org/{org}/mentors/{mentor_pk}/call-configurations/
7671
+ * - List all call configurations for a specific mentor
7672
+ * - Returns paginated list of call configurations
7673
+ *
7674
+ * POST /api/org/{org}/mentors/{mentor_pk}/call-configurations/
7675
+ * - Create a new call configuration for a mentor
7676
+ * - Requires call configuration data in request body
7677
+ *
7678
+ * PUT /api/org/{org}/mentors/{mentor_pk}/call-configurations/{id}/
7679
+ * - Update an existing call configuration
7680
+ * - Requires call configuration data in request body
7681
+ *
7682
+ * Query Parameters:
7683
+ * - mentor: Filter configurations by mentor ID
7684
+ *
7685
+ * Returns:
7686
+ * - CallConfigurationSerializer data
7687
+ * @returns CallConfiguration
7688
+ * @throws ApiError
7689
+ */
7690
+ static aiMentorOrgsUsersCallConfigurationsCreate({
7691
+ org,
7692
+ userId,
7693
+ requestBody
7694
+ }) {
7695
+ return request(OpenAPI, {
7696
+ method: 'POST',
7697
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/call-configurations/',
7698
+ path: {
7699
+ 'org': org,
7700
+ 'user_id': userId
7701
+ },
7702
+ body: requestBody,
7703
+ mediaType: 'application/json'
7704
+ });
7705
+ }
7706
+ /**
7707
+ * API ViewSet for managing call configurations.
7708
+ *
7709
+ * This ViewSet provides endpoints to retrieve, create, and update call configurations
7710
+ * for mentors. Call configurations define how voice calls are handled for a mentor.
7711
+ *
7712
+ * Permissions:
7713
+ * - Accessible only to platform admins.
7714
+ *
7715
+ * Endpoints:
7716
+ * GET /api/org/{org}/mentors/{mentor_pk}/call-configurations/
7717
+ * - List all call configurations for a specific mentor
7718
+ * - Returns paginated list of call configurations
7719
+ *
7720
+ * POST /api/org/{org}/mentors/{mentor_pk}/call-configurations/
7721
+ * - Create a new call configuration for a mentor
7722
+ * - Requires call configuration data in request body
7723
+ *
7724
+ * PUT /api/org/{org}/mentors/{mentor_pk}/call-configurations/{id}/
7725
+ * - Update an existing call configuration
7726
+ * - Requires call configuration data in request body
7727
+ *
7728
+ * Query Parameters:
7729
+ * - mentor: Filter configurations by mentor ID
7730
+ *
7731
+ * Returns:
7732
+ * - CallConfigurationSerializer data
7733
+ * @returns CallConfiguration
7734
+ * @throws ApiError
7735
+ */
7736
+ static aiMentorOrgsUsersCallConfigurationsRetrieve({
7737
+ id,
7738
+ org,
7739
+ userId
7740
+ }) {
7741
+ return request(OpenAPI, {
7742
+ method: 'GET',
7743
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/call-configurations/{id}/',
7744
+ path: {
7745
+ 'id': id,
7746
+ 'org': org,
7747
+ 'user_id': userId
7748
+ }
7749
+ });
7750
+ }
7751
+ /**
7752
+ * API ViewSet for managing call configurations.
7753
+ *
7754
+ * This ViewSet provides endpoints to retrieve, create, and update call configurations
7755
+ * for mentors. Call configurations define how voice calls are handled for a mentor.
7756
+ *
7757
+ * Permissions:
7758
+ * - Accessible only to platform admins.
7759
+ *
7760
+ * Endpoints:
7761
+ * GET /api/org/{org}/mentors/{mentor_pk}/call-configurations/
7762
+ * - List all call configurations for a specific mentor
7763
+ * - Returns paginated list of call configurations
7764
+ *
7765
+ * POST /api/org/{org}/mentors/{mentor_pk}/call-configurations/
7766
+ * - Create a new call configuration for a mentor
7767
+ * - Requires call configuration data in request body
7768
+ *
7769
+ * PUT /api/org/{org}/mentors/{mentor_pk}/call-configurations/{id}/
7770
+ * - Update an existing call configuration
7771
+ * - Requires call configuration data in request body
7772
+ *
7773
+ * Query Parameters:
7774
+ * - mentor: Filter configurations by mentor ID
7775
+ *
7776
+ * Returns:
7777
+ * - CallConfigurationSerializer data
7778
+ * @returns CallConfiguration
7779
+ * @throws ApiError
7780
+ */
7781
+ static aiMentorOrgsUsersCallConfigurationsUpdate({
7782
+ id,
7783
+ org,
7784
+ userId,
7785
+ requestBody
7786
+ }) {
7787
+ return request(OpenAPI, {
7788
+ method: 'PUT',
7789
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/call-configurations/{id}/',
7790
+ path: {
7791
+ 'id': id,
7792
+ 'org': org,
7793
+ 'user_id': userId
7794
+ },
7795
+ body: requestBody,
7796
+ mediaType: 'application/json'
7797
+ });
7798
+ }
7799
+ /**
7800
+ * API ViewSet for managing call configurations.
7801
+ *
7802
+ * This ViewSet provides endpoints to retrieve, create, and update call configurations
7803
+ * for mentors. Call configurations define how voice calls are handled for a mentor.
7804
+ *
7805
+ * Permissions:
7806
+ * - Accessible only to platform admins.
7807
+ *
7808
+ * Endpoints:
7809
+ * GET /api/org/{org}/mentors/{mentor_pk}/call-configurations/
7810
+ * - List all call configurations for a specific mentor
7811
+ * - Returns paginated list of call configurations
7812
+ *
7813
+ * POST /api/org/{org}/mentors/{mentor_pk}/call-configurations/
7814
+ * - Create a new call configuration for a mentor
7815
+ * - Requires call configuration data in request body
7816
+ *
7817
+ * PUT /api/org/{org}/mentors/{mentor_pk}/call-configurations/{id}/
7818
+ * - Update an existing call configuration
7819
+ * - Requires call configuration data in request body
7820
+ *
7821
+ * Query Parameters:
7822
+ * - mentor: Filter configurations by mentor ID
7823
+ *
7824
+ * Returns:
7825
+ * - CallConfigurationSerializer data
7826
+ * @returns CallConfiguration
7827
+ * @throws ApiError
7828
+ */
7829
+ static aiMentorOrgsUsersCallConfigurationsPartialUpdate({
7830
+ id,
7831
+ org,
7832
+ userId,
7833
+ requestBody
7834
+ }) {
7835
+ return request(OpenAPI, {
7836
+ method: 'PATCH',
7837
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/call-configurations/{id}/',
7838
+ path: {
7839
+ 'id': id,
7840
+ 'org': org,
7841
+ 'user_id': userId
7842
+ },
7843
+ body: requestBody,
7844
+ mediaType: 'application/json'
7845
+ });
7846
+ }
8936
7847
  /**
8937
7848
  * Retrieve a list of Mentor Category Groups.
8938
7849
  * @returns MentorCategoryGroup
@@ -34883,8 +33794,6 @@ class UserGroupsService {
34883
33794
 
34884
33795
  exports.AiAccountService = AiAccountService;
34885
33796
  exports.AiAnalyticsService = AiAnalyticsService;
34886
- exports.AiBotService = AiBotService;
34887
- exports.AiFinetuningService = AiFinetuningService;
34888
33797
  exports.AiIndexService = AiIndexService;
34889
33798
  exports.AiMarketingService = AiMarketingService;
34890
33799
  exports.AiMediaService = AiMediaService;