@iblai/iblai-api 3.63.3-ai-plus → 3.64.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.
- package/dist/index.cjs.js +427 -1400
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +428 -1399
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +427 -1400
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +8 -40
- package/dist/types/models/HumanSupportTicket.d.ts +21 -0
- package/dist/types/models/HumanSupportTicketStatusEnum.d.ts +10 -0
- package/dist/types/models/PaginatedHumanSupportTicketList.d.ts +7 -0
- package/dist/types/models/PaginatedTicketMessageList.d.ts +7 -0
- package/dist/types/models/PatchedHumanSupportTicket.d.ts +21 -0
- package/dist/types/models/PatchedTicketMessage.d.ts +10 -0
- package/dist/types/models/{Provider637Enum.d.ts → ProviderEnum.d.ts} +1 -1
- package/dist/types/models/RetrieverDocumentEmbeddingRequest.d.ts +1 -1
- package/dist/types/models/TicketMessage.d.ts +10 -0
- package/dist/types/models/Voice.d.ts +2 -2
- package/dist/types/services/AiMentorService.d.ts +296 -0
- package/package.json +1 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +8 -40
- package/src/models/HumanSupportTicket.ts +26 -0
- package/src/models/HumanSupportTicketStatusEnum.ts +14 -0
- package/src/models/{PaginatedDataSetList.ts → PaginatedHumanSupportTicketList.ts} +3 -3
- package/src/models/{PaginatedTrainingList.ts → PaginatedTicketMessageList.ts} +3 -3
- package/src/models/PatchedHumanSupportTicket.ts +26 -0
- package/src/models/{PatchedWhatsappUserConfig.ts → PatchedTicketMessage.ts} +5 -5
- package/src/models/{Provider637Enum.ts → ProviderEnum.ts} +1 -1
- package/src/models/RetrieverDocumentEmbeddingRequest.ts +1 -1
- package/src/models/{WhatsappUserConfig.ts → TicketMessage.ts} +5 -5
- package/src/models/Voice.ts +2 -2
- package/src/services/AiMentorService.ts +514 -0
- package/dist/types/models/Bot.d.ts +0 -15
- package/dist/types/models/BotCommand.d.ts +0 -6
- package/dist/types/models/BotCreate.d.ts +0 -12
- package/dist/types/models/DataSet.d.ts +0 -21
- package/dist/types/models/DataSetCreate.d.ts +0 -12
- package/dist/types/models/DataSetStatusEnum.d.ts +0 -12
- package/dist/types/models/DiscordConfig.d.ts +0 -7
- package/dist/types/models/DiscordUserConfig.d.ts +0 -10
- package/dist/types/models/DiscordWebhook.d.ts +0 -6
- package/dist/types/models/PaginatedDataSetList.d.ts +0 -7
- package/dist/types/models/PaginatedTrainingList.d.ts +0 -7
- package/dist/types/models/PatchedBotCommand.d.ts +0 -6
- package/dist/types/models/PatchedBotCreate.d.ts +0 -12
- package/dist/types/models/PatchedDataSet.d.ts +0 -21
- package/dist/types/models/PatchedDiscordConfig.d.ts +0 -7
- package/dist/types/models/PatchedDiscordUserConfig.d.ts +0 -10
- package/dist/types/models/PatchedSlackConfig.d.ts +0 -8
- package/dist/types/models/PatchedSlackUserConfig.d.ts +0 -17
- package/dist/types/models/PatchedTeamsConfig.d.ts +0 -7
- package/dist/types/models/PatchedTrainingCreate.d.ts +0 -31
- package/dist/types/models/PatchedWebexConfig.d.ts +0 -10
- package/dist/types/models/PatchedWhatsappConfig.d.ts +0 -11
- package/dist/types/models/PatchedWhatsappUserConfig.d.ts +0 -10
- package/dist/types/models/Provider05cEnum.d.ts +0 -14
- package/dist/types/models/Provider63aEnum.d.ts +0 -6
- package/dist/types/models/SlackConfig.d.ts +0 -8
- package/dist/types/models/SlackUserConfig.d.ts +0 -17
- package/dist/types/models/SlackWebhook.d.ts +0 -6
- package/dist/types/models/TeamsConfig.d.ts +0 -7
- package/dist/types/models/TeamsWebhook.d.ts +0 -17
- package/dist/types/models/Training.d.ts +0 -41
- package/dist/types/models/TrainingCreate.d.ts +0 -31
- package/dist/types/models/WebexConfig.d.ts +0 -10
- package/dist/types/models/WebexWebhook.d.ts +0 -4
- package/dist/types/models/WhatAppWebHook.d.ts +0 -3
- package/dist/types/models/WhatsappConfig.d.ts +0 -11
- package/dist/types/models/WhatsappUserConfig.d.ts +0 -10
- package/dist/types/services/AiBotService.d.ts +0 -642
- package/dist/types/services/AiFinetuningService.d.ts +0 -232
- package/src/models/Bot.ts +0 -20
- package/src/models/BotCommand.ts +0 -11
- package/src/models/BotCreate.ts +0 -17
- package/src/models/DataSet.ts +0 -26
- package/src/models/DataSetCreate.ts +0 -17
- package/src/models/DataSetStatusEnum.ts +0 -16
- package/src/models/DiscordConfig.ts +0 -12
- package/src/models/DiscordUserConfig.ts +0 -15
- package/src/models/DiscordWebhook.ts +0 -11
- package/src/models/PatchedBotCommand.ts +0 -11
- package/src/models/PatchedBotCreate.ts +0 -17
- package/src/models/PatchedDataSet.ts +0 -26
- package/src/models/PatchedDiscordConfig.ts +0 -12
- package/src/models/PatchedDiscordUserConfig.ts +0 -15
- package/src/models/PatchedSlackConfig.ts +0 -13
- package/src/models/PatchedSlackUserConfig.ts +0 -22
- package/src/models/PatchedTeamsConfig.ts +0 -12
- package/src/models/PatchedTrainingCreate.ts +0 -36
- package/src/models/PatchedWebexConfig.ts +0 -15
- package/src/models/PatchedWhatsappConfig.ts +0 -16
- package/src/models/Provider05cEnum.ts +0 -18
- package/src/models/Provider63aEnum.ts +0 -10
- package/src/models/SlackConfig.ts +0 -13
- package/src/models/SlackUserConfig.ts +0 -22
- package/src/models/SlackWebhook.ts +0 -11
- package/src/models/TeamsConfig.ts +0 -12
- package/src/models/TeamsWebhook.ts +0 -22
- package/src/models/Training.ts +0 -46
- package/src/models/TrainingCreate.ts +0 -36
- package/src/models/WebexConfig.ts +0 -15
- package/src/models/WebexWebhook.ts +0 -9
- package/src/models/WhatAppWebHook.ts +0 -8
- package/src/models/WhatsappConfig.ts +0 -16
- package/src/services/AiBotService.ts +0 -1330
- package/src/services/AiFinetuningService.ts +0 -472
|
@@ -25,6 +25,7 @@ import type { EmailPromptDetail } from '../models/EmailPromptDetail';
|
|
|
25
25
|
import type { EmailPromptSummary } from '../models/EmailPromptSummary';
|
|
26
26
|
import type { FreeUsageCount } from '../models/FreeUsageCount';
|
|
27
27
|
import type { FullCourse } from '../models/FullCourse';
|
|
28
|
+
import type { HumanSupportTicket } from '../models/HumanSupportTicket';
|
|
28
29
|
import type { JobRun } from '../models/JobRun';
|
|
29
30
|
import type { LinkCourseRequest } from '../models/LinkCourseRequest';
|
|
30
31
|
import type { LinkCourseResponse } from '../models/LinkCourseResponse';
|
|
@@ -65,6 +66,7 @@ import type { PaginatedCourseCreationTaskFileList } from '../models/PaginatedCou
|
|
|
65
66
|
import type { PaginatedCourseCreationTaskList } from '../models/PaginatedCourseCreationTaskList';
|
|
66
67
|
import type { PaginatedEdxCourseList } from '../models/PaginatedEdxCourseList';
|
|
67
68
|
import type { PaginatedEmailPromptListList } from '../models/PaginatedEmailPromptListList';
|
|
69
|
+
import type { PaginatedHumanSupportTicketList } from '../models/PaginatedHumanSupportTicketList';
|
|
68
70
|
import type { PaginatedJobRunList } from '../models/PaginatedJobRunList';
|
|
69
71
|
import type { PaginatedMCPServerList } from '../models/PaginatedMCPServerList';
|
|
70
72
|
import type { PaginatedMentorList } from '../models/PaginatedMentorList';
|
|
@@ -74,11 +76,13 @@ import type { PaginatedPeriodicAgentLogList } from '../models/PaginatedPeriodicA
|
|
|
74
76
|
import type { PaginatedPlayWrightScriptList } from '../models/PaginatedPlayWrightScriptList';
|
|
75
77
|
import type { PaginatedSectionList } from '../models/PaginatedSectionList';
|
|
76
78
|
import type { PaginatedSubSectionList } from '../models/PaginatedSubSectionList';
|
|
79
|
+
import type { PaginatedTicketMessageList } from '../models/PaginatedTicketMessageList';
|
|
77
80
|
import type { PaginatedUnitList } from '../models/PaginatedUnitList';
|
|
78
81
|
import type { PaginatedUserEdxMemoryList } from '../models/PaginatedUserEdxMemoryList';
|
|
79
82
|
import type { PaginatedVoiceList } from '../models/PaginatedVoiceList';
|
|
80
83
|
import type { PatchedCallConfiguration } from '../models/PatchedCallConfiguration';
|
|
81
84
|
import type { PatchedCourseCreationTaskFile } from '../models/PatchedCourseCreationTaskFile';
|
|
85
|
+
import type { PatchedHumanSupportTicket } from '../models/PatchedHumanSupportTicket';
|
|
82
86
|
import type { PatchedMCPServer } from '../models/PatchedMCPServer';
|
|
83
87
|
import type { PatchedMentorCategoryGroupCreate } from '../models/PatchedMentorCategoryGroupCreate';
|
|
84
88
|
import type { PatchedMentorCreate } from '../models/PatchedMentorCreate';
|
|
@@ -86,6 +90,7 @@ import type { PatchedPeriodicAgentCreate } from '../models/PatchedPeriodicAgentC
|
|
|
86
90
|
import type { PatchedPlayWrightScript } from '../models/PatchedPlayWrightScript';
|
|
87
91
|
import type { PatchedSection } from '../models/PatchedSection';
|
|
88
92
|
import type { PatchedSubSection } from '../models/PatchedSubSection';
|
|
93
|
+
import type { PatchedTicketMessage } from '../models/PatchedTicketMessage';
|
|
89
94
|
import type { PatchedUnit } from '../models/PatchedUnit';
|
|
90
95
|
import type { PeriodicAgent } from '../models/PeriodicAgent';
|
|
91
96
|
import type { PeriodicAgentCreate } from '../models/PeriodicAgentCreate';
|
|
@@ -118,6 +123,7 @@ import type { StarMentor } from '../models/StarMentor';
|
|
|
118
123
|
import type { SubSection } from '../models/SubSection';
|
|
119
124
|
import type { TaskView } from '../models/TaskView';
|
|
120
125
|
import type { TemplateMentor } from '../models/TemplateMentor';
|
|
126
|
+
import type { TicketMessage } from '../models/TicketMessage';
|
|
121
127
|
import type { ToolResponse } from '../models/ToolResponse';
|
|
122
128
|
import type { TriggerRequest } from '../models/TriggerRequest';
|
|
123
129
|
import type { TriggerResponse } from '../models/TriggerResponse';
|
|
@@ -8958,6 +8964,514 @@ export class AiMentorService {
|
|
|
8958
8964
|
},
|
|
8959
8965
|
});
|
|
8960
8966
|
}
|
|
8967
|
+
/**
|
|
8968
|
+
* ViewSet for managing ticket messages.
|
|
8969
|
+
*
|
|
8970
|
+
* This ViewSet provides endpoints to retrieve, create, and update ticket messages.
|
|
8971
|
+
*
|
|
8972
|
+
* Permissions:
|
|
8973
|
+
* - Platform Admins:
|
|
8974
|
+
* - Platform admins are able to view all ticket messages for the tenant.
|
|
8975
|
+
* - Students:
|
|
8976
|
+
* - Students are able to view all ticket messages for only the ticket they are associated with.
|
|
8977
|
+
* @returns PaginatedTicketMessageList
|
|
8978
|
+
* @throws ApiError
|
|
8979
|
+
*/
|
|
8980
|
+
public static aiMentorOrgsUsersSupportTicketMessagesList({
|
|
8981
|
+
org,
|
|
8982
|
+
userId,
|
|
8983
|
+
page,
|
|
8984
|
+
pageSize,
|
|
8985
|
+
sender,
|
|
8986
|
+
ticket,
|
|
8987
|
+
}: {
|
|
8988
|
+
org: string,
|
|
8989
|
+
userId: string,
|
|
8990
|
+
/**
|
|
8991
|
+
* A page number within the paginated result set.
|
|
8992
|
+
*/
|
|
8993
|
+
page?: number,
|
|
8994
|
+
/**
|
|
8995
|
+
* Number of results to return per page.
|
|
8996
|
+
*/
|
|
8997
|
+
pageSize?: number,
|
|
8998
|
+
sender?: string,
|
|
8999
|
+
ticket?: number,
|
|
9000
|
+
}): CancelablePromise<PaginatedTicketMessageList> {
|
|
9001
|
+
return __request(OpenAPI, {
|
|
9002
|
+
method: 'GET',
|
|
9003
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/support-ticket-messages/',
|
|
9004
|
+
path: {
|
|
9005
|
+
'org': org,
|
|
9006
|
+
'user_id': userId,
|
|
9007
|
+
},
|
|
9008
|
+
query: {
|
|
9009
|
+
'page': page,
|
|
9010
|
+
'page_size': pageSize,
|
|
9011
|
+
'sender': sender,
|
|
9012
|
+
'ticket': ticket,
|
|
9013
|
+
},
|
|
9014
|
+
});
|
|
9015
|
+
}
|
|
9016
|
+
/**
|
|
9017
|
+
* ViewSet for managing ticket messages.
|
|
9018
|
+
*
|
|
9019
|
+
* This ViewSet provides endpoints to retrieve, create, and update ticket messages.
|
|
9020
|
+
*
|
|
9021
|
+
* Permissions:
|
|
9022
|
+
* - Platform Admins:
|
|
9023
|
+
* - Platform admins are able to view all ticket messages for the tenant.
|
|
9024
|
+
* - Students:
|
|
9025
|
+
* - Students are able to view all ticket messages for only the ticket they are associated with.
|
|
9026
|
+
* @returns TicketMessage
|
|
9027
|
+
* @throws ApiError
|
|
9028
|
+
*/
|
|
9029
|
+
public static aiMentorOrgsUsersSupportTicketMessagesCreate({
|
|
9030
|
+
org,
|
|
9031
|
+
userId,
|
|
9032
|
+
requestBody,
|
|
9033
|
+
}: {
|
|
9034
|
+
org: string,
|
|
9035
|
+
userId: string,
|
|
9036
|
+
requestBody: TicketMessage,
|
|
9037
|
+
}): CancelablePromise<TicketMessage> {
|
|
9038
|
+
return __request(OpenAPI, {
|
|
9039
|
+
method: 'POST',
|
|
9040
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/support-ticket-messages/',
|
|
9041
|
+
path: {
|
|
9042
|
+
'org': org,
|
|
9043
|
+
'user_id': userId,
|
|
9044
|
+
},
|
|
9045
|
+
body: requestBody,
|
|
9046
|
+
mediaType: 'application/json',
|
|
9047
|
+
});
|
|
9048
|
+
}
|
|
9049
|
+
/**
|
|
9050
|
+
* ViewSet for managing ticket messages.
|
|
9051
|
+
*
|
|
9052
|
+
* This ViewSet provides endpoints to retrieve, create, and update ticket messages.
|
|
9053
|
+
*
|
|
9054
|
+
* Permissions:
|
|
9055
|
+
* - Platform Admins:
|
|
9056
|
+
* - Platform admins are able to view all ticket messages for the tenant.
|
|
9057
|
+
* - Students:
|
|
9058
|
+
* - Students are able to view all ticket messages for only the ticket they are associated with.
|
|
9059
|
+
* @returns TicketMessage
|
|
9060
|
+
* @throws ApiError
|
|
9061
|
+
*/
|
|
9062
|
+
public static aiMentorOrgsUsersSupportTicketMessagesRetrieve({
|
|
9063
|
+
id,
|
|
9064
|
+
org,
|
|
9065
|
+
userId,
|
|
9066
|
+
}: {
|
|
9067
|
+
/**
|
|
9068
|
+
* A unique integer value identifying this ticket message.
|
|
9069
|
+
*/
|
|
9070
|
+
id: number,
|
|
9071
|
+
org: string,
|
|
9072
|
+
userId: string,
|
|
9073
|
+
}): CancelablePromise<TicketMessage> {
|
|
9074
|
+
return __request(OpenAPI, {
|
|
9075
|
+
method: 'GET',
|
|
9076
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/support-ticket-messages/{id}/',
|
|
9077
|
+
path: {
|
|
9078
|
+
'id': id,
|
|
9079
|
+
'org': org,
|
|
9080
|
+
'user_id': userId,
|
|
9081
|
+
},
|
|
9082
|
+
});
|
|
9083
|
+
}
|
|
9084
|
+
/**
|
|
9085
|
+
* ViewSet for managing ticket messages.
|
|
9086
|
+
*
|
|
9087
|
+
* This ViewSet provides endpoints to retrieve, create, and update ticket messages.
|
|
9088
|
+
*
|
|
9089
|
+
* Permissions:
|
|
9090
|
+
* - Platform Admins:
|
|
9091
|
+
* - Platform admins are able to view all ticket messages for the tenant.
|
|
9092
|
+
* - Students:
|
|
9093
|
+
* - Students are able to view all ticket messages for only the ticket they are associated with.
|
|
9094
|
+
* @returns TicketMessage
|
|
9095
|
+
* @throws ApiError
|
|
9096
|
+
*/
|
|
9097
|
+
public static aiMentorOrgsUsersSupportTicketMessagesUpdate({
|
|
9098
|
+
id,
|
|
9099
|
+
org,
|
|
9100
|
+
userId,
|
|
9101
|
+
requestBody,
|
|
9102
|
+
}: {
|
|
9103
|
+
/**
|
|
9104
|
+
* A unique integer value identifying this ticket message.
|
|
9105
|
+
*/
|
|
9106
|
+
id: number,
|
|
9107
|
+
org: string,
|
|
9108
|
+
userId: string,
|
|
9109
|
+
requestBody: TicketMessage,
|
|
9110
|
+
}): CancelablePromise<TicketMessage> {
|
|
9111
|
+
return __request(OpenAPI, {
|
|
9112
|
+
method: 'PUT',
|
|
9113
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/support-ticket-messages/{id}/',
|
|
9114
|
+
path: {
|
|
9115
|
+
'id': id,
|
|
9116
|
+
'org': org,
|
|
9117
|
+
'user_id': userId,
|
|
9118
|
+
},
|
|
9119
|
+
body: requestBody,
|
|
9120
|
+
mediaType: 'application/json',
|
|
9121
|
+
});
|
|
9122
|
+
}
|
|
9123
|
+
/**
|
|
9124
|
+
* ViewSet for managing ticket messages.
|
|
9125
|
+
*
|
|
9126
|
+
* This ViewSet provides endpoints to retrieve, create, and update ticket messages.
|
|
9127
|
+
*
|
|
9128
|
+
* Permissions:
|
|
9129
|
+
* - Platform Admins:
|
|
9130
|
+
* - Platform admins are able to view all ticket messages for the tenant.
|
|
9131
|
+
* - Students:
|
|
9132
|
+
* - Students are able to view all ticket messages for only the ticket they are associated with.
|
|
9133
|
+
* @returns TicketMessage
|
|
9134
|
+
* @throws ApiError
|
|
9135
|
+
*/
|
|
9136
|
+
public static aiMentorOrgsUsersSupportTicketMessagesPartialUpdate({
|
|
9137
|
+
id,
|
|
9138
|
+
org,
|
|
9139
|
+
userId,
|
|
9140
|
+
requestBody,
|
|
9141
|
+
}: {
|
|
9142
|
+
/**
|
|
9143
|
+
* A unique integer value identifying this ticket message.
|
|
9144
|
+
*/
|
|
9145
|
+
id: number,
|
|
9146
|
+
org: string,
|
|
9147
|
+
userId: string,
|
|
9148
|
+
requestBody?: PatchedTicketMessage,
|
|
9149
|
+
}): CancelablePromise<TicketMessage> {
|
|
9150
|
+
return __request(OpenAPI, {
|
|
9151
|
+
method: 'PATCH',
|
|
9152
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/support-ticket-messages/{id}/',
|
|
9153
|
+
path: {
|
|
9154
|
+
'id': id,
|
|
9155
|
+
'org': org,
|
|
9156
|
+
'user_id': userId,
|
|
9157
|
+
},
|
|
9158
|
+
body: requestBody,
|
|
9159
|
+
mediaType: 'application/json',
|
|
9160
|
+
});
|
|
9161
|
+
}
|
|
9162
|
+
/**
|
|
9163
|
+
* ViewSet for managing ticket messages.
|
|
9164
|
+
*
|
|
9165
|
+
* This ViewSet provides endpoints to retrieve, create, and update ticket messages.
|
|
9166
|
+
*
|
|
9167
|
+
* Permissions:
|
|
9168
|
+
* - Platform Admins:
|
|
9169
|
+
* - Platform admins are able to view all ticket messages for the tenant.
|
|
9170
|
+
* - Students:
|
|
9171
|
+
* - Students are able to view all ticket messages for only the ticket they are associated with.
|
|
9172
|
+
* @returns void
|
|
9173
|
+
* @throws ApiError
|
|
9174
|
+
*/
|
|
9175
|
+
public static aiMentorOrgsUsersSupportTicketMessagesDestroy({
|
|
9176
|
+
id,
|
|
9177
|
+
org,
|
|
9178
|
+
userId,
|
|
9179
|
+
}: {
|
|
9180
|
+
/**
|
|
9181
|
+
* A unique integer value identifying this ticket message.
|
|
9182
|
+
*/
|
|
9183
|
+
id: number,
|
|
9184
|
+
org: string,
|
|
9185
|
+
userId: string,
|
|
9186
|
+
}): CancelablePromise<void> {
|
|
9187
|
+
return __request(OpenAPI, {
|
|
9188
|
+
method: 'DELETE',
|
|
9189
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/support-ticket-messages/{id}/',
|
|
9190
|
+
path: {
|
|
9191
|
+
'id': id,
|
|
9192
|
+
'org': org,
|
|
9193
|
+
'user_id': userId,
|
|
9194
|
+
},
|
|
9195
|
+
});
|
|
9196
|
+
}
|
|
9197
|
+
/**
|
|
9198
|
+
* ViewSet for managing Human Support Tickets.
|
|
9199
|
+
*
|
|
9200
|
+
* This ViewSet provides endpoints to retrieve, create, and update Human Support Tickets.
|
|
9201
|
+
*
|
|
9202
|
+
* Permissions:
|
|
9203
|
+
* Platform Admins:
|
|
9204
|
+
* - Platform admins are able to update the ticket status, and view all tickets for the tenant.
|
|
9205
|
+
* - Platform admins can only update the `subject`, `description` and `status` fields.
|
|
9206
|
+
* Students:
|
|
9207
|
+
* - Students are only able to view their own created tickets.
|
|
9208
|
+
* - students can modify only the `subject` and `description` entries
|
|
9209
|
+
*
|
|
9210
|
+
* Field Updates:
|
|
9211
|
+
* - subject: Modifiable by both student and platform admin
|
|
9212
|
+
* - description: Modifiable by only student.
|
|
9213
|
+
* - status: Modifiable by only platform admin.
|
|
9214
|
+
* @returns PaginatedHumanSupportTicketList
|
|
9215
|
+
* @throws ApiError
|
|
9216
|
+
*/
|
|
9217
|
+
public static aiMentorOrgsUsersSupportTicketsList({
|
|
9218
|
+
org,
|
|
9219
|
+
userId,
|
|
9220
|
+
mentorId,
|
|
9221
|
+
page,
|
|
9222
|
+
pageSize,
|
|
9223
|
+
session,
|
|
9224
|
+
status,
|
|
9225
|
+
username,
|
|
9226
|
+
}: {
|
|
9227
|
+
org: string,
|
|
9228
|
+
userId: string,
|
|
9229
|
+
mentorId?: number,
|
|
9230
|
+
/**
|
|
9231
|
+
* A page number within the paginated result set.
|
|
9232
|
+
*/
|
|
9233
|
+
page?: number,
|
|
9234
|
+
/**
|
|
9235
|
+
* Number of results to return per page.
|
|
9236
|
+
*/
|
|
9237
|
+
pageSize?: number,
|
|
9238
|
+
session?: string,
|
|
9239
|
+
/**
|
|
9240
|
+
* * `open` - Open
|
|
9241
|
+
* * `in_progress` - In Progress
|
|
9242
|
+
* * `closed` - Closed
|
|
9243
|
+
*/
|
|
9244
|
+
status?: 'closed' | 'in_progress' | 'open',
|
|
9245
|
+
username?: string,
|
|
9246
|
+
}): CancelablePromise<PaginatedHumanSupportTicketList> {
|
|
9247
|
+
return __request(OpenAPI, {
|
|
9248
|
+
method: 'GET',
|
|
9249
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/support-tickets/',
|
|
9250
|
+
path: {
|
|
9251
|
+
'org': org,
|
|
9252
|
+
'user_id': userId,
|
|
9253
|
+
},
|
|
9254
|
+
query: {
|
|
9255
|
+
'mentor_id': mentorId,
|
|
9256
|
+
'page': page,
|
|
9257
|
+
'page_size': pageSize,
|
|
9258
|
+
'session': session,
|
|
9259
|
+
'status': status,
|
|
9260
|
+
'username': username,
|
|
9261
|
+
},
|
|
9262
|
+
});
|
|
9263
|
+
}
|
|
9264
|
+
/**
|
|
9265
|
+
* ViewSet for managing Human Support Tickets.
|
|
9266
|
+
*
|
|
9267
|
+
* This ViewSet provides endpoints to retrieve, create, and update Human Support Tickets.
|
|
9268
|
+
*
|
|
9269
|
+
* Permissions:
|
|
9270
|
+
* Platform Admins:
|
|
9271
|
+
* - Platform admins are able to update the ticket status, and view all tickets for the tenant.
|
|
9272
|
+
* - Platform admins can only update the `subject`, `description` and `status` fields.
|
|
9273
|
+
* Students:
|
|
9274
|
+
* - Students are only able to view their own created tickets.
|
|
9275
|
+
* - students can modify only the `subject` and `description` entries
|
|
9276
|
+
*
|
|
9277
|
+
* Field Updates:
|
|
9278
|
+
* - subject: Modifiable by both student and platform admin
|
|
9279
|
+
* - description: Modifiable by only student.
|
|
9280
|
+
* - status: Modifiable by only platform admin.
|
|
9281
|
+
* @returns HumanSupportTicket
|
|
9282
|
+
* @throws ApiError
|
|
9283
|
+
*/
|
|
9284
|
+
public static aiMentorOrgsUsersSupportTicketsRetrieve({
|
|
9285
|
+
id,
|
|
9286
|
+
org,
|
|
9287
|
+
userId,
|
|
9288
|
+
}: {
|
|
9289
|
+
/**
|
|
9290
|
+
* A unique integer value identifying this human support ticket.
|
|
9291
|
+
*/
|
|
9292
|
+
id: number,
|
|
9293
|
+
org: string,
|
|
9294
|
+
userId: string,
|
|
9295
|
+
}): CancelablePromise<HumanSupportTicket> {
|
|
9296
|
+
return __request(OpenAPI, {
|
|
9297
|
+
method: 'GET',
|
|
9298
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/support-tickets/{id}/',
|
|
9299
|
+
path: {
|
|
9300
|
+
'id': id,
|
|
9301
|
+
'org': org,
|
|
9302
|
+
'user_id': userId,
|
|
9303
|
+
},
|
|
9304
|
+
});
|
|
9305
|
+
}
|
|
9306
|
+
/**
|
|
9307
|
+
* ViewSet for managing Human Support Tickets.
|
|
9308
|
+
*
|
|
9309
|
+
* This ViewSet provides endpoints to retrieve, create, and update Human Support Tickets.
|
|
9310
|
+
*
|
|
9311
|
+
* Permissions:
|
|
9312
|
+
* Platform Admins:
|
|
9313
|
+
* - Platform admins are able to update the ticket status, and view all tickets for the tenant.
|
|
9314
|
+
* - Platform admins can only update the `subject`, `description` and `status` fields.
|
|
9315
|
+
* Students:
|
|
9316
|
+
* - Students are only able to view their own created tickets.
|
|
9317
|
+
* - students can modify only the `subject` and `description` entries
|
|
9318
|
+
*
|
|
9319
|
+
* Field Updates:
|
|
9320
|
+
* - subject: Modifiable by both student and platform admin
|
|
9321
|
+
* - description: Modifiable by only student.
|
|
9322
|
+
* - status: Modifiable by only platform admin.
|
|
9323
|
+
* @returns HumanSupportTicket
|
|
9324
|
+
* @throws ApiError
|
|
9325
|
+
*/
|
|
9326
|
+
public static aiMentorOrgsUsersSupportTicketsUpdate({
|
|
9327
|
+
id,
|
|
9328
|
+
org,
|
|
9329
|
+
userId,
|
|
9330
|
+
requestBody,
|
|
9331
|
+
}: {
|
|
9332
|
+
/**
|
|
9333
|
+
* A unique integer value identifying this human support ticket.
|
|
9334
|
+
*/
|
|
9335
|
+
id: number,
|
|
9336
|
+
org: string,
|
|
9337
|
+
userId: string,
|
|
9338
|
+
requestBody: HumanSupportTicket,
|
|
9339
|
+
}): CancelablePromise<HumanSupportTicket> {
|
|
9340
|
+
return __request(OpenAPI, {
|
|
9341
|
+
method: 'PUT',
|
|
9342
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/support-tickets/{id}/',
|
|
9343
|
+
path: {
|
|
9344
|
+
'id': id,
|
|
9345
|
+
'org': org,
|
|
9346
|
+
'user_id': userId,
|
|
9347
|
+
},
|
|
9348
|
+
body: requestBody,
|
|
9349
|
+
mediaType: 'application/json',
|
|
9350
|
+
});
|
|
9351
|
+
}
|
|
9352
|
+
/**
|
|
9353
|
+
* ViewSet for managing Human Support Tickets.
|
|
9354
|
+
*
|
|
9355
|
+
* This ViewSet provides endpoints to retrieve, create, and update Human Support Tickets.
|
|
9356
|
+
*
|
|
9357
|
+
* Permissions:
|
|
9358
|
+
* Platform Admins:
|
|
9359
|
+
* - Platform admins are able to update the ticket status, and view all tickets for the tenant.
|
|
9360
|
+
* - Platform admins can only update the `subject`, `description` and `status` fields.
|
|
9361
|
+
* Students:
|
|
9362
|
+
* - Students are only able to view their own created tickets.
|
|
9363
|
+
* - students can modify only the `subject` and `description` entries
|
|
9364
|
+
*
|
|
9365
|
+
* Field Updates:
|
|
9366
|
+
* - subject: Modifiable by both student and platform admin
|
|
9367
|
+
* - description: Modifiable by only student.
|
|
9368
|
+
* - status: Modifiable by only platform admin.
|
|
9369
|
+
* @returns HumanSupportTicket
|
|
9370
|
+
* @throws ApiError
|
|
9371
|
+
*/
|
|
9372
|
+
public static aiMentorOrgsUsersSupportTicketsPartialUpdate({
|
|
9373
|
+
id,
|
|
9374
|
+
org,
|
|
9375
|
+
userId,
|
|
9376
|
+
requestBody,
|
|
9377
|
+
}: {
|
|
9378
|
+
/**
|
|
9379
|
+
* A unique integer value identifying this human support ticket.
|
|
9380
|
+
*/
|
|
9381
|
+
id: number,
|
|
9382
|
+
org: string,
|
|
9383
|
+
userId: string,
|
|
9384
|
+
requestBody?: PatchedHumanSupportTicket,
|
|
9385
|
+
}): CancelablePromise<HumanSupportTicket> {
|
|
9386
|
+
return __request(OpenAPI, {
|
|
9387
|
+
method: 'PATCH',
|
|
9388
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/support-tickets/{id}/',
|
|
9389
|
+
path: {
|
|
9390
|
+
'id': id,
|
|
9391
|
+
'org': org,
|
|
9392
|
+
'user_id': userId,
|
|
9393
|
+
},
|
|
9394
|
+
body: requestBody,
|
|
9395
|
+
mediaType: 'application/json',
|
|
9396
|
+
});
|
|
9397
|
+
}
|
|
9398
|
+
/**
|
|
9399
|
+
* ViewSet for managing Human Support Tickets.
|
|
9400
|
+
*
|
|
9401
|
+
* This ViewSet provides endpoints to retrieve, create, and update Human Support Tickets.
|
|
9402
|
+
*
|
|
9403
|
+
* Permissions:
|
|
9404
|
+
* Platform Admins:
|
|
9405
|
+
* - Platform admins are able to update the ticket status, and view all tickets for the tenant.
|
|
9406
|
+
* - Platform admins can only update the `subject`, `description` and `status` fields.
|
|
9407
|
+
* Students:
|
|
9408
|
+
* - Students are only able to view their own created tickets.
|
|
9409
|
+
* - students can modify only the `subject` and `description` entries
|
|
9410
|
+
*
|
|
9411
|
+
* Field Updates:
|
|
9412
|
+
* - subject: Modifiable by both student and platform admin
|
|
9413
|
+
* - description: Modifiable by only student.
|
|
9414
|
+
* - status: Modifiable by only platform admin.
|
|
9415
|
+
* @returns void
|
|
9416
|
+
* @throws ApiError
|
|
9417
|
+
*/
|
|
9418
|
+
public static aiMentorOrgsUsersSupportTicketsDestroy({
|
|
9419
|
+
id,
|
|
9420
|
+
org,
|
|
9421
|
+
userId,
|
|
9422
|
+
}: {
|
|
9423
|
+
/**
|
|
9424
|
+
* A unique integer value identifying this human support ticket.
|
|
9425
|
+
*/
|
|
9426
|
+
id: number,
|
|
9427
|
+
org: string,
|
|
9428
|
+
userId: string,
|
|
9429
|
+
}): CancelablePromise<void> {
|
|
9430
|
+
return __request(OpenAPI, {
|
|
9431
|
+
method: 'DELETE',
|
|
9432
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/support-tickets/{id}/',
|
|
9433
|
+
path: {
|
|
9434
|
+
'id': id,
|
|
9435
|
+
'org': org,
|
|
9436
|
+
'user_id': userId,
|
|
9437
|
+
},
|
|
9438
|
+
});
|
|
9439
|
+
}
|
|
9440
|
+
/**
|
|
9441
|
+
* Endpoint to close a Human support ticket.
|
|
9442
|
+
*
|
|
9443
|
+
* This endpoint is used to close a Human support ticket.
|
|
9444
|
+
*
|
|
9445
|
+
* Permissions:
|
|
9446
|
+
* - available to both platform admins and the student who created the ticket.
|
|
9447
|
+
*
|
|
9448
|
+
* Returns:
|
|
9449
|
+
* Response: A response object containing the closed ticket data.
|
|
9450
|
+
* @returns any No response body
|
|
9451
|
+
* @throws ApiError
|
|
9452
|
+
*/
|
|
9453
|
+
public static aiMentorOrgsUsersSupportTicketsCloseCreate({
|
|
9454
|
+
id,
|
|
9455
|
+
org,
|
|
9456
|
+
userId,
|
|
9457
|
+
}: {
|
|
9458
|
+
/**
|
|
9459
|
+
* A unique integer value identifying this human support ticket.
|
|
9460
|
+
*/
|
|
9461
|
+
id: number,
|
|
9462
|
+
org: string,
|
|
9463
|
+
userId: string,
|
|
9464
|
+
}): CancelablePromise<any> {
|
|
9465
|
+
return __request(OpenAPI, {
|
|
9466
|
+
method: 'POST',
|
|
9467
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/support-tickets/{id}/close/',
|
|
9468
|
+
path: {
|
|
9469
|
+
'id': id,
|
|
9470
|
+
'org': org,
|
|
9471
|
+
'user_id': userId,
|
|
9472
|
+
},
|
|
9473
|
+
});
|
|
9474
|
+
}
|
|
8961
9475
|
/**
|
|
8962
9476
|
* Retrieves the status of a task using its task ID.
|
|
8963
9477
|
*
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Provider05cEnum } from './Provider05cEnum';
|
|
2
|
-
export type Bot = {
|
|
3
|
-
readonly id: number;
|
|
4
|
-
readonly platform: number;
|
|
5
|
-
readonly tenant: string;
|
|
6
|
-
name: string;
|
|
7
|
-
provider: Provider05cEnum;
|
|
8
|
-
readonly is_configured: boolean;
|
|
9
|
-
slack_config: number;
|
|
10
|
-
readonly discord_config: number;
|
|
11
|
-
readonly webex_config: number;
|
|
12
|
-
readonly whatsapp_config: number;
|
|
13
|
-
readonly teams_config: number;
|
|
14
|
-
readonly webhook_url: string;
|
|
15
|
-
};
|