redai-automation-web-sdk
Version:
TypeScript SDK for RedAI Automation Web API - Zalo Personal automation, messaging, advanced sticker search, and bulk operations. 100% compatible with automation-web backend. v1.8.0: Added SessionProxyService for managing proxy assignments to sessions with
58 lines • 1.75 kB
JavaScript
;
/**
* Common types and interfaces used across the SDK
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ZaloReactions = exports.TextStyle = exports.Urgency = exports.ThreadType = exports.DEFAULT_CONFIG = void 0;
/**
* Default SDK configuration
*/
exports.DEFAULT_CONFIG = {
baseUrl: 'http://localhost:3000',
timeout: 30000,
retryCount: 3,
retryDelay: 1000,
userAgent: '@redai/automation-web-sdk/1.0.0',
logging: false,
};
/**
* Thread type enum for messaging
*/
var ThreadType;
(function (ThreadType) {
ThreadType["USER"] = "user";
ThreadType["GROUP"] = "group";
})(ThreadType || (exports.ThreadType = ThreadType = {}));
/**
* Message urgency levels
*/
var Urgency;
(function (Urgency) {
Urgency[Urgency["LOW"] = 1] = "LOW";
Urgency[Urgency["NORMAL"] = 2] = "NORMAL";
Urgency[Urgency["HIGH"] = 3] = "HIGH";
})(Urgency || (exports.Urgency = Urgency = {}));
/**
* Text style types for message formatting
*/
var TextStyle;
(function (TextStyle) {
TextStyle["BOLD"] = "font-weight:bold";
TextStyle["ITALIC"] = "font-style:italic";
TextStyle["UNDERLINE"] = "text-decoration:underline";
TextStyle["STRIKETHROUGH"] = "text-decoration:line-through";
})(TextStyle || (exports.TextStyle = TextStyle = {}));
/**
* Zalo reactions enum
*/
var ZaloReactions;
(function (ZaloReactions) {
ZaloReactions["LIKE"] = "/-heart";
ZaloReactions["LOVE"] = "/-heart";
ZaloReactions["HAHA"] = ":))";
ZaloReactions["WOW"] = ":-o";
ZaloReactions["SAD"] = ":(";
ZaloReactions["ANGRY"] = ">-|";
ZaloReactions["HANDCLAP"] = ":handclap";
})(ZaloReactions || (exports.ZaloReactions = ZaloReactions = {}));
//# sourceMappingURL=common.types.js.map