Type Alias DataDescriptor
DataDescriptor:
| { kind: "text"; text: string }
| { element: Element; kind: "xml" }
| { bytes: Uint8Array; kind: "base64" }
| { kind: "chunkedBase64"; streamId: string }
| { kind: "ibb"; sid: string }
| { element: Element; id: string; kind: "sipub" }
| { element: Element; kind: "jingle"; sid: string }
| { element: Element; kind: "unsupported"; name: string }
The child of/, discriminated by encoding.
sipub/jingle keep their element verbatim: the codec only extracts the identifiers; SipubManager/JingleManager build and interpret the elements. "unsupported" covers anything else — decoded losslessly so callers can answer 501 cleanly.