@iblai/iblai-api 3.35.0-ai-plus → 3.35.1-ai

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/index.cjs.js +335 -1797
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +336 -1796
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +335 -1797
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +1 -40
  8. package/dist/types/models/{VoiceProviderEnum.d.ts → ProviderEnum.d.ts} +1 -1
  9. package/dist/types/models/Voice.d.ts +2 -2
  10. package/dist/types/services/SearchService.d.ts +122 -361
  11. package/package.json +1 -1
  12. package/src/core/OpenAPI.ts +1 -1
  13. package/src/index.ts +1 -40
  14. package/src/models/{VoiceProviderEnum.ts → ProviderEnum.ts} +1 -1
  15. package/src/models/Voice.ts +2 -2
  16. package/src/services/SearchService.ts +753 -773
  17. package/dist/types/models/Bot.d.ts +0 -15
  18. package/dist/types/models/BotCommand.d.ts +0 -6
  19. package/dist/types/models/BotCreate.d.ts +0 -12
  20. package/dist/types/models/DataSet.d.ts +0 -21
  21. package/dist/types/models/DataSetCreate.d.ts +0 -12
  22. package/dist/types/models/DataSetStatusEnum.d.ts +0 -12
  23. package/dist/types/models/DiscordConfig.d.ts +0 -7
  24. package/dist/types/models/DiscordUserConfig.d.ts +0 -10
  25. package/dist/types/models/DiscordWebhook.d.ts +0 -6
  26. package/dist/types/models/PaginatedDataSetList.d.ts +0 -7
  27. package/dist/types/models/PaginatedTrainingList.d.ts +0 -7
  28. package/dist/types/models/PatchedBotCommand.d.ts +0 -6
  29. package/dist/types/models/PatchedBotCreate.d.ts +0 -12
  30. package/dist/types/models/PatchedDataSet.d.ts +0 -21
  31. package/dist/types/models/PatchedDiscordConfig.d.ts +0 -7
  32. package/dist/types/models/PatchedDiscordUserConfig.d.ts +0 -10
  33. package/dist/types/models/PatchedSlackConfig.d.ts +0 -8
  34. package/dist/types/models/PatchedSlackUserConfig.d.ts +0 -17
  35. package/dist/types/models/PatchedTeamsConfig.d.ts +0 -7
  36. package/dist/types/models/PatchedTrainingCreate.d.ts +0 -31
  37. package/dist/types/models/PatchedWebexConfig.d.ts +0 -10
  38. package/dist/types/models/PatchedWhatsappConfig.d.ts +0 -11
  39. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +0 -10
  40. package/dist/types/models/Provider05cEnum.d.ts +0 -14
  41. package/dist/types/models/Provider63aEnum.d.ts +0 -6
  42. package/dist/types/models/SlackConfig.d.ts +0 -8
  43. package/dist/types/models/SlackUserConfig.d.ts +0 -17
  44. package/dist/types/models/SlackWebhook.d.ts +0 -6
  45. package/dist/types/models/TeamsConfig.d.ts +0 -7
  46. package/dist/types/models/TeamsWebhook.d.ts +0 -17
  47. package/dist/types/models/Training.d.ts +0 -41
  48. package/dist/types/models/TrainingCreate.d.ts +0 -31
  49. package/dist/types/models/WebexConfig.d.ts +0 -10
  50. package/dist/types/models/WebexWebhook.d.ts +0 -4
  51. package/dist/types/models/WhatAppWebHook.d.ts +0 -3
  52. package/dist/types/models/WhatsappConfig.d.ts +0 -11
  53. package/dist/types/models/WhatsappUserConfig.d.ts +0 -10
  54. package/dist/types/services/AiBotService.d.ts +0 -486
  55. package/dist/types/services/AiFinetuningService.d.ts +0 -162
  56. package/src/models/Bot.ts +0 -20
  57. package/src/models/BotCommand.ts +0 -11
  58. package/src/models/BotCreate.ts +0 -17
  59. package/src/models/DataSet.ts +0 -26
  60. package/src/models/DataSetCreate.ts +0 -17
  61. package/src/models/DataSetStatusEnum.ts +0 -16
  62. package/src/models/DiscordConfig.ts +0 -12
  63. package/src/models/DiscordUserConfig.ts +0 -15
  64. package/src/models/DiscordWebhook.ts +0 -11
  65. package/src/models/PaginatedDataSetList.ts +0 -12
  66. package/src/models/PaginatedTrainingList.ts +0 -12
  67. package/src/models/PatchedBotCommand.ts +0 -11
  68. package/src/models/PatchedBotCreate.ts +0 -17
  69. package/src/models/PatchedDataSet.ts +0 -26
  70. package/src/models/PatchedDiscordConfig.ts +0 -12
  71. package/src/models/PatchedDiscordUserConfig.ts +0 -15
  72. package/src/models/PatchedSlackConfig.ts +0 -13
  73. package/src/models/PatchedSlackUserConfig.ts +0 -22
  74. package/src/models/PatchedTeamsConfig.ts +0 -12
  75. package/src/models/PatchedTrainingCreate.ts +0 -36
  76. package/src/models/PatchedWebexConfig.ts +0 -15
  77. package/src/models/PatchedWhatsappConfig.ts +0 -16
  78. package/src/models/PatchedWhatsappUserConfig.ts +0 -15
  79. package/src/models/Provider05cEnum.ts +0 -18
  80. package/src/models/Provider63aEnum.ts +0 -10
  81. package/src/models/SlackConfig.ts +0 -13
  82. package/src/models/SlackUserConfig.ts +0 -22
  83. package/src/models/SlackWebhook.ts +0 -11
  84. package/src/models/TeamsConfig.ts +0 -12
  85. package/src/models/TeamsWebhook.ts +0 -22
  86. package/src/models/Training.ts +0 -46
  87. package/src/models/TrainingCreate.ts +0 -36
  88. package/src/models/WebexConfig.ts +0 -15
  89. package/src/models/WebexWebhook.ts +0 -9
  90. package/src/models/WhatAppWebHook.ts +0 -8
  91. package/src/models/WhatsappConfig.ts +0 -16
  92. package/src/models/WhatsappUserConfig.ts +0 -15
  93. package/src/services/AiBotService.ts +0 -1174
  94. 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.35.0-ai-plus',
113
+ VERSION: '3.35.1-ai',
114
114
  WITH_CREDENTIALS: false,
115
115
  CREDENTIALS: 'include',
116
116
  TOKEN: undefined,
@@ -203,24 +203,6 @@ exports.CourseCreationTaskStatusEnum = void 0;
203
203
  CourseCreationTaskStatusEnum["IN_PROGRESS"] = "In Progress";
204
204
  })(exports.CourseCreationTaskStatusEnum || (exports.CourseCreationTaskStatusEnum = {}));
205
205
 
206
- /* generated using openapi-typescript-codegen -- do not edit */
207
- /* istanbul ignore file */
208
- /* tslint:disable */
209
- /* eslint-disable */
210
- /**
211
- * * `pending` - Pending
212
- * * `processing` - Processing
213
- * * `completed` - Completed
214
- * * `failed` - Failed
215
- */
216
- exports.DataSetStatusEnum = void 0;
217
- (function (DataSetStatusEnum) {
218
- DataSetStatusEnum["PENDING"] = "pending";
219
- DataSetStatusEnum["PROCESSING"] = "processing";
220
- DataSetStatusEnum["COMPLETED"] = "completed";
221
- DataSetStatusEnum["FAILED"] = "failed";
222
- })(exports.DataSetStatusEnum || (exports.DataSetStatusEnum = {}));
223
-
224
206
  /* generated using openapi-typescript-codegen -- do not edit */
225
207
  /* istanbul ignore file */
226
208
  /* tslint:disable */
@@ -401,37 +383,21 @@ exports.PromptVisibilityEnum = void 0;
401
383
  PromptVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
402
384
  })(exports.PromptVisibilityEnum || (exports.PromptVisibilityEnum = {}));
403
385
 
404
- /* generated using openapi-typescript-codegen -- do not edit */
405
- /* istanbul ignore file */
406
- /* tslint:disable */
407
- /* eslint-disable */
408
- /**
409
- * * `webex` - Webex
410
- * * `slack` - Slack
411
- * * `whatsapp` - Whatsapp
412
- * * `discord` - Discord
413
- * * `teams` - Teams
414
- */
415
- exports.Provider05cEnum = void 0;
416
- (function (Provider05cEnum) {
417
- Provider05cEnum["WEBEX"] = "webex";
418
- Provider05cEnum["SLACK"] = "slack";
419
- Provider05cEnum["WHATSAPP"] = "whatsapp";
420
- Provider05cEnum["DISCORD"] = "discord";
421
- Provider05cEnum["TEAMS"] = "teams";
422
- })(exports.Provider05cEnum || (exports.Provider05cEnum = {}));
423
-
424
386
  /* generated using openapi-typescript-codegen -- do not edit */
425
387
  /* istanbul ignore file */
426
388
  /* tslint:disable */
427
389
  /* eslint-disable */
428
390
  /**
429
391
  * * `openai` - Openai
392
+ * * `google` - Google
393
+ * * `elevenlabs` - Elevenlabs
430
394
  */
431
- exports.Provider63aEnum = void 0;
432
- (function (Provider63aEnum) {
433
- Provider63aEnum["OPENAI"] = "openai";
434
- })(exports.Provider63aEnum || (exports.Provider63aEnum = {}));
395
+ exports.ProviderEnum = void 0;
396
+ (function (ProviderEnum) {
397
+ ProviderEnum["OPENAI"] = "openai";
398
+ ProviderEnum["GOOGLE"] = "google";
399
+ ProviderEnum["ELEVENLABS"] = "elevenlabs";
400
+ })(exports.ProviderEnum || (exports.ProviderEnum = {}));
435
401
 
436
402
  /* generated using openapi-typescript-codegen -- do not edit */
437
403
  /* istanbul ignore file */
@@ -587,22 +553,6 @@ exports.TypeC42Enum = void 0;
587
553
  TypeC42Enum["ASSESSMENT"] = "assessment";
588
554
  })(exports.TypeC42Enum || (exports.TypeC42Enum = {}));
589
555
 
590
- /* generated using openapi-typescript-codegen -- do not edit */
591
- /* istanbul ignore file */
592
- /* tslint:disable */
593
- /* eslint-disable */
594
- /**
595
- * * `openai` - Openai
596
- * * `google` - Google
597
- * * `elevenlabs` - Elevenlabs
598
- */
599
- exports.VoiceProviderEnum = void 0;
600
- (function (VoiceProviderEnum) {
601
- VoiceProviderEnum["OPENAI"] = "openai";
602
- VoiceProviderEnum["GOOGLE"] = "google";
603
- VoiceProviderEnum["ELEVENLABS"] = "elevenlabs";
604
- })(exports.VoiceProviderEnum || (exports.VoiceProviderEnum = {}));
605
-
606
556
  /* generated using openapi-typescript-codegen -- do not edit */
607
557
  /* istanbul ignore file */
608
558
  /* tslint:disable */
@@ -2799,1400 +2749,116 @@ class AiAnalyticsService {
2799
2749
  * @returns UserMetricsResponse
2800
2750
  * @throws ApiError
2801
2751
  */
2802
- static aiAnalyticsOrgsUsersUserMetricsRetrieve(org, userId, groupBy = 'day', mentorId) {
2803
- return request(OpenAPI, {
2804
- method: 'GET',
2805
- url: '/api/ai-analytics/orgs/{org}/users/{user_id}/user-metrics/',
2806
- path: {
2807
- 'org': org,
2808
- 'user_id': userId
2809
- },
2810
- query: {
2811
- 'group_by': groupBy,
2812
- 'mentor_id': mentorId
2813
- },
2814
- errors: {
2815
- 404: `Organization not found`
2816
- }
2817
- });
2818
- }
2819
- /**
2820
- * Retrieve user distribution data for pie charts.
2821
- *
2822
- * This endpoint returns data on the distribution of new versus returning users
2823
- * within a specified date range, including both counts and percentages,
2824
- * suitable for pie chart visualization.
2825
- *
2826
- * Args:
2827
- * request: The HTTP request containing filter query parameters.
2828
- * org: Organization key identifier.
2829
- *
2830
- * Returns:
2831
- * Response: Distribution of new versus returning users with counts and percentages.
2832
- *
2833
- * Raises:
2834
- * NotFound: If the specified organization does not exist.
2835
- * BadRequest: If the provided parameters are invalid.
2836
- *
2837
- * Query Parameters:
2838
- * start_date (str): Start date for filtering (YYYY-MM-DD) - required.
2839
- * end_date (str): End date for filtering (YYYY-MM-DD) - required.
2840
- * mentor_id (str): Filter by mentor unique ID.
2841
- * @param endDate End date for filtering (YYYY-MM-DD)
2842
- * @param org
2843
- * @param startDate Start date for filtering (YYYY-MM-DD)
2844
- * @param userId
2845
- * @param mentorId Filter by mentor unique ID
2846
- * @returns PieChartData
2847
- * @throws ApiError
2848
- */
2849
- static aiAnalyticsOrgsUsersUserMetricsPieChartRetrieve(endDate, org, startDate, userId, mentorId) {
2850
- return request(OpenAPI, {
2851
- method: 'GET',
2852
- url: '/api/ai-analytics/orgs/{org}/users/{user_id}/user-metrics-pie-chart/',
2853
- path: {
2854
- 'org': org,
2855
- 'user_id': userId
2856
- },
2857
- query: {
2858
- 'end_date': endDate,
2859
- 'mentor_id': mentorId,
2860
- 'start_date': startDate
2861
- },
2862
- errors: {
2863
- 400: `Invalid parameters`,
2864
- 404: `Organization not found`
2865
- }
2866
- });
2867
- }
2868
- /**
2869
- * Retrieve user sentiment distribution.
2870
- *
2871
- * This endpoint returns data on the distribution of user sentiments (positive,
2872
- * negative, neutral) within a specified date range, expressed as percentages.
2873
- *
2874
- * Args:
2875
- * request: The HTTP request containing filter query parameters.
2876
- * org: Organization key identifier.
2877
- *
2878
- * Returns:
2879
- * Response: Sentiment distribution percentages and total sentiment count.
2880
- *
2881
- * Raises:
2882
- * NotFound: If the specified organization does not exist.
2883
- * BadRequest: If the provided parameters are invalid.
2884
- *
2885
- * Query Parameters:
2886
- * start_date (str): Start date for filtering (YYYY-MM-DD) - required.
2887
- * end_date (str): End date for filtering (YYYY-MM-DD) - required.
2888
- * @param endDate End date for filtering (YYYY-MM-DD)
2889
- * @param org
2890
- * @param startDate Start date for filtering (YYYY-MM-DD)
2891
- * @param userId
2892
- * @param groupBy
2893
- * @returns SentimentSummary
2894
- * @throws ApiError
2895
- */
2896
- static aiAnalyticsOrgsUsersUserSentimentRetrieve(endDate, org, startDate, userId, groupBy = 'day') {
2897
- return request(OpenAPI, {
2898
- method: 'GET',
2899
- url: '/api/ai-analytics/orgs/{org}/users/{user_id}/user-sentiment/',
2900
- path: {
2901
- 'org': org,
2902
- 'user_id': userId
2903
- },
2904
- query: {
2905
- 'end_date': endDate,
2906
- 'group_by': groupBy,
2907
- 'start_date': startDate
2908
- },
2909
- errors: {
2910
- 400: `Invalid parameters`,
2911
- 404: `Organization not found`
2912
- }
2913
- });
2914
- }
2915
- }
2916
-
2917
- class AiBotService {
2918
- /**
2919
- * Create modify and update bot information for a specific tenant.
2920
- * @param org
2921
- * @returns Bot
2922
- * @throws ApiError
2923
- */
2924
- static aiBotV1BotsBotList(org) {
2925
- return request(OpenAPI, {
2926
- method: 'GET',
2927
- url: '/api/ai-bot/v1/bots/{org}/bot/',
2928
- path: {
2929
- 'org': org
2930
- }
2931
- });
2932
- }
2933
- /**
2934
- * Create modify and update bot information for a specific tenant.
2935
- * @param org
2936
- * @param requestBody
2937
- * @returns BotCreate
2938
- * @throws ApiError
2939
- */
2940
- static aiBotV1BotsBotCreate(org, requestBody) {
2941
- return request(OpenAPI, {
2942
- method: 'POST',
2943
- url: '/api/ai-bot/v1/bots/{org}/bot/',
2944
- path: {
2945
- 'org': org
2946
- },
2947
- body: requestBody,
2948
- mediaType: 'application/json'
2949
- });
2950
- }
2951
- /**
2952
- * Create slash commands for a specific bot
2953
- * eg. /iblai-baseline
2954
- * @param org
2955
- * @returns BotCommand
2956
- * @throws ApiError
2957
- */
2958
- static aiBotV1BotsBotCommandsList(org) {
2959
- return request(OpenAPI, {
2960
- method: 'GET',
2961
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
2962
- path: {
2963
- 'org': org
2964
- }
2965
- });
2966
- }
2967
- /**
2968
- * Create slash commands for a specific bot
2969
- * eg. /iblai-baseline
2970
- * @param org
2971
- * @param requestBody
2972
- * @returns BotCommand
2973
- * @throws ApiError
2974
- */
2975
- static aiBotV1BotsBotCommandsCreate(org, requestBody) {
2976
- return request(OpenAPI, {
2977
- method: 'POST',
2978
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
2979
- path: {
2980
- 'org': org
2981
- },
2982
- body: requestBody,
2983
- mediaType: 'application/json'
2984
- });
2985
- }
2986
- /**
2987
- * Create slash commands for a specific bot
2988
- * eg. /iblai-baseline
2989
- * @param id A unique integer value identifying this bot command.
2990
- * @param org
2991
- * @returns BotCommand
2992
- * @throws ApiError
2993
- */
2994
- static aiBotV1BotsBotCommandsRetrieve(id, org) {
2995
- return request(OpenAPI, {
2996
- method: 'GET',
2997
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
2998
- path: {
2999
- 'id': id,
3000
- 'org': org
3001
- }
3002
- });
3003
- }
3004
- /**
3005
- * Create slash commands for a specific bot
3006
- * eg. /iblai-baseline
3007
- * @param id A unique integer value identifying this bot command.
3008
- * @param org
3009
- * @param requestBody
3010
- * @returns BotCommand
3011
- * @throws ApiError
3012
- */
3013
- static aiBotV1BotsBotCommandsUpdate(id, org, requestBody) {
3014
- return request(OpenAPI, {
3015
- method: 'PUT',
3016
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
3017
- path: {
3018
- 'id': id,
3019
- 'org': org
3020
- },
3021
- body: requestBody,
3022
- mediaType: 'application/json'
3023
- });
3024
- }
3025
- /**
3026
- * Create slash commands for a specific bot
3027
- * eg. /iblai-baseline
3028
- * @param id A unique integer value identifying this bot command.
3029
- * @param org
3030
- * @param requestBody
3031
- * @returns BotCommand
3032
- * @throws ApiError
3033
- */
3034
- static aiBotV1BotsBotCommandsPartialUpdate(id, org, requestBody) {
3035
- return request(OpenAPI, {
3036
- method: 'PATCH',
3037
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
3038
- path: {
3039
- 'id': id,
3040
- 'org': org
3041
- },
3042
- body: requestBody,
3043
- mediaType: 'application/json'
3044
- });
3045
- }
3046
- /**
3047
- * Create slash commands for a specific bot
3048
- * eg. /iblai-baseline
3049
- * @param id A unique integer value identifying this bot command.
3050
- * @param org
3051
- * @returns void
3052
- * @throws ApiError
3053
- */
3054
- static aiBotV1BotsBotCommandsDestroy(id, org) {
3055
- return request(OpenAPI, {
3056
- method: 'DELETE',
3057
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
3058
- path: {
3059
- 'id': id,
3060
- 'org': org
3061
- }
3062
- });
3063
- }
3064
- /**
3065
- * Create modify and update bot information for a specific tenant.
3066
- * @param id A unique integer value identifying this bot.
3067
- * @param org
3068
- * @returns Bot
3069
- * @throws ApiError
3070
- */
3071
- static aiBotV1BotsBotRetrieve(id, org) {
3072
- return request(OpenAPI, {
3073
- method: 'GET',
3074
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3075
- path: {
3076
- 'id': id,
3077
- 'org': org
3078
- }
3079
- });
3080
- }
3081
- /**
3082
- * Create modify and update bot information for a specific tenant.
3083
- * @param id A unique integer value identifying this bot.
3084
- * @param org
3085
- * @param requestBody
3086
- * @returns BotCreate
3087
- * @throws ApiError
3088
- */
3089
- static aiBotV1BotsBotUpdate(id, org, requestBody) {
3090
- return request(OpenAPI, {
3091
- method: 'PUT',
3092
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3093
- path: {
3094
- 'id': id,
3095
- 'org': org
3096
- },
3097
- body: requestBody,
3098
- mediaType: 'application/json'
3099
- });
3100
- }
3101
- /**
3102
- * Create modify and update bot information for a specific tenant.
3103
- * @param id A unique integer value identifying this bot.
3104
- * @param org
3105
- * @param requestBody
3106
- * @returns BotCreate
3107
- * @throws ApiError
3108
- */
3109
- static aiBotV1BotsBotPartialUpdate(id, org, requestBody) {
3110
- return request(OpenAPI, {
3111
- method: 'PATCH',
3112
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3113
- path: {
3114
- 'id': id,
3115
- 'org': org
3116
- },
3117
- body: requestBody,
3118
- mediaType: 'application/json'
3119
- });
3120
- }
3121
- /**
3122
- * Create modify and update bot information for a specific tenant.
3123
- * @param id A unique integer value identifying this bot.
3124
- * @param org
3125
- * @returns void
3126
- * @throws ApiError
3127
- */
3128
- static aiBotV1BotsBotDestroy(id, org) {
3129
- return request(OpenAPI, {
3130
- method: 'DELETE',
3131
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
3132
- path: {
3133
- 'id': id,
3134
- 'org': org
3135
- }
3136
- });
3137
- }
3138
- /**
3139
- * Create modify and update bot information for a specific tenant.
3140
- * @param id A unique integer value identifying this bot.
3141
- * @param org
3142
- * @returns DiscordConfig
3143
- * @throws ApiError
3144
- */
3145
- static aiBotV1BotsBotConfigDiscordRetrieve(id, org) {
3146
- return request(OpenAPI, {
3147
- method: 'GET',
3148
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
3149
- path: {
3150
- 'id': id,
3151
- 'org': org
3152
- }
3153
- });
3154
- }
3155
- /**
3156
- * Create modify and update bot information for a specific tenant.
3157
- * @param id A unique integer value identifying this bot.
3158
- * @param org
3159
- * @param requestBody
3160
- * @returns DiscordConfig
3161
- * @throws ApiError
3162
- */
3163
- static aiBotV1BotsBotConfigDiscordPartialUpdate(id, org, requestBody) {
3164
- return request(OpenAPI, {
3165
- method: 'PATCH',
3166
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
3167
- path: {
3168
- 'id': id,
3169
- 'org': org
3170
- },
3171
- body: requestBody,
3172
- mediaType: 'application/json'
3173
- });
3174
- }
3175
- /**
3176
- * Create modify and update bot information for a specific tenant.
3177
- * @param id A unique integer value identifying this bot.
3178
- * @param org
3179
- * @returns SlackConfig
3180
- * @throws ApiError
3181
- */
3182
- static aiBotV1BotsBotConfigSlackRetrieve(id, org) {
3183
- return request(OpenAPI, {
3184
- method: 'GET',
3185
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
3186
- path: {
3187
- 'id': id,
3188
- 'org': org
3189
- }
3190
- });
3191
- }
3192
- /**
3193
- * Create modify and update bot information for a specific tenant.
3194
- * @param id A unique integer value identifying this bot.
3195
- * @param org
3196
- * @param requestBody
3197
- * @returns SlackConfig
3198
- * @throws ApiError
3199
- */
3200
- static aiBotV1BotsBotConfigSlackUpdateCreate(id, org, requestBody) {
3201
- return request(OpenAPI, {
3202
- method: 'POST',
3203
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
3204
- path: {
3205
- 'id': id,
3206
- 'org': org
3207
- },
3208
- body: requestBody,
3209
- mediaType: 'application/json'
3210
- });
3211
- }
3212
- /**
3213
- * Create modify and update bot information for a specific tenant.
3214
- * @param id A unique integer value identifying this bot.
3215
- * @param org
3216
- * @param requestBody
3217
- * @returns SlackConfig
3218
- * @throws ApiError
3219
- */
3220
- static aiBotV1BotsBotConfigSlackUpdateUpdate(id, org, requestBody) {
3221
- return request(OpenAPI, {
3222
- method: 'PUT',
3223
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
3224
- path: {
3225
- 'id': id,
3226
- 'org': org
3227
- },
3228
- body: requestBody,
3229
- mediaType: 'application/json'
3230
- });
3231
- }
3232
- /**
3233
- * Create modify and update bot information for a specific tenant.
3234
- * @param id A unique integer value identifying this bot.
3235
- * @param org
3236
- * @param requestBody
3237
- * @returns SlackConfig
3238
- * @throws ApiError
3239
- */
3240
- static aiBotV1BotsBotConfigSlackUpdatePartialUpdate(id, org, requestBody) {
3241
- return request(OpenAPI, {
3242
- method: 'PATCH',
3243
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
3244
- path: {
3245
- 'id': id,
3246
- 'org': org
3247
- },
3248
- body: requestBody,
3249
- mediaType: 'application/json'
3250
- });
3251
- }
3252
- /**
3253
- * Create modify and update bot information for a specific tenant.
3254
- * @param id A unique integer value identifying this bot.
3255
- * @param org
3256
- * @returns TeamsConfig
3257
- * @throws ApiError
3258
- */
3259
- static aiBotV1BotsBotConfigTeamsRetrieve(id, org) {
3260
- return request(OpenAPI, {
3261
- method: 'GET',
3262
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
3263
- path: {
3264
- 'id': id,
3265
- 'org': org
3266
- }
3267
- });
3268
- }
3269
- /**
3270
- * Create modify and update bot information for a specific tenant.
3271
- * @param id A unique integer value identifying this bot.
3272
- * @param org
3273
- * @param requestBody
3274
- * @returns TeamsConfig
3275
- * @throws ApiError
3276
- */
3277
- static aiBotV1BotsBotConfigTeamsUpdateCreate(id, org, requestBody) {
3278
- return request(OpenAPI, {
3279
- method: 'POST',
3280
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
3281
- path: {
3282
- 'id': id,
3283
- 'org': org
3284
- },
3285
- body: requestBody,
3286
- mediaType: 'application/json'
3287
- });
3288
- }
3289
- /**
3290
- * Create modify and update bot information for a specific tenant.
3291
- * @param id A unique integer value identifying this bot.
3292
- * @param org
3293
- * @param requestBody
3294
- * @returns TeamsConfig
3295
- * @throws ApiError
3296
- */
3297
- static aiBotV1BotsBotConfigTeamsUpdateUpdate(id, org, requestBody) {
3298
- return request(OpenAPI, {
3299
- method: 'PUT',
3300
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
3301
- path: {
3302
- 'id': id,
3303
- 'org': org
3304
- },
3305
- body: requestBody,
3306
- mediaType: 'application/json'
3307
- });
3308
- }
3309
- /**
3310
- * Create modify and update bot information for a specific tenant.
3311
- * @param id A unique integer value identifying this bot.
3312
- * @param org
3313
- * @param requestBody
3314
- * @returns TeamsConfig
3315
- * @throws ApiError
3316
- */
3317
- static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate(id, org, requestBody) {
3318
- return request(OpenAPI, {
3319
- method: 'PATCH',
3320
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
3321
- path: {
3322
- 'id': id,
3323
- 'org': org
3324
- },
3325
- body: requestBody,
3326
- mediaType: 'application/json'
3327
- });
3328
- }
3329
- /**
3330
- * Create modify and update bot information for a specific tenant.
3331
- * @param id A unique integer value identifying this bot.
3332
- * @param org
3333
- * @returns WebexConfig
3334
- * @throws ApiError
3335
- */
3336
- static aiBotV1BotsBotConfigWebexRetrieve(id, org) {
3337
- return request(OpenAPI, {
3338
- method: 'GET',
3339
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
3340
- path: {
3341
- 'id': id,
3342
- 'org': org
3343
- }
3344
- });
3345
- }
3346
- /**
3347
- * Create modify and update bot information for a specific tenant.
3348
- * @param id A unique integer value identifying this bot.
3349
- * @param org
3350
- * @param requestBody
3351
- * @returns WebexConfig
3352
- * @throws ApiError
3353
- */
3354
- static aiBotV1BotsBotConfigWebexPartialUpdate(id, org, requestBody) {
3355
- return request(OpenAPI, {
3356
- method: 'PATCH',
3357
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
3358
- path: {
3359
- 'id': id,
3360
- 'org': org
3361
- },
3362
- body: requestBody,
3363
- mediaType: 'application/json'
3364
- });
3365
- }
3366
- /**
3367
- * Create modify and update bot information for a specific tenant.
3368
- * @param id A unique integer value identifying this bot.
3369
- * @param org
3370
- * @returns WhatsappConfig
3371
- * @throws ApiError
3372
- */
3373
- static aiBotV1BotsBotConfigWhatsappRetrieve(id, org) {
3374
- return request(OpenAPI, {
3375
- method: 'GET',
3376
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
3377
- path: {
3378
- 'id': id,
3379
- 'org': org
3380
- }
3381
- });
3382
- }
3383
- /**
3384
- * Create modify and update bot information for a specific tenant.
3385
- * @param id A unique integer value identifying this bot.
3386
- * @param org
3387
- * @param requestBody
3388
- * @returns WhatsappConfig
3389
- * @throws ApiError
3390
- */
3391
- static aiBotV1BotsBotWhatsappConfigUpdate(id, org, requestBody) {
3392
- return request(OpenAPI, {
3393
- method: 'PUT',
3394
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
3395
- path: {
3396
- 'id': id,
3397
- 'org': org
3398
- },
3399
- body: requestBody,
3400
- mediaType: 'application/json'
3401
- });
3402
- }
3403
- /**
3404
- * Create modify and update bot information for a specific tenant.
3405
- * @param id A unique integer value identifying this bot.
3406
- * @param org
3407
- * @param requestBody
3408
- * @returns WhatsappConfig
3409
- * @throws ApiError
3410
- */
3411
- static aiBotV1BotsBotWhatsappConfigPartialUpdate(id, org, requestBody) {
3412
- return request(OpenAPI, {
3413
- method: 'PATCH',
3414
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
3415
- path: {
3416
- 'id': id,
3417
- 'org': org
3418
- },
3419
- body: requestBody,
3420
- mediaType: 'application/json'
3421
- });
3422
- }
3423
- /**
3424
- * Setup discord user id linkage with discord bots
3425
- * this will be used to authenticate the user when interracting with discord bots.
3426
- * the user id can be copied from the discord app after tapping on the user profile.
3427
- * @param org
3428
- * @returns DiscordUserConfig
3429
- * @throws ApiError
3430
- */
3431
- static aiBotV1BotsDiscordUserConfigList(org) {
3432
- return request(OpenAPI, {
3433
- method: 'GET',
3434
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
3435
- path: {
3436
- 'org': org
3437
- }
3438
- });
3439
- }
3440
- /**
3441
- * Setup discord user id linkage with discord bots
3442
- * this will be used to authenticate the user when interracting with discord bots.
3443
- * the user id can be copied from the discord app after tapping on the user profile.
3444
- * @param org
3445
- * @param requestBody
3446
- * @returns DiscordUserConfig
3447
- * @throws ApiError
3448
- */
3449
- static aiBotV1BotsDiscordUserConfigCreate(org, requestBody) {
3450
- return request(OpenAPI, {
3451
- method: 'POST',
3452
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
3453
- path: {
3454
- 'org': org
3455
- },
3456
- body: requestBody,
3457
- mediaType: 'application/json'
3458
- });
3459
- }
3460
- /**
3461
- * Setup discord user id linkage with discord bots
3462
- * this will be used to authenticate the user when interracting with discord bots.
3463
- * the user id can be copied from the discord app after tapping on the user profile.
3464
- * @param id A unique integer value identifying this discord user config.
3465
- * @param org
3466
- * @returns DiscordUserConfig
3467
- * @throws ApiError
3468
- */
3469
- static aiBotV1BotsDiscordUserConfigRetrieve(id, org) {
3470
- return request(OpenAPI, {
3471
- method: 'GET',
3472
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3473
- path: {
3474
- 'id': id,
3475
- 'org': org
3476
- }
3477
- });
3478
- }
3479
- /**
3480
- * Setup discord user id linkage with discord bots
3481
- * this will be used to authenticate the user when interracting with discord bots.
3482
- * the user id can be copied from the discord app after tapping on the user profile.
3483
- * @param id A unique integer value identifying this discord user config.
3484
- * @param org
3485
- * @param requestBody
3486
- * @returns DiscordUserConfig
3487
- * @throws ApiError
3488
- */
3489
- static aiBotV1BotsDiscordUserConfigUpdate(id, org, requestBody) {
3490
- return request(OpenAPI, {
3491
- method: 'PUT',
3492
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3493
- path: {
3494
- 'id': id,
3495
- 'org': org
3496
- },
3497
- body: requestBody,
3498
- mediaType: 'application/json'
3499
- });
3500
- }
3501
- /**
3502
- * Setup discord user id linkage with discord bots
3503
- * this will be used to authenticate the user when interracting with discord bots.
3504
- * the user id can be copied from the discord app after tapping on the user profile.
3505
- * @param id A unique integer value identifying this discord user config.
3506
- * @param org
3507
- * @param requestBody
3508
- * @returns DiscordUserConfig
3509
- * @throws ApiError
3510
- */
3511
- static aiBotV1BotsDiscordUserConfigPartialUpdate(id, org, requestBody) {
3512
- return request(OpenAPI, {
3513
- method: 'PATCH',
3514
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3515
- path: {
3516
- 'id': id,
3517
- 'org': org
3518
- },
3519
- body: requestBody,
3520
- mediaType: 'application/json'
3521
- });
3522
- }
3523
- /**
3524
- * Setup discord user id linkage with discord bots
3525
- * this will be used to authenticate the user when interracting with discord bots.
3526
- * the user id can be copied from the discord app after tapping on the user profile.
3527
- * @param id A unique integer value identifying this discord user config.
3528
- * @param org
3529
- * @returns void
3530
- * @throws ApiError
3531
- */
3532
- static aiBotV1BotsDiscordUserConfigDestroy(id, org) {
3533
- return request(OpenAPI, {
3534
- method: 'DELETE',
3535
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
3536
- path: {
3537
- 'id': id,
3538
- 'org': org
3539
- }
3540
- });
3541
- }
3542
- /**
3543
- * Setup slack username and domain linkage with slack bots
3544
- * this will be used to authenticate the user when interracting with slack bots.
3545
- * @param org
3546
- * @returns SlackUserConfig
3547
- * @throws ApiError
3548
- */
3549
- static aiBotV1BotsSlackUserConfigList(org) {
3550
- return request(OpenAPI, {
3551
- method: 'GET',
3552
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
3553
- path: {
3554
- 'org': org
3555
- }
3556
- });
3557
- }
3558
- /**
3559
- * Setup slack username and domain linkage with slack bots
3560
- * this will be used to authenticate the user when interracting with slack bots.
3561
- * @param org
3562
- * @param requestBody
3563
- * @returns SlackUserConfig
3564
- * @throws ApiError
3565
- */
3566
- static aiBotV1BotsSlackUserConfigCreate(org, requestBody) {
3567
- return request(OpenAPI, {
3568
- method: 'POST',
3569
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
3570
- path: {
3571
- 'org': org
3572
- },
3573
- body: requestBody,
3574
- mediaType: 'application/json'
3575
- });
3576
- }
3577
- /**
3578
- * Setup slack username and domain linkage with slack bots
3579
- * this will be used to authenticate the user when interracting with slack bots.
3580
- * @param id A unique integer value identifying this slack user config.
3581
- * @param org
3582
- * @returns SlackUserConfig
3583
- * @throws ApiError
3584
- */
3585
- static aiBotV1BotsSlackUserConfigRetrieve(id, org) {
3586
- return request(OpenAPI, {
3587
- method: 'GET',
3588
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3589
- path: {
3590
- 'id': id,
3591
- 'org': org
3592
- }
3593
- });
3594
- }
3595
- /**
3596
- * Setup slack username and domain linkage with slack bots
3597
- * this will be used to authenticate the user when interracting with slack bots.
3598
- * @param id A unique integer value identifying this slack user config.
3599
- * @param org
3600
- * @param requestBody
3601
- * @returns SlackUserConfig
3602
- * @throws ApiError
3603
- */
3604
- static aiBotV1BotsSlackUserConfigUpdate(id, org, requestBody) {
3605
- return request(OpenAPI, {
3606
- method: 'PUT',
3607
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3608
- path: {
3609
- 'id': id,
3610
- 'org': org
3611
- },
3612
- body: requestBody,
3613
- mediaType: 'application/json'
3614
- });
3615
- }
3616
- /**
3617
- * Setup slack username and domain linkage with slack bots
3618
- * this will be used to authenticate the user when interracting with slack bots.
3619
- * @param id A unique integer value identifying this slack user config.
3620
- * @param org
3621
- * @param requestBody
3622
- * @returns SlackUserConfig
3623
- * @throws ApiError
3624
- */
3625
- static aiBotV1BotsSlackUserConfigPartialUpdate(id, org, requestBody) {
3626
- return request(OpenAPI, {
3627
- method: 'PATCH',
3628
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3629
- path: {
3630
- 'id': id,
3631
- 'org': org
3632
- },
3633
- body: requestBody,
3634
- mediaType: 'application/json'
3635
- });
3636
- }
3637
- /**
3638
- * Setup slack username and domain linkage with slack bots
3639
- * this will be used to authenticate the user when interracting with slack bots.
3640
- * @param id A unique integer value identifying this slack user config.
3641
- * @param org
3642
- * @returns void
3643
- * @throws ApiError
3644
- */
3645
- static aiBotV1BotsSlackUserConfigDestroy(id, org) {
3646
- return request(OpenAPI, {
3647
- method: 'DELETE',
3648
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
3649
- path: {
3650
- 'id': id,
3651
- 'org': org
3652
- }
3653
- });
3654
- }
3655
- /**
3656
- * Setup phone number linkage with whatsapp bots
3657
- * This phone number will be used to authenticate and allow access to whatsapp bots.
3658
- * @param org
3659
- * @returns WhatsappUserConfig
3660
- * @throws ApiError
3661
- */
3662
- static aiBotV1BotsWhatsappUserConfigList(org) {
3663
- return request(OpenAPI, {
3664
- method: 'GET',
3665
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
3666
- path: {
3667
- 'org': org
3668
- }
3669
- });
3670
- }
3671
- /**
3672
- * Setup phone number linkage with whatsapp bots
3673
- * This phone number will be used to authenticate and allow access to whatsapp bots.
3674
- * @param org
3675
- * @param requestBody
3676
- * @returns WhatsappUserConfig
3677
- * @throws ApiError
3678
- */
3679
- static aiBotV1BotsWhatsappUserConfigCreate(org, requestBody) {
3680
- return request(OpenAPI, {
3681
- method: 'POST',
3682
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
3683
- path: {
3684
- 'org': org
3685
- },
3686
- body: requestBody,
3687
- mediaType: 'application/json'
3688
- });
3689
- }
3690
- /**
3691
- * Setup phone number linkage with whatsapp bots
3692
- * This phone number will be used to authenticate and allow access to whatsapp bots.
3693
- * @param id A unique integer value identifying this whatsapp user config.
3694
- * @param org
3695
- * @returns WhatsappUserConfig
3696
- * @throws ApiError
3697
- */
3698
- static aiBotV1BotsWhatsappUserConfigRetrieve(id, org) {
3699
- return request(OpenAPI, {
3700
- method: 'GET',
3701
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3702
- path: {
3703
- 'id': id,
3704
- 'org': org
3705
- }
3706
- });
3707
- }
3708
- /**
3709
- * Setup phone number linkage with whatsapp bots
3710
- * This phone number will be used to authenticate and allow access to whatsapp bots.
3711
- * @param id A unique integer value identifying this whatsapp user config.
3712
- * @param org
3713
- * @param requestBody
3714
- * @returns WhatsappUserConfig
3715
- * @throws ApiError
3716
- */
3717
- static aiBotV1BotsWhatsappUserConfigUpdate(id, org, requestBody) {
3718
- return request(OpenAPI, {
3719
- method: 'PUT',
3720
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3721
- path: {
3722
- 'id': id,
3723
- 'org': org
3724
- },
3725
- body: requestBody,
3726
- mediaType: 'application/json'
3727
- });
3728
- }
3729
- /**
3730
- * Setup phone number linkage with whatsapp bots
3731
- * This phone number will be used to authenticate and allow access to whatsapp bots.
3732
- * @param id A unique integer value identifying this whatsapp user config.
3733
- * @param org
3734
- * @param requestBody
3735
- * @returns WhatsappUserConfig
3736
- * @throws ApiError
3737
- */
3738
- static aiBotV1BotsWhatsappUserConfigPartialUpdate(id, org, requestBody) {
3739
- return request(OpenAPI, {
3740
- method: 'PATCH',
3741
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3742
- path: {
3743
- 'id': id,
3744
- 'org': org
3745
- },
3746
- body: requestBody,
3747
- mediaType: 'application/json'
3748
- });
3749
- }
3750
- /**
3751
- * Setup phone number linkage with whatsapp bots
3752
- * This phone number will be used to authenticate and allow access to whatsapp bots.
3753
- * @param id A unique integer value identifying this whatsapp user config.
3754
- * @param org
3755
- * @returns void
3756
- * @throws ApiError
3757
- */
3758
- static aiBotV1BotsWhatsappUserConfigDestroy(id, org) {
3759
- return request(OpenAPI, {
3760
- method: 'DELETE',
3761
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
3762
- path: {
3763
- 'id': id,
3764
- 'org': org
3765
- }
3766
- });
3767
- }
3768
- /**
3769
- * Webhook endpoint to receive and process discord messages.
3770
- * @param name
3771
- * @param org
3772
- * @param requestBody
3773
- * @returns DiscordWebhook
3774
- * @throws ApiError
3775
- */
3776
- static aiBotV1BotsWebhooksDiscordCreate(name, org, requestBody) {
3777
- return request(OpenAPI, {
3778
- method: 'POST',
3779
- url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
3780
- path: {
3781
- 'name': name,
3782
- 'org': org
3783
- },
3784
- body: requestBody,
3785
- mediaType: 'application/json'
3786
- });
3787
- }
3788
- /**
3789
- * @param name
3790
- * @param org
3791
- * @param requestBody
3792
- * @returns SlackWebhook
3793
- * @throws ApiError
3794
- */
3795
- static aiBotV1BotsWebhooksSlackCreate(name, org, requestBody) {
3796
- return request(OpenAPI, {
3797
- method: 'POST',
3798
- url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
3799
- path: {
3800
- 'name': name,
3801
- 'org': org
3802
- },
3803
- body: requestBody,
3804
- mediaType: 'application/json'
3805
- });
3806
- }
3807
- /**
3808
- * @param name
3809
- * @param org
3810
- * @param requestBody
3811
- * @returns TeamsWebhook
3812
- * @throws ApiError
3813
- */
3814
- static aiBotV1BotsWebhooksTeamsCreate(name, org, requestBody) {
3815
- return request(OpenAPI, {
3816
- method: 'POST',
3817
- url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
3818
- path: {
3819
- 'name': name,
3820
- 'org': org
3821
- },
3822
- body: requestBody,
3823
- mediaType: 'application/json'
3824
- });
3825
- }
3826
- /**
3827
- * Webhook endpoint to receive and process discord messages.
3828
- * @param name
3829
- * @param org
3830
- * @param requestBody
3831
- * @returns WebexWebhook
3832
- * @throws ApiError
3833
- */
3834
- static aiBotV1BotsWebhooksWebexCreate(name, org, requestBody) {
3835
- return request(OpenAPI, {
3836
- method: 'POST',
3837
- url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
3838
- path: {
3839
- 'name': name,
3840
- 'org': org
3841
- },
3842
- body: requestBody,
3843
- mediaType: 'application/json'
3844
- });
3845
- }
3846
- /**
3847
- * Respond to whatsapp's webhook challenge.
3848
- * Parameters Required include the tenant key (org) and the name of the bot: (name)
3849
- * @param name
3850
- * @param org
3851
- * @returns WhatAppWebHook
3852
- * @throws ApiError
3853
- */
3854
- static aiBotV1BotsWebhooksWhatsappRetrieve(name, org) {
3855
- return request(OpenAPI, {
3856
- method: 'GET',
3857
- url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
3858
- path: {
3859
- 'name': name,
3860
- 'org': org
3861
- }
3862
- });
3863
- }
3864
- /**
3865
- * Accept and process webhook events from whatsapp.
3866
- * @param name
3867
- * @param org
3868
- * @param requestBody
3869
- * @returns WhatAppWebHook
3870
- * @throws ApiError
3871
- */
3872
- static aiBotV1BotsWebhooksWhatsappCreate(name, org, requestBody) {
3873
- return request(OpenAPI, {
3874
- method: 'POST',
3875
- url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
3876
- path: {
3877
- 'name': name,
3878
- 'org': org
3879
- },
3880
- body: requestBody,
3881
- mediaType: 'application/json'
3882
- });
3883
- }
3884
- }
3885
-
3886
- class AiFinetuningService {
3887
- /**
3888
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
3889
- * @param org
3890
- * @param username
3891
- * @param dateCreated
3892
- * @param numDataPoints
3893
- * @param ordering Which field to use when ordering the results.
3894
- * @param page A page number within the paginated result set.
3895
- * @param pageSize Number of results to return per page.
3896
- * @param retryAttempts
3897
- * @param search A search term.
3898
- * @param status * `pending` - Pending
3899
- * * `processing` - Processing
3900
- * * `completed` - Completed
3901
- * * `failed` - Failed
3902
- * @returns PaginatedDataSetList
3903
- * @throws ApiError
3904
- */
3905
- static aiFinetuningV1OrgUserDatasetsList(org, username, dateCreated, numDataPoints, ordering, page, pageSize, retryAttempts, search, status) {
3906
- return request(OpenAPI, {
3907
- method: 'GET',
3908
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
3909
- path: {
3910
- 'org': org,
3911
- 'username': username
3912
- },
3913
- query: {
3914
- 'date_created': dateCreated,
3915
- 'num_data_points': numDataPoints,
3916
- 'ordering': ordering,
3917
- 'page': page,
3918
- 'page_size': pageSize,
3919
- 'retry_attempts': retryAttempts,
3920
- 'search': search,
3921
- 'status': status
3922
- }
3923
- });
3924
- }
3925
- /**
3926
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
3927
- * @param org
3928
- * @param username
3929
- * @param requestBody
3930
- * @returns DataSetCreate
3931
- * @throws ApiError
3932
- */
3933
- static aiFinetuningV1OrgUserDatasetsCreate(org, username, requestBody) {
3934
- return request(OpenAPI, {
3935
- method: 'POST',
3936
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
3937
- path: {
3938
- 'org': org,
3939
- 'username': username
3940
- },
3941
- body: requestBody,
3942
- mediaType: 'application/json'
3943
- });
3944
- }
3945
- /**
3946
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
3947
- * @param id A UUID string identifying this data set.
3948
- * @param org
3949
- * @param username
3950
- * @returns DataSet
3951
- * @throws ApiError
3952
- */
3953
- static aiFinetuningV1OrgUserDatasetsRetrieve(id, org, username) {
3954
- return request(OpenAPI, {
3955
- method: 'GET',
3956
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
3957
- path: {
3958
- 'id': id,
3959
- 'org': org,
3960
- 'username': username
3961
- }
3962
- });
3963
- }
3964
- /**
3965
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
3966
- * @param id A UUID string identifying this data set.
3967
- * @param org
3968
- * @param username
3969
- * @param requestBody
3970
- * @returns DataSet
3971
- * @throws ApiError
3972
- */
3973
- static aiFinetuningV1OrgUserDatasetsUpdate(id, org, username, requestBody) {
3974
- return request(OpenAPI, {
3975
- method: 'PUT',
3976
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
3977
- path: {
3978
- 'id': id,
3979
- 'org': org,
3980
- 'username': username
3981
- },
3982
- body: requestBody,
3983
- mediaType: 'application/json'
3984
- });
3985
- }
3986
- /**
3987
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
3988
- * @param id A UUID string identifying this data set.
3989
- * @param org
3990
- * @param username
3991
- * @param requestBody
3992
- * @returns DataSet
3993
- * @throws ApiError
3994
- */
3995
- static aiFinetuningV1OrgUserDatasetsPartialUpdate(id, org, username, requestBody) {
3996
- return request(OpenAPI, {
3997
- method: 'PATCH',
3998
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
3999
- path: {
4000
- 'id': id,
4001
- 'org': org,
4002
- 'username': username
4003
- },
4004
- body: requestBody,
4005
- mediaType: 'application/json'
4006
- });
4007
- }
4008
- /**
4009
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4010
- * @param id A UUID string identifying this data set.
4011
- * @param org
4012
- * @param username
4013
- * @returns void
4014
- * @throws ApiError
4015
- */
4016
- static aiFinetuningV1OrgUserDatasetsDestroy(id, org, username) {
4017
- return request(OpenAPI, {
4018
- method: 'DELETE',
4019
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
4020
- path: {
4021
- 'id': id,
4022
- 'org': org,
4023
- 'username': username
4024
- }
4025
- });
4026
- }
4027
- /**
4028
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4029
- * @param org
4030
- * @param username
4031
- * @param baseModelName
4032
- * @param dataset
4033
- * @param dateCreated
4034
- * @param fineTunedModel
4035
- * @param lastModified
4036
- * @param ordering Which field to use when ordering the results.
4037
- * @param page A page number within the paginated result set.
4038
- * @param pageSize Number of results to return per page.
4039
- * @param preprocessDataset
4040
- * @param provider * `openai` - Openai
4041
- * @param search A search term.
4042
- * @param status * `pending` - Pending
4043
- * * `processing` - Processing
4044
- * * `completed` - Completed
4045
- * * `cancelled` - Cancelled
4046
- * * `failed` - Failed
4047
- * @returns PaginatedTrainingList
4048
- * @throws ApiError
4049
- */
4050
- static aiFinetuningV1OrgUserTrainingsList(org, username, baseModelName, dataset, dateCreated, fineTunedModel, lastModified, ordering, page, pageSize, preprocessDataset, provider, search, status) {
4051
- return request(OpenAPI, {
4052
- method: 'GET',
4053
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
4054
- path: {
4055
- 'org': org,
4056
- 'username': username
4057
- },
4058
- query: {
4059
- 'base_model_name': baseModelName,
4060
- 'dataset': dataset,
4061
- 'date_created': dateCreated,
4062
- 'fine_tuned_model': fineTunedModel,
4063
- 'last_modified': lastModified,
4064
- 'ordering': ordering,
4065
- 'page': page,
4066
- 'page_size': pageSize,
4067
- 'preprocess_dataset': preprocessDataset,
4068
- 'provider': provider,
4069
- 'search': search,
4070
- 'status': status
4071
- }
4072
- });
4073
- }
4074
- /**
4075
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4076
- * @param org
4077
- * @param username
4078
- * @param requestBody
4079
- * @returns TrainingCreate
4080
- * @throws ApiError
4081
- */
4082
- static aiFinetuningV1OrgUserTrainingsCreate(org, username, requestBody) {
4083
- return request(OpenAPI, {
4084
- method: 'POST',
4085
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
4086
- path: {
4087
- 'org': org,
4088
- 'username': username
4089
- },
4090
- body: requestBody,
4091
- mediaType: 'application/json'
4092
- });
4093
- }
4094
- /**
4095
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4096
- * @param id A UUID string identifying this training.
4097
- * @param org
4098
- * @param username
4099
- * @returns Training
4100
- * @throws ApiError
4101
- */
4102
- static aiFinetuningV1OrgUserTrainingsRetrieve(id, org, username) {
2752
+ static aiAnalyticsOrgsUsersUserMetricsRetrieve(org, userId, groupBy = 'day', mentorId) {
4103
2753
  return request(OpenAPI, {
4104
2754
  method: 'GET',
4105
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
2755
+ url: '/api/ai-analytics/orgs/{org}/users/{user_id}/user-metrics/',
4106
2756
  path: {
4107
- 'id': id,
4108
2757
  'org': org,
4109
- 'username': username
2758
+ 'user_id': userId
2759
+ },
2760
+ query: {
2761
+ 'group_by': groupBy,
2762
+ 'mentor_id': mentorId
2763
+ },
2764
+ errors: {
2765
+ 404: `Organization not found`
4110
2766
  }
4111
2767
  });
4112
2768
  }
4113
2769
  /**
4114
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4115
- * @param id A UUID string identifying this training.
2770
+ * Retrieve user distribution data for pie charts.
2771
+ *
2772
+ * This endpoint returns data on the distribution of new versus returning users
2773
+ * within a specified date range, including both counts and percentages,
2774
+ * suitable for pie chart visualization.
2775
+ *
2776
+ * Args:
2777
+ * request: The HTTP request containing filter query parameters.
2778
+ * org: Organization key identifier.
2779
+ *
2780
+ * Returns:
2781
+ * Response: Distribution of new versus returning users with counts and percentages.
2782
+ *
2783
+ * Raises:
2784
+ * NotFound: If the specified organization does not exist.
2785
+ * BadRequest: If the provided parameters are invalid.
2786
+ *
2787
+ * Query Parameters:
2788
+ * start_date (str): Start date for filtering (YYYY-MM-DD) - required.
2789
+ * end_date (str): End date for filtering (YYYY-MM-DD) - required.
2790
+ * mentor_id (str): Filter by mentor unique ID.
2791
+ * @param endDate End date for filtering (YYYY-MM-DD)
4116
2792
  * @param org
4117
- * @param username
4118
- * @param requestBody
4119
- * @returns TrainingCreate
2793
+ * @param startDate Start date for filtering (YYYY-MM-DD)
2794
+ * @param userId
2795
+ * @param mentorId Filter by mentor unique ID
2796
+ * @returns PieChartData
4120
2797
  * @throws ApiError
4121
2798
  */
4122
- static aiFinetuningV1OrgUserTrainingsUpdate(id, org, username, requestBody) {
2799
+ static aiAnalyticsOrgsUsersUserMetricsPieChartRetrieve(endDate, org, startDate, userId, mentorId) {
4123
2800
  return request(OpenAPI, {
4124
- method: 'PUT',
4125
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
2801
+ method: 'GET',
2802
+ url: '/api/ai-analytics/orgs/{org}/users/{user_id}/user-metrics-pie-chart/',
4126
2803
  path: {
4127
- 'id': id,
4128
2804
  'org': org,
4129
- 'username': username
2805
+ 'user_id': userId
4130
2806
  },
4131
- body: requestBody,
4132
- mediaType: 'application/json'
4133
- });
4134
- }
4135
- /**
4136
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4137
- * @param id A UUID string identifying this training.
4138
- * @param org
4139
- * @param username
4140
- * @param requestBody
4141
- * @returns TrainingCreate
4142
- * @throws ApiError
4143
- */
4144
- static aiFinetuningV1OrgUserTrainingsPartialUpdate(id, org, username, requestBody) {
4145
- return request(OpenAPI, {
4146
- method: 'PATCH',
4147
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
4148
- path: {
4149
- 'id': id,
4150
- 'org': org,
4151
- 'username': username
2807
+ query: {
2808
+ 'end_date': endDate,
2809
+ 'mentor_id': mentorId,
2810
+ 'start_date': startDate
4152
2811
  },
4153
- body: requestBody,
4154
- mediaType: 'application/json'
4155
- });
4156
- }
4157
- /**
4158
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
4159
- * @param id A UUID string identifying this training.
4160
- * @param org
4161
- * @param username
4162
- * @returns void
4163
- * @throws ApiError
4164
- */
4165
- static aiFinetuningV1OrgUserTrainingsDestroy(id, org, username) {
4166
- return request(OpenAPI, {
4167
- method: 'DELETE',
4168
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
4169
- path: {
4170
- 'id': id,
4171
- 'org': org,
4172
- 'username': username
2812
+ errors: {
2813
+ 400: `Invalid parameters`,
2814
+ 404: `Organization not found`
4173
2815
  }
4174
2816
  });
4175
2817
  }
4176
2818
  /**
4177
- * Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
4178
- * Filtering and pagination is allowed.
2819
+ * Retrieve user sentiment distribution.
2820
+ *
2821
+ * This endpoint returns data on the distribution of user sentiments (positive,
2822
+ * negative, neutral) within a specified date range, expressed as percentages.
2823
+ *
2824
+ * Args:
2825
+ * request: The HTTP request containing filter query parameters.
2826
+ * org: Organization key identifier.
4179
2827
  *
4180
- * NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
4181
- * training list endpoint.
4182
2828
  * Returns:
4183
- * Response: A paginated response containing the serialized fine-tuned models.
2829
+ * Response: Sentiment distribution percentages and total sentiment count.
2830
+ *
2831
+ * Raises:
2832
+ * NotFound: If the specified organization does not exist.
2833
+ * BadRequest: If the provided parameters are invalid.
2834
+ *
2835
+ * Query Parameters:
2836
+ * start_date (str): Start date for filtering (YYYY-MM-DD) - required.
2837
+ * end_date (str): End date for filtering (YYYY-MM-DD) - required.
2838
+ * @param endDate End date for filtering (YYYY-MM-DD)
4184
2839
  * @param org
4185
- * @param username
4186
- * @returns Training
2840
+ * @param startDate Start date for filtering (YYYY-MM-DD)
2841
+ * @param userId
2842
+ * @param groupBy
2843
+ * @returns SentimentSummary
4187
2844
  * @throws ApiError
4188
2845
  */
4189
- static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve(org, username) {
2846
+ static aiAnalyticsOrgsUsersUserSentimentRetrieve(endDate, org, startDate, userId, groupBy = 'day') {
4190
2847
  return request(OpenAPI, {
4191
2848
  method: 'GET',
4192
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
2849
+ url: '/api/ai-analytics/orgs/{org}/users/{user_id}/user-sentiment/',
4193
2850
  path: {
4194
2851
  'org': org,
4195
- 'username': username
2852
+ 'user_id': userId
2853
+ },
2854
+ query: {
2855
+ 'end_date': endDate,
2856
+ 'group_by': groupBy,
2857
+ 'start_date': startDate
2858
+ },
2859
+ errors: {
2860
+ 400: `Invalid parameters`,
2861
+ 404: `Organization not found`
4196
2862
  }
4197
2863
  });
4198
2864
  }
@@ -18734,347 +17400,158 @@ class ReportsService {
18734
17400
 
18735
17401
  class SearchService {
18736
17402
  /**
18737
- * Legacy endpoint for backward compatibility with older mentor search implementations.
18738
- *
18739
- * This endpoint provides the same functionality as MentorSearchView but supports
18740
- * older pagination parameters and only returns publicly available mentors
18741
- * (VIEWABLE_BY_ANYONE).
18742
- *
18743
- * Query Parameters:
18744
- * # Identification parameters (for detail view)
18745
- * id (int, optional): Retrieve a specific mentor by ID
18746
- * unique_id (uuid, optional): Retrieve a specific mentor by UUID
18747
- *
18748
- * # Legacy pagination parameters
18749
- * page (int, optional): Page number (1-based, used with page_size)
18750
- * page_size (int, optional): Number of results per page
18751
- *
18752
- * # Standard pagination parameters (also supported)
18753
- * limit (int, optional): Number of results per page
18754
- * offset (int, optional): Starting position for pagination
18755
- *
18756
- * # Other parameters
18757
- * Same as MentorSearchView
18758
- *
18759
- * # Special parameters
18760
- * filter_facet (any, optional): If present, return only facets without results
18761
- * created_by (str, optional): Filter mentors created by specific user
18762
- *
18763
- * Returns:
18764
- * Same format as MentorSearchView, but only includes publicly available mentors.
18765
- *
18766
- * Error Responses:
18767
- * 400 Bad Request: If the request parameters are invalid
18768
- * 403 Forbidden: If the requested mentor exists but is not publicly available
18769
- * 404 Not Found: If the requested mentor doesn't exist
18770
- * 500 Internal Server Error: If an unexpected error occurs
18771
- *
18772
- * Notes:
18773
- * - This endpoint is maintained for backward compatibility
18774
- * - Only returns mentors with visibility set to VIEWABLE_BY_ANYONE
18775
- * - Supports both old-style (page/page_size) and new-style (limit/offset) pagination
18776
- * @returns any No response body
17403
+ * Legacy endpoint for backward compatible mentor search
17404
+ * @param audience Filter by target audience
17405
+ * @param category Filter by mentor category
17406
+ * @param createdBy Filter mentors created by specific user
17407
+ * @param filterFacet If present, return only facets without results
17408
+ * @param id Retrieve a specific mentor by ID
17409
+ * @param limit Number of results per page
17410
+ * @param llm Filter by language model type
17411
+ * @param offset Starting position for pagination
17412
+ * @param orderBy Field to sort results by ('created_at', 'recently_accessed_at')
17413
+ * @param orderDirection Sort direction ('asc' or 'desc')
17414
+ * @param page Page number (1-based, used with page_size)
17415
+ * @param pageSize Number of results per page
17416
+ * @param query Search term to filter mentors by name or description
17417
+ * @param tags Filter by tags
17418
+ * @param tenant Filter by tenant/organization
17419
+ * @param uniqueId Retrieve a specific mentor by UUID
17420
+ * @returns any
17421
+ * @throws ApiError
17422
+ */
17423
+ static searchAiSearchRetrieve(audience, category, createdBy, filterFacet = false, id, limit = 12, llm, offset, orderBy, orderDirection = 'desc', page, pageSize, query, tags, tenant, uniqueId) {
17424
+ return request(OpenAPI, {
17425
+ method: 'GET',
17426
+ url: '/api/search/ai-search/',
17427
+ query: {
17428
+ 'audience': audience,
17429
+ 'category': category,
17430
+ 'created_by': createdBy,
17431
+ 'filter_facet': filterFacet,
17432
+ 'id': id,
17433
+ 'limit': limit,
17434
+ 'llm': llm,
17435
+ 'offset': offset,
17436
+ 'order_by': orderBy,
17437
+ 'order_direction': orderDirection,
17438
+ 'page': page,
17439
+ 'page_size': pageSize,
17440
+ 'query': query,
17441
+ 'tags': tags,
17442
+ 'tenant': tenant,
17443
+ 'unique_id': uniqueId
17444
+ }
17445
+ });
17446
+ }
17447
+ /**
17448
+ * Search and filter content across the learning catalog
17449
+ * @param allowSkillSearch Enable skill-based search
17450
+ * @param alphabetical Sort alphabetically by name
17451
+ * @param certificate Filter by certificate type
17452
+ * @param content Content types to include in results
17453
+ * @param courseId Filter by specific course ID
17454
+ * @param duration Filter by course duration range
17455
+ * @param language Filter by content language
17456
+ * @param level Filter by difficulty level
17457
+ * @param limit Number of results per page
17458
+ * @param offset Starting position for pagination
17459
+ * @param orderAscending Sort direction
17460
+ * @param orderBy Field to sort results by
17461
+ * @param pathwayId Filter by specific pathway ID
17462
+ * @param price Filter by price/audit status
17463
+ * @param programId Filter by specific program ID
17464
+ * @param programType Filter by program type
17465
+ * @param promotion Filter by promotion status
17466
+ * @param query Search term to filter content by name or description
17467
+ * @param resourceType Filter by resource type
17468
+ * @param returnFacet Include facet data in response
17469
+ * @param returnItems Include items in programs/pathways
17470
+ * @param selfPaced Filter by course format
17471
+ * @param skillId Filter by specific skill ID
17472
+ * @param skills Filter by skills
17473
+ * @param subject Filter by subject areas
17474
+ * @param tags Filter by tags
17475
+ * @param tenant Filter by tenant/organization
17476
+ * @param topics Filter by topic areas
17477
+ * @param updateFacet Force facet update
17478
+ * @returns any
18777
17479
  * @throws ApiError
18778
17480
  */
18779
- static searchAiSearchRetrieve() {
17481
+ static searchCatalogRetrieve(allowSkillSearch = false, alphabetical = false, certificate, content, courseId, duration, language, level, limit = 12, offset, orderAscending = false, orderBy, pathwayId, price, programId, programType, promotion, query, resourceType, returnFacet = true, returnItems = false, selfPaced, skillId, skills, subject, tags, tenant, topics, updateFacet) {
18780
17482
  return request(OpenAPI, {
18781
17483
  method: 'GET',
18782
- url: '/api/search/ai-search/'
17484
+ url: '/api/search/catalog/',
17485
+ query: {
17486
+ 'allow_skill_search': allowSkillSearch,
17487
+ 'alphabetical': alphabetical,
17488
+ 'certificate': certificate,
17489
+ 'content': content,
17490
+ 'course_id': courseId,
17491
+ 'duration': duration,
17492
+ 'language': language,
17493
+ 'level': level,
17494
+ 'limit': limit,
17495
+ 'offset': offset,
17496
+ 'order_ascending': orderAscending,
17497
+ 'order_by': orderBy,
17498
+ 'pathway_id': pathwayId,
17499
+ 'price': price,
17500
+ 'program_id': programId,
17501
+ 'program_type': programType,
17502
+ 'promotion': promotion,
17503
+ 'query': query,
17504
+ 'resource_type': resourceType,
17505
+ 'return_facet': returnFacet,
17506
+ 'return_items': returnItems,
17507
+ 'self_paced': selfPaced,
17508
+ 'skill_id': skillId,
17509
+ 'skills': skills,
17510
+ 'subject': subject,
17511
+ 'tags': tags,
17512
+ 'tenant': tenant,
17513
+ 'topics': topics,
17514
+ 'update_facet': updateFacet
17515
+ }
18783
17516
  });
18784
17517
  }
18785
17518
  /**
18786
- * Search and filter content across the learning catalog.
18787
- *
18788
- * This endpoint provides a powerful search interface for discovering content across
18789
- * multiple content types (courses, programs, pathways, skills, roles, resources).
18790
- * It supports full-text search, faceted filtering, and pagination.
18791
- *
18792
- * Query Parameters:
18793
- * query (str, optional): Search term to filter content by name or description
18794
- * content (list, optional): Content types to include in results
18795
- * (courses, programs, pathways, skills, roles, resources)
18796
- * Default: ["programs", "courses", "pathways", "skills"]
18797
- *
18798
- * # Filtering parameters
18799
- * course_id (str, optional): Filter by specific course ID
18800
- * program_id (str, optional): Filter by specific program ID
18801
- * pathway_id (str, optional): Filter by specific pathway ID
18802
- * skill_id (str, optional): Filter by specific skill ID
18803
- * subject (list, optional): Filter by subject areas
18804
- * tenant (list, optional): Filter by tenant/organization
18805
- * topics (list, optional): Filter by topic areas
18806
- * tags (list, optional): Filter by tags
18807
- * level (list, optional): Filter by difficulty level
18808
- * self_paced (list, optional): Filter by course format (self-paced, instructor-led)
18809
- * promotion (list, optional): Filter by promotion status
18810
- * language (list, optional): Filter by content language
18811
- * certificate (list, optional): Filter by certificate type
18812
- * program_type (list, optional): Filter by program type
18813
- * duration (list, optional): Filter by course duration range
18814
- * price (str, optional): Filter by price/audit status
18815
- * resource_type (list, optional): Filter by resource type
18816
- * skills (list, optional): Filter by skills
18817
- *
18818
- * # Sorting and pagination
18819
- * order_by (str, optional): Field to sort results by
18820
- * order_ascending (bool, optional): Sort direction (default: false)
18821
- * alphabetical (bool, optional): Sort alphabetically by name (default: false)
18822
- * limit (int, optional): Number of results per page (default: 12, max: 100)
18823
- * offset (int, optional): Starting position for pagination
18824
- *
18825
- * # Response options
18826
- * return_facet (bool, optional): Include facet data in response (default: true)
18827
- * return_items (bool, optional): Include items in programs/pathways (default: false)
18828
- * allow_skill_search (bool, optional): Enable skill-based search (default: false)
18829
- * update_facet (str, optional): Force facet update
18830
- *
18831
- * Returns:
18832
- * A JSON response containing:
18833
- * - results: List of content items with metadata
18834
- * - count: Total number of matching items
18835
- * - next: URL for the next page of results (if available)
18836
- * - previous: URL for the previous page of results (if available)
18837
- * - current_page: Current page number
18838
- * - total_pages: Total number of pages
18839
- * - facets: Aggregated counts for each filter category (if requested)
18840
- *
18841
- * Each content item contains type-specific fields:
18842
- * - Courses:
18843
- * {
18844
- * "id": 123,
18845
- * "type": "course",
18846
- * "course_id": "CS101",
18847
- * "name": "Introduction to Computer Science",
18848
- * "description": "Learn the fundamentals of computer science",
18849
- * "short_description": "CS fundamentals",
18850
- * "image_url": "https://example.com/images/cs101.jpg",
18851
- * "level": "Beginner",
18852
- * "subject": "Computer Science",
18853
- * "topics": ["Programming", "Algorithms"],
18854
- * "tags": ["python", "coding"],
18855
- * "language": "English",
18856
- * "tenant": "example-university",
18857
- * "self_paced": true,
18858
- * "duration": "6 weeks",
18859
- * "certificate": "Professional Certificate",
18860
- * "price": "Free",
18861
- * "skills": [
18862
- * {"id": 1, "name": "Python Programming"},
18863
- * {"id": 2, "name": "Algorithms"}
18864
- * ],
18865
- * "url": "https://example.com/courses/cs101"
18866
- * }
18867
- *
18868
- * - Programs:
18869
- * {
18870
- * "id": 456,
18871
- * "type": "program",
18872
- * "program_id": "PROG123",
18873
- * "name": "Data Science Program",
18874
- * "description": "Comprehensive data science curriculum",
18875
- * "short_description": "Learn data science",
18876
- * "image_url": "https://example.com/images/datascience.jpg",
18877
- * "level": "Intermediate",
18878
- * "subject": "Data Science",
18879
- * "topics": ["Machine Learning", "Statistics"],
18880
- * "program_type": "Professional Certificate",
18881
- * "courses": [
18882
- * {"id": 123, "name": "Introduction to Python"},
18883
- * {"id": 124, "name": "Statistics for Data Science"}
18884
- * ],
18885
- * "url": "https://example.com/programs/prog123"
18886
- * }
18887
- *
18888
- * - Pathways:
18889
- * {
18890
- * "id": 789,
18891
- * "type": "pathway",
18892
- * "pathway_id": "PATH456",
18893
- * "name": "Software Engineering Career Path",
18894
- * "description": "Complete pathway to become a software engineer",
18895
- * "image_url": "https://example.com/images/swe-path.jpg",
18896
- * "programs": [
18897
- * {"id": 456, "name": "Programming Fundamentals"},
18898
- * {"id": 457, "name": "Web Development"}
18899
- * ],
18900
- * "url": "https://example.com/pathways/path456"
18901
- * }
18902
- *
18903
- * - Skills:
18904
- * {
18905
- * "id": 321,
18906
- * "type": "skill",
18907
- * "name": "Machine Learning",
18908
- * "description": "Building systems that learn from data",
18909
- * "courses": [
18910
- * {"id": 125, "name": "Machine Learning Fundamentals"}
18911
- * ],
18912
- * "related_skills": [
18913
- * {"id": 322, "name": "Deep Learning"}
18914
- * ]
18915
- * }
18916
- *
18917
- * - Roles:
18918
- * {
18919
- * "id": 654,
18920
- * "type": "role",
18921
- * "name": "Data Scientist",
18922
- * "description": "Professional who analyzes and interprets complex data",
18923
- * "skills": [
18924
- * {"id": 321, "name": "Machine Learning"},
18925
- * {"id": 323, "name": "Data Analysis"}
18926
- * ],
18927
- * "recommended_courses": [
18928
- * {"id": 125, "name": "Machine Learning Fundamentals"}
18929
- * ]
18930
- * }
18931
- *
18932
- * - Resources:
18933
- * {
18934
- * "id": 987,
18935
- * "type": "resource",
18936
- * "name": "Python Cheat Sheet",
18937
- * "description": "Quick reference guide for Python",
18938
- * "resource_type": "PDF",
18939
- * "url": "https://example.com/resources/python-cheatsheet.pdf",
18940
- * "topics": ["Programming", "Python"]
18941
- * }
18942
- *
18943
- * Error Responses:
18944
- * 500 Internal Server Error: If an unexpected error occurs during processing
18945
- *
18946
- * Notes:
18947
- * - Results are cached for performance
18948
- * - The 'resources' content type is only included by default if IBL_ENABLE_RESOURCES_IN_FACET is true
18949
- * - For debugging, add ?debug=true to see detailed information about skill matching
18950
- * @returns any No response body
18951
- * @throws ApiError
18952
- */
18953
- static searchCatalogRetrieve() {
18954
- return request(OpenAPI, {
18955
- method: 'GET',
18956
- url: '/api/search/catalog/'
18957
- });
18958
- }
18959
- /**
18960
- * Search and filter AI mentors across the platform.
18961
- *
18962
- * This endpoint provides a powerful search interface for discovering AI mentors
18963
- * with support for filtering, pagination, and detailed mentor information.
18964
- *
18965
- * Query Parameters:
18966
- * # Identification parameters (for detail view)
18967
- * id (int, optional): Retrieve a specific mentor by ID
18968
- * unique_id (uuid, optional): Retrieve a specific mentor by UUID
18969
- *
18970
- * # Search and filtering parameters
18971
- * query (str, optional): Search term to filter mentors by name or description
18972
- * tenant (str, optional): Filter by tenant/organization
18973
- * llm (list, optional): Filter by language model type
18974
- * audience (list, optional): Filter by target audience
18975
- * category (list, optional): Filter by mentor category
18976
- * tags (list, optional): Filter by tags
18977
- * created_by (str, optional): Filter mentors created by specific user
18978
- *
18979
- * # Sorting and pagination
18980
- * order_by (str, optional): Field to sort results by ('created_at', 'recently_accessed_at')
18981
- * order_direction (str, optional): Sort direction ('asc' or 'desc', default: 'desc')
18982
- * limit (int, optional): Number of results per page (default: 12, max: 100)
18983
- * offset (int, optional): Starting position for pagination
18984
- *
18985
- * Returns:
18986
- * For detail view (when id or unique_id is provided):
18987
- * A JSON response containing a single mentor's details:
18988
- * {
18989
- * "id": 123,
18990
- * "unique_id": "550e8400-e29b-41d4-a716-446655440000",
18991
- * "name": "Professor Smith",
18992
- * "description": "AI mentor specializing in computer science",
18993
- * "image_url": "https://example.com/images/prof-smith.jpg",
18994
- * "llm": {
18995
- * "id": 1,
18996
- * "name": "GPT-4",
18997
- * "description": "Advanced language model"
18998
- * },
18999
- * "audience": {
19000
- * "id": 2,
19001
- * "name": "College Students",
19002
- * "description": "For university-level learners"
19003
- * },
19004
- * "category": "Computer Science",
19005
- * "tags": ["programming", "algorithms", "data structures"],
19006
- * "created_at": "2023-01-15T12:00:00Z",
19007
- * "recently_accessed_at": "2023-06-20T15:30:00Z",
19008
- * "platform": {
19009
- * "id": 1,
19010
- * "name": "Example University",
19011
- * "key": "example-university"
19012
- * },
19013
- * "visibility": "public",
19014
- * "settings": {
19015
- * "temperature": 0.7,
19016
- * "max_tokens": 1024,
19017
- * "system_prompt": "You are Professor Smith, an expert in computer science..."
19018
- * }
19019
- * }
19020
- *
19021
- * For list view:
19022
- * A JSON response containing:
19023
- * {
19024
- * "results": [
19025
- * {
19026
- * "id": 123,
19027
- * "unique_id": "550e8400-e29b-41d4-a716-446655440000",
19028
- * "name": "Professor Smith",
19029
- * "description": "AI mentor specializing in computer science",
19030
- * "image_url": "https://example.com/images/prof-smith.jpg",
19031
- * "llm": {"id": 1, "name": "GPT-4"},
19032
- * "audience": {"id": 2, "name": "College Students"},
19033
- * "category": "Computer Science",
19034
- * "tags": ["programming", "algorithms"],
19035
- * "created_at": "2023-01-15T12:00:00Z",
19036
- * "recently_accessed_at": "2023-06-20T15:30:00Z"
19037
- * },
19038
- * // Additional mentor objects...
19039
- * ],
19040
- * "count": 50,
19041
- * "next": "https://api.example.com/api/search/mentors/?limit=12&offset=12",
19042
- * "previous": null,
19043
- * "current_page": 1,
19044
- * "num_pages": 5,
19045
- * "facets": {
19046
- * "llm": [
19047
- * {"key": "GPT-4", "doc_count": 30},
19048
- * {"key": "Claude", "doc_count": 20}
19049
- * ],
19050
- * "audience": [
19051
- * {"key": "College Students", "doc_count": 35},
19052
- * {"key": "Professionals", "doc_count": 15}
19053
- * ],
19054
- * "category": [
19055
- * {"key": "Computer Science", "doc_count": 25},
19056
- * {"key": "Mathematics", "doc_count": 15},
19057
- * {"key": "Business", "doc_count": 10}
19058
- * ]
19059
- * }
19060
- * }
19061
- *
19062
- * Error Responses:
19063
- * 400 Bad Request: If the request parameters are invalid
19064
- * 404 Not Found: If the requested mentor doesn't exist
19065
- * 500 Internal Server Error: If an unexpected error occurs
19066
- *
19067
- * Notes:
19068
- * - Results are cached for performance
19069
- * - Public mentors are visible to all users
19070
- * - Private mentors are only visible to authorized users
19071
- * @returns any No response body
19072
- * @throws ApiError
19073
- */
19074
- static searchMentorsRetrieve() {
19075
- return request(OpenAPI, {
19076
- method: 'GET',
19077
- url: '/api/search/mentors/'
17519
+ * Get AI mentors based on search criteria
17520
+ * @param audience Filter by target audience
17521
+ * @param category Filter by mentor category
17522
+ * @param createdBy Filter mentors created by specific user
17523
+ * @param id Retrieve a specific mentor by ID
17524
+ * @param limit Number of results per page
17525
+ * @param llm Filter by language model type
17526
+ * @param offset Starting position for pagination
17527
+ * @param orderBy Field to sort results by ('created_at', 'recently_accessed_at')
17528
+ * @param orderDirection Sort direction ('asc' or 'desc')
17529
+ * @param query Search term to filter mentors by name or description
17530
+ * @param tags Filter by tags
17531
+ * @param tenant Filter by tenant/organization
17532
+ * @param uniqueId Retrieve a specific mentor by UUID
17533
+ * @returns any
17534
+ * @throws ApiError
17535
+ */
17536
+ static searchMentorsRetrieve(audience, category, createdBy, id, limit = 12, llm, offset, orderBy, orderDirection = 'desc', query, tags, tenant, uniqueId) {
17537
+ return request(OpenAPI, {
17538
+ method: 'GET',
17539
+ url: '/api/search/mentors/',
17540
+ query: {
17541
+ 'audience': audience,
17542
+ 'category': category,
17543
+ 'created_by': createdBy,
17544
+ 'id': id,
17545
+ 'limit': limit,
17546
+ 'llm': llm,
17547
+ 'offset': offset,
17548
+ 'order_by': orderBy,
17549
+ 'order_direction': orderDirection,
17550
+ 'query': query,
17551
+ 'tags': tags,
17552
+ 'tenant': tenant,
17553
+ 'unique_id': uniqueId
17554
+ }
19078
17555
  });
19079
17556
  }
19080
17557
  /**
@@ -19165,48 +17642,47 @@ class SearchService {
19165
17642
  });
19166
17643
  }
19167
17644
  /**
19168
- * Search and filter AI mentors for a specific user within a tenant.
19169
- *
19170
- * This endpoint extends the base mentor search functionality but filters results
19171
- * to only show mentors that are available to a specific user within a specific
19172
- * organization/tenant.
19173
- *
19174
- * Path Parameters:
19175
- * org (str): The organization/tenant identifier
19176
- * username (str): The username to filter mentors for
19177
- *
19178
- * Query Parameters:
19179
- * Same as MentorSearchView, plus:
19180
- *
19181
- * # Identification parameters (for detail view)
19182
- * id (int, optional): Retrieve a specific mentor by ID
19183
- * unique_id (uuid, optional): Retrieve a specific mentor by UUID
19184
- * created_by (str, optional): Filter mentors created by specific user
19185
- *
19186
- * Returns:
19187
- * Same format as MentorSearchView, but filtered to only include mentors
19188
- * that the specified user has access to within the specified organization.
19189
- *
19190
- * Error Responses:
19191
- * 400 Bad Request: If the request parameters are invalid
19192
- * 404 Not Found: If the requested mentor doesn't exist or user doesn't have access
19193
- * 500 Internal Server Error: If an unexpected error occurs
19194
- *
19195
- * Access Control:
19196
- * - Requires platform membership (though currently not enforced)
19197
- * - Results are filtered based on user's permissions within the organization
17645
+ * Get AI mentors for a specific tenant and user
19198
17646
  * @param org
19199
17647
  * @param username
19200
- * @returns any No response body
17648
+ * @param audience Filter by target audience
17649
+ * @param category Filter by mentor category
17650
+ * @param createdBy Filter mentors created by specific user
17651
+ * @param id Retrieve a specific mentor by ID
17652
+ * @param limit Number of results per page
17653
+ * @param llm Filter by language model type
17654
+ * @param offset Starting position for pagination
17655
+ * @param orderBy Field to sort results by ('created_at', 'recently_accessed_at')
17656
+ * @param orderDirection Sort direction ('asc' or 'desc')
17657
+ * @param query Search term to filter mentors by name or description
17658
+ * @param tags Filter by tags
17659
+ * @param tenant Filter by tenant/organization
17660
+ * @param uniqueId Retrieve a specific mentor by UUID
17661
+ * @returns any
19201
17662
  * @throws ApiError
19202
17663
  */
19203
- static searchOrgsUsersMentorsRetrieve(org, username) {
17664
+ static searchOrgsUsersMentorsRetrieve(org, username, audience, category, createdBy, id, limit = 12, llm, offset, orderBy, orderDirection = 'desc', query, tags, tenant, uniqueId) {
19204
17665
  return request(OpenAPI, {
19205
17666
  method: 'GET',
19206
17667
  url: '/api/search/orgs/{org}/users/{username}/mentors/',
19207
17668
  path: {
19208
17669
  'org': org,
19209
17670
  'username': username
17671
+ },
17672
+ query: {
17673
+ 'audience': audience,
17674
+ 'category': category,
17675
+ 'created_by': createdBy,
17676
+ 'id': id,
17677
+ 'limit': limit,
17678
+ 'llm': llm,
17679
+ 'offset': offset,
17680
+ 'order_by': orderBy,
17681
+ 'order_direction': orderDirection,
17682
+ 'query': query,
17683
+ 'tags': tags,
17684
+ 'tenant': tenant,
17685
+ 'unique_id': uniqueId
19210
17686
  }
19211
17687
  });
19212
17688
  }
@@ -19273,19 +17749,83 @@ class SearchService {
19273
17749
  });
19274
17750
  }
19275
17751
  /**
19276
- * Determine whether to serve a detail view or a list view.
19277
- * If any detail-identifying parameters are present (course_id, program_id, etc.)
19278
- * the detail view is returned; otherwise the aggregated list view is returned.
17752
+ * Get personalized content for a specific user
19279
17753
  * @param username
19280
- * @returns any No response body
17754
+ * @param allowSkillSearch Enable skill-based search
17755
+ * @param alphabetical Sort alphabetically by name
17756
+ * @param certificate Filter by certificate type
17757
+ * @param content Content types to include in results
17758
+ * @param courseId Retrieve a specific course by ID
17759
+ * @param duration Filter by course duration range
17760
+ * @param language Filter by content language
17761
+ * @param level Filter by difficulty level
17762
+ * @param limit Number of results per page
17763
+ * @param offset Starting position for pagination
17764
+ * @param orderAscending Sort direction
17765
+ * @param orderBy Field to sort results by
17766
+ * @param pathwayId Retrieve a specific pathway by ID
17767
+ * @param price Filter by price/audit status
17768
+ * @param programId Retrieve a specific program by ID
17769
+ * @param programType Filter by program type
17770
+ * @param promotion Filter by promotion status
17771
+ * @param query Search term to filter content by name or description
17772
+ * @param recommended Show only recommended content
17773
+ * @param resourceId Retrieve a specific resource by ID
17774
+ * @param resourceType Filter by resource type
17775
+ * @param returnFacet Include facet data in response
17776
+ * @param returnItems Include items in programs/pathways
17777
+ * @param roleId Retrieve a specific role by ID
17778
+ * @param selfPaced Filter by course format
17779
+ * @param skillId Retrieve a specific skill by ID
17780
+ * @param skills Filter by skills
17781
+ * @param subject Filter by subject areas
17782
+ * @param tags Filter by tags
17783
+ * @param tenant Filter by tenant/organization
17784
+ * @param topics Filter by topic areas
17785
+ * @param updateFacet Force facet update
17786
+ * @returns any
19281
17787
  * @throws ApiError
19282
17788
  */
19283
- static searchPersonalizedCatalogRetrieve(username) {
17789
+ static searchPersonalizedCatalogRetrieve(username, allowSkillSearch = false, alphabetical = false, certificate, content, courseId, duration, language, level, limit = 12, offset, orderAscending = false, orderBy, pathwayId, price, programId, programType, promotion, query, recommended = false, resourceId, resourceType, returnFacet = true, returnItems = false, roleId, selfPaced, skillId, skills, subject, tags, tenant, topics, updateFacet) {
19284
17790
  return request(OpenAPI, {
19285
17791
  method: 'GET',
19286
17792
  url: '/api/search/personalized-catalog/{username}/',
19287
17793
  path: {
19288
17794
  'username': username
17795
+ },
17796
+ query: {
17797
+ 'allow_skill_search': allowSkillSearch,
17798
+ 'alphabetical': alphabetical,
17799
+ 'certificate': certificate,
17800
+ 'content': content,
17801
+ 'course_id': courseId,
17802
+ 'duration': duration,
17803
+ 'language': language,
17804
+ 'level': level,
17805
+ 'limit': limit,
17806
+ 'offset': offset,
17807
+ 'order_ascending': orderAscending,
17808
+ 'order_by': orderBy,
17809
+ 'pathway_id': pathwayId,
17810
+ 'price': price,
17811
+ 'program_id': programId,
17812
+ 'program_type': programType,
17813
+ 'promotion': promotion,
17814
+ 'query': query,
17815
+ 'recommended': recommended,
17816
+ 'resource_id': resourceId,
17817
+ 'resource_type': resourceType,
17818
+ 'return_facet': returnFacet,
17819
+ 'return_items': returnItems,
17820
+ 'role_id': roleId,
17821
+ 'self_paced': selfPaced,
17822
+ 'skill_id': skillId,
17823
+ 'skills': skills,
17824
+ 'subject': subject,
17825
+ 'tags': tags,
17826
+ 'tenant': tenant,
17827
+ 'topics': topics,
17828
+ 'update_facet': updateFacet
19289
17829
  }
19290
17830
  });
19291
17831
  }
@@ -20060,8 +18600,6 @@ class UserGroupsService {
20060
18600
 
20061
18601
  exports.AiAccountService = AiAccountService;
20062
18602
  exports.AiAnalyticsService = AiAnalyticsService;
20063
- exports.AiBotService = AiBotService;
20064
- exports.AiFinetuningService = AiFinetuningService;
20065
18603
  exports.AiIndexService = AiIndexService;
20066
18604
  exports.AiMarketingService = AiMarketingService;
20067
18605
  exports.AiMentorService = AiMentorService;