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