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