+/**
+ * Represents an error from a failed request to an API endpoint.
+ *
+ * @author Alexander Ebert
+ * @copyright 2001-2024 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @since 6.1
+ */
+
type RequestFailureType = "api_error" | "invalid_request_error";
export class ApiError {
+/**
+ * Requests the list of users and groups that match the provided query string.
+ *
+ * @author Alexander Ebert
+ * @copyright 2001-2024 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @since 6.1
+ * @woltlabExcludeBundle tiny
+ */
+
import { prepareRequest } from "WoltLabSuite/Core/Ajax/Backend";
import { ApiResult, apiResultFromError, apiResultFromValue } from "../Result";
+/**
+ * Represents the result of a request to an API endpoint and provides functions
+ * to create the result itself. Unwrapping the result through `.unwrap()` is
+ * useful in situations where there should formally never an error.
+ *
+ * @author Alexander Ebert
+ * @copyright 2001-2024 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @since 6.1
+ */
+
import { StatusNotOk } from "../Ajax/Error";
import { isPlainObject } from "../Core";
import { ApiError } from "./Error";
+/**
+ * Deletes a user’s session, effectively forcing a device with that session id
+ * to be logged out.
+ *
+ * @author Alexander Ebert
+ * @copyright 2001-2024 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @since 6.1
+ * @woltlabExcludeBundle tiny
+ */
+
import { prepareRequest } from "WoltLabSuite/Core/Ajax/Backend";
import { ApiResult, apiResultFromError, apiResultFromValue } from "../Result";
+/**
+ * Represents an error from a failed request to an API endpoint.
+ *
+ * @author Alexander Ebert
+ * @copyright 2001-2024 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @since 6.1
+ */
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+/**
+ * Requests the list of users and groups that match the provided query string.
+ *
+ * @author Alexander Ebert
+ * @copyright 2001-2024 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @since 6.1
+ * @woltlabExcludeBundle tiny
+ */
define(["require", "exports", "WoltLabSuite/Core/Ajax/Backend", "../Result"], function (require, exports, Backend_1, Result_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+/**
+ * Represents the result of a request to an API endpoint and provides functions
+ * to create the result itself. Unwrapping the result through `.unwrap()` is
+ * useful in situations where there should formally never an error.
+ *
+ * @author Alexander Ebert
+ * @copyright 2001-2024 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @since 6.1
+ */
define(["require", "exports", "../Core", "./Error"], function (require, exports, Core_1, Error_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+/**
+ * Deletes a user’s session, effectively forcing a device with that session id
+ * to be logged out.
+ *
+ * @author Alexander Ebert
+ * @copyright 2001-2024 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @since 6.1
+ * @woltlabExcludeBundle tiny
+ */
define(["require", "exports", "WoltLabSuite/Core/Ajax/Backend", "../Result"], function (require, exports, Backend_1, Result_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });