@iblai/iblai-api 3.36.1-ai-plus → 3.37.0-ai

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/index.cjs.js +296 -1461
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +297 -1460
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +296 -1461
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +5 -40
  8. package/dist/types/models/MCPServer.d.ts +21 -0
  9. package/dist/types/models/Mentor.d.ts +5 -0
  10. package/dist/types/models/MentorCreate.d.ts +4 -0
  11. package/dist/types/models/MentorFromTemplateWithSettingRequest.d.ts +1 -0
  12. package/dist/types/models/MentorSettings.d.ts +2 -0
  13. package/dist/types/models/MentorSettingsRequest.d.ts +2 -0
  14. package/dist/types/models/PaginatedMCPServerList.d.ts +7 -0
  15. package/dist/types/models/PatchedMCPServer.d.ts +21 -0
  16. package/dist/types/models/PatchedMentorCreate.d.ts +4 -0
  17. package/dist/types/models/{VoiceProviderEnum.d.ts → ProviderEnum.d.ts} +1 -1
  18. package/dist/types/models/TransportEnum.d.ts +8 -0
  19. package/dist/types/models/Voice.d.ts +2 -2
  20. package/dist/types/services/AiMentorService.d.ts +90 -0
  21. package/package.json +1 -1
  22. package/src/core/OpenAPI.ts +1 -1
  23. package/src/index.ts +5 -40
  24. package/src/models/MCPServer.ts +26 -0
  25. package/src/models/Mentor.ts +5 -0
  26. package/src/models/MentorCreate.ts +4 -0
  27. package/src/models/MentorFromTemplateWithSettingRequest.ts +1 -0
  28. package/src/models/MentorSettings.ts +2 -0
  29. package/src/models/MentorSettingsRequest.ts +2 -0
  30. package/src/models/{PaginatedDataSetList.ts → PaginatedMCPServerList.ts} +3 -3
  31. package/src/models/PatchedMCPServer.ts +26 -0
  32. package/src/models/PatchedMentorCreate.ts +4 -0
  33. package/src/models/{VoiceProviderEnum.ts → ProviderEnum.ts} +1 -1
  34. package/src/models/{Provider63aEnum.ts → TransportEnum.ts} +5 -3
  35. package/src/models/Voice.ts +2 -2
  36. package/src/services/AiMentorService.ts +189 -0
  37. package/dist/types/models/Bot.d.ts +0 -15
  38. package/dist/types/models/BotCommand.d.ts +0 -6
  39. package/dist/types/models/BotCreate.d.ts +0 -12
  40. package/dist/types/models/DataSet.d.ts +0 -21
  41. package/dist/types/models/DataSetCreate.d.ts +0 -12
  42. package/dist/types/models/DataSetStatusEnum.d.ts +0 -12
  43. package/dist/types/models/DiscordConfig.d.ts +0 -7
  44. package/dist/types/models/DiscordUserConfig.d.ts +0 -10
  45. package/dist/types/models/DiscordWebhook.d.ts +0 -6
  46. package/dist/types/models/PaginatedDataSetList.d.ts +0 -7
  47. package/dist/types/models/PaginatedTrainingList.d.ts +0 -7
  48. package/dist/types/models/PatchedBotCommand.d.ts +0 -6
  49. package/dist/types/models/PatchedBotCreate.d.ts +0 -12
  50. package/dist/types/models/PatchedDataSet.d.ts +0 -21
  51. package/dist/types/models/PatchedDiscordConfig.d.ts +0 -7
  52. package/dist/types/models/PatchedDiscordUserConfig.d.ts +0 -10
  53. package/dist/types/models/PatchedSlackConfig.d.ts +0 -8
  54. package/dist/types/models/PatchedSlackUserConfig.d.ts +0 -17
  55. package/dist/types/models/PatchedTeamsConfig.d.ts +0 -7
  56. package/dist/types/models/PatchedTrainingCreate.d.ts +0 -31
  57. package/dist/types/models/PatchedWebexConfig.d.ts +0 -10
  58. package/dist/types/models/PatchedWhatsappConfig.d.ts +0 -11
  59. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +0 -10
  60. package/dist/types/models/Provider05cEnum.d.ts +0 -14
  61. package/dist/types/models/Provider63aEnum.d.ts +0 -6
  62. package/dist/types/models/SlackConfig.d.ts +0 -8
  63. package/dist/types/models/SlackUserConfig.d.ts +0 -17
  64. package/dist/types/models/SlackWebhook.d.ts +0 -6
  65. package/dist/types/models/TeamsConfig.d.ts +0 -7
  66. package/dist/types/models/TeamsWebhook.d.ts +0 -17
  67. package/dist/types/models/Training.d.ts +0 -41
  68. package/dist/types/models/TrainingCreate.d.ts +0 -31
  69. package/dist/types/models/WebexConfig.d.ts +0 -10
  70. package/dist/types/models/WebexWebhook.d.ts +0 -4
  71. package/dist/types/models/WhatAppWebHook.d.ts +0 -3
  72. package/dist/types/models/WhatsappConfig.d.ts +0 -11
  73. package/dist/types/models/WhatsappUserConfig.d.ts +0 -10
  74. package/dist/types/services/AiBotService.d.ts +0 -486
  75. package/dist/types/services/AiFinetuningService.d.ts +0 -162
  76. package/src/models/Bot.ts +0 -20
  77. package/src/models/BotCommand.ts +0 -11
  78. package/src/models/BotCreate.ts +0 -17
  79. package/src/models/DataSet.ts +0 -26
  80. package/src/models/DataSetCreate.ts +0 -17
  81. package/src/models/DataSetStatusEnum.ts +0 -16
  82. package/src/models/DiscordConfig.ts +0 -12
  83. package/src/models/DiscordUserConfig.ts +0 -15
  84. package/src/models/DiscordWebhook.ts +0 -11
  85. package/src/models/PaginatedTrainingList.ts +0 -12
  86. package/src/models/PatchedBotCommand.ts +0 -11
  87. package/src/models/PatchedBotCreate.ts +0 -17
  88. package/src/models/PatchedDataSet.ts +0 -26
  89. package/src/models/PatchedDiscordConfig.ts +0 -12
  90. package/src/models/PatchedDiscordUserConfig.ts +0 -15
  91. package/src/models/PatchedSlackConfig.ts +0 -13
  92. package/src/models/PatchedSlackUserConfig.ts +0 -22
  93. package/src/models/PatchedTeamsConfig.ts +0 -12
  94. package/src/models/PatchedTrainingCreate.ts +0 -36
  95. package/src/models/PatchedWebexConfig.ts +0 -15
  96. package/src/models/PatchedWhatsappConfig.ts +0 -16
  97. package/src/models/PatchedWhatsappUserConfig.ts +0 -15
  98. package/src/models/Provider05cEnum.ts +0 -18
  99. package/src/models/SlackConfig.ts +0 -13
  100. package/src/models/SlackUserConfig.ts +0 -22
  101. package/src/models/SlackWebhook.ts +0 -11
  102. package/src/models/TeamsConfig.ts +0 -12
  103. package/src/models/TeamsWebhook.ts +0 -22
  104. package/src/models/Training.ts +0 -46
  105. package/src/models/TrainingCreate.ts +0 -36
  106. package/src/models/WebexConfig.ts +0 -15
  107. package/src/models/WebexWebhook.ts +0 -9
  108. package/src/models/WhatAppWebHook.ts +0 -8
  109. package/src/models/WhatsappConfig.ts +0 -16
  110. package/src/models/WhatsappUserConfig.ts +0 -15
  111. package/src/services/AiBotService.ts +0 -1174
  112. package/src/services/AiFinetuningService.ts +0 -402
package/dist/index.cjs.js CHANGED
@@ -110,7 +110,7 @@ class CancelablePromise {
110
110
 
111
111
  const OpenAPI = {
112
112
  BASE: 'https://base.manager.iblai.app',
113
- VERSION: '3.36.1-ai-plus',
113
+ VERSION: '3.37.0-ai',
114
114
  WITH_CREDENTIALS: false,
115
115
  CREDENTIALS: 'include',
116
116
  TOKEN: undefined,
@@ -231,24 +231,6 @@ exports.CourseCreationTaskStatusEnum = void 0;
231
231
  CourseCreationTaskStatusEnum["IN_PROGRESS"] = "In Progress";
232
232
  })(exports.CourseCreationTaskStatusEnum || (exports.CourseCreationTaskStatusEnum = {}));
233
233
 
234
- /* generated using openapi-typescript-codegen -- do not edit */
235
- /* istanbul ignore file */
236
- /* tslint:disable */
237
- /* eslint-disable */
238
- /**
239
- * * `pending` - Pending
240
- * * `processing` - Processing
241
- * * `completed` - Completed
242
- * * `failed` - Failed
243
- */
244
- exports.DataSetStatusEnum = void 0;
245
- (function (DataSetStatusEnum) {
246
- DataSetStatusEnum["PENDING"] = "pending";
247
- DataSetStatusEnum["PROCESSING"] = "processing";
248
- DataSetStatusEnum["COMPLETED"] = "completed";
249
- DataSetStatusEnum["FAILED"] = "failed";
250
- })(exports.DataSetStatusEnum || (exports.DataSetStatusEnum = {}));
251
-
252
234
  /* generated using openapi-typescript-codegen -- do not edit */
253
235
  /* istanbul ignore file */
254
236
  /* tslint:disable */
@@ -531,37 +513,21 @@ exports.PromptVisibilityEnum = void 0;
531
513
  PromptVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
532
514
  })(exports.PromptVisibilityEnum || (exports.PromptVisibilityEnum = {}));
533
515
 
534
- /* generated using openapi-typescript-codegen -- do not edit */
535
- /* istanbul ignore file */
536
- /* tslint:disable */
537
- /* eslint-disable */
538
- /**
539
- * * `webex` - Webex
540
- * * `slack` - Slack
541
- * * `whatsapp` - Whatsapp
542
- * * `discord` - Discord
543
- * * `teams` - Teams
544
- */
545
- exports.Provider05cEnum = void 0;
546
- (function (Provider05cEnum) {
547
- Provider05cEnum["WEBEX"] = "webex";
548
- Provider05cEnum["SLACK"] = "slack";
549
- Provider05cEnum["WHATSAPP"] = "whatsapp";
550
- Provider05cEnum["DISCORD"] = "discord";
551
- Provider05cEnum["TEAMS"] = "teams";
552
- })(exports.Provider05cEnum || (exports.Provider05cEnum = {}));
553
-
554
516
  /* generated using openapi-typescript-codegen -- do not edit */
555
517
  /* istanbul ignore file */
556
518
  /* tslint:disable */
557
519
  /* eslint-disable */
558
520
  /**
559
521
  * * `openai` - Openai
522
+ * * `google` - Google
523
+ * * `elevenlabs` - Elevenlabs
560
524
  */
561
- exports.Provider63aEnum = void 0;
562
- (function (Provider63aEnum) {
563
- Provider63aEnum["OPENAI"] = "openai";
564
- })(exports.Provider63aEnum || (exports.Provider63aEnum = {}));
525
+ exports.ProviderEnum = void 0;
526
+ (function (ProviderEnum) {
527
+ ProviderEnum["OPENAI"] = "openai";
528
+ ProviderEnum["GOOGLE"] = "google";
529
+ ProviderEnum["ELEVENLABS"] = "elevenlabs";
530
+ })(exports.ProviderEnum || (exports.ProviderEnum = {}));
565
531
 
566
532
  /* generated using openapi-typescript-codegen -- do not edit */
567
533
  /* istanbul ignore file */
@@ -708,30 +674,28 @@ exports.TrainingStatusEnum = void 0;
708
674
  /* tslint:disable */
709
675
  /* eslint-disable */
710
676
  /**
711
- * * `tutorial` - Tutorial
712
- * * `assessment` - Assessment
677
+ * * `sse` - Sse
678
+ * * `websocket` - Websocket
713
679
  */
714
- exports.TypeC42Enum = void 0;
715
- (function (TypeC42Enum) {
716
- TypeC42Enum["TUTORIAL"] = "tutorial";
717
- TypeC42Enum["ASSESSMENT"] = "assessment";
718
- })(exports.TypeC42Enum || (exports.TypeC42Enum = {}));
680
+ exports.TransportEnum = void 0;
681
+ (function (TransportEnum) {
682
+ TransportEnum["SSE"] = "sse";
683
+ TransportEnum["WEBSOCKET"] = "websocket";
684
+ })(exports.TransportEnum || (exports.TransportEnum = {}));
719
685
 
720
686
  /* generated using openapi-typescript-codegen -- do not edit */
721
687
  /* istanbul ignore file */
722
688
  /* tslint:disable */
723
689
  /* eslint-disable */
724
690
  /**
725
- * * `openai` - Openai
726
- * * `google` - Google
727
- * * `elevenlabs` - Elevenlabs
691
+ * * `tutorial` - Tutorial
692
+ * * `assessment` - Assessment
728
693
  */
729
- exports.VoiceProviderEnum = void 0;
730
- (function (VoiceProviderEnum) {
731
- VoiceProviderEnum["OPENAI"] = "openai";
732
- VoiceProviderEnum["GOOGLE"] = "google";
733
- VoiceProviderEnum["ELEVENLABS"] = "elevenlabs";
734
- })(exports.VoiceProviderEnum || (exports.VoiceProviderEnum = {}));
694
+ exports.TypeC42Enum = void 0;
695
+ (function (TypeC42Enum) {
696
+ TypeC42Enum["TUTORIAL"] = "tutorial";
697
+ TypeC42Enum["ASSESSMENT"] = "assessment";
698
+ })(exports.TypeC42Enum || (exports.TypeC42Enum = {}));
735
699
 
736
700
  /* generated using openapi-typescript-codegen -- do not edit */
737
701
  /* istanbul ignore file */
@@ -2890,1439 +2854,155 @@ class AiAnalyticsService {
2890
2854
  'aggregation': aggregation,
2891
2855
  'end_date': endDate,
2892
2856
  'mentor_id': mentorId,
2893
- 'start_date': startDate
2894
- },
2895
- errors: {
2896
- 400: `Invalid parameters`,
2897
- 404: `Organization not found`
2898
- }
2899
- });
2900
- }
2901
- /**
2902
- * Retrieve comprehensive user metrics.
2903
- *
2904
- * This endpoint returns data on various user metrics with month-over-month
2905
- * change calculations:
2906
- * - Registered users: Total users registered on the platform
2907
- * - New users: Users who joined in the current month
2908
- * - Unique users: Distinct users who have had sessions
2909
- * - Veteran users: Users who have been active for at least 6 months
2910
- *
2911
- * Results can be filtered by mentor.
2912
- *
2913
- * Args:
2914
- * request: The HTTP request containing filter query parameters.
2915
- * org: Organization key identifier.
2916
- *
2917
- * Returns:
2918
- * Response: Comprehensive user metrics with month-over-month changes.
2919
- *
2920
- * Raises:
2921
- * NotFound: If the specified organization does not exist.
2922
- *
2923
- * Query Parameters:
2924
- * mentor_id (str): Filter metrics by mentor unique ID.
2925
- * @param org
2926
- * @param userId
2927
- * @param groupBy
2928
- * @param mentorId Filter metrics by mentor unique ID
2929
- * @returns UserMetricsResponse
2930
- * @throws ApiError
2931
- */
2932
- static aiAnalyticsOrgsUsersUserMetricsRetrieve(org, userId, groupBy = 'day', mentorId) {
2933
- return request(OpenAPI, {
2934
- method: 'GET',
2935
- url: '/api/ai-analytics/orgs/{org}/users/{user_id}/user-metrics/',
2936
- path: {
2937
- 'org': org,
2938
- 'user_id': userId
2939
- },
2940
- query: {
2941
- 'group_by': groupBy,
2942
- 'mentor_id': mentorId
2943
- },
2944
- errors: {
2945
- 404: `Organization not found`
2946
- }
2947
- });
2948
- }
2949
- /**
2950
- * Retrieve user distribution data for pie charts.
2951
- *
2952
- * This endpoint returns data on the distribution of new versus returning users
2953
- * within a specified date range, including both counts and percentages,
2954
- * suitable for pie chart visualization.
2955
- *
2956
- * Args:
2957
- * request: The HTTP request containing filter query parameters.
2958
- * org: Organization key identifier.
2959
- *
2960
- * Returns:
2961
- * Response: Distribution of new versus returning users with counts and percentages.
2962
- *
2963
- * Raises:
2964
- * NotFound: If the specified organization does not exist.
2965
- * BadRequest: If the provided parameters are invalid.
2966
- *
2967
- * Query Parameters:
2968
- * start_date (str): Start date for filtering (YYYY-MM-DD) - required.
2969
- * end_date (str): End date for filtering (YYYY-MM-DD) - required.
2970
- * mentor_id (str): Filter by mentor unique ID.
2971
- * @param endDate End date for filtering (YYYY-MM-DD)
2972
- * @param org
2973
- * @param startDate Start date for filtering (YYYY-MM-DD)
2974
- * @param userId
2975
- * @param mentorId Filter by mentor unique ID
2976
- * @returns PieChartData
2977
- * @throws ApiError
2978
- */
2979
- static aiAnalyticsOrgsUsersUserMetricsPieChartRetrieve(endDate, org, startDate, userId, mentorId) {
2980
- return request(OpenAPI, {
2981
- method: 'GET',
2982
- url: '/api/ai-analytics/orgs/{org}/users/{user_id}/user-metrics-pie-chart/',
2983
- path: {
2984
- 'org': org,
2985
- 'user_id': userId
2986
- },
2987
- query: {
2988
- 'end_date': endDate,
2989
- 'mentor_id': mentorId,
2990
- 'start_date': startDate
2991
- },
2992
- errors: {
2993
- 400: `Invalid parameters`,
2994
- 404: `Organization not found`
2995
- }
2996
- });
2997
- }
2998
- /**
2999
- * Retrieve user sentiment distribution.
3000
- *
3001
- * This endpoint returns data on the distribution of user sentiments (positive,
3002
- * negative, neutral) within a specified date range, expressed as percentages.
3003
- *
3004
- * Args:
3005
- * request: The HTTP request containing filter query parameters.
3006
- * org: Organization key identifier.
3007
- *
3008
- * Returns:
3009
- * Response: Sentiment distribution percentages and total sentiment count.
3010
- *
3011
- * Raises:
3012
- * NotFound: If the specified organization does not exist.
3013
- * BadRequest: If the provided parameters are invalid.
3014
- *
3015
- * Query Parameters:
3016
- * start_date (str): Start date for filtering (YYYY-MM-DD) - required.
3017
- * end_date (str): End date for filtering (YYYY-MM-DD) - required.
3018
- * @param endDate End date for filtering (YYYY-MM-DD)
3019
- * @param org
3020
- * @param startDate Start date for filtering (YYYY-MM-DD)
3021
- * @param userId
3022
- * @param groupBy
3023
- * @returns SentimentSummary
3024
- * @throws ApiError
3025
- */
3026
- static aiAnalyticsOrgsUsersUserSentimentRetrieve(endDate, org, startDate, userId, groupBy = 'day') {
3027
- return request(OpenAPI, {
3028
- method: 'GET',
3029
- url: '/api/ai-analytics/orgs/{org}/users/{user_id}/user-sentiment/',
3030
- path: {
3031
- 'org': org,
3032
- 'user_id': userId
3033
- },
3034
- query: {
3035
- 'end_date': endDate,
3036
- 'group_by': groupBy,
3037
- 'start_date': startDate
3038
- },
3039
- errors: {
3040
- 400: `Invalid parameters`,
3041
- 404: `Organization not found`
3042
- }
3043
- });
3044
- }
3045
- }
3046
-
3047
- class AiBotService {
3048
- /**
3049
- * Create modify and update bot information for a specific tenant.
3050
- * @param org
3051
- * @returns Bot
3052
- * @throws ApiError
3053
- */
3054
- static aiBotV1BotsBotList(org) {
3055
- return request(OpenAPI, {
3056
- method: 'GET',
3057
- url: '/api/ai-bot/v1/bots/{org}/bot/',
3058
- path: {
3059
- 'org': org
3060
- }
3061
- });
3062
- }
3063
- /**
3064
- * Create modify and update bot information for a specific tenant.
3065
- * @param org
3066
- * @param requestBody
3067
- * @returns BotCreate
3068
- * @throws ApiError
3069
- */
3070
- static aiBotV1BotsBotCreate(org, requestBody) {
3071
- return request(OpenAPI, {
3072
- method: 'POST',
3073
- url: '/api/ai-bot/v1/bots/{org}/bot/',
3074
- path: {
3075
- 'org': org
3076
- },
3077
- body: requestBody,
3078
- mediaType: 'application/json'
3079
- });
3080
- }
3081
- /**
3082
- * Create slash commands for a specific bot
3083
- * eg. /iblai-baseline
3084
- * @param org
3085
- * @returns BotCommand
3086
- * @throws ApiError
3087
- */
3088
- static aiBotV1BotsBotCommandsList(org) {
3089
- return request(OpenAPI, {
3090
- method: 'GET',
3091
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
3092
- path: {
3093
- 'org': org
3094
- }
3095
- });
3096
- }
3097
- /**
3098
- * Create slash commands for a specific bot
3099
- * eg. /iblai-baseline
3100
- * @param org
3101
- * @param requestBody
3102
- * @returns BotCommand
3103
- * @throws ApiError
3104
- */
3105
- static aiBotV1BotsBotCommandsCreate(org, requestBody) {
3106
- return request(OpenAPI, {
3107
- method: 'POST',
3108
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
3109
- path: {
3110
- 'org': org
3111
- },
3112
- body: requestBody,
3113
- mediaType: 'application/json'
3114
- });
3115
- }
3116
- /**
3117
- * Create slash commands for a specific bot
3118
- * eg. /iblai-baseline
3119
- * @param id A unique integer value identifying this bot command.
3120
- * @param org
3121
- * @returns BotCommand
3122
- * @throws ApiError
3123
- */
3124
- static aiBotV1BotsBotCommandsRetrieve(id, org) {
3125
- return request(OpenAPI, {
3126
- method: 'GET',
3127
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
3128
- path: {
3129
- 'id': id,
3130
- 'org': org
3131
- }
3132
- });
3133
- }
3134
- /**
3135
- * Create slash commands for a specific bot
3136
- * eg. /iblai-baseline
3137
- * @param id A unique integer value identifying this bot command.
3138
- * @param org
3139
- * @param requestBody
3140
- * @returns BotCommand
3141
- * @throws ApiError
3142
- */
3143
- static aiBotV1BotsBotCommandsUpdate(id, org, requestBody) {
3144
- return request(OpenAPI, {
3145
- method: 'PUT',
3146
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
3147
- path: {
3148
- 'id': id,
3149
- 'org': org
3150
- },
3151
- body: requestBody,
3152
- mediaType: 'application/json'
3153
- });
3154
- }
3155
- /**
3156
- * Create slash commands for a specific bot
3157
- * eg. /iblai-baseline
3158
- * @param id A unique integer value identifying this bot command.
3159
- * @param org
3160
- * @param requestBody
3161
- * @returns BotCommand
3162
- * @throws ApiError
3163
- */
3164
- static aiBotV1BotsBotCommandsPartialUpdate(id, org, requestBody) {
3165
- return request(OpenAPI, {
3166
- method: 'PATCH',
3167
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
3168
- path: {
3169
- 'id': id,
3170
- 'org': org
3171
- },
3172
- body: requestBody,
3173
- mediaType: 'application/json'
3174
- });
3175
- }
3176
- /**
3177
- * Create slash commands for a specific bot
3178
- * eg. /iblai-baseline
3179
- * @param id A unique integer value identifying this bot command.
3180
- * @param org
3181
- * @returns void
3182
- * @throws ApiError
3183
- */
3184
- static aiBotV1BotsBotCommandsDestroy(id, org) {
3185
- return request(OpenAPI, {
3186
- method: 'DELETE',
3187
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
3188
- path: {
3189
- 'id': id,
3190
- 'org': org
3191
- }
3192
- });
3193
- }
3194
- /**
3195
- * Create modify and update bot information for a specific tenant.
3196
- * @param id A unique integer value identifying this bot.
3197
- * @param org
3198
- * @returns Bot
3199
- * @throws ApiError
3200
- */
3201
- static aiBotV1BotsBotRetrieve(id, org) {
3202
- return request(OpenAPI, {
3203
- method: 'GET',
3204
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3205
- path: {
3206
- 'id': id,
3207
- 'org': org
3208
- }
3209
- });
3210
- }
3211
- /**
3212
- * Create modify and update bot information for a specific tenant.
3213
- * @param id A unique integer value identifying this bot.
3214
- * @param org
3215
- * @param requestBody
3216
- * @returns BotCreate
3217
- * @throws ApiError
3218
- */
3219
- static aiBotV1BotsBotUpdate(id, org, requestBody) {
3220
- return request(OpenAPI, {
3221
- method: 'PUT',
3222
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3223
- path: {
3224
- 'id': id,
3225
- 'org': org
3226
- },
3227
- body: requestBody,
3228
- mediaType: 'application/json'
3229
- });
3230
- }
3231
- /**
3232
- * Create modify and update bot information for a specific tenant.
3233
- * @param id A unique integer value identifying this bot.
3234
- * @param org
3235
- * @param requestBody
3236
- * @returns BotCreate
3237
- * @throws ApiError
3238
- */
3239
- static aiBotV1BotsBotPartialUpdate(id, org, requestBody) {
3240
- return request(OpenAPI, {
3241
- method: 'PATCH',
3242
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3243
- path: {
3244
- 'id': id,
3245
- 'org': org
3246
- },
3247
- body: requestBody,
3248
- mediaType: 'application/json'
3249
- });
3250
- }
3251
- /**
3252
- * Create modify and update bot information for a specific tenant.
3253
- * @param id A unique integer value identifying this bot.
3254
- * @param org
3255
- * @returns void
3256
- * @throws ApiError
3257
- */
3258
- static aiBotV1BotsBotDestroy(id, org) {
3259
- return request(OpenAPI, {
3260
- method: 'DELETE',
3261
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3262
- path: {
3263
- 'id': id,
3264
- 'org': org
3265
- }
3266
- });
3267
- }
3268
- /**
3269
- * Create modify and update bot information for a specific tenant.
3270
- * @param id A unique integer value identifying this bot.
3271
- * @param org
3272
- * @returns DiscordConfig
3273
- * @throws ApiError
3274
- */
3275
- static aiBotV1BotsBotConfigDiscordRetrieve(id, org) {
3276
- return request(OpenAPI, {
3277
- method: 'GET',
3278
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
3279
- path: {
3280
- 'id': id,
3281
- 'org': org
3282
- }
3283
- });
3284
- }
3285
- /**
3286
- * Create modify and update bot information for a specific tenant.
3287
- * @param id A unique integer value identifying this bot.
3288
- * @param org
3289
- * @param requestBody
3290
- * @returns DiscordConfig
3291
- * @throws ApiError
3292
- */
3293
- static aiBotV1BotsBotConfigDiscordPartialUpdate(id, org, requestBody) {
3294
- return request(OpenAPI, {
3295
- method: 'PATCH',
3296
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
3297
- path: {
3298
- 'id': id,
3299
- 'org': org
3300
- },
3301
- body: requestBody,
3302
- mediaType: 'application/json'
3303
- });
3304
- }
3305
- /**
3306
- * Create modify and update bot information for a specific tenant.
3307
- * @param id A unique integer value identifying this bot.
3308
- * @param org
3309
- * @returns SlackConfig
3310
- * @throws ApiError
3311
- */
3312
- static aiBotV1BotsBotConfigSlackRetrieve(id, org) {
3313
- return request(OpenAPI, {
3314
- method: 'GET',
3315
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
3316
- path: {
3317
- 'id': id,
3318
- 'org': org
3319
- }
3320
- });
3321
- }
3322
- /**
3323
- * Create modify and update bot information for a specific tenant.
3324
- * @param id A unique integer value identifying this bot.
3325
- * @param org
3326
- * @param requestBody
3327
- * @returns SlackConfig
3328
- * @throws ApiError
3329
- */
3330
- static aiBotV1BotsBotConfigSlackUpdateCreate(id, org, requestBody) {
3331
- return request(OpenAPI, {
3332
- method: 'POST',
3333
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
3334
- path: {
3335
- 'id': id,
3336
- 'org': org
3337
- },
3338
- body: requestBody,
3339
- mediaType: 'application/json'
3340
- });
3341
- }
3342
- /**
3343
- * Create modify and update bot information for a specific tenant.
3344
- * @param id A unique integer value identifying this bot.
3345
- * @param org
3346
- * @param requestBody
3347
- * @returns SlackConfig
3348
- * @throws ApiError
3349
- */
3350
- static aiBotV1BotsBotConfigSlackUpdateUpdate(id, org, requestBody) {
3351
- return request(OpenAPI, {
3352
- method: 'PUT',
3353
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
3354
- path: {
3355
- 'id': id,
3356
- 'org': org
3357
- },
3358
- body: requestBody,
3359
- mediaType: 'application/json'
3360
- });
3361
- }
3362
- /**
3363
- * Create modify and update bot information for a specific tenant.
3364
- * @param id A unique integer value identifying this bot.
3365
- * @param org
3366
- * @param requestBody
3367
- * @returns SlackConfig
3368
- * @throws ApiError
3369
- */
3370
- static aiBotV1BotsBotConfigSlackUpdatePartialUpdate(id, org, requestBody) {
3371
- return request(OpenAPI, {
3372
- method: 'PATCH',
3373
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
3374
- path: {
3375
- 'id': id,
3376
- 'org': org
3377
- },
3378
- body: requestBody,
3379
- mediaType: 'application/json'
3380
- });
3381
- }
3382
- /**
3383
- * Create modify and update bot information for a specific tenant.
3384
- * @param id A unique integer value identifying this bot.
3385
- * @param org
3386
- * @returns TeamsConfig
3387
- * @throws ApiError
3388
- */
3389
- static aiBotV1BotsBotConfigTeamsRetrieve(id, org) {
3390
- return request(OpenAPI, {
3391
- method: 'GET',
3392
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
3393
- path: {
3394
- 'id': id,
3395
- 'org': org
3396
- }
3397
- });
3398
- }
3399
- /**
3400
- * Create modify and update bot information for a specific tenant.
3401
- * @param id A unique integer value identifying this bot.
3402
- * @param org
3403
- * @param requestBody
3404
- * @returns TeamsConfig
3405
- * @throws ApiError
3406
- */
3407
- static aiBotV1BotsBotConfigTeamsUpdateCreate(id, org, requestBody) {
3408
- return request(OpenAPI, {
3409
- method: 'POST',
3410
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
3411
- path: {
3412
- 'id': id,
3413
- 'org': org
3414
- },
3415
- body: requestBody,
3416
- mediaType: 'application/json'
3417
- });
3418
- }
3419
- /**
3420
- * Create modify and update bot information for a specific tenant.
3421
- * @param id A unique integer value identifying this bot.
3422
- * @param org
3423
- * @param requestBody
3424
- * @returns TeamsConfig
3425
- * @throws ApiError
3426
- */
3427
- static aiBotV1BotsBotConfigTeamsUpdateUpdate(id, org, requestBody) {
3428
- return request(OpenAPI, {
3429
- method: 'PUT',
3430
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
3431
- path: {
3432
- 'id': id,
3433
- 'org': org
3434
- },
3435
- body: requestBody,
3436
- mediaType: 'application/json'
3437
- });
3438
- }
3439
- /**
3440
- * Create modify and update bot information for a specific tenant.
3441
- * @param id A unique integer value identifying this bot.
3442
- * @param org
3443
- * @param requestBody
3444
- * @returns TeamsConfig
3445
- * @throws ApiError
3446
- */
3447
- static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate(id, org, requestBody) {
3448
- return request(OpenAPI, {
3449
- method: 'PATCH',
3450
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
3451
- path: {
3452
- 'id': id,
3453
- 'org': org
3454
- },
3455
- body: requestBody,
3456
- mediaType: 'application/json'
3457
- });
3458
- }
3459
- /**
3460
- * Create modify and update bot information for a specific tenant.
3461
- * @param id A unique integer value identifying this bot.
3462
- * @param org
3463
- * @returns WebexConfig
3464
- * @throws ApiError
3465
- */
3466
- static aiBotV1BotsBotConfigWebexRetrieve(id, org) {
3467
- return request(OpenAPI, {
3468
- method: 'GET',
3469
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
3470
- path: {
3471
- 'id': id,
3472
- 'org': org
3473
- }
3474
- });
3475
- }
3476
- /**
3477
- * Create modify and update bot information for a specific tenant.
3478
- * @param id A unique integer value identifying this bot.
3479
- * @param org
3480
- * @param requestBody
3481
- * @returns WebexConfig
3482
- * @throws ApiError
3483
- */
3484
- static aiBotV1BotsBotConfigWebexPartialUpdate(id, org, requestBody) {
3485
- return request(OpenAPI, {
3486
- method: 'PATCH',
3487
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
3488
- path: {
3489
- 'id': id,
3490
- 'org': org
3491
- },
3492
- body: requestBody,
3493
- mediaType: 'application/json'
3494
- });
3495
- }
3496
- /**
3497
- * Create modify and update bot information for a specific tenant.
3498
- * @param id A unique integer value identifying this bot.
3499
- * @param org
3500
- * @returns WhatsappConfig
3501
- * @throws ApiError
3502
- */
3503
- static aiBotV1BotsBotConfigWhatsappRetrieve(id, org) {
3504
- return request(OpenAPI, {
3505
- method: 'GET',
3506
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
3507
- path: {
3508
- 'id': id,
3509
- 'org': org
3510
- }
3511
- });
3512
- }
3513
- /**
3514
- * Create modify and update bot information for a specific tenant.
3515
- * @param id A unique integer value identifying this bot.
3516
- * @param org
3517
- * @param requestBody
3518
- * @returns WhatsappConfig
3519
- * @throws ApiError
3520
- */
3521
- static aiBotV1BotsBotWhatsappConfigUpdate(id, org, requestBody) {
3522
- return request(OpenAPI, {
3523
- method: 'PUT',
3524
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
3525
- path: {
3526
- 'id': id,
3527
- 'org': org
3528
- },
3529
- body: requestBody,
3530
- mediaType: 'application/json'
3531
- });
3532
- }
3533
- /**
3534
- * Create modify and update bot information for a specific tenant.
3535
- * @param id A unique integer value identifying this bot.
3536
- * @param org
3537
- * @param requestBody
3538
- * @returns WhatsappConfig
3539
- * @throws ApiError
3540
- */
3541
- static aiBotV1BotsBotWhatsappConfigPartialUpdate(id, org, requestBody) {
3542
- return request(OpenAPI, {
3543
- method: 'PATCH',
3544
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
3545
- path: {
3546
- 'id': id,
3547
- 'org': org
3548
- },
3549
- body: requestBody,
3550
- mediaType: 'application/json'
3551
- });
3552
- }
3553
- /**
3554
- * Setup discord user id linkage with discord bots
3555
- * this will be used to authenticate the user when interracting with discord bots.
3556
- * the user id can be copied from the discord app after tapping on the user profile.
3557
- * @param org
3558
- * @returns DiscordUserConfig
3559
- * @throws ApiError
3560
- */
3561
- static aiBotV1BotsDiscordUserConfigList(org) {
3562
- return request(OpenAPI, {
3563
- method: 'GET',
3564
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
3565
- path: {
3566
- 'org': org
3567
- }
3568
- });
3569
- }
3570
- /**
3571
- * Setup discord user id linkage with discord bots
3572
- * this will be used to authenticate the user when interracting with discord bots.
3573
- * the user id can be copied from the discord app after tapping on the user profile.
3574
- * @param org
3575
- * @param requestBody
3576
- * @returns DiscordUserConfig
3577
- * @throws ApiError
3578
- */
3579
- static aiBotV1BotsDiscordUserConfigCreate(org, requestBody) {
3580
- return request(OpenAPI, {
3581
- method: 'POST',
3582
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
3583
- path: {
3584
- 'org': org
3585
- },
3586
- body: requestBody,
3587
- mediaType: 'application/json'
3588
- });
3589
- }
3590
- /**
3591
- * Setup discord user id linkage with discord bots
3592
- * this will be used to authenticate the user when interracting with discord bots.
3593
- * the user id can be copied from the discord app after tapping on the user profile.
3594
- * @param id A unique integer value identifying this discord user config.
3595
- * @param org
3596
- * @returns DiscordUserConfig
3597
- * @throws ApiError
3598
- */
3599
- static aiBotV1BotsDiscordUserConfigRetrieve(id, org) {
3600
- return request(OpenAPI, {
3601
- method: 'GET',
3602
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3603
- path: {
3604
- 'id': id,
3605
- 'org': org
3606
- }
3607
- });
3608
- }
3609
- /**
3610
- * Setup discord user id linkage with discord bots
3611
- * this will be used to authenticate the user when interracting with discord bots.
3612
- * the user id can be copied from the discord app after tapping on the user profile.
3613
- * @param id A unique integer value identifying this discord user config.
3614
- * @param org
3615
- * @param requestBody
3616
- * @returns DiscordUserConfig
3617
- * @throws ApiError
3618
- */
3619
- static aiBotV1BotsDiscordUserConfigUpdate(id, org, requestBody) {
3620
- return request(OpenAPI, {
3621
- method: 'PUT',
3622
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3623
- path: {
3624
- 'id': id,
3625
- 'org': org
3626
- },
3627
- body: requestBody,
3628
- mediaType: 'application/json'
3629
- });
3630
- }
3631
- /**
3632
- * Setup discord user id linkage with discord bots
3633
- * this will be used to authenticate the user when interracting with discord bots.
3634
- * the user id can be copied from the discord app after tapping on the user profile.
3635
- * @param id A unique integer value identifying this discord user config.
3636
- * @param org
3637
- * @param requestBody
3638
- * @returns DiscordUserConfig
3639
- * @throws ApiError
3640
- */
3641
- static aiBotV1BotsDiscordUserConfigPartialUpdate(id, org, requestBody) {
3642
- return request(OpenAPI, {
3643
- method: 'PATCH',
3644
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3645
- path: {
3646
- 'id': id,
3647
- 'org': org
3648
- },
3649
- body: requestBody,
3650
- mediaType: 'application/json'
3651
- });
3652
- }
3653
- /**
3654
- * Setup discord user id linkage with discord bots
3655
- * this will be used to authenticate the user when interracting with discord bots.
3656
- * the user id can be copied from the discord app after tapping on the user profile.
3657
- * @param id A unique integer value identifying this discord user config.
3658
- * @param org
3659
- * @returns void
3660
- * @throws ApiError
3661
- */
3662
- static aiBotV1BotsDiscordUserConfigDestroy(id, org) {
3663
- return request(OpenAPI, {
3664
- method: 'DELETE',
3665
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3666
- path: {
3667
- 'id': id,
3668
- 'org': org
3669
- }
3670
- });
3671
- }
3672
- /**
3673
- * Setup slack username and domain linkage with slack bots
3674
- * this will be used to authenticate the user when interracting with slack bots.
3675
- * @param org
3676
- * @returns SlackUserConfig
3677
- * @throws ApiError
3678
- */
3679
- static aiBotV1BotsSlackUserConfigList(org) {
3680
- return request(OpenAPI, {
3681
- method: 'GET',
3682
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
3683
- path: {
3684
- 'org': org
3685
- }
3686
- });
3687
- }
3688
- /**
3689
- * Setup slack username and domain linkage with slack bots
3690
- * this will be used to authenticate the user when interracting with slack bots.
3691
- * @param org
3692
- * @param requestBody
3693
- * @returns SlackUserConfig
3694
- * @throws ApiError
3695
- */
3696
- static aiBotV1BotsSlackUserConfigCreate(org, requestBody) {
3697
- return request(OpenAPI, {
3698
- method: 'POST',
3699
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
3700
- path: {
3701
- 'org': org
3702
- },
3703
- body: requestBody,
3704
- mediaType: 'application/json'
3705
- });
3706
- }
3707
- /**
3708
- * Setup slack username and domain linkage with slack bots
3709
- * this will be used to authenticate the user when interracting with slack bots.
3710
- * @param id A unique integer value identifying this slack user config.
3711
- * @param org
3712
- * @returns SlackUserConfig
3713
- * @throws ApiError
3714
- */
3715
- static aiBotV1BotsSlackUserConfigRetrieve(id, org) {
3716
- return request(OpenAPI, {
3717
- method: 'GET',
3718
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3719
- path: {
3720
- 'id': id,
3721
- 'org': org
3722
- }
3723
- });
3724
- }
3725
- /**
3726
- * Setup slack username and domain linkage with slack bots
3727
- * this will be used to authenticate the user when interracting with slack bots.
3728
- * @param id A unique integer value identifying this slack user config.
3729
- * @param org
3730
- * @param requestBody
3731
- * @returns SlackUserConfig
3732
- * @throws ApiError
3733
- */
3734
- static aiBotV1BotsSlackUserConfigUpdate(id, org, requestBody) {
3735
- return request(OpenAPI, {
3736
- method: 'PUT',
3737
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3738
- path: {
3739
- 'id': id,
3740
- 'org': org
3741
- },
3742
- body: requestBody,
3743
- mediaType: 'application/json'
3744
- });
3745
- }
3746
- /**
3747
- * Setup slack username and domain linkage with slack bots
3748
- * this will be used to authenticate the user when interracting with slack bots.
3749
- * @param id A unique integer value identifying this slack user config.
3750
- * @param org
3751
- * @param requestBody
3752
- * @returns SlackUserConfig
3753
- * @throws ApiError
3754
- */
3755
- static aiBotV1BotsSlackUserConfigPartialUpdate(id, org, requestBody) {
3756
- return request(OpenAPI, {
3757
- method: 'PATCH',
3758
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3759
- path: {
3760
- 'id': id,
3761
- 'org': org
3762
- },
3763
- body: requestBody,
3764
- mediaType: 'application/json'
3765
- });
3766
- }
3767
- /**
3768
- * Setup slack username and domain linkage with slack bots
3769
- * this will be used to authenticate the user when interracting with slack bots.
3770
- * @param id A unique integer value identifying this slack user config.
3771
- * @param org
3772
- * @returns void
3773
- * @throws ApiError
3774
- */
3775
- static aiBotV1BotsSlackUserConfigDestroy(id, org) {
3776
- return request(OpenAPI, {
3777
- method: 'DELETE',
3778
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3779
- path: {
3780
- 'id': id,
3781
- 'org': org
3782
- }
3783
- });
3784
- }
3785
- /**
3786
- * Setup phone number linkage with whatsapp bots
3787
- * This phone number will be used to authenticate and allow access to whatsapp bots.
3788
- * @param org
3789
- * @returns WhatsappUserConfig
3790
- * @throws ApiError
3791
- */
3792
- static aiBotV1BotsWhatsappUserConfigList(org) {
3793
- return request(OpenAPI, {
3794
- method: 'GET',
3795
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
3796
- path: {
3797
- 'org': org
3798
- }
3799
- });
3800
- }
3801
- /**
3802
- * Setup phone number linkage with whatsapp bots
3803
- * This phone number will be used to authenticate and allow access to whatsapp bots.
3804
- * @param org
3805
- * @param requestBody
3806
- * @returns WhatsappUserConfig
3807
- * @throws ApiError
3808
- */
3809
- static aiBotV1BotsWhatsappUserConfigCreate(org, requestBody) {
3810
- return request(OpenAPI, {
3811
- method: 'POST',
3812
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
3813
- path: {
3814
- 'org': org
3815
- },
3816
- body: requestBody,
3817
- mediaType: 'application/json'
3818
- });
3819
- }
3820
- /**
3821
- * Setup phone number linkage with whatsapp bots
3822
- * This phone number will be used to authenticate and allow access to whatsapp bots.
3823
- * @param id A unique integer value identifying this whatsapp user config.
3824
- * @param org
3825
- * @returns WhatsappUserConfig
3826
- * @throws ApiError
3827
- */
3828
- static aiBotV1BotsWhatsappUserConfigRetrieve(id, org) {
3829
- return request(OpenAPI, {
3830
- method: 'GET',
3831
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3832
- path: {
3833
- 'id': id,
3834
- 'org': org
3835
- }
3836
- });
3837
- }
3838
- /**
3839
- * Setup phone number linkage with whatsapp bots
3840
- * This phone number will be used to authenticate and allow access to whatsapp bots.
3841
- * @param id A unique integer value identifying this whatsapp user config.
3842
- * @param org
3843
- * @param requestBody
3844
- * @returns WhatsappUserConfig
3845
- * @throws ApiError
3846
- */
3847
- static aiBotV1BotsWhatsappUserConfigUpdate(id, org, requestBody) {
3848
- return request(OpenAPI, {
3849
- method: 'PUT',
3850
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3851
- path: {
3852
- 'id': id,
3853
- 'org': org
3854
- },
3855
- body: requestBody,
3856
- mediaType: 'application/json'
3857
- });
3858
- }
3859
- /**
3860
- * Setup phone number linkage with whatsapp bots
3861
- * This phone number will be used to authenticate and allow access to whatsapp bots.
3862
- * @param id A unique integer value identifying this whatsapp user config.
3863
- * @param org
3864
- * @param requestBody
3865
- * @returns WhatsappUserConfig
3866
- * @throws ApiError
3867
- */
3868
- static aiBotV1BotsWhatsappUserConfigPartialUpdate(id, org, requestBody) {
3869
- return request(OpenAPI, {
3870
- method: 'PATCH',
3871
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3872
- path: {
3873
- 'id': id,
3874
- 'org': org
3875
- },
3876
- body: requestBody,
3877
- mediaType: 'application/json'
3878
- });
3879
- }
3880
- /**
3881
- * Setup phone number linkage with whatsapp bots
3882
- * This phone number will be used to authenticate and allow access to whatsapp bots.
3883
- * @param id A unique integer value identifying this whatsapp user config.
3884
- * @param org
3885
- * @returns void
3886
- * @throws ApiError
3887
- */
3888
- static aiBotV1BotsWhatsappUserConfigDestroy(id, org) {
3889
- return request(OpenAPI, {
3890
- method: 'DELETE',
3891
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3892
- path: {
3893
- 'id': id,
3894
- 'org': org
3895
- }
3896
- });
3897
- }
3898
- /**
3899
- * Webhook endpoint to receive and process discord messages.
3900
- * @param name
3901
- * @param org
3902
- * @param requestBody
3903
- * @returns DiscordWebhook
3904
- * @throws ApiError
3905
- */
3906
- static aiBotV1BotsWebhooksDiscordCreate(name, org, requestBody) {
3907
- return request(OpenAPI, {
3908
- method: 'POST',
3909
- url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
3910
- path: {
3911
- 'name': name,
3912
- 'org': org
3913
- },
3914
- body: requestBody,
3915
- mediaType: 'application/json'
3916
- });
3917
- }
3918
- /**
3919
- * @param name
3920
- * @param org
3921
- * @param requestBody
3922
- * @returns SlackWebhook
3923
- * @throws ApiError
3924
- */
3925
- static aiBotV1BotsWebhooksSlackCreate(name, org, requestBody) {
3926
- return request(OpenAPI, {
3927
- method: 'POST',
3928
- url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
3929
- path: {
3930
- 'name': name,
3931
- 'org': org
3932
- },
3933
- body: requestBody,
3934
- mediaType: 'application/json'
3935
- });
3936
- }
3937
- /**
3938
- * @param name
3939
- * @param org
3940
- * @param requestBody
3941
- * @returns TeamsWebhook
3942
- * @throws ApiError
3943
- */
3944
- static aiBotV1BotsWebhooksTeamsCreate(name, org, requestBody) {
3945
- return request(OpenAPI, {
3946
- method: 'POST',
3947
- url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
3948
- path: {
3949
- 'name': name,
3950
- 'org': org
3951
- },
3952
- body: requestBody,
3953
- mediaType: 'application/json'
3954
- });
3955
- }
3956
- /**
3957
- * Webhook endpoint to receive and process discord messages.
3958
- * @param name
3959
- * @param org
3960
- * @param requestBody
3961
- * @returns WebexWebhook
3962
- * @throws ApiError
3963
- */
3964
- static aiBotV1BotsWebhooksWebexCreate(name, org, requestBody) {
3965
- return request(OpenAPI, {
3966
- method: 'POST',
3967
- url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
3968
- path: {
3969
- 'name': name,
3970
- 'org': org
3971
- },
3972
- body: requestBody,
3973
- mediaType: 'application/json'
3974
- });
3975
- }
3976
- /**
3977
- * Respond to whatsapp's webhook challenge.
3978
- * Parameters Required include the tenant key (org) and the name of the bot: (name)
3979
- * @param name
3980
- * @param org
3981
- * @returns WhatAppWebHook
3982
- * @throws ApiError
3983
- */
3984
- static aiBotV1BotsWebhooksWhatsappRetrieve(name, org) {
3985
- return request(OpenAPI, {
3986
- method: 'GET',
3987
- url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
3988
- path: {
3989
- 'name': name,
3990
- 'org': org
3991
- }
3992
- });
3993
- }
3994
- /**
3995
- * Accept and process webhook events from whatsapp.
3996
- * @param name
3997
- * @param org
3998
- * @param requestBody
3999
- * @returns WhatAppWebHook
4000
- * @throws ApiError
4001
- */
4002
- static aiBotV1BotsWebhooksWhatsappCreate(name, org, requestBody) {
4003
- return request(OpenAPI, {
4004
- method: 'POST',
4005
- url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
4006
- path: {
4007
- 'name': name,
4008
- 'org': org
4009
- },
4010
- body: requestBody,
4011
- mediaType: 'application/json'
4012
- });
4013
- }
4014
- }
4015
-
4016
- class AiFinetuningService {
4017
- /**
4018
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4019
- * @param org
4020
- * @param username
4021
- * @param dateCreated
4022
- * @param numDataPoints
4023
- * @param ordering Which field to use when ordering the results.
4024
- * @param page A page number within the paginated result set.
4025
- * @param pageSize Number of results to return per page.
4026
- * @param retryAttempts
4027
- * @param search A search term.
4028
- * @param status * `pending` - Pending
4029
- * * `processing` - Processing
4030
- * * `completed` - Completed
4031
- * * `failed` - Failed
4032
- * @returns PaginatedDataSetList
4033
- * @throws ApiError
4034
- */
4035
- static aiFinetuningV1OrgUserDatasetsList(org, username, dateCreated, numDataPoints, ordering, page, pageSize, retryAttempts, search, status) {
4036
- return request(OpenAPI, {
4037
- method: 'GET',
4038
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
4039
- path: {
4040
- 'org': org,
4041
- 'username': username
4042
- },
4043
- query: {
4044
- 'date_created': dateCreated,
4045
- 'num_data_points': numDataPoints,
4046
- 'ordering': ordering,
4047
- 'page': page,
4048
- 'page_size': pageSize,
4049
- 'retry_attempts': retryAttempts,
4050
- 'search': search,
4051
- 'status': status
4052
- }
4053
- });
4054
- }
4055
- /**
4056
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4057
- * @param org
4058
- * @param username
4059
- * @param requestBody
4060
- * @returns DataSetCreate
4061
- * @throws ApiError
4062
- */
4063
- static aiFinetuningV1OrgUserDatasetsCreate(org, username, requestBody) {
4064
- return request(OpenAPI, {
4065
- method: 'POST',
4066
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
4067
- path: {
4068
- 'org': org,
4069
- 'username': username
4070
- },
4071
- body: requestBody,
4072
- mediaType: 'application/json'
4073
- });
4074
- }
4075
- /**
4076
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4077
- * @param id A UUID string identifying this data set.
4078
- * @param org
4079
- * @param username
4080
- * @returns DataSet
4081
- * @throws ApiError
4082
- */
4083
- static aiFinetuningV1OrgUserDatasetsRetrieve(id, org, username) {
4084
- return request(OpenAPI, {
4085
- method: 'GET',
4086
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
4087
- path: {
4088
- 'id': id,
4089
- 'org': org,
4090
- 'username': username
4091
- }
4092
- });
4093
- }
4094
- /**
4095
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4096
- * @param id A UUID string identifying this data set.
4097
- * @param org
4098
- * @param username
4099
- * @param requestBody
4100
- * @returns DataSet
4101
- * @throws ApiError
4102
- */
4103
- static aiFinetuningV1OrgUserDatasetsUpdate(id, org, username, requestBody) {
4104
- return request(OpenAPI, {
4105
- method: 'PUT',
4106
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
4107
- path: {
4108
- 'id': id,
4109
- 'org': org,
4110
- 'username': username
4111
- },
4112
- body: requestBody,
4113
- mediaType: 'application/json'
4114
- });
4115
- }
4116
- /**
4117
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4118
- * @param id A UUID string identifying this data set.
4119
- * @param org
4120
- * @param username
4121
- * @param requestBody
4122
- * @returns DataSet
4123
- * @throws ApiError
4124
- */
4125
- static aiFinetuningV1OrgUserDatasetsPartialUpdate(id, org, username, requestBody) {
4126
- return request(OpenAPI, {
4127
- method: 'PATCH',
4128
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
4129
- path: {
4130
- 'id': id,
4131
- 'org': org,
4132
- 'username': username
4133
- },
4134
- body: requestBody,
4135
- mediaType: 'application/json'
4136
- });
4137
- }
4138
- /**
4139
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4140
- * @param id A UUID string identifying this data set.
4141
- * @param org
4142
- * @param username
4143
- * @returns void
4144
- * @throws ApiError
4145
- */
4146
- static aiFinetuningV1OrgUserDatasetsDestroy(id, org, username) {
4147
- return request(OpenAPI, {
4148
- method: 'DELETE',
4149
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
4150
- path: {
4151
- 'id': id,
4152
- 'org': org,
4153
- 'username': username
4154
- }
4155
- });
4156
- }
4157
- /**
4158
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4159
- * @param org
4160
- * @param username
4161
- * @param baseModelName
4162
- * @param dataset
4163
- * @param dateCreated
4164
- * @param fineTunedModel
4165
- * @param lastModified
4166
- * @param ordering Which field to use when ordering the results.
4167
- * @param page A page number within the paginated result set.
4168
- * @param pageSize Number of results to return per page.
4169
- * @param preprocessDataset
4170
- * @param provider * `openai` - Openai
4171
- * @param search A search term.
4172
- * @param status * `pending` - Pending
4173
- * * `processing` - Processing
4174
- * * `completed` - Completed
4175
- * * `cancelled` - Cancelled
4176
- * * `failed` - Failed
4177
- * @returns PaginatedTrainingList
4178
- * @throws ApiError
4179
- */
4180
- static aiFinetuningV1OrgUserTrainingsList(org, username, baseModelName, dataset, dateCreated, fineTunedModel, lastModified, ordering, page, pageSize, preprocessDataset, provider, search, status) {
4181
- return request(OpenAPI, {
4182
- method: 'GET',
4183
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
4184
- path: {
4185
- 'org': org,
4186
- 'username': username
4187
- },
4188
- query: {
4189
- 'base_model_name': baseModelName,
4190
- 'dataset': dataset,
4191
- 'date_created': dateCreated,
4192
- 'fine_tuned_model': fineTunedModel,
4193
- 'last_modified': lastModified,
4194
- 'ordering': ordering,
4195
- 'page': page,
4196
- 'page_size': pageSize,
4197
- 'preprocess_dataset': preprocessDataset,
4198
- 'provider': provider,
4199
- 'search': search,
4200
- 'status': status
4201
- }
4202
- });
4203
- }
4204
- /**
4205
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4206
- * @param org
4207
- * @param username
4208
- * @param requestBody
4209
- * @returns TrainingCreate
4210
- * @throws ApiError
4211
- */
4212
- static aiFinetuningV1OrgUserTrainingsCreate(org, username, requestBody) {
4213
- return request(OpenAPI, {
4214
- method: 'POST',
4215
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
4216
- path: {
4217
- 'org': org,
4218
- 'username': username
4219
- },
4220
- body: requestBody,
4221
- mediaType: 'application/json'
4222
- });
4223
- }
4224
- /**
4225
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4226
- * @param id A UUID string identifying this training.
4227
- * @param org
4228
- * @param username
4229
- * @returns Training
4230
- * @throws ApiError
4231
- */
4232
- static aiFinetuningV1OrgUserTrainingsRetrieve(id, org, username) {
4233
- return request(OpenAPI, {
4234
- method: 'GET',
4235
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
4236
- path: {
4237
- 'id': id,
4238
- 'org': org,
4239
- 'username': username
4240
- }
4241
- });
4242
- }
4243
- /**
4244
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4245
- * @param id A UUID string identifying this training.
4246
- * @param org
4247
- * @param username
4248
- * @param requestBody
4249
- * @returns TrainingCreate
4250
- * @throws ApiError
4251
- */
4252
- static aiFinetuningV1OrgUserTrainingsUpdate(id, org, username, requestBody) {
4253
- return request(OpenAPI, {
4254
- method: 'PUT',
4255
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
4256
- path: {
4257
- 'id': id,
4258
- 'org': org,
4259
- 'username': username
2857
+ 'start_date': startDate
4260
2858
  },
4261
- body: requestBody,
4262
- mediaType: 'application/json'
2859
+ errors: {
2860
+ 400: `Invalid parameters`,
2861
+ 404: `Organization not found`
2862
+ }
4263
2863
  });
4264
2864
  }
4265
2865
  /**
4266
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4267
- * @param id A UUID string identifying this training.
2866
+ * Retrieve comprehensive user metrics.
2867
+ *
2868
+ * This endpoint returns data on various user metrics with month-over-month
2869
+ * change calculations:
2870
+ * - Registered users: Total users registered on the platform
2871
+ * - New users: Users who joined in the current month
2872
+ * - Unique users: Distinct users who have had sessions
2873
+ * - Veteran users: Users who have been active for at least 6 months
2874
+ *
2875
+ * Results can be filtered by mentor.
2876
+ *
2877
+ * Args:
2878
+ * request: The HTTP request containing filter query parameters.
2879
+ * org: Organization key identifier.
2880
+ *
2881
+ * Returns:
2882
+ * Response: Comprehensive user metrics with month-over-month changes.
2883
+ *
2884
+ * Raises:
2885
+ * NotFound: If the specified organization does not exist.
2886
+ *
2887
+ * Query Parameters:
2888
+ * mentor_id (str): Filter metrics by mentor unique ID.
4268
2889
  * @param org
4269
- * @param username
4270
- * @param requestBody
4271
- * @returns TrainingCreate
2890
+ * @param userId
2891
+ * @param groupBy
2892
+ * @param mentorId Filter metrics by mentor unique ID
2893
+ * @returns UserMetricsResponse
4272
2894
  * @throws ApiError
4273
2895
  */
4274
- static aiFinetuningV1OrgUserTrainingsPartialUpdate(id, org, username, requestBody) {
2896
+ static aiAnalyticsOrgsUsersUserMetricsRetrieve(org, userId, groupBy = 'day', mentorId) {
4275
2897
  return request(OpenAPI, {
4276
- method: 'PATCH',
4277
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
2898
+ method: 'GET',
2899
+ url: '/api/ai-analytics/orgs/{org}/users/{user_id}/user-metrics/',
4278
2900
  path: {
4279
- 'id': id,
4280
2901
  'org': org,
4281
- 'username': username
2902
+ 'user_id': userId
4282
2903
  },
4283
- body: requestBody,
4284
- mediaType: 'application/json'
2904
+ query: {
2905
+ 'group_by': groupBy,
2906
+ 'mentor_id': mentorId
2907
+ },
2908
+ errors: {
2909
+ 404: `Organization not found`
2910
+ }
4285
2911
  });
4286
2912
  }
4287
2913
  /**
4288
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4289
- * @param id A UUID string identifying this training.
2914
+ * Retrieve user distribution data for pie charts.
2915
+ *
2916
+ * This endpoint returns data on the distribution of new versus returning users
2917
+ * within a specified date range, including both counts and percentages,
2918
+ * suitable for pie chart visualization.
2919
+ *
2920
+ * Args:
2921
+ * request: The HTTP request containing filter query parameters.
2922
+ * org: Organization key identifier.
2923
+ *
2924
+ * Returns:
2925
+ * Response: Distribution of new versus returning users with counts and percentages.
2926
+ *
2927
+ * Raises:
2928
+ * NotFound: If the specified organization does not exist.
2929
+ * BadRequest: If the provided parameters are invalid.
2930
+ *
2931
+ * Query Parameters:
2932
+ * start_date (str): Start date for filtering (YYYY-MM-DD) - required.
2933
+ * end_date (str): End date for filtering (YYYY-MM-DD) - required.
2934
+ * mentor_id (str): Filter by mentor unique ID.
2935
+ * @param endDate End date for filtering (YYYY-MM-DD)
4290
2936
  * @param org
4291
- * @param username
4292
- * @returns void
2937
+ * @param startDate Start date for filtering (YYYY-MM-DD)
2938
+ * @param userId
2939
+ * @param mentorId Filter by mentor unique ID
2940
+ * @returns PieChartData
4293
2941
  * @throws ApiError
4294
2942
  */
4295
- static aiFinetuningV1OrgUserTrainingsDestroy(id, org, username) {
2943
+ static aiAnalyticsOrgsUsersUserMetricsPieChartRetrieve(endDate, org, startDate, userId, mentorId) {
4296
2944
  return request(OpenAPI, {
4297
- method: 'DELETE',
4298
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
2945
+ method: 'GET',
2946
+ url: '/api/ai-analytics/orgs/{org}/users/{user_id}/user-metrics-pie-chart/',
4299
2947
  path: {
4300
- 'id': id,
4301
2948
  'org': org,
4302
- 'username': username
2949
+ 'user_id': userId
2950
+ },
2951
+ query: {
2952
+ 'end_date': endDate,
2953
+ 'mentor_id': mentorId,
2954
+ 'start_date': startDate
2955
+ },
2956
+ errors: {
2957
+ 400: `Invalid parameters`,
2958
+ 404: `Organization not found`
4303
2959
  }
4304
2960
  });
4305
2961
  }
4306
2962
  /**
4307
- * Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
4308
- * Filtering and pagination is allowed.
2963
+ * Retrieve user sentiment distribution.
2964
+ *
2965
+ * This endpoint returns data on the distribution of user sentiments (positive,
2966
+ * negative, neutral) within a specified date range, expressed as percentages.
2967
+ *
2968
+ * Args:
2969
+ * request: The HTTP request containing filter query parameters.
2970
+ * org: Organization key identifier.
4309
2971
  *
4310
- * NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
4311
- * training list endpoint.
4312
2972
  * Returns:
4313
- * Response: A paginated response containing the serialized fine-tuned models.
2973
+ * Response: Sentiment distribution percentages and total sentiment count.
2974
+ *
2975
+ * Raises:
2976
+ * NotFound: If the specified organization does not exist.
2977
+ * BadRequest: If the provided parameters are invalid.
2978
+ *
2979
+ * Query Parameters:
2980
+ * start_date (str): Start date for filtering (YYYY-MM-DD) - required.
2981
+ * end_date (str): End date for filtering (YYYY-MM-DD) - required.
2982
+ * @param endDate End date for filtering (YYYY-MM-DD)
4314
2983
  * @param org
4315
- * @param username
4316
- * @returns Training
2984
+ * @param startDate Start date for filtering (YYYY-MM-DD)
2985
+ * @param userId
2986
+ * @param groupBy
2987
+ * @returns SentimentSummary
4317
2988
  * @throws ApiError
4318
2989
  */
4319
- static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve(org, username) {
2990
+ static aiAnalyticsOrgsUsersUserSentimentRetrieve(endDate, org, startDate, userId, groupBy = 'day') {
4320
2991
  return request(OpenAPI, {
4321
2992
  method: 'GET',
4322
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
2993
+ url: '/api/ai-analytics/orgs/{org}/users/{user_id}/user-sentiment/',
4323
2994
  path: {
4324
2995
  'org': org,
4325
- 'username': username
2996
+ 'user_id': userId
2997
+ },
2998
+ query: {
2999
+ 'end_date': endDate,
3000
+ 'group_by': groupBy,
3001
+ 'start_date': startDate
3002
+ },
3003
+ errors: {
3004
+ 400: `Invalid parameters`,
3005
+ 404: `Organization not found`
4326
3006
  }
4327
3007
  });
4328
3008
  }
@@ -8272,6 +6952,163 @@ class AiMentorService {
8272
6952
  }
8273
6953
  });
8274
6954
  }
6955
+ /**
6956
+ * List all MCP servers.
6957
+ *
6958
+ * Returns a paginated list of MCP servers that can be filtered by platform
6959
+ * and searched by name or URL.
6960
+ * @param org
6961
+ * @param userId
6962
+ * @param page A page number within the paginated result set.
6963
+ * @param pageSize Number of results to return per page.
6964
+ * @param platform
6965
+ * @param search A search term.
6966
+ * @returns PaginatedMCPServerList
6967
+ * @throws ApiError
6968
+ */
6969
+ static aiMentorOrgsUsersMcpServersList(org, userId, page, pageSize, platform, search) {
6970
+ return request(OpenAPI, {
6971
+ method: 'GET',
6972
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-servers/',
6973
+ path: {
6974
+ 'org': org,
6975
+ 'user_id': userId
6976
+ },
6977
+ query: {
6978
+ 'page': page,
6979
+ 'page_size': pageSize,
6980
+ 'platform': platform,
6981
+ 'search': search
6982
+ }
6983
+ });
6984
+ }
6985
+ /**
6986
+ * ViewSet for MCP Servers.
6987
+ *
6988
+ * Allows platform admins to list, create, retrieve, update, and delete MCP servers.
6989
+ *
6990
+ * Permissions:
6991
+ * - Accessible to tenant admins.
6992
+ * @param org
6993
+ * @param userId
6994
+ * @param requestBody
6995
+ * @returns MCPServer
6996
+ * @throws ApiError
6997
+ */
6998
+ static aiMentorOrgsUsersMcpServersCreate(org, userId, requestBody) {
6999
+ return request(OpenAPI, {
7000
+ method: 'POST',
7001
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-servers/',
7002
+ path: {
7003
+ 'org': org,
7004
+ 'user_id': userId
7005
+ },
7006
+ body: requestBody,
7007
+ mediaType: 'application/json'
7008
+ });
7009
+ }
7010
+ /**
7011
+ * ViewSet for MCP Servers.
7012
+ *
7013
+ * Allows platform admins to list, create, retrieve, update, and delete MCP servers.
7014
+ *
7015
+ * Permissions:
7016
+ * - Accessible to tenant admins.
7017
+ * @param id A unique integer value identifying this mcp server.
7018
+ * @param org
7019
+ * @param userId
7020
+ * @returns MCPServer
7021
+ * @throws ApiError
7022
+ */
7023
+ static aiMentorOrgsUsersMcpServersRetrieve(id, org, userId) {
7024
+ return request(OpenAPI, {
7025
+ method: 'GET',
7026
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-servers/{id}/',
7027
+ path: {
7028
+ 'id': id,
7029
+ 'org': org,
7030
+ 'user_id': userId
7031
+ }
7032
+ });
7033
+ }
7034
+ /**
7035
+ * ViewSet for MCP Servers.
7036
+ *
7037
+ * Allows platform admins to list, create, retrieve, update, and delete MCP servers.
7038
+ *
7039
+ * Permissions:
7040
+ * - Accessible to tenant admins.
7041
+ * @param id A unique integer value identifying this mcp server.
7042
+ * @param org
7043
+ * @param userId
7044
+ * @param requestBody
7045
+ * @returns MCPServer
7046
+ * @throws ApiError
7047
+ */
7048
+ static aiMentorOrgsUsersMcpServersUpdate(id, org, userId, requestBody) {
7049
+ return request(OpenAPI, {
7050
+ method: 'PUT',
7051
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-servers/{id}/',
7052
+ path: {
7053
+ 'id': id,
7054
+ 'org': org,
7055
+ 'user_id': userId
7056
+ },
7057
+ body: requestBody,
7058
+ mediaType: 'application/json'
7059
+ });
7060
+ }
7061
+ /**
7062
+ * ViewSet for MCP Servers.
7063
+ *
7064
+ * Allows platform admins to list, create, retrieve, update, and delete MCP servers.
7065
+ *
7066
+ * Permissions:
7067
+ * - Accessible to tenant admins.
7068
+ * @param id A unique integer value identifying this mcp server.
7069
+ * @param org
7070
+ * @param userId
7071
+ * @param requestBody
7072
+ * @returns MCPServer
7073
+ * @throws ApiError
7074
+ */
7075
+ static aiMentorOrgsUsersMcpServersPartialUpdate(id, org, userId, requestBody) {
7076
+ return request(OpenAPI, {
7077
+ method: 'PATCH',
7078
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-servers/{id}/',
7079
+ path: {
7080
+ 'id': id,
7081
+ 'org': org,
7082
+ 'user_id': userId
7083
+ },
7084
+ body: requestBody,
7085
+ mediaType: 'application/json'
7086
+ });
7087
+ }
7088
+ /**
7089
+ * ViewSet for MCP Servers.
7090
+ *
7091
+ * Allows platform admins to list, create, retrieve, update, and delete MCP servers.
7092
+ *
7093
+ * Permissions:
7094
+ * - Accessible to tenant admins.
7095
+ * @param id A unique integer value identifying this mcp server.
7096
+ * @param org
7097
+ * @param userId
7098
+ * @returns void
7099
+ * @throws ApiError
7100
+ */
7101
+ static aiMentorOrgsUsersMcpServersDestroy(id, org, userId) {
7102
+ return request(OpenAPI, {
7103
+ method: 'DELETE',
7104
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-servers/{id}/',
7105
+ path: {
7106
+ 'id': id,
7107
+ 'org': org,
7108
+ 'user_id': userId
7109
+ }
7110
+ });
7111
+ }
8275
7112
  /**
8276
7113
  * Retrieve details of a specific user chat feedback entry.
8277
7114
  *
@@ -30010,8 +28847,6 @@ class UserGroupsService {
30010
28847
 
30011
28848
  exports.AiAccountService = AiAccountService;
30012
28849
  exports.AiAnalyticsService = AiAnalyticsService;
30013
- exports.AiBotService = AiBotService;
30014
- exports.AiFinetuningService = AiFinetuningService;
30015
28850
  exports.AiIndexService = AiIndexService;
30016
28851
  exports.AiMarketingService = AiMarketingService;
30017
28852
  exports.AiMentorService = AiMentorService;