matrix-js-sdk
Version:
Matrix Client-Server SDK for Javascript
64 lines (60 loc) • 2.5 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Visibility = exports.RestrictedAllowType = exports.Preset = exports.JoinRule = exports.HistoryVisibility = exports.GuestAccess = void 0;
/*
Copyright 2021 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
let Visibility;
exports.Visibility = Visibility;
(function (Visibility) {
Visibility["Public"] = "public";
Visibility["Private"] = "private";
})(Visibility || (exports.Visibility = Visibility = {}));
let Preset;
exports.Preset = Preset;
(function (Preset) {
Preset["PrivateChat"] = "private_chat";
Preset["TrustedPrivateChat"] = "trusted_private_chat";
Preset["PublicChat"] = "public_chat";
})(Preset || (exports.Preset = Preset = {}));
// Knock and private are reserved keywords which are not yet implemented.
let JoinRule;
exports.JoinRule = JoinRule;
(function (JoinRule) {
JoinRule["Public"] = "public";
JoinRule["Invite"] = "invite";
JoinRule["Private"] = "private";
JoinRule["Knock"] = "knock";
JoinRule["Restricted"] = "restricted";
})(JoinRule || (exports.JoinRule = JoinRule = {}));
let RestrictedAllowType;
exports.RestrictedAllowType = RestrictedAllowType;
(function (RestrictedAllowType) {
RestrictedAllowType["RoomMembership"] = "m.room_membership";
})(RestrictedAllowType || (exports.RestrictedAllowType = RestrictedAllowType = {}));
let GuestAccess;
exports.GuestAccess = GuestAccess;
(function (GuestAccess) {
GuestAccess["CanJoin"] = "can_join";
GuestAccess["Forbidden"] = "forbidden";
})(GuestAccess || (exports.GuestAccess = GuestAccess = {}));
let HistoryVisibility;
exports.HistoryVisibility = HistoryVisibility;
(function (HistoryVisibility) {
HistoryVisibility["Invited"] = "invited";
HistoryVisibility["Joined"] = "joined";
HistoryVisibility["Shared"] = "shared";
HistoryVisibility["WorldReadable"] = "world_readable";
})(HistoryVisibility || (exports.HistoryVisibility = HistoryVisibility = {}));
//# sourceMappingURL=partials.js.map