dist/typings.js
/**
* Layout contains type definitions for various layout primitives.
*/
export var Layout;
(function (Layout) {
/**
* Offers constant information values to use in an application.
*/
Layout.gridLayouts = [
{
size: 'large',
minWidth: 900,
width: 80,
height: 20,
},
{
size: 'medium',
minWidth: 540,
width: 45,
height: 25,
},
{
size: 'small',
minWidth: 0,
width: 30,
height: 40,
},
];
})(Layout || (Layout = {}));
/**
* Enumeration of Interactive error codes. More docs and descriptions can be found in:
* {@link https://dev.mixer.com/reference/interactive/protocol/protocol.pdf}
*/
export var ErrorCode;
(function (ErrorCode) {
ErrorCode[ErrorCode["HttpBadRequest"] = 400] = "HttpBadRequest";
ErrorCode[ErrorCode["HttpNotFound"] = 404] = "HttpNotFound";
ErrorCode[ErrorCode["HttpInternalServerError"] = 500] = "HttpInternalServerError";
ErrorCode[ErrorCode["HttpServiceUnavailable"] = 503] = "HttpServiceUnavailable";
ErrorCode[ErrorCode["CloseNormal"] = 1000] = "CloseNormal";
ErrorCode[ErrorCode["CloseGoingAway"] = 1001] = "CloseGoingAway";
ErrorCode[ErrorCode["CloseProtocolError"] = 1002] = "CloseProtocolError";
ErrorCode[ErrorCode["CloseUnsupported"] = 1003] = "CloseUnsupported";
// 1004 is reserved
ErrorCode[ErrorCode["CloseNoStatus"] = 1005] = "CloseNoStatus";
ErrorCode[ErrorCode["CloseAbnormal"] = 1006] = "CloseAbnormal";
ErrorCode[ErrorCode["CloseUnsupportedData"] = 1007] = "CloseUnsupportedData";
ErrorCode[ErrorCode["ClosePolicyViolation"] = 1008] = "ClosePolicyViolation";
ErrorCode[ErrorCode["CloseTooLarge"] = 1009] = "CloseTooLarge";
ErrorCode[ErrorCode["CloseMissingExtension"] = 1010] = "CloseMissingExtension";
ErrorCode[ErrorCode["CloseInternalError"] = 1011] = "CloseInternalError";
ErrorCode[ErrorCode["CloseRestarting"] = 1012] = "CloseRestarting";
ErrorCode[ErrorCode["AppBadJson"] = 4000] = "AppBadJson";
ErrorCode[ErrorCode["AppBadCompression"] = 4001] = "AppBadCompression";
ErrorCode[ErrorCode["AppBadPacketType"] = 4002] = "AppBadPacketType";
ErrorCode[ErrorCode["AppBadMethod"] = 4003] = "AppBadMethod";
ErrorCode[ErrorCode["AppBadArgs"] = 4004] = "AppBadArgs";
ErrorCode[ErrorCode["AppBadEtag"] = 4005] = "AppBadEtag";
ErrorCode[ErrorCode["AppExpiredTransaction"] = 4006] = "AppExpiredTransaction";
ErrorCode[ErrorCode["AppNotEnoughSparks"] = 4007] = "AppNotEnoughSparks";
ErrorCode[ErrorCode["AppUnknownGroup"] = 4008] = "AppUnknownGroup";
ErrorCode[ErrorCode["AppGroupExists"] = 4009] = "AppGroupExists";
ErrorCode[ErrorCode["AppUnknownScene"] = 4010] = "AppUnknownScene";
ErrorCode[ErrorCode["AppSceneExists"] = 4011] = "AppSceneExists";
ErrorCode[ErrorCode["AppUnknownControl"] = 4012] = "AppUnknownControl";
ErrorCode[ErrorCode["AppControlExists"] = 4013] = "AppControlExists";
ErrorCode[ErrorCode["AppUnknownControlType"] = 4014] = "AppUnknownControlType";
ErrorCode[ErrorCode["AppUnknownParticipant"] = 4015] = "AppUnknownParticipant";
ErrorCode[ErrorCode["AppSessionClosing"] = 4016] = "AppSessionClosing";
ErrorCode[ErrorCode["AppOutOfMemory"] = 4017] = "AppOutOfMemory";
ErrorCode[ErrorCode["AppCannotDeleteDefault"] = 4018] = "AppCannotDeleteDefault";
ErrorCode[ErrorCode["AppCannotAuthenticate"] = 4019] = "AppCannotAuthenticate";
ErrorCode[ErrorCode["AppNoInteractiveVersion"] = 4020] = "AppNoInteractiveVersion";
ErrorCode[ErrorCode["AppExistingInteractiveSession"] = 4021] = "AppExistingInteractiveSession";
ErrorCode[ErrorCode["AppChannelNotOnline"] = 4022] = "AppChannelNotOnline";
ErrorCode[ErrorCode["AppBadUserInput"] = 4999] = "AppBadUserInput";
})(ErrorCode || (ErrorCode = {}));