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