function getEnvelopeType(envelope) {
    var _a = __read$1(envelope, 2), _b = __read$1(_a[1], 1), _c = __read$1(_b[0], 1), firstItemHeader = _c[0];
    return firstItemHeader.type;
}
Get the type of the envelope. Grabs the type from the first envelope item.