Rehelios/videos-sdk ? reverse-engineered prompt

Reverse engineered prompt

Build me a TypeScript video SDK that gives me one simple API for uploading, fetching playback info, thumbnails, captions, and webhooks across Rehelios, Mux, Bunny Stream, and Cloudflare Stream.

I want to be able to swap providers by changing one adapter, while the rest of the app code stays the same. Please make it type safe so unsupported features show up as TypeScript errors instead of failing later at runtime. For example, if a provider does not support DASH or a thumbnail time offset, the API should not allow that call.

Keep the public package clean and easy to use, with a small example in the README style showing upload and playback. Include typed errors too, so I can check for things like not found or invalid requests in a normal try and catch flow.

If you need to, look up the current docs for the provider APIs online and make the adapters behave consistently.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab