Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@re-ai/inner-tool-sdk

Package Overview
Dependencies
Maintainers
0
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@re-ai/inner-tool-sdk - npm Package Compare versions

Comparing version 0.3.8 to 0.4.0

dist/interfaces/mqtt.d.ts

4

dist/entrys/index.d.ts

@@ -18,2 +18,3 @@ import WebSocket from "ws";

import { WechatRPCService } from "../services/WechatService";
import { MQTTAPIService } from "../services/MQTTService";
export declare class ReAITool {

@@ -35,2 +36,5 @@ static sms(options?: RPCClientOptions): SMSService;

static seamless(host: string, roomId?: string): Seamless;
static MQTTDeviceAPI(options?: {
baseUrl: string;
}): MQTTAPIService;
}

@@ -16,2 +16,3 @@ "use strict";

const WechatService_1 = require("../services/WechatService");
const MQTTService_1 = require("../services/MQTTService");
class ReAITool {

@@ -92,3 +93,8 @@ static sms(options) {

}
static MQTTDeviceAPI(options) {
return new MQTTService_1.MQTTAPIService({
baseUrl: options?.baseUrl || process.env.REAI_MQTT_API_BASE_URL || 'https://hd.cn.reai.com/api'
});
}
}
exports.ReAITool = ReAITool;

@@ -12,2 +12,3 @@ export type OptionsFile = {

export type FileData = {
objectId: string;
name: string;

@@ -14,0 +15,0 @@ url: string;

2

package.json
{
"name": "@re-ai/inner-tool-sdk",
"version": "0.3.8",
"version": "0.4.0",
"description": "ReAI内部接口sdk",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -6,2 +6,6 @@

+ 2024.08.16
+ 添加硬件MQTT接口, [文档](./doc/mqtt.md)
+ 2024.07.24
+ 添加微信小程序码获取接口
+ 2024.07.19

@@ -50,4 +54,5 @@ + 添加微信小程序获取手机号码接口

| RPC_HOST_EXPRESS | 文本处理地址 | 127.0.0.1 |
| ONE_API_HOST | one-api服务地址 | |
| ONE_API_HOST | one-api 服务地址 | |
| ONE_API_TOKEN | one-api 管理员token | (只在管理员模式下生效) |
| REAI_MQTT_API_BASE_URL| mqtt服务地址 | https://hd.cn.reai.com/api |

@@ -54,0 +59,0 @@ ### 示例

@@ -19,2 +19,3 @@

import { WechatRPCService } from "../services/WechatService";
import { MQTTAPIService } from "../services/MQTTService";

@@ -110,2 +111,9 @@ export class ReAITool {

static MQTTDeviceAPI(options?: {
baseUrl: string
}) {
return new MQTTAPIService({
baseUrl: options?.baseUrl || process.env.REAI_MQTT_API_BASE_URL || 'https://hd.cn.reai.com/api'
})
}
}

@@ -15,2 +15,3 @@

export type FileData = {
objectId: string, // 文件id
name: string,

@@ -17,0 +18,0 @@ url: string,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc