@iblai/iblai-api 4.7.3-ai → 4.7.3-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.7.3-ai',
111
+ VERSION: '4.7.3-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 */
@@ -9566,6 +9616,1347 @@ class AiAnalyticsService {
9566
9616
  }
9567
9617
  }
9568
9618
 
9619
+ class AiBotService {
9620
+ /**
9621
+ * Create modify and update bot information for a specific tenant.
9622
+ * @returns Bot
9623
+ * @throws ApiError
9624
+ */
9625
+ static aiBotV1BotsBotList({
9626
+ org
9627
+ }) {
9628
+ return request(OpenAPI, {
9629
+ method: 'GET',
9630
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
9631
+ path: {
9632
+ 'org': org
9633
+ }
9634
+ });
9635
+ }
9636
+ /**
9637
+ * Create modify and update bot information for a specific tenant.
9638
+ * @returns BotCreate
9639
+ * @throws ApiError
9640
+ */
9641
+ static aiBotV1BotsBotCreate({
9642
+ org,
9643
+ requestBody
9644
+ }) {
9645
+ return request(OpenAPI, {
9646
+ method: 'POST',
9647
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
9648
+ path: {
9649
+ 'org': org
9650
+ },
9651
+ body: requestBody,
9652
+ mediaType: 'application/json'
9653
+ });
9654
+ }
9655
+ /**
9656
+ * Create slash commands for a specific bot
9657
+ * eg. /iblai-baseline
9658
+ * @returns BotCommand
9659
+ * @throws ApiError
9660
+ */
9661
+ static aiBotV1BotsBotCommandsList({
9662
+ org
9663
+ }) {
9664
+ return request(OpenAPI, {
9665
+ method: 'GET',
9666
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
9667
+ path: {
9668
+ 'org': org
9669
+ }
9670
+ });
9671
+ }
9672
+ /**
9673
+ * Create slash commands for a specific bot
9674
+ * eg. /iblai-baseline
9675
+ * @returns BotCommand
9676
+ * @throws ApiError
9677
+ */
9678
+ static aiBotV1BotsBotCommandsCreate({
9679
+ org,
9680
+ requestBody
9681
+ }) {
9682
+ return request(OpenAPI, {
9683
+ method: 'POST',
9684
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
9685
+ path: {
9686
+ 'org': org
9687
+ },
9688
+ body: requestBody,
9689
+ mediaType: 'application/json'
9690
+ });
9691
+ }
9692
+ /**
9693
+ * Create slash commands for a specific bot
9694
+ * eg. /iblai-baseline
9695
+ * @returns BotCommand
9696
+ * @throws ApiError
9697
+ */
9698
+ static aiBotV1BotsBotCommandsRetrieve({
9699
+ id,
9700
+ org
9701
+ }) {
9702
+ return request(OpenAPI, {
9703
+ method: 'GET',
9704
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9705
+ path: {
9706
+ 'id': id,
9707
+ 'org': org
9708
+ }
9709
+ });
9710
+ }
9711
+ /**
9712
+ * Create slash commands for a specific bot
9713
+ * eg. /iblai-baseline
9714
+ * @returns BotCommand
9715
+ * @throws ApiError
9716
+ */
9717
+ static aiBotV1BotsBotCommandsUpdate({
9718
+ id,
9719
+ org,
9720
+ requestBody
9721
+ }) {
9722
+ return request(OpenAPI, {
9723
+ method: 'PUT',
9724
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9725
+ path: {
9726
+ 'id': id,
9727
+ 'org': org
9728
+ },
9729
+ body: requestBody,
9730
+ mediaType: 'application/json'
9731
+ });
9732
+ }
9733
+ /**
9734
+ * Create slash commands for a specific bot
9735
+ * eg. /iblai-baseline
9736
+ * @returns BotCommand
9737
+ * @throws ApiError
9738
+ */
9739
+ static aiBotV1BotsBotCommandsPartialUpdate({
9740
+ id,
9741
+ org,
9742
+ requestBody
9743
+ }) {
9744
+ return request(OpenAPI, {
9745
+ method: 'PATCH',
9746
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9747
+ path: {
9748
+ 'id': id,
9749
+ 'org': org
9750
+ },
9751
+ body: requestBody,
9752
+ mediaType: 'application/json'
9753
+ });
9754
+ }
9755
+ /**
9756
+ * Create slash commands for a specific bot
9757
+ * eg. /iblai-baseline
9758
+ * @returns void
9759
+ * @throws ApiError
9760
+ */
9761
+ static aiBotV1BotsBotCommandsDestroy({
9762
+ id,
9763
+ org
9764
+ }) {
9765
+ return request(OpenAPI, {
9766
+ method: 'DELETE',
9767
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9768
+ path: {
9769
+ 'id': id,
9770
+ 'org': org
9771
+ }
9772
+ });
9773
+ }
9774
+ /**
9775
+ * Create modify and update bot information for a specific tenant.
9776
+ * @returns Bot
9777
+ * @throws ApiError
9778
+ */
9779
+ static aiBotV1BotsBotRetrieve({
9780
+ id,
9781
+ org
9782
+ }) {
9783
+ return request(OpenAPI, {
9784
+ method: 'GET',
9785
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9786
+ path: {
9787
+ 'id': id,
9788
+ 'org': org
9789
+ }
9790
+ });
9791
+ }
9792
+ /**
9793
+ * Create modify and update bot information for a specific tenant.
9794
+ * @returns BotCreate
9795
+ * @throws ApiError
9796
+ */
9797
+ static aiBotV1BotsBotUpdate({
9798
+ id,
9799
+ org,
9800
+ requestBody
9801
+ }) {
9802
+ return request(OpenAPI, {
9803
+ method: 'PUT',
9804
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9805
+ path: {
9806
+ 'id': id,
9807
+ 'org': org
9808
+ },
9809
+ body: requestBody,
9810
+ mediaType: 'application/json'
9811
+ });
9812
+ }
9813
+ /**
9814
+ * Create modify and update bot information for a specific tenant.
9815
+ * @returns BotCreate
9816
+ * @throws ApiError
9817
+ */
9818
+ static aiBotV1BotsBotPartialUpdate({
9819
+ id,
9820
+ org,
9821
+ requestBody
9822
+ }) {
9823
+ return request(OpenAPI, {
9824
+ method: 'PATCH',
9825
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9826
+ path: {
9827
+ 'id': id,
9828
+ 'org': org
9829
+ },
9830
+ body: requestBody,
9831
+ mediaType: 'application/json'
9832
+ });
9833
+ }
9834
+ /**
9835
+ * Create modify and update bot information for a specific tenant.
9836
+ * @returns void
9837
+ * @throws ApiError
9838
+ */
9839
+ static aiBotV1BotsBotDestroy({
9840
+ id,
9841
+ org
9842
+ }) {
9843
+ return request(OpenAPI, {
9844
+ method: 'DELETE',
9845
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9846
+ path: {
9847
+ 'id': id,
9848
+ 'org': org
9849
+ }
9850
+ });
9851
+ }
9852
+ /**
9853
+ * Create modify and update bot information for a specific tenant.
9854
+ * @returns DiscordConfig
9855
+ * @throws ApiError
9856
+ */
9857
+ static aiBotV1BotsBotConfigDiscordRetrieve({
9858
+ id,
9859
+ org
9860
+ }) {
9861
+ return request(OpenAPI, {
9862
+ method: 'GET',
9863
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
9864
+ path: {
9865
+ 'id': id,
9866
+ 'org': org
9867
+ }
9868
+ });
9869
+ }
9870
+ /**
9871
+ * Create modify and update bot information for a specific tenant.
9872
+ * @returns DiscordConfig
9873
+ * @throws ApiError
9874
+ */
9875
+ static aiBotV1BotsBotConfigDiscordPartialUpdate({
9876
+ id,
9877
+ org,
9878
+ requestBody
9879
+ }) {
9880
+ return request(OpenAPI, {
9881
+ method: 'PATCH',
9882
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
9883
+ path: {
9884
+ 'id': id,
9885
+ 'org': org
9886
+ },
9887
+ body: requestBody,
9888
+ mediaType: 'application/json'
9889
+ });
9890
+ }
9891
+ /**
9892
+ * Create modify and update bot information for a specific tenant.
9893
+ * @returns SlackConfig
9894
+ * @throws ApiError
9895
+ */
9896
+ static aiBotV1BotsBotConfigSlackRetrieve({
9897
+ id,
9898
+ org
9899
+ }) {
9900
+ return request(OpenAPI, {
9901
+ method: 'GET',
9902
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
9903
+ path: {
9904
+ 'id': id,
9905
+ 'org': org
9906
+ }
9907
+ });
9908
+ }
9909
+ /**
9910
+ * Create modify and update bot information for a specific tenant.
9911
+ * @returns SlackConfig
9912
+ * @throws ApiError
9913
+ */
9914
+ static aiBotV1BotsBotConfigSlackUpdateCreate({
9915
+ id,
9916
+ org,
9917
+ requestBody
9918
+ }) {
9919
+ return request(OpenAPI, {
9920
+ method: 'POST',
9921
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9922
+ path: {
9923
+ 'id': id,
9924
+ 'org': org
9925
+ },
9926
+ body: requestBody,
9927
+ mediaType: 'application/json'
9928
+ });
9929
+ }
9930
+ /**
9931
+ * Create modify and update bot information for a specific tenant.
9932
+ * @returns SlackConfig
9933
+ * @throws ApiError
9934
+ */
9935
+ static aiBotV1BotsBotConfigSlackUpdateUpdate({
9936
+ id,
9937
+ org,
9938
+ requestBody
9939
+ }) {
9940
+ return request(OpenAPI, {
9941
+ method: 'PUT',
9942
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9943
+ path: {
9944
+ 'id': id,
9945
+ 'org': org
9946
+ },
9947
+ body: requestBody,
9948
+ mediaType: 'application/json'
9949
+ });
9950
+ }
9951
+ /**
9952
+ * Create modify and update bot information for a specific tenant.
9953
+ * @returns SlackConfig
9954
+ * @throws ApiError
9955
+ */
9956
+ static aiBotV1BotsBotConfigSlackUpdatePartialUpdate({
9957
+ id,
9958
+ org,
9959
+ requestBody
9960
+ }) {
9961
+ return request(OpenAPI, {
9962
+ method: 'PATCH',
9963
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9964
+ path: {
9965
+ 'id': id,
9966
+ 'org': org
9967
+ },
9968
+ body: requestBody,
9969
+ mediaType: 'application/json'
9970
+ });
9971
+ }
9972
+ /**
9973
+ * Create modify and update bot information for a specific tenant.
9974
+ * @returns TeamsConfig
9975
+ * @throws ApiError
9976
+ */
9977
+ static aiBotV1BotsBotConfigTeamsRetrieve({
9978
+ id,
9979
+ org
9980
+ }) {
9981
+ return request(OpenAPI, {
9982
+ method: 'GET',
9983
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
9984
+ path: {
9985
+ 'id': id,
9986
+ 'org': org
9987
+ }
9988
+ });
9989
+ }
9990
+ /**
9991
+ * Create modify and update bot information for a specific tenant.
9992
+ * @returns TeamsConfig
9993
+ * @throws ApiError
9994
+ */
9995
+ static aiBotV1BotsBotConfigTeamsUpdateCreate({
9996
+ id,
9997
+ org,
9998
+ requestBody
9999
+ }) {
10000
+ return request(OpenAPI, {
10001
+ method: 'POST',
10002
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
10003
+ path: {
10004
+ 'id': id,
10005
+ 'org': org
10006
+ },
10007
+ body: requestBody,
10008
+ mediaType: 'application/json'
10009
+ });
10010
+ }
10011
+ /**
10012
+ * Create modify and update bot information for a specific tenant.
10013
+ * @returns TeamsConfig
10014
+ * @throws ApiError
10015
+ */
10016
+ static aiBotV1BotsBotConfigTeamsUpdateUpdate({
10017
+ id,
10018
+ org,
10019
+ requestBody
10020
+ }) {
10021
+ return request(OpenAPI, {
10022
+ method: 'PUT',
10023
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
10024
+ path: {
10025
+ 'id': id,
10026
+ 'org': org
10027
+ },
10028
+ body: requestBody,
10029
+ mediaType: 'application/json'
10030
+ });
10031
+ }
10032
+ /**
10033
+ * Create modify and update bot information for a specific tenant.
10034
+ * @returns TeamsConfig
10035
+ * @throws ApiError
10036
+ */
10037
+ static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate({
10038
+ id,
10039
+ org,
10040
+ requestBody
10041
+ }) {
10042
+ return request(OpenAPI, {
10043
+ method: 'PATCH',
10044
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
10045
+ path: {
10046
+ 'id': id,
10047
+ 'org': org
10048
+ },
10049
+ body: requestBody,
10050
+ mediaType: 'application/json'
10051
+ });
10052
+ }
10053
+ /**
10054
+ * Create modify and update bot information for a specific tenant.
10055
+ * @returns WebexConfig
10056
+ * @throws ApiError
10057
+ */
10058
+ static aiBotV1BotsBotConfigWebexRetrieve({
10059
+ id,
10060
+ org
10061
+ }) {
10062
+ return request(OpenAPI, {
10063
+ method: 'GET',
10064
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
10065
+ path: {
10066
+ 'id': id,
10067
+ 'org': org
10068
+ }
10069
+ });
10070
+ }
10071
+ /**
10072
+ * Create modify and update bot information for a specific tenant.
10073
+ * @returns WebexConfig
10074
+ * @throws ApiError
10075
+ */
10076
+ static aiBotV1BotsBotConfigWebexPartialUpdate({
10077
+ id,
10078
+ org,
10079
+ requestBody
10080
+ }) {
10081
+ return request(OpenAPI, {
10082
+ method: 'PATCH',
10083
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
10084
+ path: {
10085
+ 'id': id,
10086
+ 'org': org
10087
+ },
10088
+ body: requestBody,
10089
+ mediaType: 'application/json'
10090
+ });
10091
+ }
10092
+ /**
10093
+ * Create modify and update bot information for a specific tenant.
10094
+ * @returns WhatsappConfig
10095
+ * @throws ApiError
10096
+ */
10097
+ static aiBotV1BotsBotConfigWhatsappRetrieve({
10098
+ id,
10099
+ org
10100
+ }) {
10101
+ return request(OpenAPI, {
10102
+ method: 'GET',
10103
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
10104
+ path: {
10105
+ 'id': id,
10106
+ 'org': org
10107
+ }
10108
+ });
10109
+ }
10110
+ /**
10111
+ * Create modify and update bot information for a specific tenant.
10112
+ * @returns WhatsappConfig
10113
+ * @throws ApiError
10114
+ */
10115
+ static aiBotV1BotsBotWhatsappConfigUpdate({
10116
+ id,
10117
+ org,
10118
+ requestBody
10119
+ }) {
10120
+ return request(OpenAPI, {
10121
+ method: 'PUT',
10122
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
10123
+ path: {
10124
+ 'id': id,
10125
+ 'org': org
10126
+ },
10127
+ body: requestBody,
10128
+ mediaType: 'application/json'
10129
+ });
10130
+ }
10131
+ /**
10132
+ * Create modify and update bot information for a specific tenant.
10133
+ * @returns WhatsappConfig
10134
+ * @throws ApiError
10135
+ */
10136
+ static aiBotV1BotsBotWhatsappConfigPartialUpdate({
10137
+ id,
10138
+ org,
10139
+ requestBody
10140
+ }) {
10141
+ return request(OpenAPI, {
10142
+ method: 'PATCH',
10143
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
10144
+ path: {
10145
+ 'id': id,
10146
+ 'org': org
10147
+ },
10148
+ body: requestBody,
10149
+ mediaType: 'application/json'
10150
+ });
10151
+ }
10152
+ /**
10153
+ * Setup discord user id linkage with discord bots
10154
+ * this will be used to authenticate the user when interracting with discord bots.
10155
+ * the user id can be copied from the discord app after tapping on the user profile.
10156
+ * @returns DiscordUserConfig
10157
+ * @throws ApiError
10158
+ */
10159
+ static aiBotV1BotsDiscordUserConfigList({
10160
+ org
10161
+ }) {
10162
+ return request(OpenAPI, {
10163
+ method: 'GET',
10164
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
10165
+ path: {
10166
+ 'org': org
10167
+ }
10168
+ });
10169
+ }
10170
+ /**
10171
+ * Setup discord user id linkage with discord bots
10172
+ * this will be used to authenticate the user when interracting with discord bots.
10173
+ * the user id can be copied from the discord app after tapping on the user profile.
10174
+ * @returns DiscordUserConfig
10175
+ * @throws ApiError
10176
+ */
10177
+ static aiBotV1BotsDiscordUserConfigCreate({
10178
+ org,
10179
+ requestBody
10180
+ }) {
10181
+ return request(OpenAPI, {
10182
+ method: 'POST',
10183
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
10184
+ path: {
10185
+ 'org': org
10186
+ },
10187
+ body: requestBody,
10188
+ mediaType: 'application/json'
10189
+ });
10190
+ }
10191
+ /**
10192
+ * Setup discord user id linkage with discord bots
10193
+ * this will be used to authenticate the user when interracting with discord bots.
10194
+ * the user id can be copied from the discord app after tapping on the user profile.
10195
+ * @returns DiscordUserConfig
10196
+ * @throws ApiError
10197
+ */
10198
+ static aiBotV1BotsDiscordUserConfigRetrieve({
10199
+ id,
10200
+ org
10201
+ }) {
10202
+ return request(OpenAPI, {
10203
+ method: 'GET',
10204
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
10205
+ path: {
10206
+ 'id': id,
10207
+ 'org': org
10208
+ }
10209
+ });
10210
+ }
10211
+ /**
10212
+ * Setup discord user id linkage with discord bots
10213
+ * this will be used to authenticate the user when interracting with discord bots.
10214
+ * the user id can be copied from the discord app after tapping on the user profile.
10215
+ * @returns DiscordUserConfig
10216
+ * @throws ApiError
10217
+ */
10218
+ static aiBotV1BotsDiscordUserConfigUpdate({
10219
+ id,
10220
+ org,
10221
+ requestBody
10222
+ }) {
10223
+ return request(OpenAPI, {
10224
+ method: 'PUT',
10225
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
10226
+ path: {
10227
+ 'id': id,
10228
+ 'org': org
10229
+ },
10230
+ body: requestBody,
10231
+ mediaType: 'application/json'
10232
+ });
10233
+ }
10234
+ /**
10235
+ * Setup discord user id linkage with discord bots
10236
+ * this will be used to authenticate the user when interracting with discord bots.
10237
+ * the user id can be copied from the discord app after tapping on the user profile.
10238
+ * @returns DiscordUserConfig
10239
+ * @throws ApiError
10240
+ */
10241
+ static aiBotV1BotsDiscordUserConfigPartialUpdate({
10242
+ id,
10243
+ org,
10244
+ requestBody
10245
+ }) {
10246
+ return request(OpenAPI, {
10247
+ method: 'PATCH',
10248
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
10249
+ path: {
10250
+ 'id': id,
10251
+ 'org': org
10252
+ },
10253
+ body: requestBody,
10254
+ mediaType: 'application/json'
10255
+ });
10256
+ }
10257
+ /**
10258
+ * Setup discord user id linkage with discord bots
10259
+ * this will be used to authenticate the user when interracting with discord bots.
10260
+ * the user id can be copied from the discord app after tapping on the user profile.
10261
+ * @returns void
10262
+ * @throws ApiError
10263
+ */
10264
+ static aiBotV1BotsDiscordUserConfigDestroy({
10265
+ id,
10266
+ org
10267
+ }) {
10268
+ return request(OpenAPI, {
10269
+ method: 'DELETE',
10270
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
10271
+ path: {
10272
+ 'id': id,
10273
+ 'org': org
10274
+ }
10275
+ });
10276
+ }
10277
+ /**
10278
+ * Setup slack username and domain linkage with slack bots
10279
+ * this will be used to authenticate the user when interracting with slack bots.
10280
+ * @returns SlackUserConfig
10281
+ * @throws ApiError
10282
+ */
10283
+ static aiBotV1BotsSlackUserConfigList({
10284
+ org
10285
+ }) {
10286
+ return request(OpenAPI, {
10287
+ method: 'GET',
10288
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
10289
+ path: {
10290
+ 'org': org
10291
+ }
10292
+ });
10293
+ }
10294
+ /**
10295
+ * Setup slack username and domain linkage with slack bots
10296
+ * this will be used to authenticate the user when interracting with slack bots.
10297
+ * @returns SlackUserConfig
10298
+ * @throws ApiError
10299
+ */
10300
+ static aiBotV1BotsSlackUserConfigCreate({
10301
+ org,
10302
+ requestBody
10303
+ }) {
10304
+ return request(OpenAPI, {
10305
+ method: 'POST',
10306
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
10307
+ path: {
10308
+ 'org': org
10309
+ },
10310
+ body: requestBody,
10311
+ mediaType: 'application/json'
10312
+ });
10313
+ }
10314
+ /**
10315
+ * Setup slack username and domain linkage with slack bots
10316
+ * this will be used to authenticate the user when interracting with slack bots.
10317
+ * @returns SlackUserConfig
10318
+ * @throws ApiError
10319
+ */
10320
+ static aiBotV1BotsSlackUserConfigRetrieve({
10321
+ id,
10322
+ org
10323
+ }) {
10324
+ return request(OpenAPI, {
10325
+ method: 'GET',
10326
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
10327
+ path: {
10328
+ 'id': id,
10329
+ 'org': org
10330
+ }
10331
+ });
10332
+ }
10333
+ /**
10334
+ * Setup slack username and domain linkage with slack bots
10335
+ * this will be used to authenticate the user when interracting with slack bots.
10336
+ * @returns SlackUserConfig
10337
+ * @throws ApiError
10338
+ */
10339
+ static aiBotV1BotsSlackUserConfigUpdate({
10340
+ id,
10341
+ org,
10342
+ requestBody
10343
+ }) {
10344
+ return request(OpenAPI, {
10345
+ method: 'PUT',
10346
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
10347
+ path: {
10348
+ 'id': id,
10349
+ 'org': org
10350
+ },
10351
+ body: requestBody,
10352
+ mediaType: 'application/json'
10353
+ });
10354
+ }
10355
+ /**
10356
+ * Setup slack username and domain linkage with slack bots
10357
+ * this will be used to authenticate the user when interracting with slack bots.
10358
+ * @returns SlackUserConfig
10359
+ * @throws ApiError
10360
+ */
10361
+ static aiBotV1BotsSlackUserConfigPartialUpdate({
10362
+ id,
10363
+ org,
10364
+ requestBody
10365
+ }) {
10366
+ return request(OpenAPI, {
10367
+ method: 'PATCH',
10368
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
10369
+ path: {
10370
+ 'id': id,
10371
+ 'org': org
10372
+ },
10373
+ body: requestBody,
10374
+ mediaType: 'application/json'
10375
+ });
10376
+ }
10377
+ /**
10378
+ * Setup slack username and domain linkage with slack bots
10379
+ * this will be used to authenticate the user when interracting with slack bots.
10380
+ * @returns void
10381
+ * @throws ApiError
10382
+ */
10383
+ static aiBotV1BotsSlackUserConfigDestroy({
10384
+ id,
10385
+ org
10386
+ }) {
10387
+ return request(OpenAPI, {
10388
+ method: 'DELETE',
10389
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
10390
+ path: {
10391
+ 'id': id,
10392
+ 'org': org
10393
+ }
10394
+ });
10395
+ }
10396
+ /**
10397
+ * Setup phone number linkage with whatsapp bots
10398
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10399
+ * @returns WhatsappUserConfig
10400
+ * @throws ApiError
10401
+ */
10402
+ static aiBotV1BotsWhatsappUserConfigList({
10403
+ org
10404
+ }) {
10405
+ return request(OpenAPI, {
10406
+ method: 'GET',
10407
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
10408
+ path: {
10409
+ 'org': org
10410
+ }
10411
+ });
10412
+ }
10413
+ /**
10414
+ * Setup phone number linkage with whatsapp bots
10415
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10416
+ * @returns WhatsappUserConfig
10417
+ * @throws ApiError
10418
+ */
10419
+ static aiBotV1BotsWhatsappUserConfigCreate({
10420
+ org,
10421
+ requestBody
10422
+ }) {
10423
+ return request(OpenAPI, {
10424
+ method: 'POST',
10425
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
10426
+ path: {
10427
+ 'org': org
10428
+ },
10429
+ body: requestBody,
10430
+ mediaType: 'application/json'
10431
+ });
10432
+ }
10433
+ /**
10434
+ * Setup phone number linkage with whatsapp bots
10435
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10436
+ * @returns WhatsappUserConfig
10437
+ * @throws ApiError
10438
+ */
10439
+ static aiBotV1BotsWhatsappUserConfigRetrieve({
10440
+ id,
10441
+ org
10442
+ }) {
10443
+ return request(OpenAPI, {
10444
+ method: 'GET',
10445
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10446
+ path: {
10447
+ 'id': id,
10448
+ 'org': org
10449
+ }
10450
+ });
10451
+ }
10452
+ /**
10453
+ * Setup phone number linkage with whatsapp bots
10454
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10455
+ * @returns WhatsappUserConfig
10456
+ * @throws ApiError
10457
+ */
10458
+ static aiBotV1BotsWhatsappUserConfigUpdate({
10459
+ id,
10460
+ org,
10461
+ requestBody
10462
+ }) {
10463
+ return request(OpenAPI, {
10464
+ method: 'PUT',
10465
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10466
+ path: {
10467
+ 'id': id,
10468
+ 'org': org
10469
+ },
10470
+ body: requestBody,
10471
+ mediaType: 'application/json'
10472
+ });
10473
+ }
10474
+ /**
10475
+ * Setup phone number linkage with whatsapp bots
10476
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10477
+ * @returns WhatsappUserConfig
10478
+ * @throws ApiError
10479
+ */
10480
+ static aiBotV1BotsWhatsappUserConfigPartialUpdate({
10481
+ id,
10482
+ org,
10483
+ requestBody
10484
+ }) {
10485
+ return request(OpenAPI, {
10486
+ method: 'PATCH',
10487
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10488
+ path: {
10489
+ 'id': id,
10490
+ 'org': org
10491
+ },
10492
+ body: requestBody,
10493
+ mediaType: 'application/json'
10494
+ });
10495
+ }
10496
+ /**
10497
+ * Setup phone number linkage with whatsapp bots
10498
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10499
+ * @returns void
10500
+ * @throws ApiError
10501
+ */
10502
+ static aiBotV1BotsWhatsappUserConfigDestroy({
10503
+ id,
10504
+ org
10505
+ }) {
10506
+ return request(OpenAPI, {
10507
+ method: 'DELETE',
10508
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10509
+ path: {
10510
+ 'id': id,
10511
+ 'org': org
10512
+ }
10513
+ });
10514
+ }
10515
+ /**
10516
+ * Webhook endpoint to receive and process discord messages.
10517
+ * @returns DiscordWebhook
10518
+ * @throws ApiError
10519
+ */
10520
+ static aiBotV1BotsWebhooksDiscordCreate({
10521
+ name,
10522
+ org,
10523
+ requestBody
10524
+ }) {
10525
+ return request(OpenAPI, {
10526
+ method: 'POST',
10527
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
10528
+ path: {
10529
+ 'name': name,
10530
+ 'org': org
10531
+ },
10532
+ body: requestBody,
10533
+ mediaType: 'application/json'
10534
+ });
10535
+ }
10536
+ /**
10537
+ * @returns SlackWebhook
10538
+ * @throws ApiError
10539
+ */
10540
+ static aiBotV1BotsWebhooksSlackCreate({
10541
+ name,
10542
+ org,
10543
+ requestBody
10544
+ }) {
10545
+ return request(OpenAPI, {
10546
+ method: 'POST',
10547
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
10548
+ path: {
10549
+ 'name': name,
10550
+ 'org': org
10551
+ },
10552
+ body: requestBody,
10553
+ mediaType: 'application/json'
10554
+ });
10555
+ }
10556
+ /**
10557
+ * @returns TeamsWebhook
10558
+ * @throws ApiError
10559
+ */
10560
+ static aiBotV1BotsWebhooksTeamsCreate({
10561
+ name,
10562
+ org,
10563
+ requestBody
10564
+ }) {
10565
+ return request(OpenAPI, {
10566
+ method: 'POST',
10567
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
10568
+ path: {
10569
+ 'name': name,
10570
+ 'org': org
10571
+ },
10572
+ body: requestBody,
10573
+ mediaType: 'application/json'
10574
+ });
10575
+ }
10576
+ /**
10577
+ * Webhook endpoint to receive and process discord messages.
10578
+ * @returns WebexWebhook
10579
+ * @throws ApiError
10580
+ */
10581
+ static aiBotV1BotsWebhooksWebexCreate({
10582
+ name,
10583
+ org,
10584
+ requestBody
10585
+ }) {
10586
+ return request(OpenAPI, {
10587
+ method: 'POST',
10588
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
10589
+ path: {
10590
+ 'name': name,
10591
+ 'org': org
10592
+ },
10593
+ body: requestBody,
10594
+ mediaType: 'application/json'
10595
+ });
10596
+ }
10597
+ /**
10598
+ * Respond to whatsapp's webhook challenge.
10599
+ * Parameters Required include the tenant key (org) and the name of the bot: (name)
10600
+ * @returns WhatAppWebHook
10601
+ * @throws ApiError
10602
+ */
10603
+ static aiBotV1BotsWebhooksWhatsappRetrieve({
10604
+ name,
10605
+ org
10606
+ }) {
10607
+ return request(OpenAPI, {
10608
+ method: 'GET',
10609
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
10610
+ path: {
10611
+ 'name': name,
10612
+ 'org': org
10613
+ }
10614
+ });
10615
+ }
10616
+ /**
10617
+ * Accept and process webhook events from whatsapp.
10618
+ * @returns WhatAppWebHook
10619
+ * @throws ApiError
10620
+ */
10621
+ static aiBotV1BotsWebhooksWhatsappCreate({
10622
+ name,
10623
+ org,
10624
+ requestBody
10625
+ }) {
10626
+ return request(OpenAPI, {
10627
+ method: 'POST',
10628
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
10629
+ path: {
10630
+ 'name': name,
10631
+ 'org': org
10632
+ },
10633
+ body: requestBody,
10634
+ mediaType: 'application/json'
10635
+ });
10636
+ }
10637
+ }
10638
+
10639
+ class AiFinetuningService {
10640
+ /**
10641
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10642
+ * @returns PaginatedDataSetList
10643
+ * @throws ApiError
10644
+ */
10645
+ static aiFinetuningV1OrgUserDatasetsList({
10646
+ org,
10647
+ username,
10648
+ dateCreated,
10649
+ numDataPoints,
10650
+ ordering,
10651
+ page,
10652
+ pageSize,
10653
+ retryAttempts,
10654
+ search,
10655
+ status
10656
+ }) {
10657
+ return request(OpenAPI, {
10658
+ method: 'GET',
10659
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
10660
+ path: {
10661
+ 'org': org,
10662
+ 'username': username
10663
+ },
10664
+ query: {
10665
+ 'date_created': dateCreated,
10666
+ 'num_data_points': numDataPoints,
10667
+ 'ordering': ordering,
10668
+ 'page': page,
10669
+ 'page_size': pageSize,
10670
+ 'retry_attempts': retryAttempts,
10671
+ 'search': search,
10672
+ 'status': status
10673
+ }
10674
+ });
10675
+ }
10676
+ /**
10677
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10678
+ * @returns DataSetCreate
10679
+ * @throws ApiError
10680
+ */
10681
+ static aiFinetuningV1OrgUserDatasetsCreate({
10682
+ org,
10683
+ username,
10684
+ requestBody
10685
+ }) {
10686
+ return request(OpenAPI, {
10687
+ method: 'POST',
10688
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
10689
+ path: {
10690
+ 'org': org,
10691
+ 'username': username
10692
+ },
10693
+ body: requestBody,
10694
+ mediaType: 'application/json'
10695
+ });
10696
+ }
10697
+ /**
10698
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10699
+ * @returns DataSet
10700
+ * @throws ApiError
10701
+ */
10702
+ static aiFinetuningV1OrgUserDatasetsRetrieve({
10703
+ id,
10704
+ org,
10705
+ username
10706
+ }) {
10707
+ return request(OpenAPI, {
10708
+ method: 'GET',
10709
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10710
+ path: {
10711
+ 'id': id,
10712
+ 'org': org,
10713
+ 'username': username
10714
+ }
10715
+ });
10716
+ }
10717
+ /**
10718
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10719
+ * @returns DataSet
10720
+ * @throws ApiError
10721
+ */
10722
+ static aiFinetuningV1OrgUserDatasetsUpdate({
10723
+ id,
10724
+ org,
10725
+ username,
10726
+ requestBody
10727
+ }) {
10728
+ return request(OpenAPI, {
10729
+ method: 'PUT',
10730
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10731
+ path: {
10732
+ 'id': id,
10733
+ 'org': org,
10734
+ 'username': username
10735
+ },
10736
+ body: requestBody,
10737
+ mediaType: 'application/json'
10738
+ });
10739
+ }
10740
+ /**
10741
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10742
+ * @returns DataSet
10743
+ * @throws ApiError
10744
+ */
10745
+ static aiFinetuningV1OrgUserDatasetsPartialUpdate({
10746
+ id,
10747
+ org,
10748
+ username,
10749
+ requestBody
10750
+ }) {
10751
+ return request(OpenAPI, {
10752
+ method: 'PATCH',
10753
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10754
+ path: {
10755
+ 'id': id,
10756
+ 'org': org,
10757
+ 'username': username
10758
+ },
10759
+ body: requestBody,
10760
+ mediaType: 'application/json'
10761
+ });
10762
+ }
10763
+ /**
10764
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10765
+ * @returns void
10766
+ * @throws ApiError
10767
+ */
10768
+ static aiFinetuningV1OrgUserDatasetsDestroy({
10769
+ id,
10770
+ org,
10771
+ username
10772
+ }) {
10773
+ return request(OpenAPI, {
10774
+ method: 'DELETE',
10775
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10776
+ path: {
10777
+ 'id': id,
10778
+ 'org': org,
10779
+ 'username': username
10780
+ }
10781
+ });
10782
+ }
10783
+ /**
10784
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10785
+ * @returns PaginatedTrainingList
10786
+ * @throws ApiError
10787
+ */
10788
+ static aiFinetuningV1OrgUserTrainingsList({
10789
+ org,
10790
+ username,
10791
+ baseModelName,
10792
+ dataset,
10793
+ dateCreated,
10794
+ fineTunedModel,
10795
+ lastModified,
10796
+ ordering,
10797
+ page,
10798
+ pageSize,
10799
+ preprocessDataset,
10800
+ provider,
10801
+ search,
10802
+ status
10803
+ }) {
10804
+ return request(OpenAPI, {
10805
+ method: 'GET',
10806
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
10807
+ path: {
10808
+ 'org': org,
10809
+ 'username': username
10810
+ },
10811
+ query: {
10812
+ 'base_model_name': baseModelName,
10813
+ 'dataset': dataset,
10814
+ 'date_created': dateCreated,
10815
+ 'fine_tuned_model': fineTunedModel,
10816
+ 'last_modified': lastModified,
10817
+ 'ordering': ordering,
10818
+ 'page': page,
10819
+ 'page_size': pageSize,
10820
+ 'preprocess_dataset': preprocessDataset,
10821
+ 'provider': provider,
10822
+ 'search': search,
10823
+ 'status': status
10824
+ }
10825
+ });
10826
+ }
10827
+ /**
10828
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10829
+ * @returns TrainingCreate
10830
+ * @throws ApiError
10831
+ */
10832
+ static aiFinetuningV1OrgUserTrainingsCreate({
10833
+ org,
10834
+ username,
10835
+ requestBody
10836
+ }) {
10837
+ return request(OpenAPI, {
10838
+ method: 'POST',
10839
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
10840
+ path: {
10841
+ 'org': org,
10842
+ 'username': username
10843
+ },
10844
+ body: requestBody,
10845
+ mediaType: 'application/json'
10846
+ });
10847
+ }
10848
+ /**
10849
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10850
+ * @returns Training
10851
+ * @throws ApiError
10852
+ */
10853
+ static aiFinetuningV1OrgUserTrainingsRetrieve({
10854
+ id,
10855
+ org,
10856
+ username
10857
+ }) {
10858
+ return request(OpenAPI, {
10859
+ method: 'GET',
10860
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10861
+ path: {
10862
+ 'id': id,
10863
+ 'org': org,
10864
+ 'username': username
10865
+ }
10866
+ });
10867
+ }
10868
+ /**
10869
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10870
+ * @returns TrainingCreate
10871
+ * @throws ApiError
10872
+ */
10873
+ static aiFinetuningV1OrgUserTrainingsUpdate({
10874
+ id,
10875
+ org,
10876
+ username,
10877
+ requestBody
10878
+ }) {
10879
+ return request(OpenAPI, {
10880
+ method: 'PUT',
10881
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10882
+ path: {
10883
+ 'id': id,
10884
+ 'org': org,
10885
+ 'username': username
10886
+ },
10887
+ body: requestBody,
10888
+ mediaType: 'application/json'
10889
+ });
10890
+ }
10891
+ /**
10892
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10893
+ * @returns TrainingCreate
10894
+ * @throws ApiError
10895
+ */
10896
+ static aiFinetuningV1OrgUserTrainingsPartialUpdate({
10897
+ id,
10898
+ org,
10899
+ username,
10900
+ requestBody
10901
+ }) {
10902
+ return request(OpenAPI, {
10903
+ method: 'PATCH',
10904
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10905
+ path: {
10906
+ 'id': id,
10907
+ 'org': org,
10908
+ 'username': username
10909
+ },
10910
+ body: requestBody,
10911
+ mediaType: 'application/json'
10912
+ });
10913
+ }
10914
+ /**
10915
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10916
+ * @returns void
10917
+ * @throws ApiError
10918
+ */
10919
+ static aiFinetuningV1OrgUserTrainingsDestroy({
10920
+ id,
10921
+ org,
10922
+ username
10923
+ }) {
10924
+ return request(OpenAPI, {
10925
+ method: 'DELETE',
10926
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10927
+ path: {
10928
+ 'id': id,
10929
+ 'org': org,
10930
+ 'username': username
10931
+ }
10932
+ });
10933
+ }
10934
+ /**
10935
+ * Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
10936
+ * Filtering and pagination is allowed.
10937
+ *
10938
+ * NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
10939
+ * training list endpoint.
10940
+ * Returns:
10941
+ * Response: A paginated response containing the serialized fine-tuned models.
10942
+ * @returns Training
10943
+ * @throws ApiError
10944
+ */
10945
+ static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve({
10946
+ org,
10947
+ username
10948
+ }) {
10949
+ return request(OpenAPI, {
10950
+ method: 'GET',
10951
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
10952
+ path: {
10953
+ 'org': org,
10954
+ 'username': username
10955
+ }
10956
+ });
10957
+ }
10958
+ }
10959
+
9569
10960
  class AiIndexService {
9570
10961
  /**
9571
10962
  * Retrieve details of a specific document embedding.
@@ -35106,5 +36497,5 @@ class SkillsService {
35106
36497
  }
35107
36498
  }
35108
36499
 
35109
- 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 };
36500
+ 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 };
35110
36501
  //# sourceMappingURL=index.esm.js.map