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