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