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,EAAQue,GACrB,MAAMvf,EAAO,CACTyF,QAASzE,GAEbnI,KAAKqkB,YAAY,WAAYld,EAAMuf,EACvC,CACAgC,kBAAAA,CAAmBC,EAAchgB,EAAW+d,GACxC,MAAMvf,EAAO,CACTyhB,kBAAmBjgB,EACnBkgB,eAAgBF,GAEpB3oB,KAAKqkB,YAAY,WAAYld,EAAMuf,EACvC,CACAoC,sBAAAA,CAAuBC,EAAcC,EAAQtC,GACzC,MAAMvf,EAAO,CACT8hB,eAAgBF,EAChBC,UAEJhpB,KAAKqkB,YAAY,4BAA6Bld,EAAMuf,EACxD,CACAwC,6BAAAA,CAA8Blf,EAAQH,EAAQsf,EAAQC,GAClD,MAAMjiB,EAAO,CACT0J,QAAS7G,EACT6Q,WAAYwO,OAAOC,UAAU9K,UAC7B3U,SACAsf,SACAhiB,KAAMiiB,GAEVppB,KAAKqkB,YAAY,oBAAqBld,EAC1C,CACAoiB,WAAAA,CAAY7C,GACR1mB,KAAKqkB,YAAY,eAAgB,KAAMqC,EAC3C,CACA8C,gBAAAA,CAAiBvhB,EAASye,GACtB,MAAMvf,EAAO,CACToH,SAAUtG,GAEdjI,KAAKqkB,YAAY,sBAAuBld,EAAMuf,EAClD,E,gBCtWJ,IAAIvR,EAFJtU,OAAOa,eAAeW,EAAS,aAAc,CAAEH,OAAO,IACtDG,EAAQonB,WAAapnB,EAAQ8S,cAAW,EAExC,SAAWA,GACPA,EAAgB,MAAI,QACpBA,EAAkB,QAAI,UACtBA,EAAe,KAAI,OACnBA,EAAgB,MAAI,OACvB,CALD,CAKGA,IAAa9S,EAAQ8S,SAAWA,EAAW,CAAC,IAE/C9S,EAAQonB,WADYC,GAA2D,QAApDA,aAA6B,EAASA,EAAE7f,O","sources":["webpack://mattermost-webapp/../node_modules/core-js/modules/es.string.ends-with.js","webpack://mattermost-webapp/../platform/client/lib/client4.js","webpack://mattermost-webapp/../platform/client/lib/errors.js","webpack://mattermost-webapp/../platform/client/lib/helpers.js","webpack://mattermost-webapp/../platform/client/lib/index.js","webpack://mattermost-webapp/../platform/client/lib/websocket.js","webpack://mattermost-webapp/../platform/types/lib/client4.js"],"sourcesContent":["'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\nvar IS_PURE = require('../internals/is-pure');\n\n// eslint-disable-next-line es/no-string-prototype-endswith -- safe\nvar nativeEndsWith = uncurryThis(''.endsWith);\nvar slice = uncurryThis(''.slice);\nvar min = Math.min;\n\nvar CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith');\n// https://github.com/zloirock/core-js/pull/702\nvar MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {\n var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');\n return descriptor && !descriptor.writable;\n}();\n\n// `String.prototype.endsWith` method\n// https://tc39.es/ecma262/#sec-string.prototype.endswith\n$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {\n endsWith: function endsWith(searchString /* , endPosition = @length */) {\n var that = toString(requireObjectCoercible(this));\n notARegExp(searchString);\n var endPosition = arguments.length > 1 ? arguments[1] : undefined;\n var len = that.length;\n var end = endPosition === undefined ? len : min(toLength(endPosition), len);\n var search = toString(searchString);\n return nativeEndsWith\n ? nativeEndsWith(that, search, end)\n : slice(that, end - search.length, end) === search;\n }\n});\n","\"use strict\";\n// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ClientError = exports.DEFAULT_LIMIT_AFTER = exports.DEFAULT_LIMIT_BEFORE = exports.HEADER_X_VERSION_ID = exports.HEADER_X_CLUSTER_ID = void 0;\nexports.parseAndMergeNestedHeaders = parseAndMergeNestedHeaders;\nconst client4_1 = require(\"@mattermost/types/client4\");\nconst errors_1 = require(\"./errors\");\nconst helpers_1 = require(\"./helpers\");\nconst HEADER_AUTH = 'Authorization';\nconst HEADER_BEARER = 'BEARER';\nconst HEADER_CONTENT_TYPE = 'Content-Type';\nconst HEADER_REQUESTED_WITH = 'X-Requested-With';\nconst HEADER_USER_AGENT = 'User-Agent';\nexports.HEADER_X_CLUSTER_ID = 'X-Cluster-Id';\nconst HEADER_X_CSRF_TOKEN = 'X-CSRF-Token';\nexports.HEADER_X_VERSION_ID = 'X-Version-Id';\nconst LOGS_PER_PAGE_DEFAULT = 10000;\nconst AUTOCOMPLETE_LIMIT_DEFAULT = 25;\nconst PER_PAGE_DEFAULT = 60;\nexports.DEFAULT_LIMIT_BEFORE = 30;\nexports.DEFAULT_LIMIT_AFTER = 30;\nclass Client4 {\n logToConsole = false;\n serverVersion = '';\n clusterId = '';\n token = '';\n csrf = '';\n url = '';\n urlVersion = '/api/v4';\n userAgent = null;\n enableLogging = false;\n defaultHeaders = {};\n userId = '';\n diagnosticId = '';\n includeCookies = true;\n setAuthHeader = true;\n translations = {\n connectionError: 'There appears to be a problem with your internet connection.',\n unknownError: 'We received an unexpected status code from the server.',\n };\n userRoles = '';\n telemetryHandler;\n getUrl() {\n return this.url;\n }\n getAbsoluteUrl(baseUrl) {\n if (typeof baseUrl !== 'string' || !baseUrl.startsWith('/')) {\n return baseUrl;\n }\n return this.getUrl() + baseUrl;\n }\n setUrl(url) {\n this.url = url;\n }\n setUserAgent(userAgent) {\n this.userAgent = userAgent;\n }\n getToken() {\n return this.token;\n }\n setToken(token) {\n this.token = token;\n }\n setCSRF(csrfToken) {\n this.csrf = csrfToken;\n }\n setAcceptLanguage(locale) {\n this.defaultHeaders['Accept-Language'] = locale;\n }\n setHeader(header, value) {\n this.defaultHeaders[header] = value;\n }\n removeHeader(header) {\n delete this.defaultHeaders[header];\n }\n setEnableLogging(enable) {\n this.enableLogging = enable;\n }\n setIncludeCookies(include) {\n this.includeCookies = include;\n }\n setUserId(userId) {\n this.userId = userId;\n }\n setUserRoles(roles) {\n this.userRoles = roles;\n }\n setDiagnosticId(diagnosticId) {\n this.diagnosticId = diagnosticId;\n }\n setTelemetryHandler(telemetryHandler) {\n this.telemetryHandler = telemetryHandler;\n }\n getServerVersion() {\n return this.serverVersion;\n }\n getUrlVersion() {\n return this.urlVersion;\n }\n getBaseRoute() {\n return `${this.url}${this.urlVersion}`;\n }\n getAppsProxyRoute() {\n return `${this.url}/plugins/com.mattermost.apps`;\n }\n getUsersRoute() {\n return `${this.getBaseRoute()}/users`;\n }\n getUserRoute(userId) {\n return `${this.getUsersRoute()}/${userId}`;\n }\n getTeamsRoute() {\n return `${this.getBaseRoute()}/teams`;\n }\n getTeamRoute(teamId) {\n return `${this.getTeamsRoute()}/${teamId}`;\n }\n getTeamSchemeRoute(teamId) {\n return `${this.getTeamRoute(teamId)}/scheme`;\n }\n getTeamNameRoute(teamName) {\n return `${this.getTeamsRoute()}/name/${teamName}`;\n }\n getTeamMembersRoute(teamId) {\n return `${this.getTeamRoute(teamId)}/members`;\n }\n getTeamMemberRoute(teamId, userId) {\n return `${this.getTeamMembersRoute(teamId)}/${userId}`;\n }\n getChannelsRoute() {\n return `${this.getBaseRoute()}/channels`;\n }\n getChannelRoute(channelId) {\n return `${this.getChannelsRoute()}/${channelId}`;\n }\n getChannelMembersRoute(channelId) {\n return `${this.getChannelRoute(channelId)}/members`;\n }\n getChannelMemberRoute(channelId, userId) {\n return `${this.getChannelMembersRoute(channelId)}/${userId}`;\n }\n getChannelSchemeRoute(channelId) {\n return `${this.getChannelRoute(channelId)}/scheme`;\n }\n getChannelBookmarksRoute(channelId) {\n return `${this.getChannelRoute(channelId)}/bookmarks`;\n }\n getChannelBookmarkRoute(channelId, bookmarkId) {\n return `${this.getChannelRoute(channelId)}/bookmarks/${bookmarkId}`;\n }\n getChannelCategoriesRoute(userId, teamId) {\n return `${this.getBaseRoute()}/users/${userId}/teams/${teamId}/channels/categories`;\n }\n getRemoteClustersRoute() {\n return `${this.getBaseRoute()}/remotecluster`;\n }\n getRemoteClusterRoute(remoteId) {\n return `${this.getRemoteClustersRoute()}/${remoteId}`;\n }\n getCustomProfileAttributeFieldsRoute() {\n return `${this.getBaseRoute()}/custom_profile_attributes/fields`;\n }\n getCustomProfileAttributeFieldRoute(propertyFieldId) {\n return `${this.getCustomProfileAttributeFieldsRoute()}/${propertyFieldId}`;\n }\n getCustomProfileAttributeValuesRoute() {\n return `${this.getBaseRoute()}/custom_profile_attributes/values`;\n }\n getPostsRoute() {\n return `${this.getBaseRoute()}/posts`;\n }\n getPostRoute(postId) {\n return `${this.getPostsRoute()}/${postId}`;\n }\n getReactionsRoute() {\n return `${this.getBaseRoute()}/reactions`;\n }\n getCommandsRoute() {\n return `${this.getBaseRoute()}/commands`;\n }\n getFilesRoute() {\n return `${this.getBaseRoute()}/files`;\n }\n getFileRoute(fileId) {\n return `${this.getFilesRoute()}/${fileId}`;\n }\n getPreferencesRoute(userId) {\n return `${this.getUserRoute(userId)}/preferences`;\n }\n getIncomingHooksRoute() {\n return `${this.getBaseRoute()}/hooks/incoming`;\n }\n getIncomingHookRoute(hookId) {\n return `${this.getBaseRoute()}/hooks/incoming/${hookId}`;\n }\n getOutgoingHooksRoute() {\n return `${this.getBaseRoute()}/hooks/outgoing`;\n }\n getOutgoingHookRoute(hookId) {\n return `${this.getBaseRoute()}/hooks/outgoing/${hookId}`;\n }\n getOAuthRoute() {\n return `${this.url}/oauth`;\n }\n getOAuthAppsRoute() {\n return `${this.getBaseRoute()}/oauth/apps`;\n }\n getOAuthAppRoute(appId) {\n return `${this.getOAuthAppsRoute()}/${appId}`;\n }\n getOutgoingOAuthConnectionsRoute() {\n return `${this.getBaseRoute()}/oauth/outgoing_connections`;\n }\n getOutgoingOAuthConnectionRoute(connectionId) {\n return `${this.getBaseRoute()}/oauth/outgoing_connections/${connectionId}`;\n }\n getEmojisRoute() {\n return `${this.getBaseRoute()}/emoji`;\n }\n getEmojiRoute(emojiId) {\n return `${this.getEmojisRoute()}/${emojiId}`;\n }\n getBrandRoute() {\n return `${this.getBaseRoute()}/brand`;\n }\n getBrandImageUrl(timestamp) {\n return `${this.getBrandRoute()}/image?t=${timestamp}`;\n }\n getDataRetentionRoute() {\n return `${this.getBaseRoute()}/data_retention`;\n }\n getJobsRoute() {\n return `${this.getBaseRoute()}/jobs`;\n }\n getPluginsRoute() {\n return `${this.getBaseRoute()}/plugins`;\n }\n getPluginRoute(pluginId) {\n return `${this.getPluginsRoute()}/${pluginId}`;\n }\n getPluginsMarketplaceRoute() {\n return `${this.getPluginsRoute()}/marketplace`;\n }\n getRolesRoute() {\n return `${this.getBaseRoute()}/roles`;\n }\n getSchemesRoute() {\n return `${this.getBaseRoute()}/schemes`;\n }\n getBotsRoute() {\n return `${this.getBaseRoute()}/bots`;\n }\n getBotRoute(botUserId) {\n return `${this.getBotsRoute()}/${botUserId}`;\n }\n getGroupsRoute() {\n return `${this.getBaseRoute()}/groups`;\n }\n getGroupRoute(groupID) {\n return `${this.getGroupsRoute()}/${groupID}`;\n }\n getNoticesRoute() {\n return `${this.getBaseRoute()}/system/notices`;\n }\n getCloudRoute() {\n return `${this.getBaseRoute()}/cloud`;\n }\n getHostedCustomerRoute() {\n return `${this.getBaseRoute()}/hosted_customer`;\n }\n getUsageRoute() {\n return `${this.getBaseRoute()}/usage`;\n }\n getPermissionsRoute() {\n return `${this.getBaseRoute()}/permissions`;\n }\n getUserThreadsRoute(userID, teamID) {\n return `${this.getUserRoute(userID)}/teams/${teamID}/threads`;\n }\n getUserThreadRoute(userId, teamId, threadId) {\n return `${this.getUserThreadsRoute(userId, teamId)}/${threadId}`;\n }\n getSystemRoute() {\n return `${this.getBaseRoute()}/system`;\n }\n getDraftsRoute() {\n return `${this.getBaseRoute()}/drafts`;\n }\n getReportsRoute() {\n return `${this.getBaseRoute()}/reports`;\n }\n getLimitsRoute() {\n return `${this.getBaseRoute()}/limits`;\n }\n getServerLimitsRoute() {\n return `${this.getLimitsRoute()}/server`;\n }\n getClientMetricsRoute() {\n return `${this.getBaseRoute()}/client_perf`;\n }\n getCSRFFromCookie() {\n if (typeof document !== 'undefined' && typeof document.cookie !== 'undefined') {\n const cookies = document.cookie.split(';');\n for (let i = 0; i < cookies.length; i++) {\n const cookie = cookies[i].trim();\n if (cookie.startsWith('MMCSRF=')) {\n return cookie.replace('MMCSRF=', '');\n }\n }\n }\n return '';\n }\n getOptions(options) {\n const newOptions = { ...options };\n const headers = {\n [HEADER_REQUESTED_WITH]: 'XMLHttpRequest',\n ...this.defaultHeaders,\n };\n if (this.setAuthHeader && this.token) {\n headers[HEADER_AUTH] = `${HEADER_BEARER} ${this.token}`;\n }\n const csrfToken = this.csrf || this.getCSRFFromCookie();\n if (options.method && options.method.toLowerCase() !== 'get' && csrfToken) {\n headers[HEADER_X_CSRF_TOKEN] = csrfToken;\n }\n if (this.includeCookies) {\n newOptions.credentials = 'include';\n }\n if (this.userAgent) {\n headers[HEADER_USER_AGENT] = this.userAgent;\n }\n if (!headers[HEADER_CONTENT_TYPE] && options.body) {\n // when the body is an instance of FormData we let browser set the Content-Type header generated by FormData interface with correct boundary\n if (!(options.body instanceof FormData)) {\n headers[HEADER_CONTENT_TYPE] = 'application/json';\n }\n }\n if (newOptions.headers) {\n Object.assign(headers, newOptions.headers);\n }\n return {\n ...newOptions,\n headers,\n };\n }\n // User Routes\n createUser = (user, token, inviteId, redirect) => {\n const queryParams = {};\n if (token) {\n queryParams.t = token;\n }\n if (inviteId) {\n queryParams.iid = inviteId;\n }\n if (redirect) {\n queryParams.r = redirect;\n }\n return this.doFetch(`${this.getUsersRoute()}${(0, helpers_1.buildQueryString)(queryParams)}`, { method: 'post', body: JSON.stringify(user) });\n };\n patchMe = (userPatch) => {\n return this.doFetch(`${this.getUserRoute('me')}/patch`, { method: 'put', body: JSON.stringify(userPatch) });\n };\n patchUser = (userPatch) => {\n return this.doFetch(`${this.getUserRoute(userPatch.id)}/patch`, { method: 'put', body: JSON.stringify(userPatch) });\n };\n updateUser = (user) => {\n return this.doFetch(`${this.getUserRoute(user.id)}`, { method: 'put', body: JSON.stringify(user) });\n };\n promoteGuestToUser = (userId) => {\n return this.doFetch(`${this.getUserRoute(userId)}/promote`, { method: 'post' });\n };\n demoteUserToGuest = (userId) => {\n return this.doFetch(`${this.getUserRoute(userId)}/demote`, { method: 'post' });\n };\n updateUserRoles = (userId, roles) => {\n return this.doFetch(`${this.getUserRoute(userId)}/roles`, { method: 'put', body: JSON.stringify({ roles }) });\n };\n updateUserMfa = (userId, activate, code) => {\n const body = {\n activate,\n };\n if (activate) {\n body.code = code;\n }\n return this.doFetch(`${this.getUserRoute(userId)}/mfa`, { method: 'put', body: JSON.stringify(body) });\n };\n updateUserPassword = (userId, currentPassword, newPassword) => {\n return this.doFetch(`${this.getUserRoute(userId)}/password`, { method: 'put', body: JSON.stringify({ current_password: currentPassword, new_password: newPassword }) });\n };\n resetUserPassword = (token, newPassword) => {\n return this.doFetch(`${this.getUsersRoute()}/password/reset`, { method: 'post', body: JSON.stringify({ token, new_password: newPassword }) });\n };\n getKnownUsers = () => {\n return this.doFetch(`${this.getUsersRoute()}/known`, { method: 'get' });\n };\n sendPasswordResetEmail = (email) => {\n return this.doFetch(`${this.getUsersRoute()}/password/reset/send`, { method: 'post', body: JSON.stringify({ email }) });\n };\n updateUserActive = (userId, active) => {\n return this.doFetch(`${this.getUserRoute(userId)}/active`, { method: 'put', body: JSON.stringify({ active }) });\n };\n uploadProfileImage = (userId, imageData) => {\n const formData = new FormData();\n formData.append('image', imageData);\n const request = {\n method: 'post',\n body: formData,\n };\n return this.doFetch(`${this.getUserRoute(userId)}/image`, request);\n };\n setDefaultProfileImage = (userId) => {\n return this.doFetch(`${this.getUserRoute(userId)}/image`, { method: 'delete' });\n };\n verifyUserEmail = (token) => {\n return this.doFetch(`${this.getUsersRoute()}/email/verify`, { method: 'post', body: JSON.stringify({ token }) });\n };\n updateMyTermsOfServiceStatus = (termsOfServiceId, accepted) => {\n return this.doFetch(`${this.getUserRoute('me')}/terms_of_service`, { method: 'post', body: JSON.stringify({ termsOfServiceId, accepted }) });\n };\n getTermsOfService = () => {\n return this.doFetch(`${this.getBaseRoute()}/terms_of_service`, { method: 'get' });\n };\n createTermsOfService = (text) => {\n return this.doFetch(`${this.getBaseRoute()}/terms_of_service`, { method: 'post', body: JSON.stringify({ text }) });\n };\n sendVerificationEmail = (email) => {\n return this.doFetch(`${this.getUsersRoute()}/email/verify/send`, { method: 'post', body: JSON.stringify({ email }) });\n };\n login = async (loginId, password, token = '', ldapOnly = false) => {\n const body = {\n login_id: loginId,\n password,\n token,\n deviceId: '',\n };\n if (ldapOnly) {\n body.ldap_only = 'true';\n }\n const { data: profile, headers, } = await this.doFetchWithResponse(`${this.getUsersRoute()}/login`, { method: 'post', body: JSON.stringify(body) });\n if (headers.has('Token')) {\n this.setToken(headers.get('Token'));\n }\n return profile;\n };\n loginWithDesktopToken = async (token) => {\n const body = {\n token,\n deviceId: '',\n };\n return this.doFetch(`${this.getUsersRoute()}/login/desktop_token`, { method: 'post', body: JSON.stringify(body) });\n };\n loginById = (id, password, token = '') => {\n const body = {\n id,\n password,\n token,\n device_id: '',\n };\n return this.doFetch(`${this.getUsersRoute()}/login`, { method: 'post', body: JSON.stringify(body) });\n };\n logout = async () => {\n const { response } = await this.doFetchWithResponse(`${this.getUsersRoute()}/logout`, { method: 'post' });\n if (response.ok) {\n this.token = '';\n }\n this.serverVersion = '';\n return response;\n };\n getProfiles = (page = 0, perPage = PER_PAGE_DEFAULT, options = {}) => {\n return this.doFetch(`${this.getUsersRoute()}${(0, helpers_1.buildQueryString)({ page, per_page: perPage, ...options })}`, { method: 'get' });\n };\n getProfilesByIds = (userIds, options = {}) => {\n return this.doFetch(`${this.getUsersRoute()}/ids${(0, helpers_1.buildQueryString)(options)}`, { method: 'post', body: JSON.stringify(userIds) });\n };\n getProfilesByUsernames = (usernames) => {\n return this.doFetch(`${this.getUsersRoute()}/usernames`, { method: 'post', body: JSON.stringify(usernames) });\n };\n getProfilesInTeam = (teamId, page = 0, perPage = PER_PAGE_DEFAULT, sort = '', options = {}) => {\n return this.doFetch(`${this.getUsersRoute()}${(0, helpers_1.buildQueryString)({ ...options, in_team: teamId, page, per_page: perPage, sort })}`, { method: 'get' });\n };\n getProfilesNotInTeam = (teamId, groupConstrained, page = 0, perPage = PER_PAGE_DEFAULT) => {\n const queryStringObj = { not_in_team: teamId, page, per_page: perPage };\n if (groupConstrained) {\n queryStringObj.group_constrained = true;\n }\n return this.doFetch(`${this.getUsersRoute()}${(0, helpers_1.buildQueryString)(queryStringObj)}`, { method: 'get' });\n };\n getProfilesWithoutTeam = (page = 0, perPage = PER_PAGE_DEFAULT, options = {}) => {\n return this.doFetch(`${this.getUsersRoute()}${(0, helpers_1.buildQueryString)({ ...options, without_team: 1, page, per_page: perPage })}`, { method: 'get' });\n };\n getProfilesInChannel = (channelId, page = 0, perPage = PER_PAGE_DEFAULT, sort = '', options = {}) => {\n const queryStringObj = { in_channel: channelId, page, per_page: perPage, sort };\n return this.doFetch(`${this.getUsersRoute()}${(0, helpers_1.buildQueryString)({ ...queryStringObj, ...options })}`, { method: 'get' });\n };\n getProfilesInGroupChannels = (channelsIds) => {\n return this.doFetch(`${this.getUsersRoute()}/group_channels`, { method: 'post', body: JSON.stringify(channelsIds) });\n };\n getProfilesNotInChannel = (teamId, channelId, groupConstrained, page = 0, perPage = PER_PAGE_DEFAULT) => {\n const queryStringObj = { in_team: teamId, not_in_channel: channelId, page, per_page: perPage };\n if (groupConstrained) {\n queryStringObj.group_constrained = true;\n }\n return this.doFetch(`${this.getUsersRoute()}${(0, helpers_1.buildQueryString)(queryStringObj)}`, { method: 'get' });\n };\n getProfilesInGroup = (groupId, page = 0, perPage = PER_PAGE_DEFAULT, sort = '') => {\n return this.doFetch(`${this.getUsersRoute()}${(0, helpers_1.buildQueryString)({ in_group: groupId, page, per_page: perPage, sort })}`, { method: 'get' });\n };\n getProfilesNotInGroup = (groupId, page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getUsersRoute()}${(0, helpers_1.buildQueryString)({ not_in_group: groupId, page, per_page: perPage })}`, { method: 'get' });\n };\n getMe = () => {\n return this.doFetch(`${this.getUserRoute('me')}`, { method: 'get' });\n };\n getUser = (userId) => {\n return this.doFetch(`${this.getUserRoute(userId)}`, { method: 'get' });\n };\n getUserByUsername = (username) => {\n return this.doFetch(`${this.getUsersRoute()}/username/${username}`, { method: 'get' });\n };\n getUserByEmail = (email) => {\n return this.doFetch(`${this.getUsersRoute()}/email/${email}`, { method: 'get' });\n };\n getProfilePictureUrl = (userId, lastPictureUpdate) => {\n const params = {};\n if (lastPictureUpdate) {\n params._ = lastPictureUpdate;\n }\n return `${this.getUserRoute(userId)}/image${(0, helpers_1.buildQueryString)(params)}`;\n };\n getDefaultProfilePictureUrl = (userId) => {\n return `${this.getUserRoute(userId)}/image/default`;\n };\n autocompleteUsers = (name, teamId, channelId, options = {\n limit: AUTOCOMPLETE_LIMIT_DEFAULT,\n }) => {\n return this.doFetch(`${this.getUsersRoute()}/autocomplete${(0, helpers_1.buildQueryString)({\n in_team: teamId,\n in_channel: channelId,\n name,\n limit: options.limit,\n })}`, {\n method: 'get',\n });\n };\n getSessions = (userId) => {\n return this.doFetch(`${this.getUserRoute(userId)}/sessions`, { method: 'get' });\n };\n revokeSession = (userId, sessionId) => {\n return this.doFetch(`${this.getUserRoute(userId)}/sessions/revoke`, { method: 'post', body: JSON.stringify({ session_id: sessionId }) });\n };\n revokeAllSessionsForUser = (userId) => {\n return this.doFetch(`${this.getUserRoute(userId)}/sessions/revoke/all`, { method: 'post' });\n };\n revokeSessionsForAllUsers = () => {\n return this.doFetch(`${this.getUsersRoute()}/sessions/revoke/all`, { method: 'post' });\n };\n getUserAudits = (userId, page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getUserRoute(userId)}/audits${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n getUsersForReporting = (filter) => {\n const queryString = (0, helpers_1.buildQueryString)(filter);\n return this.doFetch(`${this.getReportsRoute()}/users${queryString}`, { method: 'get' });\n };\n getUserCountForReporting = (filter) => {\n const queryString = (0, helpers_1.buildQueryString)(filter);\n return this.doFetch(`${this.getReportsRoute()}/users/count${queryString}`, { method: 'get' });\n };\n startUsersBatchExport = (filter) => {\n const queryString = (0, helpers_1.buildQueryString)(filter);\n return this.doFetch(`${this.getReportsRoute()}/users/export${queryString}`, { method: 'post' });\n };\n /**\n * @deprecated\n */\n checkUserMfa = (loginId) => {\n return this.doFetch(`${this.getUsersRoute()}/mfa`, { method: 'post', body: JSON.stringify({ login_id: loginId }) });\n };\n generateMfaSecret = (userId) => {\n return this.doFetch(`${this.getUserRoute(userId)}/mfa/generate`, { method: 'post' });\n };\n searchUsers = (term, options) => {\n return this.doFetch(`${this.getUsersRoute()}/search`, { method: 'post', body: JSON.stringify({ term, ...options }) });\n };\n getStatusesByIds = (userIds) => {\n return this.doFetch(`${this.getUsersRoute()}/status/ids`, { method: 'post', body: JSON.stringify(userIds) });\n };\n getStatus = (userId) => {\n return this.doFetch(`${this.getUserRoute(userId)}/status`, { method: 'get' });\n };\n updateStatus = (status) => {\n return this.doFetch(`${this.getUserRoute(status.user_id)}/status`, { method: 'put', body: JSON.stringify(status) });\n };\n updateCustomStatus = (customStatus) => {\n return this.doFetch(`${this.getUserRoute('me')}/status/custom`, { method: 'put', body: JSON.stringify(customStatus) });\n };\n unsetCustomStatus = () => {\n return this.doFetch(`${this.getUserRoute('me')}/status/custom`, { method: 'delete' });\n };\n removeRecentCustomStatus = (customStatus) => {\n return this.doFetch(`${this.getUserRoute('me')}/status/custom/recent/delete`, { method: 'post', body: JSON.stringify(customStatus) });\n };\n moveThread = (postId, channelId) => {\n const url = this.getPostRoute(postId) + '/move';\n return this.doFetch(url, { method: 'post', body: JSON.stringify({ channel_id: channelId }) });\n };\n switchEmailToOAuth = (service, email, password, mfaCode = '') => {\n return this.doFetch(`${this.getUsersRoute()}/login/switch`, { method: 'post', body: JSON.stringify({ current_service: 'email', new_service: service, email, password, mfa_code: mfaCode }) });\n };\n switchOAuthToEmail = (currentService, email, password) => {\n return this.doFetch(`${this.getUsersRoute()}/login/switch`, { method: 'post', body: JSON.stringify({ current_service: currentService, new_service: 'email', email, new_password: password }) });\n };\n switchEmailToLdap = (email, emailPassword, ldapId, ldapPassword, mfaCode = '') => {\n return this.doFetch(`${this.getUsersRoute()}/login/switch`, { method: 'post', body: JSON.stringify({ current_service: 'email', new_service: 'ldap', email, password: emailPassword, ldap_id: ldapId, new_password: ldapPassword, mfa_code: mfaCode }) });\n };\n switchLdapToEmail = (ldapPassword, email, emailPassword, mfaCode = '') => {\n return this.doFetch(`${this.getUsersRoute()}/login/switch`, { method: 'post', body: JSON.stringify({ current_service: 'ldap', new_service: 'email', email, password: ldapPassword, new_password: emailPassword, mfa_code: mfaCode }) });\n };\n getAuthorizedOAuthApps = (userId) => {\n return this.doFetch(`${this.getUserRoute(userId)}/oauth/apps/authorized`, { method: 'get' });\n };\n authorizeOAuthApp = (responseType, clientId, redirectUri, state, scope) => {\n return this.doFetch(`${this.url}/oauth/authorize`, { method: 'post', body: JSON.stringify({ client_id: clientId, response_type: responseType, redirect_uri: redirectUri, state, scope }) });\n };\n deauthorizeOAuthApp = (clientId) => {\n return this.doFetch(`${this.url}/oauth/deauthorize`, { method: 'post', body: JSON.stringify({ client_id: clientId }) });\n };\n createUserAccessToken = (userId, description) => {\n return this.doFetch(`${this.getUserRoute(userId)}/tokens`, { method: 'post', body: JSON.stringify({ description }) });\n };\n getUserAccessToken = (tokenId) => {\n return this.doFetch(`${this.getUsersRoute()}/tokens/${tokenId}`, { method: 'get' });\n };\n getUserAccessTokensForUser = (userId, page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getUserRoute(userId)}/tokens${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n getUserAccessTokens = (page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getUsersRoute()}/tokens${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n revokeUserAccessToken = (tokenId) => {\n return this.doFetch(`${this.getUsersRoute()}/tokens/revoke`, { method: 'post', body: JSON.stringify({ token_id: tokenId }) });\n };\n disableUserAccessToken = (tokenId) => {\n return this.doFetch(`${this.getUsersRoute()}/tokens/disable`, { method: 'post', body: JSON.stringify({ token_id: tokenId }) });\n };\n enableUserAccessToken = (tokenId) => {\n return this.doFetch(`${this.getUsersRoute()}/tokens/enable`, { method: 'post', body: JSON.stringify({ token_id: tokenId }) });\n };\n // Limits Routes\n getServerLimits = () => {\n return this.doFetchWithResponse(`${this.getServerLimitsRoute()}`, {\n method: 'get',\n });\n };\n // Team Routes\n createTeam = (team) => {\n return this.doFetch(`${this.getTeamsRoute()}`, { method: 'post', body: JSON.stringify(team) });\n };\n deleteTeam = (teamId) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}`, { method: 'delete' });\n };\n unarchiveTeam = (teamId) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/restore`, { method: 'post' });\n };\n updateTeam = (team) => {\n return this.doFetch(`${this.getTeamRoute(team.id)}`, { method: 'put', body: JSON.stringify(team) });\n };\n patchTeam = (team) => {\n return this.doFetch(`${this.getTeamRoute(team.id)}/patch`, { method: 'put', body: JSON.stringify(team) });\n };\n regenerateTeamInviteId = (teamId) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/regenerate_invite_id`, { method: 'post' });\n };\n updateTeamScheme = (teamId, schemeId) => {\n const patch = { scheme_id: schemeId };\n return this.doFetch(`${this.getTeamSchemeRoute(teamId)}`, { method: 'put', body: JSON.stringify(patch) });\n };\n checkIfTeamExists = (teamName) => {\n return this.doFetch(`${this.getTeamNameRoute(teamName)}/exists`, { method: 'get' });\n };\n getTeams = (page = 0, perPage = PER_PAGE_DEFAULT, includeTotalCount = false, excludePolicyConstrained = false) => {\n return this.doFetch(`${this.getTeamsRoute()}${(0, helpers_1.buildQueryString)({ page, per_page: perPage, include_total_count: includeTotalCount, exclude_policy_constrained: excludePolicyConstrained })}`, { method: 'get' });\n };\n searchTeams(term, opts) {\n return this.doFetch(`${this.getTeamsRoute()}/search`, { method: 'post', body: JSON.stringify({ term, ...opts }) });\n }\n getTeam = (teamId) => {\n return this.doFetch(this.getTeamRoute(teamId), { method: 'get' });\n };\n getTeamByName = (teamName) => {\n return this.doFetch(this.getTeamNameRoute(teamName), { method: 'get' });\n };\n getMyTeams = () => {\n return this.doFetch(`${this.getUserRoute('me')}/teams`, { method: 'get' });\n };\n getTeamsForUser = (userId) => {\n return this.doFetch(`${this.getUserRoute(userId)}/teams`, { method: 'get' });\n };\n getMyTeamMembers = () => {\n return this.doFetch(`${this.getUserRoute('me')}/teams/members`, { method: 'get' });\n };\n getMyTeamUnreads = (includeCollapsedThreads = false) => {\n return this.doFetch(`${this.getUserRoute('me')}/teams/unread${(0, helpers_1.buildQueryString)({ include_collapsed_threads: includeCollapsedThreads })}`, { method: 'get' });\n };\n getTeamMembers = (teamId, page = 0, perPage = PER_PAGE_DEFAULT, options) => {\n return this.doFetch(`${this.getTeamMembersRoute(teamId)}${(0, helpers_1.buildQueryString)({ page, per_page: perPage, ...options })}`, { method: 'get' });\n };\n getTeamMembersForUser = (userId) => {\n return this.doFetch(`${this.getUserRoute(userId)}/teams/members`, { method: 'get' });\n };\n getTeamMember = (teamId, userId) => {\n return this.doFetch(`${this.getTeamMemberRoute(teamId, userId)}`, { method: 'get' });\n };\n getTeamMembersByIds = (teamId, userIds) => {\n return this.doFetch(`${this.getTeamMembersRoute(teamId)}/ids`, { method: 'post', body: JSON.stringify(userIds) });\n };\n addToTeam = (teamId, userId) => {\n const member = { user_id: userId, team_id: teamId };\n return this.doFetch(`${this.getTeamMembersRoute(teamId)}`, { method: 'post', body: JSON.stringify(member) });\n };\n addToTeamFromInvite = (token = '', inviteId = '') => {\n const query = (0, helpers_1.buildQueryString)({ token, invite_id: inviteId });\n return this.doFetch(`${this.getTeamsRoute()}/members/invite${query}`, { method: 'post' });\n };\n addUsersToTeam = (teamId, userIds) => {\n const members = [];\n userIds.forEach((id) => members.push({ team_id: teamId, user_id: id }));\n return this.doFetch(`${this.getTeamMembersRoute(teamId)}/batch`, { method: 'post', body: JSON.stringify(members) });\n };\n addUsersToTeamGracefully = (teamId, userIds) => {\n const members = [];\n userIds.forEach((id) => members.push({ team_id: teamId, user_id: id }));\n return this.doFetch(`${this.getTeamMembersRoute(teamId)}/batch?graceful=true`, { method: 'post', body: JSON.stringify(members) });\n };\n joinTeam = (inviteId) => {\n const query = (0, helpers_1.buildQueryString)({ invite_id: inviteId });\n return this.doFetch(`${this.getTeamsRoute()}/members/invite${query}`, { method: 'post' });\n };\n removeFromTeam = (teamId, userId) => {\n return this.doFetch(`${this.getTeamMemberRoute(teamId, userId)}`, { method: 'delete' });\n };\n getTeamStats = (teamId) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/stats`, { method: 'get' });\n };\n getTotalUsersStats = () => {\n return this.doFetch(`${this.getUsersRoute()}/stats`, { method: 'get' });\n };\n getFilteredUsersStats = (options) => {\n return this.doFetch(`${this.getUsersRoute()}/stats/filtered${(0, helpers_1.buildQueryString)(options)}`, { method: 'get' });\n };\n invalidateAllEmailInvites = () => {\n return this.doFetch(`${this.getTeamsRoute()}/invites/email`, { method: 'delete' });\n };\n getTeamInviteInfo = (inviteId) => {\n return this.doFetch(`${this.getTeamsRoute()}/invite/${inviteId}`, { method: 'get' });\n };\n updateTeamMemberRoles = (teamId, userId, roles) => {\n return this.doFetch(`${this.getTeamMemberRoute(teamId, userId)}/roles`, { method: 'put', body: JSON.stringify({ roles }) });\n };\n sendEmailInvitesToTeam = (teamId, emails) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/invite/email`, { method: 'post', body: JSON.stringify(emails) });\n };\n sendEmailGuestInvitesToChannels = (teamId, channelIds, emails, message) => {\n this.trackEvent('api', 'api_teams_invite_guests', { team_id: teamId, channel_ids: channelIds });\n return this.doFetch(`${this.getTeamRoute(teamId)}/invite-guests/email`, { method: 'post', body: JSON.stringify({ emails, channels: channelIds, message }) });\n };\n sendEmailInvitesToTeamGracefully = (teamId, emails) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/invite/email?graceful=true`, { method: 'post', body: JSON.stringify(emails) });\n };\n sendEmailInvitesToTeamAndChannelsGracefully = (teamId, channelIds, emails, message) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/invite/email?graceful=true`, { method: 'post', body: JSON.stringify({ emails, channelIds, message }) });\n };\n sendEmailGuestInvitesToChannelsGracefully = async (teamId, channelIds, emails, message) => {\n this.trackEvent('api', 'api_teams_invite_guests', { team_id: teamId, channel_ids: channelIds });\n return this.doFetch(`${this.getTeamRoute(teamId)}/invite-guests/email?graceful=true`, { method: 'post', body: JSON.stringify({ emails, channels: channelIds, message }) });\n };\n getTeamIconUrl = (teamId, lastTeamIconUpdate) => {\n const params = {};\n if (lastTeamIconUpdate) {\n params._ = lastTeamIconUpdate;\n }\n return `${this.getTeamRoute(teamId)}/image${(0, helpers_1.buildQueryString)(params)}`;\n };\n setTeamIcon = (teamId, imageData) => {\n const formData = new FormData();\n formData.append('image', imageData);\n const request = {\n method: 'post',\n body: formData,\n };\n return this.doFetch(`${this.getTeamRoute(teamId)}/image`, request);\n };\n removeTeamIcon = (teamId) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/image`, { method: 'delete' });\n };\n updateTeamMemberSchemeRoles = (teamId, userId, isSchemeUser, isSchemeAdmin) => {\n const body = { scheme_user: isSchemeUser, scheme_admin: isSchemeAdmin };\n return this.doFetch(`${this.getTeamRoute(teamId)}/members/${userId}/schemeRoles`, { method: 'put', body: JSON.stringify(body) });\n };\n getAllChannels(page = 0, perPage = PER_PAGE_DEFAULT, notAssociatedToGroup = '', excludeDefaultChannels = false, includeTotalCount = false, includeDeleted = false, excludePolicyConstrained = false) {\n const queryData = {\n page,\n per_page: perPage,\n not_associated_to_group: notAssociatedToGroup,\n exclude_default_channels: excludeDefaultChannels,\n include_total_count: includeTotalCount,\n include_deleted: includeDeleted,\n exclude_policy_constrained: excludePolicyConstrained,\n };\n return this.doFetch(`${this.getChannelsRoute()}${(0, helpers_1.buildQueryString)(queryData)}`, { method: 'get' });\n }\n createChannel = (channel) => {\n return this.doFetch(`${this.getChannelsRoute()}`, { method: 'post', body: JSON.stringify(channel) });\n };\n createDirectChannel = (userIds) => {\n return this.doFetch(`${this.getChannelsRoute()}/direct`, { method: 'post', body: JSON.stringify(userIds) });\n };\n createGroupChannel = (userIds) => {\n return this.doFetch(`${this.getChannelsRoute()}/group`, { method: 'post', body: JSON.stringify(userIds) });\n };\n deleteChannel = (channelId) => {\n return this.doFetch(`${this.getChannelRoute(channelId)}`, { method: 'delete' });\n };\n unarchiveChannel = (channelId) => {\n return this.doFetch(`${this.getChannelRoute(channelId)}/restore`, { method: 'post' });\n };\n updateChannel = (channel) => {\n return this.doFetch(`${this.getChannelRoute(channel.id)}`, { method: 'put', body: JSON.stringify(channel) });\n };\n updateChannelPrivacy = (channelId, privacy) => {\n return this.doFetch(`${this.getChannelRoute(channelId)}/privacy`, { method: 'put', body: JSON.stringify({ privacy }) });\n };\n patchChannel = (channelId, channelPatch) => {\n return this.doFetch(`${this.getChannelRoute(channelId)}/patch`, { method: 'put', body: JSON.stringify(channelPatch) });\n };\n updateChannelNotifyProps = (props) => {\n return this.doFetch(`${this.getChannelMemberRoute(props.channel_id, props.user_id)}/notify_props`, { method: 'put', body: JSON.stringify(props) });\n };\n updateChannelScheme = (channelId, schemeId) => {\n const patch = { scheme_id: schemeId };\n return this.doFetch(`${this.getChannelSchemeRoute(channelId)}`, { method: 'put', body: JSON.stringify(patch) });\n };\n getChannel = (channelId) => {\n return this.doFetch(`${this.getChannelRoute(channelId)}`, { method: 'get' });\n };\n getChannelByName = (teamId, channelName, includeDeleted = false) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/channels/name/${channelName}?include_deleted=${includeDeleted}`, { method: 'get' });\n };\n getChannelByNameAndTeamName = (teamName, channelName, includeDeleted = false) => {\n return this.doFetch(`${this.getTeamNameRoute(teamName)}/channels/name/${channelName}?include_deleted=${includeDeleted}`, { method: 'get' });\n };\n getChannels = (teamId, page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/channels${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n getAllTeamsChannels = () => {\n return this.doFetch(`${this.getUsersRoute()}/me/channels`, { method: 'get' });\n };\n getArchivedChannels = (teamId, page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/channels/deleted${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n getMyChannels = (teamId, includeDeleted = false) => {\n return this.doFetch(`${this.getUserRoute('me')}/teams/${teamId}/channels${(0, helpers_1.buildQueryString)({ include_deleted: includeDeleted })}`, { method: 'get' });\n };\n getAllChannelsMembers = (userId, page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getUserRoute(userId)}/channel_members${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n getMyChannelMember = (channelId) => {\n return this.doFetch(`${this.getChannelMemberRoute(channelId, 'me')}`, { method: 'get' });\n };\n getMyChannelMembers = (teamId) => {\n return this.doFetch(`${this.getUserRoute('me')}/teams/${teamId}/channels/members`, { method: 'get' });\n };\n getChannelMembers = (channelId, page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getChannelMembersRoute(channelId)}${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n getChannelTimezones = (channelId) => {\n return this.doFetch(`${this.getChannelRoute(channelId)}/timezones`, { method: 'get' });\n };\n getChannelMember = (channelId, userId) => {\n return this.doFetch(`${this.getChannelMemberRoute(channelId, userId)}`, { method: 'get' });\n };\n getChannelMembersByIds = (channelId, userIds) => {\n return this.doFetch(`${this.getChannelMembersRoute(channelId)}/ids`, { method: 'post', body: JSON.stringify(userIds) });\n };\n addToChannels = (userIds, channelId, postRootId = '') => {\n const members = { user_ids: userIds, channel_id: channelId, post_root_id: postRootId };\n return this.doFetch(`${this.getChannelMembersRoute(channelId)}`, { method: 'post', body: JSON.stringify(members) });\n };\n addToChannel = (userId, channelId, postRootId = '') => {\n const member = { user_id: userId, channel_id: channelId, post_root_id: postRootId };\n return this.doFetch(`${this.getChannelMembersRoute(channelId)}`, { method: 'post', body: JSON.stringify(member) });\n };\n removeFromChannel = (userId, channelId) => {\n return this.doFetch(`${this.getChannelMemberRoute(channelId, userId)}`, { method: 'delete' });\n };\n updateChannelMemberRoles = (channelId, userId, roles) => {\n return this.doFetch(`${this.getChannelMemberRoute(channelId, userId)}/roles`, { method: 'put', body: JSON.stringify({ roles }) });\n };\n getChannelStats = (channelId, includeFileCount = false) => {\n const param = includeFileCount ? '' : '?exclude_files_count=true';\n return this.doFetch(`${this.getChannelRoute(channelId)}/stats${param}`, { method: 'get' });\n };\n getChannelsMemberCount = (channelIds) => {\n return this.doFetch(`${this.getChannelsRoute()}/stats/member_count`, { method: 'post', body: JSON.stringify(channelIds) });\n };\n getChannelModerations = (channelId) => {\n return this.doFetch(`${this.getChannelRoute(channelId)}/moderations`, { method: 'get' });\n };\n patchChannelModerations = (channelId, channelModerationsPatch) => {\n return this.doFetch(`${this.getChannelRoute(channelId)}/moderations/patch`, { method: 'put', body: JSON.stringify(channelModerationsPatch) });\n };\n getChannelMemberCountsByGroup = (channelId, includeTimezones) => {\n return this.doFetch(`${this.getChannelRoute(channelId)}/member_counts_by_group?include_timezones=${includeTimezones}`, { method: 'get' });\n };\n viewMyChannel = (channelId) => {\n const data = { channel_id: channelId, collapsed_threads_supported: true };\n return this.doFetch(`${this.getChannelsRoute()}/members/me/view`, { method: 'post', body: JSON.stringify(data) });\n };\n readMultipleChannels = (channelIds) => {\n return this.doFetch(`${this.getChannelsRoute()}/members/me/mark_read`, { method: 'post', body: JSON.stringify(channelIds) });\n };\n autocompleteChannels = (teamId, name) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/channels/autocomplete${(0, helpers_1.buildQueryString)({ name })}`, { method: 'get' });\n };\n autocompleteChannelsForSearch = (teamId, name) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/channels/search_autocomplete${(0, helpers_1.buildQueryString)({ name })}`, { method: 'get' });\n };\n searchChannels = (teamId, term) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/channels/search`, { method: 'post', body: JSON.stringify({ term }) });\n };\n searchArchivedChannels = (teamId, term) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/channels/search_archived`, { method: 'post', body: JSON.stringify({ term }) });\n };\n searchAllChannels(term, opts = {}) {\n const body = {\n term,\n ...opts,\n };\n const includeDeleted = Boolean(opts.include_deleted);\n const nonAdminSearch = Boolean(opts.nonAdminSearch);\n const excludeRemote = Boolean(opts.exclude_remote);\n let queryParams = { include_deleted: includeDeleted, exclude_remote: excludeRemote };\n if (nonAdminSearch) {\n queryParams = { system_console: false };\n delete body.nonAdminSearch;\n }\n return this.doFetch(`${this.getChannelsRoute()}/search${(0, helpers_1.buildQueryString)(queryParams)}`, { method: 'post', body: JSON.stringify(body), signal: opts.signal });\n }\n searchGroupChannels = (term) => {\n return this.doFetch(`${this.getChannelsRoute()}/group/search`, { method: 'post', body: JSON.stringify({ term }) });\n };\n updateChannelMemberSchemeRoles = (channelId, userId, isSchemeUser, isSchemeAdmin) => {\n const body = { scheme_user: isSchemeUser, scheme_admin: isSchemeAdmin };\n return this.doFetch(`${this.getChannelRoute(channelId)}/members/${userId}/schemeRoles`, { method: 'put', body: JSON.stringify(body) });\n };\n // Channel Bookmark Routes\n getChannelBookmarks = (channelId, bookmarksSince) => {\n return this.doFetch(`${this.getChannelBookmarksRoute(channelId)}${(0, helpers_1.buildQueryString)({ bookmarks_since: bookmarksSince })}`, { method: 'get' });\n };\n createChannelBookmark = (channelId, channelBookmark, connectionId) => {\n return this.doFetch(`${this.getChannelBookmarksRoute(channelId)}`, { method: 'post', body: JSON.stringify(channelBookmark), headers: { 'Connection-Id': connectionId } });\n };\n deleteChannelBookmark = (channelId, channelBookmarkId, connectionId) => {\n return this.doFetch(`${this.getChannelBookmarkRoute(channelId, channelBookmarkId)}`, { method: 'delete', headers: { 'Connection-Id': connectionId } });\n };\n updateChannelBookmark = (channelId, channelBookmarkId, patch, connectionId) => {\n return this.doFetch(`${this.getChannelBookmarkRoute(channelId, channelBookmarkId)}`, { method: 'PATCH', body: JSON.stringify(patch), headers: { 'Connection-Id': connectionId } });\n };\n updateChannelBookmarkSortOrder = (channelId, channelBookmarkId, newOrder, connectionId) => {\n return this.doFetch(`${this.getChannelBookmarksRoute(channelId)}/${channelBookmarkId}/sort_order`, { method: 'post', body: JSON.stringify(newOrder), headers: { 'Connection-Id': connectionId } });\n };\n // Channel Category Routes\n getChannelCategories = (userId, teamId) => {\n return this.doFetch(`${this.getChannelCategoriesRoute(userId, teamId)}`, { method: 'get' });\n };\n createChannelCategory = (userId, teamId, category) => {\n return this.doFetch(`${this.getChannelCategoriesRoute(userId, teamId)}`, { method: 'post', body: JSON.stringify(category) });\n };\n updateChannelCategories = (userId, teamId, categories) => {\n return this.doFetch(`${this.getChannelCategoriesRoute(userId, teamId)}`, { method: 'put', body: JSON.stringify(categories) });\n };\n getChannelCategoryOrder = (userId, teamId) => {\n return this.doFetch(`${this.getChannelCategoriesRoute(userId, teamId)}/order`, { method: 'get' });\n };\n updateChannelCategoryOrder = (userId, teamId, categoryOrder) => {\n return this.doFetch(`${this.getChannelCategoriesRoute(userId, teamId)}/order`, { method: 'put', body: JSON.stringify(categoryOrder) });\n };\n getChannelCategory = (userId, teamId, categoryId) => {\n return this.doFetch(`${this.getChannelCategoriesRoute(userId, teamId)}/${categoryId}`, { method: 'get' });\n };\n updateChannelCategory = (userId, teamId, category) => {\n return this.doFetch(`${this.getChannelCategoriesRoute(userId, teamId)}/${category.id}`, { method: 'put', body: JSON.stringify(category) });\n };\n deleteChannelCategory = (userId, teamId, categoryId) => {\n return this.doFetch(`${this.getChannelCategoriesRoute(userId, teamId)}/${categoryId}`, { method: 'delete' });\n };\n // Remote Clusters Routes\n getRemoteClusters = (options) => {\n return this.doFetch(`${this.getRemoteClustersRoute()}${(0, helpers_1.buildQueryString)({ exclude_plugins: options.excludePlugins })}`, { method: 'GET' });\n };\n getRemoteCluster = (remoteId) => {\n return this.doFetch(`${this.getRemoteClusterRoute(remoteId)}`, { method: 'GET' });\n };\n createRemoteCluster = (remoteCluster) => {\n return this.doFetch(`${this.getRemoteClustersRoute()}`, { method: 'POST', body: JSON.stringify(remoteCluster) });\n };\n patchRemoteCluster = (remoteId, patch) => {\n return this.doFetch(`${this.getRemoteClusterRoute(remoteId)}`, { method: 'PATCH', body: JSON.stringify(patch) });\n };\n deleteRemoteCluster = (remoteId) => {\n return this.doFetch(`${this.getRemoteClusterRoute(remoteId)}`, { method: 'DELETE' });\n };\n acceptInviteRemoteCluster = (remoteClusterAcceptInvite) => {\n return this.doFetch(`${this.getRemoteClustersRoute()}/accept_invite`, { method: 'POST', body: JSON.stringify(remoteClusterAcceptInvite) });\n };\n generateInviteRemoteCluster = (remoteId, remoteCluster) => {\n return this.doFetch(`${this.getRemoteClusterRoute(remoteId)}/generate_invite`, { method: 'POST', body: JSON.stringify(remoteCluster) });\n };\n // Shared Channels Routes\n getSharedChannelRemotes = (remoteId, filters) => {\n return this.doFetch(`${this.getRemoteClusterRoute(remoteId)}/sharedchannelremotes${(0, helpers_1.buildQueryString)(filters)}`, { method: 'GET' });\n };\n sharedChannelRemoteInvite = (remoteId, channelId) => {\n return this.doFetch(`${this.getRemoteClusterRoute(remoteId)}/channels/${channelId}/invite`, { method: 'POST' });\n };\n sharedChannelRemoteUninvite = (remoteId, channelId) => {\n return this.doFetch(`${this.getRemoteClusterRoute(remoteId)}/channels/${channelId}/uninvite`, { method: 'POST' });\n };\n // System Properties Routes\n getCustomProfileAttributeFields = async () => {\n return this.doFetch(`${this.getCustomProfileAttributeFieldsRoute()}`, { method: 'GET' });\n };\n createCustomProfileAttributeField = async (patch) => {\n return this.doFetch(`${this.getCustomProfileAttributeFieldsRoute()}`, { method: 'POST', body: JSON.stringify(patch) });\n };\n patchCustomProfileAttributeField = async (fieldId, patch) => {\n return this.doFetch(`${this.getCustomProfileAttributeFieldRoute(fieldId)}`, { method: 'PATCH', body: JSON.stringify(patch) });\n };\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n deleteCustomProfileAttributeField = async (fieldId) => {\n return this.doFetch(`${this.getCustomProfileAttributeFieldRoute(fieldId)}`, { method: 'DELETE' });\n };\n updateCustomProfileAttributeValues = (attributeValues) => {\n return this.doFetch(`${this.getCustomProfileAttributeValuesRoute()}`, { method: 'PATCH', body: JSON.stringify(attributeValues) });\n };\n getUserCustomProfileAttributesValues = async (userID) => {\n const data = await this.doFetch(`${this.getUserRoute(userID)}/custom_profile_attributes`, { method: 'GET' });\n return data;\n };\n // Post Routes\n createPost = async (post) => {\n const result = await this.doFetch(`${this.getPostsRoute()}`, { method: 'post', body: JSON.stringify(post) });\n const analyticsData = { channel_id: result.channel_id, post_id: result.id, user_actual_id: result.user_id, root_id: result.root_id };\n if (post.metadata?.priority) {\n analyticsData.priority = post.metadata.priority.priority;\n analyticsData.requested_ack = post.metadata.priority.requested_ack;\n analyticsData.persistent_notifications = post.metadata.priority.persistent_notifications;\n this.trackEvent('api', 'api_posts_create', analyticsData);\n }\n return result;\n };\n updatePost = (post) => {\n return this.doFetch(`${this.getPostRoute(post.id)}`, { method: 'put', body: JSON.stringify(post) });\n };\n getPost = (postId) => {\n return this.doFetch(`${this.getPostRoute(postId)}`, { method: 'get' });\n };\n patchPost = (postPatch) => {\n return this.doFetch(`${this.getPostRoute(postPatch.id)}/patch`, { method: 'put', body: JSON.stringify(postPatch) });\n };\n deletePost = (postId) => {\n return this.doFetch(`${this.getPostRoute(postId)}`, { method: 'delete' });\n };\n getPostThread = (postId, fetchThreads = true, collapsedThreads = false, collapsedThreadsExtended = false) => {\n // this is to ensure we have backwards compatibility for `getPostThread`\n return this.getPaginatedPostThread(postId, { fetchThreads, collapsedThreads, collapsedThreadsExtended });\n };\n getPaginatedPostThread = async (postId, options) => {\n // getting all option parameters with defaults from the options object and spread the rest\n const { fetchThreads = true, collapsedThreads = false, collapsedThreadsExtended = false, direction = 'down', fetchAll = false, perPage = fetchAll ? undefined : PER_PAGE_DEFAULT, ...rest } = options;\n return this.doFetch(`${this.getPostRoute(postId)}/thread${(0, helpers_1.buildQueryString)({ skipFetchThreads: !fetchThreads, collapsedThreads, collapsedThreadsExtended, direction, perPage, ...rest })}`, { method: 'get' });\n };\n getPosts = (channelId, page = 0, perPage = PER_PAGE_DEFAULT, fetchThreads = true, collapsedThreads = false, collapsedThreadsExtended = false) => {\n return this.doFetch(`${this.getChannelRoute(channelId)}/posts${(0, helpers_1.buildQueryString)({ page, per_page: perPage, skipFetchThreads: !fetchThreads, collapsedThreads, collapsedThreadsExtended })}`, { method: 'get' });\n };\n getPostsUnread = (channelId, userId, limitAfter = exports.DEFAULT_LIMIT_AFTER, limitBefore = exports.DEFAULT_LIMIT_BEFORE, fetchThreads = true, collapsedThreads = false, collapsedThreadsExtended = false) => {\n return this.doFetch(`${this.getUserRoute(userId)}/channels/${channelId}/posts/unread${(0, helpers_1.buildQueryString)({ limit_after: limitAfter, limit_before: limitBefore, skipFetchThreads: !fetchThreads, collapsedThreads, collapsedThreadsExtended })}`, { method: 'get' });\n };\n getPostsSince = (channelId, since, fetchThreads = true, collapsedThreads = false, collapsedThreadsExtended = false) => {\n return this.doFetch(`${this.getChannelRoute(channelId)}/posts${(0, helpers_1.buildQueryString)({ since, skipFetchThreads: !fetchThreads, collapsedThreads, collapsedThreadsExtended })}`, { method: 'get' });\n };\n getPostsBefore = (channelId, postId, page = 0, perPage = PER_PAGE_DEFAULT, fetchThreads = true, collapsedThreads = false, collapsedThreadsExtended = false) => {\n return this.doFetch(`${this.getChannelRoute(channelId)}/posts${(0, helpers_1.buildQueryString)({ before: postId, page, per_page: perPage, skipFetchThreads: !fetchThreads, collapsedThreads, collapsedThreadsExtended })}`, { method: 'get' });\n };\n getPostsAfter = (channelId, postId, page = 0, perPage = PER_PAGE_DEFAULT, fetchThreads = true, collapsedThreads = false, collapsedThreadsExtended = false) => {\n return this.doFetch(`${this.getChannelRoute(channelId)}/posts${(0, helpers_1.buildQueryString)({ after: postId, page, per_page: perPage, skipFetchThreads: !fetchThreads, collapsedThreads, collapsedThreadsExtended })}`, { method: 'get' });\n };\n getUserThreads = (userId = 'me', teamId, { before = '', after = '', perPage = PER_PAGE_DEFAULT, extended = false, deleted = false, unread = false, since = 0, totalsOnly = false, threadsOnly = false, }) => {\n return this.doFetch(`${this.getUserThreadsRoute(userId, teamId)}${(0, helpers_1.buildQueryString)({ before, after, per_page: perPage, extended, deleted, unread, since, totalsOnly, threadsOnly })}`, { method: 'get' });\n };\n getUserThread = (userId, teamId, threadId, extended = false) => {\n const url = `${this.getUserThreadRoute(userId, teamId, threadId)}`;\n return this.doFetch(`${url}${(0, helpers_1.buildQueryString)({ extended })}`, { method: 'get' });\n };\n updateThreadsReadForUser = (userId, teamId) => {\n const url = `${this.getUserThreadsRoute(userId, teamId)}/read`;\n return this.doFetch(url, { method: 'put' });\n };\n updateThreadReadForUser = (userId, teamId, threadId, timestamp) => {\n const url = `${this.getUserThreadRoute(userId, teamId, threadId)}/read/${timestamp}`;\n return this.doFetch(url, { method: 'put' });\n };\n markThreadAsUnreadForUser = (userId, teamId, threadId, postId) => {\n const url = `${this.getUserThreadRoute(userId, teamId, threadId)}/set_unread/${postId}`;\n return this.doFetch(url, { method: 'post' });\n };\n updateThreadFollowForUser = (userId, teamId, threadId, state) => {\n const url = this.getUserThreadRoute(userId, teamId, threadId) + '/following';\n return this.doFetch(url, { method: state ? 'put' : 'delete' });\n };\n getFileInfosForPost = (postId) => {\n return this.doFetch(`${this.getPostRoute(postId)}/files/info`, { method: 'get' });\n };\n getFlaggedPosts = (userId, channelId = '', teamId = '', page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getUserRoute(userId)}/posts/flagged${(0, helpers_1.buildQueryString)({ channel_id: channelId, team_id: teamId, page, per_page: perPage })}`, { method: 'get' });\n };\n getPinnedPosts = (channelId) => {\n return this.doFetch(`${this.getChannelRoute(channelId)}/pinned`, { method: 'get' });\n };\n markPostAsUnread = (userId, postId) => {\n return this.doFetch(`${this.getUserRoute(userId)}/posts/${postId}/set_unread`, { method: 'post', body: JSON.stringify({ collapsed_threads_supported: true }) });\n };\n addPostReminder = (userId, postId, timestamp) => {\n return this.doFetch(`${this.getUserRoute(userId)}/posts/${postId}/reminder`, { method: 'post', body: JSON.stringify({ target_time: timestamp }) });\n };\n pinPost = (postId) => {\n return this.doFetch(`${this.getPostRoute(postId)}/pin`, { method: 'post' });\n };\n unpinPost = (postId) => {\n return this.doFetch(`${this.getPostRoute(postId)}/unpin`, { method: 'post' });\n };\n getPostInfo = (postId) => {\n return this.doFetch(`${this.getPostRoute(postId)}/info`, { method: 'get' });\n };\n getPostsByIds = (postIds) => {\n return this.doFetch(`${this.getPostsRoute()}/ids`, { method: 'post', body: JSON.stringify(postIds) });\n };\n getPostEditHistory = (postId) => {\n return this.doFetch(`${this.getPostRoute(postId)}/edit_history`, { method: 'get' });\n };\n addReaction = (userId, postId, emojiName) => {\n return this.doFetch(`${this.getReactionsRoute()}`, { method: 'post', body: JSON.stringify({ user_id: userId, post_id: postId, emoji_name: emojiName }) });\n };\n removeReaction = (userId, postId, emojiName) => {\n return this.doFetch(`${this.getUserRoute(userId)}/posts/${postId}/reactions/${emojiName}`, { method: 'delete' });\n };\n getReactionsForPost = (postId) => {\n return this.doFetch(`${this.getPostRoute(postId)}/reactions`, { method: 'get' });\n };\n searchPostsWithParams = (teamId, params) => {\n let route = `${this.getPostsRoute()}/search`;\n if (teamId) {\n route = `${this.getTeamRoute(teamId)}/posts/search`;\n }\n return this.doFetch(route, { method: 'post', body: JSON.stringify(params) });\n };\n searchPosts = (teamId, terms, isOrSearch) => {\n return this.searchPostsWithParams(teamId, { terms, is_or_search: isOrSearch });\n };\n searchFilesWithParams = (teamId, params) => {\n let route = `${this.getFilesRoute()}/search`;\n if (teamId) {\n route = `${this.getTeamRoute(teamId)}/files/search`;\n }\n return this.doFetch(route, { method: 'post', body: JSON.stringify(params) });\n };\n searchFiles = (teamId, terms, isOrSearch) => {\n return this.searchFilesWithParams(teamId, { terms, is_or_search: isOrSearch });\n };\n doPostAction = (postId, actionId, selectedOption = '') => {\n return this.doPostActionWithCookie(postId, actionId, '', selectedOption);\n };\n doPostActionWithCookie = (postId, actionId, actionCookie, selectedOption = '') => {\n const msg = {\n selected_option: selectedOption,\n };\n if (actionCookie !== '') {\n msg.cookie = actionCookie;\n }\n return this.doFetch(`${this.getPostRoute(postId)}/actions/${encodeURIComponent(actionId)}`, { method: 'post', body: JSON.stringify(msg) });\n };\n // Files Routes\n getFileUrl(fileId, timestamp) {\n let url = `${this.getFileRoute(fileId)}`;\n if (timestamp) {\n url += `?${timestamp}`;\n }\n return url;\n }\n getFileThumbnailUrl(fileId, timestamp) {\n let url = `${this.getFileRoute(fileId)}/thumbnail`;\n if (timestamp) {\n url += `?${timestamp}`;\n }\n return url;\n }\n getFilePreviewUrl(fileId, timestamp) {\n let url = `${this.getFileRoute(fileId)}/preview`;\n if (timestamp) {\n url += `?${timestamp}`;\n }\n return url;\n }\n uploadFile = (fileFormData, isBookmark) => {\n const request = {\n method: 'post',\n body: fileFormData,\n };\n return this.doFetch(`${this.getFilesRoute()}${(0, helpers_1.buildQueryString)({ bookmark: isBookmark })}`, request);\n };\n getFilePublicLink = (fileId) => {\n return this.doFetch(`${this.getFileRoute(fileId)}/link`, { method: 'get' });\n };\n acknowledgePost = (postId, userId) => {\n this.trackEvent('api', 'api_posts_ack');\n return this.doFetch(`${this.getUserRoute(userId)}/posts/${postId}/ack`, { method: 'post' });\n };\n unacknowledgePost = (postId, userId) => {\n return this.doFetch(`${this.getUserRoute(userId)}/posts/${postId}/ack`, { method: 'delete' });\n };\n // Preference Routes\n savePreferences = (userId, preferences) => {\n return this.doFetch(`${this.getPreferencesRoute(userId)}`, { method: 'put', body: JSON.stringify(preferences) });\n };\n getMyPreferences = () => {\n return this.doFetch(`${this.getPreferencesRoute('me')}`, { method: 'get' });\n };\n getUserPreferences = (userId) => {\n return this.doFetch(`${this.getPreferencesRoute(userId)}`, { method: 'get' });\n };\n deletePreferences = (userId, preferences) => {\n return this.doFetch(`${this.getPreferencesRoute(userId)}/delete`, { method: 'post', body: JSON.stringify(preferences) });\n };\n // General Routes\n ping = (getServerStatus, deviceId) => {\n return this.doFetch(`${this.getBaseRoute()}/system/ping${(0, helpers_1.buildQueryString)({ get_server_status: getServerStatus, device_id: deviceId, use_rest_semantics: true })}`, { method: 'get' });\n };\n upgradeToEnterprise = async () => {\n return this.doFetch(`${this.getBaseRoute()}/upgrade_to_enterprise`, { method: 'post' });\n };\n upgradeToEnterpriseStatus = async () => {\n return this.doFetch(`${this.getBaseRoute()}/upgrade_to_enterprise/status`, { method: 'get' });\n };\n restartServer = async () => {\n return this.doFetch(`${this.getBaseRoute()}/restart`, { method: 'post' });\n };\n logClientError = (message, level = client4_1.LogLevel.Error) => {\n const url = `${this.getBaseRoute()}/logs`;\n if (!this.enableLogging) {\n throw new ClientError(this.getUrl(), {\n message: 'Logging disabled.',\n url,\n });\n }\n return this.doFetch(url, { method: 'post', body: JSON.stringify({ message, level }) });\n };\n getClientConfigOld = () => {\n return this.doFetch(`${this.getBaseRoute()}/config/client?format=old`, { method: 'get' });\n };\n getClientLicenseOld = () => {\n return this.doFetch(`${this.getBaseRoute()}/license/client?format=old`, { method: 'get' });\n };\n setFirstAdminVisitMarketplaceStatus = async () => {\n return this.doFetch(`${this.getPluginsRoute()}/marketplace/first_admin_visit`, { method: 'post', body: JSON.stringify({ first_admin_visit_marketplace_status: true }) });\n };\n getFirstAdminVisitMarketplaceStatus = async () => {\n return this.doFetch(`${this.getPluginsRoute()}/marketplace/first_admin_visit`, { method: 'get' });\n };\n getFirstAdminSetupComplete = async () => {\n return this.doFetch(`${this.getSystemRoute()}/onboarding/complete`, { method: 'get' });\n };\n getTranslations = (url) => {\n return this.doFetch(url, { method: 'get' });\n };\n getWebSocketUrl = () => {\n return `${this.getBaseRoute()}/websocket`;\n };\n // Integration Routes\n createIncomingWebhook = (hook) => {\n return this.doFetch(`${this.getIncomingHooksRoute()}`, { method: 'post', body: JSON.stringify(hook) });\n };\n getIncomingWebhook = (hookId) => {\n return this.doFetch(`${this.getIncomingHookRoute(hookId)}`, { method: 'get' });\n };\n getIncomingWebhooks = (teamId = '', page = 0, perPage = PER_PAGE_DEFAULT, includeTotalCount = false) => {\n const queryParams = {\n page,\n per_page: perPage,\n include_total_count: includeTotalCount,\n };\n if (teamId) {\n queryParams.team_id = teamId;\n }\n return this.doFetch(`${this.getIncomingHooksRoute()}${(0, helpers_1.buildQueryString)(queryParams)}`, { method: 'get' });\n };\n removeIncomingWebhook = (hookId) => {\n return this.doFetch(`${this.getIncomingHookRoute(hookId)}`, { method: 'delete' });\n };\n updateIncomingWebhook = (hook) => {\n return this.doFetch(`${this.getIncomingHookRoute(hook.id)}`, { method: 'put', body: JSON.stringify(hook) });\n };\n createOutgoingWebhook = (hook) => {\n return this.doFetch(`${this.getOutgoingHooksRoute()}`, { method: 'post', body: JSON.stringify(hook) });\n };\n getOutgoingWebhook = (hookId) => {\n return this.doFetch(`${this.getOutgoingHookRoute(hookId)}`, { method: 'get' });\n };\n getOutgoingWebhooks = (channelId = '', teamId = '', page = 0, perPage = PER_PAGE_DEFAULT) => {\n const queryParams = {\n page,\n per_page: perPage,\n };\n if (channelId) {\n queryParams.channel_id = channelId;\n }\n if (teamId) {\n queryParams.team_id = teamId;\n }\n return this.doFetch(`${this.getOutgoingHooksRoute()}${(0, helpers_1.buildQueryString)(queryParams)}`, { method: 'get' });\n };\n removeOutgoingWebhook = (hookId) => {\n return this.doFetch(`${this.getOutgoingHookRoute(hookId)}`, { method: 'delete' });\n };\n updateOutgoingWebhook = (hook) => {\n return this.doFetch(`${this.getOutgoingHookRoute(hook.id)}`, { method: 'put', body: JSON.stringify(hook) });\n };\n regenOutgoingHookToken = (id) => {\n return this.doFetch(`${this.getOutgoingHookRoute(id)}/regen_token`, { method: 'post' });\n };\n getCommandsList = (teamId) => {\n return this.doFetch(`${this.getCommandsRoute()}?team_id=${teamId}`, { method: 'get' });\n };\n getCommandAutocompleteSuggestionsList = (userInput, teamId, commandArgs) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/commands/autocomplete_suggestions${(0, helpers_1.buildQueryString)({ ...commandArgs, user_input: userInput })}`, { method: 'get' });\n };\n getAutocompleteCommandsList = (teamId, page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getTeamRoute(teamId)}/commands/autocomplete${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n getCustomTeamCommands = (teamId) => {\n return this.doFetch(`${this.getCommandsRoute()}?team_id=${teamId}&custom_only=true`, { method: 'get' });\n };\n executeCommand = (command, commandArgs) => {\n return this.doFetch(`${this.getCommandsRoute()}/execute`, { method: 'post', body: JSON.stringify({ command, ...commandArgs }) });\n };\n addCommand = (command) => {\n return this.doFetch(`${this.getCommandsRoute()}`, { method: 'post', body: JSON.stringify(command) });\n };\n editCommand = (command) => {\n return this.doFetch(`${this.getCommandsRoute()}/${command.id}`, { method: 'put', body: JSON.stringify(command) });\n };\n regenCommandToken = (id) => {\n return this.doFetch(`${this.getCommandsRoute()}/${id}/regen_token`, { method: 'put' });\n };\n deleteCommand = (id) => {\n return this.doFetch(`${this.getCommandsRoute()}/${id}`, { method: 'delete' });\n };\n createOAuthApp = (app) => {\n return this.doFetch(`${this.getOAuthAppsRoute()}`, { method: 'post', body: JSON.stringify(app) });\n };\n editOAuthApp = (app) => {\n return this.doFetch(`${this.getOAuthAppsRoute()}/${app.id}`, { method: 'put', body: JSON.stringify(app) });\n };\n getOAuthApps = (page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getOAuthAppsRoute()}${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n getAppsOAuthAppIDs = () => {\n return this.doFetch(`${this.getAppsProxyRoute()}/api/v1/oauth-app-ids`, { method: 'get' });\n };\n getAppsBotIDs = () => {\n return this.doFetch(`${this.getAppsProxyRoute()}/api/v1/bot-ids`, { method: 'get' });\n };\n getOAuthApp = (appId) => {\n return this.doFetch(`${this.getOAuthAppRoute(appId)}`, { method: 'get' });\n };\n getOutgoingOAuthConnections = (teamId, page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getOutgoingOAuthConnectionsRoute()}${(0, helpers_1.buildQueryString)({ team_id: teamId, page, per_page: perPage })}`, { method: 'get' });\n };\n getOutgoingOAuthConnectionsForAudience = (teamId, audience, page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getOutgoingOAuthConnectionsRoute()}${(0, helpers_1.buildQueryString)({ team_id: teamId, page, per_page: perPage, audience })}`, { method: 'get' });\n };\n getOutgoingOAuthConnection = (teamId, connectionId) => {\n return this.doFetch(`${this.getOutgoingOAuthConnectionRoute(connectionId)}${(0, helpers_1.buildQueryString)({ team_id: teamId })}`, { method: 'get' });\n };\n createOutgoingOAuthConnection = (teamId, connection) => {\n return this.doFetch(`${this.getOutgoingOAuthConnectionsRoute()}${(0, helpers_1.buildQueryString)({ team_id: teamId })}`, { method: 'post', body: JSON.stringify(connection) });\n };\n editOutgoingOAuthConnection = (teamId, connection) => {\n return this.doFetch(`${this.getOutgoingOAuthConnectionsRoute()}/${connection.id}${(0, helpers_1.buildQueryString)({ team_id: teamId })}`, { method: 'put', body: JSON.stringify(connection) });\n };\n validateOutgoingOAuthConnection = (teamId, connection) => {\n return this.doFetch(`${this.getOutgoingOAuthConnectionsRoute()}/validate${(0, helpers_1.buildQueryString)({ team_id: teamId })}`, { method: 'post', body: JSON.stringify(connection) });\n };\n getOAuthAppInfo = (appId) => {\n return this.doFetch(`${this.getOAuthAppRoute(appId)}/info`, { method: 'get' });\n };\n deleteOAuthApp = (appId) => {\n return this.doFetch(`${this.getOAuthAppRoute(appId)}`, { method: 'delete' });\n };\n regenOAuthAppSecret = (appId) => {\n return this.doFetch(`${this.getOAuthAppRoute(appId)}/regen_secret`, { method: 'post' });\n };\n deleteOutgoingOAuthConnection = (connectionId) => {\n return this.doFetch(`${this.getOutgoingOAuthConnectionRoute(connectionId)}`, { method: 'delete' });\n };\n submitInteractiveDialog = (data) => {\n return this.doFetch(`${this.getBaseRoute()}/actions/dialogs/submit`, { method: 'post', body: JSON.stringify(data) });\n };\n // Emoji Routes\n createCustomEmoji = (emoji, imageData) => {\n const formData = new FormData();\n formData.append('image', imageData);\n formData.append('emoji', JSON.stringify(emoji));\n const request = {\n method: 'post',\n body: formData,\n };\n return this.doFetch(`${this.getEmojisRoute()}`, request);\n };\n getCustomEmoji = (id) => {\n return this.doFetch(`${this.getEmojisRoute()}/${id}`, { method: 'get' });\n };\n getCustomEmojiByName = (name) => {\n return this.doFetch(`${this.getEmojisRoute()}/name/${name}`, { method: 'get' });\n };\n getCustomEmojisByNames = (names) => {\n return this.doFetch(`${this.getEmojisRoute()}/names`, { method: 'post', body: JSON.stringify(names) });\n };\n getCustomEmojis = (page = 0, perPage = PER_PAGE_DEFAULT, sort = '') => {\n return this.doFetch(`${this.getEmojisRoute()}${(0, helpers_1.buildQueryString)({ page, per_page: perPage, sort })}`, { method: 'get' });\n };\n deleteCustomEmoji = (emojiId) => {\n return this.doFetch(`${this.getEmojiRoute(emojiId)}`, { method: 'delete' });\n };\n getSystemEmojiImageUrl = (filename) => {\n const extension = filename.endsWith('.png') ? '' : '.png';\n return `${this.url}/static/emoji/${filename}${extension}`;\n };\n getCustomEmojiImageUrl = (id) => {\n return `${this.getEmojiRoute(id)}/image`;\n };\n searchCustomEmoji = (term, options = {}) => {\n return this.doFetch(`${this.getEmojisRoute()}/search`, { method: 'post', body: JSON.stringify({ term, ...options }) });\n };\n autocompleteCustomEmoji = (name) => {\n return this.doFetch(`${this.getEmojisRoute()}/autocomplete${(0, helpers_1.buildQueryString)({ name })}`, { method: 'get' });\n };\n // Data Retention\n getDataRetentionPolicy = () => {\n return this.doFetch(`${this.getDataRetentionRoute()}/policy`, { method: 'get' });\n };\n getDataRetentionCustomPolicies = (page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getDataRetentionRoute()}/policies${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n getDataRetentionCustomPolicy = (id) => {\n return this.doFetch(`${this.getDataRetentionRoute()}/policies/${id}`, { method: 'get' });\n };\n deleteDataRetentionCustomPolicy = (id) => {\n return this.doFetch(`${this.getDataRetentionRoute()}/policies/${id}`, { method: 'delete' });\n };\n searchDataRetentionCustomPolicyChannels = (policyId, term, opts) => {\n return this.doFetch(`${this.getDataRetentionRoute()}/policies/${policyId}/channels/search`, { method: 'post', body: JSON.stringify({ term, ...opts }) });\n };\n searchDataRetentionCustomPolicyTeams = (policyId, term, opts) => {\n return this.doFetch(`${this.getDataRetentionRoute()}/policies/${policyId}/teams/search`, { method: 'post', body: JSON.stringify({ term, ...opts }) });\n };\n getDataRetentionCustomPolicyTeams = (id, page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getDataRetentionRoute()}/policies/${id}/teams${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n getDataRetentionCustomPolicyChannels = (id, page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getDataRetentionRoute()}/policies/${id}/channels${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n createDataRetentionPolicy = (policy) => {\n return this.doFetch(`${this.getDataRetentionRoute()}/policies`, { method: 'post', body: JSON.stringify(policy) });\n };\n updateDataRetentionPolicy = (id, policy) => {\n return this.doFetch(`${this.getDataRetentionRoute()}/policies/${id}`, { method: 'PATCH', body: JSON.stringify(policy) });\n };\n addDataRetentionPolicyTeams = (id, teams) => {\n return this.doFetch(`${this.getDataRetentionRoute()}/policies/${id}/teams`, { method: 'post', body: JSON.stringify(teams) });\n };\n removeDataRetentionPolicyTeams = (id, teams) => {\n return this.doFetch(`${this.getDataRetentionRoute()}/policies/${id}/teams`, { method: 'delete', body: JSON.stringify(teams) });\n };\n addDataRetentionPolicyChannels = (id, channels) => {\n return this.doFetch(`${this.getDataRetentionRoute()}/policies/${id}/channels`, { method: 'post', body: JSON.stringify(channels) });\n };\n removeDataRetentionPolicyChannels = (id, channels) => {\n return this.doFetch(`${this.getDataRetentionRoute()}/policies/${id}/channels`, { method: 'delete', body: JSON.stringify(channels) });\n };\n // Jobs Routes\n getJob = (id) => {\n return this.doFetch(`${this.getJobsRoute()}/${id}`, { method: 'get' });\n };\n getJobs = (page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getJobsRoute()}${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n getJobsByType = (type, page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getJobsRoute()}/type/${type}${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n createJob = (job) => {\n return this.doFetch(`${this.getJobsRoute()}`, { method: 'post', body: JSON.stringify(job) });\n };\n cancelJob = (id) => {\n return this.doFetch(`${this.getJobsRoute()}/${id}/cancel`, { method: 'post' });\n };\n // Admin Routes\n getLogs = (logFilter) => {\n return this.doFetch(`${this.getBaseRoute()}/logs/query`, { method: 'post', body: JSON.stringify(logFilter) });\n };\n getPlainLogs = (page = 0, perPage = LOGS_PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getBaseRoute()}/logs${(0, helpers_1.buildQueryString)({ page, logs_per_page: perPage })}`, { method: 'get' });\n };\n getAudits = (page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getBaseRoute()}/audits${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n getConfig = () => {\n return this.doFetch(`${this.getBaseRoute()}/config`, { method: 'get' });\n };\n updateConfig = (config) => {\n return this.doFetch(`${this.getBaseRoute()}/config`, { method: 'put', body: JSON.stringify(config) });\n };\n patchConfig = (patch) => {\n return this.doFetch(`${this.getBaseRoute()}/config/patch`, { method: 'put', body: JSON.stringify(patch) });\n };\n reloadConfig = () => {\n return this.doFetch(`${this.getBaseRoute()}/config/reload`, { method: 'post' });\n };\n getEnvironmentConfig = () => {\n return this.doFetch(`${this.getBaseRoute()}/config/environment`, { method: 'get' });\n };\n sendTestNotificaiton = () => {\n return this.doFetch(`${this.getBaseRoute()}/notifications/test`, { method: 'post' });\n };\n testEmail = (config) => {\n return this.doFetch(`${this.getBaseRoute()}/email/test`, { method: 'post', body: JSON.stringify(config) });\n };\n testSiteURL = (siteURL) => {\n return this.doFetch(`${this.getBaseRoute()}/site_url/test`, { method: 'post', body: JSON.stringify({ site_url: siteURL }) });\n };\n testS3Connection = (config) => {\n return this.doFetch(`${this.getBaseRoute()}/file/s3_test`, { method: 'post', body: JSON.stringify(config) });\n };\n invalidateCaches = () => {\n return this.doFetch(`${this.getBaseRoute()}/caches/invalidate`, { method: 'post' });\n };\n recycleDatabase = () => {\n return this.doFetch(`${this.getBaseRoute()}/database/recycle`, { method: 'post' });\n };\n createComplianceReport = (job) => {\n return this.doFetch(`${this.getBaseRoute()}/compliance/reports`, { method: 'post', body: JSON.stringify(job) });\n };\n getComplianceReport = (reportId) => {\n return this.doFetch(`${this.getBaseRoute()}/compliance/reports/${reportId}`, { method: 'get' });\n };\n getComplianceReports = (page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getBaseRoute()}/compliance/reports${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n uploadBrandImage = (imageData) => {\n const formData = new FormData();\n formData.append('image', imageData);\n const request = {\n method: 'post',\n body: formData,\n };\n return this.doFetch(`${this.getBrandRoute()}/image`, request);\n };\n deleteBrandImage = () => {\n return this.doFetch(`${this.getBrandRoute()}/image`, { method: 'delete' });\n };\n getClusterStatus = () => {\n return this.doFetch(`${this.getBaseRoute()}/cluster/status`, { method: 'get' });\n };\n testLdap = () => {\n return this.doFetch(`${this.getBaseRoute()}/ldap/test`, { method: 'post' });\n };\n syncLdap = () => {\n return this.doFetch(`${this.getBaseRoute()}/ldap/sync`, { method: 'post' });\n };\n getLdapGroups = (page = 0, perPage = PER_PAGE_DEFAULT, opts = {}) => {\n const query = { page, per_page: perPage, ...opts };\n return this.doFetch(`${this.getBaseRoute()}/ldap/groups${(0, helpers_1.buildQueryString)(query)}`, { method: 'get' });\n };\n linkLdapGroup = (key) => {\n return this.doFetch(`${this.getBaseRoute()}/ldap/groups/${encodeURI(key)}/link`, { method: 'post' });\n };\n unlinkLdapGroup = (key) => {\n return this.doFetch(`${this.getBaseRoute()}/ldap/groups/${encodeURI(key)}/link`, { method: 'delete' });\n };\n getSamlCertificateStatus = () => {\n return this.doFetch(`${this.getBaseRoute()}/saml/certificate/status`, { method: 'get' });\n };\n uploadPublicSamlCertificate = (fileData) => {\n const formData = new FormData();\n formData.append('certificate', fileData);\n return this.doFetch(`${this.getBaseRoute()}/saml/certificate/public`, {\n method: 'post',\n body: formData,\n });\n };\n uploadPrivateSamlCertificate = (fileData) => {\n const formData = new FormData();\n formData.append('certificate', fileData);\n return this.doFetch(`${this.getBaseRoute()}/saml/certificate/private`, {\n method: 'post',\n body: formData,\n });\n };\n uploadPublicLdapCertificate = (fileData) => {\n const formData = new FormData();\n formData.append('certificate', fileData);\n return this.doFetch(`${this.getBaseRoute()}/ldap/certificate/public`, {\n method: 'post',\n body: formData,\n });\n };\n uploadPrivateLdapCertificate = (fileData) => {\n const formData = new FormData();\n formData.append('certificate', fileData);\n return this.doFetch(`${this.getBaseRoute()}/ldap/certificate/private`, {\n method: 'post',\n body: formData,\n });\n };\n uploadIdpSamlCertificate = (fileData) => {\n const formData = new FormData();\n formData.append('certificate', fileData);\n return this.doFetch(`${this.getBaseRoute()}/saml/certificate/idp`, {\n method: 'post',\n body: formData,\n });\n };\n deletePublicSamlCertificate = () => {\n return this.doFetch(`${this.getBaseRoute()}/saml/certificate/public`, { method: 'delete' });\n };\n deletePrivateSamlCertificate = () => {\n return this.doFetch(`${this.getBaseRoute()}/saml/certificate/private`, { method: 'delete' });\n };\n deletePublicLdapCertificate = () => {\n return this.doFetch(`${this.getBaseRoute()}/ldap/certificate/public`, { method: 'delete' });\n };\n deletePrivateLdapCertificate = () => {\n return this.doFetch(`${this.getBaseRoute()}/ldap/certificate/private`, { method: 'delete' });\n };\n deleteIdpSamlCertificate = () => {\n return this.doFetch(`${this.getBaseRoute()}/saml/certificate/idp`, { method: 'delete' });\n };\n testElasticsearch = (config) => {\n return this.doFetch(`${this.getBaseRoute()}/elasticsearch/test`, { method: 'post', body: JSON.stringify(config) });\n };\n purgeElasticsearchIndexes = (indexes) => {\n return this.doFetch(`${this.getBaseRoute()}/elasticsearch/purge_indexes${indexes && indexes.length > 0 ? '?index=' + indexes.join(',') : ''}`, { method: 'post' });\n };\n purgeBleveIndexes = () => {\n return this.doFetch(`${this.getBaseRoute()}/bleve/purge_indexes`, { method: 'post' });\n };\n uploadLicense = (fileData) => {\n const formData = new FormData();\n formData.append('license', fileData);\n const request = {\n method: 'post',\n body: formData,\n };\n return this.doFetch(`${this.getBaseRoute()}/license`, request);\n };\n requestTrialLicense = (body) => {\n return this.doFetchWithResponse(`${this.getBaseRoute()}/trial-license`, { method: 'POST', body: JSON.stringify(body) });\n };\n removeLicense = () => {\n return this.doFetch(`${this.getBaseRoute()}/license`, { method: 'delete' });\n };\n getPrevTrialLicense = () => {\n return this.doFetch(`${this.getBaseRoute()}/trial-license/prev`, { method: 'get' });\n };\n getAnalytics = (name = 'standard', teamId = '') => {\n return this.doFetch(`${this.getBaseRoute()}/analytics/old${(0, helpers_1.buildQueryString)({ name, team_id: teamId })}`, { method: 'get' });\n };\n // Role Routes\n getRole = (roleId) => {\n return this.doFetch(`${this.getRolesRoute()}/${roleId}`, { method: 'get' });\n };\n getRoleByName = (roleName) => {\n return this.doFetch(`${this.getRolesRoute()}/name/${roleName}`, { method: 'get' });\n };\n getRolesByNames = (rolesNames) => {\n return this.doFetch(`${this.getRolesRoute()}/names`, { method: 'post', body: JSON.stringify(rolesNames) });\n };\n patchRole = (roleId, rolePatch) => {\n return this.doFetch(`${this.getRolesRoute()}/${roleId}/patch`, { method: 'put', body: JSON.stringify(rolePatch) });\n };\n // Scheme Routes\n getSchemes = (scope = '', page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getSchemesRoute()}${(0, helpers_1.buildQueryString)({ scope, page, per_page: perPage })}`, { method: 'get' });\n };\n createScheme = (scheme) => {\n return this.doFetch(`${this.getSchemesRoute()}`, { method: 'post', body: JSON.stringify(scheme) });\n };\n getScheme = (schemeId) => {\n return this.doFetch(`${this.getSchemesRoute()}/${schemeId}`, { method: 'get' });\n };\n deleteScheme = (schemeId) => {\n return this.doFetch(`${this.getSchemesRoute()}/${schemeId}`, { method: 'delete' });\n };\n patchScheme = (schemeId, schemePatch) => {\n return this.doFetch(`${this.getSchemesRoute()}/${schemeId}/patch`, { method: 'put', body: JSON.stringify(schemePatch) });\n };\n getSchemeTeams = (schemeId, page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getSchemesRoute()}/${schemeId}/teams${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n getSchemeChannels = (schemeId, page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getSchemesRoute()}/${schemeId}/channels${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n // Plugin Routes\n uploadPlugin = async (fileData, force = false) => {\n const formData = new FormData();\n if (force) {\n formData.append('force', 'true');\n }\n formData.append('plugin', fileData);\n const request = {\n method: 'post',\n body: formData,\n };\n return this.doFetch(this.getPluginsRoute(), request);\n };\n installPluginFromUrl = (pluginDownloadUrl, force = false) => {\n const queryParams = { plugin_download_url: pluginDownloadUrl, force };\n return this.doFetch(`${this.getPluginsRoute()}/install_from_url${(0, helpers_1.buildQueryString)(queryParams)}`, { method: 'post' });\n };\n getPlugins = () => {\n return this.doFetch(this.getPluginsRoute(), { method: 'get' });\n };\n getRemoteMarketplacePlugins = (filter) => {\n return this.doFetch(`${this.getPluginsMarketplaceRoute()}${(0, helpers_1.buildQueryString)({ filter: filter || '', remote_only: true })}`, { method: 'get' });\n };\n getMarketplacePlugins = (filter, localOnly = false) => {\n return this.doFetch(`${this.getPluginsMarketplaceRoute()}${(0, helpers_1.buildQueryString)({ filter: filter || '', local_only: localOnly })}`, { method: 'get' });\n };\n installMarketplacePlugin = (id) => {\n return this.doFetch(`${this.getPluginsMarketplaceRoute()}`, { method: 'post', body: JSON.stringify({ id }) });\n };\n getMarketplaceApps = (filter) => {\n return this.doFetch(`${this.getAppsProxyRoute()}/api/v1/marketplace${(0, helpers_1.buildQueryString)({ filter: filter || '' })}`, { method: 'get' });\n };\n getPluginStatuses = () => {\n return this.doFetch(`${this.getPluginsRoute()}/statuses`, { method: 'get' });\n };\n removePlugin = (pluginId) => {\n return this.doFetch(this.getPluginRoute(pluginId), { method: 'delete' });\n };\n getWebappPlugins = () => {\n return this.doFetch(`${this.getPluginsRoute()}/webapp`, { method: 'get' });\n };\n enablePlugin = (pluginId) => {\n return this.doFetch(`${this.getPluginRoute(pluginId)}/enable`, { method: 'post' });\n };\n disablePlugin = (pluginId) => {\n return this.doFetch(`${this.getPluginRoute(pluginId)}/disable`, { method: 'post' });\n };\n // Groups\n linkGroupSyncable = (groupID, syncableID, syncableType, patch) => {\n return this.doFetch(`${this.getGroupRoute(groupID)}/${syncableType}s/${syncableID}/link`, { method: 'post', body: JSON.stringify(patch) });\n };\n unlinkGroupSyncable = (groupID, syncableID, syncableType) => {\n return this.doFetch(`${this.getGroupRoute(groupID)}/${syncableType}s/${syncableID}/link`, { method: 'delete' });\n };\n getGroupSyncables = (groupID, syncableType) => {\n return this.doFetch(`${this.getGroupRoute(groupID)}/${syncableType}s`, { method: 'get' });\n };\n getGroup = (groupID, includeMemberCount = false) => {\n return this.doFetch(`${this.getGroupRoute(groupID)}${(0, helpers_1.buildQueryString)({ include_member_count: includeMemberCount })}`, { method: 'get' });\n };\n getGroupStats = (groupID) => {\n return this.doFetch(`${this.getGroupRoute(groupID)}/stats`, { method: 'get' });\n };\n getGroups = (opts) => {\n return this.doFetch(`${this.getGroupsRoute()}${(0, helpers_1.buildQueryString)(opts)}`, { method: 'get' });\n };\n getGroupsByUserId = (userID) => {\n return this.doFetch(`${this.getUsersRoute()}/${userID}/groups`, { method: 'get' });\n };\n getGroupsNotAssociatedToTeam = (teamID, q = '', page = 0, perPage = PER_PAGE_DEFAULT, source = 'ldap') => {\n return this.doFetch(`${this.getGroupsRoute()}${(0, helpers_1.buildQueryString)({ not_associated_to_team: teamID, page, per_page: perPage, q, include_member_count: true, group_source: source })}`, { method: 'get' });\n };\n getGroupsNotAssociatedToChannel = (channelID, q = '', page = 0, perPage = PER_PAGE_DEFAULT, filterParentTeamPermitted = false, source = 'ldap') => {\n const query = {\n not_associated_to_channel: channelID,\n page,\n per_page: perPage,\n q,\n include_member_count: true,\n filter_parent_team_permitted: filterParentTeamPermitted,\n group_source: source,\n };\n return this.doFetch(`${this.getGroupsRoute()}${(0, helpers_1.buildQueryString)(query)}`, { method: 'get' });\n };\n createGroupWithUserIds = (group) => {\n return this.doFetch(this.getGroupsRoute(), { method: 'post', body: JSON.stringify(group) });\n };\n addUsersToGroup = (groupId, userIds) => {\n return this.doFetch(`${this.getGroupRoute(groupId)}/members`, { method: 'post', body: JSON.stringify({ user_ids: userIds }) });\n };\n removeUsersFromGroup = (groupId, userIds) => {\n return this.doFetch(`${this.getGroupRoute(groupId)}/members`, { method: 'delete', body: JSON.stringify({ user_ids: userIds }) });\n };\n searchGroups = (params) => {\n return this.doFetch(`${this.getGroupsRoute()}${(0, helpers_1.buildQueryString)(params)}`, { method: 'get' });\n };\n executeAppCall = async (call, trackAsSubmit) => {\n const callCopy = {\n ...call,\n context: {\n ...call.context,\n track_as_submit: trackAsSubmit,\n user_agent: 'webapp',\n },\n };\n return this.doFetch(`${this.getAppsProxyRoute()}/api/v1/call`, { method: 'post', body: JSON.stringify(callCopy) });\n };\n getAppsBindings = async (channelID, teamID) => {\n const params = {\n channel_id: channelID,\n team_id: teamID,\n user_agent: 'webapp',\n };\n return this.doFetch(`${this.getAppsProxyRoute()}/api/v1/bindings${(0, helpers_1.buildQueryString)(params)}`, { method: 'get' });\n };\n getGroupsAssociatedToTeam = (teamID, q = '', page = 0, perPage = PER_PAGE_DEFAULT, filterAllowReference = false) => {\n return this.doFetch(`${this.getBaseRoute()}/teams/${teamID}/groups${(0, helpers_1.buildQueryString)({ page, per_page: perPage, q, include_member_count: true, filter_allow_reference: filterAllowReference })}`, { method: 'get' });\n };\n getGroupsAssociatedToChannel = (channelID, q = '', page = 0, perPage = PER_PAGE_DEFAULT, filterAllowReference = false) => {\n this.trackEvent('api', 'api_groups_get_associated_to_channel', { channel_id: channelID });\n return this.doFetch(`${this.getBaseRoute()}/channels/${channelID}/groups${(0, helpers_1.buildQueryString)({ page, per_page: perPage, q, include_member_count: true, filter_allow_reference: filterAllowReference })}`, { method: 'get' });\n };\n getAllGroupsAssociatedToTeam = (teamID, filterAllowReference = false, includeMemberCount = false) => {\n return this.doFetch(`${this.getBaseRoute()}/teams/${teamID}/groups${(0, helpers_1.buildQueryString)({ paginate: false, filter_allow_reference: filterAllowReference, include_member_count: includeMemberCount })}`, { method: 'get' });\n };\n getAllGroupsAssociatedToChannelsInTeam = (teamID, filterAllowReference = false) => {\n return this.doFetch(`${this.getBaseRoute()}/teams/${teamID}/groups_by_channels${(0, helpers_1.buildQueryString)({ paginate: false, filter_allow_reference: filterAllowReference })}`, { method: 'get' });\n };\n getAllGroupsAssociatedToChannel = (channelID, filterAllowReference = false, includeMemberCount = false) => {\n return this.doFetch(`${this.getBaseRoute()}/channels/${channelID}/groups${(0, helpers_1.buildQueryString)({ paginate: false, filter_allow_reference: filterAllowReference, include_member_count: includeMemberCount })}`, { method: 'get' });\n };\n patchGroupSyncable = (groupID, syncableID, syncableType, patch) => {\n return this.doFetch(`${this.getGroupRoute(groupID)}/${syncableType}s/${syncableID}/patch`, { method: 'put', body: JSON.stringify(patch) });\n };\n patchGroup = (groupID, patch) => {\n return this.doFetch(`${this.getGroupRoute(groupID)}/patch`, { method: 'put', body: JSON.stringify(patch) });\n };\n archiveGroup = (groupId) => {\n return this.doFetch(`${this.getGroupRoute(groupId)}`, { method: 'delete' });\n };\n restoreGroup = (groupId) => {\n return this.doFetch(`${this.getGroupRoute(groupId)}/restore`, { method: 'post' });\n };\n createGroupTeamsAndChannels = (userID) => {\n return this.doFetch(`${this.getBaseRoute()}/ldap/users/${userID}/group_sync_memberships`, { method: 'post' });\n };\n // Bot Routes\n createBot = (bot) => {\n return this.doFetch(`${this.getBotsRoute()}`, { method: 'post', body: JSON.stringify(bot) });\n };\n patchBot = (botUserId, botPatch) => {\n return this.doFetch(`${this.getBotRoute(botUserId)}`, { method: 'put', body: JSON.stringify(botPatch) });\n };\n getBot = (botUserId) => {\n return this.doFetch(`${this.getBotRoute(botUserId)}`, { method: 'get' });\n };\n getBots = (page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getBotsRoute()}${(0, helpers_1.buildQueryString)({ page, per_page: perPage })}`, { method: 'get' });\n };\n getBotsIncludeDeleted = (page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getBotsRoute()}${(0, helpers_1.buildQueryString)({ include_deleted: true, page, per_page: perPage })}`, { method: 'get' });\n };\n getBotsOrphaned = (page = 0, perPage = PER_PAGE_DEFAULT) => {\n return this.doFetch(`${this.getBotsRoute()}${(0, helpers_1.buildQueryString)({ only_orphaned: true, page, per_page: perPage })}`, { method: 'get' });\n };\n disableBot = (botUserId) => {\n return this.doFetch(`${this.getBotRoute(botUserId)}/disable`, { method: 'post' });\n };\n enableBot = (botUserId) => {\n return this.doFetch(`${this.getBotRoute(botUserId)}/enable`, { method: 'post' });\n };\n assignBot = (botUserId, newOwnerId) => {\n return this.doFetch(`${this.getBotRoute(botUserId)}/assign/${newOwnerId}`, { method: 'post' });\n };\n // Cloud routes\n getCloudProducts = (includeLegacyProducts) => {\n let query = '';\n if (includeLegacyProducts) {\n query = '?include_legacy=true';\n }\n return this.doFetch(`${this.getCloudRoute()}/products${query}`, { method: 'get' });\n };\n getSelfHostedProducts = () => {\n return this.doFetch(`${this.getCloudRoute()}/products/selfhosted`, { method: 'get' });\n };\n subscribeToNewsletter = (newletterRequestBody) => {\n return this.doFetch(`${this.getHostedCustomerRoute()}/subscribe-newsletter`, { method: 'post', body: JSON.stringify(newletterRequestBody) });\n };\n cwsAvailabilityCheck = () => {\n return this.doFetchWithResponse(`${this.getCloudRoute()}/check-cws-connection`, { method: 'get' });\n };\n getCloudCustomer = () => {\n return this.doFetch(`${this.getCloudRoute()}/customer`, { method: 'get' });\n };\n updateCloudCustomer = (customerPatch) => {\n return this.doFetch(`${this.getCloudRoute()}/customer`, { method: 'put', body: JSON.stringify(customerPatch) });\n };\n updateCloudCustomerAddress = (address) => {\n return this.doFetch(`${this.getCloudRoute()}/customer/address`, { method: 'put', body: JSON.stringify(address) });\n };\n notifyAdmin = (req) => {\n return this.doFetchWithResponse(`${this.getUsersRoute()}/notify-admin`, { method: 'post', body: JSON.stringify(req) });\n };\n validateBusinessEmail = (email = '') => {\n return this.doFetchWithResponse(`${this.getCloudRoute()}/validate-business-email`, { method: 'post', body: JSON.stringify({ email }) });\n };\n validateWorkspaceBusinessEmail = () => {\n return this.doFetchWithResponse(`${this.getCloudRoute()}/validate-workspace-business-email`, { method: 'post' });\n };\n getSubscription = () => {\n return this.doFetch(`${this.getCloudRoute()}/subscription`, { method: 'get' });\n };\n getInstallation = () => {\n return this.doFetch(`${this.getCloudRoute()}/installation`, { method: 'get' });\n };\n getInvoices = () => {\n return this.doFetch(`${this.getCloudRoute()}/subscription/invoices`, { method: 'get' });\n };\n getInvoicePdfUrl = (invoiceId) => {\n return `${this.getCloudRoute()}/subscription/invoices/${invoiceId}/pdf`;\n };\n getCloudLimits = () => {\n return this.doFetch(`${this.getCloudRoute()}/limits`, { method: 'get' });\n };\n getPostsUsage = () => {\n return this.doFetch(`${this.getUsageRoute()}/posts`, { method: 'get' });\n };\n getFilesUsage = () => {\n return this.doFetch(`${this.getUsageRoute()}/storage`, { method: 'get' });\n };\n getTeamsUsage = () => {\n return this.doFetch(`${this.getUsageRoute()}/teams`, { method: 'get' });\n };\n teamMembersMinusGroupMembers = (teamID, groupIDs, page, perPage) => {\n const query = `group_ids=${groupIDs.join(',')}&page=${page}&per_page=${perPage}`;\n return this.doFetch(`${this.getTeamRoute(teamID)}/members_minus_group_members?${query}`, { method: 'get' });\n };\n channelMembersMinusGroupMembers = (channelID, groupIDs, page, perPage) => {\n const query = `group_ids=${groupIDs.join(',')}&page=${page}&per_page=${perPage}`;\n return this.doFetch(`${this.getChannelRoute(channelID)}/members_minus_group_members?${query}`, { method: 'get' });\n };\n getSamlMetadataFromIdp = (samlMetadataURL) => {\n return this.doFetch(`${this.getBaseRoute()}/saml/metadatafromidp`, { method: 'post', body: JSON.stringify({ saml_metadata_url: samlMetadataURL }) });\n };\n setSamlIdpCertificateFromMetadata = (certData) => {\n const request = {\n method: 'post',\n body: certData,\n };\n request.headers = {\n 'Content-Type': 'application/x-pem-file',\n };\n return this.doFetch(`${this.getBaseRoute()}/saml/certificate/idp`, request);\n };\n getInProductNotices = (teamId, client, clientVersion) => {\n return this.doFetch(`${this.getNoticesRoute()}/${teamId}?client=${client}&clientVersion=${clientVersion}`, { method: 'get' });\n };\n updateNoticesAsViewed = (noticeIds) => {\n // Only one notice is marked as viewed at a time so using 0 index\n this.trackEvent('ui', `notice_seen_${noticeIds[0]}`);\n return this.doFetch(`${this.getNoticesRoute()}/view`, { method: 'put', body: JSON.stringify(noticeIds) });\n };\n getAncillaryPermissions = (subsectionPermissions) => {\n return this.doFetch(`${this.getPermissionsRoute()}/ancillary`, { method: 'post', body: JSON.stringify(subsectionPermissions) });\n };\n completeSetup = (completeOnboardingRequest) => {\n return this.doFetch(`${this.getSystemRoute()}/onboarding/complete`, { method: 'post', body: JSON.stringify(completeOnboardingRequest) });\n };\n getAppliedSchemaMigrations = () => {\n return this.doFetch(`${this.getSystemRoute()}/schema/version`, { method: 'get' });\n };\n getCallsChannelState = (channelId) => {\n return this.doFetch(`${this.url}/plugins/${'com.mattermost.calls'}/${channelId}`, { method: 'get' });\n };\n // Client Helpers\n doFetch = async (url, options) => {\n const { data } = await this.doFetchWithResponse(url, options);\n return data;\n };\n doFetchWithResponse = async (url, options) => {\n const response = await fetch(url, this.getOptions(options));\n const headers = parseAndMergeNestedHeaders(response.headers);\n let data;\n try {\n if (headers.get('Content-Type') === 'application/json') {\n data = await response.json();\n }\n else {\n data = await response.text();\n }\n }\n catch (err) {\n throw new ClientError(this.getUrl(), {\n message: 'Received invalid response from the server.',\n url,\n }, err);\n }\n if (headers.has(exports.HEADER_X_VERSION_ID) && !headers.get('Cache-Control')) {\n const serverVersion = headers.get(exports.HEADER_X_VERSION_ID);\n if (serverVersion && this.serverVersion !== serverVersion) {\n this.serverVersion = serverVersion;\n }\n }\n if (headers.has(exports.HEADER_X_CLUSTER_ID)) {\n const clusterId = headers.get(exports.HEADER_X_CLUSTER_ID);\n if (clusterId && this.clusterId !== clusterId) {\n this.clusterId = clusterId;\n }\n }\n if (response.ok || options.ignoreStatus) {\n return {\n response,\n headers,\n data,\n };\n }\n const msg = data.message || '';\n if (this.logToConsole) {\n console.error(msg); // eslint-disable-line no-console\n }\n throw new ClientError(this.getUrl(), {\n message: msg,\n server_error_id: data.id,\n status_code: data.status_code,\n url,\n });\n };\n trackEvent(category, event, props) {\n if (this.telemetryHandler) {\n this.telemetryHandler.trackEvent(this.userId, this.userRoles, category, event, props);\n }\n }\n trackFeatureEvent(featureName, event, props = {}) {\n if (this.telemetryHandler) {\n this.telemetryHandler.trackFeatureEvent(this.userId, this.userRoles, featureName, event, props);\n }\n }\n pageVisited(category, name) {\n if (this.telemetryHandler) {\n this.telemetryHandler.pageVisited(this.userId, this.userRoles, category, name);\n }\n }\n upsertDraft = async (draft, connectionId) => {\n const result = await this.doFetch(`${this.getDraftsRoute()}`, {\n method: 'post',\n body: JSON.stringify(draft),\n headers: {\n 'Connection-Id': `${connectionId}`,\n },\n });\n return result;\n };\n getUserDrafts = (teamId) => {\n return this.doFetch(`${this.getUserRoute('me')}/teams/${teamId}/drafts`, { method: 'get' });\n };\n deleteDraft = (channelId, rootId = '', connectionId) => {\n let endpoint = `${this.getUserRoute('me')}/channels/${channelId}/drafts`;\n if (rootId !== '') {\n endpoint += `/${rootId}`;\n }\n return this.doFetch(endpoint, {\n method: 'delete',\n headers: {\n 'Connection-Id': `${connectionId}`,\n },\n });\n };\n getIPFilters = () => {\n return this.doFetch(`${this.getBaseRoute()}/ip_filtering`, { method: 'get' });\n };\n getCurrentIP = () => {\n return this.doFetch(`${this.getBaseRoute()}/ip_filtering/my_ip`, { method: 'get' });\n };\n applyIPFilters = (filters) => {\n return this.doFetch(`${this.getBaseRoute()}/ip_filtering`, { method: 'post', body: JSON.stringify(filters) });\n };\n getGroupMessageMembersCommonTeams = (channelId) => {\n return this.doFetchWithResponse(`${this.getChannelRoute(channelId)}/common_teams`, { method: 'get' });\n };\n convertGroupMessageToPrivateChannel = (channelId, teamId, displayName, name) => {\n const body = {\n channel_id: channelId,\n team_id: teamId,\n display_name: displayName,\n name,\n };\n return this.doFetchWithResponse(`${this.getChannelRoute(channelId)}/convert_to_channel?team_id=${teamId}`, { method: 'post', body: JSON.stringify(body) });\n };\n // Schedule Post methods\n createScheduledPost = (schedulePost, connectionId) => {\n this.trackFeatureEvent('scheduled_posts', 'create_scheduled_post', { actual_user_id: schedulePost.user_id, user_agent: 'desktop' });\n return this.doFetchWithResponse(`${this.getPostsRoute()}/schedule`, { method: 'post', body: JSON.stringify(schedulePost), headers: { 'Connection-Id': connectionId } });\n };\n // get user's current team's scheduled posts\n getScheduledPosts = (teamId, includeDirectChannels) => {\n return this.doFetchWithResponse(`${this.getPostsRoute()}/scheduled/team/${teamId}?includeDirectChannels=${includeDirectChannels}`, { method: 'get' });\n };\n updateScheduledPost = (schedulePost, connectionId) => {\n this.trackFeatureEvent('scheduled_posts', 'update_scheduled_post', { actual_user_id: schedulePost.user_id, user_agent: 'desktop' });\n return this.doFetchWithResponse(`${this.getPostsRoute()}/schedule/${schedulePost.id}`, { method: 'put', body: JSON.stringify(schedulePost), headers: { 'Connection-Id': connectionId } });\n };\n deleteScheduledPost = (userId, schedulePostId, connectionId) => {\n this.trackFeatureEvent('scheduled_posts', 'delete_scheduled_post', { actual_user_id: userId, user_agent: 'desktop' });\n return this.doFetchWithResponse(`${this.getPostsRoute()}/schedule/${schedulePostId}`, { method: 'delete', headers: { 'Connection-Id': connectionId } });\n };\n restorePostVersion = (postId, restoreVersionId, connectionId) => {\n return this.doFetchWithResponse(`${this.getPostRoute(postId)}/restore/${restoreVersionId}`, { method: 'post', headers: { 'Connection-Id': connectionId } });\n };\n}\nexports.default = Client4;\nfunction parseAndMergeNestedHeaders(originalHeaders) {\n const headers = new Map();\n let nestedHeaders = new Map();\n originalHeaders.forEach((val, key) => {\n const capitalizedKey = key.replace(/\\b[a-z]/g, (l) => l.toUpperCase());\n let realVal = val;\n if (val && val.match(/\\n\\S+:\\s\\S+/)) {\n const nestedHeaderStrings = val.split('\\n');\n realVal = nestedHeaderStrings.shift();\n const moreNestedHeaders = new Map(nestedHeaderStrings.map((h) => h.split(/:\\s/)));\n nestedHeaders = new Map([...nestedHeaders, ...moreNestedHeaders]);\n }\n headers.set(capitalizedKey, realVal);\n });\n return new Map([...headers, ...nestedHeaders]);\n}\nclass ClientError extends Error {\n url;\n server_error_id;\n status_code;\n constructor(baseUrl, data, cause) {\n super(data.message + ': ' + (0, errors_1.cleanUrlForLogging)(baseUrl, data.url || ''), { cause });\n this.message = data.message;\n this.url = data.url;\n this.server_error_id = data.server_error_id;\n this.status_code = data.status_code;\n // Ensure message is treated as a property of this class when object spreading. Without this,\n // copying the object by using `{...error}` would not include the message.\n Object.defineProperty(this, 'message', { enumerable: true });\n }\n}\nexports.ClientError = ClientError;\n","\"use strict\";\n// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.cleanUrlForLogging = cleanUrlForLogging;\n// Given a URL from an API request, return a URL that has any parts removed that are either sensitive or that would\n// prevent properly grouping the messages in Sentry.\nfunction cleanUrlForLogging(baseUrl, apiUrl) {\n let url = apiUrl;\n // Trim the host name\n url = url.substring(baseUrl.length);\n // Filter the query string\n const index = url.indexOf('?');\n if (index !== -1) {\n url = url.substring(0, index);\n }\n // A non-exhaustive whitelist to exclude parts of the URL that are unimportant (eg IDs) or may be sentsitive\n // (eg email addresses). We prefer filtering out fields that aren't recognized because there should generally\n // be enough left over for debugging.\n //\n // Note that new API routes don't need to be added here since this shouldn't be happening for newly added routes.\n const whitelist = [\n 'api', 'v4', 'users', 'teams', 'scheme', 'name', 'members', 'channels', 'posts', 'reactions', 'commands',\n 'files', 'preferences', 'hooks', 'incoming', 'outgoing', 'oauth', 'apps', 'emoji', 'brand', 'image',\n 'data_retention', 'jobs', 'plugins', 'roles', 'system', 'timezones', 'schemes', 'redirect_location', 'patch',\n 'mfa', 'password', 'reset', 'send', 'active', 'verify', 'terms_of_service', 'login', 'logout', 'ids',\n 'usernames', 'me', 'username', 'email', 'default', 'sessions', 'revoke', 'all', 'audits', 'device', 'status',\n 'search', 'switch', 'authorized', 'authorize', 'deauthorize', 'tokens', 'disable', 'enable', 'exists', 'unread',\n 'invite', 'batch', 'stats', 'import', 'schemeRoles', 'direct', 'group', 'convert', 'view', 'search_autocomplete',\n 'thread', 'info', 'flagged', 'pinned', 'pin', 'unpin', 'opengraph', 'actions', 'thumbnail', 'preview', 'link',\n 'delete', 'logs', 'ping', 'config', 'client', 'license', 'websocket', 'webrtc', 'token', 'regen_token',\n 'autocomplete', 'execute', 'regen_secret', 'policy', 'type', 'cancel', 'reload', 'environment', 's3_test', 'file',\n 'caches', 'invalidate', 'database', 'recycle', 'compliance', 'reports', 'cluster', 'ldap', 'test', 'sync', 'saml',\n 'certificate', 'public', 'private', 'idp', 'elasticsearch', 'purge_indexes', 'analytics', 'old', 'webapp', 'fake',\n ];\n url = url.split('/').map((part) => {\n if (part !== '' && whitelist.indexOf(part) === -1) {\n return '';\n }\n return part;\n }).join('/');\n if (index !== -1) {\n // Add this on afterwards since it wouldn't pass the whitelist\n url += '?';\n }\n return url;\n}\n","\"use strict\";\n// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.buildQueryString = buildQueryString;\nfunction buildQueryString(parameters) {\n const keys = Object.keys(parameters);\n if (keys.length === 0) {\n return '';\n }\n const queryParams = Object.entries(parameters).\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n filter(([_, value]) => value !== undefined).\n map(([key, value]) => `${key}=${encodeURIComponent(value)}`).\n join('&');\n return queryParams.length > 0 ? `?${queryParams}` : '';\n}\n","\"use strict\";\n// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WebSocketClient = exports.DEFAULT_LIMIT_BEFORE = exports.DEFAULT_LIMIT_AFTER = exports.ClientError = exports.Client4 = void 0;\nvar client4_1 = require(\"./client4\");\nObject.defineProperty(exports, \"Client4\", { enumerable: true, get: function () { return __importDefault(client4_1).default; } });\nObject.defineProperty(exports, \"ClientError\", { enumerable: true, get: function () { return client4_1.ClientError; } });\nObject.defineProperty(exports, \"DEFAULT_LIMIT_AFTER\", { enumerable: true, get: function () { return client4_1.DEFAULT_LIMIT_AFTER; } });\nObject.defineProperty(exports, \"DEFAULT_LIMIT_BEFORE\", { enumerable: true, get: function () { return client4_1.DEFAULT_LIMIT_BEFORE; } });\nvar websocket_1 = require(\"./websocket\");\nObject.defineProperty(exports, \"WebSocketClient\", { enumerable: true, get: function () { return __importDefault(websocket_1).default; } });\n","\"use strict\";\n// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst MAX_WEBSOCKET_FAILS = 7;\nconst MIN_WEBSOCKET_RETRY_TIME = 3000; // 3 sec\nconst MAX_WEBSOCKET_RETRY_TIME = 300000; // 5 mins\nconst JITTER_RANGE = 2000; // 2 sec\nconst WEBSOCKET_HELLO = 'hello';\nclass WebSocketClient {\n conn;\n connectionUrl;\n // responseSequence is the number to track a response sent\n // via the websocket. A response will always have the same sequence number\n // as the request.\n responseSequence;\n // serverSequence is the incrementing sequence number from the\n // server-sent event stream.\n serverSequence;\n connectFailCount;\n responseCallbacks;\n /**\n * @deprecated Use messageListeners instead\n */\n eventCallback = null;\n /**\n * @deprecated Use firstConnectListeners instead\n */\n firstConnectCallback = null;\n /**\n * @deprecated Use reconnectListeners instead\n */\n reconnectCallback = null;\n /**\n * @deprecated Use missedMessageListeners instead\n */\n missedEventCallback = null;\n /**\n * @deprecated Use errorListeners instead\n */\n errorCallback = null;\n /**\n * @deprecated Use closeListeners instead\n */\n closeCallback = null;\n messageListeners = new Set();\n firstConnectListeners = new Set();\n reconnectListeners = new Set();\n missedMessageListeners = new Set();\n errorListeners = new Set();\n closeListeners = new Set();\n connectionId;\n serverHostname;\n postedAck;\n constructor() {\n this.conn = null;\n this.connectionUrl = null;\n this.responseSequence = 1;\n this.serverSequence = 0;\n this.connectFailCount = 0;\n this.responseCallbacks = {};\n this.connectionId = '';\n this.serverHostname = '';\n this.postedAck = false;\n }\n // on connect, only send auth cookie and blank state.\n // on hello, get the connectionID and store it.\n // on reconnect, send cookie, connectionID, sequence number.\n initialize(connectionUrl = this.connectionUrl, token, postedAck) {\n if (this.conn) {\n return;\n }\n if (connectionUrl == null) {\n console.log('websocket must have connection url'); //eslint-disable-line no-console\n return;\n }\n if (this.connectFailCount === 0) {\n console.log('websocket connecting to ' + connectionUrl); //eslint-disable-line no-console\n }\n if (typeof postedAck != 'undefined') {\n this.postedAck = postedAck;\n }\n // Add connection id, and last_sequence_number to the query param.\n // We cannot use a cookie because it will bleed across tabs.\n // We cannot also send it as part of the auth_challenge, because the session cookie is already sent with the request.\n this.conn = new WebSocket(`${connectionUrl}?connection_id=${this.connectionId}&sequence_number=${this.serverSequence}${this.postedAck ? '&posted_ack=true' : ''}`);\n this.connectionUrl = connectionUrl;\n this.conn.onopen = () => {\n if (token) {\n this.sendMessage('authentication_challenge', { token });\n }\n if (this.connectFailCount > 0) {\n console.log('websocket re-established connection'); //eslint-disable-line no-console\n this.reconnectCallback?.();\n this.reconnectListeners.forEach((listener) => listener());\n }\n else if (this.firstConnectCallback || this.firstConnectListeners.size > 0) {\n this.firstConnectCallback?.();\n this.firstConnectListeners.forEach((listener) => listener());\n }\n this.connectFailCount = 0;\n };\n this.conn.onclose = () => {\n this.conn = null;\n this.responseSequence = 1;\n if (this.connectFailCount === 0) {\n console.log('websocket closed'); //eslint-disable-line no-console\n }\n this.connectFailCount++;\n this.closeCallback?.(this.connectFailCount);\n this.closeListeners.forEach((listener) => listener(this.connectFailCount));\n let retryTime = MIN_WEBSOCKET_RETRY_TIME;\n // If we've failed a bunch of connections then start backing off\n if (this.connectFailCount > MAX_WEBSOCKET_FAILS) {\n retryTime = MIN_WEBSOCKET_RETRY_TIME * this.connectFailCount * this.connectFailCount;\n if (retryTime > MAX_WEBSOCKET_RETRY_TIME) {\n retryTime = MAX_WEBSOCKET_RETRY_TIME;\n }\n }\n // Applying jitter to avoid thundering herd problems.\n retryTime += Math.random() * JITTER_RANGE;\n setTimeout(() => {\n this.initialize(connectionUrl, token, postedAck);\n }, retryTime);\n };\n this.conn.onerror = (evt) => {\n if (this.connectFailCount <= 1) {\n console.log('websocket error'); //eslint-disable-line no-console\n console.log(evt); //eslint-disable-line no-console\n }\n this.errorCallback?.(evt);\n this.errorListeners.forEach((listener) => listener(evt));\n };\n this.conn.onmessage = (evt) => {\n const msg = JSON.parse(evt.data);\n if (msg.seq_reply) {\n // This indicates a reply to a websocket request.\n // We ignore sequence number validation of message responses\n // and only focus on the purely server side event stream.\n if (msg.error) {\n console.log(msg); //eslint-disable-line no-console\n }\n if (this.responseCallbacks[msg.seq_reply]) {\n this.responseCallbacks[msg.seq_reply](msg);\n Reflect.deleteProperty(this.responseCallbacks, msg.seq_reply);\n }\n }\n else if (this.eventCallback || this.messageListeners.size > 0) {\n // We check the hello packet, which is always the first packet in a stream.\n if (msg.event === WEBSOCKET_HELLO && (this.missedEventCallback || this.missedMessageListeners.size > 0)) {\n console.log('got connection id ', msg.data.connection_id); //eslint-disable-line no-console\n // If we already have a connectionId present, and server sends a different one,\n // that means it's either a long timeout, or server restart, or sequence number is not found.\n // Then we do the sync calls, and reset sequence number to 0.\n if (this.connectionId !== '' && this.connectionId !== msg.data.connection_id) {\n console.log('long timeout, or server restart, or sequence number is not found.'); //eslint-disable-line no-console\n this.missedEventCallback?.();\n for (const listener of this.missedMessageListeners) {\n try {\n listener();\n }\n catch (e) {\n console.log(`missed message listener \"${listener.name}\" failed: ${e}`); // eslint-disable-line no-console\n }\n }\n this.serverSequence = 0;\n }\n // If it's a fresh connection, we have to set the connectionId regardless.\n // And if it's an existing connection, setting it again is harmless, and keeps the code simple.\n this.connectionId = msg.data.connection_id;\n // Also update the server hostname\n this.serverHostname = msg.data.server_hostname;\n }\n // Now we check for sequence number, and if it does not match,\n // we just disconnect and reconnect.\n if (msg.seq !== this.serverSequence) {\n console.log('missed websocket event, act_seq=' + msg.seq + ' exp_seq=' + this.serverSequence); //eslint-disable-line no-console\n // We are not calling this.close() because we need to auto-restart.\n this.connectFailCount = 0;\n this.responseSequence = 1;\n this.conn?.close(); // Will auto-reconnect after MIN_WEBSOCKET_RETRY_TIME.\n return;\n }\n this.serverSequence = msg.seq + 1;\n this.eventCallback?.(msg);\n this.messageListeners.forEach((listener) => listener(msg));\n }\n };\n }\n /**\n * @deprecated Use addMessageListener instead\n */\n setEventCallback(callback) {\n this.eventCallback = callback;\n }\n addMessageListener(listener) {\n this.messageListeners.add(listener);\n if (this.messageListeners.size > 5) {\n // eslint-disable-next-line no-console\n console.warn(`WebSocketClient has ${this.messageListeners.size} message listeners registered`);\n }\n }\n removeMessageListener(listener) {\n this.messageListeners.delete(listener);\n }\n /**\n * @deprecated Use addFirstConnectListener instead\n */\n setFirstConnectCallback(callback) {\n this.firstConnectCallback = callback;\n }\n addFirstConnectListener(listener) {\n this.firstConnectListeners.add(listener);\n if (this.firstConnectListeners.size > 5) {\n // eslint-disable-next-line no-console\n console.warn(`WebSocketClient has ${this.firstConnectListeners.size} first connect listeners registered`);\n }\n }\n removeFirstConnectListener(listener) {\n this.firstConnectListeners.delete(listener);\n }\n /**\n * @deprecated Use addReconnectListener instead\n */\n setReconnectCallback(callback) {\n this.reconnectCallback = callback;\n }\n addReconnectListener(listener) {\n this.reconnectListeners.add(listener);\n if (this.reconnectListeners.size > 5) {\n // eslint-disable-next-line no-console\n console.warn(`WebSocketClient has ${this.reconnectListeners.size} reconnect listeners registered`);\n }\n }\n removeReconnectListener(listener) {\n this.reconnectListeners.delete(listener);\n }\n /**\n * @deprecated Use addMissedMessageListener instead\n */\n setMissedEventCallback(callback) {\n this.missedEventCallback = callback;\n }\n addMissedMessageListener(listener) {\n this.missedMessageListeners.add(listener);\n if (this.missedMessageListeners.size > 5) {\n // eslint-disable-next-line no-console\n console.warn(`WebSocketClient has ${this.missedMessageListeners.size} missed message listeners registered`);\n }\n }\n removeMissedMessageListener(listener) {\n this.missedMessageListeners.delete(listener);\n }\n /**\n * @deprecated Use addErrorListener instead\n */\n setErrorCallback(callback) {\n this.errorCallback = callback;\n }\n addErrorListener(listener) {\n this.errorListeners.add(listener);\n if (this.errorListeners.size > 5) {\n // eslint-disable-next-line no-console\n console.warn(`WebSocketClient has ${this.errorListeners.size} error listeners registered`);\n }\n }\n removeErrorListener(listener) {\n this.errorListeners.delete(listener);\n }\n /**\n * @deprecated Use addCloseListener instead\n */\n setCloseCallback(callback) {\n this.closeCallback = callback;\n }\n addCloseListener(listener) {\n this.closeListeners.add(listener);\n if (this.closeListeners.size > 5) {\n // eslint-disable-next-line no-console\n console.warn(`WebSocketClient has ${this.closeListeners.size} close listeners registered`);\n }\n }\n removeCloseListener(listener) {\n this.closeListeners.delete(listener);\n }\n close() {\n this.connectFailCount = 0;\n this.responseSequence = 1;\n if (this.conn && this.conn.readyState === WebSocket.OPEN) {\n this.conn.onclose = () => { };\n this.conn.close();\n this.conn = null;\n console.log('websocket closed'); //eslint-disable-line no-console\n }\n }\n sendMessage(action, data, responseCallback) {\n const msg = {\n action,\n seq: this.responseSequence++,\n data,\n };\n if (responseCallback) {\n this.responseCallbacks[msg.seq] = responseCallback;\n }\n if (this.conn && this.conn.readyState === WebSocket.OPEN) {\n this.conn.send(JSON.stringify(msg));\n }\n else if (!this.conn || this.conn.readyState === WebSocket.CLOSED) {\n this.conn = null;\n this.initialize();\n }\n }\n userTyping(channelId, parentId, callback) {\n const data = {\n channel_id: channelId,\n parent_id: parentId,\n };\n this.sendMessage('user_typing', data, callback);\n }\n updateActiveChannel(channelId, callback) {\n const data = {\n channel_id: channelId,\n };\n this.sendMessage('presence', data, callback);\n }\n updateActiveTeam(teamId, callback) {\n const data = {\n team_id: teamId,\n };\n this.sendMessage('presence', data, callback);\n }\n updateActiveThread(isThreadView, channelId, callback) {\n const data = {\n thread_channel_id: channelId,\n is_thread_view: isThreadView,\n };\n this.sendMessage('presence', data, callback);\n }\n userUpdateActiveStatus(userIsActive, manual, callback) {\n const data = {\n user_is_active: userIsActive,\n manual,\n };\n this.sendMessage('user_update_active_status', data, callback);\n }\n acknowledgePostedNotification(postId, status, reason, postedData) {\n const data = {\n post_id: postId,\n user_agent: window.navigator.userAgent,\n status,\n reason,\n data: postedData,\n };\n this.sendMessage('posted_notify_ack', data);\n }\n getStatuses(callback) {\n this.sendMessage('get_statuses', null, callback);\n }\n getStatusesByIds(userIds, callback) {\n const data = {\n user_ids: userIds,\n };\n this.sendMessage('get_statuses_by_ids', data, callback);\n }\n}\nexports.default = WebSocketClient;\n","\"use strict\";\n// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isStatusOK = exports.LogLevel = void 0;\nvar LogLevel;\n(function (LogLevel) {\n LogLevel[\"Error\"] = \"ERROR\";\n LogLevel[\"Warning\"] = \"WARNING\";\n LogLevel[\"Info\"] = \"INFO\";\n LogLevel[\"Debug\"] = \"DEBUG\";\n})(LogLevel || (exports.LogLevel = LogLevel = {}));\nconst isStatusOK = (x) => (x === null || x === void 0 ? void 0 : x.status) === 'OK';\nexports.isStatusOK = isStatusOK;\n"],"names":["descriptor","$","uncurryThis","getOwnPropertyDescriptor","toLength","toString","notARegExp","requireObjectCoercible","correctIsRegExpLogic","IS_PURE","nativeEndsWith","endsWith","slice","min","Math","CORRECT_IS_REGEXP_LOGIC","target","proto","forced","String","prototype","writable","searchString","that","this","endPosition","arguments","length","undefined","len","end","search","_excluded","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","i","Symbol","toPrimitive","call","TypeError","_toPrimitive","_toPropertyKey","value","configurable","require","exports","ClientError","DEFAULT_LIMIT_AFTER","DEFAULT_LIMIT_BEFORE","HEADER_X_VERSION_ID","HEADER_X_CLUSTER_ID","parseAndMergeNestedHeaders","client4_1","errors_1","helpers_1","HEADER_CONTENT_TYPE","HEADER_REQUESTED_WITH","PER_PAGE_DEFAULT","originalHeaders","headers","Map","nestedHeaders","val","key","capitalizedKey","replace","l","toUpperCase","realVal","match","nestedHeaderStrings","split","shift","moreNestedHeaders","map","h","set","constructor","_this","connectionError","unknownError","user","token","inviteId","redirect","queryParams","iid","doFetch","concat","getUsersRoute","buildQueryString","method","body","JSON","stringify","userPatch","getUserRoute","id","userId","roles","activate","code","currentPassword","newPassword","current_password","new_password","email","active","imageData","formData","FormData","append","request","termsOfServiceId","accepted","getBaseRoute","text","async","loginId","password","login_id","deviceId","ldap_only","data","profile","doFetchWithResponse","has","setToken","get","device_id","response","ok","serverVersion","page","perPage","options","per_page","userIds","usernames","teamId","sort","in_team","groupConstrained","queryStringObj","not_in_team","group_constrained","without_team","channelId","in_channel","channelsIds","not_in_channel","groupId","in_group","not_in_group","username","lastPictureUpdate","params","_","name","limit","sessionId","session_id","queryString","getReportsRoute","term","status","user_id","customStatus","postId","url","getPostRoute","channel_id","service","mfaCode","current_service","new_service","mfa_code","currentService","emailPassword","ldapId","ldapPassword","ldap_id","responseType","clientId","redirectUri","state","scope","client_id","response_type","redirect_uri","description","tokenId","token_id","getServerLimitsRoute","team","getTeamsRoute","getTeamRoute","schemeId","patch","scheme_id","getTeamSchemeRoute","teamName","getTeamNameRoute","includeTotalCount","excludePolicyConstrained","include_total_count","exclude_policy_constrained","includeCollapsedThreads","include_collapsed_threads","getTeamMembersRoute","getTeamMemberRoute","member","team_id","query","invite_id","members","emails","channelIds","message","trackEvent","channel_ids","channels","lastTeamIconUpdate","isSchemeUser","isSchemeAdmin","scheme_user","scheme_admin","channel","getChannelsRoute","getChannelRoute","privacy","channelPatch","props","getChannelMemberRoute","getChannelSchemeRoute","channelName","includeDeleted","include_deleted","getChannelMembersRoute","user_ids","post_root_id","param","channelModerationsPatch","includeTimezones","collapsed_threads_supported","bookmarksSince","getChannelBookmarksRoute","bookmarks_since","channelBookmark","connectionId","channelBookmarkId","getChannelBookmarkRoute","newOrder","getChannelCategoriesRoute","category","categories","categoryOrder","categoryId","getRemoteClustersRoute","exclude_plugins","excludePlugins","remoteId","getRemoteClusterRoute","remoteCluster","remoteClusterAcceptInvite","filters","getCustomProfileAttributeFieldsRoute","fieldId","getCustomProfileAttributeFieldRoute","attributeValues","getCustomProfileAttributeValuesRoute","userID","_post$metadata","result","getPostsRoute","post","analyticsData","post_id","user_actual_id","root_id","metadata","priority","requested_ack","persistent_notifications","postPatch","fetchThreads","collapsedThreads","collapsedThreadsExtended","getPaginatedPostThread","direction","fetchAll","rest","n","hasOwnProperty","includes","_objectWithoutPropertiesLoose","s","propertyIsEnumerable","_objectWithoutProperties","skipFetchThreads","limitAfter","limitBefore","limit_after","limit_before","since","before","after","extended","deleted","unread","totalsOnly","threadsOnly","getUserThreadsRoute","threadId","getUserThreadRoute","timestamp","target_time","postIds","emojiName","getReactionsRoute","emoji_name","route","terms","isOrSearch","searchPostsWithParams","is_or_search","getFilesRoute","searchFilesWithParams","actionId","selectedOption","doPostActionWithCookie","actionCookie","msg","selected_option","cookie","encodeURIComponent","fileFormData","isBookmark","bookmark","fileId","getFileRoute","preferences","getPreferencesRoute","getServerStatus","get_server_status","use_rest_semantics","level","LogLevel","Error","enableLogging","getUrl","getPluginsRoute","first_admin_visit_marketplace_status","getSystemRoute","hook","getIncomingHooksRoute","hookId","getIncomingHookRoute","getOutgoingHooksRoute","getOutgoingHookRoute","getCommandsRoute","userInput","commandArgs","user_input","command","app","getOAuthAppsRoute","getAppsProxyRoute","appId","getOAuthAppRoute","getOutgoingOAuthConnectionsRoute","audience","getOutgoingOAuthConnectionRoute","connection","emoji","getEmojisRoute","names","emojiId","getEmojiRoute","filename","extension","getDataRetentionRoute","policyId","opts","policy","teams","getJobsRoute","type","job","logFilter","logs_per_page","config","siteURL","site_url","reportId","getBrandRoute","encodeURI","fileData","indexes","join","roleId","getRolesRoute","roleName","rolesNames","rolePatch","getSchemesRoute","scheme","schemePatch","force","pluginDownloadUrl","plugin_download_url","getPluginsMarketplaceRoute","remote_only","localOnly","local_only","pluginId","getPluginRoute","groupID","syncableID","syncableType","getGroupRoute","includeMemberCount","include_member_count","getGroupsRoute","teamID","q","source","not_associated_to_team","group_source","channelID","not_associated_to_channel","filter_parent_team_permitted","group","trackAsSubmit","callCopy","context","track_as_submit","user_agent","filterAllowReference","filter_allow_reference","paginate","bot","getBotsRoute","botUserId","botPatch","getBotRoute","only_orphaned","newOwnerId","includeLegacyProducts","getCloudRoute","newletterRequestBody","getHostedCustomerRoute","customerPatch","address","req","invoiceId","getUsageRoute","groupIDs","samlMetadataURL","saml_metadata_url","certData","client","clientVersion","getNoticesRoute","noticeIds","subsectionPermissions","getPermissionsRoute","completeOnboardingRequest","fetch","getOptions","json","err","clusterId","ignoreStatus","logToConsole","console","error","server_error_id","status_code","draft","getDraftsRoute","rootId","endpoint","displayName","display_name","schedulePost","trackFeatureEvent","actual_user_id","includeDirectChannels","schedulePostId","restoreVersionId","getAbsoluteUrl","baseUrl","startsWith","setUrl","setUserAgent","userAgent","getToken","setCSRF","csrfToken","csrf","setAcceptLanguage","locale","defaultHeaders","setHeader","header","removeHeader","setEnableLogging","enable","setIncludeCookies","include","includeCookies","setUserId","setUserRoles","userRoles","setDiagnosticId","diagnosticId","setTelemetryHandler","telemetryHandler","getServerVersion","getUrlVersion","urlVersion","bookmarkId","propertyFieldId","getOAuthRoute","getBrandImageUrl","getLimitsRoute","getClientMetricsRoute","getCSRFFromCookie","document","cookies","trim","newOptions","setAuthHeader","toLowerCase","credentials","assign","searchTeams","getAllChannels","queryData","not_associated_to_group","exclude_default_channels","searchAllChannels","Boolean","nonAdminSearch","exclude_remote","system_console","signal","getFileUrl","getFileThumbnailUrl","getFilePreviewUrl","event","featureName","pageVisited","cause","super","cleanUrlForLogging","apiUrl","substring","index","indexOf","whitelist","part","parameters","entries","_ref","_ref2","__importDefault","mod","__esModule","WebSocketClient","Client4","default","websocket_1","MAX_WEBSOCKET_RETRY_TIME","Set","conn","connectionUrl","responseSequence","serverSequence","connectFailCount","responseCallbacks","serverHostname","postedAck","initialize","log","WebSocket","onopen","_this$reconnectCallba","sendMessage","reconnectCallback","reconnectListeners","listener","firstConnectCallback","firstConnectListeners","size","_this$firstConnectCal","onclose","_this$closeCallback","closeCallback","closeListeners","retryTime","random","setTimeout","onerror","evt","_this$errorCallback","errorCallback","errorListeners","onmessage","parse","seq_reply","Reflect","deleteProperty","eventCallback","messageListeners","_this$eventCallback","_this$conn","missedEventCallback","missedMessageListeners","connection_id","_this$missedEventCall","server_hostname","seq","close","setEventCallback","callback","addMessageListener","add","warn","removeMessageListener","delete","setFirstConnectCallback","addFirstConnectListener","removeFirstConnectListener","setReconnectCallback","addReconnectListener","removeReconnectListener","setMissedEventCallback","addMissedMessageListener","removeMissedMessageListener","setErrorCallback","addErrorListener","removeErrorListener","setCloseCallback","addCloseListener","removeCloseListener","readyState","OPEN","action","responseCallback","send","CLOSED","userTyping","parentId","parent_id","updateActiveChannel","updateActiveTeam","updateActiveThread","isThreadView","thread_channel_id","is_thread_view","userUpdateActiveStatus","userIsActive","manual","user_is_active","acknowledgePostedNotification","reason","postedData","window","navigator","getStatuses","getStatusesByIds","isStatusOK","x"],"sourceRoot":""}