"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.WEBHOOK_PATHS = exports.LIMITS = exports.CRYPTO = exports.API_ENDPOINTS = void 0; /** * WeCom 双模式常量定义 */ /** 固定 Webhook 路径 */ const WEBHOOK_PATHS = exports.WEBHOOK_PATHS = { /** Bot 模式历史兼容路径(不再维护) */ BOT: "/wecom", /** Bot 模式历史备用兼容路径(不再维护) */ BOT_ALT: "/wecom/bot", /** Agent 模式历史兼容路径(不再维护) */ AGENT: "/wecom/agent", /** Bot 模式推荐路径前缀 */ BOT_PLUGIN: "/plugins/wecom/bot", /** Agent 模式推荐路径前缀 */ AGENT_PLUGIN: "/plugins/wecom/agent" }; /** 企业微信 API 端点 */ const API_ENDPOINTS = exports.API_ENDPOINTS = { GET_TOKEN: "https://qyapi.weixin.qq.com/cgi-bin/gettoken", SEND_MESSAGE: "https://qyapi.weixin.qq.com/cgi-bin/message/send", SEND_APPCHAT: "https://qyapi.weixin.qq.com/cgi-bin/appchat/send", UPLOAD_MEDIA: "https://qyapi.weixin.qq.com/cgi-bin/media/upload", DOWNLOAD_MEDIA: "https://qyapi.weixin.qq.com/cgi-bin/media/get" }; /** 各类限制常量 */ const LIMITS = exports.LIMITS = { /** 文本消息最大字节数 */ TEXT_MAX_BYTES: 2048, /** Token 刷新缓冲时间 (提前刷新) */ TOKEN_REFRESH_BUFFER_MS: 60_000, /** HTTP 请求超时 */ REQUEST_TIMEOUT_MS: 15_000, /** 最大请求体大小 */ MAX_REQUEST_BODY_SIZE: 1024 * 1024 }; /** AES 加密常量 */ const CRYPTO = exports.CRYPTO = { /** PKCS#7 块大小 */ PKCS7_BLOCK_SIZE: 32, /** AES Key 长度 */ AES_KEY_LENGTH: 32 }; /* v9-32f16dd8cfde161d */