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