lemmy-js-client 0.17.0-rc.3 → 0.17.0-rc.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/http.d.ts +156 -4
 - package/dist/http.js +255 -80
 - package/dist/index.d.ts +1 -0
 - package/dist/index.js +6 -1
 - package/dist/interfaces/api/comment.d.ts +46 -38
 - package/dist/interfaces/api/comment.js +326 -0
 - package/dist/interfaces/api/community.d.ts +57 -55
 - package/dist/interfaces/api/community.js +433 -0
 - package/dist/interfaces/api/index.js +5 -1
 - package/dist/interfaces/api/person.d.ts +121 -100
 - package/dist/interfaces/api/person.js +894 -0
 - package/dist/interfaces/api/post.d.ts +68 -51
 - package/dist/interfaces/api/post.js +434 -0
 - package/dist/interfaces/api/site.d.ts +100 -90
 - package/dist/interfaces/api/site.js +893 -0
 - package/dist/interfaces/index.js +5 -1
 - package/dist/interfaces/others.d.ts +62 -92
 - package/dist/interfaces/others.js +118 -55
 - package/dist/interfaces/source.d.ts +79 -76
 - package/dist/interfaces/source.js +746 -0
 - package/dist/interfaces/views.d.ts +37 -37
 - package/dist/interfaces/views.js +522 -0
 - package/dist/utils.d.ts +9 -0
 - package/dist/utils.js +18 -0
 - package/dist/websocket.d.ts +13 -2
 - package/dist/websocket.js +23 -5
 - package/package.json +14 -11
 
| 
         @@ -1,2 +1,895 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            "use strict";
         
     | 
| 
      
 2 
     | 
    
         
            +
            var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
         
     | 
| 
      
 3 
     | 
    
         
            +
                var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
         
     | 
| 
      
 4 
     | 
    
         
            +
                if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
         
     | 
| 
      
 5 
     | 
    
         
            +
                else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
         
     | 
| 
      
 6 
     | 
    
         
            +
                return c > 3 && r && Object.defineProperty(target, key, r), r;
         
     | 
| 
      
 7 
     | 
    
         
            +
            };
         
     | 
| 
       2 
8 
     | 
    
         
             
            Object.defineProperty(exports, "__esModule", { value: true });
         
     | 
| 
      
 9 
     | 
    
         
            +
            exports.GetUnreadRegistrationApplicationCountResponse = exports.GetUnreadRegistrationApplicationCount = exports.RegistrationApplicationResponse = exports.ApproveRegistrationApplication = exports.ListRegistrationApplicationsResponse = exports.ListRegistrationApplications = exports.ResolveObjectResponse = exports.ResolveObject = exports.FederatedInstances = exports.SaveSiteConfig = exports.GetSiteConfigResponse = exports.GetSiteConfig = exports.LeaveAdmin = exports.MyUserInfo = exports.GetSiteResponse = exports.SiteResponse = exports.GetSite = exports.EditSite = exports.CreateSite = exports.GetModlogResponse = exports.GetModlog = exports.SearchResponse = exports.Search = void 0;
         
     | 
| 
      
 10 
     | 
    
         
            +
            var class_transformer_1 = require("class-transformer");
         
     | 
| 
      
 11 
     | 
    
         
            +
            require("reflect-metadata");
         
     | 
| 
      
 12 
     | 
    
         
            +
            var utils_1 = require("../../utils");
         
     | 
| 
      
 13 
     | 
    
         
            +
            var views_1 = require("../views");
         
     | 
| 
      
 14 
     | 
    
         
            +
            /**
         
     | 
| 
      
 15 
     | 
    
         
            +
             * Search lemmy for different types of data.
         
     | 
| 
      
 16 
     | 
    
         
            +
             */
         
     | 
| 
      
 17 
     | 
    
         
            +
            var Search = /** @class */ (function () {
         
     | 
| 
      
 18 
     | 
    
         
            +
                function Search(init) {
         
     | 
| 
      
 19 
     | 
    
         
            +
                    Object.assign(this, init);
         
     | 
| 
      
 20 
     | 
    
         
            +
                }
         
     | 
| 
      
 21 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 22 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 23 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 24 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 25 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 26 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 27 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 28 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 29 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 30 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 31 
     | 
    
         
            +
                ], Search.prototype, "type_", void 0);
         
     | 
| 
      
 32 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 33 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 34 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 35 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 36 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 37 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 38 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 39 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 40 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 41 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 42 
     | 
    
         
            +
                ], Search.prototype, "community_id", void 0);
         
     | 
| 
      
 43 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 44 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 45 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 46 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 47 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 48 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 49 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 50 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 51 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 52 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 53 
     | 
    
         
            +
                ], Search.prototype, "community_name", void 0);
         
     | 
| 
      
 54 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 55 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 56 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 57 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 58 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 59 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 60 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 61 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 62 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 63 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 64 
     | 
    
         
            +
                ], Search.prototype, "creator_id", void 0);
         
     | 
| 
      
 65 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 66 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 67 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 68 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 69 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 70 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 71 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 72 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 73 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 74 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 75 
     | 
    
         
            +
                ], Search.prototype, "sort", void 0);
         
     | 
| 
      
 76 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 77 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 78 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 79 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 80 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 81 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 82 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 83 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 84 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 85 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 86 
     | 
    
         
            +
                ], Search.prototype, "listing_type", void 0);
         
     | 
| 
      
 87 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 88 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 89 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 90 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 91 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 92 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 93 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 94 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 95 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 96 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 97 
     | 
    
         
            +
                ], Search.prototype, "page", void 0);
         
     | 
| 
      
 98 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 99 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 100 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 101 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 102 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 103 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 104 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 105 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 106 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 107 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 108 
     | 
    
         
            +
                ], Search.prototype, "limit", void 0);
         
     | 
| 
      
 109 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 110 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 111 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 112 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 113 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 114 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 115 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 116 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 117 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 118 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 119 
     | 
    
         
            +
                ], Search.prototype, "auth", void 0);
         
     | 
| 
      
 120 
     | 
    
         
            +
                return Search;
         
     | 
| 
      
 121 
     | 
    
         
            +
            }());
         
     | 
| 
      
 122 
     | 
    
         
            +
            exports.Search = Search;
         
     | 
| 
      
 123 
     | 
    
         
            +
            var SearchResponse = /** @class */ (function () {
         
     | 
| 
      
 124 
     | 
    
         
            +
                function SearchResponse() {
         
     | 
| 
      
 125 
     | 
    
         
            +
                }
         
     | 
| 
      
 126 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 127 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.CommentView; })
         
     | 
| 
      
 128 
     | 
    
         
            +
                ], SearchResponse.prototype, "comments", void 0);
         
     | 
| 
      
 129 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 130 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.PostView; })
         
     | 
| 
      
 131 
     | 
    
         
            +
                ], SearchResponse.prototype, "posts", void 0);
         
     | 
| 
      
 132 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 133 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.CommunityView; })
         
     | 
| 
      
 134 
     | 
    
         
            +
                ], SearchResponse.prototype, "communities", void 0);
         
     | 
| 
      
 135 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 136 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.PersonViewSafe; })
         
     | 
| 
      
 137 
     | 
    
         
            +
                ], SearchResponse.prototype, "users", void 0);
         
     | 
| 
      
 138 
     | 
    
         
            +
                return SearchResponse;
         
     | 
| 
      
 139 
     | 
    
         
            +
            }());
         
     | 
| 
      
 140 
     | 
    
         
            +
            exports.SearchResponse = SearchResponse;
         
     | 
| 
      
 141 
     | 
    
         
            +
            var GetModlog = /** @class */ (function () {
         
     | 
| 
      
 142 
     | 
    
         
            +
                function GetModlog(init) {
         
     | 
| 
      
 143 
     | 
    
         
            +
                    Object.assign(this, init);
         
     | 
| 
      
 144 
     | 
    
         
            +
                }
         
     | 
| 
      
 145 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 146 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 147 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 148 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 149 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 150 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 151 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 152 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 153 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 154 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 155 
     | 
    
         
            +
                ], GetModlog.prototype, "mod_person_id", void 0);
         
     | 
| 
      
 156 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 157 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 158 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 159 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 160 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 161 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 162 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 163 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 164 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 165 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 166 
     | 
    
         
            +
                ], GetModlog.prototype, "community_id", void 0);
         
     | 
| 
      
 167 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 168 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 169 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 170 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 171 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 172 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 173 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 174 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 175 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 176 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 177 
     | 
    
         
            +
                ], GetModlog.prototype, "page", void 0);
         
     | 
| 
      
 178 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 179 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 180 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 181 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 182 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 183 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 184 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 185 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 186 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 187 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 188 
     | 
    
         
            +
                ], GetModlog.prototype, "limit", void 0);
         
     | 
| 
      
 189 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 190 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 191 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 192 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 193 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 194 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 195 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 196 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 197 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 198 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 199 
     | 
    
         
            +
                ], GetModlog.prototype, "auth", void 0);
         
     | 
| 
      
 200 
     | 
    
         
            +
                return GetModlog;
         
     | 
| 
      
 201 
     | 
    
         
            +
            }());
         
     | 
| 
      
 202 
     | 
    
         
            +
            exports.GetModlog = GetModlog;
         
     | 
| 
      
 203 
     | 
    
         
            +
            var GetModlogResponse = /** @class */ (function () {
         
     | 
| 
      
 204 
     | 
    
         
            +
                function GetModlogResponse() {
         
     | 
| 
      
 205 
     | 
    
         
            +
                }
         
     | 
| 
      
 206 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 207 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.ModRemovePostView; })
         
     | 
| 
      
 208 
     | 
    
         
            +
                ], GetModlogResponse.prototype, "removed_posts", void 0);
         
     | 
| 
      
 209 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 210 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.ModLockPostView; })
         
     | 
| 
      
 211 
     | 
    
         
            +
                ], GetModlogResponse.prototype, "locked_posts", void 0);
         
     | 
| 
      
 212 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 213 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.ModStickyPostView; })
         
     | 
| 
      
 214 
     | 
    
         
            +
                ], GetModlogResponse.prototype, "stickied_posts", void 0);
         
     | 
| 
      
 215 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 216 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.ModRemoveCommentView; })
         
     | 
| 
      
 217 
     | 
    
         
            +
                ], GetModlogResponse.prototype, "removed_comments", void 0);
         
     | 
| 
      
 218 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 219 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.ModRemoveCommunityView; })
         
     | 
| 
      
 220 
     | 
    
         
            +
                ], GetModlogResponse.prototype, "removed_communities", void 0);
         
     | 
| 
      
 221 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 222 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.ModBanFromCommunityView; })
         
     | 
| 
      
 223 
     | 
    
         
            +
                ], GetModlogResponse.prototype, "banned_from_community", void 0);
         
     | 
| 
      
 224 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 225 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.ModBanView; })
         
     | 
| 
      
 226 
     | 
    
         
            +
                ], GetModlogResponse.prototype, "banned", void 0);
         
     | 
| 
      
 227 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 228 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.ModAddCommunityView; })
         
     | 
| 
      
 229 
     | 
    
         
            +
                ], GetModlogResponse.prototype, "added_to_community", void 0);
         
     | 
| 
      
 230 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 231 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.ModTransferCommunityView; })
         
     | 
| 
      
 232 
     | 
    
         
            +
                ], GetModlogResponse.prototype, "transferred_to_community", void 0);
         
     | 
| 
      
 233 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 234 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.ModAddView; })
         
     | 
| 
      
 235 
     | 
    
         
            +
                ], GetModlogResponse.prototype, "added", void 0);
         
     | 
| 
      
 236 
     | 
    
         
            +
                return GetModlogResponse;
         
     | 
| 
      
 237 
     | 
    
         
            +
            }());
         
     | 
| 
      
 238 
     | 
    
         
            +
            exports.GetModlogResponse = GetModlogResponse;
         
     | 
| 
      
 239 
     | 
    
         
            +
            var CreateSite = /** @class */ (function () {
         
     | 
| 
      
 240 
     | 
    
         
            +
                function CreateSite(init) {
         
     | 
| 
      
 241 
     | 
    
         
            +
                    Object.assign(this, init);
         
     | 
| 
      
 242 
     | 
    
         
            +
                }
         
     | 
| 
      
 243 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 244 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 245 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 246 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 247 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 248 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 249 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 250 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 251 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 252 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 253 
     | 
    
         
            +
                ], CreateSite.prototype, "sidebar", void 0);
         
     | 
| 
      
 254 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 255 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 256 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 257 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 258 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 259 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 260 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 261 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 262 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 263 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 264 
     | 
    
         
            +
                ], CreateSite.prototype, "description", void 0);
         
     | 
| 
      
 265 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 266 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 267 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 268 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 269 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 270 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 271 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 272 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 273 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 274 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 275 
     | 
    
         
            +
                ], CreateSite.prototype, "icon", void 0);
         
     | 
| 
      
 276 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 277 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 278 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 279 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 280 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 281 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 282 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 283 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 284 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 285 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 286 
     | 
    
         
            +
                ], CreateSite.prototype, "banner", void 0);
         
     | 
| 
      
 287 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 288 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 289 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 290 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 291 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 292 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 293 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 294 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 295 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 296 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 297 
     | 
    
         
            +
                ], CreateSite.prototype, "enable_downvotes", void 0);
         
     | 
| 
      
 298 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 299 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 300 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 301 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 302 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 303 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 304 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 305 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 306 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 307 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 308 
     | 
    
         
            +
                ], CreateSite.prototype, "open_registration", void 0);
         
     | 
| 
      
 309 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 310 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 311 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 312 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 313 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 314 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 315 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 316 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 317 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 318 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 319 
     | 
    
         
            +
                ], CreateSite.prototype, "enable_nsfw", void 0);
         
     | 
| 
      
 320 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 321 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 322 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 323 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 324 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 325 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 326 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 327 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 328 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 329 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 330 
     | 
    
         
            +
                ], CreateSite.prototype, "community_creation_admin_only", void 0);
         
     | 
| 
      
 331 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 332 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 333 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 334 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 335 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 336 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 337 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 338 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 339 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 340 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 341 
     | 
    
         
            +
                ], CreateSite.prototype, "require_email_verification", void 0);
         
     | 
| 
      
 342 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 343 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 344 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 345 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 346 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 347 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 348 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 349 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 350 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 351 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 352 
     | 
    
         
            +
                ], CreateSite.prototype, "require_application", void 0);
         
     | 
| 
      
 353 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 354 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 355 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 356 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 357 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 358 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 359 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 360 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 361 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 362 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 363 
     | 
    
         
            +
                ], CreateSite.prototype, "application_question", void 0);
         
     | 
| 
      
 364 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 365 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 366 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 367 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 368 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 369 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 370 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 371 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 372 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 373 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 374 
     | 
    
         
            +
                ], CreateSite.prototype, "private_instance", void 0);
         
     | 
| 
      
 375 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 376 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 377 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 378 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 379 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 380 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 381 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 382 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 383 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 384 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 385 
     | 
    
         
            +
                ], CreateSite.prototype, "default_theme", void 0);
         
     | 
| 
      
 386 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 387 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 388 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 389 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 390 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 391 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 392 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 393 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 394 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 395 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 396 
     | 
    
         
            +
                ], CreateSite.prototype, "default_post_listing_type", void 0);
         
     | 
| 
      
 397 
     | 
    
         
            +
                return CreateSite;
         
     | 
| 
      
 398 
     | 
    
         
            +
            }());
         
     | 
| 
      
 399 
     | 
    
         
            +
            exports.CreateSite = CreateSite;
         
     | 
| 
      
 400 
     | 
    
         
            +
            var EditSite = /** @class */ (function () {
         
     | 
| 
      
 401 
     | 
    
         
            +
                function EditSite(init) {
         
     | 
| 
      
 402 
     | 
    
         
            +
                    Object.assign(this, init);
         
     | 
| 
      
 403 
     | 
    
         
            +
                }
         
     | 
| 
      
 404 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 405 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 406 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 407 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 408 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 409 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 410 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 411 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 412 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 413 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 414 
     | 
    
         
            +
                ], EditSite.prototype, "name", void 0);
         
     | 
| 
      
 415 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 416 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 417 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 418 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 419 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 420 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 421 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 422 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 423 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 424 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 425 
     | 
    
         
            +
                ], EditSite.prototype, "sidebar", void 0);
         
     | 
| 
      
 426 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 427 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 428 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 429 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 430 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 431 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 432 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 433 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 434 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 435 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 436 
     | 
    
         
            +
                ], EditSite.prototype, "description", void 0);
         
     | 
| 
      
 437 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 438 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 439 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 440 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 441 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 442 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 443 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 444 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 445 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 446 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 447 
     | 
    
         
            +
                ], EditSite.prototype, "icon", void 0);
         
     | 
| 
      
 448 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 449 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 450 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 451 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 452 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 453 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 454 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 455 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 456 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 457 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 458 
     | 
    
         
            +
                ], EditSite.prototype, "banner", void 0);
         
     | 
| 
      
 459 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 460 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 461 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 462 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 463 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 464 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 465 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 466 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 467 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 468 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 469 
     | 
    
         
            +
                ], EditSite.prototype, "enable_downvotes", void 0);
         
     | 
| 
      
 470 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 471 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 472 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 473 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 474 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 475 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 476 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 477 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 478 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 479 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 480 
     | 
    
         
            +
                ], EditSite.prototype, "open_registration", void 0);
         
     | 
| 
      
 481 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 482 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 483 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 484 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 485 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 486 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 487 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 488 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 489 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 490 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 491 
     | 
    
         
            +
                ], EditSite.prototype, "enable_nsfw", void 0);
         
     | 
| 
      
 492 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 493 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 494 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 495 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 496 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 497 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 498 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 499 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 500 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 501 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 502 
     | 
    
         
            +
                ], EditSite.prototype, "community_creation_admin_only", void 0);
         
     | 
| 
      
 503 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 504 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 505 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 506 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 507 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 508 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 509 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 510 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 511 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 512 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 513 
     | 
    
         
            +
                ], EditSite.prototype, "require_email_verification", void 0);
         
     | 
| 
      
 514 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 515 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 516 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 517 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 518 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 519 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 520 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 521 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 522 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 523 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 524 
     | 
    
         
            +
                ], EditSite.prototype, "require_application", void 0);
         
     | 
| 
      
 525 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 526 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 527 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 528 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 529 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 530 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 531 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 532 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 533 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 534 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 535 
     | 
    
         
            +
                ], EditSite.prototype, "application_question", void 0);
         
     | 
| 
      
 536 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 537 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 538 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 539 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 540 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 541 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 542 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 543 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 544 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 545 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 546 
     | 
    
         
            +
                ], EditSite.prototype, "private_instance", void 0);
         
     | 
| 
      
 547 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 548 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 549 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 550 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 551 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 552 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 553 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 554 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 555 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 556 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 557 
     | 
    
         
            +
                ], EditSite.prototype, "default_theme", void 0);
         
     | 
| 
      
 558 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 559 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 560 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 561 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 562 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 563 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 564 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 565 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 566 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 567 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 568 
     | 
    
         
            +
                ], EditSite.prototype, "legal_information", void 0);
         
     | 
| 
      
 569 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 570 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 571 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 572 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 573 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 574 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 575 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 576 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 577 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 578 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 579 
     | 
    
         
            +
                ], EditSite.prototype, "default_post_listing_type", void 0);
         
     | 
| 
      
 580 
     | 
    
         
            +
                return EditSite;
         
     | 
| 
      
 581 
     | 
    
         
            +
            }());
         
     | 
| 
      
 582 
     | 
    
         
            +
            exports.EditSite = EditSite;
         
     | 
| 
      
 583 
     | 
    
         
            +
            var GetSite = /** @class */ (function () {
         
     | 
| 
      
 584 
     | 
    
         
            +
                function GetSite(init) {
         
     | 
| 
      
 585 
     | 
    
         
            +
                    Object.assign(this, init);
         
     | 
| 
      
 586 
     | 
    
         
            +
                }
         
     | 
| 
      
 587 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 588 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 589 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 590 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 591 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 592 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 593 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 594 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 595 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 596 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 597 
     | 
    
         
            +
                ], GetSite.prototype, "auth", void 0);
         
     | 
| 
      
 598 
     | 
    
         
            +
                return GetSite;
         
     | 
| 
      
 599 
     | 
    
         
            +
            }());
         
     | 
| 
      
 600 
     | 
    
         
            +
            exports.GetSite = GetSite;
         
     | 
| 
      
 601 
     | 
    
         
            +
            var SiteResponse = /** @class */ (function () {
         
     | 
| 
      
 602 
     | 
    
         
            +
                function SiteResponse() {
         
     | 
| 
      
 603 
     | 
    
         
            +
                }
         
     | 
| 
      
 604 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 605 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.SiteView; })
         
     | 
| 
      
 606 
     | 
    
         
            +
                ], SiteResponse.prototype, "site_view", void 0);
         
     | 
| 
      
 607 
     | 
    
         
            +
                return SiteResponse;
         
     | 
| 
      
 608 
     | 
    
         
            +
            }());
         
     | 
| 
      
 609 
     | 
    
         
            +
            exports.SiteResponse = SiteResponse;
         
     | 
| 
      
 610 
     | 
    
         
            +
            var GetSiteResponse = /** @class */ (function () {
         
     | 
| 
      
 611 
     | 
    
         
            +
                function GetSiteResponse() {
         
     | 
| 
      
 612 
     | 
    
         
            +
                }
         
     | 
| 
      
 613 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 614 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 615 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 616 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 617 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 618 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 619 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 620 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 621 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 622 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)(),
         
     | 
| 
      
 623 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.SiteView; })
         
     | 
| 
      
 624 
     | 
    
         
            +
                ], GetSiteResponse.prototype, "site_view", void 0);
         
     | 
| 
      
 625 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 626 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.PersonViewSafe; })
         
     | 
| 
      
 627 
     | 
    
         
            +
                ], GetSiteResponse.prototype, "admins", void 0);
         
     | 
| 
      
 628 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 629 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 630 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 631 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 632 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 633 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 634 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 635 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 636 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 637 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)(),
         
     | 
| 
      
 638 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return MyUserInfo; })
         
     | 
| 
      
 639 
     | 
    
         
            +
                ], GetSiteResponse.prototype, "my_user", void 0);
         
     | 
| 
      
 640 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 641 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 642 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 643 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 644 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 645 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 646 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 647 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 648 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 649 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)(),
         
     | 
| 
      
 650 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return FederatedInstances; })
         
     | 
| 
      
 651 
     | 
    
         
            +
                ], GetSiteResponse.prototype, "federated_instances", void 0);
         
     | 
| 
      
 652 
     | 
    
         
            +
                return GetSiteResponse;
         
     | 
| 
      
 653 
     | 
    
         
            +
            }());
         
     | 
| 
      
 654 
     | 
    
         
            +
            exports.GetSiteResponse = GetSiteResponse;
         
     | 
| 
      
 655 
     | 
    
         
            +
            /**
         
     | 
| 
      
 656 
     | 
    
         
            +
             * Your user info, such as blocks, follows, etc.
         
     | 
| 
      
 657 
     | 
    
         
            +
             */
         
     | 
| 
      
 658 
     | 
    
         
            +
            var MyUserInfo = /** @class */ (function () {
         
     | 
| 
      
 659 
     | 
    
         
            +
                function MyUserInfo() {
         
     | 
| 
      
 660 
     | 
    
         
            +
                }
         
     | 
| 
      
 661 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 662 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.LocalUserSettingsView; })
         
     | 
| 
      
 663 
     | 
    
         
            +
                ], MyUserInfo.prototype, "local_user_view", void 0);
         
     | 
| 
      
 664 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 665 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.CommunityFollowerView; })
         
     | 
| 
      
 666 
     | 
    
         
            +
                ], MyUserInfo.prototype, "follows", void 0);
         
     | 
| 
      
 667 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 668 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.CommunityModeratorView; })
         
     | 
| 
      
 669 
     | 
    
         
            +
                ], MyUserInfo.prototype, "moderates", void 0);
         
     | 
| 
      
 670 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 671 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.CommunityBlockView; })
         
     | 
| 
      
 672 
     | 
    
         
            +
                ], MyUserInfo.prototype, "community_blocks", void 0);
         
     | 
| 
      
 673 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 674 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.PersonBlockView; })
         
     | 
| 
      
 675 
     | 
    
         
            +
                ], MyUserInfo.prototype, "person_blocks", void 0);
         
     | 
| 
      
 676 
     | 
    
         
            +
                return MyUserInfo;
         
     | 
| 
      
 677 
     | 
    
         
            +
            }());
         
     | 
| 
      
 678 
     | 
    
         
            +
            exports.MyUserInfo = MyUserInfo;
         
     | 
| 
      
 679 
     | 
    
         
            +
            var LeaveAdmin = /** @class */ (function () {
         
     | 
| 
      
 680 
     | 
    
         
            +
                function LeaveAdmin(init) {
         
     | 
| 
      
 681 
     | 
    
         
            +
                    Object.assign(this, init);
         
     | 
| 
      
 682 
     | 
    
         
            +
                }
         
     | 
| 
      
 683 
     | 
    
         
            +
                return LeaveAdmin;
         
     | 
| 
      
 684 
     | 
    
         
            +
            }());
         
     | 
| 
      
 685 
     | 
    
         
            +
            exports.LeaveAdmin = LeaveAdmin;
         
     | 
| 
      
 686 
     | 
    
         
            +
            var GetSiteConfig = /** @class */ (function () {
         
     | 
| 
      
 687 
     | 
    
         
            +
                function GetSiteConfig(init) {
         
     | 
| 
      
 688 
     | 
    
         
            +
                    Object.assign(this, init);
         
     | 
| 
      
 689 
     | 
    
         
            +
                }
         
     | 
| 
      
 690 
     | 
    
         
            +
                return GetSiteConfig;
         
     | 
| 
      
 691 
     | 
    
         
            +
            }());
         
     | 
| 
      
 692 
     | 
    
         
            +
            exports.GetSiteConfig = GetSiteConfig;
         
     | 
| 
      
 693 
     | 
    
         
            +
            var GetSiteConfigResponse = /** @class */ (function () {
         
     | 
| 
      
 694 
     | 
    
         
            +
                function GetSiteConfigResponse() {
         
     | 
| 
      
 695 
     | 
    
         
            +
                }
         
     | 
| 
      
 696 
     | 
    
         
            +
                return GetSiteConfigResponse;
         
     | 
| 
      
 697 
     | 
    
         
            +
            }());
         
     | 
| 
      
 698 
     | 
    
         
            +
            exports.GetSiteConfigResponse = GetSiteConfigResponse;
         
     | 
| 
      
 699 
     | 
    
         
            +
            var SaveSiteConfig = /** @class */ (function () {
         
     | 
| 
      
 700 
     | 
    
         
            +
                function SaveSiteConfig(init) {
         
     | 
| 
      
 701 
     | 
    
         
            +
                    Object.assign(this, init);
         
     | 
| 
      
 702 
     | 
    
         
            +
                }
         
     | 
| 
      
 703 
     | 
    
         
            +
                return SaveSiteConfig;
         
     | 
| 
      
 704 
     | 
    
         
            +
            }());
         
     | 
| 
      
 705 
     | 
    
         
            +
            exports.SaveSiteConfig = SaveSiteConfig;
         
     | 
| 
      
 706 
     | 
    
         
            +
            var FederatedInstances = /** @class */ (function () {
         
     | 
| 
      
 707 
     | 
    
         
            +
                function FederatedInstances(init) {
         
     | 
| 
      
 708 
     | 
    
         
            +
                    Object.assign(this, init);
         
     | 
| 
      
 709 
     | 
    
         
            +
                }
         
     | 
| 
      
 710 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 711 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 712 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 713 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 714 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 715 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 716 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 717 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 718 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 719 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 720 
     | 
    
         
            +
                ], FederatedInstances.prototype, "allowed", void 0);
         
     | 
| 
      
 721 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 722 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 723 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 724 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 725 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 726 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 727 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 728 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 729 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 730 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 731 
     | 
    
         
            +
                ], FederatedInstances.prototype, "blocked", void 0);
         
     | 
| 
      
 732 
     | 
    
         
            +
                return FederatedInstances;
         
     | 
| 
      
 733 
     | 
    
         
            +
            }());
         
     | 
| 
      
 734 
     | 
    
         
            +
            exports.FederatedInstances = FederatedInstances;
         
     | 
| 
      
 735 
     | 
    
         
            +
            var ResolveObject = /** @class */ (function () {
         
     | 
| 
      
 736 
     | 
    
         
            +
                function ResolveObject(init) {
         
     | 
| 
      
 737 
     | 
    
         
            +
                    Object.assign(this, init);
         
     | 
| 
      
 738 
     | 
    
         
            +
                }
         
     | 
| 
      
 739 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 740 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 741 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 742 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 743 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 744 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 745 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 746 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 747 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 748 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 749 
     | 
    
         
            +
                ], ResolveObject.prototype, "auth", void 0);
         
     | 
| 
      
 750 
     | 
    
         
            +
                return ResolveObject;
         
     | 
| 
      
 751 
     | 
    
         
            +
            }());
         
     | 
| 
      
 752 
     | 
    
         
            +
            exports.ResolveObject = ResolveObject;
         
     | 
| 
      
 753 
     | 
    
         
            +
            var ResolveObjectResponse = /** @class */ (function () {
         
     | 
| 
      
 754 
     | 
    
         
            +
                function ResolveObjectResponse() {
         
     | 
| 
      
 755 
     | 
    
         
            +
                }
         
     | 
| 
      
 756 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 757 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 758 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 759 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 760 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 761 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 762 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 763 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 764 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 765 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)(),
         
     | 
| 
      
 766 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.CommentView; })
         
     | 
| 
      
 767 
     | 
    
         
            +
                ], ResolveObjectResponse.prototype, "comment", void 0);
         
     | 
| 
      
 768 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 769 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 770 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 771 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 772 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 773 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 774 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 775 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 776 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 777 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)(),
         
     | 
| 
      
 778 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.PostView; })
         
     | 
| 
      
 779 
     | 
    
         
            +
                ], ResolveObjectResponse.prototype, "post", void 0);
         
     | 
| 
      
 780 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 781 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 782 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 783 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 784 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 785 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 786 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 787 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 788 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 789 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)(),
         
     | 
| 
      
 790 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.CommunityView; })
         
     | 
| 
      
 791 
     | 
    
         
            +
                ], ResolveObjectResponse.prototype, "community", void 0);
         
     | 
| 
      
 792 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 793 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 794 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 795 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 796 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 797 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 798 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 799 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 800 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 801 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)(),
         
     | 
| 
      
 802 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.PersonViewSafe; })
         
     | 
| 
      
 803 
     | 
    
         
            +
                ], ResolveObjectResponse.prototype, "person", void 0);
         
     | 
| 
      
 804 
     | 
    
         
            +
                return ResolveObjectResponse;
         
     | 
| 
      
 805 
     | 
    
         
            +
            }());
         
     | 
| 
      
 806 
     | 
    
         
            +
            exports.ResolveObjectResponse = ResolveObjectResponse;
         
     | 
| 
      
 807 
     | 
    
         
            +
            var ListRegistrationApplications = /** @class */ (function () {
         
     | 
| 
      
 808 
     | 
    
         
            +
                function ListRegistrationApplications(init) {
         
     | 
| 
      
 809 
     | 
    
         
            +
                    Object.assign(this, init);
         
     | 
| 
      
 810 
     | 
    
         
            +
                }
         
     | 
| 
      
 811 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 812 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 813 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 814 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 815 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 816 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 817 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 818 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 819 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 820 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 821 
     | 
    
         
            +
                ], ListRegistrationApplications.prototype, "unread_only", void 0);
         
     | 
| 
      
 822 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 823 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 824 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 825 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 826 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 827 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 828 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 829 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 830 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 831 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 832 
     | 
    
         
            +
                ], ListRegistrationApplications.prototype, "page", void 0);
         
     | 
| 
      
 833 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 834 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 835 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 836 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 837 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 838 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 839 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 840 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 841 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 842 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 843 
     | 
    
         
            +
                ], ListRegistrationApplications.prototype, "limit", void 0);
         
     | 
| 
      
 844 
     | 
    
         
            +
                return ListRegistrationApplications;
         
     | 
| 
      
 845 
     | 
    
         
            +
            }());
         
     | 
| 
      
 846 
     | 
    
         
            +
            exports.ListRegistrationApplications = ListRegistrationApplications;
         
     | 
| 
      
 847 
     | 
    
         
            +
            var ListRegistrationApplicationsResponse = /** @class */ (function () {
         
     | 
| 
      
 848 
     | 
    
         
            +
                function ListRegistrationApplicationsResponse() {
         
     | 
| 
      
 849 
     | 
    
         
            +
                }
         
     | 
| 
      
 850 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 851 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.RegistrationApplicationView; })
         
     | 
| 
      
 852 
     | 
    
         
            +
                ], ListRegistrationApplicationsResponse.prototype, "registration_applications", void 0);
         
     | 
| 
      
 853 
     | 
    
         
            +
                return ListRegistrationApplicationsResponse;
         
     | 
| 
      
 854 
     | 
    
         
            +
            }());
         
     | 
| 
      
 855 
     | 
    
         
            +
            exports.ListRegistrationApplicationsResponse = ListRegistrationApplicationsResponse;
         
     | 
| 
      
 856 
     | 
    
         
            +
            var ApproveRegistrationApplication = /** @class */ (function () {
         
     | 
| 
      
 857 
     | 
    
         
            +
                function ApproveRegistrationApplication(init) {
         
     | 
| 
      
 858 
     | 
    
         
            +
                    Object.assign(this, init);
         
     | 
| 
      
 859 
     | 
    
         
            +
                }
         
     | 
| 
      
 860 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 861 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 862 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 863 
     | 
    
         
            +
                        return (0, utils_1.toOption)(value);
         
     | 
| 
      
 864 
     | 
    
         
            +
                    }, { toClassOnly: true }),
         
     | 
| 
      
 865 
     | 
    
         
            +
                    (0, class_transformer_1.Transform)(function (_a) {
         
     | 
| 
      
 866 
     | 
    
         
            +
                        var value = _a.value;
         
     | 
| 
      
 867 
     | 
    
         
            +
                        return (0, utils_1.toUndefined)(value);
         
     | 
| 
      
 868 
     | 
    
         
            +
                    }, { toPlainOnly: true }),
         
     | 
| 
      
 869 
     | 
    
         
            +
                    (0, class_transformer_1.Expose)()
         
     | 
| 
      
 870 
     | 
    
         
            +
                ], ApproveRegistrationApplication.prototype, "deny_reason", void 0);
         
     | 
| 
      
 871 
     | 
    
         
            +
                return ApproveRegistrationApplication;
         
     | 
| 
      
 872 
     | 
    
         
            +
            }());
         
     | 
| 
      
 873 
     | 
    
         
            +
            exports.ApproveRegistrationApplication = ApproveRegistrationApplication;
         
     | 
| 
      
 874 
     | 
    
         
            +
            var RegistrationApplicationResponse = /** @class */ (function () {
         
     | 
| 
      
 875 
     | 
    
         
            +
                function RegistrationApplicationResponse() {
         
     | 
| 
      
 876 
     | 
    
         
            +
                }
         
     | 
| 
      
 877 
     | 
    
         
            +
                __decorate([
         
     | 
| 
      
 878 
     | 
    
         
            +
                    (0, class_transformer_1.Type)(function () { return views_1.RegistrationApplicationView; })
         
     | 
| 
      
 879 
     | 
    
         
            +
                ], RegistrationApplicationResponse.prototype, "registration_application", void 0);
         
     | 
| 
      
 880 
     | 
    
         
            +
                return RegistrationApplicationResponse;
         
     | 
| 
      
 881 
     | 
    
         
            +
            }());
         
     | 
| 
      
 882 
     | 
    
         
            +
            exports.RegistrationApplicationResponse = RegistrationApplicationResponse;
         
     | 
| 
      
 883 
     | 
    
         
            +
            var GetUnreadRegistrationApplicationCount = /** @class */ (function () {
         
     | 
| 
      
 884 
     | 
    
         
            +
                function GetUnreadRegistrationApplicationCount(init) {
         
     | 
| 
      
 885 
     | 
    
         
            +
                    Object.assign(this, init);
         
     | 
| 
      
 886 
     | 
    
         
            +
                }
         
     | 
| 
      
 887 
     | 
    
         
            +
                return GetUnreadRegistrationApplicationCount;
         
     | 
| 
      
 888 
     | 
    
         
            +
            }());
         
     | 
| 
      
 889 
     | 
    
         
            +
            exports.GetUnreadRegistrationApplicationCount = GetUnreadRegistrationApplicationCount;
         
     | 
| 
      
 890 
     | 
    
         
            +
            var GetUnreadRegistrationApplicationCountResponse = /** @class */ (function () {
         
     | 
| 
      
 891 
     | 
    
         
            +
                function GetUnreadRegistrationApplicationCountResponse() {
         
     | 
| 
      
 892 
     | 
    
         
            +
                }
         
     | 
| 
      
 893 
     | 
    
         
            +
                return GetUnreadRegistrationApplicationCountResponse;
         
     | 
| 
      
 894 
     | 
    
         
            +
            }());
         
     | 
| 
      
 895 
     | 
    
         
            +
            exports.GetUnreadRegistrationApplicationCountResponse = GetUnreadRegistrationApplicationCountResponse;
         
     |