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