@ughuuu/gamend 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +862 -0
- package/dist/ApiClient.js +703 -0
- package/dist/api/AchievementsApi.js +224 -0
- package/dist/api/AdminAchievementsApi.js +356 -0
- package/dist/api/AdminAnalyticsApi.js +237 -0
- package/dist/api/AdminChatApi.js +770 -0
- package/dist/api/AdminEconomyApi.js +327 -0
- package/dist/api/AdminGroupsApi.js +193 -0
- package/dist/api/AdminKVApi.js +305 -0
- package/dist/api/AdminLeaderboardsApi.js +490 -0
- package/dist/api/AdminLobbiesApi.js +190 -0
- package/dist/api/AdminMatchmakingApi.js +165 -0
- package/dist/api/AdminNotificationsApi.js +179 -0
- package/dist/api/AdminPushApi.js +179 -0
- package/dist/api/AdminQuestsApi.js +512 -0
- package/dist/api/AdminReadyChecksApi.js +169 -0
- package/dist/api/AdminRetentionApi.js +110 -0
- package/dist/api/AdminSessionsApi.js +165 -0
- package/dist/api/AdminStorageApi.js +212 -0
- package/dist/api/AdminTournamentsApi.js +468 -0
- package/dist/api/AdminUsersApi.js +130 -0
- package/dist/api/AuthenticationApi.js +556 -0
- package/dist/api/ChatApi.js +779 -0
- package/dist/api/ClientLogsApi.js +119 -0
- package/dist/api/EconomyApi.js +153 -0
- package/dist/api/FriendsApi.js +528 -0
- package/dist/api/GroupsApi.js +1105 -0
- package/dist/api/HealthApi.js +78 -0
- package/dist/api/HooksApi.js +114 -0
- package/dist/api/KVApi.js +95 -0
- package/dist/api/LeaderboardsApi.js +342 -0
- package/dist/api/LobbiesApi.js +495 -0
- package/dist/api/MatchmakingApi.js +187 -0
- package/dist/api/NotificationsApi.js +169 -0
- package/dist/api/PartiesApi.js +605 -0
- package/dist/api/PaymentsApi.js +377 -0
- package/dist/api/PushApi.js +166 -0
- package/dist/api/QuestsApi.js +270 -0
- package/dist/api/ReadyChecksApi.js +258 -0
- package/dist/api/SignalingApi.js +78 -0
- package/dist/api/StatsApi.js +78 -0
- package/dist/api/TimeApi.js +78 -0
- package/dist/api/TournamentsApi.js +394 -0
- package/dist/api/UsersApi.js +423 -0
- package/dist/gamend_proto.js +444 -0
- package/dist/gamend_realtime.pb.js +3145 -0
- package/dist/index.js +2090 -0
- package/dist/model/AcceptPartyInvite200Response.js +168 -0
- package/dist/model/AcceptPartyInvite200ResponseMembersInner.js +150 -0
- package/dist/model/AcceptPartyInviteRequest.js +113 -0
- package/dist/model/AdminCancelMatchmakingTicket200Response.js +91 -0
- package/dist/model/AdminCancelReadyCheck200Response.js +91 -0
- package/dist/model/AdminCancelReadyCheck200ResponseData.js +223 -0
- package/dist/model/AdminConsumeItem400Response.js +89 -0
- package/dist/model/AdminCreateAchievementRequest.js +182 -0
- package/dist/model/AdminCreateChatFilterWordRequest.js +194 -0
- package/dist/model/AdminCreateChatMute200Response.js +91 -0
- package/dist/model/AdminCreateChatMuteRequest.js +189 -0
- package/dist/model/AdminCreateKvEntry200Response.js +91 -0
- package/dist/model/AdminCreateKvEntryRequest.js +146 -0
- package/dist/model/AdminCreateLeaderboard200Response.js +91 -0
- package/dist/model/AdminCreateLeaderboard200ResponseData.js +248 -0
- package/dist/model/AdminCreateLeaderboardRequest.js +244 -0
- package/dist/model/AdminCreateNotification400Response.js +89 -0
- package/dist/model/AdminCreateNotificationRequest.js +165 -0
- package/dist/model/AdminCreateQuestRequest.js +350 -0
- package/dist/model/AdminCreateQuestRequestObjectivesInner.js +128 -0
- package/dist/model/AdminCreateQuestRequestRewardsInner.js +152 -0
- package/dist/model/AdminDeleteChatConversation200Response.js +91 -0
- package/dist/model/AdminDeleteChatConversation200ResponseData.js +85 -0
- package/dist/model/AdminDeleteChatFilterWordsByLang200Response.js +93 -0
- package/dist/model/AdminDrawTournament200Response.js +91 -0
- package/dist/model/AdminDrawTournament200ResponseData.js +310 -0
- package/dist/model/AdminEndLeaderboard200Response.js +91 -0
- package/dist/model/AdminEndLeaderboard200ResponseData.js +231 -0
- package/dist/model/AdminGetAnalyticsCounts200Response.js +143 -0
- package/dist/model/AdminGetAnalyticsCounts200ResponseTotalsInner.js +97 -0
- package/dist/model/AdminGetAnalyticsDaily200Response.js +119 -0
- package/dist/model/AdminGetAnalyticsDaily200ResponseSeriesInner.js +128 -0
- package/dist/model/AdminGetAnalyticsEconomy200Response.js +150 -0
- package/dist/model/AdminGetAnalyticsEconomy200ResponseFlowInner.js +133 -0
- package/dist/model/AdminGetAnalyticsEconomy200ResponseTotalsInner.js +133 -0
- package/dist/model/AdminGetAnalyticsSummary200Response.js +179 -0
- package/dist/model/AdminGrantAchievementRequest.js +126 -0
- package/dist/model/AdminGrantItemRequest.js +136 -0
- package/dist/model/AdminImportChatFilterWords200Response.js +93 -0
- package/dist/model/AdminImportChatFilterWordsRequest.js +150 -0
- package/dist/model/AdminIncrementAchievementRequest.js +134 -0
- package/dist/model/AdminListAchievements200Response.js +118 -0
- package/dist/model/AdminListAchievements200ResponseDataInner.js +185 -0
- package/dist/model/AdminListChatFilterWords200Response.js +136 -0
- package/dist/model/AdminListChatMessages200Response.js +124 -0
- package/dist/model/AdminListChatMessages200ResponseDataInner.js +213 -0
- package/dist/model/AdminListChatMutes200Response.js +124 -0
- package/dist/model/AdminListChatMutes200ResponseDataInner.js +226 -0
- package/dist/model/AdminListChatReports200Response.js +124 -0
- package/dist/model/AdminListGroups200Response.js +124 -0
- package/dist/model/AdminListKvEntries200Response.js +124 -0
- package/dist/model/AdminListKvEntries200ResponseDataInner.js +147 -0
- package/dist/model/AdminListLobbies200Response.js +124 -0
- package/dist/model/AdminListLobbies200ResponseDataInner.js +191 -0
- package/dist/model/AdminListMatchmakingTickets200Response.js +124 -0
- package/dist/model/AdminListMatchmakingTickets200ResponseDataInner.js +196 -0
- package/dist/model/AdminListNotifications200Response.js +124 -0
- package/dist/model/AdminListNotifications200ResponseDataInner.js +173 -0
- package/dist/model/AdminListNotifications200ResponseMeta.js +125 -0
- package/dist/model/AdminListPushTokens200Response.js +118 -0
- package/dist/model/AdminListPushTokens200ResponseDataInner.js +226 -0
- package/dist/model/AdminListQuestProgress200Response.js +118 -0
- package/dist/model/AdminListQuestProgress200ResponseDataInner.js +208 -0
- package/dist/model/AdminListQuests200Response.js +118 -0
- package/dist/model/AdminListQuests200ResponseDataInner.js +339 -0
- package/dist/model/AdminListReadyChecks200Response.js +124 -0
- package/dist/model/AdminListSessions200Response.js +124 -0
- package/dist/model/AdminListSessions200ResponseDataInner.js +141 -0
- package/dist/model/AdminListStorageObjects200Response.js +132 -0
- package/dist/model/AdminListStorageObjects200ResponseDataInner.js +105 -0
- package/dist/model/AdminListStorageObjects200ResponseUsage.js +93 -0
- package/dist/model/AdminMatchmakingStats200Response.js +91 -0
- package/dist/model/AdminMatchmakingStats200ResponseData.js +113 -0
- package/dist/model/AdminResetQuestRequest.js +127 -0
- package/dist/model/AdminResolveChatReport200Response.js +91 -0
- package/dist/model/AdminResolveChatReport200ResponseData.js +274 -0
- package/dist/model/AdminResolveChatReportRequest.js +153 -0
- package/dist/model/AdminResolveTournamentMatchRequest.js +90 -0
- package/dist/model/AdminRevokeAchievementRequest.js +126 -0
- package/dist/model/AdminRunRetention200Response.js +104 -0
- package/dist/model/AdminSendPushRequest.js +190 -0
- package/dist/model/AdminSetQuestIconRequest.js +112 -0
- package/dist/model/AdminSpendCurrencyRequest.js +160 -0
- package/dist/model/AdminSubmitLeaderboardScore200Response.js +91 -0
- package/dist/model/AdminSubmitLeaderboardScore200ResponseData.js +141 -0
- package/dist/model/AdminSubmitLeaderboardScoreRequest.js +142 -0
- package/dist/model/AdminTestChatPhrase200Response.js +91 -0
- package/dist/model/AdminTestChatPhrase200ResponseData.js +187 -0
- package/dist/model/AdminTestChatPhrase200ResponseDataHitsInner.js +113 -0
- package/dist/model/AdminTestChatPhraseRequest.js +112 -0
- package/dist/model/AdminTournamentIconUploadUrlRequest.js +112 -0
- package/dist/model/AdminUpdateAchievementRequest.js +145 -0
- package/dist/model/AdminUpdateChatFilterWord200Response.js +91 -0
- package/dist/model/AdminUpdateChatFilterWord200ResponseData.js +195 -0
- package/dist/model/AdminUpdateChatFilterWordRequest.js +166 -0
- package/dist/model/AdminUpdateGroup200Response.js +199 -0
- package/dist/model/AdminUpdateGroupRequest.js +138 -0
- package/dist/model/AdminUpdateKvEntryRequest.js +129 -0
- package/dist/model/AdminUpdateLeaderboardRecord200Response.js +91 -0
- package/dist/model/AdminUpdateLeaderboardRecord200ResponseData.js +165 -0
- package/dist/model/AdminUpdateLeaderboardRecordRequest.js +93 -0
- package/dist/model/AdminUpdateLeaderboardRequest.js +137 -0
- package/dist/model/AdminUpdateLobby200Response.js +91 -0
- package/dist/model/AdminUpdateLobbyRequest.js +142 -0
- package/dist/model/AdminUpdateTournamentRequest.js +266 -0
- package/dist/model/AdminUpdateUser200Response.js +91 -0
- package/dist/model/AdminUpdateUser200ResponseData.js +193 -0
- package/dist/model/AdminUpdateUserRequest.js +113 -0
- package/dist/model/AdminUpsertKv200Response.js +91 -0
- package/dist/model/AdminUpsertKv200ResponseData.js +159 -0
- package/dist/model/AdminUpsertKvRequest.js +154 -0
- package/dist/model/ApproveJoinRequest200Response.js +205 -0
- package/dist/model/CallHook200Response.js +88 -0
- package/dist/model/CallHookRequest.js +140 -0
- package/dist/model/CancelGroupInvite200Response.js +89 -0
- package/dist/model/CancelJoinRequest200Response.js +181 -0
- package/dist/model/CancelPartyInviteRequest.js +113 -0
- package/dist/model/ChatUnreadCount200Response.js +91 -0
- package/dist/model/ChatUnreadCount200ResponseData.js +85 -0
- package/dist/model/ClaimQuest200Response.js +91 -0
- package/dist/model/ClaimQuest200ResponseData.js +124 -0
- package/dist/model/ClientLogBatch.js +148 -0
- package/dist/model/ClientLogEntry.js +217 -0
- package/dist/model/ClientLogPolicy.js +193 -0
- package/dist/model/ClientLogResult.js +146 -0
- package/dist/model/ClientLogSession.js +256 -0
- package/dist/model/CreateCurrentUserAvatarUploadUrlRequest.js +124 -0
- package/dist/model/CreateFriendRequestRequest.js +113 -0
- package/dist/model/CreateGroupRequest.js +203 -0
- package/dist/model/CreateLobby401Response.js +89 -0
- package/dist/model/CreateLobbyRequest.js +155 -0
- package/dist/model/CreatePartyRequest.js +98 -0
- package/dist/model/DeclineGroupInvite200Response.js +89 -0
- package/dist/model/DeclinePartyInviteRequest.js +113 -0
- package/dist/model/DeleteNotifications200Response.js +91 -0
- package/dist/model/DeleteNotifications200ResponseData.js +86 -0
- package/dist/model/DeleteNotificationsRequest.js +113 -0
- package/dist/model/DeletePushToken200Response.js +210 -0
- package/dist/model/DemoteGroupMemberRequest.js +113 -0
- package/dist/model/DeviceLoginRequest.js +113 -0
- package/dist/model/ErrorResponse.js +114 -0
- package/dist/model/GameServerWebApiV1TournamentControllerIndex200Response.js +110 -0
- package/dist/model/GameServerWebApiV1TournamentControllerIndex200ResponseDataInner.js +258 -0
- package/dist/model/GameServerWebApiV1TournamentControllerMyMatch200Response.js +173 -0
- package/dist/model/GetCurrentUser200Response.js +214 -0
- package/dist/model/GetCurrentUser200ResponseLinkedProviders.js +126 -0
- package/dist/model/GetCurrentUserInventory200Response.js +87 -0
- package/dist/model/GetKv200Response.js +93 -0
- package/dist/model/GetLobby200Response.js +133 -0
- package/dist/model/GetMyReadyCheck200Response.js +105 -0
- package/dist/model/GetMyReadyCheck200ResponseLobby.js +257 -0
- package/dist/model/GetMyReadyCheck200ResponseParty.js +257 -0
- package/dist/model/GetMyRecord200Response.js +91 -0
- package/dist/model/GetMyRecord200ResponseData.js +151 -0
- package/dist/model/GetServerTime200Response.js +86 -0
- package/dist/model/GetStats200Response.js +91 -0
- package/dist/model/GetStats200ResponseData.js +151 -0
- package/dist/model/HealthResponse.js +129 -0
- package/dist/model/InviteToGroup200Response.js +90 -0
- package/dist/model/InviteToGroupRequest.js +113 -0
- package/dist/model/InviteToPartyRequest.js +113 -0
- package/dist/model/JoinLobby200Response.js +89 -0
- package/dist/model/JoinLobbyRequest.js +90 -0
- package/dist/model/JoinPartyByCodeRequest.js +113 -0
- package/dist/model/KickGroupMemberRequest.js +113 -0
- package/dist/model/KickPartyMemberRequest.js +113 -0
- package/dist/model/KickUser200Response.js +89 -0
- package/dist/model/KickUserRequest.js +109 -0
- package/dist/model/LeaveLobby200Response.js +89 -0
- package/dist/model/LinkDeviceRequest.js +112 -0
- package/dist/model/ListAuthProviders200Response.js +122 -0
- package/dist/model/ListBlacklistedUsers200Response.js +118 -0
- package/dist/model/ListBlacklistedUsers200ResponseDataInner.js +113 -0
- package/dist/model/ListBlockedFriends200Response.js +124 -0
- package/dist/model/ListBlockedFriends200ResponseDataInner.js +103 -0
- package/dist/model/ListBlockedFriends200ResponseDataInnerRequester.js +113 -0
- package/dist/model/ListChatMessages200Response.js +118 -0
- package/dist/model/ListChatMessages200ResponseDataInner.js +208 -0
- package/dist/model/ListCurrentUserLedger200Response.js +118 -0
- package/dist/model/ListCurrentUserLedger200ResponseDataInner.js +145 -0
- package/dist/model/ListFriendRequests200Response.js +105 -0
- package/dist/model/ListFriendRequests200ResponseData.js +139 -0
- package/dist/model/ListFriendRequests200ResponseDataIncomingInner.js +140 -0
- package/dist/model/ListFriendRequests200ResponseDataIncomingInnerRequester.js +142 -0
- package/dist/model/ListFriendRequests200ResponseIncomingInner.js +140 -0
- package/dist/model/ListFriendRequests200ResponseIncomingInnerRequester.js +142 -0
- package/dist/model/ListFriendRequests200ResponseMeta.js +104 -0
- package/dist/model/ListFriends200Response.js +124 -0
- package/dist/model/ListFriends200ResponseDataInner.js +164 -0
- package/dist/model/ListFriends200ResponseMeta.js +125 -0
- package/dist/model/ListGroupInvitations200Response.js +124 -0
- package/dist/model/ListGroupInvitations200ResponseDataInner.js +183 -0
- package/dist/model/ListGroupMembers200Response.js +124 -0
- package/dist/model/ListGroupMembers200ResponseDataInner.js +180 -0
- package/dist/model/ListGroupMutes200Response.js +124 -0
- package/dist/model/ListGroupMutes200ResponseDataInner.js +193 -0
- package/dist/model/ListGroupMutes200ResponseMeta.js +109 -0
- package/dist/model/ListJoinRequests200Response.js +124 -0
- package/dist/model/ListLeaderboardRecords200Response.js +124 -0
- package/dist/model/ListLeaderboardRecords200ResponseDataInner.js +134 -0
- package/dist/model/ListLeaderboardRecords200ResponseMeta.js +125 -0
- package/dist/model/ListLeaderboards200Response.js +124 -0
- package/dist/model/ListLeaderboards200ResponseDataInner.js +247 -0
- package/dist/model/ListLobbies200Response.js +124 -0
- package/dist/model/ListLobbies200ResponseDataInner.js +192 -0
- package/dist/model/ListLobbies200ResponseInner.js +153 -0
- package/dist/model/ListLobbies200ResponseMeta.js +125 -0
- package/dist/model/ListMyGroups200Response.js +124 -0
- package/dist/model/ListMyGroups200ResponseDataInner.js +243 -0
- package/dist/model/ListNotifications200Response.js +124 -0
- package/dist/model/ListNotifications200ResponseDataInner.js +186 -0
- package/dist/model/ListPartyInvitations200ResponseInner.js +171 -0
- package/dist/model/ListPushTokens200Response.js +118 -0
- package/dist/model/ListRecordsAroundUser200Response.js +110 -0
- package/dist/model/ListSentInvitations200Response.js +124 -0
- package/dist/model/ListSentInvitations200ResponseDataInner.js +181 -0
- package/dist/model/ListTournaments200Response.js +110 -0
- package/dist/model/ListTournaments200ResponseDataInner.js +271 -0
- package/dist/model/LobbyStats200Response.js +91 -0
- package/dist/model/LobbyStats200ResponseData.js +104 -0
- package/dist/model/Login200Response.js +91 -0
- package/dist/model/Login200ResponseData.js +150 -0
- package/dist/model/Login200ResponseDataUser.js +97 -0
- package/dist/model/LoginRequest.js +128 -0
- package/dist/model/MarkChatReadRequest.js +169 -0
- package/dist/model/MatchmakingCancel200Response.js +85 -0
- package/dist/model/MatchmakingJoin201Response.js +91 -0
- package/dist/model/MatchmakingJoin201ResponseData.js +186 -0
- package/dist/model/MatchmakingJoinRequest.js +101 -0
- package/dist/model/MatchmakingMyTicket200Response.js +91 -0
- package/dist/model/MatchmakingMyTicket200ResponseData.js +186 -0
- package/dist/model/MatchmakingStats200Response.js +91 -0
- package/dist/model/MatchmakingStats200ResponseData.js +118 -0
- package/dist/model/MatchmakingStats200ResponseDataQueuesInner.js +93 -0
- package/dist/model/MuteGroupMemberRequest.js +135 -0
- package/dist/model/MyAchievements200Response.js +124 -0
- package/dist/model/MyAchievements200ResponseDataInner.js +196 -0
- package/dist/model/OAuthSessionData.js +153 -0
- package/dist/model/OAuthSessionDataDetails.js +128 -0
- package/dist/model/OAuthSessionStatus.js +173 -0
- package/dist/model/OauthApiCallback200Response.js +91 -0
- package/dist/model/OauthApiCallbackRequest.js +90 -0
- package/dist/model/OauthCallbackApiAppleIosRequest.js +113 -0
- package/dist/model/OauthGoogleIdTokenRequest.js +113 -0
- package/dist/model/OauthRequest200Response.js +103 -0
- package/dist/model/OauthSessionStatus404Response.js +126 -0
- package/dist/model/OpenLobbyReadyCheck201Response.js +256 -0
- package/dist/model/OpenLobbyReadyCheckRequest.js +95 -0
- package/dist/model/PartyCreateLobbyRequest.js +139 -0
- package/dist/model/PartyJoinLobbyRequest.js +90 -0
- package/dist/model/PartyStats200Response.js +91 -0
- package/dist/model/PartyStats200ResponseData.js +93 -0
- package/dist/model/PaymentsEntitlements401Response.js +89 -0
- package/dist/model/PaymentsSteamCheckoutRequest.js +169 -0
- package/dist/model/PaymentsSteamFinalizeRequest.js +112 -0
- package/dist/model/PaymentsStripeCheckoutRequest.js +133 -0
- package/dist/model/PromoteGroupMemberRequest.js +113 -0
- package/dist/model/QuestStats200Response.js +91 -0
- package/dist/model/QuestStats200ResponseData.js +101 -0
- package/dist/model/QuickJoinRequest.js +108 -0
- package/dist/model/RefreshToken200Response.js +91 -0
- package/dist/model/RefreshToken200ResponseData.js +151 -0
- package/dist/model/RefreshTokenRequest.js +113 -0
- package/dist/model/RegisterPushTokenRequest.js +199 -0
- package/dist/model/RemoveFriendship401Response.js +89 -0
- package/dist/model/ReportChatMessageRequest.js +90 -0
- package/dist/model/ResolveLeaderboardSlugs200Response.js +89 -0
- package/dist/model/ResolveLeaderboardSlugs200ResponseDataValue.js +264 -0
- package/dist/model/ResolveLeaderboardSlugsRequest.js +113 -0
- package/dist/model/RespondReadyCheckRequest.js +140 -0
- package/dist/model/SearchUsers200Response.js +124 -0
- package/dist/model/SearchUsers200ResponseDataInner.js +168 -0
- package/dist/model/SendChatMessageRequest.js +180 -0
- package/dist/model/SendNotificationRequest.js +163 -0
- package/dist/model/SetLobbyStateRequest.js +126 -0
- package/dist/model/ShowParty200Response.js +160 -0
- package/dist/model/ShowParty200ResponseMembersInner.js +137 -0
- package/dist/model/SignalingStats200Response.js +91 -0
- package/dist/model/SignalingStats200ResponseData.js +101 -0
- package/dist/model/TournamentMyMatch200Response.js +173 -0
- package/dist/model/UnmuteLobbyMemberRequest.js +113 -0
- package/dist/model/UpdateChatMessageRequest.js +99 -0
- package/dist/model/UpdateCurrentUserDisplayName400Response.js +97 -0
- package/dist/model/UpdateCurrentUserDisplayNameRequest.js +112 -0
- package/dist/model/UpdateCurrentUserPassword400Response.js +97 -0
- package/dist/model/UpdateCurrentUserPasswordRequest.js +125 -0
- package/dist/model/UpdateCurrentUserUsernameRequest.js +112 -0
- package/dist/model/UpdateGroupRequest.js +173 -0
- package/dist/model/UpdateLobbyRequest.js +161 -0
- package/dist/model/UpdatePartyRequest.js +95 -0
- package/dist/model/UserQuests200Response.js +124 -0
- package/dist/model/UserQuests200ResponseDataInner.js +401 -0
- package/dist/model/UserQuests200ResponseDataInnerObjectivesInner.js +108 -0
- package/dist/model/UserQuests200ResponseDataInnerProgress.js +159 -0
- package/dist/model/UserQuests200ResponseDataInnerRewardsInner.js +130 -0
- package/dist/model/UserQuests200ResponseMeta.js +125 -0
- package/dist/model/UserStats200Response.js +91 -0
- package/dist/model/UserStats200ResponseData.js +117 -0
- package/dist/realtime.js +370 -0
- package/dist/webrtc.js +541 -0
- package/package.json +51 -0
|
@@ -0,0 +1,770 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _AdminConsumeItem400Response = _interopRequireDefault(require("../model/AdminConsumeItem400Response"));
|
|
9
|
+
var _AdminCreateChatFilterWordRequest = _interopRequireDefault(require("../model/AdminCreateChatFilterWordRequest"));
|
|
10
|
+
var _AdminCreateChatMute200Response = _interopRequireDefault(require("../model/AdminCreateChatMute200Response"));
|
|
11
|
+
var _AdminCreateChatMuteRequest = _interopRequireDefault(require("../model/AdminCreateChatMuteRequest"));
|
|
12
|
+
var _AdminDeleteChatConversation200Response = _interopRequireDefault(require("../model/AdminDeleteChatConversation200Response"));
|
|
13
|
+
var _AdminDeleteChatFilterWordsByLang200Response = _interopRequireDefault(require("../model/AdminDeleteChatFilterWordsByLang200Response"));
|
|
14
|
+
var _AdminImportChatFilterWords200Response = _interopRequireDefault(require("../model/AdminImportChatFilterWords200Response"));
|
|
15
|
+
var _AdminImportChatFilterWordsRequest = _interopRequireDefault(require("../model/AdminImportChatFilterWordsRequest"));
|
|
16
|
+
var _AdminListChatFilterWords200Response = _interopRequireDefault(require("../model/AdminListChatFilterWords200Response"));
|
|
17
|
+
var _AdminListChatMessages200Response = _interopRequireDefault(require("../model/AdminListChatMessages200Response"));
|
|
18
|
+
var _AdminListChatMutes200Response = _interopRequireDefault(require("../model/AdminListChatMutes200Response"));
|
|
19
|
+
var _AdminListChatReports200Response = _interopRequireDefault(require("../model/AdminListChatReports200Response"));
|
|
20
|
+
var _AdminResolveChatReport200Response = _interopRequireDefault(require("../model/AdminResolveChatReport200Response"));
|
|
21
|
+
var _AdminResolveChatReportRequest = _interopRequireDefault(require("../model/AdminResolveChatReportRequest"));
|
|
22
|
+
var _AdminTestChatPhrase200Response = _interopRequireDefault(require("../model/AdminTestChatPhrase200Response"));
|
|
23
|
+
var _AdminTestChatPhraseRequest = _interopRequireDefault(require("../model/AdminTestChatPhraseRequest"));
|
|
24
|
+
var _AdminUpdateChatFilterWord200Response = _interopRequireDefault(require("../model/AdminUpdateChatFilterWord200Response"));
|
|
25
|
+
var _AdminUpdateChatFilterWordRequest = _interopRequireDefault(require("../model/AdminUpdateChatFilterWordRequest"));
|
|
26
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
27
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
28
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
29
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
30
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
31
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
32
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
33
|
+
* Gamend API
|
|
34
|
+
* API for Gamend. Provides HTTP REST API, real-time WebSocket channels, and WebRTC DataChannels for low-latency game data. Features authentication, users, lobbies, groups, parties, friends, chat, notifications, quests, leaderboards, tournaments, matchmaking, payments, server scripting, and admin portal. ## **1. Authentication** This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### **1.1 Getting Tokens** - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow or apple sdk flow - **Steam (OpenID)**: Use `/api/v1/auth/steam` flow Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### **1.2 Using Tokens** Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### **1.3 Refreshing Tokens** When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## **2. Users** Users endpoints cover the user lifecycle and profile features. Key highlights: - **Registration and login** (email/password, device token for SDKs, and OAuth providers) - **Profile metadata** (JSON blob per user) and editable profile fields - **Account lifecycle**: password reset, email confirmation, and account deletion - **Sessions & tokens**: both browser sessions and JWT-based API tokens are supported ## **3. Friends** The Friends domain offers lightweight social features: - **Friend requests** (send / accept / reject / block flows) - **Friend listing & pagination**, with basic privacy controls - **Domain helpers** to manage and query friend relationships from API or UI contexts ## **4. Lobbies** Lobbies provide matchmaking / room management primitives. Highlights: - **Create / list / update / delete** lobbies with rich metadata (mode, region, tags) - **Host-managed or hostless** modes (hostless allowed internally, not creatable via public API) - **Membership management**: join, leave, kick users, and automatic host transfer - **Controls & protection**: max users, hidden/locked states, and optional password protection - **Hidden lobbies** are excluded from public listings; public listing endpoints are paginated ## **5. Notifications** Persistent user-to-user notifications that survive across sessions: - **Send notifications** to accepted friends with a title, optional content, and optional metadata - **List own notifications** with pagination (ordered oldest-first) - **Delete notifications** by ID (single or batch) - **Real-time delivery** via the user WebSocket channel (`\"notification\"` events) - **Offline delivery**: undeleted notifications are replayed on WebSocket reconnect - **Push delivery**: notifications also fan out to the recipient's registered mobile devices (see Push notifications) ## **5b. Push notifications** Mobile/web push delivery to registered devices (FCM for Android/Web, APNs-direct for iOS): - **Register device tokens** via `POST /me/push_tokens` (`token`, `platform`, optional `provider`/`device_id`); re-registering a `device_id` rotates its token in place - **List/remove own devices** via `GET /me/push_tokens` and `DELETE /me/push_tokens/:id` - **Server-authoritative sending** — no public send endpoint; pushes originate from server hooks (`Gamend.Push.send_to_user/2`) or the admin API - **Per-token routing**: each token's `provider` (\"fcm\" | \"apns\") selects the delivery backend; unconfigured backends log instead of sending (dev-friendly) - **Reliability**: delivery rides the durable job queue with retries; dead tokens reported by the provider are disabled automatically ## **6. Groups** Groups provide persistent community management for players: - **Three group types**: `public` (anyone joins directly), `private` (users request to join, admins approve), `hidden` (invite-only, never listed) - **Membership roles**: `admin` and `member`, with promote/demote capabilities - **Join requests**: for private groups, users submit requests that admins approve or reject - **Invitations**: admins can invite users directly (blocked users are rejected) - **CRUD operations**: create, update, delete groups with metadata support - **Group chat**: integrated via the Chat API with `chat_type: \"group\"` ## **7. Parties** Ephemeral groups of users for short-lived sessions (e.g., matchmaking squads): - **Invite-only joining**: the party leader sends invites by user ID to friends or shared-group members - **Invite flow**: `POST /parties/invite` → recipient accepts via `POST /parties/invite/accept` or declines via `POST /parties/invite/decline`; leader can cancel via `POST /parties/invite/cancel` - **Invite visibility**: leader can list sent invites (`GET /parties/invitations/sent`); recipient can list received invites (`GET /parties/invitations`) - **Connection requirement**: invites can only be sent to users who are friends or share at least one group with the leader - **One party at a time**: a user can only be in one party; accepting an invite while already in a party is rejected - **Leader management**: the creator is the leader; leadership can be transferred - **Lobby integration**: parties can create or join lobbies as a group - **Party chat**: integrated via the Chat API with `chat_type: \"party\"` - **Real-time events** via the party WebSocket channel ## **8. Chat** Real-time messaging across multiple conversation types: - **Chat types**: `lobby` (within a lobby), `group` (within a group), `party` (within a party), `friend` (DMs between friends) - **Send messages** with content, optional metadata, and automatic access validation - **List messages** with pagination (newest first) - **Read tracking**: mark messages as read and get unread counts per conversation - **Real-time delivery** via PubSub and WebSocket channels - **Moderation is built in**: an admin-managed word filter (`block` / `mask` / `flag`, matched on a normalized form so leetspeak and padding do not slip through) and mutes are enforced before a message is stored or broadcast; the `before_chat_message` pipeline hook stays available for rules of your own - **Report a message**: `POST /chat/messages/:id/report` with an optional `reason` — one report per player per message, capped per day; reports the filter files itself have no reporter - **Scoped mutes** mirror kick: `POST /lobbies/mute` + `/lobbies/unmute` (lobby host), `POST /groups/:id/mute` + `/groups/:id/unmute` (group admin), `POST /parties/mute` + `/parties/unmute` (party leader), each with a paginated `.../mutes` listing for the same authority. Body is `{target_user_id, expires_at?, reason?}`; omitting `expires_at` mutes permanently - **Global mutes and the blocklist are server-authoritative** — no public endpoint; admin API (`/api/v1/admin/chat`) or a plugin calling `Gamend.Chat.mute_user/4` - **Real-time moderation events**: the muted player receives `chat_muted` / `chat_unmuted` on their user channel ## **9. Leaderboards** Server-managed ranked scoreboards: - **Multiple leaderboards**: create named leaderboards with configurable sort order - **Score submission**: submit scores with optional metadata - **Rankings**: retrieve paginated rankings with user details - **Reset support**: leaderboards can be reset periodically ## **10. Key-Value Storage** Per-user persistent key-value storage for game state, preferences, and settings: - **Get/set/delete** key-value pairs scoped to the authenticated user - **List keys** with optional prefix filtering - **Metadata support**: values can include arbitrary JSON metadata ## **11. Quests / Progression** One event-driven progression engine covering achievements, daily/weekly quests, time-boxed event quests, chains, and groups: - **Kinds**: `achievement` (permanent one-shot — the replacement for the old achievements system), `daily`/`weekly` (reset per UTC period), `event` (starts_at/ends_at window), `chain` (requires a prerequisite quest) - **Objectives**: each quest lists objectives `{event, target, params}`; server-side `report_event` advances every matching active quest — there is **no public endpoint to advance progress** (server-authoritative) - **Rewards**: currencies (Economy) and items (Inventory), paid **exactly once** per period via idempotent grants; `auto_claim` quests pay on completion, others via `POST /me/quests/:key/claim` - **My quests**: `GET /me/quests` returns active quests, per-period progress, and a claimable flag; hidden quests appear once completed - **Groups**: quests sharing a `group_key` collapse to one entry carrying `group_size`; `?group=<key>` lists that group's members in full - **Catalog**: `GET /quests` and per-user completions `GET /quests/user/:user_id` (gated by `LIST_QUESTS_ENABLED`) - **Admin management**: definitions CRUD plus per-user grant/reset/force-claim under `/api/v1/admin/quests` ## **12. Tournaments** Single-elimination bracket tournaments, server-structured and game-judged: - **Registration window → seeded draw → timed rounds → champions**; recurring tournaments (cron) create one occurrence per cycle sharing a slug; a nil starts_at keeps registration open until an admin draws manually - **Join/leave** as an entry leader (`POST`/`DELETE /tournaments/:id/join`); team composition is game policy - **Browse**: list/filter tournaments, standings, full bracket view, and the caller's current match (`GET /tournaments/:id/my_match`) - **Match verdicts are server-side** (game hooks) — no public resolve endpoint; clients get `tournament_match_ready` / `tournament_match_resolved` / `tournament_updated` / `tournament_finished` on the user channel - **Admin management** over HTTP: create/update/delete, cancel, draw now, finish, and force match verdicts under `/api/v1/admin/tournaments` ## **13. Matchmaking** Ticket-based queueing that turns waiting players into hidden, locked lobbies: - **Join over HTTP** (`POST /matchmaking/tickets` with a `match_params` string map); only tickets with identical params match together — encode mode/map/skill band as parameter values - **A match forms** when a group reaches `max_players`, or has at least `min_players` and the oldest ticket outwaited the timeout; the server creates a hidden lobby, seats everyone and locks it - **The result is a push, not a poll**: matched players receive `match_found` (`lobby_id`, `match_params`) on their user channel; disconnecting cancels your tickets - **Inspect**: `GET /matchmaking/tickets/me` for your ticket, `GET /matchmaking/stats` for queue depths - **Admin management** over HTTP: list/filter tickets, force-cancel, and stats under `/api/v1/admin/matchmaking` ## **14. Ready checks** One primitive for \"everyone must answer before this proceeds\", with one client-facing surface: - **A player holds at most one check per lane** — the match lane (lobby ready-up or matchmaking accept) and the party lane (the party's standing board) — so answering needs no id: `GET /me/ready_check` returns `{\"lobby\": …, \"party\": …}` (each null when none) and `POST /me/ready_check` with `{\"ready\": true|false, \"scope\": \"lobby\"|\"party\"}` answers one (scope defaults to `lobby`) - **Two kinds.** `ready` (lobby/party board) is a toggle — a \"no\" just leaves the check open, and it lists every participant. `accept` (match confirmation) is final — one decline fails it for everyone — and returns counts plus your own state, so a pending match does not reveal who you were paired with - **Hosts open one** with `POST /lobbies/ready_check` (host-managed lobbies only; hostless matchmaking lobbies belong to the server), **party leaders** with `POST /parties/ready_check`; either call is a **reset** — it quietly replaces an already-open board with a fresh one over the current members, so the same endpoint serves \"ready check!\", \"force ready\" (with `timeout_ms`) and \"start over\". Call it off with `DELETE /lobbies/ready_check` / `DELETE /parties/ready_check`. The opener is pre-marked ready — clicking the button is their answer - **Failure does nothing on its own**: a declined or timed-out check kicks nobody, starts nothing, and moves no lobby state. It reports who did not answer, and the game (or the host, with the kick they already have) decides - **Live**: `ready_check_started` / `ready_check_updated` / `ready_check_passed` / `ready_check_failed` on the lobby channel, the party channel for a party board, or the user channel for an accept check - **Admin management** over HTTP: list/filter checks, force-cancel, and 24h outcome stats under `/api/v1/admin/ready_checks` ## **15. Real-time: WebSocket Channels** The server provides real-time communication via Phoenix WebSocket channels. Connect to the WebSocket endpoint and join topic-based channels for live updates. ### **15.1 Connection** Connect to `wss://your-server.com/socket` with your JWT token as a parameter: ``` const socket = new Socket(\"wss://your-server.com/socket\", { params: { token: \"<access_token>\" } }) socket.connect() ``` ### **15.2 Available Channels** - **User channel** (`user:<user_id>`): notifications, friend events, quest progress/completions/claims, party/group invites, tournament events, chat mutes (`chat_muted` / `chat_unmuted`), KV subscriptions - **Lobby channel** (`lobby:<lobby_id>`): lobby member joins/leaves, lobby updates, lobby chat - **Lobbies channel** (`lobbies`): global lobby list changes (created, updated, deleted) - **Group channel** (`group:<group_id>`): group member changes, group updates, group chat - **Groups channel** (`groups`): global group list changes - **Party channel** (`party:<party_id>`): party member changes, party updates, party chat ### **15.3 JS SDK Helper** The `GameRealtime` class (included in this SDK) wraps Phoenix.Socket with convenient channel helpers: ```javascript import { GameRealtime } from '@ughuuu/gamend' const realtime = new GameRealtime('https://your-server.com', accessToken) const userChannel = realtime.joinUserChannel(userId) userChannel.on('notification', payload => console.log(payload)) ``` Requires the `phoenix` npm package as a peer dependency: `npm install phoenix` ## **16. Real-time: WebRTC DataChannels** For low-latency game data, the server supports WebRTC DataChannels alongside WebSocket. The server acts as a WebRTC peer (not P2P between clients). ### **16.1 How It Works** 1. Client connects via WebSocket and joins the **User channel** 2. Client sends an SDP offer over the channel (`webrtc:offer` event) 3. Server responds with an SDP answer (`webrtc:answer` event) 4. ICE candidates are exchanged (`webrtc:ice` events) 5. Once connected, named DataChannels carry game data at low latency ### **16.2 Default DataChannels** - **`events`** (reliable, ordered): important game events (player actions, state changes) - **`state`** (unreliable, unordered): high-frequency position/state sync ### **16.3 JS SDK Helper** The `GameWebRTC` class (included in this SDK, browser-only) handles signaling automatically: ```javascript import { GameRealtime, GameWebRTC } from '@ughuuu/gamend' const realtime = new GameRealtime('https://your-server.com', token) const userChannel = realtime.joinUserChannel(userId) const webrtc = new GameWebRTC(userChannel, { onData: (label, data) => console.log(label, data) }) await webrtc.connect() webrtc.send('events', JSON.stringify({ type: 'move', x: 10, y: 20 })) ```
|
|
35
|
+
*
|
|
36
|
+
* The version of the OpenAPI document: 1.0.0
|
|
37
|
+
*
|
|
38
|
+
*
|
|
39
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
40
|
+
* https://openapi-generator.tech
|
|
41
|
+
* Do not edit the class manually.
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* AdminChat service.
|
|
46
|
+
* @module api/AdminChatApi
|
|
47
|
+
* @version 1.0.0
|
|
48
|
+
*/
|
|
49
|
+
var AdminChatApi = exports["default"] = /*#__PURE__*/function () {
|
|
50
|
+
/**
|
|
51
|
+
* Constructs a new AdminChatApi.
|
|
52
|
+
* @alias module:api/AdminChatApi
|
|
53
|
+
* @class
|
|
54
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
55
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
56
|
+
*/
|
|
57
|
+
function AdminChatApi(apiClient) {
|
|
58
|
+
_classCallCheck(this, AdminChatApi);
|
|
59
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Add a blocklist word (admin)
|
|
64
|
+
* The word is normalized (lower-cased, leetspeak folded) before it is stored, so it matches the same way the runtime filter does.
|
|
65
|
+
* @param {Object} opts Optional parameters
|
|
66
|
+
* @param {module:model/AdminCreateChatFilterWordRequest} [adminCreateChatFilterWordRequest] Filter word
|
|
67
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminUpdateChatFilterWord200Response} and HTTP response
|
|
68
|
+
*/
|
|
69
|
+
return _createClass(AdminChatApi, [{
|
|
70
|
+
key: "adminCreateChatFilterWordWithHttpInfo",
|
|
71
|
+
value: function adminCreateChatFilterWordWithHttpInfo(opts) {
|
|
72
|
+
opts = opts || {};
|
|
73
|
+
var postBody = opts['adminCreateChatFilterWordRequest'];
|
|
74
|
+
var pathParams = {};
|
|
75
|
+
var queryParams = {};
|
|
76
|
+
var headerParams = {};
|
|
77
|
+
var formParams = {};
|
|
78
|
+
var authNames = ['authorization'];
|
|
79
|
+
var contentTypes = ['application/json'];
|
|
80
|
+
var accepts = ['application/json'];
|
|
81
|
+
var returnType = _AdminUpdateChatFilterWord200Response["default"];
|
|
82
|
+
return this.apiClient.callApi('/api/v1/admin/chat/filter_words', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Add a blocklist word (admin)
|
|
87
|
+
* The word is normalized (lower-cased, leetspeak folded) before it is stored, so it matches the same way the runtime filter does.
|
|
88
|
+
* @param {Object} opts Optional parameters
|
|
89
|
+
* @param {module:model/AdminCreateChatFilterWordRequest} opts.adminCreateChatFilterWordRequest Filter word
|
|
90
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminUpdateChatFilterWord200Response}
|
|
91
|
+
*/
|
|
92
|
+
}, {
|
|
93
|
+
key: "adminCreateChatFilterWord",
|
|
94
|
+
value: function adminCreateChatFilterWord(opts) {
|
|
95
|
+
return this.adminCreateChatFilterWordWithHttpInfo(opts).then(function (response_and_data) {
|
|
96
|
+
return response_and_data.data;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Mute a player (admin)
|
|
102
|
+
* Silences a player. `global` covers every chat including friend DMs and is admin-only; the scoped variants take the lobby, group or party id in `scope_ref_id`. Re-muting an already-muted player replaces the mute.
|
|
103
|
+
* @param {Object} opts Optional parameters
|
|
104
|
+
* @param {module:model/AdminCreateChatMuteRequest} [adminCreateChatMuteRequest] Mute
|
|
105
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminCreateChatMute200Response} and HTTP response
|
|
106
|
+
*/
|
|
107
|
+
}, {
|
|
108
|
+
key: "adminCreateChatMuteWithHttpInfo",
|
|
109
|
+
value: function adminCreateChatMuteWithHttpInfo(opts) {
|
|
110
|
+
opts = opts || {};
|
|
111
|
+
var postBody = opts['adminCreateChatMuteRequest'];
|
|
112
|
+
var pathParams = {};
|
|
113
|
+
var queryParams = {};
|
|
114
|
+
var headerParams = {};
|
|
115
|
+
var formParams = {};
|
|
116
|
+
var authNames = ['authorization'];
|
|
117
|
+
var contentTypes = ['application/json'];
|
|
118
|
+
var accepts = ['application/json'];
|
|
119
|
+
var returnType = _AdminCreateChatMute200Response["default"];
|
|
120
|
+
return this.apiClient.callApi('/api/v1/admin/chat/mutes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Mute a player (admin)
|
|
125
|
+
* Silences a player. `global` covers every chat including friend DMs and is admin-only; the scoped variants take the lobby, group or party id in `scope_ref_id`. Re-muting an already-muted player replaces the mute.
|
|
126
|
+
* @param {Object} opts Optional parameters
|
|
127
|
+
* @param {module:model/AdminCreateChatMuteRequest} opts.adminCreateChatMuteRequest Mute
|
|
128
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminCreateChatMute200Response}
|
|
129
|
+
*/
|
|
130
|
+
}, {
|
|
131
|
+
key: "adminCreateChatMute",
|
|
132
|
+
value: function adminCreateChatMute(opts) {
|
|
133
|
+
return this.adminCreateChatMuteWithHttpInfo(opts).then(function (response_and_data) {
|
|
134
|
+
return response_and_data.data;
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Delete all messages in a conversation (admin)
|
|
140
|
+
* Delete all messages for a given chat_type and chat_ref_id.
|
|
141
|
+
* @param {module:model/String} chatType
|
|
142
|
+
* @param {String} chatRefId
|
|
143
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminDeleteChatConversation200Response} and HTTP response
|
|
144
|
+
*/
|
|
145
|
+
}, {
|
|
146
|
+
key: "adminDeleteChatConversationWithHttpInfo",
|
|
147
|
+
value: function adminDeleteChatConversationWithHttpInfo(chatType, chatRefId) {
|
|
148
|
+
var postBody = null;
|
|
149
|
+
// verify the required parameter 'chatType' is set
|
|
150
|
+
if (chatType === undefined || chatType === null) {
|
|
151
|
+
throw new Error("Missing the required parameter 'chatType' when calling adminDeleteChatConversation");
|
|
152
|
+
}
|
|
153
|
+
// verify the required parameter 'chatRefId' is set
|
|
154
|
+
if (chatRefId === undefined || chatRefId === null) {
|
|
155
|
+
throw new Error("Missing the required parameter 'chatRefId' when calling adminDeleteChatConversation");
|
|
156
|
+
}
|
|
157
|
+
var pathParams = {};
|
|
158
|
+
var queryParams = {
|
|
159
|
+
'chat_type': chatType,
|
|
160
|
+
'chat_ref_id': chatRefId
|
|
161
|
+
};
|
|
162
|
+
var headerParams = {};
|
|
163
|
+
var formParams = {};
|
|
164
|
+
var authNames = ['authorization'];
|
|
165
|
+
var contentTypes = [];
|
|
166
|
+
var accepts = ['application/json'];
|
|
167
|
+
var returnType = _AdminDeleteChatConversation200Response["default"];
|
|
168
|
+
return this.apiClient.callApi('/api/v1/admin/chat/conversation', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Delete all messages in a conversation (admin)
|
|
173
|
+
* Delete all messages for a given chat_type and chat_ref_id.
|
|
174
|
+
* @param {module:model/String} chatType
|
|
175
|
+
* @param {String} chatRefId
|
|
176
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminDeleteChatConversation200Response}
|
|
177
|
+
*/
|
|
178
|
+
}, {
|
|
179
|
+
key: "adminDeleteChatConversation",
|
|
180
|
+
value: function adminDeleteChatConversation(chatType, chatRefId) {
|
|
181
|
+
return this.adminDeleteChatConversationWithHttpInfo(chatType, chatRefId).then(function (response_and_data) {
|
|
182
|
+
return response_and_data.data;
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Remove a blocklist word (admin)
|
|
188
|
+
* @param {String} id
|
|
189
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
190
|
+
*/
|
|
191
|
+
}, {
|
|
192
|
+
key: "adminDeleteChatFilterWordWithHttpInfo",
|
|
193
|
+
value: function adminDeleteChatFilterWordWithHttpInfo(id) {
|
|
194
|
+
var postBody = null;
|
|
195
|
+
// verify the required parameter 'id' is set
|
|
196
|
+
if (id === undefined || id === null) {
|
|
197
|
+
throw new Error("Missing the required parameter 'id' when calling adminDeleteChatFilterWord");
|
|
198
|
+
}
|
|
199
|
+
var pathParams = {
|
|
200
|
+
'id': id
|
|
201
|
+
};
|
|
202
|
+
var queryParams = {};
|
|
203
|
+
var headerParams = {};
|
|
204
|
+
var formParams = {};
|
|
205
|
+
var authNames = ['authorization'];
|
|
206
|
+
var contentTypes = [];
|
|
207
|
+
var accepts = ['application/json'];
|
|
208
|
+
var returnType = Object;
|
|
209
|
+
return this.apiClient.callApi('/api/v1/admin/chat/filter_words/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Remove a blocklist word (admin)
|
|
214
|
+
* @param {String} id
|
|
215
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
216
|
+
*/
|
|
217
|
+
}, {
|
|
218
|
+
key: "adminDeleteChatFilterWord",
|
|
219
|
+
value: function adminDeleteChatFilterWord(id) {
|
|
220
|
+
return this.adminDeleteChatFilterWordWithHttpInfo(id).then(function (response_and_data) {
|
|
221
|
+
return response_and_data.data;
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Remove an imported word list (admin)
|
|
227
|
+
* Deletes every blocklist entry tagged with the given language — the bulk undo for an import. Hand-added words have no language tag and are untouched.
|
|
228
|
+
* @param {String} lang Language tag to remove, e.g. \"en\"
|
|
229
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminDeleteChatFilterWordsByLang200Response} and HTTP response
|
|
230
|
+
*/
|
|
231
|
+
}, {
|
|
232
|
+
key: "adminDeleteChatFilterWordsByLangWithHttpInfo",
|
|
233
|
+
value: function adminDeleteChatFilterWordsByLangWithHttpInfo(lang) {
|
|
234
|
+
var postBody = null;
|
|
235
|
+
// verify the required parameter 'lang' is set
|
|
236
|
+
if (lang === undefined || lang === null) {
|
|
237
|
+
throw new Error("Missing the required parameter 'lang' when calling adminDeleteChatFilterWordsByLang");
|
|
238
|
+
}
|
|
239
|
+
var pathParams = {};
|
|
240
|
+
var queryParams = {
|
|
241
|
+
'lang': lang
|
|
242
|
+
};
|
|
243
|
+
var headerParams = {};
|
|
244
|
+
var formParams = {};
|
|
245
|
+
var authNames = ['authorization'];
|
|
246
|
+
var contentTypes = [];
|
|
247
|
+
var accepts = ['application/json'];
|
|
248
|
+
var returnType = _AdminDeleteChatFilterWordsByLang200Response["default"];
|
|
249
|
+
return this.apiClient.callApi('/api/v1/admin/chat/filter_words', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Remove an imported word list (admin)
|
|
254
|
+
* Deletes every blocklist entry tagged with the given language — the bulk undo for an import. Hand-added words have no language tag and are untouched.
|
|
255
|
+
* @param {String} lang Language tag to remove, e.g. \"en\"
|
|
256
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminDeleteChatFilterWordsByLang200Response}
|
|
257
|
+
*/
|
|
258
|
+
}, {
|
|
259
|
+
key: "adminDeleteChatFilterWordsByLang",
|
|
260
|
+
value: function adminDeleteChatFilterWordsByLang(lang) {
|
|
261
|
+
return this.adminDeleteChatFilterWordsByLangWithHttpInfo(lang).then(function (response_and_data) {
|
|
262
|
+
return response_and_data.data;
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Delete a chat message (admin)
|
|
268
|
+
* Admin-level message deletion by ID.
|
|
269
|
+
* @param {String} id
|
|
270
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
271
|
+
*/
|
|
272
|
+
}, {
|
|
273
|
+
key: "adminDeleteChatMessageWithHttpInfo",
|
|
274
|
+
value: function adminDeleteChatMessageWithHttpInfo(id) {
|
|
275
|
+
var postBody = null;
|
|
276
|
+
// verify the required parameter 'id' is set
|
|
277
|
+
if (id === undefined || id === null) {
|
|
278
|
+
throw new Error("Missing the required parameter 'id' when calling adminDeleteChatMessage");
|
|
279
|
+
}
|
|
280
|
+
var pathParams = {
|
|
281
|
+
'id': id
|
|
282
|
+
};
|
|
283
|
+
var queryParams = {};
|
|
284
|
+
var headerParams = {};
|
|
285
|
+
var formParams = {};
|
|
286
|
+
var authNames = ['authorization'];
|
|
287
|
+
var contentTypes = [];
|
|
288
|
+
var accepts = ['application/json'];
|
|
289
|
+
var returnType = Object;
|
|
290
|
+
return this.apiClient.callApi('/api/v1/admin/chat/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Delete a chat message (admin)
|
|
295
|
+
* Admin-level message deletion by ID.
|
|
296
|
+
* @param {String} id
|
|
297
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
298
|
+
*/
|
|
299
|
+
}, {
|
|
300
|
+
key: "adminDeleteChatMessage",
|
|
301
|
+
value: function adminDeleteChatMessage(id) {
|
|
302
|
+
return this.adminDeleteChatMessageWithHttpInfo(id).then(function (response_and_data) {
|
|
303
|
+
return response_and_data.data;
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Lift a mute (admin)
|
|
309
|
+
* @param {String} id
|
|
310
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
311
|
+
*/
|
|
312
|
+
}, {
|
|
313
|
+
key: "adminDeleteChatMuteWithHttpInfo",
|
|
314
|
+
value: function adminDeleteChatMuteWithHttpInfo(id) {
|
|
315
|
+
var postBody = null;
|
|
316
|
+
// verify the required parameter 'id' is set
|
|
317
|
+
if (id === undefined || id === null) {
|
|
318
|
+
throw new Error("Missing the required parameter 'id' when calling adminDeleteChatMute");
|
|
319
|
+
}
|
|
320
|
+
var pathParams = {
|
|
321
|
+
'id': id
|
|
322
|
+
};
|
|
323
|
+
var queryParams = {};
|
|
324
|
+
var headerParams = {};
|
|
325
|
+
var formParams = {};
|
|
326
|
+
var authNames = ['authorization'];
|
|
327
|
+
var contentTypes = [];
|
|
328
|
+
var accepts = ['application/json'];
|
|
329
|
+
var returnType = Object;
|
|
330
|
+
return this.apiClient.callApi('/api/v1/admin/chat/mutes/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Lift a mute (admin)
|
|
335
|
+
* @param {String} id
|
|
336
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
337
|
+
*/
|
|
338
|
+
}, {
|
|
339
|
+
key: "adminDeleteChatMute",
|
|
340
|
+
value: function adminDeleteChatMute(id) {
|
|
341
|
+
return this.adminDeleteChatMuteWithHttpInfo(id).then(function (response_and_data) {
|
|
342
|
+
return response_and_data.data;
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Delete a chat report (admin)
|
|
348
|
+
* Removes the report row itself. Resolving is usually what you want instead.
|
|
349
|
+
* @param {String} id
|
|
350
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
351
|
+
*/
|
|
352
|
+
}, {
|
|
353
|
+
key: "adminDeleteChatReportWithHttpInfo",
|
|
354
|
+
value: function adminDeleteChatReportWithHttpInfo(id) {
|
|
355
|
+
var postBody = null;
|
|
356
|
+
// verify the required parameter 'id' is set
|
|
357
|
+
if (id === undefined || id === null) {
|
|
358
|
+
throw new Error("Missing the required parameter 'id' when calling adminDeleteChatReport");
|
|
359
|
+
}
|
|
360
|
+
var pathParams = {
|
|
361
|
+
'id': id
|
|
362
|
+
};
|
|
363
|
+
var queryParams = {};
|
|
364
|
+
var headerParams = {};
|
|
365
|
+
var formParams = {};
|
|
366
|
+
var authNames = ['authorization'];
|
|
367
|
+
var contentTypes = [];
|
|
368
|
+
var accepts = ['application/json'];
|
|
369
|
+
var returnType = Object;
|
|
370
|
+
return this.apiClient.callApi('/api/v1/admin/chat/reports/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Delete a chat report (admin)
|
|
375
|
+
* Removes the report row itself. Resolving is usually what you want instead.
|
|
376
|
+
* @param {String} id
|
|
377
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
378
|
+
*/
|
|
379
|
+
}, {
|
|
380
|
+
key: "adminDeleteChatReport",
|
|
381
|
+
value: function adminDeleteChatReport(id) {
|
|
382
|
+
return this.adminDeleteChatReportWithHttpInfo(id).then(function (response_and_data) {
|
|
383
|
+
return response_and_data.data;
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Import a bundled word list (admin)
|
|
389
|
+
* Inserts the words bundled at `priv/chat_filter/<lang>.txt` at the chosen severity. Duplicates are skipped and `max_chat_filter_words` still applies. The importable languages are listed by the filter-word index.
|
|
390
|
+
* @param {Object} opts Optional parameters
|
|
391
|
+
* @param {module:model/AdminImportChatFilterWordsRequest} [adminImportChatFilterWordsRequest] Import
|
|
392
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminImportChatFilterWords200Response} and HTTP response
|
|
393
|
+
*/
|
|
394
|
+
}, {
|
|
395
|
+
key: "adminImportChatFilterWordsWithHttpInfo",
|
|
396
|
+
value: function adminImportChatFilterWordsWithHttpInfo(opts) {
|
|
397
|
+
opts = opts || {};
|
|
398
|
+
var postBody = opts['adminImportChatFilterWordsRequest'];
|
|
399
|
+
var pathParams = {};
|
|
400
|
+
var queryParams = {};
|
|
401
|
+
var headerParams = {};
|
|
402
|
+
var formParams = {};
|
|
403
|
+
var authNames = ['authorization'];
|
|
404
|
+
var contentTypes = ['application/json'];
|
|
405
|
+
var accepts = ['application/json'];
|
|
406
|
+
var returnType = _AdminImportChatFilterWords200Response["default"];
|
|
407
|
+
return this.apiClient.callApi('/api/v1/admin/chat/filter_words/import', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Import a bundled word list (admin)
|
|
412
|
+
* Inserts the words bundled at `priv/chat_filter/<lang>.txt` at the chosen severity. Duplicates are skipped and `max_chat_filter_words` still applies. The importable languages are listed by the filter-word index.
|
|
413
|
+
* @param {Object} opts Optional parameters
|
|
414
|
+
* @param {module:model/AdminImportChatFilterWordsRequest} opts.adminImportChatFilterWordsRequest Import
|
|
415
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminImportChatFilterWords200Response}
|
|
416
|
+
*/
|
|
417
|
+
}, {
|
|
418
|
+
key: "adminImportChatFilterWords",
|
|
419
|
+
value: function adminImportChatFilterWords(opts) {
|
|
420
|
+
return this.adminImportChatFilterWordsWithHttpInfo(opts).then(function (response_and_data) {
|
|
421
|
+
return response_and_data.data;
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* List blocklist words (admin)
|
|
427
|
+
* The chat word blocklist, plus the languages with a bundled list available to import. Matching is language-agnostic; `lang` is provenance only.
|
|
428
|
+
* @param {Object} opts Optional parameters
|
|
429
|
+
* @param {String} [word] Substring match
|
|
430
|
+
* @param {module:model/String} [severity]
|
|
431
|
+
* @param {String} [lang]
|
|
432
|
+
* @param {Number} [page = 1)]
|
|
433
|
+
* @param {Number} [pageSize = 25)]
|
|
434
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminListChatFilterWords200Response} and HTTP response
|
|
435
|
+
*/
|
|
436
|
+
}, {
|
|
437
|
+
key: "adminListChatFilterWordsWithHttpInfo",
|
|
438
|
+
value: function adminListChatFilterWordsWithHttpInfo(opts) {
|
|
439
|
+
opts = opts || {};
|
|
440
|
+
var postBody = null;
|
|
441
|
+
var pathParams = {};
|
|
442
|
+
var queryParams = {
|
|
443
|
+
'word': opts['word'],
|
|
444
|
+
'severity': opts['severity'],
|
|
445
|
+
'lang': opts['lang'],
|
|
446
|
+
'page': opts['page'],
|
|
447
|
+
'page_size': opts['pageSize']
|
|
448
|
+
};
|
|
449
|
+
var headerParams = {};
|
|
450
|
+
var formParams = {};
|
|
451
|
+
var authNames = ['authorization'];
|
|
452
|
+
var contentTypes = [];
|
|
453
|
+
var accepts = ['application/json'];
|
|
454
|
+
var returnType = _AdminListChatFilterWords200Response["default"];
|
|
455
|
+
return this.apiClient.callApi('/api/v1/admin/chat/filter_words', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* List blocklist words (admin)
|
|
460
|
+
* The chat word blocklist, plus the languages with a bundled list available to import. Matching is language-agnostic; `lang` is provenance only.
|
|
461
|
+
* @param {Object} opts Optional parameters
|
|
462
|
+
* @param {String} opts.word Substring match
|
|
463
|
+
* @param {module:model/String} opts.severity
|
|
464
|
+
* @param {String} opts.lang
|
|
465
|
+
* @param {Number} opts.page (default to 1)
|
|
466
|
+
* @param {Number} opts.pageSize (default to 25)
|
|
467
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminListChatFilterWords200Response}
|
|
468
|
+
*/
|
|
469
|
+
}, {
|
|
470
|
+
key: "adminListChatFilterWords",
|
|
471
|
+
value: function adminListChatFilterWords(opts) {
|
|
472
|
+
return this.adminListChatFilterWordsWithHttpInfo(opts).then(function (response_and_data) {
|
|
473
|
+
return response_and_data.data;
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* List all chat messages (admin)
|
|
479
|
+
* List all chat messages with optional filters. Returns paginated results sorted by newest first.
|
|
480
|
+
* @param {Object} opts Optional parameters
|
|
481
|
+
* @param {String} [senderId]
|
|
482
|
+
* @param {module:model/String} [chatType]
|
|
483
|
+
* @param {String} [chatRefId]
|
|
484
|
+
* @param {String} [content]
|
|
485
|
+
* @param {module:model/String} [sortBy]
|
|
486
|
+
* @param {Number} [page]
|
|
487
|
+
* @param {Number} [pageSize]
|
|
488
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminListChatMessages200Response} and HTTP response
|
|
489
|
+
*/
|
|
490
|
+
}, {
|
|
491
|
+
key: "adminListChatMessagesWithHttpInfo",
|
|
492
|
+
value: function adminListChatMessagesWithHttpInfo(opts) {
|
|
493
|
+
opts = opts || {};
|
|
494
|
+
var postBody = null;
|
|
495
|
+
var pathParams = {};
|
|
496
|
+
var queryParams = {
|
|
497
|
+
'sender_id': opts['senderId'],
|
|
498
|
+
'chat_type': opts['chatType'],
|
|
499
|
+
'chat_ref_id': opts['chatRefId'],
|
|
500
|
+
'content': opts['content'],
|
|
501
|
+
'sort_by': opts['sortBy'],
|
|
502
|
+
'page': opts['page'],
|
|
503
|
+
'page_size': opts['pageSize']
|
|
504
|
+
};
|
|
505
|
+
var headerParams = {};
|
|
506
|
+
var formParams = {};
|
|
507
|
+
var authNames = ['authorization'];
|
|
508
|
+
var contentTypes = [];
|
|
509
|
+
var accepts = ['application/json'];
|
|
510
|
+
var returnType = _AdminListChatMessages200Response["default"];
|
|
511
|
+
return this.apiClient.callApi('/api/v1/admin/chat', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* List all chat messages (admin)
|
|
516
|
+
* List all chat messages with optional filters. Returns paginated results sorted by newest first.
|
|
517
|
+
* @param {Object} opts Optional parameters
|
|
518
|
+
* @param {String} opts.senderId
|
|
519
|
+
* @param {module:model/String} opts.chatType
|
|
520
|
+
* @param {String} opts.chatRefId
|
|
521
|
+
* @param {String} opts.content
|
|
522
|
+
* @param {module:model/String} opts.sortBy
|
|
523
|
+
* @param {Number} opts.page
|
|
524
|
+
* @param {Number} opts.pageSize
|
|
525
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminListChatMessages200Response}
|
|
526
|
+
*/
|
|
527
|
+
}, {
|
|
528
|
+
key: "adminListChatMessages",
|
|
529
|
+
value: function adminListChatMessages(opts) {
|
|
530
|
+
return this.adminListChatMessagesWithHttpInfo(opts).then(function (response_and_data) {
|
|
531
|
+
return response_and_data.data;
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* List chat mutes (admin)
|
|
537
|
+
* Every mute, newest first. Pass `active=true` to hide expired ones.
|
|
538
|
+
* @param {Object} opts Optional parameters
|
|
539
|
+
* @param {String} [userId]
|
|
540
|
+
* @param {module:model/String} [scope]
|
|
541
|
+
* @param {String} [scopeRefId]
|
|
542
|
+
* @param {Boolean} [active]
|
|
543
|
+
* @param {Number} [page = 1)]
|
|
544
|
+
* @param {Number} [pageSize = 25)]
|
|
545
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminListChatMutes200Response} and HTTP response
|
|
546
|
+
*/
|
|
547
|
+
}, {
|
|
548
|
+
key: "adminListChatMutesWithHttpInfo",
|
|
549
|
+
value: function adminListChatMutesWithHttpInfo(opts) {
|
|
550
|
+
opts = opts || {};
|
|
551
|
+
var postBody = null;
|
|
552
|
+
var pathParams = {};
|
|
553
|
+
var queryParams = {
|
|
554
|
+
'user_id': opts['userId'],
|
|
555
|
+
'scope': opts['scope'],
|
|
556
|
+
'scope_ref_id': opts['scopeRefId'],
|
|
557
|
+
'active': opts['active'],
|
|
558
|
+
'page': opts['page'],
|
|
559
|
+
'page_size': opts['pageSize']
|
|
560
|
+
};
|
|
561
|
+
var headerParams = {};
|
|
562
|
+
var formParams = {};
|
|
563
|
+
var authNames = ['authorization'];
|
|
564
|
+
var contentTypes = [];
|
|
565
|
+
var accepts = ['application/json'];
|
|
566
|
+
var returnType = _AdminListChatMutes200Response["default"];
|
|
567
|
+
return this.apiClient.callApi('/api/v1/admin/chat/mutes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* List chat mutes (admin)
|
|
572
|
+
* Every mute, newest first. Pass `active=true` to hide expired ones.
|
|
573
|
+
* @param {Object} opts Optional parameters
|
|
574
|
+
* @param {String} opts.userId
|
|
575
|
+
* @param {module:model/String} opts.scope
|
|
576
|
+
* @param {String} opts.scopeRefId
|
|
577
|
+
* @param {Boolean} opts.active
|
|
578
|
+
* @param {Number} opts.page (default to 1)
|
|
579
|
+
* @param {Number} opts.pageSize (default to 25)
|
|
580
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminListChatMutes200Response}
|
|
581
|
+
*/
|
|
582
|
+
}, {
|
|
583
|
+
key: "adminListChatMutes",
|
|
584
|
+
value: function adminListChatMutes(opts) {
|
|
585
|
+
return this.adminListChatMutesWithHttpInfo(opts).then(function (response_and_data) {
|
|
586
|
+
return response_and_data.data;
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* List chat reports (admin)
|
|
592
|
+
* The moderation queue, newest first. Filter by status or by the users involved.
|
|
593
|
+
* @param {Object} opts Optional parameters
|
|
594
|
+
* @param {module:model/String} [status]
|
|
595
|
+
* @param {String} [reportedUserId]
|
|
596
|
+
* @param {String} [reporterId]
|
|
597
|
+
* @param {Number} [page = 1)]
|
|
598
|
+
* @param {Number} [pageSize = 25)]
|
|
599
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminListChatReports200Response} and HTTP response
|
|
600
|
+
*/
|
|
601
|
+
}, {
|
|
602
|
+
key: "adminListChatReportsWithHttpInfo",
|
|
603
|
+
value: function adminListChatReportsWithHttpInfo(opts) {
|
|
604
|
+
opts = opts || {};
|
|
605
|
+
var postBody = null;
|
|
606
|
+
var pathParams = {};
|
|
607
|
+
var queryParams = {
|
|
608
|
+
'status': opts['status'],
|
|
609
|
+
'reported_user_id': opts['reportedUserId'],
|
|
610
|
+
'reporter_id': opts['reporterId'],
|
|
611
|
+
'page': opts['page'],
|
|
612
|
+
'page_size': opts['pageSize']
|
|
613
|
+
};
|
|
614
|
+
var headerParams = {};
|
|
615
|
+
var formParams = {};
|
|
616
|
+
var authNames = ['authorization'];
|
|
617
|
+
var contentTypes = [];
|
|
618
|
+
var accepts = ['application/json'];
|
|
619
|
+
var returnType = _AdminListChatReports200Response["default"];
|
|
620
|
+
return this.apiClient.callApi('/api/v1/admin/chat/reports', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* List chat reports (admin)
|
|
625
|
+
* The moderation queue, newest first. Filter by status or by the users involved.
|
|
626
|
+
* @param {Object} opts Optional parameters
|
|
627
|
+
* @param {module:model/String} opts.status
|
|
628
|
+
* @param {String} opts.reportedUserId
|
|
629
|
+
* @param {String} opts.reporterId
|
|
630
|
+
* @param {Number} opts.page (default to 1)
|
|
631
|
+
* @param {Number} opts.pageSize (default to 25)
|
|
632
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminListChatReports200Response}
|
|
633
|
+
*/
|
|
634
|
+
}, {
|
|
635
|
+
key: "adminListChatReports",
|
|
636
|
+
value: function adminListChatReports(opts) {
|
|
637
|
+
return this.adminListChatReportsWithHttpInfo(opts).then(function (response_and_data) {
|
|
638
|
+
return response_and_data.data;
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Resolve a chat report (admin)
|
|
644
|
+
* Sets the report's status and records the calling admin as its resolver. Muting the reported player or deleting the message are separate calls.
|
|
645
|
+
* @param {String} id
|
|
646
|
+
* @param {Object} opts Optional parameters
|
|
647
|
+
* @param {module:model/AdminResolveChatReportRequest} [adminResolveChatReportRequest] Resolution
|
|
648
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminResolveChatReport200Response} and HTTP response
|
|
649
|
+
*/
|
|
650
|
+
}, {
|
|
651
|
+
key: "adminResolveChatReportWithHttpInfo",
|
|
652
|
+
value: function adminResolveChatReportWithHttpInfo(id, opts) {
|
|
653
|
+
opts = opts || {};
|
|
654
|
+
var postBody = opts['adminResolveChatReportRequest'];
|
|
655
|
+
// verify the required parameter 'id' is set
|
|
656
|
+
if (id === undefined || id === null) {
|
|
657
|
+
throw new Error("Missing the required parameter 'id' when calling adminResolveChatReport");
|
|
658
|
+
}
|
|
659
|
+
var pathParams = {
|
|
660
|
+
'id': id
|
|
661
|
+
};
|
|
662
|
+
var queryParams = {};
|
|
663
|
+
var headerParams = {};
|
|
664
|
+
var formParams = {};
|
|
665
|
+
var authNames = ['authorization'];
|
|
666
|
+
var contentTypes = ['application/json'];
|
|
667
|
+
var accepts = ['application/json'];
|
|
668
|
+
var returnType = _AdminResolveChatReport200Response["default"];
|
|
669
|
+
return this.apiClient.callApi('/api/v1/admin/chat/reports/{id}/resolve', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Resolve a chat report (admin)
|
|
674
|
+
* Sets the report's status and records the calling admin as its resolver. Muting the reported player or deleting the message are separate calls.
|
|
675
|
+
* @param {String} id
|
|
676
|
+
* @param {Object} opts Optional parameters
|
|
677
|
+
* @param {module:model/AdminResolveChatReportRequest} opts.adminResolveChatReportRequest Resolution
|
|
678
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminResolveChatReport200Response}
|
|
679
|
+
*/
|
|
680
|
+
}, {
|
|
681
|
+
key: "adminResolveChatReport",
|
|
682
|
+
value: function adminResolveChatReport(id, opts) {
|
|
683
|
+
return this.adminResolveChatReportWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
684
|
+
return response_and_data.data;
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Test a phrase against the filter (admin)
|
|
690
|
+
* Runs the phrase through the live blocklist and reports every hit plus what the chat pipeline would do with it: `block`, `mask`, `flag` or `allow`.
|
|
691
|
+
* @param {Object} opts Optional parameters
|
|
692
|
+
* @param {module:model/AdminTestChatPhraseRequest} [adminTestChatPhraseRequest] Phrase
|
|
693
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminTestChatPhrase200Response} and HTTP response
|
|
694
|
+
*/
|
|
695
|
+
}, {
|
|
696
|
+
key: "adminTestChatPhraseWithHttpInfo",
|
|
697
|
+
value: function adminTestChatPhraseWithHttpInfo(opts) {
|
|
698
|
+
opts = opts || {};
|
|
699
|
+
var postBody = opts['adminTestChatPhraseRequest'];
|
|
700
|
+
var pathParams = {};
|
|
701
|
+
var queryParams = {};
|
|
702
|
+
var headerParams = {};
|
|
703
|
+
var formParams = {};
|
|
704
|
+
var authNames = ['authorization'];
|
|
705
|
+
var contentTypes = ['application/json'];
|
|
706
|
+
var accepts = ['application/json'];
|
|
707
|
+
var returnType = _AdminTestChatPhrase200Response["default"];
|
|
708
|
+
return this.apiClient.callApi('/api/v1/admin/chat/filter_words/test', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* Test a phrase against the filter (admin)
|
|
713
|
+
* Runs the phrase through the live blocklist and reports every hit plus what the chat pipeline would do with it: `block`, `mask`, `flag` or `allow`.
|
|
714
|
+
* @param {Object} opts Optional parameters
|
|
715
|
+
* @param {module:model/AdminTestChatPhraseRequest} opts.adminTestChatPhraseRequest Phrase
|
|
716
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminTestChatPhrase200Response}
|
|
717
|
+
*/
|
|
718
|
+
}, {
|
|
719
|
+
key: "adminTestChatPhrase",
|
|
720
|
+
value: function adminTestChatPhrase(opts) {
|
|
721
|
+
return this.adminTestChatPhraseWithHttpInfo(opts).then(function (response_and_data) {
|
|
722
|
+
return response_and_data.data;
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Update a blocklist word (admin)
|
|
728
|
+
* @param {String} id
|
|
729
|
+
* @param {Object} opts Optional parameters
|
|
730
|
+
* @param {module:model/AdminUpdateChatFilterWordRequest} [adminUpdateChatFilterWordRequest] Filter word
|
|
731
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminUpdateChatFilterWord200Response} and HTTP response
|
|
732
|
+
*/
|
|
733
|
+
}, {
|
|
734
|
+
key: "adminUpdateChatFilterWordWithHttpInfo",
|
|
735
|
+
value: function adminUpdateChatFilterWordWithHttpInfo(id, opts) {
|
|
736
|
+
opts = opts || {};
|
|
737
|
+
var postBody = opts['adminUpdateChatFilterWordRequest'];
|
|
738
|
+
// verify the required parameter 'id' is set
|
|
739
|
+
if (id === undefined || id === null) {
|
|
740
|
+
throw new Error("Missing the required parameter 'id' when calling adminUpdateChatFilterWord");
|
|
741
|
+
}
|
|
742
|
+
var pathParams = {
|
|
743
|
+
'id': id
|
|
744
|
+
};
|
|
745
|
+
var queryParams = {};
|
|
746
|
+
var headerParams = {};
|
|
747
|
+
var formParams = {};
|
|
748
|
+
var authNames = ['authorization'];
|
|
749
|
+
var contentTypes = ['application/json'];
|
|
750
|
+
var accepts = ['application/json'];
|
|
751
|
+
var returnType = _AdminUpdateChatFilterWord200Response["default"];
|
|
752
|
+
return this.apiClient.callApi('/api/v1/admin/chat/filter_words/{id}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Update a blocklist word (admin)
|
|
757
|
+
* @param {String} id
|
|
758
|
+
* @param {Object} opts Optional parameters
|
|
759
|
+
* @param {module:model/AdminUpdateChatFilterWordRequest} opts.adminUpdateChatFilterWordRequest Filter word
|
|
760
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminUpdateChatFilterWord200Response}
|
|
761
|
+
*/
|
|
762
|
+
}, {
|
|
763
|
+
key: "adminUpdateChatFilterWord",
|
|
764
|
+
value: function adminUpdateChatFilterWord(id, opts) {
|
|
765
|
+
return this.adminUpdateChatFilterWordWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
766
|
+
return response_and_data.data;
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
}]);
|
|
770
|
+
}();
|