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