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