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

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