@iblai/iblai-api 3.55.0-ai → 3.55.0-ai-plus

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/index.cjs.js +1400 -7
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1399 -8
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +1400 -7
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +40 -1
  8. package/dist/types/models/Bot.d.ts +15 -0
  9. package/dist/types/models/BotCommand.d.ts +6 -0
  10. package/dist/types/models/BotCreate.d.ts +12 -0
  11. package/dist/types/models/DataSet.d.ts +21 -0
  12. package/dist/types/models/DataSetCreate.d.ts +12 -0
  13. package/dist/types/models/DataSetStatusEnum.d.ts +12 -0
  14. package/dist/types/models/DiscordConfig.d.ts +7 -0
  15. package/dist/types/models/DiscordUserConfig.d.ts +10 -0
  16. package/dist/types/models/DiscordWebhook.d.ts +6 -0
  17. package/dist/types/models/PaginatedDataSetList.d.ts +7 -0
  18. package/dist/types/models/PaginatedTrainingList.d.ts +7 -0
  19. package/dist/types/models/PatchedBotCommand.d.ts +6 -0
  20. package/dist/types/models/PatchedBotCreate.d.ts +12 -0
  21. package/dist/types/models/PatchedDataSet.d.ts +21 -0
  22. package/dist/types/models/PatchedDiscordConfig.d.ts +7 -0
  23. package/dist/types/models/PatchedDiscordUserConfig.d.ts +10 -0
  24. package/dist/types/models/PatchedSlackConfig.d.ts +8 -0
  25. package/dist/types/models/PatchedSlackUserConfig.d.ts +17 -0
  26. package/dist/types/models/PatchedTeamsConfig.d.ts +7 -0
  27. package/dist/types/models/PatchedTrainingCreate.d.ts +31 -0
  28. package/dist/types/models/PatchedWebexConfig.d.ts +10 -0
  29. package/dist/types/models/PatchedWhatsappConfig.d.ts +11 -0
  30. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +10 -0
  31. package/dist/types/models/Provider05cEnum.d.ts +14 -0
  32. package/dist/types/models/{ProviderEnum.d.ts → Provider637Enum.d.ts} +1 -1
  33. package/dist/types/models/Provider63aEnum.d.ts +6 -0
  34. package/dist/types/models/SlackConfig.d.ts +8 -0
  35. package/dist/types/models/SlackUserConfig.d.ts +17 -0
  36. package/dist/types/models/SlackWebhook.d.ts +6 -0
  37. package/dist/types/models/TeamsConfig.d.ts +7 -0
  38. package/dist/types/models/TeamsWebhook.d.ts +17 -0
  39. package/dist/types/models/Training.d.ts +41 -0
  40. package/dist/types/models/TrainingCreate.d.ts +31 -0
  41. package/dist/types/models/Voice.d.ts +2 -2
  42. package/dist/types/models/WebexConfig.d.ts +10 -0
  43. package/dist/types/models/WebexWebhook.d.ts +4 -0
  44. package/dist/types/models/WhatAppWebHook.d.ts +3 -0
  45. package/dist/types/models/WhatsappConfig.d.ts +11 -0
  46. package/dist/types/models/WhatsappUserConfig.d.ts +10 -0
  47. package/dist/types/services/AiBotService.d.ts +642 -0
  48. package/dist/types/services/AiFinetuningService.d.ts +232 -0
  49. package/package.json +1 -1
  50. package/src/core/OpenAPI.ts +1 -1
  51. package/src/index.ts +40 -1
  52. package/src/models/Bot.ts +20 -0
  53. package/src/models/BotCommand.ts +11 -0
  54. package/src/models/BotCreate.ts +17 -0
  55. package/src/models/DataSet.ts +26 -0
  56. package/src/models/DataSetCreate.ts +17 -0
  57. package/src/models/DataSetStatusEnum.ts +16 -0
  58. package/src/models/DiscordConfig.ts +12 -0
  59. package/src/models/DiscordUserConfig.ts +15 -0
  60. package/src/models/DiscordWebhook.ts +11 -0
  61. package/src/models/PaginatedDataSetList.ts +12 -0
  62. package/src/models/PaginatedTrainingList.ts +12 -0
  63. package/src/models/PatchedBotCommand.ts +11 -0
  64. package/src/models/PatchedBotCreate.ts +17 -0
  65. package/src/models/PatchedDataSet.ts +26 -0
  66. package/src/models/PatchedDiscordConfig.ts +12 -0
  67. package/src/models/PatchedDiscordUserConfig.ts +15 -0
  68. package/src/models/PatchedSlackConfig.ts +13 -0
  69. package/src/models/PatchedSlackUserConfig.ts +22 -0
  70. package/src/models/PatchedTeamsConfig.ts +12 -0
  71. package/src/models/PatchedTrainingCreate.ts +36 -0
  72. package/src/models/PatchedWebexConfig.ts +15 -0
  73. package/src/models/PatchedWhatsappConfig.ts +16 -0
  74. package/src/models/PatchedWhatsappUserConfig.ts +15 -0
  75. package/src/models/Provider05cEnum.ts +18 -0
  76. package/src/models/{ProviderEnum.ts → Provider637Enum.ts} +1 -1
  77. package/src/models/Provider63aEnum.ts +10 -0
  78. package/src/models/SlackConfig.ts +13 -0
  79. package/src/models/SlackUserConfig.ts +22 -0
  80. package/src/models/SlackWebhook.ts +11 -0
  81. package/src/models/TeamsConfig.ts +12 -0
  82. package/src/models/TeamsWebhook.ts +22 -0
  83. package/src/models/Training.ts +46 -0
  84. package/src/models/TrainingCreate.ts +36 -0
  85. package/src/models/Voice.ts +2 -2
  86. package/src/models/WebexConfig.ts +15 -0
  87. package/src/models/WebexWebhook.ts +9 -0
  88. package/src/models/WhatAppWebHook.ts +8 -0
  89. package/src/models/WhatsappConfig.ts +16 -0
  90. package/src/models/WhatsappUserConfig.ts +15 -0
  91. package/src/services/AiBotService.ts +1330 -0
  92. package/src/services/AiFinetuningService.ts +472 -0
package/dist/index.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: '3.55.0-ai',
111
+ VERSION: '3.55.0-ai-plus',
112
112
  WITH_CREDENTIALS: false,
113
113
  CREDENTIALS: 'include',
114
114
  TOKEN: undefined,
@@ -243,6 +243,24 @@ var CourseCreationTaskStatusEnum;
243
243
  CourseCreationTaskStatusEnum["IN_PROGRESS"] = "In Progress";
244
244
  })(CourseCreationTaskStatusEnum || (CourseCreationTaskStatusEnum = {}));
245
245
 
246
+ /* generated using openapi-typescript-codegen -- do not edit */
247
+ /* istanbul ignore file */
248
+ /* tslint:disable */
249
+ /* eslint-disable */
250
+ /**
251
+ * * `pending` - Pending
252
+ * * `processing` - Processing
253
+ * * `completed` - Completed
254
+ * * `failed` - Failed
255
+ */
256
+ var DataSetStatusEnum;
257
+ (function (DataSetStatusEnum) {
258
+ DataSetStatusEnum["PENDING"] = "pending";
259
+ DataSetStatusEnum["PROCESSING"] = "processing";
260
+ DataSetStatusEnum["COMPLETED"] = "completed";
261
+ DataSetStatusEnum["FAILED"] = "failed";
262
+ })(DataSetStatusEnum || (DataSetStatusEnum = {}));
263
+
246
264
  /* generated using openapi-typescript-codegen -- do not edit */
247
265
  /* istanbul ignore file */
248
266
  /* tslint:disable */
@@ -523,6 +541,26 @@ var PromptVisibilityEnum;
523
541
  PromptVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
524
542
  })(PromptVisibilityEnum || (PromptVisibilityEnum = {}));
525
543
 
544
+ /* generated using openapi-typescript-codegen -- do not edit */
545
+ /* istanbul ignore file */
546
+ /* tslint:disable */
547
+ /* eslint-disable */
548
+ /**
549
+ * * `webex` - Webex
550
+ * * `slack` - Slack
551
+ * * `whatsapp` - Whatsapp
552
+ * * `discord` - Discord
553
+ * * `teams` - Teams
554
+ */
555
+ var Provider05cEnum;
556
+ (function (Provider05cEnum) {
557
+ Provider05cEnum["WEBEX"] = "webex";
558
+ Provider05cEnum["SLACK"] = "slack";
559
+ Provider05cEnum["WHATSAPP"] = "whatsapp";
560
+ Provider05cEnum["DISCORD"] = "discord";
561
+ Provider05cEnum["TEAMS"] = "teams";
562
+ })(Provider05cEnum || (Provider05cEnum = {}));
563
+
526
564
  /* generated using openapi-typescript-codegen -- do not edit */
527
565
  /* istanbul ignore file */
528
566
  /* tslint:disable */
@@ -532,12 +570,24 @@ var PromptVisibilityEnum;
532
570
  * * `google` - Google
533
571
  * * `elevenlabs` - Elevenlabs
534
572
  */
535
- var ProviderEnum;
536
- (function (ProviderEnum) {
537
- ProviderEnum["OPENAI"] = "openai";
538
- ProviderEnum["GOOGLE"] = "google";
539
- ProviderEnum["ELEVENLABS"] = "elevenlabs";
540
- })(ProviderEnum || (ProviderEnum = {}));
573
+ var Provider637Enum;
574
+ (function (Provider637Enum) {
575
+ Provider637Enum["OPENAI"] = "openai";
576
+ Provider637Enum["GOOGLE"] = "google";
577
+ Provider637Enum["ELEVENLABS"] = "elevenlabs";
578
+ })(Provider637Enum || (Provider637Enum = {}));
579
+
580
+ /* generated using openapi-typescript-codegen -- do not edit */
581
+ /* istanbul ignore file */
582
+ /* tslint:disable */
583
+ /* eslint-disable */
584
+ /**
585
+ * * `openai` - Openai
586
+ */
587
+ var Provider63aEnum;
588
+ (function (Provider63aEnum) {
589
+ Provider63aEnum["OPENAI"] = "openai";
590
+ })(Provider63aEnum || (Provider63aEnum = {}));
541
591
 
542
592
  /* generated using openapi-typescript-codegen -- do not edit */
543
593
  /* istanbul ignore file */
@@ -5853,6 +5903,1347 @@ class AiAnalyticsService {
5853
5903
  }
5854
5904
  }
5855
5905
 
5906
+ class AiBotService {
5907
+ /**
5908
+ * Create modify and update bot information for a specific tenant.
5909
+ * @returns Bot
5910
+ * @throws ApiError
5911
+ */
5912
+ static aiBotV1BotsBotList({
5913
+ org
5914
+ }) {
5915
+ return request(OpenAPI, {
5916
+ method: 'GET',
5917
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
5918
+ path: {
5919
+ 'org': org
5920
+ }
5921
+ });
5922
+ }
5923
+ /**
5924
+ * Create modify and update bot information for a specific tenant.
5925
+ * @returns BotCreate
5926
+ * @throws ApiError
5927
+ */
5928
+ static aiBotV1BotsBotCreate({
5929
+ org,
5930
+ requestBody
5931
+ }) {
5932
+ return request(OpenAPI, {
5933
+ method: 'POST',
5934
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
5935
+ path: {
5936
+ 'org': org
5937
+ },
5938
+ body: requestBody,
5939
+ mediaType: 'application/json'
5940
+ });
5941
+ }
5942
+ /**
5943
+ * Create slash commands for a specific bot
5944
+ * eg. /iblai-baseline
5945
+ * @returns BotCommand
5946
+ * @throws ApiError
5947
+ */
5948
+ static aiBotV1BotsBotCommandsList({
5949
+ org
5950
+ }) {
5951
+ return request(OpenAPI, {
5952
+ method: 'GET',
5953
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
5954
+ path: {
5955
+ 'org': org
5956
+ }
5957
+ });
5958
+ }
5959
+ /**
5960
+ * Create slash commands for a specific bot
5961
+ * eg. /iblai-baseline
5962
+ * @returns BotCommand
5963
+ * @throws ApiError
5964
+ */
5965
+ static aiBotV1BotsBotCommandsCreate({
5966
+ org,
5967
+ requestBody
5968
+ }) {
5969
+ return request(OpenAPI, {
5970
+ method: 'POST',
5971
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
5972
+ path: {
5973
+ 'org': org
5974
+ },
5975
+ body: requestBody,
5976
+ mediaType: 'application/json'
5977
+ });
5978
+ }
5979
+ /**
5980
+ * Create slash commands for a specific bot
5981
+ * eg. /iblai-baseline
5982
+ * @returns BotCommand
5983
+ * @throws ApiError
5984
+ */
5985
+ static aiBotV1BotsBotCommandsRetrieve({
5986
+ id,
5987
+ org
5988
+ }) {
5989
+ return request(OpenAPI, {
5990
+ method: 'GET',
5991
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
5992
+ path: {
5993
+ 'id': id,
5994
+ 'org': org
5995
+ }
5996
+ });
5997
+ }
5998
+ /**
5999
+ * Create slash commands for a specific bot
6000
+ * eg. /iblai-baseline
6001
+ * @returns BotCommand
6002
+ * @throws ApiError
6003
+ */
6004
+ static aiBotV1BotsBotCommandsUpdate({
6005
+ id,
6006
+ org,
6007
+ requestBody
6008
+ }) {
6009
+ return request(OpenAPI, {
6010
+ method: 'PUT',
6011
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
6012
+ path: {
6013
+ 'id': id,
6014
+ 'org': org
6015
+ },
6016
+ body: requestBody,
6017
+ mediaType: 'application/json'
6018
+ });
6019
+ }
6020
+ /**
6021
+ * Create slash commands for a specific bot
6022
+ * eg. /iblai-baseline
6023
+ * @returns BotCommand
6024
+ * @throws ApiError
6025
+ */
6026
+ static aiBotV1BotsBotCommandsPartialUpdate({
6027
+ id,
6028
+ org,
6029
+ requestBody
6030
+ }) {
6031
+ return request(OpenAPI, {
6032
+ method: 'PATCH',
6033
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
6034
+ path: {
6035
+ 'id': id,
6036
+ 'org': org
6037
+ },
6038
+ body: requestBody,
6039
+ mediaType: 'application/json'
6040
+ });
6041
+ }
6042
+ /**
6043
+ * Create slash commands for a specific bot
6044
+ * eg. /iblai-baseline
6045
+ * @returns void
6046
+ * @throws ApiError
6047
+ */
6048
+ static aiBotV1BotsBotCommandsDestroy({
6049
+ id,
6050
+ org
6051
+ }) {
6052
+ return request(OpenAPI, {
6053
+ method: 'DELETE',
6054
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
6055
+ path: {
6056
+ 'id': id,
6057
+ 'org': org
6058
+ }
6059
+ });
6060
+ }
6061
+ /**
6062
+ * Create modify and update bot information for a specific tenant.
6063
+ * @returns Bot
6064
+ * @throws ApiError
6065
+ */
6066
+ static aiBotV1BotsBotRetrieve({
6067
+ id,
6068
+ org
6069
+ }) {
6070
+ return request(OpenAPI, {
6071
+ method: 'GET',
6072
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
6073
+ path: {
6074
+ 'id': id,
6075
+ 'org': org
6076
+ }
6077
+ });
6078
+ }
6079
+ /**
6080
+ * Create modify and update bot information for a specific tenant.
6081
+ * @returns BotCreate
6082
+ * @throws ApiError
6083
+ */
6084
+ static aiBotV1BotsBotUpdate({
6085
+ id,
6086
+ org,
6087
+ requestBody
6088
+ }) {
6089
+ return request(OpenAPI, {
6090
+ method: 'PUT',
6091
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
6092
+ path: {
6093
+ 'id': id,
6094
+ 'org': org
6095
+ },
6096
+ body: requestBody,
6097
+ mediaType: 'application/json'
6098
+ });
6099
+ }
6100
+ /**
6101
+ * Create modify and update bot information for a specific tenant.
6102
+ * @returns BotCreate
6103
+ * @throws ApiError
6104
+ */
6105
+ static aiBotV1BotsBotPartialUpdate({
6106
+ id,
6107
+ org,
6108
+ requestBody
6109
+ }) {
6110
+ return request(OpenAPI, {
6111
+ method: 'PATCH',
6112
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
6113
+ path: {
6114
+ 'id': id,
6115
+ 'org': org
6116
+ },
6117
+ body: requestBody,
6118
+ mediaType: 'application/json'
6119
+ });
6120
+ }
6121
+ /**
6122
+ * Create modify and update bot information for a specific tenant.
6123
+ * @returns void
6124
+ * @throws ApiError
6125
+ */
6126
+ static aiBotV1BotsBotDestroy({
6127
+ id,
6128
+ org
6129
+ }) {
6130
+ return request(OpenAPI, {
6131
+ method: 'DELETE',
6132
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
6133
+ path: {
6134
+ 'id': id,
6135
+ 'org': org
6136
+ }
6137
+ });
6138
+ }
6139
+ /**
6140
+ * Create modify and update bot information for a specific tenant.
6141
+ * @returns DiscordConfig
6142
+ * @throws ApiError
6143
+ */
6144
+ static aiBotV1BotsBotConfigDiscordRetrieve({
6145
+ id,
6146
+ org
6147
+ }) {
6148
+ return request(OpenAPI, {
6149
+ method: 'GET',
6150
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
6151
+ path: {
6152
+ 'id': id,
6153
+ 'org': org
6154
+ }
6155
+ });
6156
+ }
6157
+ /**
6158
+ * Create modify and update bot information for a specific tenant.
6159
+ * @returns DiscordConfig
6160
+ * @throws ApiError
6161
+ */
6162
+ static aiBotV1BotsBotConfigDiscordPartialUpdate({
6163
+ id,
6164
+ org,
6165
+ requestBody
6166
+ }) {
6167
+ return request(OpenAPI, {
6168
+ method: 'PATCH',
6169
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
6170
+ path: {
6171
+ 'id': id,
6172
+ 'org': org
6173
+ },
6174
+ body: requestBody,
6175
+ mediaType: 'application/json'
6176
+ });
6177
+ }
6178
+ /**
6179
+ * Create modify and update bot information for a specific tenant.
6180
+ * @returns SlackConfig
6181
+ * @throws ApiError
6182
+ */
6183
+ static aiBotV1BotsBotConfigSlackRetrieve({
6184
+ id,
6185
+ org
6186
+ }) {
6187
+ return request(OpenAPI, {
6188
+ method: 'GET',
6189
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
6190
+ path: {
6191
+ 'id': id,
6192
+ 'org': org
6193
+ }
6194
+ });
6195
+ }
6196
+ /**
6197
+ * Create modify and update bot information for a specific tenant.
6198
+ * @returns SlackConfig
6199
+ * @throws ApiError
6200
+ */
6201
+ static aiBotV1BotsBotConfigSlackUpdateCreate({
6202
+ id,
6203
+ org,
6204
+ requestBody
6205
+ }) {
6206
+ return request(OpenAPI, {
6207
+ method: 'POST',
6208
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
6209
+ path: {
6210
+ 'id': id,
6211
+ 'org': org
6212
+ },
6213
+ body: requestBody,
6214
+ mediaType: 'application/json'
6215
+ });
6216
+ }
6217
+ /**
6218
+ * Create modify and update bot information for a specific tenant.
6219
+ * @returns SlackConfig
6220
+ * @throws ApiError
6221
+ */
6222
+ static aiBotV1BotsBotConfigSlackUpdateUpdate({
6223
+ id,
6224
+ org,
6225
+ requestBody
6226
+ }) {
6227
+ return request(OpenAPI, {
6228
+ method: 'PUT',
6229
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
6230
+ path: {
6231
+ 'id': id,
6232
+ 'org': org
6233
+ },
6234
+ body: requestBody,
6235
+ mediaType: 'application/json'
6236
+ });
6237
+ }
6238
+ /**
6239
+ * Create modify and update bot information for a specific tenant.
6240
+ * @returns SlackConfig
6241
+ * @throws ApiError
6242
+ */
6243
+ static aiBotV1BotsBotConfigSlackUpdatePartialUpdate({
6244
+ id,
6245
+ org,
6246
+ requestBody
6247
+ }) {
6248
+ return request(OpenAPI, {
6249
+ method: 'PATCH',
6250
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
6251
+ path: {
6252
+ 'id': id,
6253
+ 'org': org
6254
+ },
6255
+ body: requestBody,
6256
+ mediaType: 'application/json'
6257
+ });
6258
+ }
6259
+ /**
6260
+ * Create modify and update bot information for a specific tenant.
6261
+ * @returns TeamsConfig
6262
+ * @throws ApiError
6263
+ */
6264
+ static aiBotV1BotsBotConfigTeamsRetrieve({
6265
+ id,
6266
+ org
6267
+ }) {
6268
+ return request(OpenAPI, {
6269
+ method: 'GET',
6270
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
6271
+ path: {
6272
+ 'id': id,
6273
+ 'org': org
6274
+ }
6275
+ });
6276
+ }
6277
+ /**
6278
+ * Create modify and update bot information for a specific tenant.
6279
+ * @returns TeamsConfig
6280
+ * @throws ApiError
6281
+ */
6282
+ static aiBotV1BotsBotConfigTeamsUpdateCreate({
6283
+ id,
6284
+ org,
6285
+ requestBody
6286
+ }) {
6287
+ return request(OpenAPI, {
6288
+ method: 'POST',
6289
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
6290
+ path: {
6291
+ 'id': id,
6292
+ 'org': org
6293
+ },
6294
+ body: requestBody,
6295
+ mediaType: 'application/json'
6296
+ });
6297
+ }
6298
+ /**
6299
+ * Create modify and update bot information for a specific tenant.
6300
+ * @returns TeamsConfig
6301
+ * @throws ApiError
6302
+ */
6303
+ static aiBotV1BotsBotConfigTeamsUpdateUpdate({
6304
+ id,
6305
+ org,
6306
+ requestBody
6307
+ }) {
6308
+ return request(OpenAPI, {
6309
+ method: 'PUT',
6310
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
6311
+ path: {
6312
+ 'id': id,
6313
+ 'org': org
6314
+ },
6315
+ body: requestBody,
6316
+ mediaType: 'application/json'
6317
+ });
6318
+ }
6319
+ /**
6320
+ * Create modify and update bot information for a specific tenant.
6321
+ * @returns TeamsConfig
6322
+ * @throws ApiError
6323
+ */
6324
+ static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate({
6325
+ id,
6326
+ org,
6327
+ requestBody
6328
+ }) {
6329
+ return request(OpenAPI, {
6330
+ method: 'PATCH',
6331
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
6332
+ path: {
6333
+ 'id': id,
6334
+ 'org': org
6335
+ },
6336
+ body: requestBody,
6337
+ mediaType: 'application/json'
6338
+ });
6339
+ }
6340
+ /**
6341
+ * Create modify and update bot information for a specific tenant.
6342
+ * @returns WebexConfig
6343
+ * @throws ApiError
6344
+ */
6345
+ static aiBotV1BotsBotConfigWebexRetrieve({
6346
+ id,
6347
+ org
6348
+ }) {
6349
+ return request(OpenAPI, {
6350
+ method: 'GET',
6351
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
6352
+ path: {
6353
+ 'id': id,
6354
+ 'org': org
6355
+ }
6356
+ });
6357
+ }
6358
+ /**
6359
+ * Create modify and update bot information for a specific tenant.
6360
+ * @returns WebexConfig
6361
+ * @throws ApiError
6362
+ */
6363
+ static aiBotV1BotsBotConfigWebexPartialUpdate({
6364
+ id,
6365
+ org,
6366
+ requestBody
6367
+ }) {
6368
+ return request(OpenAPI, {
6369
+ method: 'PATCH',
6370
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
6371
+ path: {
6372
+ 'id': id,
6373
+ 'org': org
6374
+ },
6375
+ body: requestBody,
6376
+ mediaType: 'application/json'
6377
+ });
6378
+ }
6379
+ /**
6380
+ * Create modify and update bot information for a specific tenant.
6381
+ * @returns WhatsappConfig
6382
+ * @throws ApiError
6383
+ */
6384
+ static aiBotV1BotsBotConfigWhatsappRetrieve({
6385
+ id,
6386
+ org
6387
+ }) {
6388
+ return request(OpenAPI, {
6389
+ method: 'GET',
6390
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
6391
+ path: {
6392
+ 'id': id,
6393
+ 'org': org
6394
+ }
6395
+ });
6396
+ }
6397
+ /**
6398
+ * Create modify and update bot information for a specific tenant.
6399
+ * @returns WhatsappConfig
6400
+ * @throws ApiError
6401
+ */
6402
+ static aiBotV1BotsBotWhatsappConfigUpdate({
6403
+ id,
6404
+ org,
6405
+ requestBody
6406
+ }) {
6407
+ return request(OpenAPI, {
6408
+ method: 'PUT',
6409
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
6410
+ path: {
6411
+ 'id': id,
6412
+ 'org': org
6413
+ },
6414
+ body: requestBody,
6415
+ mediaType: 'application/json'
6416
+ });
6417
+ }
6418
+ /**
6419
+ * Create modify and update bot information for a specific tenant.
6420
+ * @returns WhatsappConfig
6421
+ * @throws ApiError
6422
+ */
6423
+ static aiBotV1BotsBotWhatsappConfigPartialUpdate({
6424
+ id,
6425
+ org,
6426
+ requestBody
6427
+ }) {
6428
+ return request(OpenAPI, {
6429
+ method: 'PATCH',
6430
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
6431
+ path: {
6432
+ 'id': id,
6433
+ 'org': org
6434
+ },
6435
+ body: requestBody,
6436
+ mediaType: 'application/json'
6437
+ });
6438
+ }
6439
+ /**
6440
+ * Setup discord user id linkage with discord bots
6441
+ * this will be used to authenticate the user when interracting with discord bots.
6442
+ * the user id can be copied from the discord app after tapping on the user profile.
6443
+ * @returns DiscordUserConfig
6444
+ * @throws ApiError
6445
+ */
6446
+ static aiBotV1BotsDiscordUserConfigList({
6447
+ org
6448
+ }) {
6449
+ return request(OpenAPI, {
6450
+ method: 'GET',
6451
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
6452
+ path: {
6453
+ 'org': org
6454
+ }
6455
+ });
6456
+ }
6457
+ /**
6458
+ * Setup discord user id linkage with discord bots
6459
+ * this will be used to authenticate the user when interracting with discord bots.
6460
+ * the user id can be copied from the discord app after tapping on the user profile.
6461
+ * @returns DiscordUserConfig
6462
+ * @throws ApiError
6463
+ */
6464
+ static aiBotV1BotsDiscordUserConfigCreate({
6465
+ org,
6466
+ requestBody
6467
+ }) {
6468
+ return request(OpenAPI, {
6469
+ method: 'POST',
6470
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
6471
+ path: {
6472
+ 'org': org
6473
+ },
6474
+ body: requestBody,
6475
+ mediaType: 'application/json'
6476
+ });
6477
+ }
6478
+ /**
6479
+ * Setup discord user id linkage with discord bots
6480
+ * this will be used to authenticate the user when interracting with discord bots.
6481
+ * the user id can be copied from the discord app after tapping on the user profile.
6482
+ * @returns DiscordUserConfig
6483
+ * @throws ApiError
6484
+ */
6485
+ static aiBotV1BotsDiscordUserConfigRetrieve({
6486
+ id,
6487
+ org
6488
+ }) {
6489
+ return request(OpenAPI, {
6490
+ method: 'GET',
6491
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6492
+ path: {
6493
+ 'id': id,
6494
+ 'org': org
6495
+ }
6496
+ });
6497
+ }
6498
+ /**
6499
+ * Setup discord user id linkage with discord bots
6500
+ * this will be used to authenticate the user when interracting with discord bots.
6501
+ * the user id can be copied from the discord app after tapping on the user profile.
6502
+ * @returns DiscordUserConfig
6503
+ * @throws ApiError
6504
+ */
6505
+ static aiBotV1BotsDiscordUserConfigUpdate({
6506
+ id,
6507
+ org,
6508
+ requestBody
6509
+ }) {
6510
+ return request(OpenAPI, {
6511
+ method: 'PUT',
6512
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6513
+ path: {
6514
+ 'id': id,
6515
+ 'org': org
6516
+ },
6517
+ body: requestBody,
6518
+ mediaType: 'application/json'
6519
+ });
6520
+ }
6521
+ /**
6522
+ * Setup discord user id linkage with discord bots
6523
+ * this will be used to authenticate the user when interracting with discord bots.
6524
+ * the user id can be copied from the discord app after tapping on the user profile.
6525
+ * @returns DiscordUserConfig
6526
+ * @throws ApiError
6527
+ */
6528
+ static aiBotV1BotsDiscordUserConfigPartialUpdate({
6529
+ id,
6530
+ org,
6531
+ requestBody
6532
+ }) {
6533
+ return request(OpenAPI, {
6534
+ method: 'PATCH',
6535
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6536
+ path: {
6537
+ 'id': id,
6538
+ 'org': org
6539
+ },
6540
+ body: requestBody,
6541
+ mediaType: 'application/json'
6542
+ });
6543
+ }
6544
+ /**
6545
+ * Setup discord user id linkage with discord bots
6546
+ * this will be used to authenticate the user when interracting with discord bots.
6547
+ * the user id can be copied from the discord app after tapping on the user profile.
6548
+ * @returns void
6549
+ * @throws ApiError
6550
+ */
6551
+ static aiBotV1BotsDiscordUserConfigDestroy({
6552
+ id,
6553
+ org
6554
+ }) {
6555
+ return request(OpenAPI, {
6556
+ method: 'DELETE',
6557
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6558
+ path: {
6559
+ 'id': id,
6560
+ 'org': org
6561
+ }
6562
+ });
6563
+ }
6564
+ /**
6565
+ * Setup slack username and domain linkage with slack bots
6566
+ * this will be used to authenticate the user when interracting with slack bots.
6567
+ * @returns SlackUserConfig
6568
+ * @throws ApiError
6569
+ */
6570
+ static aiBotV1BotsSlackUserConfigList({
6571
+ org
6572
+ }) {
6573
+ return request(OpenAPI, {
6574
+ method: 'GET',
6575
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
6576
+ path: {
6577
+ 'org': org
6578
+ }
6579
+ });
6580
+ }
6581
+ /**
6582
+ * Setup slack username and domain linkage with slack bots
6583
+ * this will be used to authenticate the user when interracting with slack bots.
6584
+ * @returns SlackUserConfig
6585
+ * @throws ApiError
6586
+ */
6587
+ static aiBotV1BotsSlackUserConfigCreate({
6588
+ org,
6589
+ requestBody
6590
+ }) {
6591
+ return request(OpenAPI, {
6592
+ method: 'POST',
6593
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
6594
+ path: {
6595
+ 'org': org
6596
+ },
6597
+ body: requestBody,
6598
+ mediaType: 'application/json'
6599
+ });
6600
+ }
6601
+ /**
6602
+ * Setup slack username and domain linkage with slack bots
6603
+ * this will be used to authenticate the user when interracting with slack bots.
6604
+ * @returns SlackUserConfig
6605
+ * @throws ApiError
6606
+ */
6607
+ static aiBotV1BotsSlackUserConfigRetrieve({
6608
+ id,
6609
+ org
6610
+ }) {
6611
+ return request(OpenAPI, {
6612
+ method: 'GET',
6613
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6614
+ path: {
6615
+ 'id': id,
6616
+ 'org': org
6617
+ }
6618
+ });
6619
+ }
6620
+ /**
6621
+ * Setup slack username and domain linkage with slack bots
6622
+ * this will be used to authenticate the user when interracting with slack bots.
6623
+ * @returns SlackUserConfig
6624
+ * @throws ApiError
6625
+ */
6626
+ static aiBotV1BotsSlackUserConfigUpdate({
6627
+ id,
6628
+ org,
6629
+ requestBody
6630
+ }) {
6631
+ return request(OpenAPI, {
6632
+ method: 'PUT',
6633
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6634
+ path: {
6635
+ 'id': id,
6636
+ 'org': org
6637
+ },
6638
+ body: requestBody,
6639
+ mediaType: 'application/json'
6640
+ });
6641
+ }
6642
+ /**
6643
+ * Setup slack username and domain linkage with slack bots
6644
+ * this will be used to authenticate the user when interracting with slack bots.
6645
+ * @returns SlackUserConfig
6646
+ * @throws ApiError
6647
+ */
6648
+ static aiBotV1BotsSlackUserConfigPartialUpdate({
6649
+ id,
6650
+ org,
6651
+ requestBody
6652
+ }) {
6653
+ return request(OpenAPI, {
6654
+ method: 'PATCH',
6655
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6656
+ path: {
6657
+ 'id': id,
6658
+ 'org': org
6659
+ },
6660
+ body: requestBody,
6661
+ mediaType: 'application/json'
6662
+ });
6663
+ }
6664
+ /**
6665
+ * Setup slack username and domain linkage with slack bots
6666
+ * this will be used to authenticate the user when interracting with slack bots.
6667
+ * @returns void
6668
+ * @throws ApiError
6669
+ */
6670
+ static aiBotV1BotsSlackUserConfigDestroy({
6671
+ id,
6672
+ org
6673
+ }) {
6674
+ return request(OpenAPI, {
6675
+ method: 'DELETE',
6676
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6677
+ path: {
6678
+ 'id': id,
6679
+ 'org': org
6680
+ }
6681
+ });
6682
+ }
6683
+ /**
6684
+ * Setup phone number linkage with whatsapp bots
6685
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6686
+ * @returns WhatsappUserConfig
6687
+ * @throws ApiError
6688
+ */
6689
+ static aiBotV1BotsWhatsappUserConfigList({
6690
+ org
6691
+ }) {
6692
+ return request(OpenAPI, {
6693
+ method: 'GET',
6694
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
6695
+ path: {
6696
+ 'org': org
6697
+ }
6698
+ });
6699
+ }
6700
+ /**
6701
+ * Setup phone number linkage with whatsapp bots
6702
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6703
+ * @returns WhatsappUserConfig
6704
+ * @throws ApiError
6705
+ */
6706
+ static aiBotV1BotsWhatsappUserConfigCreate({
6707
+ org,
6708
+ requestBody
6709
+ }) {
6710
+ return request(OpenAPI, {
6711
+ method: 'POST',
6712
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
6713
+ path: {
6714
+ 'org': org
6715
+ },
6716
+ body: requestBody,
6717
+ mediaType: 'application/json'
6718
+ });
6719
+ }
6720
+ /**
6721
+ * Setup phone number linkage with whatsapp bots
6722
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6723
+ * @returns WhatsappUserConfig
6724
+ * @throws ApiError
6725
+ */
6726
+ static aiBotV1BotsWhatsappUserConfigRetrieve({
6727
+ id,
6728
+ org
6729
+ }) {
6730
+ return request(OpenAPI, {
6731
+ method: 'GET',
6732
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6733
+ path: {
6734
+ 'id': id,
6735
+ 'org': org
6736
+ }
6737
+ });
6738
+ }
6739
+ /**
6740
+ * Setup phone number linkage with whatsapp bots
6741
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6742
+ * @returns WhatsappUserConfig
6743
+ * @throws ApiError
6744
+ */
6745
+ static aiBotV1BotsWhatsappUserConfigUpdate({
6746
+ id,
6747
+ org,
6748
+ requestBody
6749
+ }) {
6750
+ return request(OpenAPI, {
6751
+ method: 'PUT',
6752
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6753
+ path: {
6754
+ 'id': id,
6755
+ 'org': org
6756
+ },
6757
+ body: requestBody,
6758
+ mediaType: 'application/json'
6759
+ });
6760
+ }
6761
+ /**
6762
+ * Setup phone number linkage with whatsapp bots
6763
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6764
+ * @returns WhatsappUserConfig
6765
+ * @throws ApiError
6766
+ */
6767
+ static aiBotV1BotsWhatsappUserConfigPartialUpdate({
6768
+ id,
6769
+ org,
6770
+ requestBody
6771
+ }) {
6772
+ return request(OpenAPI, {
6773
+ method: 'PATCH',
6774
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6775
+ path: {
6776
+ 'id': id,
6777
+ 'org': org
6778
+ },
6779
+ body: requestBody,
6780
+ mediaType: 'application/json'
6781
+ });
6782
+ }
6783
+ /**
6784
+ * Setup phone number linkage with whatsapp bots
6785
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6786
+ * @returns void
6787
+ * @throws ApiError
6788
+ */
6789
+ static aiBotV1BotsWhatsappUserConfigDestroy({
6790
+ id,
6791
+ org
6792
+ }) {
6793
+ return request(OpenAPI, {
6794
+ method: 'DELETE',
6795
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6796
+ path: {
6797
+ 'id': id,
6798
+ 'org': org
6799
+ }
6800
+ });
6801
+ }
6802
+ /**
6803
+ * Webhook endpoint to receive and process discord messages.
6804
+ * @returns DiscordWebhook
6805
+ * @throws ApiError
6806
+ */
6807
+ static aiBotV1BotsWebhooksDiscordCreate({
6808
+ name,
6809
+ org,
6810
+ requestBody
6811
+ }) {
6812
+ return request(OpenAPI, {
6813
+ method: 'POST',
6814
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
6815
+ path: {
6816
+ 'name': name,
6817
+ 'org': org
6818
+ },
6819
+ body: requestBody,
6820
+ mediaType: 'application/json'
6821
+ });
6822
+ }
6823
+ /**
6824
+ * @returns SlackWebhook
6825
+ * @throws ApiError
6826
+ */
6827
+ static aiBotV1BotsWebhooksSlackCreate({
6828
+ name,
6829
+ org,
6830
+ requestBody
6831
+ }) {
6832
+ return request(OpenAPI, {
6833
+ method: 'POST',
6834
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
6835
+ path: {
6836
+ 'name': name,
6837
+ 'org': org
6838
+ },
6839
+ body: requestBody,
6840
+ mediaType: 'application/json'
6841
+ });
6842
+ }
6843
+ /**
6844
+ * @returns TeamsWebhook
6845
+ * @throws ApiError
6846
+ */
6847
+ static aiBotV1BotsWebhooksTeamsCreate({
6848
+ name,
6849
+ org,
6850
+ requestBody
6851
+ }) {
6852
+ return request(OpenAPI, {
6853
+ method: 'POST',
6854
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
6855
+ path: {
6856
+ 'name': name,
6857
+ 'org': org
6858
+ },
6859
+ body: requestBody,
6860
+ mediaType: 'application/json'
6861
+ });
6862
+ }
6863
+ /**
6864
+ * Webhook endpoint to receive and process discord messages.
6865
+ * @returns WebexWebhook
6866
+ * @throws ApiError
6867
+ */
6868
+ static aiBotV1BotsWebhooksWebexCreate({
6869
+ name,
6870
+ org,
6871
+ requestBody
6872
+ }) {
6873
+ return request(OpenAPI, {
6874
+ method: 'POST',
6875
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
6876
+ path: {
6877
+ 'name': name,
6878
+ 'org': org
6879
+ },
6880
+ body: requestBody,
6881
+ mediaType: 'application/json'
6882
+ });
6883
+ }
6884
+ /**
6885
+ * Respond to whatsapp's webhook challenge.
6886
+ * Parameters Required include the tenant key (org) and the name of the bot: (name)
6887
+ * @returns WhatAppWebHook
6888
+ * @throws ApiError
6889
+ */
6890
+ static aiBotV1BotsWebhooksWhatsappRetrieve({
6891
+ name,
6892
+ org
6893
+ }) {
6894
+ return request(OpenAPI, {
6895
+ method: 'GET',
6896
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
6897
+ path: {
6898
+ 'name': name,
6899
+ 'org': org
6900
+ }
6901
+ });
6902
+ }
6903
+ /**
6904
+ * Accept and process webhook events from whatsapp.
6905
+ * @returns WhatAppWebHook
6906
+ * @throws ApiError
6907
+ */
6908
+ static aiBotV1BotsWebhooksWhatsappCreate({
6909
+ name,
6910
+ org,
6911
+ requestBody
6912
+ }) {
6913
+ return request(OpenAPI, {
6914
+ method: 'POST',
6915
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
6916
+ path: {
6917
+ 'name': name,
6918
+ 'org': org
6919
+ },
6920
+ body: requestBody,
6921
+ mediaType: 'application/json'
6922
+ });
6923
+ }
6924
+ }
6925
+
6926
+ class AiFinetuningService {
6927
+ /**
6928
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6929
+ * @returns PaginatedDataSetList
6930
+ * @throws ApiError
6931
+ */
6932
+ static aiFinetuningV1OrgUserDatasetsList({
6933
+ org,
6934
+ username,
6935
+ dateCreated,
6936
+ numDataPoints,
6937
+ ordering,
6938
+ page,
6939
+ pageSize,
6940
+ retryAttempts,
6941
+ search,
6942
+ status
6943
+ }) {
6944
+ return request(OpenAPI, {
6945
+ method: 'GET',
6946
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
6947
+ path: {
6948
+ 'org': org,
6949
+ 'username': username
6950
+ },
6951
+ query: {
6952
+ 'date_created': dateCreated,
6953
+ 'num_data_points': numDataPoints,
6954
+ 'ordering': ordering,
6955
+ 'page': page,
6956
+ 'page_size': pageSize,
6957
+ 'retry_attempts': retryAttempts,
6958
+ 'search': search,
6959
+ 'status': status
6960
+ }
6961
+ });
6962
+ }
6963
+ /**
6964
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6965
+ * @returns DataSetCreate
6966
+ * @throws ApiError
6967
+ */
6968
+ static aiFinetuningV1OrgUserDatasetsCreate({
6969
+ org,
6970
+ username,
6971
+ requestBody
6972
+ }) {
6973
+ return request(OpenAPI, {
6974
+ method: 'POST',
6975
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
6976
+ path: {
6977
+ 'org': org,
6978
+ 'username': username
6979
+ },
6980
+ body: requestBody,
6981
+ mediaType: 'application/json'
6982
+ });
6983
+ }
6984
+ /**
6985
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6986
+ * @returns DataSet
6987
+ * @throws ApiError
6988
+ */
6989
+ static aiFinetuningV1OrgUserDatasetsRetrieve({
6990
+ id,
6991
+ org,
6992
+ username
6993
+ }) {
6994
+ return request(OpenAPI, {
6995
+ method: 'GET',
6996
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
6997
+ path: {
6998
+ 'id': id,
6999
+ 'org': org,
7000
+ 'username': username
7001
+ }
7002
+ });
7003
+ }
7004
+ /**
7005
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7006
+ * @returns DataSet
7007
+ * @throws ApiError
7008
+ */
7009
+ static aiFinetuningV1OrgUserDatasetsUpdate({
7010
+ id,
7011
+ org,
7012
+ username,
7013
+ requestBody
7014
+ }) {
7015
+ return request(OpenAPI, {
7016
+ method: 'PUT',
7017
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
7018
+ path: {
7019
+ 'id': id,
7020
+ 'org': org,
7021
+ 'username': username
7022
+ },
7023
+ body: requestBody,
7024
+ mediaType: 'application/json'
7025
+ });
7026
+ }
7027
+ /**
7028
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7029
+ * @returns DataSet
7030
+ * @throws ApiError
7031
+ */
7032
+ static aiFinetuningV1OrgUserDatasetsPartialUpdate({
7033
+ id,
7034
+ org,
7035
+ username,
7036
+ requestBody
7037
+ }) {
7038
+ return request(OpenAPI, {
7039
+ method: 'PATCH',
7040
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
7041
+ path: {
7042
+ 'id': id,
7043
+ 'org': org,
7044
+ 'username': username
7045
+ },
7046
+ body: requestBody,
7047
+ mediaType: 'application/json'
7048
+ });
7049
+ }
7050
+ /**
7051
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7052
+ * @returns void
7053
+ * @throws ApiError
7054
+ */
7055
+ static aiFinetuningV1OrgUserDatasetsDestroy({
7056
+ id,
7057
+ org,
7058
+ username
7059
+ }) {
7060
+ return request(OpenAPI, {
7061
+ method: 'DELETE',
7062
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
7063
+ path: {
7064
+ 'id': id,
7065
+ 'org': org,
7066
+ 'username': username
7067
+ }
7068
+ });
7069
+ }
7070
+ /**
7071
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7072
+ * @returns PaginatedTrainingList
7073
+ * @throws ApiError
7074
+ */
7075
+ static aiFinetuningV1OrgUserTrainingsList({
7076
+ org,
7077
+ username,
7078
+ baseModelName,
7079
+ dataset,
7080
+ dateCreated,
7081
+ fineTunedModel,
7082
+ lastModified,
7083
+ ordering,
7084
+ page,
7085
+ pageSize,
7086
+ preprocessDataset,
7087
+ provider,
7088
+ search,
7089
+ status
7090
+ }) {
7091
+ return request(OpenAPI, {
7092
+ method: 'GET',
7093
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
7094
+ path: {
7095
+ 'org': org,
7096
+ 'username': username
7097
+ },
7098
+ query: {
7099
+ 'base_model_name': baseModelName,
7100
+ 'dataset': dataset,
7101
+ 'date_created': dateCreated,
7102
+ 'fine_tuned_model': fineTunedModel,
7103
+ 'last_modified': lastModified,
7104
+ 'ordering': ordering,
7105
+ 'page': page,
7106
+ 'page_size': pageSize,
7107
+ 'preprocess_dataset': preprocessDataset,
7108
+ 'provider': provider,
7109
+ 'search': search,
7110
+ 'status': status
7111
+ }
7112
+ });
7113
+ }
7114
+ /**
7115
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7116
+ * @returns TrainingCreate
7117
+ * @throws ApiError
7118
+ */
7119
+ static aiFinetuningV1OrgUserTrainingsCreate({
7120
+ org,
7121
+ username,
7122
+ requestBody
7123
+ }) {
7124
+ return request(OpenAPI, {
7125
+ method: 'POST',
7126
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
7127
+ path: {
7128
+ 'org': org,
7129
+ 'username': username
7130
+ },
7131
+ body: requestBody,
7132
+ mediaType: 'application/json'
7133
+ });
7134
+ }
7135
+ /**
7136
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7137
+ * @returns Training
7138
+ * @throws ApiError
7139
+ */
7140
+ static aiFinetuningV1OrgUserTrainingsRetrieve({
7141
+ id,
7142
+ org,
7143
+ username
7144
+ }) {
7145
+ return request(OpenAPI, {
7146
+ method: 'GET',
7147
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7148
+ path: {
7149
+ 'id': id,
7150
+ 'org': org,
7151
+ 'username': username
7152
+ }
7153
+ });
7154
+ }
7155
+ /**
7156
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7157
+ * @returns TrainingCreate
7158
+ * @throws ApiError
7159
+ */
7160
+ static aiFinetuningV1OrgUserTrainingsUpdate({
7161
+ id,
7162
+ org,
7163
+ username,
7164
+ requestBody
7165
+ }) {
7166
+ return request(OpenAPI, {
7167
+ method: 'PUT',
7168
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7169
+ path: {
7170
+ 'id': id,
7171
+ 'org': org,
7172
+ 'username': username
7173
+ },
7174
+ body: requestBody,
7175
+ mediaType: 'application/json'
7176
+ });
7177
+ }
7178
+ /**
7179
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7180
+ * @returns TrainingCreate
7181
+ * @throws ApiError
7182
+ */
7183
+ static aiFinetuningV1OrgUserTrainingsPartialUpdate({
7184
+ id,
7185
+ org,
7186
+ username,
7187
+ requestBody
7188
+ }) {
7189
+ return request(OpenAPI, {
7190
+ method: 'PATCH',
7191
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7192
+ path: {
7193
+ 'id': id,
7194
+ 'org': org,
7195
+ 'username': username
7196
+ },
7197
+ body: requestBody,
7198
+ mediaType: 'application/json'
7199
+ });
7200
+ }
7201
+ /**
7202
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7203
+ * @returns void
7204
+ * @throws ApiError
7205
+ */
7206
+ static aiFinetuningV1OrgUserTrainingsDestroy({
7207
+ id,
7208
+ org,
7209
+ username
7210
+ }) {
7211
+ return request(OpenAPI, {
7212
+ method: 'DELETE',
7213
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7214
+ path: {
7215
+ 'id': id,
7216
+ 'org': org,
7217
+ 'username': username
7218
+ }
7219
+ });
7220
+ }
7221
+ /**
7222
+ * Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
7223
+ * Filtering and pagination is allowed.
7224
+ *
7225
+ * NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
7226
+ * training list endpoint.
7227
+ * Returns:
7228
+ * Response: A paginated response containing the serialized fine-tuned models.
7229
+ * @returns Training
7230
+ * @throws ApiError
7231
+ */
7232
+ static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve({
7233
+ org,
7234
+ username
7235
+ }) {
7236
+ return request(OpenAPI, {
7237
+ method: 'GET',
7238
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
7239
+ path: {
7240
+ 'org': org,
7241
+ 'username': username
7242
+ }
7243
+ });
7244
+ }
7245
+ }
7246
+
5856
7247
  class AiIndexService {
5857
7248
  /**
5858
7249
  * Retrieve details of a specific document embedding.
@@ -33736,5 +35127,5 @@ class UserGroupsService {
33736
35127
  }
33737
35128
  }
33738
35129
 
33739
- export { AcceptanceEnum, AccessEnum, AiAccountService, AiAnalyticsService, AiIndexService, AiMarketingService, AiMediaService, AiMentorService, AiPromptService, AlignMentorBubbleEnum, AnalyticsService, ApiError, AudienceService, BlankEnum, CallConfigurationModeEnum, CancelError, CancelablePromise, CareerService, CatalogService, CeleryHeartbeatFailStatusEnum, CeleryHeartbeatStatusEnum, ComponentBlockTypeEnum, CoreService, CourseCreationTaskStatusEnum, CredentialsService, DepartmentsService, EngagementService, FeaturesService, FinanceService, GooglePayAccountResponseStatusEnum, GreetingMethodEnum, InstitutionTypeEnum, ItemTypeEnum, KindEnum, LlmProviderEnum, MediaResourcesService, MediaTypeEnum, MentorVisibilityEnum, NotificationBuilderService, NotificationService, NotificationSourceTypeEnum, NotificationStatusEnum, OpenAPI, OrgsService, OverviewService, PerformanceService, PeriodicAgentLogStatusEnum, PerlearnerService, PlatformListStatusEnum, PlatformService, PreviousAgentStatusEnum, ProgramTypeEnum, PromptVisibilityEnum, ProviderAssociationService, ProviderEnum, ProvidersService, ProvisionService, RatingEnum, RecommendationsService, ReportsService, ResourceScrappedDataStatusEnum, RolesService, SearchService, ServiceService, SkillsService, StateEnum, Status6eeEnum, StepStatusEnum, StripeCheckoutSessionRequestModeEnum, SttProviderEnum, TargetSystemEnum, ThemeEnum, TrainingStatusEnum, TransportEnum, TtsProviderEnum, TypeC42Enum, UserGroupsService };
35130
+ export { AcceptanceEnum, AccessEnum, AiAccountService, AiAnalyticsService, AiBotService, AiFinetuningService, AiIndexService, AiMarketingService, AiMediaService, AiMentorService, AiPromptService, AlignMentorBubbleEnum, AnalyticsService, ApiError, AudienceService, BlankEnum, CallConfigurationModeEnum, CancelError, CancelablePromise, CareerService, CatalogService, CeleryHeartbeatFailStatusEnum, CeleryHeartbeatStatusEnum, ComponentBlockTypeEnum, CoreService, CourseCreationTaskStatusEnum, CredentialsService, DataSetStatusEnum, DepartmentsService, EngagementService, FeaturesService, FinanceService, GooglePayAccountResponseStatusEnum, GreetingMethodEnum, InstitutionTypeEnum, ItemTypeEnum, KindEnum, LlmProviderEnum, MediaResourcesService, MediaTypeEnum, MentorVisibilityEnum, NotificationBuilderService, NotificationService, NotificationSourceTypeEnum, NotificationStatusEnum, OpenAPI, OrgsService, OverviewService, PerformanceService, PeriodicAgentLogStatusEnum, PerlearnerService, PlatformListStatusEnum, PlatformService, PreviousAgentStatusEnum, ProgramTypeEnum, PromptVisibilityEnum, Provider05cEnum, Provider637Enum, Provider63aEnum, ProviderAssociationService, ProvidersService, ProvisionService, RatingEnum, RecommendationsService, ReportsService, ResourceScrappedDataStatusEnum, RolesService, SearchService, ServiceService, SkillsService, StateEnum, Status6eeEnum, StepStatusEnum, StripeCheckoutSessionRequestModeEnum, SttProviderEnum, TargetSystemEnum, ThemeEnum, TrainingStatusEnum, TransportEnum, TtsProviderEnum, TypeC42Enum, UserGroupsService };
33740
35131
  //# sourceMappingURL=index.esm.js.map