@epilot/message-client

中文文档
1.37.0发布于 2026/11/11MITTypeScriptCommonJS近 30 天下载 1.3万

API 电子驾驶信件客户端 API

中文使用文档
文档目录3 节
  1. 安装
  2. 使用量
  3. 文档

@ epilot/ message- 客户端

CI npm version bundle size License

API 电子驾驶客户端 消息 API。 。 。 .

用途 openapi-client-axios

安装

npm install --save @epilot/message-client

使用量

import { getClient } from '@epilot/message-client';
const messageClient = getClient();
const sendResponse = await messageClient.sendMessage(null, {
  "thread": {
    "topic": "CUSTOMER_MESSAGE",
    "assigned_to": [
      "206801",
      "200109"
    ],
    "opportunity_id": 829072
  },
  "parent_id": "44d7a3eb-0cce-4bd3-a7cd-0b3e652de0c2",
  "subject": "Request for solar panel price",
  "html": "<div>We at ABC GmbH would like to request a price quote for the solar panel.</div>",
  "text": "We at ABC GmbH would like to request a price quote for the solar panel.",
  "from": {
    "name": "epilot",
    "address": "[email protected]",
    "send_status": "SEND",
    "send_error": {}
  },
  "reply_to": {
    "name": "epilot",
    "address": "[email protected]",
    "send_status": "SEND",
    "send_error": {}
  },
  "to": [
    {
      "name": "epilot",
      "address": "[email protected]",
      "send_status": "SEND",
      "send_error": {}
    }
  ],
  "cc": [
    {
      "name": "epilot",
      "address": "[email protected]",
      "send_status": "SEND",
      "send_error": {}
    }
  ],
  "bcc": [
    {
      "name": "epilot",
      "address": "[email protected]",
      "send_status": "SEND",
      "send_error": {}
    }
  ],
  "file": {
    "$relation": [
      {
        "entity_id": "f820ce3b-07b0-45ae-bcc6-babb2f53f79f",
        "filename": "Produktinformationen_epilot360_Double_Opt_in.pdf",
        "is_message_attachment": true,
        "cid": "fb222496-a1a5-4639-94f2-07b5e35e4068",
        "inline": false,
        "send_as_link": false
      }
    ]
  }
});

文档

https://docs.epilot.io/docs/message/message-api 页面存档备份,存于互联网档案馆

版本与发布记录

@epilot/message-client 共发布 70 个版本,首次发布于 2021/10/12;过去 12 个月发布了 20 个版本。

版本发布日期距今
1.37.0latest2026/11/112 天前
1.36.02026/10/1430 天前
1.35.02026/10/081 个月前
1.34.02026/10/081 个月前
1.33.02026/10/081 个月前
1.32.02026/08/212 个月前

关于 @epilot/message-client 的常见问题

@epilot/message-client 是什么?

API 电子驾驶信件客户端 API

如何安装 @epilot/message-client?

在项目目录运行 npm install @epilot/message-client,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:axios(^1.0.0 || >=0.25.0 <1.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@epilot/message-client 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@epilot/message-client 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@epilot/message-client 可以商用吗?

@epilot/message-client 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@epilot/message-client 的下载量有多少?

根据 npm 官方下载统计,@epilot/message-client 在 2026/10/14 – 2026/11/12 这 30 天内被下载 12,864 次,日均约 429 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@epilot/message-client 还在维护吗?

最新版本 1.37.0 发布于 2026/11/11(2 天前);至今共发布 70 个版本,其中过去 12 个月发布了 20 个;首次发布于 2021/10/12。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。