@iblai/iblai-api 4.5.1-ai-plus → 4.5.2-ai

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 (95) hide show
  1. package/dist/index.cjs.js +103 -1533
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +104 -1532
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +103 -1533
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +0 -39
  8. package/dist/types/models/ServiceEnum.d.ts +3 -1
  9. package/dist/types/models/UserMemoryEntry.d.ts +1 -1
  10. package/dist/types/services/AiIndexService.d.ts +0 -24
  11. package/package.json +1 -1
  12. package/src/core/OpenAPI.ts +1 -1
  13. package/src/index.ts +0 -39
  14. package/src/models/ServiceEnum.ts +2 -0
  15. package/src/models/UserMemoryEntry.ts +1 -1
  16. package/src/services/AiIndexService.ts +0 -43
  17. package/src/services/AiMentorService.ts +1 -1
  18. package/dist/types/models/Bot.d.ts +0 -15
  19. package/dist/types/models/BotCommand.d.ts +0 -6
  20. package/dist/types/models/BotCreate.d.ts +0 -12
  21. package/dist/types/models/DataSet.d.ts +0 -21
  22. package/dist/types/models/DataSetCreate.d.ts +0 -12
  23. package/dist/types/models/DataSetStatusEnum.d.ts +0 -12
  24. package/dist/types/models/DiscordConfig.d.ts +0 -7
  25. package/dist/types/models/DiscordUserConfig.d.ts +0 -10
  26. package/dist/types/models/DiscordWebhook.d.ts +0 -6
  27. package/dist/types/models/PaginatedDataSetList.d.ts +0 -7
  28. package/dist/types/models/PaginatedTrainingList.d.ts +0 -7
  29. package/dist/types/models/PatchedBotCommand.d.ts +0 -6
  30. package/dist/types/models/PatchedBotCreate.d.ts +0 -12
  31. package/dist/types/models/PatchedDataSet.d.ts +0 -21
  32. package/dist/types/models/PatchedDiscordConfig.d.ts +0 -7
  33. package/dist/types/models/PatchedDiscordUserConfig.d.ts +0 -10
  34. package/dist/types/models/PatchedSlackConfig.d.ts +0 -8
  35. package/dist/types/models/PatchedSlackUserConfig.d.ts +0 -17
  36. package/dist/types/models/PatchedTeamsConfig.d.ts +0 -7
  37. package/dist/types/models/PatchedTrainingCreate.d.ts +0 -31
  38. package/dist/types/models/PatchedWebexConfig.d.ts +0 -10
  39. package/dist/types/models/PatchedWhatsappConfig.d.ts +0 -11
  40. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +0 -10
  41. package/dist/types/models/Provider05cEnum.d.ts +0 -14
  42. package/dist/types/models/Provider63aEnum.d.ts +0 -6
  43. package/dist/types/models/SlackConfig.d.ts +0 -8
  44. package/dist/types/models/SlackUserConfig.d.ts +0 -17
  45. package/dist/types/models/SlackWebhook.d.ts +0 -6
  46. package/dist/types/models/TeamsConfig.d.ts +0 -7
  47. package/dist/types/models/TeamsWebhook.d.ts +0 -17
  48. package/dist/types/models/Training.d.ts +0 -41
  49. package/dist/types/models/TrainingCreate.d.ts +0 -31
  50. package/dist/types/models/WebexConfig.d.ts +0 -10
  51. package/dist/types/models/WebexWebhook.d.ts +0 -4
  52. package/dist/types/models/WhatAppWebHook.d.ts +0 -3
  53. package/dist/types/models/WhatsappConfig.d.ts +0 -11
  54. package/dist/types/models/WhatsappUserConfig.d.ts +0 -10
  55. package/dist/types/services/AiBotService.d.ts +0 -642
  56. package/dist/types/services/AiFinetuningService.d.ts +0 -232
  57. package/src/models/Bot.ts +0 -20
  58. package/src/models/BotCommand.ts +0 -11
  59. package/src/models/BotCreate.ts +0 -17
  60. package/src/models/DataSet.ts +0 -26
  61. package/src/models/DataSetCreate.ts +0 -17
  62. package/src/models/DataSetStatusEnum.ts +0 -16
  63. package/src/models/DiscordConfig.ts +0 -12
  64. package/src/models/DiscordUserConfig.ts +0 -15
  65. package/src/models/DiscordWebhook.ts +0 -11
  66. package/src/models/PaginatedDataSetList.ts +0 -12
  67. package/src/models/PaginatedTrainingList.ts +0 -12
  68. package/src/models/PatchedBotCommand.ts +0 -11
  69. package/src/models/PatchedBotCreate.ts +0 -17
  70. package/src/models/PatchedDataSet.ts +0 -26
  71. package/src/models/PatchedDiscordConfig.ts +0 -12
  72. package/src/models/PatchedDiscordUserConfig.ts +0 -15
  73. package/src/models/PatchedSlackConfig.ts +0 -13
  74. package/src/models/PatchedSlackUserConfig.ts +0 -22
  75. package/src/models/PatchedTeamsConfig.ts +0 -12
  76. package/src/models/PatchedTrainingCreate.ts +0 -36
  77. package/src/models/PatchedWebexConfig.ts +0 -15
  78. package/src/models/PatchedWhatsappConfig.ts +0 -16
  79. package/src/models/PatchedWhatsappUserConfig.ts +0 -15
  80. package/src/models/Provider05cEnum.ts +0 -18
  81. package/src/models/Provider63aEnum.ts +0 -10
  82. package/src/models/SlackConfig.ts +0 -13
  83. package/src/models/SlackUserConfig.ts +0 -22
  84. package/src/models/SlackWebhook.ts +0 -11
  85. package/src/models/TeamsConfig.ts +0 -12
  86. package/src/models/TeamsWebhook.ts +0 -22
  87. package/src/models/Training.ts +0 -46
  88. package/src/models/TrainingCreate.ts +0 -36
  89. package/src/models/WebexConfig.ts +0 -15
  90. package/src/models/WebexWebhook.ts +0 -9
  91. package/src/models/WhatAppWebHook.ts +0 -8
  92. package/src/models/WhatsappConfig.ts +0 -16
  93. package/src/models/WhatsappUserConfig.ts +0 -15
  94. package/src/services/AiBotService.ts +0 -1330
  95. package/src/services/AiFinetuningService.ts +0 -472
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.5.1-ai-plus',
117
+ VERSION: '4.5.2-ai',
118
118
  WITH_CREDENTIALS: false,
119
119
  CREDENTIALS: 'include',
120
120
  TOKEN: undefined,
@@ -275,24 +275,6 @@
275
275
  CrawlerPatternTypeEnum["REGEX"] = "regex";
276
276
  })(exports.CrawlerPatternTypeEnum || (exports.CrawlerPatternTypeEnum = {}));
277
277
 
278
- /* generated using openapi-typescript-codegen -- do not edit */
279
- /* istanbul ignore file */
280
- /* tslint:disable */
281
- /* eslint-disable */
282
- /**
283
- * * `pending` - Pending
284
- * * `processing` - Processing
285
- * * `completed` - Completed
286
- * * `failed` - Failed
287
- */
288
- exports.DataSetStatusEnum = void 0;
289
- (function (DataSetStatusEnum) {
290
- DataSetStatusEnum["PENDING"] = "pending";
291
- DataSetStatusEnum["PROCESSING"] = "processing";
292
- DataSetStatusEnum["COMPLETED"] = "completed";
293
- DataSetStatusEnum["FAILED"] = "failed";
294
- })(exports.DataSetStatusEnum || (exports.DataSetStatusEnum = {}));
295
-
296
278
  /* generated using openapi-typescript-codegen -- do not edit */
297
279
  /* istanbul ignore file */
298
280
  /* tslint:disable */
@@ -589,26 +571,6 @@
589
571
  PromptVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
590
572
  })(exports.PromptVisibilityEnum || (exports.PromptVisibilityEnum = {}));
591
573
 
592
- /* generated using openapi-typescript-codegen -- do not edit */
593
- /* istanbul ignore file */
594
- /* tslint:disable */
595
- /* eslint-disable */
596
- /**
597
- * * `webex` - Webex
598
- * * `slack` - Slack
599
- * * `whatsapp` - Whatsapp
600
- * * `discord` - Discord
601
- * * `teams` - Teams
602
- */
603
- exports.Provider05cEnum = void 0;
604
- (function (Provider05cEnum) {
605
- Provider05cEnum["WEBEX"] = "webex";
606
- Provider05cEnum["SLACK"] = "slack";
607
- Provider05cEnum["WHATSAPP"] = "whatsapp";
608
- Provider05cEnum["DISCORD"] = "discord";
609
- Provider05cEnum["TEAMS"] = "teams";
610
- })(exports.Provider05cEnum || (exports.Provider05cEnum = {}));
611
-
612
574
  /* generated using openapi-typescript-codegen -- do not edit */
613
575
  /* istanbul ignore file */
614
576
  /* tslint:disable */
@@ -625,18 +587,6 @@
625
587
  Provider637Enum["ELEVENLABS"] = "elevenlabs";
626
588
  })(exports.Provider637Enum || (exports.Provider637Enum = {}));
627
589
 
628
- /* generated using openapi-typescript-codegen -- do not edit */
629
- /* istanbul ignore file */
630
- /* tslint:disable */
631
- /* eslint-disable */
632
- /**
633
- * * `openai` - Openai
634
- */
635
- exports.Provider63aEnum = void 0;
636
- (function (Provider63aEnum) {
637
- Provider63aEnum["OPENAI"] = "openai";
638
- })(exports.Provider63aEnum || (exports.Provider63aEnum = {}));
639
-
640
590
  /* generated using openapi-typescript-codegen -- do not edit */
641
591
  /* istanbul ignore file */
642
592
  /* tslint:disable */
@@ -676,11 +626,13 @@
676
626
  /**
677
627
  * * `google_drive` - Google Drive
678
628
  * * `google_document` - Google Document
629
+ * * `google_slides` - Google Slides
679
630
  */
680
631
  exports.ServiceEnum = void 0;
681
632
  (function (ServiceEnum) {
682
633
  ServiceEnum["GOOGLE_DRIVE"] = "google_drive";
683
634
  ServiceEnum["GOOGLE_DOCUMENT"] = "google_document";
635
+ ServiceEnum["GOOGLE_SLIDES"] = "google_slides";
684
636
  })(exports.ServiceEnum || (exports.ServiceEnum = {}));
685
637
 
686
638
  /* generated using openapi-typescript-codegen -- do not edit */
@@ -9154,1546 +9106,166 @@
9154
9106
  }
9155
9107
  }
9156
9108
 
9157
- class AiBotService {
9158
- /**
9159
- * Create modify and update bot information for a specific tenant.
9160
- * @returns Bot
9161
- * @throws ApiError
9162
- */
9163
- static aiBotV1BotsBotList({
9164
- org
9165
- }) {
9166
- return request(OpenAPI, {
9167
- method: 'GET',
9168
- url: '/api/ai-bot/v1/bots/{org}/bot/',
9169
- path: {
9170
- 'org': org
9171
- }
9172
- });
9173
- }
9109
+ class AiIndexService {
9174
9110
  /**
9175
- * Create modify and update bot information for a specific tenant.
9176
- * @returns BotCreate
9111
+ * Retrieve details of a specific document embedding.
9112
+ *
9113
+ * This endpoint returns detailed information about a specific
9114
+ * document embedding identified by its ID.
9115
+ *
9116
+ * Args:
9117
+ * request: The HTTP request.
9118
+ * org: Organization key identifier.
9119
+ * document_id: The ID of the document embedding to retrieve.
9120
+ *
9121
+ * Returns:
9122
+ * Response: Detailed information about the document embedding.
9123
+ *
9124
+ * Raises:
9125
+ * NotFound: If the specified document embedding does not exist.
9126
+ * @returns RetrieverDocumentEmbedding
9177
9127
  * @throws ApiError
9178
9128
  */
9179
- static aiBotV1BotsBotCreate({
9129
+ static aiIndexOrgsUsersDocumentsRetrieve({
9130
+ documentId,
9180
9131
  org,
9181
- requestBody
9182
- }) {
9183
- return request(OpenAPI, {
9184
- method: 'POST',
9185
- url: '/api/ai-bot/v1/bots/{org}/bot/',
9186
- path: {
9187
- 'org': org
9188
- },
9189
- body: requestBody,
9190
- mediaType: 'application/json'
9191
- });
9192
- }
9193
- /**
9194
- * Create slash commands for a specific bot
9195
- * eg. /iblai-baseline
9196
- * @returns BotCommand
9197
- * @throws ApiError
9198
- */
9199
- static aiBotV1BotsBotCommandsList({
9200
- org
9132
+ userId
9201
9133
  }) {
9202
9134
  return request(OpenAPI, {
9203
9135
  method: 'GET',
9204
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
9205
- path: {
9206
- 'org': org
9207
- }
9208
- });
9209
- }
9210
- /**
9211
- * Create slash commands for a specific bot
9212
- * eg. /iblai-baseline
9213
- * @returns BotCommand
9214
- * @throws ApiError
9215
- */
9216
- static aiBotV1BotsBotCommandsCreate({
9217
- org,
9218
- requestBody
9219
- }) {
9220
- return request(OpenAPI, {
9221
- method: 'POST',
9222
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
9136
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
9223
9137
  path: {
9224
- 'org': org
9138
+ 'document_id': documentId,
9139
+ 'org': org,
9140
+ 'user_id': userId
9225
9141
  },
9226
- body: requestBody,
9227
- mediaType: 'application/json'
9228
- });
9229
- }
9230
- /**
9231
- * Create slash commands for a specific bot
9232
- * eg. /iblai-baseline
9233
- * @returns BotCommand
9234
- * @throws ApiError
9235
- */
9236
- static aiBotV1BotsBotCommandsRetrieve({
9237
- id,
9238
- org
9239
- }) {
9240
- return request(OpenAPI, {
9241
- method: 'GET',
9242
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9243
- path: {
9244
- 'id': id,
9245
- 'org': org
9142
+ errors: {
9143
+ 404: `Document not found`
9246
9144
  }
9247
9145
  });
9248
9146
  }
9249
9147
  /**
9250
- * Create slash commands for a specific bot
9251
- * eg. /iblai-baseline
9252
- * @returns BotCommand
9148
+ * Update a specific document embedding.
9149
+ *
9150
+ * This endpoint allows updating various properties of a document embedding,
9151
+ * including its name, type, pathway, and training status.
9152
+ *
9153
+ * Args:
9154
+ * request: The HTTP request containing the updated document data.
9155
+ * org: Organization key identifier.
9156
+ * document_id: The ID of the document embedding to update.
9157
+ *
9158
+ * Returns:
9159
+ * Response: The updated document embedding information.
9160
+ *
9161
+ * Raises:
9162
+ * BadRequest: If the provided data is invalid.
9163
+ * NotFound: If the specified document embedding does not exist.
9164
+ * @returns RetrieverDocumentEmbedding
9253
9165
  * @throws ApiError
9254
9166
  */
9255
- static aiBotV1BotsBotCommandsUpdate({
9256
- id,
9167
+ static aiIndexOrgsUsersDocumentsUpdate({
9168
+ documentId,
9257
9169
  org,
9258
- requestBody
9170
+ userId,
9171
+ formData
9259
9172
  }) {
9260
9173
  return request(OpenAPI, {
9261
9174
  method: 'PUT',
9262
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9263
- path: {
9264
- 'id': id,
9265
- 'org': org
9266
- },
9267
- body: requestBody,
9268
- mediaType: 'application/json'
9269
- });
9270
- }
9271
- /**
9272
- * Create slash commands for a specific bot
9273
- * eg. /iblai-baseline
9274
- * @returns BotCommand
9275
- * @throws ApiError
9276
- */
9277
- static aiBotV1BotsBotCommandsPartialUpdate({
9278
- id,
9279
- org,
9280
- requestBody
9281
- }) {
9282
- return request(OpenAPI, {
9283
- method: 'PATCH',
9284
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9175
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
9285
9176
  path: {
9286
- 'id': id,
9287
- 'org': org
9177
+ 'document_id': documentId,
9178
+ 'org': org,
9179
+ 'user_id': userId
9288
9180
  },
9289
- body: requestBody,
9290
- mediaType: 'application/json'
9291
- });
9292
- }
9293
- /**
9294
- * Create slash commands for a specific bot
9295
- * eg. /iblai-baseline
9296
- * @returns void
9297
- * @throws ApiError
9298
- */
9299
- static aiBotV1BotsBotCommandsDestroy({
9300
- id,
9301
- org
9302
- }) {
9303
- return request(OpenAPI, {
9304
- method: 'DELETE',
9305
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{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 Bot
9315
- * @throws ApiError
9316
- */
9317
- static aiBotV1BotsBotRetrieve({
9318
- id,
9319
- org
9320
- }) {
9321
- return request(OpenAPI, {
9322
- method: 'GET',
9323
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9324
- path: {
9325
- 'id': id,
9326
- 'org': org
9181
+ formData: formData,
9182
+ mediaType: 'multipart/form-data',
9183
+ errors: {
9184
+ 400: `Invalid request data`,
9185
+ 404: `Document not found`
9327
9186
  }
9328
9187
  });
9329
9188
  }
9330
9189
  /**
9331
- * Create modify and update bot information for a specific tenant.
9332
- * @returns BotCreate
9333
- * @throws ApiError
9334
- */
9335
- static aiBotV1BotsBotUpdate({
9336
- id,
9337
- org,
9338
- requestBody
9339
- }) {
9340
- return request(OpenAPI, {
9341
- method: 'PUT',
9342
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9343
- path: {
9344
- 'id': id,
9345
- 'org': org
9346
- },
9347
- body: requestBody,
9348
- mediaType: 'application/json'
9349
- });
9350
- }
9351
- /**
9352
- * Create modify and update bot information for a specific tenant.
9353
- * @returns BotCreate
9354
- * @throws ApiError
9355
- */
9356
- static aiBotV1BotsBotPartialUpdate({
9357
- id,
9358
- org,
9359
- requestBody
9360
- }) {
9361
- return request(OpenAPI, {
9362
- method: 'PATCH',
9363
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9364
- path: {
9365
- 'id': id,
9366
- 'org': org
9367
- },
9368
- body: requestBody,
9369
- mediaType: 'application/json'
9370
- });
9371
- }
9372
- /**
9373
- * Create modify and update bot information for a specific tenant.
9190
+ * Delete a specific document embedding.
9191
+ *
9192
+ * This endpoint removes a document embedding from the system,
9193
+ * including untraining it from any associated pathways.
9194
+ *
9195
+ * Args:
9196
+ * request: The HTTP request.
9197
+ * org: Organization key identifier.
9198
+ * document_id: The ID of the document embedding to delete.
9199
+ *
9200
+ * Returns:
9201
+ * Response: An empty response with a 204 status code if successful.
9202
+ *
9203
+ * Raises:
9204
+ * NotFound: If the specified document embedding does not exist.
9374
9205
  * @returns void
9375
9206
  * @throws ApiError
9376
9207
  */
9377
- static aiBotV1BotsBotDestroy({
9378
- id,
9379
- org
9380
- }) {
9381
- return request(OpenAPI, {
9382
- method: 'DELETE',
9383
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
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 aiBotV1BotsBotConfigDiscordRetrieve({
9396
- id,
9397
- org
9398
- }) {
9399
- return request(OpenAPI, {
9400
- method: 'GET',
9401
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
9402
- path: {
9403
- 'id': id,
9404
- 'org': org
9405
- }
9406
- });
9407
- }
9408
- /**
9409
- * Create modify and update bot information for a specific tenant.
9410
- * @returns DiscordConfig
9411
- * @throws ApiError
9412
- */
9413
- static aiBotV1BotsBotConfigDiscordPartialUpdate({
9414
- id,
9415
- org,
9416
- requestBody
9417
- }) {
9418
- return request(OpenAPI, {
9419
- method: 'PATCH',
9420
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
9421
- path: {
9422
- 'id': id,
9423
- 'org': org
9424
- },
9425
- body: requestBody,
9426
- mediaType: 'application/json'
9427
- });
9428
- }
9429
- /**
9430
- * Create modify and update bot information for a specific tenant.
9431
- * @returns SlackConfig
9432
- * @throws ApiError
9433
- */
9434
- static aiBotV1BotsBotConfigSlackRetrieve({
9435
- id,
9436
- org
9437
- }) {
9438
- return request(OpenAPI, {
9439
- method: 'GET',
9440
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
9441
- path: {
9442
- 'id': id,
9443
- 'org': org
9444
- }
9445
- });
9446
- }
9447
- /**
9448
- * Create modify and update bot information for a specific tenant.
9449
- * @returns SlackConfig
9450
- * @throws ApiError
9451
- */
9452
- static aiBotV1BotsBotConfigSlackUpdateCreate({
9453
- id,
9454
- org,
9455
- requestBody
9456
- }) {
9457
- return request(OpenAPI, {
9458
- method: 'POST',
9459
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9460
- path: {
9461
- 'id': id,
9462
- 'org': org
9463
- },
9464
- body: requestBody,
9465
- mediaType: 'application/json'
9466
- });
9467
- }
9468
- /**
9469
- * Create modify and update bot information for a specific tenant.
9470
- * @returns SlackConfig
9471
- * @throws ApiError
9472
- */
9473
- static aiBotV1BotsBotConfigSlackUpdateUpdate({
9474
- id,
9475
- org,
9476
- requestBody
9477
- }) {
9478
- return request(OpenAPI, {
9479
- method: 'PUT',
9480
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9481
- path: {
9482
- 'id': id,
9483
- 'org': org
9484
- },
9485
- body: requestBody,
9486
- mediaType: 'application/json'
9487
- });
9488
- }
9489
- /**
9490
- * Create modify and update bot information for a specific tenant.
9491
- * @returns SlackConfig
9492
- * @throws ApiError
9493
- */
9494
- static aiBotV1BotsBotConfigSlackUpdatePartialUpdate({
9495
- id,
9496
- org,
9497
- requestBody
9498
- }) {
9499
- return request(OpenAPI, {
9500
- method: 'PATCH',
9501
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9502
- path: {
9503
- 'id': id,
9504
- 'org': org
9505
- },
9506
- body: requestBody,
9507
- mediaType: 'application/json'
9508
- });
9509
- }
9510
- /**
9511
- * Create modify and update bot information for a specific tenant.
9512
- * @returns TeamsConfig
9513
- * @throws ApiError
9514
- */
9515
- static aiBotV1BotsBotConfigTeamsRetrieve({
9516
- id,
9517
- org
9518
- }) {
9519
- return request(OpenAPI, {
9520
- method: 'GET',
9521
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
9522
- path: {
9523
- 'id': id,
9524
- 'org': org
9525
- }
9526
- });
9527
- }
9528
- /**
9529
- * Create modify and update bot information for a specific tenant.
9530
- * @returns TeamsConfig
9531
- * @throws ApiError
9532
- */
9533
- static aiBotV1BotsBotConfigTeamsUpdateCreate({
9534
- id,
9535
- org,
9536
- requestBody
9537
- }) {
9538
- return request(OpenAPI, {
9539
- method: 'POST',
9540
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
9541
- path: {
9542
- 'id': id,
9543
- 'org': org
9544
- },
9545
- body: requestBody,
9546
- mediaType: 'application/json'
9547
- });
9548
- }
9549
- /**
9550
- * Create modify and update bot information for a specific tenant.
9551
- * @returns TeamsConfig
9552
- * @throws ApiError
9553
- */
9554
- static aiBotV1BotsBotConfigTeamsUpdateUpdate({
9555
- id,
9556
- org,
9557
- requestBody
9558
- }) {
9559
- return request(OpenAPI, {
9560
- method: 'PUT',
9561
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
9562
- path: {
9563
- 'id': id,
9564
- 'org': org
9565
- },
9566
- body: requestBody,
9567
- mediaType: 'application/json'
9568
- });
9569
- }
9570
- /**
9571
- * Create modify and update bot information for a specific tenant.
9572
- * @returns TeamsConfig
9573
- * @throws ApiError
9574
- */
9575
- static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate({
9576
- id,
9577
- org,
9578
- requestBody
9579
- }) {
9580
- return request(OpenAPI, {
9581
- method: 'PATCH',
9582
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
9583
- path: {
9584
- 'id': id,
9585
- 'org': org
9586
- },
9587
- body: requestBody,
9588
- mediaType: 'application/json'
9589
- });
9590
- }
9591
- /**
9592
- * Create modify and update bot information for a specific tenant.
9593
- * @returns WebexConfig
9594
- * @throws ApiError
9595
- */
9596
- static aiBotV1BotsBotConfigWebexRetrieve({
9597
- id,
9598
- org
9599
- }) {
9600
- return request(OpenAPI, {
9601
- method: 'GET',
9602
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
9603
- path: {
9604
- 'id': id,
9605
- 'org': org
9606
- }
9607
- });
9608
- }
9609
- /**
9610
- * Create modify and update bot information for a specific tenant.
9611
- * @returns WebexConfig
9612
- * @throws ApiError
9613
- */
9614
- static aiBotV1BotsBotConfigWebexPartialUpdate({
9615
- id,
9208
+ static aiIndexOrgsUsersDocumentsDestroy({
9209
+ documentId,
9616
9210
  org,
9617
- requestBody
9211
+ userId
9618
9212
  }) {
9619
9213
  return request(OpenAPI, {
9620
- method: 'PATCH',
9621
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
9214
+ method: 'DELETE',
9215
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
9622
9216
  path: {
9623
- 'id': id,
9624
- 'org': org
9217
+ 'document_id': documentId,
9218
+ 'org': org,
9219
+ 'user_id': userId
9625
9220
  },
9626
- body: requestBody,
9627
- mediaType: 'application/json'
9628
- });
9629
- }
9630
- /**
9631
- * Create modify and update bot information for a specific tenant.
9632
- * @returns WhatsappConfig
9633
- * @throws ApiError
9634
- */
9635
- static aiBotV1BotsBotConfigWhatsappRetrieve({
9636
- id,
9637
- org
9638
- }) {
9639
- return request(OpenAPI, {
9640
- method: 'GET',
9641
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
9642
- path: {
9643
- 'id': id,
9644
- 'org': org
9221
+ errors: {
9222
+ 404: `Document not found`
9645
9223
  }
9646
9224
  });
9647
9225
  }
9648
9226
  /**
9649
- * Create modify and update bot information for a specific tenant.
9650
- * @returns WhatsappConfig
9651
- * @throws ApiError
9652
- */
9653
- static aiBotV1BotsBotWhatsappConfigUpdate({
9654
- id,
9655
- org,
9656
- requestBody
9657
- }) {
9658
- return request(OpenAPI, {
9659
- method: 'PUT',
9660
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
9661
- path: {
9662
- 'id': id,
9663
- 'org': org
9664
- },
9665
- body: requestBody,
9666
- mediaType: 'application/json'
9667
- });
9668
- }
9669
- /**
9670
- * Create modify and update bot information for a specific tenant.
9671
- * @returns WhatsappConfig
9227
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
9228
+ * @returns DocumentSettingsResponse
9672
9229
  * @throws ApiError
9673
9230
  */
9674
- static aiBotV1BotsBotWhatsappConfigPartialUpdate({
9675
- id,
9231
+ static aiIndexOrgsUsersDocumentsSettingsRetrieve({
9232
+ documentId,
9676
9233
  org,
9677
- requestBody
9678
- }) {
9679
- return request(OpenAPI, {
9680
- method: 'PATCH',
9681
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
9682
- path: {
9683
- 'id': id,
9684
- 'org': org
9685
- },
9686
- body: requestBody,
9687
- mediaType: 'application/json'
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 aiBotV1BotsDiscordUserConfigList({
9698
- org
9234
+ userId
9699
9235
  }) {
9700
9236
  return request(OpenAPI, {
9701
9237
  method: 'GET',
9702
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
9238
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
9703
9239
  path: {
9704
- 'org': org
9240
+ 'document_id': documentId,
9241
+ 'org': org,
9242
+ 'user_id': userId
9705
9243
  }
9706
9244
  });
9707
9245
  }
9708
9246
  /**
9709
- * Setup discord user id linkage with discord bots
9710
- * this will be used to authenticate the user when interracting with discord bots.
9711
- * the user id can be copied from the discord app after tapping on the user profile.
9712
- * @returns DiscordUserConfig
9247
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
9248
+ * @returns DocumentSettingsResponse
9713
9249
  * @throws ApiError
9714
9250
  */
9715
- static aiBotV1BotsDiscordUserConfigCreate({
9251
+ static aiIndexOrgsUsersDocumentsSettingsCreate({
9252
+ documentId,
9716
9253
  org,
9254
+ userId,
9717
9255
  requestBody
9718
9256
  }) {
9719
9257
  return request(OpenAPI, {
9720
9258
  method: 'POST',
9721
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
9259
+ url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
9722
9260
  path: {
9723
- 'org': org
9261
+ 'document_id': documentId,
9262
+ 'org': org,
9263
+ 'user_id': userId
9724
9264
  },
9725
9265
  body: requestBody,
9726
9266
  mediaType: 'application/json'
9727
9267
  });
9728
9268
  }
9729
- /**
9730
- * Setup discord user id linkage with discord bots
9731
- * this will be used to authenticate the user when interracting with discord bots.
9732
- * the user id can be copied from the discord app after tapping on the user profile.
9733
- * @returns DiscordUserConfig
9734
- * @throws ApiError
9735
- */
9736
- static aiBotV1BotsDiscordUserConfigRetrieve({
9737
- id,
9738
- org
9739
- }) {
9740
- return request(OpenAPI, {
9741
- method: 'GET',
9742
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
9743
- path: {
9744
- 'id': id,
9745
- 'org': org
9746
- }
9747
- });
9748
- }
9749
- /**
9750
- * Setup discord user id linkage with discord bots
9751
- * this will be used to authenticate the user when interracting with discord bots.
9752
- * the user id can be copied from the discord app after tapping on the user profile.
9753
- * @returns DiscordUserConfig
9754
- * @throws ApiError
9755
- */
9756
- static aiBotV1BotsDiscordUserConfigUpdate({
9757
- id,
9758
- org,
9759
- requestBody
9760
- }) {
9761
- return request(OpenAPI, {
9762
- method: 'PUT',
9763
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
9764
- path: {
9765
- 'id': id,
9766
- 'org': org
9767
- },
9768
- body: requestBody,
9769
- mediaType: 'application/json'
9770
- });
9771
- }
9772
- /**
9773
- * Setup discord user id linkage with discord bots
9774
- * this will be used to authenticate the user when interracting with discord bots.
9775
- * the user id can be copied from the discord app after tapping on the user profile.
9776
- * @returns DiscordUserConfig
9777
- * @throws ApiError
9778
- */
9779
- static aiBotV1BotsDiscordUserConfigPartialUpdate({
9780
- id,
9781
- org,
9782
- requestBody
9783
- }) {
9784
- return request(OpenAPI, {
9785
- method: 'PATCH',
9786
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
9787
- path: {
9788
- 'id': id,
9789
- 'org': org
9790
- },
9791
- body: requestBody,
9792
- mediaType: 'application/json'
9793
- });
9794
- }
9795
- /**
9796
- * Setup discord user id linkage with discord bots
9797
- * this will be used to authenticate the user when interracting with discord bots.
9798
- * the user id can be copied from the discord app after tapping on the user profile.
9799
- * @returns void
9800
- * @throws ApiError
9801
- */
9802
- static aiBotV1BotsDiscordUserConfigDestroy({
9803
- id,
9804
- org
9805
- }) {
9806
- return request(OpenAPI, {
9807
- method: 'DELETE',
9808
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
9809
- path: {
9810
- 'id': id,
9811
- 'org': org
9812
- }
9813
- });
9814
- }
9815
- /**
9816
- * Setup slack username and domain linkage with slack bots
9817
- * this will be used to authenticate the user when interracting with slack bots.
9818
- * @returns SlackUserConfig
9819
- * @throws ApiError
9820
- */
9821
- static aiBotV1BotsSlackUserConfigList({
9822
- org
9823
- }) {
9824
- return request(OpenAPI, {
9825
- method: 'GET',
9826
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
9827
- path: {
9828
- 'org': org
9829
- }
9830
- });
9831
- }
9832
- /**
9833
- * Setup slack username and domain linkage with slack bots
9834
- * this will be used to authenticate the user when interracting with slack bots.
9835
- * @returns SlackUserConfig
9836
- * @throws ApiError
9837
- */
9838
- static aiBotV1BotsSlackUserConfigCreate({
9839
- org,
9840
- requestBody
9841
- }) {
9842
- return request(OpenAPI, {
9843
- method: 'POST',
9844
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
9845
- path: {
9846
- 'org': org
9847
- },
9848
- body: requestBody,
9849
- mediaType: 'application/json'
9850
- });
9851
- }
9852
- /**
9853
- * Setup slack username and domain linkage with slack bots
9854
- * this will be used to authenticate the user when interracting with slack bots.
9855
- * @returns SlackUserConfig
9856
- * @throws ApiError
9857
- */
9858
- static aiBotV1BotsSlackUserConfigRetrieve({
9859
- id,
9860
- org
9861
- }) {
9862
- return request(OpenAPI, {
9863
- method: 'GET',
9864
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
9865
- path: {
9866
- 'id': id,
9867
- 'org': org
9868
- }
9869
- });
9870
- }
9871
- /**
9872
- * Setup slack username and domain linkage with slack bots
9873
- * this will be used to authenticate the user when interracting with slack bots.
9874
- * @returns SlackUserConfig
9875
- * @throws ApiError
9876
- */
9877
- static aiBotV1BotsSlackUserConfigUpdate({
9878
- id,
9879
- org,
9880
- requestBody
9881
- }) {
9882
- return request(OpenAPI, {
9883
- method: 'PUT',
9884
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
9885
- path: {
9886
- 'id': id,
9887
- 'org': org
9888
- },
9889
- body: requestBody,
9890
- mediaType: 'application/json'
9891
- });
9892
- }
9893
- /**
9894
- * Setup slack username and domain linkage with slack bots
9895
- * this will be used to authenticate the user when interracting with slack bots.
9896
- * @returns SlackUserConfig
9897
- * @throws ApiError
9898
- */
9899
- static aiBotV1BotsSlackUserConfigPartialUpdate({
9900
- id,
9901
- org,
9902
- requestBody
9903
- }) {
9904
- return request(OpenAPI, {
9905
- method: 'PATCH',
9906
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
9907
- path: {
9908
- 'id': id,
9909
- 'org': org
9910
- },
9911
- body: requestBody,
9912
- mediaType: 'application/json'
9913
- });
9914
- }
9915
- /**
9916
- * Setup slack username and domain linkage with slack bots
9917
- * this will be used to authenticate the user when interracting with slack bots.
9918
- * @returns void
9919
- * @throws ApiError
9920
- */
9921
- static aiBotV1BotsSlackUserConfigDestroy({
9922
- id,
9923
- org
9924
- }) {
9925
- return request(OpenAPI, {
9926
- method: 'DELETE',
9927
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
9928
- path: {
9929
- 'id': id,
9930
- 'org': org
9931
- }
9932
- });
9933
- }
9934
- /**
9935
- * Setup phone number linkage with whatsapp bots
9936
- * This phone number will be used to authenticate and allow access to whatsapp bots.
9937
- * @returns WhatsappUserConfig
9938
- * @throws ApiError
9939
- */
9940
- static aiBotV1BotsWhatsappUserConfigList({
9941
- org
9942
- }) {
9943
- return request(OpenAPI, {
9944
- method: 'GET',
9945
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
9946
- path: {
9947
- 'org': org
9948
- }
9949
- });
9950
- }
9951
- /**
9952
- * Setup phone number linkage with whatsapp bots
9953
- * This phone number will be used to authenticate and allow access to whatsapp bots.
9954
- * @returns WhatsappUserConfig
9955
- * @throws ApiError
9956
- */
9957
- static aiBotV1BotsWhatsappUserConfigCreate({
9958
- org,
9959
- requestBody
9960
- }) {
9961
- return request(OpenAPI, {
9962
- method: 'POST',
9963
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
9964
- path: {
9965
- 'org': org
9966
- },
9967
- body: requestBody,
9968
- mediaType: 'application/json'
9969
- });
9970
- }
9971
- /**
9972
- * Setup phone number linkage with whatsapp bots
9973
- * This phone number will be used to authenticate and allow access to whatsapp bots.
9974
- * @returns WhatsappUserConfig
9975
- * @throws ApiError
9976
- */
9977
- static aiBotV1BotsWhatsappUserConfigRetrieve({
9978
- id,
9979
- org
9980
- }) {
9981
- return request(OpenAPI, {
9982
- method: 'GET',
9983
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
9984
- path: {
9985
- 'id': id,
9986
- 'org': org
9987
- }
9988
- });
9989
- }
9990
- /**
9991
- * Setup phone number linkage with whatsapp bots
9992
- * This phone number will be used to authenticate and allow access to whatsapp bots.
9993
- * @returns WhatsappUserConfig
9994
- * @throws ApiError
9995
- */
9996
- static aiBotV1BotsWhatsappUserConfigUpdate({
9997
- id,
9998
- org,
9999
- requestBody
10000
- }) {
10001
- return request(OpenAPI, {
10002
- method: 'PUT',
10003
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10004
- path: {
10005
- 'id': id,
10006
- 'org': org
10007
- },
10008
- body: requestBody,
10009
- mediaType: 'application/json'
10010
- });
10011
- }
10012
- /**
10013
- * Setup phone number linkage with whatsapp bots
10014
- * This phone number will be used to authenticate and allow access to whatsapp bots.
10015
- * @returns WhatsappUserConfig
10016
- * @throws ApiError
10017
- */
10018
- static aiBotV1BotsWhatsappUserConfigPartialUpdate({
10019
- id,
10020
- org,
10021
- requestBody
10022
- }) {
10023
- return request(OpenAPI, {
10024
- method: 'PATCH',
10025
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10026
- path: {
10027
- 'id': id,
10028
- 'org': org
10029
- },
10030
- body: requestBody,
10031
- mediaType: 'application/json'
10032
- });
10033
- }
10034
- /**
10035
- * Setup phone number linkage with whatsapp bots
10036
- * This phone number will be used to authenticate and allow access to whatsapp bots.
10037
- * @returns void
10038
- * @throws ApiError
10039
- */
10040
- static aiBotV1BotsWhatsappUserConfigDestroy({
10041
- id,
10042
- org
10043
- }) {
10044
- return request(OpenAPI, {
10045
- method: 'DELETE',
10046
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10047
- path: {
10048
- 'id': id,
10049
- 'org': org
10050
- }
10051
- });
10052
- }
10053
- /**
10054
- * Webhook endpoint to receive and process discord messages.
10055
- * @returns DiscordWebhook
10056
- * @throws ApiError
10057
- */
10058
- static aiBotV1BotsWebhooksDiscordCreate({
10059
- name,
10060
- org,
10061
- requestBody
10062
- }) {
10063
- return request(OpenAPI, {
10064
- method: 'POST',
10065
- url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
10066
- path: {
10067
- 'name': name,
10068
- 'org': org
10069
- },
10070
- body: requestBody,
10071
- mediaType: 'application/json'
10072
- });
10073
- }
10074
- /**
10075
- * @returns SlackWebhook
10076
- * @throws ApiError
10077
- */
10078
- static aiBotV1BotsWebhooksSlackCreate({
10079
- name,
10080
- org,
10081
- requestBody
10082
- }) {
10083
- return request(OpenAPI, {
10084
- method: 'POST',
10085
- url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
10086
- path: {
10087
- 'name': name,
10088
- 'org': org
10089
- },
10090
- body: requestBody,
10091
- mediaType: 'application/json'
10092
- });
10093
- }
10094
- /**
10095
- * @returns TeamsWebhook
10096
- * @throws ApiError
10097
- */
10098
- static aiBotV1BotsWebhooksTeamsCreate({
10099
- name,
10100
- org,
10101
- requestBody
10102
- }) {
10103
- return request(OpenAPI, {
10104
- method: 'POST',
10105
- url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
10106
- path: {
10107
- 'name': name,
10108
- 'org': org
10109
- },
10110
- body: requestBody,
10111
- mediaType: 'application/json'
10112
- });
10113
- }
10114
- /**
10115
- * Webhook endpoint to receive and process discord messages.
10116
- * @returns WebexWebhook
10117
- * @throws ApiError
10118
- */
10119
- static aiBotV1BotsWebhooksWebexCreate({
10120
- name,
10121
- org,
10122
- requestBody
10123
- }) {
10124
- return request(OpenAPI, {
10125
- method: 'POST',
10126
- url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
10127
- path: {
10128
- 'name': name,
10129
- 'org': org
10130
- },
10131
- body: requestBody,
10132
- mediaType: 'application/json'
10133
- });
10134
- }
10135
- /**
10136
- * Respond to whatsapp's webhook challenge.
10137
- * Parameters Required include the tenant key (org) and the name of the bot: (name)
10138
- * @returns WhatAppWebHook
10139
- * @throws ApiError
10140
- */
10141
- static aiBotV1BotsWebhooksWhatsappRetrieve({
10142
- name,
10143
- org
10144
- }) {
10145
- return request(OpenAPI, {
10146
- method: 'GET',
10147
- url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
10148
- path: {
10149
- 'name': name,
10150
- 'org': org
10151
- }
10152
- });
10153
- }
10154
- /**
10155
- * Accept and process webhook events from whatsapp.
10156
- * @returns WhatAppWebHook
10157
- * @throws ApiError
10158
- */
10159
- static aiBotV1BotsWebhooksWhatsappCreate({
10160
- name,
10161
- org,
10162
- requestBody
10163
- }) {
10164
- return request(OpenAPI, {
10165
- method: 'POST',
10166
- url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
10167
- path: {
10168
- 'name': name,
10169
- 'org': org
10170
- },
10171
- body: requestBody,
10172
- mediaType: 'application/json'
10173
- });
10174
- }
10175
- }
10176
-
10177
- class AiFinetuningService {
10178
- /**
10179
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10180
- * @returns PaginatedDataSetList
10181
- * @throws ApiError
10182
- */
10183
- static aiFinetuningV1OrgUserDatasetsList({
10184
- org,
10185
- username,
10186
- dateCreated,
10187
- numDataPoints,
10188
- ordering,
10189
- page,
10190
- pageSize,
10191
- retryAttempts,
10192
- search,
10193
- status
10194
- }) {
10195
- return request(OpenAPI, {
10196
- method: 'GET',
10197
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
10198
- path: {
10199
- 'org': org,
10200
- 'username': username
10201
- },
10202
- query: {
10203
- 'date_created': dateCreated,
10204
- 'num_data_points': numDataPoints,
10205
- 'ordering': ordering,
10206
- 'page': page,
10207
- 'page_size': pageSize,
10208
- 'retry_attempts': retryAttempts,
10209
- 'search': search,
10210
- 'status': status
10211
- }
10212
- });
10213
- }
10214
- /**
10215
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10216
- * @returns DataSetCreate
10217
- * @throws ApiError
10218
- */
10219
- static aiFinetuningV1OrgUserDatasetsCreate({
10220
- org,
10221
- username,
10222
- requestBody
10223
- }) {
10224
- return request(OpenAPI, {
10225
- method: 'POST',
10226
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
10227
- path: {
10228
- 'org': org,
10229
- 'username': username
10230
- },
10231
- body: requestBody,
10232
- mediaType: 'application/json'
10233
- });
10234
- }
10235
- /**
10236
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10237
- * @returns DataSet
10238
- * @throws ApiError
10239
- */
10240
- static aiFinetuningV1OrgUserDatasetsRetrieve({
10241
- id,
10242
- org,
10243
- username
10244
- }) {
10245
- return request(OpenAPI, {
10246
- method: 'GET',
10247
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10248
- path: {
10249
- 'id': id,
10250
- 'org': org,
10251
- 'username': username
10252
- }
10253
- });
10254
- }
10255
- /**
10256
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10257
- * @returns DataSet
10258
- * @throws ApiError
10259
- */
10260
- static aiFinetuningV1OrgUserDatasetsUpdate({
10261
- id,
10262
- org,
10263
- username,
10264
- requestBody
10265
- }) {
10266
- return request(OpenAPI, {
10267
- method: 'PUT',
10268
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10269
- path: {
10270
- 'id': id,
10271
- 'org': org,
10272
- 'username': username
10273
- },
10274
- body: requestBody,
10275
- mediaType: 'application/json'
10276
- });
10277
- }
10278
- /**
10279
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10280
- * @returns DataSet
10281
- * @throws ApiError
10282
- */
10283
- static aiFinetuningV1OrgUserDatasetsPartialUpdate({
10284
- id,
10285
- org,
10286
- username,
10287
- requestBody
10288
- }) {
10289
- return request(OpenAPI, {
10290
- method: 'PATCH',
10291
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10292
- path: {
10293
- 'id': id,
10294
- 'org': org,
10295
- 'username': username
10296
- },
10297
- body: requestBody,
10298
- mediaType: 'application/json'
10299
- });
10300
- }
10301
- /**
10302
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10303
- * @returns void
10304
- * @throws ApiError
10305
- */
10306
- static aiFinetuningV1OrgUserDatasetsDestroy({
10307
- id,
10308
- org,
10309
- username
10310
- }) {
10311
- return request(OpenAPI, {
10312
- method: 'DELETE',
10313
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10314
- path: {
10315
- 'id': id,
10316
- 'org': org,
10317
- 'username': username
10318
- }
10319
- });
10320
- }
10321
- /**
10322
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10323
- * @returns PaginatedTrainingList
10324
- * @throws ApiError
10325
- */
10326
- static aiFinetuningV1OrgUserTrainingsList({
10327
- org,
10328
- username,
10329
- baseModelName,
10330
- dataset,
10331
- dateCreated,
10332
- fineTunedModel,
10333
- lastModified,
10334
- ordering,
10335
- page,
10336
- pageSize,
10337
- preprocessDataset,
10338
- provider,
10339
- search,
10340
- status
10341
- }) {
10342
- return request(OpenAPI, {
10343
- method: 'GET',
10344
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
10345
- path: {
10346
- 'org': org,
10347
- 'username': username
10348
- },
10349
- query: {
10350
- 'base_model_name': baseModelName,
10351
- 'dataset': dataset,
10352
- 'date_created': dateCreated,
10353
- 'fine_tuned_model': fineTunedModel,
10354
- 'last_modified': lastModified,
10355
- 'ordering': ordering,
10356
- 'page': page,
10357
- 'page_size': pageSize,
10358
- 'preprocess_dataset': preprocessDataset,
10359
- 'provider': provider,
10360
- 'search': search,
10361
- 'status': status
10362
- }
10363
- });
10364
- }
10365
- /**
10366
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10367
- * @returns TrainingCreate
10368
- * @throws ApiError
10369
- */
10370
- static aiFinetuningV1OrgUserTrainingsCreate({
10371
- org,
10372
- username,
10373
- requestBody
10374
- }) {
10375
- return request(OpenAPI, {
10376
- method: 'POST',
10377
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
10378
- path: {
10379
- 'org': org,
10380
- 'username': username
10381
- },
10382
- body: requestBody,
10383
- mediaType: 'application/json'
10384
- });
10385
- }
10386
- /**
10387
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10388
- * @returns Training
10389
- * @throws ApiError
10390
- */
10391
- static aiFinetuningV1OrgUserTrainingsRetrieve({
10392
- id,
10393
- org,
10394
- username
10395
- }) {
10396
- return request(OpenAPI, {
10397
- method: 'GET',
10398
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10399
- path: {
10400
- 'id': id,
10401
- 'org': org,
10402
- 'username': username
10403
- }
10404
- });
10405
- }
10406
- /**
10407
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10408
- * @returns TrainingCreate
10409
- * @throws ApiError
10410
- */
10411
- static aiFinetuningV1OrgUserTrainingsUpdate({
10412
- id,
10413
- org,
10414
- username,
10415
- requestBody
10416
- }) {
10417
- return request(OpenAPI, {
10418
- method: 'PUT',
10419
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10420
- path: {
10421
- 'id': id,
10422
- 'org': org,
10423
- 'username': username
10424
- },
10425
- body: requestBody,
10426
- mediaType: 'application/json'
10427
- });
10428
- }
10429
- /**
10430
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10431
- * @returns TrainingCreate
10432
- * @throws ApiError
10433
- */
10434
- static aiFinetuningV1OrgUserTrainingsPartialUpdate({
10435
- id,
10436
- org,
10437
- username,
10438
- requestBody
10439
- }) {
10440
- return request(OpenAPI, {
10441
- method: 'PATCH',
10442
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10443
- path: {
10444
- 'id': id,
10445
- 'org': org,
10446
- 'username': username
10447
- },
10448
- body: requestBody,
10449
- mediaType: 'application/json'
10450
- });
10451
- }
10452
- /**
10453
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10454
- * @returns void
10455
- * @throws ApiError
10456
- */
10457
- static aiFinetuningV1OrgUserTrainingsDestroy({
10458
- id,
10459
- org,
10460
- username
10461
- }) {
10462
- return request(OpenAPI, {
10463
- method: 'DELETE',
10464
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10465
- path: {
10466
- 'id': id,
10467
- 'org': org,
10468
- 'username': username
10469
- }
10470
- });
10471
- }
10472
- /**
10473
- * Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
10474
- * Filtering and pagination is allowed.
10475
- *
10476
- * NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
10477
- * training list endpoint.
10478
- * Returns:
10479
- * Response: A paginated response containing the serialized fine-tuned models.
10480
- * @returns Training
10481
- * @throws ApiError
10482
- */
10483
- static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve({
10484
- org,
10485
- username
10486
- }) {
10487
- return request(OpenAPI, {
10488
- method: 'GET',
10489
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
10490
- path: {
10491
- 'org': org,
10492
- 'username': username
10493
- }
10494
- });
10495
- }
10496
- }
10497
-
10498
- class AiIndexService {
10499
- /**
10500
- * Retrieve details of a specific document embedding.
10501
- *
10502
- * This endpoint returns detailed information about a specific
10503
- * document embedding identified by its ID.
10504
- *
10505
- * Args:
10506
- * request: The HTTP request.
10507
- * org: Organization key identifier.
10508
- * document_id: The ID of the document embedding to retrieve.
10509
- *
10510
- * Returns:
10511
- * Response: Detailed information about the document embedding.
10512
- *
10513
- * Raises:
10514
- * NotFound: If the specified document embedding does not exist.
10515
- * @returns RetrieverDocumentEmbedding
10516
- * @throws ApiError
10517
- */
10518
- static aiIndexOrgsUsersDocumentsRetrieve({
10519
- documentId,
10520
- org,
10521
- userId
10522
- }) {
10523
- return request(OpenAPI, {
10524
- method: 'GET',
10525
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
10526
- path: {
10527
- 'document_id': documentId,
10528
- 'org': org,
10529
- 'user_id': userId
10530
- },
10531
- errors: {
10532
- 404: `Document not found`
10533
- }
10534
- });
10535
- }
10536
- /**
10537
- * Update a specific document embedding.
10538
- *
10539
- * This endpoint allows updating various properties of a document embedding,
10540
- * including its name, type, pathway, and training status.
10541
- *
10542
- * Args:
10543
- * request: The HTTP request containing the updated document data.
10544
- * org: Organization key identifier.
10545
- * document_id: The ID of the document embedding to update.
10546
- *
10547
- * Returns:
10548
- * Response: The updated document embedding information.
10549
- *
10550
- * Raises:
10551
- * BadRequest: If the provided data is invalid.
10552
- * NotFound: If the specified document embedding does not exist.
10553
- * @returns RetrieverDocumentEmbedding
10554
- * @throws ApiError
10555
- */
10556
- static aiIndexOrgsUsersDocumentsUpdate({
10557
- documentId,
10558
- org,
10559
- userId,
10560
- formData
10561
- }) {
10562
- return request(OpenAPI, {
10563
- method: 'PUT',
10564
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
10565
- path: {
10566
- 'document_id': documentId,
10567
- 'org': org,
10568
- 'user_id': userId
10569
- },
10570
- formData: formData,
10571
- mediaType: 'multipart/form-data',
10572
- errors: {
10573
- 400: `Invalid request data`,
10574
- 404: `Document not found`
10575
- }
10576
- });
10577
- }
10578
- /**
10579
- * Delete a specific document embedding.
10580
- *
10581
- * This endpoint removes a document embedding from the system,
10582
- * including untraining it from any associated pathways.
10583
- *
10584
- * Args:
10585
- * request: The HTTP request.
10586
- * org: Organization key identifier.
10587
- * document_id: The ID of the document embedding to delete.
10588
- *
10589
- * Returns:
10590
- * Response: An empty response with a 204 status code if successful.
10591
- *
10592
- * Raises:
10593
- * NotFound: If the specified document embedding does not exist.
10594
- * @returns void
10595
- * @throws ApiError
10596
- */
10597
- static aiIndexOrgsUsersDocumentsDestroy({
10598
- documentId,
10599
- org,
10600
- userId
10601
- }) {
10602
- return request(OpenAPI, {
10603
- method: 'DELETE',
10604
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/',
10605
- path: {
10606
- 'document_id': documentId,
10607
- 'org': org,
10608
- 'user_id': userId
10609
- },
10610
- errors: {
10611
- 404: `Document not found`
10612
- }
10613
- });
10614
- }
10615
- /**
10616
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10617
- * @returns DocumentSettingsResponse
10618
- * @throws ApiError
10619
- */
10620
- static aiIndexOrgsUsersDocumentsSettingsRetrieve({
10621
- documentId,
10622
- org,
10623
- userId
10624
- }) {
10625
- return request(OpenAPI, {
10626
- method: 'GET',
10627
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
10628
- path: {
10629
- 'document_id': documentId,
10630
- 'org': org,
10631
- 'user_id': userId
10632
- }
10633
- });
10634
- }
10635
- /**
10636
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10637
- * @returns DocumentSettingsResponse
10638
- * @throws ApiError
10639
- */
10640
- static aiIndexOrgsUsersDocumentsSettingsCreate({
10641
- documentId,
10642
- org,
10643
- userId,
10644
- requestBody
10645
- }) {
10646
- return request(OpenAPI, {
10647
- method: 'POST',
10648
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/{document_id}/settings/',
10649
- path: {
10650
- 'document_id': documentId,
10651
- 'org': org,
10652
- 'user_id': userId
10653
- },
10654
- body: requestBody,
10655
- mediaType: 'application/json'
10656
- });
10657
- }
10658
- /**
10659
- * Train a graph-based document through a worker process.
10660
- *
10661
- * This endpoint queues graph-based documents for training through a
10662
- * specialized worker process that handles knowledge graph processing.
10663
- *
10664
- * Args:
10665
- * request: The HTTP request containing the document information.
10666
- * org: Organization key identifier.
10667
- *
10668
- * Returns:
10669
- * Response: A confirmation that the document was queued for training,
10670
- * including a task ID for tracking the progress.
10671
- *
10672
- * Raises:
10673
- * ValidationError: If the request data is invalid.
10674
- * BadRequest: If there was an error processing the document.
10675
- * @returns TrainDocumentViewResponse
10676
- * @throws ApiError
10677
- */
10678
- static aiIndexOrgsUsersDocumentsGraphTrainCreate({
10679
- org,
10680
- userId,
10681
- formData
10682
- }) {
10683
- return request(OpenAPI, {
10684
- method: 'POST',
10685
- url: '/api/ai-index/orgs/{org}/users/{user_id}/documents/graph-train/',
10686
- path: {
10687
- 'org': org,
10688
- 'user_id': userId
10689
- },
10690
- formData: formData,
10691
- mediaType: 'multipart/form-data',
10692
- errors: {
10693
- 400: `Invalid request data or document processing error`
10694
- }
10695
- });
10696
- }
10697
9269
  /**
10698
9270
  * Description:
10699
9271
  * Retrieves a list of document embeddings for a specific pathway with optional search and pagination.
@@ -11417,7 +9989,7 @@
11417
9989
  static aiMentorLangfuseHealthRetrieve() {
11418
9990
  return request(OpenAPI, {
11419
9991
  method: 'GET',
11420
- url: '/api/ai-mentor/langfuse/health'
9992
+ url: '/api/ai-mentor/langfuse/health/'
11421
9993
  });
11422
9994
  }
11423
9995
  /**
@@ -35658,8 +34230,6 @@
35658
34230
 
35659
34231
  exports.AiAccountService = AiAccountService;
35660
34232
  exports.AiAnalyticsService = AiAnalyticsService;
35661
- exports.AiBotService = AiBotService;
35662
- exports.AiFinetuningService = AiFinetuningService;
35663
34233
  exports.AiIndexService = AiIndexService;
35664
34234
  exports.AiMarketingService = AiMarketingService;
35665
34235
  exports.AiMediaService = AiMediaService;