open-collaboration-protocol
Version:
Open Collaboration Protocol implementation, part of the Open Collaboration Tools project
42 lines • 1.93 kB
JavaScript
// ******************************************************************************
// Copyright 2024 TypeFox GmbH
// This program and the accompanying materials are made available under the
// terms of the MIT License, which is available in the project root.
// ******************************************************************************
import { isObject } from './types.js';
export var Info;
(function (Info) {
function is(arg) {
return isObject(arg)
&& typeof arg.code === 'string'
&& typeof arg.message === 'string'
&& Array.isArray(arg.params)
&& arg.params.every(param => typeof param === 'string');
}
Info.is = is;
let Codes;
(function (Codes) {
Codes.PerformingLogin = 'PerformingLogin';
Codes.InvalidServerVersion = 'InvalidServerVersion';
Codes.IncompatibleProtocolVersions = 'IncompatibleProtocolVersions';
Codes.AwaitingServerResponse = 'AwaitingServerResponse';
Codes.AuthTimeout = 'AuthTimeout';
Codes.AuthInternalError = 'AuthInternalError';
Codes.RoomNotFound = 'RoomNotFound';
Codes.JoinRequestNotFound = 'JoinRequestNotFound';
Codes.JoinTimeout = 'JoinTimeout';
Codes.JoinRejected = 'JoinRejected';
Codes.WaitingForHost = 'WaitingForHost';
Codes.UnverifiedLoginLabel = 'UnverifiedLoginLabel';
Codes.UnverifiedLoginDetails = 'UnverifiedLoginDetails';
Codes.BuiltinsGroup = 'BuiltinsGroup';
Codes.UsernameLabel = 'UsernameLabel';
Codes.UsernamePlaceholder = 'UsernamePlaceholder';
Codes.EmailLabel = 'EmailLabel';
Codes.EmailPlaceholder = 'EmailPlaceholder';
Codes.ThirdParty = 'ThirdParty';
Codes.GitHubLabel = 'GitHubLabel';
Codes.GoogleLabel = 'GoogleLabel';
})(Codes = Info.Codes || (Info.Codes = {}));
})(Info || (Info = {}));
//# sourceMappingURL=info.js.map