@fireaw.ai/sdk
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -30,3 +30,4 @@ type Message = { | ||
send(message: string): void; | ||
vote(messageId: string, vote: boolean): void; | ||
} | ||
export {}; |
@@ -76,3 +76,12 @@ "use strict"; | ||
} | ||
vote(messageId, vote) { | ||
var _a; | ||
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.send({ | ||
command: "vote", | ||
identifier: JSON.stringify({ channel: this.channel, id: this.chat.id }), | ||
message_id: messageId, | ||
vote, | ||
}); | ||
} | ||
} | ||
exports.default = ChatChannel; |
{ | ||
"name": "@fireaw.ai/sdk", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "build": "mkdir -p dist; tsc; cp package.json README.md LICENSE dist", |
7282
127