@iblai/iblai-api 4.5.2-ai → 4.5.2-ai-plus

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/index.cjs.js +1394 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1393 -2
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +1394 -1
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +39 -0
  8. package/dist/types/models/Bot.d.ts +15 -0
  9. package/dist/types/models/BotCommand.d.ts +6 -0
  10. package/dist/types/models/BotCreate.d.ts +12 -0
  11. package/dist/types/models/DataSet.d.ts +21 -0
  12. package/dist/types/models/DataSetCreate.d.ts +12 -0
  13. package/dist/types/models/DataSetStatusEnum.d.ts +12 -0
  14. package/dist/types/models/DiscordConfig.d.ts +7 -0
  15. package/dist/types/models/DiscordUserConfig.d.ts +10 -0
  16. package/dist/types/models/DiscordWebhook.d.ts +6 -0
  17. package/dist/types/models/PaginatedDataSetList.d.ts +7 -0
  18. package/dist/types/models/PaginatedTrainingList.d.ts +7 -0
  19. package/dist/types/models/PatchedBotCommand.d.ts +6 -0
  20. package/dist/types/models/PatchedBotCreate.d.ts +12 -0
  21. package/dist/types/models/PatchedDataSet.d.ts +21 -0
  22. package/dist/types/models/PatchedDiscordConfig.d.ts +7 -0
  23. package/dist/types/models/PatchedDiscordUserConfig.d.ts +10 -0
  24. package/dist/types/models/PatchedSlackConfig.d.ts +8 -0
  25. package/dist/types/models/PatchedSlackUserConfig.d.ts +17 -0
  26. package/dist/types/models/PatchedTeamsConfig.d.ts +7 -0
  27. package/dist/types/models/PatchedTrainingCreate.d.ts +31 -0
  28. package/dist/types/models/PatchedWebexConfig.d.ts +10 -0
  29. package/dist/types/models/PatchedWhatsappConfig.d.ts +11 -0
  30. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +10 -0
  31. package/dist/types/models/Provider05cEnum.d.ts +14 -0
  32. package/dist/types/models/Provider63aEnum.d.ts +6 -0
  33. package/dist/types/models/SlackConfig.d.ts +8 -0
  34. package/dist/types/models/SlackUserConfig.d.ts +17 -0
  35. package/dist/types/models/SlackWebhook.d.ts +6 -0
  36. package/dist/types/models/TeamsConfig.d.ts +7 -0
  37. package/dist/types/models/TeamsWebhook.d.ts +17 -0
  38. package/dist/types/models/Training.d.ts +41 -0
  39. package/dist/types/models/TrainingCreate.d.ts +31 -0
  40. package/dist/types/models/WebexConfig.d.ts +10 -0
  41. package/dist/types/models/WebexWebhook.d.ts +4 -0
  42. package/dist/types/models/WhatAppWebHook.d.ts +3 -0
  43. package/dist/types/models/WhatsappConfig.d.ts +11 -0
  44. package/dist/types/models/WhatsappUserConfig.d.ts +10 -0
  45. package/dist/types/services/AiBotService.d.ts +642 -0
  46. package/dist/types/services/AiFinetuningService.d.ts +232 -0
  47. package/package.json +1 -1
  48. package/src/core/OpenAPI.ts +1 -1
  49. package/src/index.ts +39 -0
  50. package/src/models/Bot.ts +20 -0
  51. package/src/models/BotCommand.ts +11 -0
  52. package/src/models/BotCreate.ts +17 -0
  53. package/src/models/DataSet.ts +26 -0
  54. package/src/models/DataSetCreate.ts +17 -0
  55. package/src/models/DataSetStatusEnum.ts +16 -0
  56. package/src/models/DiscordConfig.ts +12 -0
  57. package/src/models/DiscordUserConfig.ts +15 -0
  58. package/src/models/DiscordWebhook.ts +11 -0
  59. package/src/models/PaginatedDataSetList.ts +12 -0
  60. package/src/models/PaginatedTrainingList.ts +12 -0
  61. package/src/models/PatchedBotCommand.ts +11 -0
  62. package/src/models/PatchedBotCreate.ts +17 -0
  63. package/src/models/PatchedDataSet.ts +26 -0
  64. package/src/models/PatchedDiscordConfig.ts +12 -0
  65. package/src/models/PatchedDiscordUserConfig.ts +15 -0
  66. package/src/models/PatchedSlackConfig.ts +13 -0
  67. package/src/models/PatchedSlackUserConfig.ts +22 -0
  68. package/src/models/PatchedTeamsConfig.ts +12 -0
  69. package/src/models/PatchedTrainingCreate.ts +36 -0
  70. package/src/models/PatchedWebexConfig.ts +15 -0
  71. package/src/models/PatchedWhatsappConfig.ts +16 -0
  72. package/src/models/PatchedWhatsappUserConfig.ts +15 -0
  73. package/src/models/Provider05cEnum.ts +18 -0
  74. package/src/models/Provider63aEnum.ts +10 -0
  75. package/src/models/SlackConfig.ts +13 -0
  76. package/src/models/SlackUserConfig.ts +22 -0
  77. package/src/models/SlackWebhook.ts +11 -0
  78. package/src/models/TeamsConfig.ts +12 -0
  79. package/src/models/TeamsWebhook.ts +22 -0
  80. package/src/models/Training.ts +46 -0
  81. package/src/models/TrainingCreate.ts +36 -0
  82. package/src/models/WebexConfig.ts +15 -0
  83. package/src/models/WebexWebhook.ts +9 -0
  84. package/src/models/WhatAppWebHook.ts +8 -0
  85. package/src/models/WhatsappConfig.ts +16 -0
  86. package/src/models/WhatsappUserConfig.ts +15 -0
  87. package/src/services/AiBotService.ts +1330 -0
  88. package/src/services/AiFinetuningService.ts +472 -0
package/dist/index.umd.js CHANGED
@@ -114,7 +114,7 @@
114
114
 
115
115
  const OpenAPI = {
116
116
  BASE: 'https://base.manager.iblai.app',
117
- VERSION: '4.5.2-ai',
117
+ VERSION: '4.5.2-ai-plus',
118
118
  WITH_CREDENTIALS: false,
119
119
  CREDENTIALS: 'include',
120
120
  TOKEN: undefined,
@@ -275,6 +275,24 @@
275
275
  CrawlerPatternTypeEnum["REGEX"] = "regex";
276
276
  })(exports.CrawlerPatternTypeEnum || (exports.CrawlerPatternTypeEnum = {}));
277
277
 
278
+ /* generated using openapi-typescript-codegen -- do not edit */
279
+ /* istanbul ignore file */
280
+ /* tslint:disable */
281
+ /* eslint-disable */
282
+ /**
283
+ * * `pending` - Pending
284
+ * * `processing` - Processing
285
+ * * `completed` - Completed
286
+ * * `failed` - Failed
287
+ */
288
+ exports.DataSetStatusEnum = void 0;
289
+ (function (DataSetStatusEnum) {
290
+ DataSetStatusEnum["PENDING"] = "pending";
291
+ DataSetStatusEnum["PROCESSING"] = "processing";
292
+ DataSetStatusEnum["COMPLETED"] = "completed";
293
+ DataSetStatusEnum["FAILED"] = "failed";
294
+ })(exports.DataSetStatusEnum || (exports.DataSetStatusEnum = {}));
295
+
278
296
  /* generated using openapi-typescript-codegen -- do not edit */
279
297
  /* istanbul ignore file */
280
298
  /* tslint:disable */
@@ -571,6 +589,26 @@
571
589
  PromptVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
572
590
  })(exports.PromptVisibilityEnum || (exports.PromptVisibilityEnum = {}));
573
591
 
592
+ /* generated using openapi-typescript-codegen -- do not edit */
593
+ /* istanbul ignore file */
594
+ /* tslint:disable */
595
+ /* eslint-disable */
596
+ /**
597
+ * * `webex` - Webex
598
+ * * `slack` - Slack
599
+ * * `whatsapp` - Whatsapp
600
+ * * `discord` - Discord
601
+ * * `teams` - Teams
602
+ */
603
+ exports.Provider05cEnum = void 0;
604
+ (function (Provider05cEnum) {
605
+ Provider05cEnum["WEBEX"] = "webex";
606
+ Provider05cEnum["SLACK"] = "slack";
607
+ Provider05cEnum["WHATSAPP"] = "whatsapp";
608
+ Provider05cEnum["DISCORD"] = "discord";
609
+ Provider05cEnum["TEAMS"] = "teams";
610
+ })(exports.Provider05cEnum || (exports.Provider05cEnum = {}));
611
+
574
612
  /* generated using openapi-typescript-codegen -- do not edit */
575
613
  /* istanbul ignore file */
576
614
  /* tslint:disable */
@@ -587,6 +625,18 @@
587
625
  Provider637Enum["ELEVENLABS"] = "elevenlabs";
588
626
  })(exports.Provider637Enum || (exports.Provider637Enum = {}));
589
627
 
628
+ /* generated using openapi-typescript-codegen -- do not edit */
629
+ /* istanbul ignore file */
630
+ /* tslint:disable */
631
+ /* eslint-disable */
632
+ /**
633
+ * * `openai` - Openai
634
+ */
635
+ exports.Provider63aEnum = void 0;
636
+ (function (Provider63aEnum) {
637
+ Provider63aEnum["OPENAI"] = "openai";
638
+ })(exports.Provider63aEnum || (exports.Provider63aEnum = {}));
639
+
590
640
  /* generated using openapi-typescript-codegen -- do not edit */
591
641
  /* istanbul ignore file */
592
642
  /* tslint:disable */
@@ -9106,6 +9156,1347 @@
9106
9156
  }
9107
9157
  }
9108
9158
 
9159
+ class AiBotService {
9160
+ /**
9161
+ * Create modify and update bot information for a specific tenant.
9162
+ * @returns Bot
9163
+ * @throws ApiError
9164
+ */
9165
+ static aiBotV1BotsBotList({
9166
+ org
9167
+ }) {
9168
+ return request(OpenAPI, {
9169
+ method: 'GET',
9170
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
9171
+ path: {
9172
+ 'org': org
9173
+ }
9174
+ });
9175
+ }
9176
+ /**
9177
+ * Create modify and update bot information for a specific tenant.
9178
+ * @returns BotCreate
9179
+ * @throws ApiError
9180
+ */
9181
+ static aiBotV1BotsBotCreate({
9182
+ org,
9183
+ requestBody
9184
+ }) {
9185
+ return request(OpenAPI, {
9186
+ method: 'POST',
9187
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
9188
+ path: {
9189
+ 'org': org
9190
+ },
9191
+ body: requestBody,
9192
+ mediaType: 'application/json'
9193
+ });
9194
+ }
9195
+ /**
9196
+ * Create slash commands for a specific bot
9197
+ * eg. /iblai-baseline
9198
+ * @returns BotCommand
9199
+ * @throws ApiError
9200
+ */
9201
+ static aiBotV1BotsBotCommandsList({
9202
+ org
9203
+ }) {
9204
+ return request(OpenAPI, {
9205
+ method: 'GET',
9206
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
9207
+ path: {
9208
+ 'org': org
9209
+ }
9210
+ });
9211
+ }
9212
+ /**
9213
+ * Create slash commands for a specific bot
9214
+ * eg. /iblai-baseline
9215
+ * @returns BotCommand
9216
+ * @throws ApiError
9217
+ */
9218
+ static aiBotV1BotsBotCommandsCreate({
9219
+ org,
9220
+ requestBody
9221
+ }) {
9222
+ return request(OpenAPI, {
9223
+ method: 'POST',
9224
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
9225
+ path: {
9226
+ 'org': org
9227
+ },
9228
+ body: requestBody,
9229
+ mediaType: 'application/json'
9230
+ });
9231
+ }
9232
+ /**
9233
+ * Create slash commands for a specific bot
9234
+ * eg. /iblai-baseline
9235
+ * @returns BotCommand
9236
+ * @throws ApiError
9237
+ */
9238
+ static aiBotV1BotsBotCommandsRetrieve({
9239
+ id,
9240
+ org
9241
+ }) {
9242
+ return request(OpenAPI, {
9243
+ method: 'GET',
9244
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9245
+ path: {
9246
+ 'id': id,
9247
+ 'org': org
9248
+ }
9249
+ });
9250
+ }
9251
+ /**
9252
+ * Create slash commands for a specific bot
9253
+ * eg. /iblai-baseline
9254
+ * @returns BotCommand
9255
+ * @throws ApiError
9256
+ */
9257
+ static aiBotV1BotsBotCommandsUpdate({
9258
+ id,
9259
+ org,
9260
+ requestBody
9261
+ }) {
9262
+ return request(OpenAPI, {
9263
+ method: 'PUT',
9264
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9265
+ path: {
9266
+ 'id': id,
9267
+ 'org': org
9268
+ },
9269
+ body: requestBody,
9270
+ mediaType: 'application/json'
9271
+ });
9272
+ }
9273
+ /**
9274
+ * Create slash commands for a specific bot
9275
+ * eg. /iblai-baseline
9276
+ * @returns BotCommand
9277
+ * @throws ApiError
9278
+ */
9279
+ static aiBotV1BotsBotCommandsPartialUpdate({
9280
+ id,
9281
+ org,
9282
+ requestBody
9283
+ }) {
9284
+ return request(OpenAPI, {
9285
+ method: 'PATCH',
9286
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9287
+ path: {
9288
+ 'id': id,
9289
+ 'org': org
9290
+ },
9291
+ body: requestBody,
9292
+ mediaType: 'application/json'
9293
+ });
9294
+ }
9295
+ /**
9296
+ * Create slash commands for a specific bot
9297
+ * eg. /iblai-baseline
9298
+ * @returns void
9299
+ * @throws ApiError
9300
+ */
9301
+ static aiBotV1BotsBotCommandsDestroy({
9302
+ id,
9303
+ org
9304
+ }) {
9305
+ return request(OpenAPI, {
9306
+ method: 'DELETE',
9307
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9308
+ path: {
9309
+ 'id': id,
9310
+ 'org': org
9311
+ }
9312
+ });
9313
+ }
9314
+ /**
9315
+ * Create modify and update bot information for a specific tenant.
9316
+ * @returns Bot
9317
+ * @throws ApiError
9318
+ */
9319
+ static aiBotV1BotsBotRetrieve({
9320
+ id,
9321
+ org
9322
+ }) {
9323
+ return request(OpenAPI, {
9324
+ method: 'GET',
9325
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9326
+ path: {
9327
+ 'id': id,
9328
+ 'org': org
9329
+ }
9330
+ });
9331
+ }
9332
+ /**
9333
+ * Create modify and update bot information for a specific tenant.
9334
+ * @returns BotCreate
9335
+ * @throws ApiError
9336
+ */
9337
+ static aiBotV1BotsBotUpdate({
9338
+ id,
9339
+ org,
9340
+ requestBody
9341
+ }) {
9342
+ return request(OpenAPI, {
9343
+ method: 'PUT',
9344
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9345
+ path: {
9346
+ 'id': id,
9347
+ 'org': org
9348
+ },
9349
+ body: requestBody,
9350
+ mediaType: 'application/json'
9351
+ });
9352
+ }
9353
+ /**
9354
+ * Create modify and update bot information for a specific tenant.
9355
+ * @returns BotCreate
9356
+ * @throws ApiError
9357
+ */
9358
+ static aiBotV1BotsBotPartialUpdate({
9359
+ id,
9360
+ org,
9361
+ requestBody
9362
+ }) {
9363
+ return request(OpenAPI, {
9364
+ method: 'PATCH',
9365
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9366
+ path: {
9367
+ 'id': id,
9368
+ 'org': org
9369
+ },
9370
+ body: requestBody,
9371
+ mediaType: 'application/json'
9372
+ });
9373
+ }
9374
+ /**
9375
+ * Create modify and update bot information for a specific tenant.
9376
+ * @returns void
9377
+ * @throws ApiError
9378
+ */
9379
+ static aiBotV1BotsBotDestroy({
9380
+ id,
9381
+ org
9382
+ }) {
9383
+ return request(OpenAPI, {
9384
+ method: 'DELETE',
9385
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9386
+ path: {
9387
+ 'id': id,
9388
+ 'org': org
9389
+ }
9390
+ });
9391
+ }
9392
+ /**
9393
+ * Create modify and update bot information for a specific tenant.
9394
+ * @returns DiscordConfig
9395
+ * @throws ApiError
9396
+ */
9397
+ static aiBotV1BotsBotConfigDiscordRetrieve({
9398
+ id,
9399
+ org
9400
+ }) {
9401
+ return request(OpenAPI, {
9402
+ method: 'GET',
9403
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
9404
+ path: {
9405
+ 'id': id,
9406
+ 'org': org
9407
+ }
9408
+ });
9409
+ }
9410
+ /**
9411
+ * Create modify and update bot information for a specific tenant.
9412
+ * @returns DiscordConfig
9413
+ * @throws ApiError
9414
+ */
9415
+ static aiBotV1BotsBotConfigDiscordPartialUpdate({
9416
+ id,
9417
+ org,
9418
+ requestBody
9419
+ }) {
9420
+ return request(OpenAPI, {
9421
+ method: 'PATCH',
9422
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
9423
+ path: {
9424
+ 'id': id,
9425
+ 'org': org
9426
+ },
9427
+ body: requestBody,
9428
+ mediaType: 'application/json'
9429
+ });
9430
+ }
9431
+ /**
9432
+ * Create modify and update bot information for a specific tenant.
9433
+ * @returns SlackConfig
9434
+ * @throws ApiError
9435
+ */
9436
+ static aiBotV1BotsBotConfigSlackRetrieve({
9437
+ id,
9438
+ org
9439
+ }) {
9440
+ return request(OpenAPI, {
9441
+ method: 'GET',
9442
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
9443
+ path: {
9444
+ 'id': id,
9445
+ 'org': org
9446
+ }
9447
+ });
9448
+ }
9449
+ /**
9450
+ * Create modify and update bot information for a specific tenant.
9451
+ * @returns SlackConfig
9452
+ * @throws ApiError
9453
+ */
9454
+ static aiBotV1BotsBotConfigSlackUpdateCreate({
9455
+ id,
9456
+ org,
9457
+ requestBody
9458
+ }) {
9459
+ return request(OpenAPI, {
9460
+ method: 'POST',
9461
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9462
+ path: {
9463
+ 'id': id,
9464
+ 'org': org
9465
+ },
9466
+ body: requestBody,
9467
+ mediaType: 'application/json'
9468
+ });
9469
+ }
9470
+ /**
9471
+ * Create modify and update bot information for a specific tenant.
9472
+ * @returns SlackConfig
9473
+ * @throws ApiError
9474
+ */
9475
+ static aiBotV1BotsBotConfigSlackUpdateUpdate({
9476
+ id,
9477
+ org,
9478
+ requestBody
9479
+ }) {
9480
+ return request(OpenAPI, {
9481
+ method: 'PUT',
9482
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9483
+ path: {
9484
+ 'id': id,
9485
+ 'org': org
9486
+ },
9487
+ body: requestBody,
9488
+ mediaType: 'application/json'
9489
+ });
9490
+ }
9491
+ /**
9492
+ * Create modify and update bot information for a specific tenant.
9493
+ * @returns SlackConfig
9494
+ * @throws ApiError
9495
+ */
9496
+ static aiBotV1BotsBotConfigSlackUpdatePartialUpdate({
9497
+ id,
9498
+ org,
9499
+ requestBody
9500
+ }) {
9501
+ return request(OpenAPI, {
9502
+ method: 'PATCH',
9503
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9504
+ path: {
9505
+ 'id': id,
9506
+ 'org': org
9507
+ },
9508
+ body: requestBody,
9509
+ mediaType: 'application/json'
9510
+ });
9511
+ }
9512
+ /**
9513
+ * Create modify and update bot information for a specific tenant.
9514
+ * @returns TeamsConfig
9515
+ * @throws ApiError
9516
+ */
9517
+ static aiBotV1BotsBotConfigTeamsRetrieve({
9518
+ id,
9519
+ org
9520
+ }) {
9521
+ return request(OpenAPI, {
9522
+ method: 'GET',
9523
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
9524
+ path: {
9525
+ 'id': id,
9526
+ 'org': org
9527
+ }
9528
+ });
9529
+ }
9530
+ /**
9531
+ * Create modify and update bot information for a specific tenant.
9532
+ * @returns TeamsConfig
9533
+ * @throws ApiError
9534
+ */
9535
+ static aiBotV1BotsBotConfigTeamsUpdateCreate({
9536
+ id,
9537
+ org,
9538
+ requestBody
9539
+ }) {
9540
+ return request(OpenAPI, {
9541
+ method: 'POST',
9542
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
9543
+ path: {
9544
+ 'id': id,
9545
+ 'org': org
9546
+ },
9547
+ body: requestBody,
9548
+ mediaType: 'application/json'
9549
+ });
9550
+ }
9551
+ /**
9552
+ * Create modify and update bot information for a specific tenant.
9553
+ * @returns TeamsConfig
9554
+ * @throws ApiError
9555
+ */
9556
+ static aiBotV1BotsBotConfigTeamsUpdateUpdate({
9557
+ id,
9558
+ org,
9559
+ requestBody
9560
+ }) {
9561
+ return request(OpenAPI, {
9562
+ method: 'PUT',
9563
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
9564
+ path: {
9565
+ 'id': id,
9566
+ 'org': org
9567
+ },
9568
+ body: requestBody,
9569
+ mediaType: 'application/json'
9570
+ });
9571
+ }
9572
+ /**
9573
+ * Create modify and update bot information for a specific tenant.
9574
+ * @returns TeamsConfig
9575
+ * @throws ApiError
9576
+ */
9577
+ static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate({
9578
+ id,
9579
+ org,
9580
+ requestBody
9581
+ }) {
9582
+ return request(OpenAPI, {
9583
+ method: 'PATCH',
9584
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
9585
+ path: {
9586
+ 'id': id,
9587
+ 'org': org
9588
+ },
9589
+ body: requestBody,
9590
+ mediaType: 'application/json'
9591
+ });
9592
+ }
9593
+ /**
9594
+ * Create modify and update bot information for a specific tenant.
9595
+ * @returns WebexConfig
9596
+ * @throws ApiError
9597
+ */
9598
+ static aiBotV1BotsBotConfigWebexRetrieve({
9599
+ id,
9600
+ org
9601
+ }) {
9602
+ return request(OpenAPI, {
9603
+ method: 'GET',
9604
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
9605
+ path: {
9606
+ 'id': id,
9607
+ 'org': org
9608
+ }
9609
+ });
9610
+ }
9611
+ /**
9612
+ * Create modify and update bot information for a specific tenant.
9613
+ * @returns WebexConfig
9614
+ * @throws ApiError
9615
+ */
9616
+ static aiBotV1BotsBotConfigWebexPartialUpdate({
9617
+ id,
9618
+ org,
9619
+ requestBody
9620
+ }) {
9621
+ return request(OpenAPI, {
9622
+ method: 'PATCH',
9623
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
9624
+ path: {
9625
+ 'id': id,
9626
+ 'org': org
9627
+ },
9628
+ body: requestBody,
9629
+ mediaType: 'application/json'
9630
+ });
9631
+ }
9632
+ /**
9633
+ * Create modify and update bot information for a specific tenant.
9634
+ * @returns WhatsappConfig
9635
+ * @throws ApiError
9636
+ */
9637
+ static aiBotV1BotsBotConfigWhatsappRetrieve({
9638
+ id,
9639
+ org
9640
+ }) {
9641
+ return request(OpenAPI, {
9642
+ method: 'GET',
9643
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
9644
+ path: {
9645
+ 'id': id,
9646
+ 'org': org
9647
+ }
9648
+ });
9649
+ }
9650
+ /**
9651
+ * Create modify and update bot information for a specific tenant.
9652
+ * @returns WhatsappConfig
9653
+ * @throws ApiError
9654
+ */
9655
+ static aiBotV1BotsBotWhatsappConfigUpdate({
9656
+ id,
9657
+ org,
9658
+ requestBody
9659
+ }) {
9660
+ return request(OpenAPI, {
9661
+ method: 'PUT',
9662
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
9663
+ path: {
9664
+ 'id': id,
9665
+ 'org': org
9666
+ },
9667
+ body: requestBody,
9668
+ mediaType: 'application/json'
9669
+ });
9670
+ }
9671
+ /**
9672
+ * Create modify and update bot information for a specific tenant.
9673
+ * @returns WhatsappConfig
9674
+ * @throws ApiError
9675
+ */
9676
+ static aiBotV1BotsBotWhatsappConfigPartialUpdate({
9677
+ id,
9678
+ org,
9679
+ requestBody
9680
+ }) {
9681
+ return request(OpenAPI, {
9682
+ method: 'PATCH',
9683
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
9684
+ path: {
9685
+ 'id': id,
9686
+ 'org': org
9687
+ },
9688
+ body: requestBody,
9689
+ mediaType: 'application/json'
9690
+ });
9691
+ }
9692
+ /**
9693
+ * Setup discord user id linkage with discord bots
9694
+ * this will be used to authenticate the user when interracting with discord bots.
9695
+ * the user id can be copied from the discord app after tapping on the user profile.
9696
+ * @returns DiscordUserConfig
9697
+ * @throws ApiError
9698
+ */
9699
+ static aiBotV1BotsDiscordUserConfigList({
9700
+ org
9701
+ }) {
9702
+ return request(OpenAPI, {
9703
+ method: 'GET',
9704
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
9705
+ path: {
9706
+ 'org': org
9707
+ }
9708
+ });
9709
+ }
9710
+ /**
9711
+ * Setup discord user id linkage with discord bots
9712
+ * this will be used to authenticate the user when interracting with discord bots.
9713
+ * the user id can be copied from the discord app after tapping on the user profile.
9714
+ * @returns DiscordUserConfig
9715
+ * @throws ApiError
9716
+ */
9717
+ static aiBotV1BotsDiscordUserConfigCreate({
9718
+ org,
9719
+ requestBody
9720
+ }) {
9721
+ return request(OpenAPI, {
9722
+ method: 'POST',
9723
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
9724
+ path: {
9725
+ 'org': org
9726
+ },
9727
+ body: requestBody,
9728
+ mediaType: 'application/json'
9729
+ });
9730
+ }
9731
+ /**
9732
+ * Setup discord user id linkage with discord bots
9733
+ * this will be used to authenticate the user when interracting with discord bots.
9734
+ * the user id can be copied from the discord app after tapping on the user profile.
9735
+ * @returns DiscordUserConfig
9736
+ * @throws ApiError
9737
+ */
9738
+ static aiBotV1BotsDiscordUserConfigRetrieve({
9739
+ id,
9740
+ org
9741
+ }) {
9742
+ return request(OpenAPI, {
9743
+ method: 'GET',
9744
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
9745
+ path: {
9746
+ 'id': id,
9747
+ 'org': org
9748
+ }
9749
+ });
9750
+ }
9751
+ /**
9752
+ * Setup discord user id linkage with discord bots
9753
+ * this will be used to authenticate the user when interracting with discord bots.
9754
+ * the user id can be copied from the discord app after tapping on the user profile.
9755
+ * @returns DiscordUserConfig
9756
+ * @throws ApiError
9757
+ */
9758
+ static aiBotV1BotsDiscordUserConfigUpdate({
9759
+ id,
9760
+ org,
9761
+ requestBody
9762
+ }) {
9763
+ return request(OpenAPI, {
9764
+ method: 'PUT',
9765
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
9766
+ path: {
9767
+ 'id': id,
9768
+ 'org': org
9769
+ },
9770
+ body: requestBody,
9771
+ mediaType: 'application/json'
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 aiBotV1BotsDiscordUserConfigPartialUpdate({
9782
+ id,
9783
+ org,
9784
+ requestBody
9785
+ }) {
9786
+ return request(OpenAPI, {
9787
+ method: 'PATCH',
9788
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
9789
+ path: {
9790
+ 'id': id,
9791
+ 'org': org
9792
+ },
9793
+ body: requestBody,
9794
+ mediaType: 'application/json'
9795
+ });
9796
+ }
9797
+ /**
9798
+ * Setup discord user id linkage with discord bots
9799
+ * this will be used to authenticate the user when interracting with discord bots.
9800
+ * the user id can be copied from the discord app after tapping on the user profile.
9801
+ * @returns void
9802
+ * @throws ApiError
9803
+ */
9804
+ static aiBotV1BotsDiscordUserConfigDestroy({
9805
+ id,
9806
+ org
9807
+ }) {
9808
+ return request(OpenAPI, {
9809
+ method: 'DELETE',
9810
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
9811
+ path: {
9812
+ 'id': id,
9813
+ 'org': org
9814
+ }
9815
+ });
9816
+ }
9817
+ /**
9818
+ * Setup slack username and domain linkage with slack bots
9819
+ * this will be used to authenticate the user when interracting with slack bots.
9820
+ * @returns SlackUserConfig
9821
+ * @throws ApiError
9822
+ */
9823
+ static aiBotV1BotsSlackUserConfigList({
9824
+ org
9825
+ }) {
9826
+ return request(OpenAPI, {
9827
+ method: 'GET',
9828
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
9829
+ path: {
9830
+ 'org': org
9831
+ }
9832
+ });
9833
+ }
9834
+ /**
9835
+ * Setup slack username and domain linkage with slack bots
9836
+ * this will be used to authenticate the user when interracting with slack bots.
9837
+ * @returns SlackUserConfig
9838
+ * @throws ApiError
9839
+ */
9840
+ static aiBotV1BotsSlackUserConfigCreate({
9841
+ org,
9842
+ requestBody
9843
+ }) {
9844
+ return request(OpenAPI, {
9845
+ method: 'POST',
9846
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
9847
+ path: {
9848
+ 'org': org
9849
+ },
9850
+ body: requestBody,
9851
+ mediaType: 'application/json'
9852
+ });
9853
+ }
9854
+ /**
9855
+ * Setup slack username and domain linkage with slack bots
9856
+ * this will be used to authenticate the user when interracting with slack bots.
9857
+ * @returns SlackUserConfig
9858
+ * @throws ApiError
9859
+ */
9860
+ static aiBotV1BotsSlackUserConfigRetrieve({
9861
+ id,
9862
+ org
9863
+ }) {
9864
+ return request(OpenAPI, {
9865
+ method: 'GET',
9866
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
9867
+ path: {
9868
+ 'id': id,
9869
+ 'org': org
9870
+ }
9871
+ });
9872
+ }
9873
+ /**
9874
+ * Setup slack username and domain linkage with slack bots
9875
+ * this will be used to authenticate the user when interracting with slack bots.
9876
+ * @returns SlackUserConfig
9877
+ * @throws ApiError
9878
+ */
9879
+ static aiBotV1BotsSlackUserConfigUpdate({
9880
+ id,
9881
+ org,
9882
+ requestBody
9883
+ }) {
9884
+ return request(OpenAPI, {
9885
+ method: 'PUT',
9886
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
9887
+ path: {
9888
+ 'id': id,
9889
+ 'org': org
9890
+ },
9891
+ body: requestBody,
9892
+ mediaType: 'application/json'
9893
+ });
9894
+ }
9895
+ /**
9896
+ * Setup slack username and domain linkage with slack bots
9897
+ * this will be used to authenticate the user when interracting with slack bots.
9898
+ * @returns SlackUserConfig
9899
+ * @throws ApiError
9900
+ */
9901
+ static aiBotV1BotsSlackUserConfigPartialUpdate({
9902
+ id,
9903
+ org,
9904
+ requestBody
9905
+ }) {
9906
+ return request(OpenAPI, {
9907
+ method: 'PATCH',
9908
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
9909
+ path: {
9910
+ 'id': id,
9911
+ 'org': org
9912
+ },
9913
+ body: requestBody,
9914
+ mediaType: 'application/json'
9915
+ });
9916
+ }
9917
+ /**
9918
+ * Setup slack username and domain linkage with slack bots
9919
+ * this will be used to authenticate the user when interracting with slack bots.
9920
+ * @returns void
9921
+ * @throws ApiError
9922
+ */
9923
+ static aiBotV1BotsSlackUserConfigDestroy({
9924
+ id,
9925
+ org
9926
+ }) {
9927
+ return request(OpenAPI, {
9928
+ method: 'DELETE',
9929
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
9930
+ path: {
9931
+ 'id': id,
9932
+ 'org': org
9933
+ }
9934
+ });
9935
+ }
9936
+ /**
9937
+ * Setup phone number linkage with whatsapp bots
9938
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
9939
+ * @returns WhatsappUserConfig
9940
+ * @throws ApiError
9941
+ */
9942
+ static aiBotV1BotsWhatsappUserConfigList({
9943
+ org
9944
+ }) {
9945
+ return request(OpenAPI, {
9946
+ method: 'GET',
9947
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
9948
+ path: {
9949
+ 'org': org
9950
+ }
9951
+ });
9952
+ }
9953
+ /**
9954
+ * Setup phone number linkage with whatsapp bots
9955
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
9956
+ * @returns WhatsappUserConfig
9957
+ * @throws ApiError
9958
+ */
9959
+ static aiBotV1BotsWhatsappUserConfigCreate({
9960
+ org,
9961
+ requestBody
9962
+ }) {
9963
+ return request(OpenAPI, {
9964
+ method: 'POST',
9965
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
9966
+ path: {
9967
+ 'org': org
9968
+ },
9969
+ body: requestBody,
9970
+ mediaType: 'application/json'
9971
+ });
9972
+ }
9973
+ /**
9974
+ * Setup phone number linkage with whatsapp bots
9975
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
9976
+ * @returns WhatsappUserConfig
9977
+ * @throws ApiError
9978
+ */
9979
+ static aiBotV1BotsWhatsappUserConfigRetrieve({
9980
+ id,
9981
+ org
9982
+ }) {
9983
+ return request(OpenAPI, {
9984
+ method: 'GET',
9985
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
9986
+ path: {
9987
+ 'id': id,
9988
+ 'org': org
9989
+ }
9990
+ });
9991
+ }
9992
+ /**
9993
+ * Setup phone number linkage with whatsapp bots
9994
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
9995
+ * @returns WhatsappUserConfig
9996
+ * @throws ApiError
9997
+ */
9998
+ static aiBotV1BotsWhatsappUserConfigUpdate({
9999
+ id,
10000
+ org,
10001
+ requestBody
10002
+ }) {
10003
+ return request(OpenAPI, {
10004
+ method: 'PUT',
10005
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10006
+ path: {
10007
+ 'id': id,
10008
+ 'org': org
10009
+ },
10010
+ body: requestBody,
10011
+ mediaType: 'application/json'
10012
+ });
10013
+ }
10014
+ /**
10015
+ * Setup phone number linkage with whatsapp bots
10016
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10017
+ * @returns WhatsappUserConfig
10018
+ * @throws ApiError
10019
+ */
10020
+ static aiBotV1BotsWhatsappUserConfigPartialUpdate({
10021
+ id,
10022
+ org,
10023
+ requestBody
10024
+ }) {
10025
+ return request(OpenAPI, {
10026
+ method: 'PATCH',
10027
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10028
+ path: {
10029
+ 'id': id,
10030
+ 'org': org
10031
+ },
10032
+ body: requestBody,
10033
+ mediaType: 'application/json'
10034
+ });
10035
+ }
10036
+ /**
10037
+ * Setup phone number linkage with whatsapp bots
10038
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
10039
+ * @returns void
10040
+ * @throws ApiError
10041
+ */
10042
+ static aiBotV1BotsWhatsappUserConfigDestroy({
10043
+ id,
10044
+ org
10045
+ }) {
10046
+ return request(OpenAPI, {
10047
+ method: 'DELETE',
10048
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10049
+ path: {
10050
+ 'id': id,
10051
+ 'org': org
10052
+ }
10053
+ });
10054
+ }
10055
+ /**
10056
+ * Webhook endpoint to receive and process discord messages.
10057
+ * @returns DiscordWebhook
10058
+ * @throws ApiError
10059
+ */
10060
+ static aiBotV1BotsWebhooksDiscordCreate({
10061
+ name,
10062
+ org,
10063
+ requestBody
10064
+ }) {
10065
+ return request(OpenAPI, {
10066
+ method: 'POST',
10067
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
10068
+ path: {
10069
+ 'name': name,
10070
+ 'org': org
10071
+ },
10072
+ body: requestBody,
10073
+ mediaType: 'application/json'
10074
+ });
10075
+ }
10076
+ /**
10077
+ * @returns SlackWebhook
10078
+ * @throws ApiError
10079
+ */
10080
+ static aiBotV1BotsWebhooksSlackCreate({
10081
+ name,
10082
+ org,
10083
+ requestBody
10084
+ }) {
10085
+ return request(OpenAPI, {
10086
+ method: 'POST',
10087
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
10088
+ path: {
10089
+ 'name': name,
10090
+ 'org': org
10091
+ },
10092
+ body: requestBody,
10093
+ mediaType: 'application/json'
10094
+ });
10095
+ }
10096
+ /**
10097
+ * @returns TeamsWebhook
10098
+ * @throws ApiError
10099
+ */
10100
+ static aiBotV1BotsWebhooksTeamsCreate({
10101
+ name,
10102
+ org,
10103
+ requestBody
10104
+ }) {
10105
+ return request(OpenAPI, {
10106
+ method: 'POST',
10107
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
10108
+ path: {
10109
+ 'name': name,
10110
+ 'org': org
10111
+ },
10112
+ body: requestBody,
10113
+ mediaType: 'application/json'
10114
+ });
10115
+ }
10116
+ /**
10117
+ * Webhook endpoint to receive and process discord messages.
10118
+ * @returns WebexWebhook
10119
+ * @throws ApiError
10120
+ */
10121
+ static aiBotV1BotsWebhooksWebexCreate({
10122
+ name,
10123
+ org,
10124
+ requestBody
10125
+ }) {
10126
+ return request(OpenAPI, {
10127
+ method: 'POST',
10128
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
10129
+ path: {
10130
+ 'name': name,
10131
+ 'org': org
10132
+ },
10133
+ body: requestBody,
10134
+ mediaType: 'application/json'
10135
+ });
10136
+ }
10137
+ /**
10138
+ * Respond to whatsapp's webhook challenge.
10139
+ * Parameters Required include the tenant key (org) and the name of the bot: (name)
10140
+ * @returns WhatAppWebHook
10141
+ * @throws ApiError
10142
+ */
10143
+ static aiBotV1BotsWebhooksWhatsappRetrieve({
10144
+ name,
10145
+ org
10146
+ }) {
10147
+ return request(OpenAPI, {
10148
+ method: 'GET',
10149
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
10150
+ path: {
10151
+ 'name': name,
10152
+ 'org': org
10153
+ }
10154
+ });
10155
+ }
10156
+ /**
10157
+ * Accept and process webhook events from whatsapp.
10158
+ * @returns WhatAppWebHook
10159
+ * @throws ApiError
10160
+ */
10161
+ static aiBotV1BotsWebhooksWhatsappCreate({
10162
+ name,
10163
+ org,
10164
+ requestBody
10165
+ }) {
10166
+ return request(OpenAPI, {
10167
+ method: 'POST',
10168
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
10169
+ path: {
10170
+ 'name': name,
10171
+ 'org': org
10172
+ },
10173
+ body: requestBody,
10174
+ mediaType: 'application/json'
10175
+ });
10176
+ }
10177
+ }
10178
+
10179
+ class AiFinetuningService {
10180
+ /**
10181
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10182
+ * @returns PaginatedDataSetList
10183
+ * @throws ApiError
10184
+ */
10185
+ static aiFinetuningV1OrgUserDatasetsList({
10186
+ org,
10187
+ username,
10188
+ dateCreated,
10189
+ numDataPoints,
10190
+ ordering,
10191
+ page,
10192
+ pageSize,
10193
+ retryAttempts,
10194
+ search,
10195
+ status
10196
+ }) {
10197
+ return request(OpenAPI, {
10198
+ method: 'GET',
10199
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
10200
+ path: {
10201
+ 'org': org,
10202
+ 'username': username
10203
+ },
10204
+ query: {
10205
+ 'date_created': dateCreated,
10206
+ 'num_data_points': numDataPoints,
10207
+ 'ordering': ordering,
10208
+ 'page': page,
10209
+ 'page_size': pageSize,
10210
+ 'retry_attempts': retryAttempts,
10211
+ 'search': search,
10212
+ 'status': status
10213
+ }
10214
+ });
10215
+ }
10216
+ /**
10217
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10218
+ * @returns DataSetCreate
10219
+ * @throws ApiError
10220
+ */
10221
+ static aiFinetuningV1OrgUserDatasetsCreate({
10222
+ org,
10223
+ username,
10224
+ requestBody
10225
+ }) {
10226
+ return request(OpenAPI, {
10227
+ method: 'POST',
10228
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
10229
+ path: {
10230
+ 'org': org,
10231
+ 'username': username
10232
+ },
10233
+ body: requestBody,
10234
+ mediaType: 'application/json'
10235
+ });
10236
+ }
10237
+ /**
10238
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10239
+ * @returns DataSet
10240
+ * @throws ApiError
10241
+ */
10242
+ static aiFinetuningV1OrgUserDatasetsRetrieve({
10243
+ id,
10244
+ org,
10245
+ username
10246
+ }) {
10247
+ return request(OpenAPI, {
10248
+ method: 'GET',
10249
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10250
+ path: {
10251
+ 'id': id,
10252
+ 'org': org,
10253
+ 'username': username
10254
+ }
10255
+ });
10256
+ }
10257
+ /**
10258
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10259
+ * @returns DataSet
10260
+ * @throws ApiError
10261
+ */
10262
+ static aiFinetuningV1OrgUserDatasetsUpdate({
10263
+ id,
10264
+ org,
10265
+ username,
10266
+ requestBody
10267
+ }) {
10268
+ return request(OpenAPI, {
10269
+ method: 'PUT',
10270
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10271
+ path: {
10272
+ 'id': id,
10273
+ 'org': org,
10274
+ 'username': username
10275
+ },
10276
+ body: requestBody,
10277
+ mediaType: 'application/json'
10278
+ });
10279
+ }
10280
+ /**
10281
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10282
+ * @returns DataSet
10283
+ * @throws ApiError
10284
+ */
10285
+ static aiFinetuningV1OrgUserDatasetsPartialUpdate({
10286
+ id,
10287
+ org,
10288
+ username,
10289
+ requestBody
10290
+ }) {
10291
+ return request(OpenAPI, {
10292
+ method: 'PATCH',
10293
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10294
+ path: {
10295
+ 'id': id,
10296
+ 'org': org,
10297
+ 'username': username
10298
+ },
10299
+ body: requestBody,
10300
+ mediaType: 'application/json'
10301
+ });
10302
+ }
10303
+ /**
10304
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10305
+ * @returns void
10306
+ * @throws ApiError
10307
+ */
10308
+ static aiFinetuningV1OrgUserDatasetsDestroy({
10309
+ id,
10310
+ org,
10311
+ username
10312
+ }) {
10313
+ return request(OpenAPI, {
10314
+ method: 'DELETE',
10315
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10316
+ path: {
10317
+ 'id': id,
10318
+ 'org': org,
10319
+ 'username': username
10320
+ }
10321
+ });
10322
+ }
10323
+ /**
10324
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10325
+ * @returns PaginatedTrainingList
10326
+ * @throws ApiError
10327
+ */
10328
+ static aiFinetuningV1OrgUserTrainingsList({
10329
+ org,
10330
+ username,
10331
+ baseModelName,
10332
+ dataset,
10333
+ dateCreated,
10334
+ fineTunedModel,
10335
+ lastModified,
10336
+ ordering,
10337
+ page,
10338
+ pageSize,
10339
+ preprocessDataset,
10340
+ provider,
10341
+ search,
10342
+ status
10343
+ }) {
10344
+ return request(OpenAPI, {
10345
+ method: 'GET',
10346
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
10347
+ path: {
10348
+ 'org': org,
10349
+ 'username': username
10350
+ },
10351
+ query: {
10352
+ 'base_model_name': baseModelName,
10353
+ 'dataset': dataset,
10354
+ 'date_created': dateCreated,
10355
+ 'fine_tuned_model': fineTunedModel,
10356
+ 'last_modified': lastModified,
10357
+ 'ordering': ordering,
10358
+ 'page': page,
10359
+ 'page_size': pageSize,
10360
+ 'preprocess_dataset': preprocessDataset,
10361
+ 'provider': provider,
10362
+ 'search': search,
10363
+ 'status': status
10364
+ }
10365
+ });
10366
+ }
10367
+ /**
10368
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10369
+ * @returns TrainingCreate
10370
+ * @throws ApiError
10371
+ */
10372
+ static aiFinetuningV1OrgUserTrainingsCreate({
10373
+ org,
10374
+ username,
10375
+ requestBody
10376
+ }) {
10377
+ return request(OpenAPI, {
10378
+ method: 'POST',
10379
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
10380
+ path: {
10381
+ 'org': org,
10382
+ 'username': username
10383
+ },
10384
+ body: requestBody,
10385
+ mediaType: 'application/json'
10386
+ });
10387
+ }
10388
+ /**
10389
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10390
+ * @returns Training
10391
+ * @throws ApiError
10392
+ */
10393
+ static aiFinetuningV1OrgUserTrainingsRetrieve({
10394
+ id,
10395
+ org,
10396
+ username
10397
+ }) {
10398
+ return request(OpenAPI, {
10399
+ method: 'GET',
10400
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10401
+ path: {
10402
+ 'id': id,
10403
+ 'org': org,
10404
+ 'username': username
10405
+ }
10406
+ });
10407
+ }
10408
+ /**
10409
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10410
+ * @returns TrainingCreate
10411
+ * @throws ApiError
10412
+ */
10413
+ static aiFinetuningV1OrgUserTrainingsUpdate({
10414
+ id,
10415
+ org,
10416
+ username,
10417
+ requestBody
10418
+ }) {
10419
+ return request(OpenAPI, {
10420
+ method: 'PUT',
10421
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10422
+ path: {
10423
+ 'id': id,
10424
+ 'org': org,
10425
+ 'username': username
10426
+ },
10427
+ body: requestBody,
10428
+ mediaType: 'application/json'
10429
+ });
10430
+ }
10431
+ /**
10432
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10433
+ * @returns TrainingCreate
10434
+ * @throws ApiError
10435
+ */
10436
+ static aiFinetuningV1OrgUserTrainingsPartialUpdate({
10437
+ id,
10438
+ org,
10439
+ username,
10440
+ requestBody
10441
+ }) {
10442
+ return request(OpenAPI, {
10443
+ method: 'PATCH',
10444
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10445
+ path: {
10446
+ 'id': id,
10447
+ 'org': org,
10448
+ 'username': username
10449
+ },
10450
+ body: requestBody,
10451
+ mediaType: 'application/json'
10452
+ });
10453
+ }
10454
+ /**
10455
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10456
+ * @returns void
10457
+ * @throws ApiError
10458
+ */
10459
+ static aiFinetuningV1OrgUserTrainingsDestroy({
10460
+ id,
10461
+ org,
10462
+ username
10463
+ }) {
10464
+ return request(OpenAPI, {
10465
+ method: 'DELETE',
10466
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10467
+ path: {
10468
+ 'id': id,
10469
+ 'org': org,
10470
+ 'username': username
10471
+ }
10472
+ });
10473
+ }
10474
+ /**
10475
+ * Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
10476
+ * Filtering and pagination is allowed.
10477
+ *
10478
+ * NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
10479
+ * training list endpoint.
10480
+ * Returns:
10481
+ * Response: A paginated response containing the serialized fine-tuned models.
10482
+ * @returns Training
10483
+ * @throws ApiError
10484
+ */
10485
+ static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve({
10486
+ org,
10487
+ username
10488
+ }) {
10489
+ return request(OpenAPI, {
10490
+ method: 'GET',
10491
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
10492
+ path: {
10493
+ 'org': org,
10494
+ 'username': username
10495
+ }
10496
+ });
10497
+ }
10498
+ }
10499
+
9109
10500
  class AiIndexService {
9110
10501
  /**
9111
10502
  * Retrieve details of a specific document embedding.
@@ -34230,6 +35621,8 @@
34230
35621
 
34231
35622
  exports.AiAccountService = AiAccountService;
34232
35623
  exports.AiAnalyticsService = AiAnalyticsService;
35624
+ exports.AiBotService = AiBotService;
35625
+ exports.AiFinetuningService = AiFinetuningService;
34233
35626
  exports.AiIndexService = AiIndexService;
34234
35627
  exports.AiMarketingService = AiMarketingService;
34235
35628
  exports.AiMediaService = AiMediaService;