跳转到主要内容
conare 为 Node 18 及以上版本和 Bun 封装了 API,没有任何依赖。
Result
响应字段采用 camelCase,时间戳为 Date。

选项

每个方法的最后一个参数还可传入 { signal, timeout, idempotencyKey }。

方法

  • add 和 write 接受单个文档或任意大小的数组,每次发送 100 个。
  • 搜索所有命名空间(POST /query)和 answer 暂无对应方法:请通过 HTTP 调用。

错误

所有失败都会抛出 ConareError,包含 status、code、message 和 requestId。