Repository navigation
Releases
Python SDK 0.0.3
Fixes webhook verification, which rejected every real delivery. Upgrade before you rely on webhooks.verify: pip install -U echonova
-
webhooks.verifychecks Standard Webhooks v1 signatures, which EchoNova has sent since 2026-11-10:- the headers are
webhook-id,webhook-timestampandwebhook-signature; - each signature is an HMAC-SHA256 of
{id}.{timestamp}.{body}, keyed with the base64-decoded secret; - the
webhook-signatureheader carries onev1,entry per active secret.
0.0.2 expected the old
X-Webhook-TimestampandX-Webhook-Signatureheaders, and failed with the reasonheaders. - the headers are
-
A delivery is valid when any of its signatures matches any of your secrets, so a secret rotation in the portal works with only the new secret.
-
Secrets decode from either base64 alphabet, with or without the
whsec_prefix. A secret that isn't base64 raisesValueError. -
Breaking: every event has a
webhook_id, anddedupe_keyis now that ID instead of a key built from the body. It stays the same when a delivery is retried.UnknownEventhas one too. -
Docs: the Arabic sample text spells the brand إيكونوڤا.
Dart / Flutter SDK 0.0.3
Fixes webhook verification, which rejected every real delivery. Upgrade before you rely on verifyWebhook: dart pub add echonova_ai:^0.0.3 (a ^0.0.2 constraint doesn't allow 0.0.3)
verifyWebhookverifies Standard Webhooks v1 signatures, as EchoNova has sent them since 2026-11-10: thewebhook-id,webhook-timestampandwebhook-signatureheaders, an HMAC-SHA256 of{id}.{timestamp}.{body}keyed with the base64-decoded secret, and onev1,entry per active secret. 0.0.2 expected the oldX-Webhook-TimestampandX-Webhook-Signatureheaders and failed with the reasonheaders.- A delivery is valid when any of its signatures matches any of your secrets, so a secret rotation in the portal works with only the new secret.
- Secrets decode from either base64 alphabet, with or without the
whsec_prefix. A secret that isn't base64 throwsArgumentError. - Breaking: every event has a
webhookId, anddedupeKeyis now that ID instead of a key built from the body. It stays the same when a delivery is retried.UnknownWebhookEventhas one too.
Python SDK 0.0.2
Security fixes. Upgrading is recommended: pip install -U echonova
Webhooks (webhooks.verify)
- A delivery's body must match its event. The signature doesn't cover the
X-Webhook-Eventheader, so a signed delivery could otherwise be replayed under another event name:- a
job.completedmust carry its result (audioUrlfor Text to Speech,transcriptionfor Speech to Text); - a
job.failedmust not carry one; - the spending events must carry finite
creditsUsedandcreditLimit.spending.warningandspending.exhaustedshare a body shape, so one can still be relabelled as the other until the API signs the event name.
- a
- A timestamp header longer than 15 characters is refused before it is parsed.
Keys and proxy mode
with_options()no longer carries a key read fromECHONOVA_API_KEYinto a copy that adds anauthhook, even through chains of copies, so the key can't reach your proxy by accident. A key passed explicitly is kept.- A stream handshake never follows a redirect, so the API key and auth hook headers can't reach another host.
repr()and error messages leave out user info in URLs and the query string of signed links.WidgetTicket.ticketis a secret: it is hidden inrepr()andstr(), andwidgets.create_ticketnever copies its body into an error.- A warning is logged when auth hook headers would go over plain
httpto a host other than this machine.
Requests and downloads
- A path ID of
"",.or..raisesUsageErrorbefore any request is sent. - A downloaded file's name always stays inside the target directory.
- At most 64 KiB of an error response's body is read.
TypeScript / JavaScript SDK 0.0.2
Security fixes. Upgrading is recommended: npm install @echonova/ai@latest
Webhooks (verifyWebhook)
- A delivery's body must match its event. The signature doesn't cover the
X-Webhook-Eventheader, so a signed delivery could otherwise be replayed under another event name:- a
job.completedmust carry its result (audioUrlortranscription); - a
job.failedmust not carry one; - the spending events must carry finite
creditsUsedandcreditLimit.spending.warningandspending.exhaustedshare a body shape, so one can still be relabelled as the other until the API signs the event name.
- a
- A long timestamp header is refused before it is parsed.
- Whitespace is trimmed in linear time; this runs before the signature check.
Keys and proxy mode
withOptions()no longer carries a key read fromECHONOVA_API_KEYinto a copy that adds anauthhook, even through chains of copies, so the key can't reach your proxy by accident. A key passed explicitly is kept.- React Native counts as a browser for the API key guard (
dangerouslyAllowBrowser). - A warning is logged when credentials would go to a plain
httpbase URL on a host other than this machine.
Retries
- A paid POST without an idempotency key is sent again after a TLS error only for certificate errors, a host name mismatch or a handshake timeout. Before, any
ERR_TLS_*orERR_SSL_*error counted as "never connected", although on a reused HTTP/2 connection the request may already have gone out.
Requests and downloads
- A path ID of
"",.or..throws before any request is sent. - A downloaded file's name always stays inside the target directory.
- At most 64 KiB of an error response's body is read.
Dart / Flutter SDK 0.0.2
Security fixes. Upgrading is recommended: dart pub add echonova_ai:^0.0.2 (a ^0.0.1 constraint doesn't allow 0.0.2)
verifyWebhookchecks that a delivery's body matches its event. The signature doesn't cover theX-Webhook-Eventheader, so a signed delivery could otherwise be replayed under another event name:- a
job.completedmust carry its result (audioUrlortranscription); - a
job.failedmust not carry one; spending.warningandspending.exhaustedmust carry finitecreditsUsedandcreditLimit. These two events share a body shape, so one can still be relabelled as the other until the API signs the event name.
- a
verifyWebhookrefuses a timestamp header longer than 15 characters before parsing it.- A path ID of
.or..throwsUsageExceptionbefore any request is sent, like an empty one. - When
downloadTois given a directory, it names the filedownloadif the link's file name contains:or a control character. - A plain
httpbase URL to a host other than this machine logs a warning once, because the API key or auth headers would cross the network unencrypted. - At most 64 KiB of an error response's body is read.
- The
httpClientdocumentation says that streams don't use it: they open their own connection with the platform's proxy and certificate settings.