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