From 1d8bbd004596d25819f93bded305d555a2893b16 Mon Sep 17 00:00:00 2001 From: lpw Date: Tue, 18 Mar 2025 09:02:55 +0800 Subject: [PATCH] 提交 4.4.0 --- frameworks/AIHelpSupportSDK.framework/Headers/AIHelpSDKConfig.h | 47 ++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 40 insertions(+), 7 deletions(-) diff --git a/frameworks/AIHelpSupportSDK.framework/Headers/AIHelpSDKConfig.h b/frameworks/AIHelpSupportSDK.framework/Headers/AIHelpSDKConfig.h index 3c6f714..db80b56 100644 --- a/frameworks/AIHelpSupportSDK.framework/Headers/AIHelpSDKConfig.h +++ b/frameworks/AIHelpSupportSDK.framework/Headers/AIHelpSDKConfig.h @@ -16,11 +16,6 @@ AIHelpTokenPlatformOneSignal = 7, // OneSignal }; -typedef NS_ENUM(int,AIHelpConversationIntent) { /* ConversationIntent enum */ - AIHelpConversationIntentBotSupport = 1, // ShowBot - AIHelpConversationIntentHumanSupport = 2, // ShowHumanSupport -}; - typedef NS_ENUM(int,AIHelpFAQShowConversationMoment) { /* ConversationMoment enum, show ContactUs moment */ AIHelpFAQShowConversationMomentNever = 1, // Never show AIHelpFAQShowConversationMomentAlways = 2, // Always show @@ -37,8 +32,30 @@ AIHelpFAQSupportEntranceHomePage = 1, AIHelpFAQSupportEntranceQuestionList = 2, AIHelpFAQSupportEntranceAnswerPage = 3, - AIHelpFAQSupportEntranceAfterMarkingUnhelpful = 4 + AIHelpFAQSupportEntranceAfterMarkingUnhelpful = 4, + AIHelpFAQSupportEntranceFAQNotFound = 5, }; + +typedef NS_ENUM(int, AIHelpLoginStatus) { + AIHelpLoginSuccess = 1, + AIHelpInvalidUID = -1, + AIHelpAuthError = -2, +}; + +typedef NS_ENUM(int, AIHelpEventType) { + AIHelpEventInitialization, // Event for SDK initialization + AIHelpEventUserLogin, // Event for user login + AIHelpEventEnterpriseAuth, // Event for enterprise authentication + AIHelpEventSessionOpen, // Event for opening a session (window) + AIHelpEventSessionClose, // Event for closing a session (window) + AIHelpEventMessageArrival, // Event for message arrival + AIHelpEventLogUpload, // Event for log upload + AIHelpEventUrlClick, // Event for URL click + AIHelpEventUnreadTaskCount, // Event for Task unread count + AIHelpEventConversationStart, // Event for conversation start +}; + +typedef void (*AISupportAsyncEventListener)(const char *jsonEventData, void (*acknowledge)(const char *jsonAckData)); #pragma mark - ECServiceUserConfig @@ -47,7 +64,6 @@ @end @interface AIHelpUserConfigBuilder : NSObject -@property (nonatomic, copy)NSString *userId; // default is unique deviceId @property (nonatomic, copy)NSString *userName; // default is "anonymous" @property (nonatomic, copy)NSString *serverId; // default is nil @property (nonatomic, strong)NSArray *userTags; // If you assign this field with existing tags from aihelp admin dashboard, the tickets created by current user will take these tags by default. @@ -67,3 +83,20 @@ @property (nonatomic, copy)NSString *welcomeMessage; - (AIHelpApiConfig *)build; @end + +#pragma mark - AIHelpLoginConfig + +@interface AIHelpLoginConfig : NSObject +- (id) init NS_UNAVAILABLE; +@end + +@interface AIHelpLoginConfigBuilder : NSObject + +@property (nonatomic, copy) NSString *userId; +@property (nonatomic, assign) BOOL isEnterpriseAuth; + +@property (nonatomic, strong) AIHelpUserConfig *userConfig; + +- (AIHelpLoginConfig *)build; + +@end -- Gitblit v1.8.0