@iblai/iblai-api 4.6.2-dev2-ai → 4.6.2-dev2-ai-plus

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 (88) hide show
  1. package/dist/index.cjs.js +1394 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1393 -2
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +1394 -1
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +39 -0
  8. package/dist/types/models/Bot.d.ts +15 -0
  9. package/dist/types/models/BotCommand.d.ts +6 -0
  10. package/dist/types/models/BotCreate.d.ts +12 -0
  11. package/dist/types/models/DataSet.d.ts +21 -0
  12. package/dist/types/models/DataSetCreate.d.ts +12 -0
  13. package/dist/types/models/DataSetStatusEnum.d.ts +12 -0
  14. package/dist/types/models/DiscordConfig.d.ts +7 -0
  15. package/dist/types/models/DiscordUserConfig.d.ts +10 -0
  16. package/dist/types/models/DiscordWebhook.d.ts +6 -0
  17. package/dist/types/models/PaginatedDataSetList.d.ts +7 -0
  18. package/dist/types/models/PaginatedTrainingList.d.ts +7 -0
  19. package/dist/types/models/PatchedBotCommand.d.ts +6 -0
  20. package/dist/types/models/PatchedBotCreate.d.ts +12 -0
  21. package/dist/types/models/PatchedDataSet.d.ts +21 -0
  22. package/dist/types/models/PatchedDiscordConfig.d.ts +7 -0
  23. package/dist/types/models/PatchedDiscordUserConfig.d.ts +10 -0
  24. package/dist/types/models/PatchedSlackConfig.d.ts +8 -0
  25. package/dist/types/models/PatchedSlackUserConfig.d.ts +17 -0
  26. package/dist/types/models/PatchedTeamsConfig.d.ts +7 -0
  27. package/dist/types/models/PatchedTrainingCreate.d.ts +31 -0
  28. package/dist/types/models/PatchedWebexConfig.d.ts +10 -0
  29. package/dist/types/models/PatchedWhatsappConfig.d.ts +11 -0
  30. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +10 -0
  31. package/dist/types/models/Provider05cEnum.d.ts +14 -0
  32. package/dist/types/models/Provider63aEnum.d.ts +6 -0
  33. package/dist/types/models/SlackConfig.d.ts +8 -0
  34. package/dist/types/models/SlackUserConfig.d.ts +17 -0
  35. package/dist/types/models/SlackWebhook.d.ts +6 -0
  36. package/dist/types/models/TeamsConfig.d.ts +7 -0
  37. package/dist/types/models/TeamsWebhook.d.ts +17 -0
  38. package/dist/types/models/Training.d.ts +41 -0
  39. package/dist/types/models/TrainingCreate.d.ts +31 -0
  40. package/dist/types/models/WebexConfig.d.ts +10 -0
  41. package/dist/types/models/WebexWebhook.d.ts +4 -0
  42. package/dist/types/models/WhatAppWebHook.d.ts +3 -0
  43. package/dist/types/models/WhatsappConfig.d.ts +11 -0
  44. package/dist/types/models/WhatsappUserConfig.d.ts +10 -0
  45. package/dist/types/services/AiBotService.d.ts +642 -0
  46. package/dist/types/services/AiFinetuningService.d.ts +232 -0
  47. package/package.json +1 -1
  48. package/src/core/OpenAPI.ts +1 -1
  49. package/src/index.ts +39 -0
  50. package/src/models/Bot.ts +20 -0
  51. package/src/models/BotCommand.ts +11 -0
  52. package/src/models/BotCreate.ts +17 -0
  53. package/src/models/DataSet.ts +26 -0
  54. package/src/models/DataSetCreate.ts +17 -0
  55. package/src/models/DataSetStatusEnum.ts +16 -0
  56. package/src/models/DiscordConfig.ts +12 -0
  57. package/src/models/DiscordUserConfig.ts +15 -0
  58. package/src/models/DiscordWebhook.ts +11 -0
  59. package/src/models/PaginatedDataSetList.ts +12 -0
  60. package/src/models/PaginatedTrainingList.ts +12 -0
  61. package/src/models/PatchedBotCommand.ts +11 -0
  62. package/src/models/PatchedBotCreate.ts +17 -0
  63. package/src/models/PatchedDataSet.ts +26 -0
  64. package/src/models/PatchedDiscordConfig.ts +12 -0
  65. package/src/models/PatchedDiscordUserConfig.ts +15 -0
  66. package/src/models/PatchedSlackConfig.ts +13 -0
  67. package/src/models/PatchedSlackUserConfig.ts +22 -0
  68. package/src/models/PatchedTeamsConfig.ts +12 -0
  69. package/src/models/PatchedTrainingCreate.ts +36 -0
  70. package/src/models/PatchedWebexConfig.ts +15 -0
  71. package/src/models/PatchedWhatsappConfig.ts +16 -0
  72. package/src/models/PatchedWhatsappUserConfig.ts +15 -0
  73. package/src/models/Provider05cEnum.ts +18 -0
  74. package/src/models/Provider63aEnum.ts +10 -0
  75. package/src/models/SlackConfig.ts +13 -0
  76. package/src/models/SlackUserConfig.ts +22 -0
  77. package/src/models/SlackWebhook.ts +11 -0
  78. package/src/models/TeamsConfig.ts +12 -0
  79. package/src/models/TeamsWebhook.ts +22 -0
  80. package/src/models/Training.ts +46 -0
  81. package/src/models/TrainingCreate.ts +36 -0
  82. package/src/models/WebexConfig.ts +15 -0
  83. package/src/models/WebexWebhook.ts +9 -0
  84. package/src/models/WhatAppWebHook.ts +8 -0
  85. package/src/models/WhatsappConfig.ts +16 -0
  86. package/src/models/WhatsappUserConfig.ts +15 -0
  87. package/src/services/AiBotService.ts +1330 -0
  88. package/src/services/AiFinetuningService.ts +472 -0
package/dist/index.esm.js CHANGED
@@ -108,7 +108,7 @@ class CancelablePromise {
108
108
 
109
109
  const OpenAPI = {
110
110
  BASE: 'https://base.manager.iblai.app',
111
- VERSION: '4.6.2-dev-ai',
111
+ VERSION: '4.6.2-dev-ai-plus',
112
112
  WITH_CREDENTIALS: false,
113
113
  CREDENTIALS: 'include',
114
114
  TOKEN: undefined,
@@ -269,6 +269,24 @@ var CrawlerPatternTypeEnum;
269
269
  CrawlerPatternTypeEnum["REGEX"] = "regex";
270
270
  })(CrawlerPatternTypeEnum || (CrawlerPatternTypeEnum = {}));
271
271
 
272
+ /* generated using openapi-typescript-codegen -- do not edit */
273
+ /* istanbul ignore file */
274
+ /* tslint:disable */
275
+ /* eslint-disable */
276
+ /**
277
+ * * `pending` - Pending
278
+ * * `processing` - Processing
279
+ * * `completed` - Completed
280
+ * * `failed` - Failed
281
+ */
282
+ var DataSetStatusEnum;
283
+ (function (DataSetStatusEnum) {
284
+ DataSetStatusEnum["PENDING"] = "pending";
285
+ DataSetStatusEnum["PROCESSING"] = "processing";
286
+ DataSetStatusEnum["COMPLETED"] = "completed";
287
+ DataSetStatusEnum["FAILED"] = "failed";
288
+ })(DataSetStatusEnum || (DataSetStatusEnum = {}));
289
+
272
290
  /* generated using openapi-typescript-codegen -- do not edit */
273
291
  /* istanbul ignore file */
274
292
  /* tslint:disable */
@@ -565,6 +583,26 @@ var PromptVisibilityEnum;
565
583
  PromptVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
566
584
  })(PromptVisibilityEnum || (PromptVisibilityEnum = {}));
567
585
 
586
+ /* generated using openapi-typescript-codegen -- do not edit */
587
+ /* istanbul ignore file */
588
+ /* tslint:disable */
589
+ /* eslint-disable */
590
+ /**
591
+ * * `webex` - Webex
592
+ * * `slack` - Slack
593
+ * * `whatsapp` - Whatsapp
594
+ * * `discord` - Discord
595
+ * * `teams` - Teams
596
+ */
597
+ var Provider05cEnum;
598
+ (function (Provider05cEnum) {
599
+ Provider05cEnum["WEBEX"] = "webex";
600
+ Provider05cEnum["SLACK"] = "slack";
601
+ Provider05cEnum["WHATSAPP"] = "whatsapp";
602
+ Provider05cEnum["DISCORD"] = "discord";
603
+ Provider05cEnum["TEAMS"] = "teams";
604
+ })(Provider05cEnum || (Provider05cEnum = {}));
605
+
568
606
  /* generated using openapi-typescript-codegen -- do not edit */
569
607
  /* istanbul ignore file */
570
608
  /* tslint:disable */
@@ -581,6 +619,18 @@ var Provider637Enum;
581
619
  Provider637Enum["ELEVENLABS"] = "elevenlabs";
582
620
  })(Provider637Enum || (Provider637Enum = {}));
583
621
 
622
+ /* generated using openapi-typescript-codegen -- do not edit */
623
+ /* istanbul ignore file */
624
+ /* tslint:disable */
625
+ /* eslint-disable */
626
+ /**
627
+ * * `openai` - Openai
628
+ */
629
+ var Provider63aEnum;
630
+ (function (Provider63aEnum) {
631
+ Provider63aEnum["OPENAI"] = "openai";
632
+ })(Provider63aEnum || (Provider63aEnum = {}));
633
+
584
634
  /* generated using openapi-typescript-codegen -- do not edit */
585
635
  /* istanbul ignore file */
586
636
  /* tslint:disable */
@@ -9498,6 +9548,1347 @@ class AiAnalyticsService {
9498
9548
  }
9499
9549
  }
9500
9550
 
9551
+ class AiBotService {
9552
+ /**
9553
+ * Create modify and update bot information for a specific tenant.
9554
+ * @returns Bot
9555
+ * @throws ApiError
9556
+ */
9557
+ static aiBotV1BotsBotList({
9558
+ org
9559
+ }) {
9560
+ return request(OpenAPI, {
9561
+ method: 'GET',
9562
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
9563
+ path: {
9564
+ 'org': org
9565
+ }
9566
+ });
9567
+ }
9568
+ /**
9569
+ * Create modify and update bot information for a specific tenant.
9570
+ * @returns BotCreate
9571
+ * @throws ApiError
9572
+ */
9573
+ static aiBotV1BotsBotCreate({
9574
+ org,
9575
+ requestBody
9576
+ }) {
9577
+ return request(OpenAPI, {
9578
+ method: 'POST',
9579
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
9580
+ path: {
9581
+ 'org': org
9582
+ },
9583
+ body: requestBody,
9584
+ mediaType: 'application/json'
9585
+ });
9586
+ }
9587
+ /**
9588
+ * Create slash commands for a specific bot
9589
+ * eg. /iblai-baseline
9590
+ * @returns BotCommand
9591
+ * @throws ApiError
9592
+ */
9593
+ static aiBotV1BotsBotCommandsList({
9594
+ org
9595
+ }) {
9596
+ return request(OpenAPI, {
9597
+ method: 'GET',
9598
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
9599
+ path: {
9600
+ 'org': org
9601
+ }
9602
+ });
9603
+ }
9604
+ /**
9605
+ * Create slash commands for a specific bot
9606
+ * eg. /iblai-baseline
9607
+ * @returns BotCommand
9608
+ * @throws ApiError
9609
+ */
9610
+ static aiBotV1BotsBotCommandsCreate({
9611
+ org,
9612
+ requestBody
9613
+ }) {
9614
+ return request(OpenAPI, {
9615
+ method: 'POST',
9616
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
9617
+ path: {
9618
+ 'org': org
9619
+ },
9620
+ body: requestBody,
9621
+ mediaType: 'application/json'
9622
+ });
9623
+ }
9624
+ /**
9625
+ * Create slash commands for a specific bot
9626
+ * eg. /iblai-baseline
9627
+ * @returns BotCommand
9628
+ * @throws ApiError
9629
+ */
9630
+ static aiBotV1BotsBotCommandsRetrieve({
9631
+ id,
9632
+ org
9633
+ }) {
9634
+ return request(OpenAPI, {
9635
+ method: 'GET',
9636
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9637
+ path: {
9638
+ 'id': id,
9639
+ 'org': org
9640
+ }
9641
+ });
9642
+ }
9643
+ /**
9644
+ * Create slash commands for a specific bot
9645
+ * eg. /iblai-baseline
9646
+ * @returns BotCommand
9647
+ * @throws ApiError
9648
+ */
9649
+ static aiBotV1BotsBotCommandsUpdate({
9650
+ id,
9651
+ org,
9652
+ requestBody
9653
+ }) {
9654
+ return request(OpenAPI, {
9655
+ method: 'PUT',
9656
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9657
+ path: {
9658
+ 'id': id,
9659
+ 'org': org
9660
+ },
9661
+ body: requestBody,
9662
+ mediaType: 'application/json'
9663
+ });
9664
+ }
9665
+ /**
9666
+ * Create slash commands for a specific bot
9667
+ * eg. /iblai-baseline
9668
+ * @returns BotCommand
9669
+ * @throws ApiError
9670
+ */
9671
+ static aiBotV1BotsBotCommandsPartialUpdate({
9672
+ id,
9673
+ org,
9674
+ requestBody
9675
+ }) {
9676
+ return request(OpenAPI, {
9677
+ method: 'PATCH',
9678
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9679
+ path: {
9680
+ 'id': id,
9681
+ 'org': org
9682
+ },
9683
+ body: requestBody,
9684
+ mediaType: 'application/json'
9685
+ });
9686
+ }
9687
+ /**
9688
+ * Create slash commands for a specific bot
9689
+ * eg. /iblai-baseline
9690
+ * @returns void
9691
+ * @throws ApiError
9692
+ */
9693
+ static aiBotV1BotsBotCommandsDestroy({
9694
+ id,
9695
+ org
9696
+ }) {
9697
+ return request(OpenAPI, {
9698
+ method: 'DELETE',
9699
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9700
+ path: {
9701
+ 'id': id,
9702
+ 'org': org
9703
+ }
9704
+ });
9705
+ }
9706
+ /**
9707
+ * Create modify and update bot information for a specific tenant.
9708
+ * @returns Bot
9709
+ * @throws ApiError
9710
+ */
9711
+ static aiBotV1BotsBotRetrieve({
9712
+ id,
9713
+ org
9714
+ }) {
9715
+ return request(OpenAPI, {
9716
+ method: 'GET',
9717
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9718
+ path: {
9719
+ 'id': id,
9720
+ 'org': org
9721
+ }
9722
+ });
9723
+ }
9724
+ /**
9725
+ * Create modify and update bot information for a specific tenant.
9726
+ * @returns BotCreate
9727
+ * @throws ApiError
9728
+ */
9729
+ static aiBotV1BotsBotUpdate({
9730
+ id,
9731
+ org,
9732
+ requestBody
9733
+ }) {
9734
+ return request(OpenAPI, {
9735
+ method: 'PUT',
9736
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9737
+ path: {
9738
+ 'id': id,
9739
+ 'org': org
9740
+ },
9741
+ body: requestBody,
9742
+ mediaType: 'application/json'
9743
+ });
9744
+ }
9745
+ /**
9746
+ * Create modify and update bot information for a specific tenant.
9747
+ * @returns BotCreate
9748
+ * @throws ApiError
9749
+ */
9750
+ static aiBotV1BotsBotPartialUpdate({
9751
+ id,
9752
+ org,
9753
+ requestBody
9754
+ }) {
9755
+ return request(OpenAPI, {
9756
+ method: 'PATCH',
9757
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9758
+ path: {
9759
+ 'id': id,
9760
+ 'org': org
9761
+ },
9762
+ body: requestBody,
9763
+ mediaType: 'application/json'
9764
+ });
9765
+ }
9766
+ /**
9767
+ * Create modify and update bot information for a specific tenant.
9768
+ * @returns void
9769
+ * @throws ApiError
9770
+ */
9771
+ static aiBotV1BotsBotDestroy({
9772
+ id,
9773
+ org
9774
+ }) {
9775
+ return request(OpenAPI, {
9776
+ method: 'DELETE',
9777
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9778
+ path: {
9779
+ 'id': id,
9780
+ 'org': org
9781
+ }
9782
+ });
9783
+ }
9784
+ /**
9785
+ * Create modify and update bot information for a specific tenant.
9786
+ * @returns DiscordConfig
9787
+ * @throws ApiError
9788
+ */
9789
+ static aiBotV1BotsBotConfigDiscordRetrieve({
9790
+ id,
9791
+ org
9792
+ }) {
9793
+ return request(OpenAPI, {
9794
+ method: 'GET',
9795
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
9796
+ path: {
9797
+ 'id': id,
9798
+ 'org': org
9799
+ }
9800
+ });
9801
+ }
9802
+ /**
9803
+ * Create modify and update bot information for a specific tenant.
9804
+ * @returns DiscordConfig
9805
+ * @throws ApiError
9806
+ */
9807
+ static aiBotV1BotsBotConfigDiscordPartialUpdate({
9808
+ id,
9809
+ org,
9810
+ requestBody
9811
+ }) {
9812
+ return request(OpenAPI, {
9813
+ method: 'PATCH',
9814
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
9815
+ path: {
9816
+ 'id': id,
9817
+ 'org': org
9818
+ },
9819
+ body: requestBody,
9820
+ mediaType: 'application/json'
9821
+ });
9822
+ }
9823
+ /**
9824
+ * Create modify and update bot information for a specific tenant.
9825
+ * @returns SlackConfig
9826
+ * @throws ApiError
9827
+ */
9828
+ static aiBotV1BotsBotConfigSlackRetrieve({
9829
+ id,
9830
+ org
9831
+ }) {
9832
+ return request(OpenAPI, {
9833
+ method: 'GET',
9834
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
9835
+ path: {
9836
+ 'id': id,
9837
+ 'org': org
9838
+ }
9839
+ });
9840
+ }
9841
+ /**
9842
+ * Create modify and update bot information for a specific tenant.
9843
+ * @returns SlackConfig
9844
+ * @throws ApiError
9845
+ */
9846
+ static aiBotV1BotsBotConfigSlackUpdateCreate({
9847
+ id,
9848
+ org,
9849
+ requestBody
9850
+ }) {
9851
+ return request(OpenAPI, {
9852
+ method: 'POST',
9853
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9854
+ path: {
9855
+ 'id': id,
9856
+ 'org': org
9857
+ },
9858
+ body: requestBody,
9859
+ mediaType: 'application/json'
9860
+ });
9861
+ }
9862
+ /**
9863
+ * Create modify and update bot information for a specific tenant.
9864
+ * @returns SlackConfig
9865
+ * @throws ApiError
9866
+ */
9867
+ static aiBotV1BotsBotConfigSlackUpdateUpdate({
9868
+ id,
9869
+ org,
9870
+ requestBody
9871
+ }) {
9872
+ return request(OpenAPI, {
9873
+ method: 'PUT',
9874
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9875
+ path: {
9876
+ 'id': id,
9877
+ 'org': org
9878
+ },
9879
+ body: requestBody,
9880
+ mediaType: 'application/json'
9881
+ });
9882
+ }
9883
+ /**
9884
+ * Create modify and update bot information for a specific tenant.
9885
+ * @returns SlackConfig
9886
+ * @throws ApiError
9887
+ */
9888
+ static aiBotV1BotsBotConfigSlackUpdatePartialUpdate({
9889
+ id,
9890
+ org,
9891
+ requestBody
9892
+ }) {
9893
+ return request(OpenAPI, {
9894
+ method: 'PATCH',
9895
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9896
+ path: {
9897
+ 'id': id,
9898
+ 'org': org
9899
+ },
9900
+ body: requestBody,
9901
+ mediaType: 'application/json'
9902
+ });
9903
+ }
9904
+ /**
9905
+ * Create modify and update bot information for a specific tenant.
9906
+ * @returns TeamsConfig
9907
+ * @throws ApiError
9908
+ */
9909
+ static aiBotV1BotsBotConfigTeamsRetrieve({
9910
+ id,
9911
+ org
9912
+ }) {
9913
+ return request(OpenAPI, {
9914
+ method: 'GET',
9915
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
9916
+ path: {
9917
+ 'id': id,
9918
+ 'org': org
9919
+ }
9920
+ });
9921
+ }
9922
+ /**
9923
+ * Create modify and update bot information for a specific tenant.
9924
+ * @returns TeamsConfig
9925
+ * @throws ApiError
9926
+ */
9927
+ static aiBotV1BotsBotConfigTeamsUpdateCreate({
9928
+ id,
9929
+ org,
9930
+ requestBody
9931
+ }) {
9932
+ return request(OpenAPI, {
9933
+ method: 'POST',
9934
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
9935
+ path: {
9936
+ 'id': id,
9937
+ 'org': org
9938
+ },
9939
+ body: requestBody,
9940
+ mediaType: 'application/json'
9941
+ });
9942
+ }
9943
+ /**
9944
+ * Create modify and update bot information for a specific tenant.
9945
+ * @returns TeamsConfig
9946
+ * @throws ApiError
9947
+ */
9948
+ static aiBotV1BotsBotConfigTeamsUpdateUpdate({
9949
+ id,
9950
+ org,
9951
+ requestBody
9952
+ }) {
9953
+ return request(OpenAPI, {
9954
+ method: 'PUT',
9955
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
9956
+ path: {
9957
+ 'id': id,
9958
+ 'org': org
9959
+ },
9960
+ body: requestBody,
9961
+ mediaType: 'application/json'
9962
+ });
9963
+ }
9964
+ /**
9965
+ * Create modify and update bot information for a specific tenant.
9966
+ * @returns TeamsConfig
9967
+ * @throws ApiError
9968
+ */
9969
+ static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate({
9970
+ id,
9971
+ org,
9972
+ requestBody
9973
+ }) {
9974
+ return request(OpenAPI, {
9975
+ method: 'PATCH',
9976
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
9977
+ path: {
9978
+ 'id': id,
9979
+ 'org': org
9980
+ },
9981
+ body: requestBody,
9982
+ mediaType: 'application/json'
9983
+ });
9984
+ }
9985
+ /**
9986
+ * Create modify and update bot information for a specific tenant.
9987
+ * @returns WebexConfig
9988
+ * @throws ApiError
9989
+ */
9990
+ static aiBotV1BotsBotConfigWebexRetrieve({
9991
+ id,
9992
+ org
9993
+ }) {
9994
+ return request(OpenAPI, {
9995
+ method: 'GET',
9996
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
9997
+ path: {
9998
+ 'id': id,
9999
+ 'org': org
10000
+ }
10001
+ });
10002
+ }
10003
+ /**
10004
+ * Create modify and update bot information for a specific tenant.
10005
+ * @returns WebexConfig
10006
+ * @throws ApiError
10007
+ */
10008
+ static aiBotV1BotsBotConfigWebexPartialUpdate({
10009
+ id,
10010
+ org,
10011
+ requestBody
10012
+ }) {
10013
+ return request(OpenAPI, {
10014
+ method: 'PATCH',
10015
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
10016
+ path: {
10017
+ 'id': id,
10018
+ 'org': org
10019
+ },
10020
+ body: requestBody,
10021
+ mediaType: 'application/json'
10022
+ });
10023
+ }
10024
+ /**
10025
+ * Create modify and update bot information for a specific tenant.
10026
+ * @returns WhatsappConfig
10027
+ * @throws ApiError
10028
+ */
10029
+ static aiBotV1BotsBotConfigWhatsappRetrieve({
10030
+ id,
10031
+ org
10032
+ }) {
10033
+ return request(OpenAPI, {
10034
+ method: 'GET',
10035
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
10036
+ path: {
10037
+ 'id': id,
10038
+ 'org': org
10039
+ }
10040
+ });
10041
+ }
10042
+ /**
10043
+ * Create modify and update bot information for a specific tenant.
10044
+ * @returns WhatsappConfig
10045
+ * @throws ApiError
10046
+ */
10047
+ static aiBotV1BotsBotWhatsappConfigUpdate({
10048
+ id,
10049
+ org,
10050
+ requestBody
10051
+ }) {
10052
+ return request(OpenAPI, {
10053
+ method: 'PUT',
10054
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
10055
+ path: {
10056
+ 'id': id,
10057
+ 'org': org
10058
+ },
10059
+ body: requestBody,
10060
+ mediaType: 'application/json'
10061
+ });
10062
+ }
10063
+ /**
10064
+ * Create modify and update bot information for a specific tenant.
10065
+ * @returns WhatsappConfig
10066
+ * @throws ApiError
10067
+ */
10068
+ static aiBotV1BotsBotWhatsappConfigPartialUpdate({
10069
+ id,
10070
+ org,
10071
+ requestBody
10072
+ }) {
10073
+ return request(OpenAPI, {
10074
+ method: 'PATCH',
10075
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
10076
+ path: {
10077
+ 'id': id,
10078
+ 'org': org
10079
+ },
10080
+ body: requestBody,
10081
+ mediaType: 'application/json'
10082
+ });
10083
+ }
10084
+ /**
10085
+ * Setup discord user id linkage with discord bots
10086
+ * this will be used to authenticate the user when interracting with discord bots.
10087
+ * the user id can be copied from the discord app after tapping on the user profile.
10088
+ * @returns DiscordUserConfig
10089
+ * @throws ApiError
10090
+ */
10091
+ static aiBotV1BotsDiscordUserConfigList({
10092
+ org
10093
+ }) {
10094
+ return request(OpenAPI, {
10095
+ method: 'GET',
10096
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
10097
+ path: {
10098
+ 'org': org
10099
+ }
10100
+ });
10101
+ }
10102
+ /**
10103
+ * Setup discord user id linkage with discord bots
10104
+ * this will be used to authenticate the user when interracting with discord bots.
10105
+ * the user id can be copied from the discord app after tapping on the user profile.
10106
+ * @returns DiscordUserConfig
10107
+ * @throws ApiError
10108
+ */
10109
+ static aiBotV1BotsDiscordUserConfigCreate({
10110
+ org,
10111
+ requestBody
10112
+ }) {
10113
+ return request(OpenAPI, {
10114
+ method: 'POST',
10115
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
10116
+ path: {
10117
+ 'org': org
10118
+ },
10119
+ body: requestBody,
10120
+ mediaType: 'application/json'
10121
+ });
10122
+ }
10123
+ /**
10124
+ * Setup discord user id linkage with discord bots
10125
+ * this will be used to authenticate the user when interracting with discord bots.
10126
+ * the user id can be copied from the discord app after tapping on the user profile.
10127
+ * @returns DiscordUserConfig
10128
+ * @throws ApiError
10129
+ */
10130
+ static aiBotV1BotsDiscordUserConfigRetrieve({
10131
+ id,
10132
+ org
10133
+ }) {
10134
+ return request(OpenAPI, {
10135
+ method: 'GET',
10136
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
10137
+ path: {
10138
+ 'id': id,
10139
+ 'org': org
10140
+ }
10141
+ });
10142
+ }
10143
+ /**
10144
+ * Setup discord user id linkage with discord bots
10145
+ * this will be used to authenticate the user when interracting with discord bots.
10146
+ * the user id can be copied from the discord app after tapping on the user profile.
10147
+ * @returns DiscordUserConfig
10148
+ * @throws ApiError
10149
+ */
10150
+ static aiBotV1BotsDiscordUserConfigUpdate({
10151
+ id,
10152
+ org,
10153
+ requestBody
10154
+ }) {
10155
+ return request(OpenAPI, {
10156
+ method: 'PUT',
10157
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
10158
+ path: {
10159
+ 'id': id,
10160
+ 'org': org
10161
+ },
10162
+ body: requestBody,
10163
+ mediaType: 'application/json'
10164
+ });
10165
+ }
10166
+ /**
10167
+ * Setup discord user id linkage with discord bots
10168
+ * this will be used to authenticate the user when interracting with discord bots.
10169
+ * the user id can be copied from the discord app after tapping on the user profile.
10170
+ * @returns DiscordUserConfig
10171
+ * @throws ApiError
10172
+ */
10173
+ static aiBotV1BotsDiscordUserConfigPartialUpdate({
10174
+ id,
10175
+ org,
10176
+ requestBody
10177
+ }) {
10178
+ return request(OpenAPI, {
10179
+ method: 'PATCH',
10180
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
10181
+ path: {
10182
+ 'id': id,
10183
+ 'org': org
10184
+ },
10185
+ body: requestBody,
10186
+ mediaType: 'application/json'
10187
+ });
10188
+ }
10189
+ /**
10190
+ * Setup discord user id linkage with discord bots
10191
+ * this will be used to authenticate the user when interracting with discord bots.
10192
+ * the user id can be copied from the discord app after tapping on the user profile.
10193
+ * @returns void
10194
+ * @throws ApiError
10195
+ */
10196
+ static aiBotV1BotsDiscordUserConfigDestroy({
10197
+ id,
10198
+ org
10199
+ }) {
10200
+ return request(OpenAPI, {
10201
+ method: 'DELETE',
10202
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
10203
+ path: {
10204
+ 'id': id,
10205
+ 'org': org
10206
+ }
10207
+ });
10208
+ }
10209
+ /**
10210
+ * Setup slack username and domain linkage with slack bots
10211
+ * this will be used to authenticate the user when interracting with slack bots.
10212
+ * @returns SlackUserConfig
10213
+ * @throws ApiError
10214
+ */
10215
+ static aiBotV1BotsSlackUserConfigList({
10216
+ org
10217
+ }) {
10218
+ return request(OpenAPI, {
10219
+ method: 'GET',
10220
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
10221
+ path: {
10222
+ 'org': org
10223
+ }
10224
+ });
10225
+ }
10226
+ /**
10227
+ * Setup slack username and domain linkage with slack bots
10228
+ * this will be used to authenticate the user when interracting with slack bots.
10229
+ * @returns SlackUserConfig
10230
+ * @throws ApiError
10231
+ */
10232
+ static aiBotV1BotsSlackUserConfigCreate({
10233
+ org,
10234
+ requestBody
10235
+ }) {
10236
+ return request(OpenAPI, {
10237
+ method: 'POST',
10238
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
10239
+ path: {
10240
+ 'org': org
10241
+ },
10242
+ body: requestBody,
10243
+ mediaType: 'application/json'
10244
+ });
10245
+ }
10246
+ /**
10247
+ * Setup slack username and domain linkage with slack bots
10248
+ * this will be used to authenticate the user when interracting with slack bots.
10249
+ * @returns SlackUserConfig
10250
+ * @throws ApiError
10251
+ */
10252
+ static aiBotV1BotsSlackUserConfigRetrieve({
10253
+ id,
10254
+ org
10255
+ }) {
10256
+ return request(OpenAPI, {
10257
+ method: 'GET',
10258
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
10259
+ path: {
10260
+ 'id': id,
10261
+ 'org': org
10262
+ }
10263
+ });
10264
+ }
10265
+ /**
10266
+ * Setup slack username and domain linkage with slack bots
10267
+ * this will be used to authenticate the user when interracting with slack bots.
10268
+ * @returns SlackUserConfig
10269
+ * @throws ApiError
10270
+ */
10271
+ static aiBotV1BotsSlackUserConfigUpdate({
10272
+ id,
10273
+ org,
10274
+ requestBody
10275
+ }) {
10276
+ return request(OpenAPI, {
10277
+ method: 'PUT',
10278
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
10279
+ path: {
10280
+ 'id': id,
10281
+ 'org': org
10282
+ },
10283
+ body: requestBody,
10284
+ mediaType: 'application/json'
10285
+ });
10286
+ }
10287
+ /**
10288
+ * Setup slack username and domain linkage with slack bots
10289
+ * this will be used to authenticate the user when interracting with slack bots.
10290
+ * @returns SlackUserConfig
10291
+ * @throws ApiError
10292
+ */
10293
+ static aiBotV1BotsSlackUserConfigPartialUpdate({
10294
+ id,
10295
+ org,
10296
+ requestBody
10297
+ }) {
10298
+ return request(OpenAPI, {
10299
+ method: 'PATCH',
10300
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
10301
+ path: {
10302
+ 'id': id,
10303
+ 'org': org
10304
+ },
10305
+ body: requestBody,
10306
+ mediaType: 'application/json'
10307
+ });
10308
+ }
10309
+ /**
10310
+ * Setup slack username and domain linkage with slack bots
10311
+ * this will be used to authenticate the user when interracting with slack bots.
10312
+ * @returns void
10313
+ * @throws ApiError
10314
+ */
10315
+ static aiBotV1BotsSlackUserConfigDestroy({
10316
+ id,
10317
+ org
10318
+ }) {
10319
+ return request(OpenAPI, {
10320
+ method: 'DELETE',
10321
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
10322
+ path: {
10323
+ 'id': id,
10324
+ 'org': org
10325
+ }
10326
+ });
10327
+ }
10328
+ /**
10329
+ * Setup phone number linkage with whatsapp bots
10330
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10331
+ * @returns WhatsappUserConfig
10332
+ * @throws ApiError
10333
+ */
10334
+ static aiBotV1BotsWhatsappUserConfigList({
10335
+ org
10336
+ }) {
10337
+ return request(OpenAPI, {
10338
+ method: 'GET',
10339
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
10340
+ path: {
10341
+ 'org': org
10342
+ }
10343
+ });
10344
+ }
10345
+ /**
10346
+ * Setup phone number linkage with whatsapp bots
10347
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10348
+ * @returns WhatsappUserConfig
10349
+ * @throws ApiError
10350
+ */
10351
+ static aiBotV1BotsWhatsappUserConfigCreate({
10352
+ org,
10353
+ requestBody
10354
+ }) {
10355
+ return request(OpenAPI, {
10356
+ method: 'POST',
10357
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
10358
+ path: {
10359
+ 'org': org
10360
+ },
10361
+ body: requestBody,
10362
+ mediaType: 'application/json'
10363
+ });
10364
+ }
10365
+ /**
10366
+ * Setup phone number linkage with whatsapp bots
10367
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10368
+ * @returns WhatsappUserConfig
10369
+ * @throws ApiError
10370
+ */
10371
+ static aiBotV1BotsWhatsappUserConfigRetrieve({
10372
+ id,
10373
+ org
10374
+ }) {
10375
+ return request(OpenAPI, {
10376
+ method: 'GET',
10377
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10378
+ path: {
10379
+ 'id': id,
10380
+ 'org': org
10381
+ }
10382
+ });
10383
+ }
10384
+ /**
10385
+ * Setup phone number linkage with whatsapp bots
10386
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10387
+ * @returns WhatsappUserConfig
10388
+ * @throws ApiError
10389
+ */
10390
+ static aiBotV1BotsWhatsappUserConfigUpdate({
10391
+ id,
10392
+ org,
10393
+ requestBody
10394
+ }) {
10395
+ return request(OpenAPI, {
10396
+ method: 'PUT',
10397
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10398
+ path: {
10399
+ 'id': id,
10400
+ 'org': org
10401
+ },
10402
+ body: requestBody,
10403
+ mediaType: 'application/json'
10404
+ });
10405
+ }
10406
+ /**
10407
+ * Setup phone number linkage with whatsapp bots
10408
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10409
+ * @returns WhatsappUserConfig
10410
+ * @throws ApiError
10411
+ */
10412
+ static aiBotV1BotsWhatsappUserConfigPartialUpdate({
10413
+ id,
10414
+ org,
10415
+ requestBody
10416
+ }) {
10417
+ return request(OpenAPI, {
10418
+ method: 'PATCH',
10419
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10420
+ path: {
10421
+ 'id': id,
10422
+ 'org': org
10423
+ },
10424
+ body: requestBody,
10425
+ mediaType: 'application/json'
10426
+ });
10427
+ }
10428
+ /**
10429
+ * Setup phone number linkage with whatsapp bots
10430
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10431
+ * @returns void
10432
+ * @throws ApiError
10433
+ */
10434
+ static aiBotV1BotsWhatsappUserConfigDestroy({
10435
+ id,
10436
+ org
10437
+ }) {
10438
+ return request(OpenAPI, {
10439
+ method: 'DELETE',
10440
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10441
+ path: {
10442
+ 'id': id,
10443
+ 'org': org
10444
+ }
10445
+ });
10446
+ }
10447
+ /**
10448
+ * Webhook endpoint to receive and process discord messages.
10449
+ * @returns DiscordWebhook
10450
+ * @throws ApiError
10451
+ */
10452
+ static aiBotV1BotsWebhooksDiscordCreate({
10453
+ name,
10454
+ org,
10455
+ requestBody
10456
+ }) {
10457
+ return request(OpenAPI, {
10458
+ method: 'POST',
10459
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
10460
+ path: {
10461
+ 'name': name,
10462
+ 'org': org
10463
+ },
10464
+ body: requestBody,
10465
+ mediaType: 'application/json'
10466
+ });
10467
+ }
10468
+ /**
10469
+ * @returns SlackWebhook
10470
+ * @throws ApiError
10471
+ */
10472
+ static aiBotV1BotsWebhooksSlackCreate({
10473
+ name,
10474
+ org,
10475
+ requestBody
10476
+ }) {
10477
+ return request(OpenAPI, {
10478
+ method: 'POST',
10479
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
10480
+ path: {
10481
+ 'name': name,
10482
+ 'org': org
10483
+ },
10484
+ body: requestBody,
10485
+ mediaType: 'application/json'
10486
+ });
10487
+ }
10488
+ /**
10489
+ * @returns TeamsWebhook
10490
+ * @throws ApiError
10491
+ */
10492
+ static aiBotV1BotsWebhooksTeamsCreate({
10493
+ name,
10494
+ org,
10495
+ requestBody
10496
+ }) {
10497
+ return request(OpenAPI, {
10498
+ method: 'POST',
10499
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
10500
+ path: {
10501
+ 'name': name,
10502
+ 'org': org
10503
+ },
10504
+ body: requestBody,
10505
+ mediaType: 'application/json'
10506
+ });
10507
+ }
10508
+ /**
10509
+ * Webhook endpoint to receive and process discord messages.
10510
+ * @returns WebexWebhook
10511
+ * @throws ApiError
10512
+ */
10513
+ static aiBotV1BotsWebhooksWebexCreate({
10514
+ name,
10515
+ org,
10516
+ requestBody
10517
+ }) {
10518
+ return request(OpenAPI, {
10519
+ method: 'POST',
10520
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
10521
+ path: {
10522
+ 'name': name,
10523
+ 'org': org
10524
+ },
10525
+ body: requestBody,
10526
+ mediaType: 'application/json'
10527
+ });
10528
+ }
10529
+ /**
10530
+ * Respond to whatsapp's webhook challenge.
10531
+ * Parameters Required include the tenant key (org) and the name of the bot: (name)
10532
+ * @returns WhatAppWebHook
10533
+ * @throws ApiError
10534
+ */
10535
+ static aiBotV1BotsWebhooksWhatsappRetrieve({
10536
+ name,
10537
+ org
10538
+ }) {
10539
+ return request(OpenAPI, {
10540
+ method: 'GET',
10541
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
10542
+ path: {
10543
+ 'name': name,
10544
+ 'org': org
10545
+ }
10546
+ });
10547
+ }
10548
+ /**
10549
+ * Accept and process webhook events from whatsapp.
10550
+ * @returns WhatAppWebHook
10551
+ * @throws ApiError
10552
+ */
10553
+ static aiBotV1BotsWebhooksWhatsappCreate({
10554
+ name,
10555
+ org,
10556
+ requestBody
10557
+ }) {
10558
+ return request(OpenAPI, {
10559
+ method: 'POST',
10560
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
10561
+ path: {
10562
+ 'name': name,
10563
+ 'org': org
10564
+ },
10565
+ body: requestBody,
10566
+ mediaType: 'application/json'
10567
+ });
10568
+ }
10569
+ }
10570
+
10571
+ class AiFinetuningService {
10572
+ /**
10573
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10574
+ * @returns PaginatedDataSetList
10575
+ * @throws ApiError
10576
+ */
10577
+ static aiFinetuningV1OrgUserDatasetsList({
10578
+ org,
10579
+ username,
10580
+ dateCreated,
10581
+ numDataPoints,
10582
+ ordering,
10583
+ page,
10584
+ pageSize,
10585
+ retryAttempts,
10586
+ search,
10587
+ status
10588
+ }) {
10589
+ return request(OpenAPI, {
10590
+ method: 'GET',
10591
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
10592
+ path: {
10593
+ 'org': org,
10594
+ 'username': username
10595
+ },
10596
+ query: {
10597
+ 'date_created': dateCreated,
10598
+ 'num_data_points': numDataPoints,
10599
+ 'ordering': ordering,
10600
+ 'page': page,
10601
+ 'page_size': pageSize,
10602
+ 'retry_attempts': retryAttempts,
10603
+ 'search': search,
10604
+ 'status': status
10605
+ }
10606
+ });
10607
+ }
10608
+ /**
10609
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10610
+ * @returns DataSetCreate
10611
+ * @throws ApiError
10612
+ */
10613
+ static aiFinetuningV1OrgUserDatasetsCreate({
10614
+ org,
10615
+ username,
10616
+ requestBody
10617
+ }) {
10618
+ return request(OpenAPI, {
10619
+ method: 'POST',
10620
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
10621
+ path: {
10622
+ 'org': org,
10623
+ 'username': username
10624
+ },
10625
+ body: requestBody,
10626
+ mediaType: 'application/json'
10627
+ });
10628
+ }
10629
+ /**
10630
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10631
+ * @returns DataSet
10632
+ * @throws ApiError
10633
+ */
10634
+ static aiFinetuningV1OrgUserDatasetsRetrieve({
10635
+ id,
10636
+ org,
10637
+ username
10638
+ }) {
10639
+ return request(OpenAPI, {
10640
+ method: 'GET',
10641
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10642
+ path: {
10643
+ 'id': id,
10644
+ 'org': org,
10645
+ 'username': username
10646
+ }
10647
+ });
10648
+ }
10649
+ /**
10650
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10651
+ * @returns DataSet
10652
+ * @throws ApiError
10653
+ */
10654
+ static aiFinetuningV1OrgUserDatasetsUpdate({
10655
+ id,
10656
+ org,
10657
+ username,
10658
+ requestBody
10659
+ }) {
10660
+ return request(OpenAPI, {
10661
+ method: 'PUT',
10662
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10663
+ path: {
10664
+ 'id': id,
10665
+ 'org': org,
10666
+ 'username': username
10667
+ },
10668
+ body: requestBody,
10669
+ mediaType: 'application/json'
10670
+ });
10671
+ }
10672
+ /**
10673
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10674
+ * @returns DataSet
10675
+ * @throws ApiError
10676
+ */
10677
+ static aiFinetuningV1OrgUserDatasetsPartialUpdate({
10678
+ id,
10679
+ org,
10680
+ username,
10681
+ requestBody
10682
+ }) {
10683
+ return request(OpenAPI, {
10684
+ method: 'PATCH',
10685
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10686
+ path: {
10687
+ 'id': id,
10688
+ 'org': org,
10689
+ 'username': username
10690
+ },
10691
+ body: requestBody,
10692
+ mediaType: 'application/json'
10693
+ });
10694
+ }
10695
+ /**
10696
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10697
+ * @returns void
10698
+ * @throws ApiError
10699
+ */
10700
+ static aiFinetuningV1OrgUserDatasetsDestroy({
10701
+ id,
10702
+ org,
10703
+ username
10704
+ }) {
10705
+ return request(OpenAPI, {
10706
+ method: 'DELETE',
10707
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10708
+ path: {
10709
+ 'id': id,
10710
+ 'org': org,
10711
+ 'username': username
10712
+ }
10713
+ });
10714
+ }
10715
+ /**
10716
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10717
+ * @returns PaginatedTrainingList
10718
+ * @throws ApiError
10719
+ */
10720
+ static aiFinetuningV1OrgUserTrainingsList({
10721
+ org,
10722
+ username,
10723
+ baseModelName,
10724
+ dataset,
10725
+ dateCreated,
10726
+ fineTunedModel,
10727
+ lastModified,
10728
+ ordering,
10729
+ page,
10730
+ pageSize,
10731
+ preprocessDataset,
10732
+ provider,
10733
+ search,
10734
+ status
10735
+ }) {
10736
+ return request(OpenAPI, {
10737
+ method: 'GET',
10738
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
10739
+ path: {
10740
+ 'org': org,
10741
+ 'username': username
10742
+ },
10743
+ query: {
10744
+ 'base_model_name': baseModelName,
10745
+ 'dataset': dataset,
10746
+ 'date_created': dateCreated,
10747
+ 'fine_tuned_model': fineTunedModel,
10748
+ 'last_modified': lastModified,
10749
+ 'ordering': ordering,
10750
+ 'page': page,
10751
+ 'page_size': pageSize,
10752
+ 'preprocess_dataset': preprocessDataset,
10753
+ 'provider': provider,
10754
+ 'search': search,
10755
+ 'status': status
10756
+ }
10757
+ });
10758
+ }
10759
+ /**
10760
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10761
+ * @returns TrainingCreate
10762
+ * @throws ApiError
10763
+ */
10764
+ static aiFinetuningV1OrgUserTrainingsCreate({
10765
+ org,
10766
+ username,
10767
+ requestBody
10768
+ }) {
10769
+ return request(OpenAPI, {
10770
+ method: 'POST',
10771
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
10772
+ path: {
10773
+ 'org': org,
10774
+ 'username': username
10775
+ },
10776
+ body: requestBody,
10777
+ mediaType: 'application/json'
10778
+ });
10779
+ }
10780
+ /**
10781
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10782
+ * @returns Training
10783
+ * @throws ApiError
10784
+ */
10785
+ static aiFinetuningV1OrgUserTrainingsRetrieve({
10786
+ id,
10787
+ org,
10788
+ username
10789
+ }) {
10790
+ return request(OpenAPI, {
10791
+ method: 'GET',
10792
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10793
+ path: {
10794
+ 'id': id,
10795
+ 'org': org,
10796
+ 'username': username
10797
+ }
10798
+ });
10799
+ }
10800
+ /**
10801
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10802
+ * @returns TrainingCreate
10803
+ * @throws ApiError
10804
+ */
10805
+ static aiFinetuningV1OrgUserTrainingsUpdate({
10806
+ id,
10807
+ org,
10808
+ username,
10809
+ requestBody
10810
+ }) {
10811
+ return request(OpenAPI, {
10812
+ method: 'PUT',
10813
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10814
+ path: {
10815
+ 'id': id,
10816
+ 'org': org,
10817
+ 'username': username
10818
+ },
10819
+ body: requestBody,
10820
+ mediaType: 'application/json'
10821
+ });
10822
+ }
10823
+ /**
10824
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10825
+ * @returns TrainingCreate
10826
+ * @throws ApiError
10827
+ */
10828
+ static aiFinetuningV1OrgUserTrainingsPartialUpdate({
10829
+ id,
10830
+ org,
10831
+ username,
10832
+ requestBody
10833
+ }) {
10834
+ return request(OpenAPI, {
10835
+ method: 'PATCH',
10836
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10837
+ path: {
10838
+ 'id': id,
10839
+ 'org': org,
10840
+ 'username': username
10841
+ },
10842
+ body: requestBody,
10843
+ mediaType: 'application/json'
10844
+ });
10845
+ }
10846
+ /**
10847
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10848
+ * @returns void
10849
+ * @throws ApiError
10850
+ */
10851
+ static aiFinetuningV1OrgUserTrainingsDestroy({
10852
+ id,
10853
+ org,
10854
+ username
10855
+ }) {
10856
+ return request(OpenAPI, {
10857
+ method: 'DELETE',
10858
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10859
+ path: {
10860
+ 'id': id,
10861
+ 'org': org,
10862
+ 'username': username
10863
+ }
10864
+ });
10865
+ }
10866
+ /**
10867
+ * Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
10868
+ * Filtering and pagination is allowed.
10869
+ *
10870
+ * NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
10871
+ * training list endpoint.
10872
+ * Returns:
10873
+ * Response: A paginated response containing the serialized fine-tuned models.
10874
+ * @returns Training
10875
+ * @throws ApiError
10876
+ */
10877
+ static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve({
10878
+ org,
10879
+ username
10880
+ }) {
10881
+ return request(OpenAPI, {
10882
+ method: 'GET',
10883
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
10884
+ path: {
10885
+ 'org': org,
10886
+ 'username': username
10887
+ }
10888
+ });
10889
+ }
10890
+ }
10891
+
9501
10892
  class AiIndexService {
9502
10893
  /**
9503
10894
  * Retrieve details of a specific document embedding.
@@ -35014,5 +36405,5 @@ class SkillsService {
35014
36405
  }
35015
36406
  }
35016
36407
 
35017
- export { AcceptanceEnum, AccessEnum, AiAccountService, AiAnalyticsService, AiIndexService, AiMarketingService, AiMediaService, AiMentorService, AiPromptService, AlignMentorBubbleEnum, AnalyticsService, ApiError, BlankEnum, CallConfigurationModeEnum, CancelError, CancelablePromise, CareerService, CatalogService, CeleryHeartbeatFailStatusEnum, CeleryHeartbeatStatusEnum, CommerceService, ComponentBlockTypeEnum, ConnectedServiceProviderEnum, CoreService, CourseCreationTaskStatusEnum, CrawlerPatternTypeEnum, CredentialsService, CustomDomainsService, FeaturesService, GooglePayAccountResponseStatusEnum, GreetingMethodEnum, HumanSupportTicketStatusEnum, InstitutionTypeEnum, ItemTypeEnum, KindEnum, LlmProviderEnum, MediaService, MediaTypeEnum, MentorVisibilityEnum, NotificationSourceTypeEnum, NotificationStatusEnum, NotificationsService, OpenAPI, PeriodicAgentLogStatusEnum, PlatformListStatusEnum, PreviousAgentStatusEnum, ProgramTypeEnum, PromptVisibilityEnum, Provider637Enum, RatingEnum, RecommendationsService, ReportsService, ResourceScrappedDataStatusEnum, ScimService, SearchService, ServiceEnum, SkillsService, StateEnum, Status6eeEnum, StepStatusEnum, StripeCheckoutSessionRequestModeEnum, SttProviderEnum, TargetSystemEnum, ThemeEnum, TrainingStatusEnum, TransportEnum, TtsProviderEnum, TypeC42Enum };
36408
+ export { AcceptanceEnum, AccessEnum, AiAccountService, AiAnalyticsService, AiBotService, AiFinetuningService, AiIndexService, AiMarketingService, AiMediaService, AiMentorService, AiPromptService, AlignMentorBubbleEnum, AnalyticsService, ApiError, BlankEnum, CallConfigurationModeEnum, CancelError, CancelablePromise, CareerService, CatalogService, CeleryHeartbeatFailStatusEnum, CeleryHeartbeatStatusEnum, CommerceService, ComponentBlockTypeEnum, ConnectedServiceProviderEnum, CoreService, CourseCreationTaskStatusEnum, CrawlerPatternTypeEnum, CredentialsService, CustomDomainsService, DataSetStatusEnum, FeaturesService, GooglePayAccountResponseStatusEnum, GreetingMethodEnum, HumanSupportTicketStatusEnum, InstitutionTypeEnum, ItemTypeEnum, KindEnum, LlmProviderEnum, MediaService, MediaTypeEnum, MentorVisibilityEnum, NotificationSourceTypeEnum, NotificationStatusEnum, NotificationsService, OpenAPI, PeriodicAgentLogStatusEnum, PlatformListStatusEnum, PreviousAgentStatusEnum, ProgramTypeEnum, PromptVisibilityEnum, Provider05cEnum, Provider637Enum, Provider63aEnum, RatingEnum, RecommendationsService, ReportsService, ResourceScrappedDataStatusEnum, ScimService, SearchService, ServiceEnum, SkillsService, StateEnum, Status6eeEnum, StepStatusEnum, StripeCheckoutSessionRequestModeEnum, SttProviderEnum, TargetSystemEnum, ThemeEnum, TrainingStatusEnum, TransportEnum, TtsProviderEnum, TypeC42Enum };
35018
36409
  //# sourceMappingURL=index.esm.js.map