@iblai/iblai-api 3.49.0-ai → 3.49.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.49.0-ai',
111
+ VERSION: '3.49.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 */
@@ -5733,6 +5783,1347 @@ class AiAnalyticsService {
5733
5783
  }
5734
5784
  }
5735
5785
 
5786
+ class AiBotService {
5787
+ /**
5788
+ * Create modify and update bot information for a specific tenant.
5789
+ * @returns Bot
5790
+ * @throws ApiError
5791
+ */
5792
+ static aiBotV1BotsBotList({
5793
+ org
5794
+ }) {
5795
+ return request(OpenAPI, {
5796
+ method: 'GET',
5797
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
5798
+ path: {
5799
+ 'org': org
5800
+ }
5801
+ });
5802
+ }
5803
+ /**
5804
+ * Create modify and update bot information for a specific tenant.
5805
+ * @returns BotCreate
5806
+ * @throws ApiError
5807
+ */
5808
+ static aiBotV1BotsBotCreate({
5809
+ org,
5810
+ requestBody
5811
+ }) {
5812
+ return request(OpenAPI, {
5813
+ method: 'POST',
5814
+ url: '/api/ai-bot/v1/bots/{org}/bot/',
5815
+ path: {
5816
+ 'org': org
5817
+ },
5818
+ body: requestBody,
5819
+ mediaType: 'application/json'
5820
+ });
5821
+ }
5822
+ /**
5823
+ * Create slash commands for a specific bot
5824
+ * eg. /iblai-baseline
5825
+ * @returns BotCommand
5826
+ * @throws ApiError
5827
+ */
5828
+ static aiBotV1BotsBotCommandsList({
5829
+ org
5830
+ }) {
5831
+ return request(OpenAPI, {
5832
+ method: 'GET',
5833
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
5834
+ path: {
5835
+ 'org': org
5836
+ }
5837
+ });
5838
+ }
5839
+ /**
5840
+ * Create slash commands for a specific bot
5841
+ * eg. /iblai-baseline
5842
+ * @returns BotCommand
5843
+ * @throws ApiError
5844
+ */
5845
+ static aiBotV1BotsBotCommandsCreate({
5846
+ org,
5847
+ requestBody
5848
+ }) {
5849
+ return request(OpenAPI, {
5850
+ method: 'POST',
5851
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
5852
+ path: {
5853
+ 'org': org
5854
+ },
5855
+ body: requestBody,
5856
+ mediaType: 'application/json'
5857
+ });
5858
+ }
5859
+ /**
5860
+ * Create slash commands for a specific bot
5861
+ * eg. /iblai-baseline
5862
+ * @returns BotCommand
5863
+ * @throws ApiError
5864
+ */
5865
+ static aiBotV1BotsBotCommandsRetrieve({
5866
+ id,
5867
+ org
5868
+ }) {
5869
+ return request(OpenAPI, {
5870
+ method: 'GET',
5871
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
5872
+ path: {
5873
+ 'id': id,
5874
+ 'org': org
5875
+ }
5876
+ });
5877
+ }
5878
+ /**
5879
+ * Create slash commands for a specific bot
5880
+ * eg. /iblai-baseline
5881
+ * @returns BotCommand
5882
+ * @throws ApiError
5883
+ */
5884
+ static aiBotV1BotsBotCommandsUpdate({
5885
+ id,
5886
+ org,
5887
+ requestBody
5888
+ }) {
5889
+ return request(OpenAPI, {
5890
+ method: 'PUT',
5891
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
5892
+ path: {
5893
+ 'id': id,
5894
+ 'org': org
5895
+ },
5896
+ body: requestBody,
5897
+ mediaType: 'application/json'
5898
+ });
5899
+ }
5900
+ /**
5901
+ * Create slash commands for a specific bot
5902
+ * eg. /iblai-baseline
5903
+ * @returns BotCommand
5904
+ * @throws ApiError
5905
+ */
5906
+ static aiBotV1BotsBotCommandsPartialUpdate({
5907
+ id,
5908
+ org,
5909
+ requestBody
5910
+ }) {
5911
+ return request(OpenAPI, {
5912
+ method: 'PATCH',
5913
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
5914
+ path: {
5915
+ 'id': id,
5916
+ 'org': org
5917
+ },
5918
+ body: requestBody,
5919
+ mediaType: 'application/json'
5920
+ });
5921
+ }
5922
+ /**
5923
+ * Create slash commands for a specific bot
5924
+ * eg. /iblai-baseline
5925
+ * @returns void
5926
+ * @throws ApiError
5927
+ */
5928
+ static aiBotV1BotsBotCommandsDestroy({
5929
+ id,
5930
+ org
5931
+ }) {
5932
+ return request(OpenAPI, {
5933
+ method: 'DELETE',
5934
+ url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
5935
+ path: {
5936
+ 'id': id,
5937
+ 'org': org
5938
+ }
5939
+ });
5940
+ }
5941
+ /**
5942
+ * Create modify and update bot information for a specific tenant.
5943
+ * @returns Bot
5944
+ * @throws ApiError
5945
+ */
5946
+ static aiBotV1BotsBotRetrieve({
5947
+ id,
5948
+ org
5949
+ }) {
5950
+ return request(OpenAPI, {
5951
+ method: 'GET',
5952
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
5953
+ path: {
5954
+ 'id': id,
5955
+ 'org': org
5956
+ }
5957
+ });
5958
+ }
5959
+ /**
5960
+ * Create modify and update bot information for a specific tenant.
5961
+ * @returns BotCreate
5962
+ * @throws ApiError
5963
+ */
5964
+ static aiBotV1BotsBotUpdate({
5965
+ id,
5966
+ org,
5967
+ requestBody
5968
+ }) {
5969
+ return request(OpenAPI, {
5970
+ method: 'PUT',
5971
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
5972
+ path: {
5973
+ 'id': id,
5974
+ 'org': org
5975
+ },
5976
+ body: requestBody,
5977
+ mediaType: 'application/json'
5978
+ });
5979
+ }
5980
+ /**
5981
+ * Create modify and update bot information for a specific tenant.
5982
+ * @returns BotCreate
5983
+ * @throws ApiError
5984
+ */
5985
+ static aiBotV1BotsBotPartialUpdate({
5986
+ id,
5987
+ org,
5988
+ requestBody
5989
+ }) {
5990
+ return request(OpenAPI, {
5991
+ method: 'PATCH',
5992
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
5993
+ path: {
5994
+ 'id': id,
5995
+ 'org': org
5996
+ },
5997
+ body: requestBody,
5998
+ mediaType: 'application/json'
5999
+ });
6000
+ }
6001
+ /**
6002
+ * Create modify and update bot information for a specific tenant.
6003
+ * @returns void
6004
+ * @throws ApiError
6005
+ */
6006
+ static aiBotV1BotsBotDestroy({
6007
+ id,
6008
+ org
6009
+ }) {
6010
+ return request(OpenAPI, {
6011
+ method: 'DELETE',
6012
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
6013
+ path: {
6014
+ 'id': id,
6015
+ 'org': org
6016
+ }
6017
+ });
6018
+ }
6019
+ /**
6020
+ * Create modify and update bot information for a specific tenant.
6021
+ * @returns DiscordConfig
6022
+ * @throws ApiError
6023
+ */
6024
+ static aiBotV1BotsBotConfigDiscordRetrieve({
6025
+ id,
6026
+ org
6027
+ }) {
6028
+ return request(OpenAPI, {
6029
+ method: 'GET',
6030
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
6031
+ path: {
6032
+ 'id': id,
6033
+ 'org': org
6034
+ }
6035
+ });
6036
+ }
6037
+ /**
6038
+ * Create modify and update bot information for a specific tenant.
6039
+ * @returns DiscordConfig
6040
+ * @throws ApiError
6041
+ */
6042
+ static aiBotV1BotsBotConfigDiscordPartialUpdate({
6043
+ id,
6044
+ org,
6045
+ requestBody
6046
+ }) {
6047
+ return request(OpenAPI, {
6048
+ method: 'PATCH',
6049
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
6050
+ path: {
6051
+ 'id': id,
6052
+ 'org': org
6053
+ },
6054
+ body: requestBody,
6055
+ mediaType: 'application/json'
6056
+ });
6057
+ }
6058
+ /**
6059
+ * Create modify and update bot information for a specific tenant.
6060
+ * @returns SlackConfig
6061
+ * @throws ApiError
6062
+ */
6063
+ static aiBotV1BotsBotConfigSlackRetrieve({
6064
+ id,
6065
+ org
6066
+ }) {
6067
+ return request(OpenAPI, {
6068
+ method: 'GET',
6069
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
6070
+ path: {
6071
+ 'id': id,
6072
+ 'org': org
6073
+ }
6074
+ });
6075
+ }
6076
+ /**
6077
+ * Create modify and update bot information for a specific tenant.
6078
+ * @returns SlackConfig
6079
+ * @throws ApiError
6080
+ */
6081
+ static aiBotV1BotsBotConfigSlackUpdateCreate({
6082
+ id,
6083
+ org,
6084
+ requestBody
6085
+ }) {
6086
+ return request(OpenAPI, {
6087
+ method: 'POST',
6088
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
6089
+ path: {
6090
+ 'id': id,
6091
+ 'org': org
6092
+ },
6093
+ body: requestBody,
6094
+ mediaType: 'application/json'
6095
+ });
6096
+ }
6097
+ /**
6098
+ * Create modify and update bot information for a specific tenant.
6099
+ * @returns SlackConfig
6100
+ * @throws ApiError
6101
+ */
6102
+ static aiBotV1BotsBotConfigSlackUpdateUpdate({
6103
+ id,
6104
+ org,
6105
+ requestBody
6106
+ }) {
6107
+ return request(OpenAPI, {
6108
+ method: 'PUT',
6109
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
6110
+ path: {
6111
+ 'id': id,
6112
+ 'org': org
6113
+ },
6114
+ body: requestBody,
6115
+ mediaType: 'application/json'
6116
+ });
6117
+ }
6118
+ /**
6119
+ * Create modify and update bot information for a specific tenant.
6120
+ * @returns SlackConfig
6121
+ * @throws ApiError
6122
+ */
6123
+ static aiBotV1BotsBotConfigSlackUpdatePartialUpdate({
6124
+ id,
6125
+ org,
6126
+ requestBody
6127
+ }) {
6128
+ return request(OpenAPI, {
6129
+ method: 'PATCH',
6130
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
6131
+ path: {
6132
+ 'id': id,
6133
+ 'org': org
6134
+ },
6135
+ body: requestBody,
6136
+ mediaType: 'application/json'
6137
+ });
6138
+ }
6139
+ /**
6140
+ * Create modify and update bot information for a specific tenant.
6141
+ * @returns TeamsConfig
6142
+ * @throws ApiError
6143
+ */
6144
+ static aiBotV1BotsBotConfigTeamsRetrieve({
6145
+ id,
6146
+ org
6147
+ }) {
6148
+ return request(OpenAPI, {
6149
+ method: 'GET',
6150
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
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 TeamsConfig
6160
+ * @throws ApiError
6161
+ */
6162
+ static aiBotV1BotsBotConfigTeamsUpdateCreate({
6163
+ id,
6164
+ org,
6165
+ requestBody
6166
+ }) {
6167
+ return request(OpenAPI, {
6168
+ method: 'POST',
6169
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
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 TeamsConfig
6181
+ * @throws ApiError
6182
+ */
6183
+ static aiBotV1BotsBotConfigTeamsUpdateUpdate({
6184
+ id,
6185
+ org,
6186
+ requestBody
6187
+ }) {
6188
+ return request(OpenAPI, {
6189
+ method: 'PUT',
6190
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
6191
+ path: {
6192
+ 'id': id,
6193
+ 'org': org
6194
+ },
6195
+ body: requestBody,
6196
+ mediaType: 'application/json'
6197
+ });
6198
+ }
6199
+ /**
6200
+ * Create modify and update bot information for a specific tenant.
6201
+ * @returns TeamsConfig
6202
+ * @throws ApiError
6203
+ */
6204
+ static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate({
6205
+ id,
6206
+ org,
6207
+ requestBody
6208
+ }) {
6209
+ return request(OpenAPI, {
6210
+ method: 'PATCH',
6211
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
6212
+ path: {
6213
+ 'id': id,
6214
+ 'org': org
6215
+ },
6216
+ body: requestBody,
6217
+ mediaType: 'application/json'
6218
+ });
6219
+ }
6220
+ /**
6221
+ * Create modify and update bot information for a specific tenant.
6222
+ * @returns WebexConfig
6223
+ * @throws ApiError
6224
+ */
6225
+ static aiBotV1BotsBotConfigWebexRetrieve({
6226
+ id,
6227
+ org
6228
+ }) {
6229
+ return request(OpenAPI, {
6230
+ method: 'GET',
6231
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
6232
+ path: {
6233
+ 'id': id,
6234
+ 'org': org
6235
+ }
6236
+ });
6237
+ }
6238
+ /**
6239
+ * Create modify and update bot information for a specific tenant.
6240
+ * @returns WebexConfig
6241
+ * @throws ApiError
6242
+ */
6243
+ static aiBotV1BotsBotConfigWebexPartialUpdate({
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/webex/',
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 WhatsappConfig
6262
+ * @throws ApiError
6263
+ */
6264
+ static aiBotV1BotsBotConfigWhatsappRetrieve({
6265
+ id,
6266
+ org
6267
+ }) {
6268
+ return request(OpenAPI, {
6269
+ method: 'GET',
6270
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
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 WhatsappConfig
6280
+ * @throws ApiError
6281
+ */
6282
+ static aiBotV1BotsBotWhatsappConfigUpdate({
6283
+ id,
6284
+ org,
6285
+ requestBody
6286
+ }) {
6287
+ return request(OpenAPI, {
6288
+ method: 'PUT',
6289
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
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 WhatsappConfig
6301
+ * @throws ApiError
6302
+ */
6303
+ static aiBotV1BotsBotWhatsappConfigPartialUpdate({
6304
+ id,
6305
+ org,
6306
+ requestBody
6307
+ }) {
6308
+ return request(OpenAPI, {
6309
+ method: 'PATCH',
6310
+ url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
6311
+ path: {
6312
+ 'id': id,
6313
+ 'org': org
6314
+ },
6315
+ body: requestBody,
6316
+ mediaType: 'application/json'
6317
+ });
6318
+ }
6319
+ /**
6320
+ * Setup discord user id linkage with discord bots
6321
+ * this will be used to authenticate the user when interracting with discord bots.
6322
+ * the user id can be copied from the discord app after tapping on the user profile.
6323
+ * @returns DiscordUserConfig
6324
+ * @throws ApiError
6325
+ */
6326
+ static aiBotV1BotsDiscordUserConfigList({
6327
+ org
6328
+ }) {
6329
+ return request(OpenAPI, {
6330
+ method: 'GET',
6331
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
6332
+ path: {
6333
+ 'org': org
6334
+ }
6335
+ });
6336
+ }
6337
+ /**
6338
+ * Setup discord user id linkage with discord bots
6339
+ * this will be used to authenticate the user when interracting with discord bots.
6340
+ * the user id can be copied from the discord app after tapping on the user profile.
6341
+ * @returns DiscordUserConfig
6342
+ * @throws ApiError
6343
+ */
6344
+ static aiBotV1BotsDiscordUserConfigCreate({
6345
+ org,
6346
+ requestBody
6347
+ }) {
6348
+ return request(OpenAPI, {
6349
+ method: 'POST',
6350
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
6351
+ path: {
6352
+ 'org': org
6353
+ },
6354
+ body: requestBody,
6355
+ mediaType: 'application/json'
6356
+ });
6357
+ }
6358
+ /**
6359
+ * Setup discord user id linkage with discord bots
6360
+ * this will be used to authenticate the user when interracting with discord bots.
6361
+ * the user id can be copied from the discord app after tapping on the user profile.
6362
+ * @returns DiscordUserConfig
6363
+ * @throws ApiError
6364
+ */
6365
+ static aiBotV1BotsDiscordUserConfigRetrieve({
6366
+ id,
6367
+ org
6368
+ }) {
6369
+ return request(OpenAPI, {
6370
+ method: 'GET',
6371
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6372
+ path: {
6373
+ 'id': id,
6374
+ 'org': org
6375
+ }
6376
+ });
6377
+ }
6378
+ /**
6379
+ * Setup discord user id linkage with discord bots
6380
+ * this will be used to authenticate the user when interracting with discord bots.
6381
+ * the user id can be copied from the discord app after tapping on the user profile.
6382
+ * @returns DiscordUserConfig
6383
+ * @throws ApiError
6384
+ */
6385
+ static aiBotV1BotsDiscordUserConfigUpdate({
6386
+ id,
6387
+ org,
6388
+ requestBody
6389
+ }) {
6390
+ return request(OpenAPI, {
6391
+ method: 'PUT',
6392
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6393
+ path: {
6394
+ 'id': id,
6395
+ 'org': org
6396
+ },
6397
+ body: requestBody,
6398
+ mediaType: 'application/json'
6399
+ });
6400
+ }
6401
+ /**
6402
+ * Setup discord user id linkage with discord bots
6403
+ * this will be used to authenticate the user when interracting with discord bots.
6404
+ * the user id can be copied from the discord app after tapping on the user profile.
6405
+ * @returns DiscordUserConfig
6406
+ * @throws ApiError
6407
+ */
6408
+ static aiBotV1BotsDiscordUserConfigPartialUpdate({
6409
+ id,
6410
+ org,
6411
+ requestBody
6412
+ }) {
6413
+ return request(OpenAPI, {
6414
+ method: 'PATCH',
6415
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6416
+ path: {
6417
+ 'id': id,
6418
+ 'org': org
6419
+ },
6420
+ body: requestBody,
6421
+ mediaType: 'application/json'
6422
+ });
6423
+ }
6424
+ /**
6425
+ * Setup discord user id linkage with discord bots
6426
+ * this will be used to authenticate the user when interracting with discord bots.
6427
+ * the user id can be copied from the discord app after tapping on the user profile.
6428
+ * @returns void
6429
+ * @throws ApiError
6430
+ */
6431
+ static aiBotV1BotsDiscordUserConfigDestroy({
6432
+ id,
6433
+ org
6434
+ }) {
6435
+ return request(OpenAPI, {
6436
+ method: 'DELETE',
6437
+ url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
6438
+ path: {
6439
+ 'id': id,
6440
+ 'org': org
6441
+ }
6442
+ });
6443
+ }
6444
+ /**
6445
+ * Setup slack username and domain linkage with slack bots
6446
+ * this will be used to authenticate the user when interracting with slack bots.
6447
+ * @returns SlackUserConfig
6448
+ * @throws ApiError
6449
+ */
6450
+ static aiBotV1BotsSlackUserConfigList({
6451
+ org
6452
+ }) {
6453
+ return request(OpenAPI, {
6454
+ method: 'GET',
6455
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
6456
+ path: {
6457
+ 'org': org
6458
+ }
6459
+ });
6460
+ }
6461
+ /**
6462
+ * Setup slack username and domain linkage with slack bots
6463
+ * this will be used to authenticate the user when interracting with slack bots.
6464
+ * @returns SlackUserConfig
6465
+ * @throws ApiError
6466
+ */
6467
+ static aiBotV1BotsSlackUserConfigCreate({
6468
+ org,
6469
+ requestBody
6470
+ }) {
6471
+ return request(OpenAPI, {
6472
+ method: 'POST',
6473
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
6474
+ path: {
6475
+ 'org': org
6476
+ },
6477
+ body: requestBody,
6478
+ mediaType: 'application/json'
6479
+ });
6480
+ }
6481
+ /**
6482
+ * Setup slack username and domain linkage with slack bots
6483
+ * this will be used to authenticate the user when interracting with slack bots.
6484
+ * @returns SlackUserConfig
6485
+ * @throws ApiError
6486
+ */
6487
+ static aiBotV1BotsSlackUserConfigRetrieve({
6488
+ id,
6489
+ org
6490
+ }) {
6491
+ return request(OpenAPI, {
6492
+ method: 'GET',
6493
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6494
+ path: {
6495
+ 'id': id,
6496
+ 'org': org
6497
+ }
6498
+ });
6499
+ }
6500
+ /**
6501
+ * Setup slack username and domain linkage with slack bots
6502
+ * this will be used to authenticate the user when interracting with slack bots.
6503
+ * @returns SlackUserConfig
6504
+ * @throws ApiError
6505
+ */
6506
+ static aiBotV1BotsSlackUserConfigUpdate({
6507
+ id,
6508
+ org,
6509
+ requestBody
6510
+ }) {
6511
+ return request(OpenAPI, {
6512
+ method: 'PUT',
6513
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6514
+ path: {
6515
+ 'id': id,
6516
+ 'org': org
6517
+ },
6518
+ body: requestBody,
6519
+ mediaType: 'application/json'
6520
+ });
6521
+ }
6522
+ /**
6523
+ * Setup slack username and domain linkage with slack bots
6524
+ * this will be used to authenticate the user when interracting with slack bots.
6525
+ * @returns SlackUserConfig
6526
+ * @throws ApiError
6527
+ */
6528
+ static aiBotV1BotsSlackUserConfigPartialUpdate({
6529
+ id,
6530
+ org,
6531
+ requestBody
6532
+ }) {
6533
+ return request(OpenAPI, {
6534
+ method: 'PATCH',
6535
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6536
+ path: {
6537
+ 'id': id,
6538
+ 'org': org
6539
+ },
6540
+ body: requestBody,
6541
+ mediaType: 'application/json'
6542
+ });
6543
+ }
6544
+ /**
6545
+ * Setup slack username and domain linkage with slack bots
6546
+ * this will be used to authenticate the user when interracting with slack bots.
6547
+ * @returns void
6548
+ * @throws ApiError
6549
+ */
6550
+ static aiBotV1BotsSlackUserConfigDestroy({
6551
+ id,
6552
+ org
6553
+ }) {
6554
+ return request(OpenAPI, {
6555
+ method: 'DELETE',
6556
+ url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
6557
+ path: {
6558
+ 'id': id,
6559
+ 'org': org
6560
+ }
6561
+ });
6562
+ }
6563
+ /**
6564
+ * Setup phone number linkage with whatsapp bots
6565
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6566
+ * @returns WhatsappUserConfig
6567
+ * @throws ApiError
6568
+ */
6569
+ static aiBotV1BotsWhatsappUserConfigList({
6570
+ org
6571
+ }) {
6572
+ return request(OpenAPI, {
6573
+ method: 'GET',
6574
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
6575
+ path: {
6576
+ 'org': org
6577
+ }
6578
+ });
6579
+ }
6580
+ /**
6581
+ * Setup phone number linkage with whatsapp bots
6582
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6583
+ * @returns WhatsappUserConfig
6584
+ * @throws ApiError
6585
+ */
6586
+ static aiBotV1BotsWhatsappUserConfigCreate({
6587
+ org,
6588
+ requestBody
6589
+ }) {
6590
+ return request(OpenAPI, {
6591
+ method: 'POST',
6592
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
6593
+ path: {
6594
+ 'org': org
6595
+ },
6596
+ body: requestBody,
6597
+ mediaType: 'application/json'
6598
+ });
6599
+ }
6600
+ /**
6601
+ * Setup phone number linkage with whatsapp bots
6602
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6603
+ * @returns WhatsappUserConfig
6604
+ * @throws ApiError
6605
+ */
6606
+ static aiBotV1BotsWhatsappUserConfigRetrieve({
6607
+ id,
6608
+ org
6609
+ }) {
6610
+ return request(OpenAPI, {
6611
+ method: 'GET',
6612
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6613
+ path: {
6614
+ 'id': id,
6615
+ 'org': org
6616
+ }
6617
+ });
6618
+ }
6619
+ /**
6620
+ * Setup phone number linkage with whatsapp bots
6621
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6622
+ * @returns WhatsappUserConfig
6623
+ * @throws ApiError
6624
+ */
6625
+ static aiBotV1BotsWhatsappUserConfigUpdate({
6626
+ id,
6627
+ org,
6628
+ requestBody
6629
+ }) {
6630
+ return request(OpenAPI, {
6631
+ method: 'PUT',
6632
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6633
+ path: {
6634
+ 'id': id,
6635
+ 'org': org
6636
+ },
6637
+ body: requestBody,
6638
+ mediaType: 'application/json'
6639
+ });
6640
+ }
6641
+ /**
6642
+ * Setup phone number linkage with whatsapp bots
6643
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6644
+ * @returns WhatsappUserConfig
6645
+ * @throws ApiError
6646
+ */
6647
+ static aiBotV1BotsWhatsappUserConfigPartialUpdate({
6648
+ id,
6649
+ org,
6650
+ requestBody
6651
+ }) {
6652
+ return request(OpenAPI, {
6653
+ method: 'PATCH',
6654
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6655
+ path: {
6656
+ 'id': id,
6657
+ 'org': org
6658
+ },
6659
+ body: requestBody,
6660
+ mediaType: 'application/json'
6661
+ });
6662
+ }
6663
+ /**
6664
+ * Setup phone number linkage with whatsapp bots
6665
+ * This phone number will be used to authenticate and allow access to whatsapp bots.
6666
+ * @returns void
6667
+ * @throws ApiError
6668
+ */
6669
+ static aiBotV1BotsWhatsappUserConfigDestroy({
6670
+ id,
6671
+ org
6672
+ }) {
6673
+ return request(OpenAPI, {
6674
+ method: 'DELETE',
6675
+ url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
6676
+ path: {
6677
+ 'id': id,
6678
+ 'org': org
6679
+ }
6680
+ });
6681
+ }
6682
+ /**
6683
+ * Webhook endpoint to receive and process discord messages.
6684
+ * @returns DiscordWebhook
6685
+ * @throws ApiError
6686
+ */
6687
+ static aiBotV1BotsWebhooksDiscordCreate({
6688
+ name,
6689
+ org,
6690
+ requestBody
6691
+ }) {
6692
+ return request(OpenAPI, {
6693
+ method: 'POST',
6694
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
6695
+ path: {
6696
+ 'name': name,
6697
+ 'org': org
6698
+ },
6699
+ body: requestBody,
6700
+ mediaType: 'application/json'
6701
+ });
6702
+ }
6703
+ /**
6704
+ * @returns SlackWebhook
6705
+ * @throws ApiError
6706
+ */
6707
+ static aiBotV1BotsWebhooksSlackCreate({
6708
+ name,
6709
+ org,
6710
+ requestBody
6711
+ }) {
6712
+ return request(OpenAPI, {
6713
+ method: 'POST',
6714
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
6715
+ path: {
6716
+ 'name': name,
6717
+ 'org': org
6718
+ },
6719
+ body: requestBody,
6720
+ mediaType: 'application/json'
6721
+ });
6722
+ }
6723
+ /**
6724
+ * @returns TeamsWebhook
6725
+ * @throws ApiError
6726
+ */
6727
+ static aiBotV1BotsWebhooksTeamsCreate({
6728
+ name,
6729
+ org,
6730
+ requestBody
6731
+ }) {
6732
+ return request(OpenAPI, {
6733
+ method: 'POST',
6734
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
6735
+ path: {
6736
+ 'name': name,
6737
+ 'org': org
6738
+ },
6739
+ body: requestBody,
6740
+ mediaType: 'application/json'
6741
+ });
6742
+ }
6743
+ /**
6744
+ * Webhook endpoint to receive and process discord messages.
6745
+ * @returns WebexWebhook
6746
+ * @throws ApiError
6747
+ */
6748
+ static aiBotV1BotsWebhooksWebexCreate({
6749
+ name,
6750
+ org,
6751
+ requestBody
6752
+ }) {
6753
+ return request(OpenAPI, {
6754
+ method: 'POST',
6755
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
6756
+ path: {
6757
+ 'name': name,
6758
+ 'org': org
6759
+ },
6760
+ body: requestBody,
6761
+ mediaType: 'application/json'
6762
+ });
6763
+ }
6764
+ /**
6765
+ * Respond to whatsapp's webhook challenge.
6766
+ * Parameters Required include the tenant key (org) and the name of the bot: (name)
6767
+ * @returns WhatAppWebHook
6768
+ * @throws ApiError
6769
+ */
6770
+ static aiBotV1BotsWebhooksWhatsappRetrieve({
6771
+ name,
6772
+ org
6773
+ }) {
6774
+ return request(OpenAPI, {
6775
+ method: 'GET',
6776
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
6777
+ path: {
6778
+ 'name': name,
6779
+ 'org': org
6780
+ }
6781
+ });
6782
+ }
6783
+ /**
6784
+ * Accept and process webhook events from whatsapp.
6785
+ * @returns WhatAppWebHook
6786
+ * @throws ApiError
6787
+ */
6788
+ static aiBotV1BotsWebhooksWhatsappCreate({
6789
+ name,
6790
+ org,
6791
+ requestBody
6792
+ }) {
6793
+ return request(OpenAPI, {
6794
+ method: 'POST',
6795
+ url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
6796
+ path: {
6797
+ 'name': name,
6798
+ 'org': org
6799
+ },
6800
+ body: requestBody,
6801
+ mediaType: 'application/json'
6802
+ });
6803
+ }
6804
+ }
6805
+
6806
+ class AiFinetuningService {
6807
+ /**
6808
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6809
+ * @returns PaginatedDataSetList
6810
+ * @throws ApiError
6811
+ */
6812
+ static aiFinetuningV1OrgUserDatasetsList({
6813
+ org,
6814
+ username,
6815
+ dateCreated,
6816
+ numDataPoints,
6817
+ ordering,
6818
+ page,
6819
+ pageSize,
6820
+ retryAttempts,
6821
+ search,
6822
+ status
6823
+ }) {
6824
+ return request(OpenAPI, {
6825
+ method: 'GET',
6826
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
6827
+ path: {
6828
+ 'org': org,
6829
+ 'username': username
6830
+ },
6831
+ query: {
6832
+ 'date_created': dateCreated,
6833
+ 'num_data_points': numDataPoints,
6834
+ 'ordering': ordering,
6835
+ 'page': page,
6836
+ 'page_size': pageSize,
6837
+ 'retry_attempts': retryAttempts,
6838
+ 'search': search,
6839
+ 'status': status
6840
+ }
6841
+ });
6842
+ }
6843
+ /**
6844
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6845
+ * @returns DataSetCreate
6846
+ * @throws ApiError
6847
+ */
6848
+ static aiFinetuningV1OrgUserDatasetsCreate({
6849
+ org,
6850
+ username,
6851
+ requestBody
6852
+ }) {
6853
+ return request(OpenAPI, {
6854
+ method: 'POST',
6855
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
6856
+ path: {
6857
+ 'org': org,
6858
+ 'username': username
6859
+ },
6860
+ body: requestBody,
6861
+ mediaType: 'application/json'
6862
+ });
6863
+ }
6864
+ /**
6865
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6866
+ * @returns DataSet
6867
+ * @throws ApiError
6868
+ */
6869
+ static aiFinetuningV1OrgUserDatasetsRetrieve({
6870
+ id,
6871
+ org,
6872
+ username
6873
+ }) {
6874
+ return request(OpenAPI, {
6875
+ method: 'GET',
6876
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
6877
+ path: {
6878
+ 'id': id,
6879
+ 'org': org,
6880
+ 'username': username
6881
+ }
6882
+ });
6883
+ }
6884
+ /**
6885
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6886
+ * @returns DataSet
6887
+ * @throws ApiError
6888
+ */
6889
+ static aiFinetuningV1OrgUserDatasetsUpdate({
6890
+ id,
6891
+ org,
6892
+ username,
6893
+ requestBody
6894
+ }) {
6895
+ return request(OpenAPI, {
6896
+ method: 'PUT',
6897
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
6898
+ path: {
6899
+ 'id': id,
6900
+ 'org': org,
6901
+ 'username': username
6902
+ },
6903
+ body: requestBody,
6904
+ mediaType: 'application/json'
6905
+ });
6906
+ }
6907
+ /**
6908
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6909
+ * @returns DataSet
6910
+ * @throws ApiError
6911
+ */
6912
+ static aiFinetuningV1OrgUserDatasetsPartialUpdate({
6913
+ id,
6914
+ org,
6915
+ username,
6916
+ requestBody
6917
+ }) {
6918
+ return request(OpenAPI, {
6919
+ method: 'PATCH',
6920
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
6921
+ path: {
6922
+ 'id': id,
6923
+ 'org': org,
6924
+ 'username': username
6925
+ },
6926
+ body: requestBody,
6927
+ mediaType: 'application/json'
6928
+ });
6929
+ }
6930
+ /**
6931
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6932
+ * @returns void
6933
+ * @throws ApiError
6934
+ */
6935
+ static aiFinetuningV1OrgUserDatasetsDestroy({
6936
+ id,
6937
+ org,
6938
+ username
6939
+ }) {
6940
+ return request(OpenAPI, {
6941
+ method: 'DELETE',
6942
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
6943
+ path: {
6944
+ 'id': id,
6945
+ 'org': org,
6946
+ 'username': username
6947
+ }
6948
+ });
6949
+ }
6950
+ /**
6951
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6952
+ * @returns PaginatedTrainingList
6953
+ * @throws ApiError
6954
+ */
6955
+ static aiFinetuningV1OrgUserTrainingsList({
6956
+ org,
6957
+ username,
6958
+ baseModelName,
6959
+ dataset,
6960
+ dateCreated,
6961
+ fineTunedModel,
6962
+ lastModified,
6963
+ ordering,
6964
+ page,
6965
+ pageSize,
6966
+ preprocessDataset,
6967
+ provider,
6968
+ search,
6969
+ status
6970
+ }) {
6971
+ return request(OpenAPI, {
6972
+ method: 'GET',
6973
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
6974
+ path: {
6975
+ 'org': org,
6976
+ 'username': username
6977
+ },
6978
+ query: {
6979
+ 'base_model_name': baseModelName,
6980
+ 'dataset': dataset,
6981
+ 'date_created': dateCreated,
6982
+ 'fine_tuned_model': fineTunedModel,
6983
+ 'last_modified': lastModified,
6984
+ 'ordering': ordering,
6985
+ 'page': page,
6986
+ 'page_size': pageSize,
6987
+ 'preprocess_dataset': preprocessDataset,
6988
+ 'provider': provider,
6989
+ 'search': search,
6990
+ 'status': status
6991
+ }
6992
+ });
6993
+ }
6994
+ /**
6995
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
6996
+ * @returns TrainingCreate
6997
+ * @throws ApiError
6998
+ */
6999
+ static aiFinetuningV1OrgUserTrainingsCreate({
7000
+ org,
7001
+ username,
7002
+ requestBody
7003
+ }) {
7004
+ return request(OpenAPI, {
7005
+ method: 'POST',
7006
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
7007
+ path: {
7008
+ 'org': org,
7009
+ 'username': username
7010
+ },
7011
+ body: requestBody,
7012
+ mediaType: 'application/json'
7013
+ });
7014
+ }
7015
+ /**
7016
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7017
+ * @returns Training
7018
+ * @throws ApiError
7019
+ */
7020
+ static aiFinetuningV1OrgUserTrainingsRetrieve({
7021
+ id,
7022
+ org,
7023
+ username
7024
+ }) {
7025
+ return request(OpenAPI, {
7026
+ method: 'GET',
7027
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7028
+ path: {
7029
+ 'id': id,
7030
+ 'org': org,
7031
+ 'username': username
7032
+ }
7033
+ });
7034
+ }
7035
+ /**
7036
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7037
+ * @returns TrainingCreate
7038
+ * @throws ApiError
7039
+ */
7040
+ static aiFinetuningV1OrgUserTrainingsUpdate({
7041
+ id,
7042
+ org,
7043
+ username,
7044
+ requestBody
7045
+ }) {
7046
+ return request(OpenAPI, {
7047
+ method: 'PUT',
7048
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7049
+ path: {
7050
+ 'id': id,
7051
+ 'org': org,
7052
+ 'username': username
7053
+ },
7054
+ body: requestBody,
7055
+ mediaType: 'application/json'
7056
+ });
7057
+ }
7058
+ /**
7059
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7060
+ * @returns TrainingCreate
7061
+ * @throws ApiError
7062
+ */
7063
+ static aiFinetuningV1OrgUserTrainingsPartialUpdate({
7064
+ id,
7065
+ org,
7066
+ username,
7067
+ requestBody
7068
+ }) {
7069
+ return request(OpenAPI, {
7070
+ method: 'PATCH',
7071
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7072
+ path: {
7073
+ 'id': id,
7074
+ 'org': org,
7075
+ 'username': username
7076
+ },
7077
+ body: requestBody,
7078
+ mediaType: 'application/json'
7079
+ });
7080
+ }
7081
+ /**
7082
+ * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
7083
+ * @returns void
7084
+ * @throws ApiError
7085
+ */
7086
+ static aiFinetuningV1OrgUserTrainingsDestroy({
7087
+ id,
7088
+ org,
7089
+ username
7090
+ }) {
7091
+ return request(OpenAPI, {
7092
+ method: 'DELETE',
7093
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
7094
+ path: {
7095
+ 'id': id,
7096
+ 'org': org,
7097
+ 'username': username
7098
+ }
7099
+ });
7100
+ }
7101
+ /**
7102
+ * Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
7103
+ * Filtering and pagination is allowed.
7104
+ *
7105
+ * NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
7106
+ * training list endpoint.
7107
+ * Returns:
7108
+ * Response: A paginated response containing the serialized fine-tuned models.
7109
+ * @returns Training
7110
+ * @throws ApiError
7111
+ */
7112
+ static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve({
7113
+ org,
7114
+ username
7115
+ }) {
7116
+ return request(OpenAPI, {
7117
+ method: 'GET',
7118
+ url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
7119
+ path: {
7120
+ 'org': org,
7121
+ 'username': username
7122
+ }
7123
+ });
7124
+ }
7125
+ }
7126
+
5736
7127
  class AiIndexService {
5737
7128
  /**
5738
7129
  * Retrieve details of a specific document embedding.
@@ -33790,5 +35181,5 @@ class UserGroupsService {
33790
35181
  }
33791
35182
  }
33792
35183
 
33793
- 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 };
35184
+ 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 };
33794
35185
  //# sourceMappingURL=index.esm.js.map