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