Sume SDK 0.2.0 exported constants: webhook headers and wait defaults
@sume-com/sdk 0.2.0 exports the webhook header names, the 300 s tolerance and the wait defaults as constants. List them so your code does not repeat strings.

The 0.2.0 build of @sume-com/sdk exports the strings and defaults that webhook and wait code needs, so you can import them instead of typing them. Printing them from the installed package gives the values below.
The constants
I read these by installing the package and printing the exports on 2026-10-07. They match the webhook verification page and the runs page.
| Export | Value |
|---|---|
SUME_WEBHOOK_SIGNATURE_HEADER | x-sume-webhook-signature |
SUME_WEBHOOK_TIMESTAMP_HEADER | x-sume-webhook-timestamp |
SUME_WEBHOOK_SIGNATURE_VERSION | sume-v1 |
DEFAULT_SUME_WEBHOOK_TOLERANCE_SECONDS | 300 |
DEFAULT_WAIT_FOR_RUN_POLL_INTERVAL_MS | 2000 |
DEFAULT_WAIT_FOR_RUN_TIMEOUT_MS | 600000 (10 minutes) |
DEFAULT_SUBSCRIBE_FORMAT_RUN_TIMEOUT_MS | 1200000 (20 minutes) |
SUME_RUN_FAMILIES | action, format, agent |
Where to use them
Use the header constants when you read a request in your receiver, so a rename on Sume's side shows up as a type or value change on upgrade and not a silent mismatch. Use the tolerance constant if you write a verifier of your own and want to match the SDK.
What is not there
The package also exports verifyWebhook, waitForRun, subscribeFormatRun and uploadFile. It does not export waitForJob in 0.2.0, although the repository and the docs describe it, so a job poll needs your own loop on top of getApiJobStatus.
Upgrades
Pin the exact version, and recheck the export list after an upgrade. Generated operations do not throw on an API error; they resolve with { data, error, response }, while waitForRun and subscribeFormatRun do throw.
Sources
Related posts
More in Developers
- Voice note to SRT in Python with Sume STT sentence segments
Submit a voice note to Sume STT with sentence segmentation, poll the job, and write an SRT file from segments[]. Runnable Python with asyncio.run.
- Sume timeouts in one table: 30 s, 55 s, 10 s, 90 minutes
Every wait in the Sume API has its own number: sync 30 s, jobs_wait 55 s, webhook attempts 10 s, SDK helpers 10 and 20 minutes, Format runs 90 minutes.
- Sume TTS without a language field: English default, Hangul fallback
What Sume TTS 1.0 does when you leave out language, why a Hangul-only script is the one fallback, and why you should set language yourself on every job.
- Sume TTS sentence slices need wav or raw output, not mp3
Sume TTS returns per-sentence audio_url slices only for wav or raw output. With mp3 you get timings but no slices. The request that gets clips.
Written by Sume