Extract structured VERSION_UNSUPPORTED details from an AdCP error
envelope. Returns undefined when the error has no data block or the
block doesn't match the spec shape — callers should treat absence as
"seller didn't tell me what they support" and fall back to a fixed retry
strategy.
Accepts either a raw error.data object or the full unwrapped response
— looks for data / details / adcp_error.data / adcp_error.details
variants since SDKs sometimes nest the structured payload differently.
Extract structured
VERSION_UNSUPPORTEDdetails from an AdCP error envelope. Returnsundefinedwhen the error has nodatablock or the block doesn't match the spec shape — callers should treat absence as "seller didn't tell me what they support" and fall back to a fixed retry strategy.Accepts either a raw
error.dataobject or the full unwrapped response — looks fordata/details/adcp_error.data/adcp_error.detailsvariants since SDKs sometimes nest the structured payload differently.