twilio / twilio/twilio-node

Cannot find types of: attributes-recording-status-callback-parameters

Open
#588 5 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting for feature type: twilio enhancement
Dominant language
TypeScript
Stars
1.5k
Forks
564
Avg merge
14h 2m
Merged PRs (30d)
3

Description

Issue Summary

I searched for it, but cannot find it in the repo and in the issue.

https://www.twilio.com/docs/voice/twiml/record#attributes-recording-status-callback-parameters

I'm using this event in a TS app, and I'd like to be able to know how the body looks like. From my experiments, this is what Twilio-node sends as the body:

interface RecordingStatusCallbackBody {
    RecordingSource: string
    RecordingSid: string
    ConferenceSid: string
    RecordingUrl: string
    RecordingStatus: string
    RecordingChannels: string
    ErrorCode: string
    RecordingStartTime: string
    AccountSid: string
    RecordingDuration: string
}

But it would be much more efficient and safe if Twilio-node can just expose a type in its types.d.ts I can import to make my endpoints that handle the recordingStatusCallback type safer.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by searching types.d.ts for existing recordingStatusCallback definitions and use the linked Twilio recording callback documentation as the reference. Compare it with the reported payload; done means an exported TypeScript type is available for endpoint handlers.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
api, backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.