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