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