2025-04-14 12:17:09 +02:00
|
|
|
|
using BeWo.Data.Entities;
|
2025-06-03 15:46:41 +02:00
|
|
|
|
using BeWo.Service.Attributes;
|
2025-04-14 12:17:09 +02:00
|
|
|
|
using BS.Shared;
|
2025-06-02 12:33:14 +02:00
|
|
|
|
using BS.Shared.Core;
|
2025-04-14 12:17:09 +02:00
|
|
|
|
using BS.Shared.DataContracts;
|
|
|
|
|
|
using BS.Shared.DataContracts.Feature.AI;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.ServiceModel;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
2025-06-02 11:16:35 +02:00
|
|
|
|
namespace BeWo.Service.ServiceContracts.Enhanced
|
2025-04-14 12:17:09 +02:00
|
|
|
|
{
|
|
|
|
|
|
[ServiceContract]
|
|
|
|
|
|
public interface IAiEnhancedService : IService
|
|
|
|
|
|
{
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2025-06-17 15:46:04 +02:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleView, UserRightType.AiModuleView2)]
|
2025-04-14 12:17:09 +02:00
|
|
|
|
AiConfigDC GetAiConfig();
|
|
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2025-06-17 15:46:04 +02:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleViewSetting)]
|
2025-04-14 12:17:09 +02:00
|
|
|
|
AiConfigDC UpdateAiConfig(AiConfigDC toUpdate);
|
|
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2025-06-17 15:46:04 +02:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleView, UserRightType.AiModuleView2)]
|
2025-04-14 12:17:09 +02:00
|
|
|
|
IEnumerable<AiModelDC> GetAiModels();
|
|
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2025-06-17 15:46:04 +02:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleView, UserRightType.AiModuleView2)]
|
2025-05-05 13:08:09 +02:00
|
|
|
|
IEnumerable<AiConversationDC> GetAiConversations(int uicontext, long? oid);
|
2025-04-14 12:17:09 +02:00
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2025-06-17 15:46:04 +02:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleChatAdd)]
|
2025-04-14 12:17:09 +02:00
|
|
|
|
AiConversationDC CreateAiConversation(AiConversationDC conversation, long modell_oid);
|
|
|
|
|
|
|
2025-05-13 11:10:24 +02:00
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2025-06-17 15:46:04 +02:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleChatAdd)]
|
2025-05-13 11:10:24 +02:00
|
|
|
|
AiConversationDC CreateAiConversationWithMessage(AiConversationDC conversation, long modell_oid, string message);
|
|
|
|
|
|
|
2025-04-22 14:05:51 +02:00
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2025-06-17 15:46:04 +02:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleChatClone)]
|
2025-04-22 14:05:51 +02:00
|
|
|
|
AiConversationDC CloneAiConversation(long conversation_oid, long? message_oid);
|
|
|
|
|
|
|
2025-04-14 12:17:09 +02:00
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2025-06-17 15:46:04 +02:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleChatDelete)]
|
2025-04-24 16:02:13 +02:00
|
|
|
|
void DeleteAiConversation(long conversation_oid);
|
|
|
|
|
|
|
|
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
|
|
|
|
[OperationContract]
|
2025-06-17 15:46:04 +02:00
|
|
|
|
[RequireWcfAuthorization(UserRightType.AiModuleChatAdd)]
|
2025-04-14 12:17:09 +02:00
|
|
|
|
AiConversationMessageDC[] SendNewMessage(long conversation, string message);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|