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