twilio / twilio-node

Node.js helper library
MIT License
1.4k stars 510 forks source link

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

Open mesqueeb opened 4 years ago

mesqueeb commented 4 years ago

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.

childish-sambino commented 4 years ago

This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.

mesqueeb commented 4 years ago

+1

childish-sambino commented 4 years ago

@mesqueeb

+1s on the issue summary

mesqueeb commented 4 years ago

@childish-sambino Thanks, I added it on the issue summary instead! : )

claudiachua commented 1 year ago

Update: We have this on our internal backlog (DI-2383)