Add structured workflow result models for video and document uploads; update client methods and examples

This commit is contained in:
claudi 2026-04-07 10:36:41 +02:00
parent 6d54c5900c
commit 00539b4fb2
5 changed files with 98 additions and 26 deletions

View file

@ -13,6 +13,7 @@ Currently wired API domains include Notification, Inventory, Fulfillment, Accoun
The Media wrapper includes workflow helpers on top of the raw endpoints:
- `VideoWorkflowResult` and `DocumentWorkflowResult` to return structured data from the higher-level workflows
- `extract_resource_id()` to pull a media resource ID from a `Location` header
- `guess_media_content_type()` to infer a content type from a file name when possible
- `wait_for_video()` to poll until a video reaches `LIVE` or a terminal failure state