package types type RecType uint8 const ( RecIdentity RecType = 1 RecCallLog RecType = 2 RecIndex RecType = 6 ) type ErrorCode uint16 const ( ErrNone ErrorCode = 0x00 ErrInternal ErrorCode = 0x01 ErrInvalidRequest ErrorCode = 0x02 ErrPoWInvalid ErrorCode = 0x03 ErrPoWExpired ErrorCode = 0x04 ErrPoWDifficulty ErrorCode = 0x05 ErrNumberTaken ErrorCode = 0x06 ErrCooldown ErrorCode = 0x07 ErrNumberNotFound ErrorCode = 0x08 ErrCallNotFound ErrorCode = 0x09 ErrBusy ErrorCode = 0x0A ErrSelfCall ErrorCode = 0x0B ErrRateLimited ErrorCode = 0x0C ErrAuthFailed ErrorCode = 0x0D ) type CodecType uint8 const ( CodecOpus CodecType = 1 CodecVP9 CodecType = 2 CodecH264 CodecType = 3 CodecH265 CodecType = 4 ) type MediaFlags uint8 const ( MediaKeyframe MediaFlags = 1 << 0 MediaSilence MediaFlags = 1 << 1 ) const ( MaxFrameSize = 67_108_864 MaxRecordsPerFrame = 1_000_000 ) const ( StreamAuth byte = 0x01 StreamCall byte = 0x02 DgramMedia byte = 0x10 )