Releases: HumeAI/hume-typescript-sdk
Releases · HumeAI/hume-typescript-sdk
0.9.0
What's Changed
- New method:
.empathicVoice.chatGroups.getChatGroup
for getting a Chat Group by id. - Add support for
eviVersion
on.empathicVoice.configs.createConfig
- Add support for Custom Voices API.
- Added
index
field toAudioOutput
type. - Responses that get a 400 http status code now throw a
BadRequestError
instead of a genericHumeError
. - (break) Renamed type
Hume.empathicVoice.PostedPromptSpec
->Hume.empathicVoice.PostedConfigPromptSpec
. - (break) Renamed type
PostedPromptSpec
->PostedConfigPromptSpec
- (break) Types for the expression measurement API have now been namespaced under
.batch
or.streaming
. - (break) Some Types for the expression measurement API have been rename, for example:
Hume.expressionMeasurement.StreamModelsEndpointPayloadModelsFace
->Hume.expressionMeasurement.stream.StreamFace
Full Changelog: 0.8.10...0.9.0
0.8.10
What's Changed
Full Changelog: 0.8.9...0.8.10
0.8.9
What's Changed
Full Changelog: 0.8.8...0.8.9
0.8.8
0.8.7
0.8.6
0.8.5
What's Changed
- Revert "[npm] Bump node-fetch from 2.7.0 to 3.3.2" by @fern-bot in #95
- (chore): update
.fernignore
by @dsinghvi in #96 - (fix):
.fernignore
github workflows by @fern-bot in #98 - (fix): add
CONTRIBUTING.md
to fernignore by @dsinghvi in #100 - Release
0.8.5
by @fern-api in #101
Full Changelog: 0.8.4...0.8.5
0.8.4
What's Changed
- add eslint and jest configs by @zachkrall in #71
- use hume prettier config by @zachkrall in #72
- add dependabot by @zachkrall in #73
- Create CONTRIBUTING.md by @zachkrall in #81
- Update issue templates by @zachkrall in #82
- [npm] Bump qs and @types/qs by @dependabot in #76
- [github actions] Bump actions/setup-node from 3 to 4 by @dependabot in #74
- [npm] Bump node-fetch from 2.7.0 to 3.3.2 by @dependabot in #79
- [npm] Bump prettier from 2.7.1 to 3.3.3 by @dependabot in #77
- [npm] Bump uuid and @types/uuid by @dependabot in #80
- [github actions] Bump actions/checkout from 3 to 4 by @dependabot in #75
- (feat): websocket respects environment by @dsinghvi in #94
New Contributors
- @dependabot made their first contribution in #76
Full Changelog: 0.8.3...0.8.4
0.8.3
What's Changed
- remove type assertion from fetch access token by @zachkrall in #63
- 🌿 Fern Regeneration -- July 17, 2024 by @fern-api in #66
- Correct sendTextInput to sendUserInput in Readme.md by @iankelk in #64
- update readme to match new socket by @zachkrall in #68
- (fix): make
receivedAt
aDate
not number by @dsinghvi in #70
New Contributors
- @zachkrall made their first contribution in #63
- @iankelk made their first contribution in #64
Full Changelog: 0.8.2...0.8.3
0.8.2
What's Changed
- (fix):
evi.send
methods are now sync by @fern-api in #46 - (feat): export
Chat.ConnectArgs
andChatSocket
by @dsinghvi in #47 - (fix): export
Chat
client types by @dsinghvi in #48 - (feat): export
checkForAudioTracks
by @dsinghvi in #49 - (fix): update
AssistantEnd
by @fern-api in #52 - (feat): export
fetchAccessToken
from SDK by @dsinghvi in #54 - (feat): support
debug
,reconnectAttempts
, and arbitrary query param EVI args by @dsinghvi in #57 - (feat): export
JsonMessage
by @fern-api in #58 - (feat): init via token by @dsinghvi in #59
- (feat): export
tillSocketOpen
on ChatSocket by @dsinghvi in #60 - (fix): account for global
WebSocket
not being present by @dsinghvi in #61 - (feat): release
0.8.2
by @fern-api in #62
Migration Guide
There have been several improvements made to the TypeScript Chat API for EVI.
- Instantiation: The
HumeClient
now directly expects atoken
or anapiKey
.import { HumeClient } from "hume"; const hume = new HumeClient({ token: "...", });
- Sync
connect
Method: No need to await the connect method any longer.const socket = hume.connect({ reconnectAttempts, configVersion, resumedChatGroupId })
- Socket Type: Instead of
Hume.empathicVoice.chat.StreamSocket
the Socket has been renamed toHume.empathicVoice.chat.ChatSocket
- Handling
onOpen
,onMessage
,onError
callbacks: Previously these handlers were passed to theconnect
as functions but now you can simply put these directly on the socket:const socket = hume.connect({ reconnectAttempts, configVersion, resumedChatGroupId }) socket.on("open", (value) => { // do something });
- Sync send methods: All socket send messages are now synchronous so no need to await them.
Full Changelog: 0.8.0...0.8.2