twilio-node icon indicating copy to clipboard operation
twilio-node copied to clipboard

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

Open mesqueeb opened this issue 5 years ago • 5 comments

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.

mesqueeb avatar Jun 30 '20 03:06 mesqueeb

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.

childish-sambino avatar Jun 30 '20 14:06 childish-sambino

+1

mesqueeb avatar Jul 02 '20 08:07 mesqueeb

@mesqueeb

+1s on the issue summary

childish-sambino avatar Jul 02 '20 16:07 childish-sambino

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

mesqueeb avatar Jul 02 '20 21:07 mesqueeb

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

claudiachua avatar Nov 29 '22 16:11 claudiachua