@ughuuu/gamend 1.1.1424 → 1.1.1429
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/README.md +1 -1
- package/dist/ApiClient.js +1 -1
- package/dist/api/AdminAnalyticsApi.js +1 -1
- package/dist/api/AdminBansApi.js +1 -1
- package/dist/api/AdminChatApi.js +1 -1
- package/dist/api/AdminEconomyApi.js +1 -1
- package/dist/api/AdminGroupsApi.js +1 -1
- package/dist/api/AdminKVApi.js +1 -1
- package/dist/api/AdminLeaderboardsApi.js +1 -1
- package/dist/api/AdminLobbiesApi.js +1 -1
- package/dist/api/AdminMatchmakingApi.js +1 -1
- package/dist/api/AdminNotificationsApi.js +1 -1
- package/dist/api/AdminPushApi.js +1 -1
- package/dist/api/AdminQuestsApi.js +1 -1
- package/dist/api/AdminReadyChecksApi.js +1 -1
- package/dist/api/AdminResultsApi.js +1 -1
- package/dist/api/AdminRetentionApi.js +1 -1
- package/dist/api/AdminSessionsApi.js +1 -1
- package/dist/api/AdminStorageApi.js +1 -1
- package/dist/api/AdminTournamentsApi.js +1 -1
- package/dist/api/AdminUsersApi.js +1 -1
- package/dist/api/AuthenticationApi.js +1 -1
- package/dist/api/ChatApi.js +1 -1
- package/dist/api/ClientLogsApi.js +1 -1
- package/dist/api/EconomyApi.js +1 -1
- package/dist/api/FriendsApi.js +1 -1
- package/dist/api/GroupsApi.js +1 -1
- package/dist/api/HealthApi.js +1 -1
- package/dist/api/HooksApi.js +1 -1
- package/dist/api/KVApi.js +1 -1
- package/dist/api/LeaderboardsApi.js +1 -1
- package/dist/api/LobbiesApi.js +1 -1
- package/dist/api/MatchmakingApi.js +1 -1
- package/dist/api/NotificationsApi.js +1 -1
- package/dist/api/PartiesApi.js +1 -1
- package/dist/api/PaymentsApi.js +1 -1
- package/dist/api/PushApi.js +1 -1
- package/dist/api/QuestsApi.js +1 -1
- package/dist/api/ReadyChecksApi.js +1 -1
- package/dist/api/ReportsApi.js +1 -1
- package/dist/api/ResultsApi.js +1 -1
- package/dist/api/SignalingApi.js +1 -1
- package/dist/api/StatsApi.js +1 -1
- package/dist/api/TimeApi.js +1 -1
- package/dist/api/TournamentsApi.js +1 -1
- package/dist/api/UsersApi.js +1 -1
- package/dist/index.d.ts +4523 -0
- package/dist/model/AcceptPartyInviteRequest.js +1 -1
- package/dist/model/AccountBan.js +1 -1
- package/dist/model/ActivityStats.js +1 -1
- package/dist/model/AdminBan.js +1 -1
- package/dist/model/AdminBanPage.js +1 -1
- package/dist/model/AdminBanResponse.js +1 -1
- package/dist/model/AdminClaimQuestRequest.js +1 -1
- package/dist/model/AdminCreateBanRequest.js +1 -1
- package/dist/model/AdminCreateChatFilterWordRequest.js +1 -1
- package/dist/model/AdminCreateKvEntryRequest.js +1 -1
- package/dist/model/AdminCreateLeaderboardRequest.js +1 -1
- package/dist/model/AdminCreateNotificationRequest.js +1 -1
- package/dist/model/AdminCreateQuestCodeRequest.js +1 -1
- package/dist/model/AdminCreateQuestRequest.js +1 -1
- package/dist/model/AdminCreateQuestRequestObjectivesInner.js +1 -1
- package/dist/model/AdminCreateQuestRequestRewardsInner.js +1 -1
- package/dist/model/AdminCreateTournamentRequest.js +1 -1
- package/dist/model/AdminGenerateQuestCodesRequest.js +1 -1
- package/dist/model/AdminGrantCurrencyRequest.js +1 -1
- package/dist/model/AdminGrantItemRequest.js +1 -1
- package/dist/model/AdminGrantQuestRequest.js +1 -1
- package/dist/model/AdminImportChatFilterWordsRequest.js +1 -1
- package/dist/model/AdminInventoryItem.js +1 -1
- package/dist/model/AdminInventoryItemPage.js +1 -1
- package/dist/model/AdminKvEntry.js +1 -1
- package/dist/model/AdminKvEntryPage.js +1 -1
- package/dist/model/AdminKvEntryResponse.js +1 -1
- package/dist/model/AdminLeaderboardIconUploadUrlRequest.js +1 -1
- package/dist/model/AdminLeaderboardRecord.js +1 -1
- package/dist/model/AdminLeaderboardRecordResponse.js +1 -1
- package/dist/model/AdminLedgerEntry.js +1 -1
- package/dist/model/AdminLedgerEntryPage.js +1 -1
- package/dist/model/AdminMatchmakingStats.js +1 -1
- package/dist/model/AdminMatchmakingStatsResponse.js +1 -1
- package/dist/model/AdminMatchmakingTicket.js +1 -1
- package/dist/model/AdminMatchmakingTicketPage.js +1 -1
- package/dist/model/AdminMatchmakingTicketResponse.js +1 -1
- package/dist/model/AdminPushToken.js +1 -1
- package/dist/model/AdminPushTokenPage.js +1 -1
- package/dist/model/AdminQuest.js +1 -1
- package/dist/model/AdminQuestClaim.js +1 -1
- package/dist/model/AdminQuestClaimResponse.js +1 -1
- package/dist/model/AdminQuestCode.js +1 -1
- package/dist/model/AdminQuestCodeBatch.js +1 -1
- package/dist/model/AdminQuestCodeBatchResponse.js +1 -1
- package/dist/model/AdminQuestCodePage.js +1 -1
- package/dist/model/AdminQuestCodeResponse.js +1 -1
- package/dist/model/AdminQuestIconUploadUrlRequest.js +1 -1
- package/dist/model/AdminQuestPage.js +1 -1
- package/dist/model/AdminQuestProgress.js +1 -1
- package/dist/model/AdminQuestProgressPage.js +1 -1
- package/dist/model/AdminQuestProgressResponse.js +1 -1
- package/dist/model/AdminQuestResponse.js +1 -1
- package/dist/model/AdminReadyCheck.js +1 -1
- package/dist/model/AdminReadyCheckPage.js +1 -1
- package/dist/model/AdminReadyCheckResponse.js +1 -1
- package/dist/model/AdminResetQuestRequest.js +1 -1
- package/dist/model/AdminResolveChatReportRequest.js +1 -1
- package/dist/model/AdminResolveTournamentMatchRequest.js +1 -1
- package/dist/model/AdminSendPushRequest.js +1 -1
- package/dist/model/AdminSession.js +1 -1
- package/dist/model/AdminSessionPage.js +1 -1
- package/dist/model/AdminSetLeaderboardIconRequest.js +1 -1
- package/dist/model/AdminSetQuestIconRequest.js +1 -1
- package/dist/model/AdminSetTournamentIconRequest.js +1 -1
- package/dist/model/AdminSpendCurrencyRequest.js +1 -1
- package/dist/model/AdminSubmitLeaderboardScoreRequest.js +1 -1
- package/dist/model/AdminTestChatPhraseRequest.js +1 -1
- package/dist/model/AdminTournament.js +1 -1
- package/dist/model/AdminTournamentIconUploadUrlRequest.js +1 -1
- package/dist/model/AdminTournamentResponse.js +1 -1
- package/dist/model/AdminUpdateChatFilterWordRequest.js +1 -1
- package/dist/model/AdminUpdateGroupRequest.js +1 -1
- package/dist/model/AdminUpdateKvEntryRequest.js +1 -1
- package/dist/model/AdminUpdateLeaderboardRecordRequest.js +1 -1
- package/dist/model/AdminUpdateLeaderboardRequest.js +1 -1
- package/dist/model/AdminUpdateLobbyRequest.js +1 -1
- package/dist/model/AdminUpdateQuestCodeRequest.js +1 -1
- package/dist/model/AdminUpdateQuestRequest.js +1 -1
- package/dist/model/AdminUpdateTournamentRequest.js +1 -1
- package/dist/model/AdminUpdateUserRequest.js +1 -1
- package/dist/model/AdminUpsertKvRequest.js +1 -1
- package/dist/model/AdminUser.js +1 -1
- package/dist/model/AdminUserResponse.js +1 -1
- package/dist/model/AdminWallet.js +1 -1
- package/dist/model/AdminWalletPage.js +1 -1
- package/dist/model/AnalyticsCounts.js +1 -1
- package/dist/model/AnalyticsCountsResponse.js +1 -1
- package/dist/model/AnalyticsDaily.js +1 -1
- package/dist/model/AnalyticsDailyResponse.js +1 -1
- package/dist/model/AnalyticsDay.js +1 -1
- package/dist/model/AnalyticsEconomy.js +1 -1
- package/dist/model/AnalyticsEconomyResponse.js +1 -1
- package/dist/model/AnalyticsSummary.js +1 -1
- package/dist/model/AnalyticsSummaryResponse.js +1 -1
- package/dist/model/AuthProvidersResponse.js +1 -1
- package/dist/model/BlockedFriendship.js +1 -1
- package/dist/model/BlockedFriendshipPage.js +1 -1
- package/dist/model/CallHookRequest.js +1 -1
- package/dist/model/CancelPartyInviteRequest.js +1 -1
- package/dist/model/CancelledCount.js +1 -1
- package/dist/model/CancelledCountResponse.js +1 -1
- package/dist/model/ChatFilterHit.js +1 -1
- package/dist/model/ChatFilterLanguages.js +1 -1
- package/dist/model/ChatFilterLanguagesResponse.js +1 -1
- package/dist/model/ChatFilterTest.js +1 -1
- package/dist/model/ChatFilterTestResponse.js +1 -1
- package/dist/model/ChatFilterWord.js +1 -1
- package/dist/model/ChatFilterWordPage.js +1 -1
- package/dist/model/ChatFilterWordResponse.js +1 -1
- package/dist/model/ChatMessage.js +1 -1
- package/dist/model/ChatMessagePage.js +1 -1
- package/dist/model/ChatMessageResponse.js +1 -1
- package/dist/model/ChatMuteRecord.js +1 -1
- package/dist/model/ChatMuteRecordPage.js +1 -1
- package/dist/model/ChatMuteRecordResponse.js +1 -1
- package/dist/model/ChatReadCursor.js +1 -1
- package/dist/model/ChatReadCursorResponse.js +1 -1
- package/dist/model/ChatReport.js +1 -1
- package/dist/model/ChatReportPage.js +1 -1
- package/dist/model/ChatReportResponse.js +1 -1
- package/dist/model/ChatUnread.js +1 -1
- package/dist/model/ChatUnreadResponse.js +1 -1
- package/dist/model/ClientLogBatch.js +1 -1
- package/dist/model/ClientLogEntry.js +1 -1
- package/dist/model/ClientLogPolicy.js +1 -1
- package/dist/model/ClientLogPolicyResponse.js +1 -1
- package/dist/model/ClientLogResult.js +1 -1
- package/dist/model/ClientLogResultResponse.js +1 -1
- package/dist/model/ClientLogSession.js +1 -1
- package/dist/model/ConfirmRegistrationRequest.js +1 -1
- package/dist/model/CounterTotal.js +1 -1
- package/dist/model/CreateCurrentUserAvatarUploadUrlRequest.js +1 -1
- package/dist/model/CreateFriendRequestRequest.js +1 -1
- package/dist/model/CreateGroupIconUploadUrlRequest.js +1 -1
- package/dist/model/CreateGroupRequest.js +1 -1
- package/dist/model/CreateLobbyRequest.js +1 -1
- package/dist/model/CreatePartyRequest.js +1 -1
- package/dist/model/CurrentUser.js +1 -1
- package/dist/model/CurrentUserResponse.js +1 -1
- package/dist/model/DeclinePartyInviteRequest.js +1 -1
- package/dist/model/DeleteCurrentUserRequest.js +1 -1
- package/dist/model/DeleteNotificationsRequest.js +1 -1
- package/dist/model/DeletedCount.js +1 -1
- package/dist/model/DeletedCountResponse.js +1 -1
- package/dist/model/DemoteGroupMemberRequest.js +1 -1
- package/dist/model/DeviceLoginRequest.js +1 -1
- package/dist/model/EconomyFlowDay.js +1 -1
- package/dist/model/EconomyTotal.js +1 -1
- package/dist/model/Entitlement.js +1 -1
- package/dist/model/EntitlementPage.js +1 -1
- package/dist/model/ErrorResponse.js +1 -1
- package/dist/model/Friend.js +1 -1
- package/dist/model/FriendPage.js +1 -1
- package/dist/model/FriendRequest.js +1 -1
- package/dist/model/FriendRequestLists.js +1 -1
- package/dist/model/FriendRequestMeta.js +1 -1
- package/dist/model/FriendRequestResponse.js +1 -1
- package/dist/model/FriendRequestsResponse.js +1 -1
- package/dist/model/Group.js +1 -1
- package/dist/model/GroupInvite.js +1 -1
- package/dist/model/GroupInviteLink.js +1 -1
- package/dist/model/GroupInviteLinkPreview.js +1 -1
- package/dist/model/GroupInviteLinkPreviewResponse.js +1 -1
- package/dist/model/GroupInviteLinkResponse.js +1 -1
- package/dist/model/GroupInviteOutcome.js +1 -1
- package/dist/model/GroupInviteOutcomeResponse.js +1 -1
- package/dist/model/GroupInvitePage.js +1 -1
- package/dist/model/GroupJoinRequest.js +1 -1
- package/dist/model/GroupJoinRequestPage.js +1 -1
- package/dist/model/GroupJoinRequestResponse.js +1 -1
- package/dist/model/GroupMember.js +1 -1
- package/dist/model/GroupMemberPage.js +1 -1
- package/dist/model/GroupMemberResponse.js +1 -1
- package/dist/model/GroupPage.js +1 -1
- package/dist/model/GroupResponse.js +1 -1
- package/dist/model/Health.js +1 -1
- package/dist/model/HealthResponse.js +1 -1
- package/dist/model/HookCallResponse.js +1 -1
- package/dist/model/HookFunction.js +1 -1
- package/dist/model/HookFunctionPage.js +1 -1
- package/dist/model/HookSignature.js +1 -1
- package/dist/model/ImportedCount.js +1 -1
- package/dist/model/ImportedCountResponse.js +1 -1
- package/dist/model/InventoryResponse.js +1 -1
- package/dist/model/InviteToGroupRequest.js +1 -1
- package/dist/model/InviteToPartyRequest.js +1 -1
- package/dist/model/ItemQuantity.js +1 -1
- package/dist/model/ItemQuantityResponse.js +1 -1
- package/dist/model/JoinLobbyRequest.js +1 -1
- package/dist/model/KickGroupMemberRequest.js +1 -1
- package/dist/model/KickPartyMemberRequest.js +1 -1
- package/dist/model/KickUserRequest.js +1 -1
- package/dist/model/KvEntry.js +1 -1
- package/dist/model/KvEntryResponse.js +1 -1
- package/dist/model/Leaderboard.js +1 -1
- package/dist/model/LeaderboardKeys.js +1 -1
- package/dist/model/LeaderboardKeysResponse.js +1 -1
- package/dist/model/LeaderboardPage.js +1 -1
- package/dist/model/LeaderboardRecord.js +1 -1
- package/dist/model/LeaderboardRecordPage.js +1 -1
- package/dist/model/LeaderboardRecordResponse.js +1 -1
- package/dist/model/LeaderboardResponse.js +1 -1
- package/dist/model/LeaderboardsBySlugResponse.js +1 -1
- package/dist/model/LedgerEntry.js +1 -1
- package/dist/model/LedgerEntryPage.js +1 -1
- package/dist/model/LinkAppleIosRequest.js +1 -1
- package/dist/model/LinkDeviceRequest.js +1 -1
- package/dist/model/LinkGoogleIdTokenRequest.js +1 -1
- package/dist/model/LinkProviderRequest.js +1 -1
- package/dist/model/LinkedProviders.js +1 -1
- package/dist/model/Lobby.js +1 -1
- package/dist/model/LobbyPage.js +1 -1
- package/dist/model/LobbyResponse.js +1 -1
- package/dist/model/LobbyStats.js +1 -1
- package/dist/model/LobbyStatsResponse.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/MarkChatReadRequest.js +1 -1
- package/dist/model/MatchmakingJoinRequest.js +1 -1
- package/dist/model/MatchmakingQueue.js +1 -1
- package/dist/model/MatchmakingStats.js +1 -1
- package/dist/model/MatchmakingStatsResponse.js +1 -1
- package/dist/model/MatchmakingTicket.js +1 -1
- package/dist/model/MatchmakingTicketResponse.js +1 -1
- package/dist/model/MuteGroupMemberRequest.js +1 -1
- package/dist/model/MuteLobbyMemberRequest.js +1 -1
- package/dist/model/MutePartyMemberRequest.js +1 -1
- package/dist/model/MyReadyChecks.js +1 -1
- package/dist/model/MyReadyChecksResponse.js +1 -1
- package/dist/model/Notification.js +1 -1
- package/dist/model/NotificationPage.js +1 -1
- package/dist/model/NotificationResponse.js +1 -1
- package/dist/model/OAuthAuthorization.js +1 -1
- package/dist/model/OAuthAuthorizationResponse.js +1 -1
- package/dist/model/OAuthSessionStatus.js +1 -1
- package/dist/model/OAuthSessionStatusResponse.js +1 -1
- package/dist/model/OauthApiCallbackRequest.js +1 -1
- package/dist/model/OauthCallbackApiAppleIosRequest.js +1 -1
- package/dist/model/OauthGoogleIdTokenRequest.js +1 -1
- package/dist/model/OkResponse.js +1 -1
- package/dist/model/OpenLobbyReadyCheckRequest.js +1 -1
- package/dist/model/OpenPartyReadyCheckRequest.js +1 -1
- package/dist/model/PageMeta.js +1 -1
- package/dist/model/Party.js +1 -1
- package/dist/model/PartyCreateLobbyRequest.js +1 -1
- package/dist/model/PartyInvite.js +1 -1
- package/dist/model/PartyInvitePage.js +1 -1
- package/dist/model/PartyJoinLobbyRequest.js +1 -1
- package/dist/model/PartyResponse.js +1 -1
- package/dist/model/PartyStats.js +1 -1
- package/dist/model/PartyStatsResponse.js +1 -1
- package/dist/model/PaymentCatalogEntry.js +1 -1
- package/dist/model/PaymentCatalogEntryPage.js +1 -1
- package/dist/model/PaymentProduct.js +1 -1
- package/dist/model/PaymentWebhookReceipt.js +1 -1
- package/dist/model/PaymentWebhookReceiptResponse.js +1 -1
- package/dist/model/PaymentsSteamCheckoutRequest.js +1 -1
- package/dist/model/PaymentsSteamFinalizeRequest.js +1 -1
- package/dist/model/PaymentsStripeCheckoutRequest.js +1 -1
- package/dist/model/PlayResult.js +1 -1
- package/dist/model/PlayResultEvent.js +1 -1
- package/dist/model/PlayResultEvents.js +1 -1
- package/dist/model/PlayResultEventsResponse.js +1 -1
- package/dist/model/PlayResultPage.js +1 -1
- package/dist/model/PlayResultResponse.js +1 -1
- package/dist/model/PlayResultStat.js +1 -1
- package/dist/model/PlayerStats.js +1 -1
- package/dist/model/PlayerStatsResponse.js +1 -1
- package/dist/model/PromoteGroupMemberRequest.js +1 -1
- package/dist/model/ProviderLinkStatus.js +1 -1
- package/dist/model/ProviderLinkStatusResponse.js +1 -1
- package/dist/model/PublicUser.js +1 -1
- package/dist/model/PublicUserPage.js +1 -1
- package/dist/model/PublicUserResponse.js +1 -1
- package/dist/model/Purchase.js +1 -1
- package/dist/model/PurchaseResponse.js +1 -1
- package/dist/model/PurchaseValidation.js +1 -1
- package/dist/model/PurchaseValidationResponse.js +1 -1
- package/dist/model/PushToken.js +1 -1
- package/dist/model/PushTokenPage.js +1 -1
- package/dist/model/PushTokenResponse.js +1 -1
- package/dist/model/Quest.js +1 -1
- package/dist/model/QuestClaim.js +1 -1
- package/dist/model/QuestClaimResponse.js +1 -1
- package/dist/model/QuestFunnelResponse.js +1 -1
- package/dist/model/QuestObjective.js +1 -1
- package/dist/model/QuestPage.js +1 -1
- package/dist/model/QuestProgress.js +1 -1
- package/dist/model/QuestReward.js +1 -1
- package/dist/model/QuestStats.js +1 -1
- package/dist/model/QuestStatsResponse.js +1 -1
- package/dist/model/QuickJoinRequest.js +1 -1
- package/dist/model/ReadyCheckOutcomesResponse.js +1 -1
- package/dist/model/ReadyCheckParticipant.js +1 -1
- package/dist/model/ReadyCheckState.js +1 -1
- package/dist/model/ReadyCheckStateResponse.js +1 -1
- package/dist/model/RedeemQuestCodeRequest.js +1 -1
- package/dist/model/RefreshTokenRequest.js +1 -1
- package/dist/model/RegisterPushTokenRequest.js +1 -1
- package/dist/model/RegisterRequest.js +1 -1
- package/dist/model/Registration.js +1 -1
- package/dist/model/RegistrationResponse.js +1 -1
- package/dist/model/ReportChatMessageRequest.js +1 -1
- package/dist/model/ReportKind.js +1 -1
- package/dist/model/ReportKinds.js +1 -1
- package/dist/model/ReportKindsResponse.js +1 -1
- package/dist/model/ReportReceipt.js +1 -1
- package/dist/model/ReportReceiptResponse.js +1 -1
- package/dist/model/ReportRequest.js +1 -1
- package/dist/model/ResendConfirmationRequest.js +1 -1
- package/dist/model/ResolveLeaderboardSlugsRequest.js +1 -1
- package/dist/model/RespondReadyCheckRequest.js +1 -1
- package/dist/model/RetentionStatus.js +1 -1
- package/dist/model/RetentionStatusResponse.js +1 -1
- package/dist/model/SendChatMessageRequest.js +1 -1
- package/dist/model/SendNotificationRequest.js +1 -1
- package/dist/model/ServerStats.js +1 -1
- package/dist/model/ServerStatsResponse.js +1 -1
- package/dist/model/ServerTime.js +1 -1
- package/dist/model/ServerTimeResponse.js +1 -1
- package/dist/model/Session.js +1 -1
- package/dist/model/SessionResponse.js +1 -1
- package/dist/model/SetCurrentUserAvatarRequest.js +1 -1
- package/dist/model/SetGroupIconRequest.js +1 -1
- package/dist/model/SetLobbyStateRequest.js +1 -1
- package/dist/model/SignalingStats.js +1 -1
- package/dist/model/SignalingStatsResponse.js +1 -1
- package/dist/model/SteamCheckout.js +1 -1
- package/dist/model/SteamCheckoutResponse.js +1 -1
- package/dist/model/StorageObject.js +1 -1
- package/dist/model/StorageObjectPage.js +1 -1
- package/dist/model/StorageObjectResponse.js +1 -1
- package/dist/model/StorageUsage.js +1 -1
- package/dist/model/StorageUsageResponse.js +1 -1
- package/dist/model/StripeCheckout.js +1 -1
- package/dist/model/StripeCheckoutResponse.js +1 -1
- package/dist/model/Tournament.js +1 -1
- package/dist/model/TournamentBracket.js +1 -1
- package/dist/model/TournamentBracketPage.js +1 -1
- package/dist/model/TournamentEntry.js +1 -1
- package/dist/model/TournamentEntryPage.js +1 -1
- package/dist/model/TournamentEntryResponse.js +1 -1
- package/dist/model/TournamentMatch.js +1 -1
- package/dist/model/TournamentMatchCounts.js +1 -1
- package/dist/model/TournamentMatchResponse.js +1 -1
- package/dist/model/TournamentPage.js +1 -1
- package/dist/model/TournamentPlacement.js +1 -1
- package/dist/model/TournamentResponse.js +1 -1
- package/dist/model/TournamentStandings.js +1 -1
- package/dist/model/TournamentStandingsResponse.js +1 -1
- package/dist/model/TournamentStats.js +1 -1
- package/dist/model/UnmuteGroupMemberRequest.js +1 -1
- package/dist/model/UnmuteLobbyMemberRequest.js +1 -1
- package/dist/model/UnmutePartyMemberRequest.js +1 -1
- package/dist/model/UpdateChatMessageRequest.js +1 -1
- package/dist/model/UpdateCurrentUserDisplayNameRequest.js +1 -1
- package/dist/model/UpdateCurrentUserPasswordRequest.js +1 -1
- package/dist/model/UpdateCurrentUserUsernameRequest.js +1 -1
- package/dist/model/UpdateGroupRequest.js +1 -1
- package/dist/model/UpdateLobbyRequest.js +1 -1
- package/dist/model/UpdatePartyRequest.js +1 -1
- package/dist/model/UploadTicket.js +1 -1
- package/dist/model/UploadTicketResponse.js +1 -1
- package/dist/model/UserBrief.js +1 -1
- package/dist/model/UserBriefPage.js +1 -1
- package/dist/model/WalletBalance.js +1 -1
- package/dist/model/WalletBalanceResponse.js +1 -1
- package/dist/model/WalletBalancesResponse.js +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4523 @@
|
|
|
1
|
+
// Written by clients/sdkgen (ts) from the OpenAPI document and
|
|
2
|
+
// clients/gamend_client.d.ts. Do not edit.
|
|
3
|
+
|
|
4
|
+
// The hand-written half of the package's types: what realtime.js, session.js
|
|
5
|
+
// and webrtc.js export, and the generated ApiClient. `clients/sdkgen ts` puts
|
|
6
|
+
// this at the top of dist/index.d.ts. `clients/sdkgen lint` fails when one of
|
|
7
|
+
// those files gains a public method that is not declared here.
|
|
8
|
+
|
|
9
|
+
/** A reply being waited for. Chain `receive` for each status. */
|
|
10
|
+
export interface PhoenixPush {
|
|
11
|
+
receive(status: 'ok' | 'error' | 'timeout', callback: (response: any) => void): PhoenixPush;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** A joined Phoenix channel. `E` names the events its topic sends. */
|
|
15
|
+
export interface PhoenixChannel<E extends string = string> {
|
|
16
|
+
readonly topic: string;
|
|
17
|
+
readonly state: string;
|
|
18
|
+
on(event: E | (string & {}), callback: (payload: any) => void): number;
|
|
19
|
+
off(event: string, ref?: number): void;
|
|
20
|
+
push(event: string, payload?: object, timeout?: number): PhoenixPush;
|
|
21
|
+
leave(timeout?: number): PhoenixPush;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Phoenix.Socket options, and `format: 'protobuf'` for binary event frames. */
|
|
25
|
+
export interface SocketOptions {
|
|
26
|
+
format?: 'json' | 'protobuf';
|
|
27
|
+
[phoenixOption: string]: unknown;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** A protobufjs class, or a function that reads the bytes. */
|
|
31
|
+
export type ProtoSchema = object | ((bytes: Uint8Array) => unknown);
|
|
32
|
+
|
|
33
|
+
/** Whose key-value row a key names: the caller's own when left out. */
|
|
34
|
+
export interface KvScope {
|
|
35
|
+
user_id?: string;
|
|
36
|
+
lobby_id?: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class GameRealtime {
|
|
40
|
+
constructor(
|
|
41
|
+
serverUrl: string,
|
|
42
|
+
getToken: () => string | null | Promise<string | null>,
|
|
43
|
+
socketOpts?: SocketOptions,
|
|
44
|
+
);
|
|
45
|
+
/** The underlying Phoenix.Socket. */
|
|
46
|
+
readonly socket: any;
|
|
47
|
+
registerMetaSchema(entity: 'user' | 'lobby' | 'group' | 'party', schema: ProtoSchema): void;
|
|
48
|
+
registerKvSchema(pattern: string, schema: ProtoSchema): void;
|
|
49
|
+
joinUserChannel(userId: string, params?: object): PhoenixChannel<UserChannelEvent>;
|
|
50
|
+
joinLobbyChannel(lobbyId: string, params?: object): PhoenixChannel<LobbyChannelEvent>;
|
|
51
|
+
joinLobbiesChannel(params?: object): PhoenixChannel<LobbiesChannelEvent>;
|
|
52
|
+
joinGroupChannel(groupId: string, params?: object): PhoenixChannel<GroupChannelEvent>;
|
|
53
|
+
joinGroupsChannel(params?: object): PhoenixChannel<GroupsChannelEvent>;
|
|
54
|
+
joinPartyChannel(partyId: string, params?: object): PhoenixChannel<PartyChannelEvent>;
|
|
55
|
+
joinSignalingChannel(lobbyId: string, params?: object): PhoenixChannel<SignalingChannelEvent>;
|
|
56
|
+
joinChannel(topic: string, params?: object): PhoenixChannel;
|
|
57
|
+
leaveChannel(topic: string): void;
|
|
58
|
+
channel(topic: string): PhoenixChannel | undefined;
|
|
59
|
+
push(event: string, payload?: object, topic?: string): PhoenixPush;
|
|
60
|
+
callHook(plugin: string, fn: string, args?: unknown[]): Promise<any>;
|
|
61
|
+
kvSubscribe(key: string, scope?: KvScope): Promise<any>;
|
|
62
|
+
kvUnsubscribe(key: string, scope?: KvScope): Promise<any>;
|
|
63
|
+
resultsList(params?: {
|
|
64
|
+
kind?: string;
|
|
65
|
+
status?: string;
|
|
66
|
+
page?: number;
|
|
67
|
+
page_size?: number;
|
|
68
|
+
}): Promise<any>;
|
|
69
|
+
resultsGet(id: string): Promise<any>;
|
|
70
|
+
resultsEvents(id: string, params?: { after?: string; limit?: number }): Promise<any>;
|
|
71
|
+
lobbyGetServerTime(lobbyId: string): Promise<{ server_now: number }>;
|
|
72
|
+
signalingOffer(lobbyId: string, target: string, sdp: string): Promise<any>;
|
|
73
|
+
signalingAnswer(lobbyId: string, target: string, sdp: string): Promise<any>;
|
|
74
|
+
signalingIce(lobbyId: string, target: string, candidate: object): Promise<any>;
|
|
75
|
+
signalingBroadcastOffer(lobbyId: string, sdp: string): Promise<any>;
|
|
76
|
+
signalingListUsers(lobbyId: string): Promise<any>;
|
|
77
|
+
disconnect(): void;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** What `GamendSession.session` answers and `restore` takes. */
|
|
81
|
+
export interface SavedSession {
|
|
82
|
+
access_token: string | null;
|
|
83
|
+
refresh_token: string;
|
|
84
|
+
/** Unix milliseconds. */
|
|
85
|
+
expires_at: number;
|
|
86
|
+
user_id: string | null;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export class GamendSession {
|
|
90
|
+
constructor(serverUrl: string);
|
|
91
|
+
/** Hand this to every generated API class: `new LobbiesApi(gamend.client)`. */
|
|
92
|
+
readonly client: ApiClient;
|
|
93
|
+
readonly signedIn: boolean;
|
|
94
|
+
readonly userId: string | null;
|
|
95
|
+
readonly session: SavedSession | null;
|
|
96
|
+
restore(saved: SavedSession | null): void;
|
|
97
|
+
on(event: 'session', listener: (session: SavedSession | null) => void): () => void;
|
|
98
|
+
on(event: 'authFailed', listener: () => void): () => void;
|
|
99
|
+
getAccessToken(): Promise<string | null>;
|
|
100
|
+
refresh(): Promise<boolean>;
|
|
101
|
+
realtime(socketOpts?: SocketOptions): GameRealtime;
|
|
102
|
+
signOut(): Promise<void>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface DataChannelDefinition {
|
|
106
|
+
label: string;
|
|
107
|
+
ordered?: boolean;
|
|
108
|
+
maxRetransmits?: number;
|
|
109
|
+
maxPacketLifeTime?: number;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface GameWebRTCOptions {
|
|
113
|
+
dataChannels?: DataChannelDefinition[];
|
|
114
|
+
iceServers?: object[];
|
|
115
|
+
format?: 'json' | 'protobuf';
|
|
116
|
+
onData?: (label: string, data: ArrayBuffer | string) => void;
|
|
117
|
+
onChannelOpen?: (label: string) => void;
|
|
118
|
+
onChannelClose?: (label: string) => void;
|
|
119
|
+
onStateChange?: (state: string) => void;
|
|
120
|
+
onError?: (error: Error) => void;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export class GameWebRTC {
|
|
124
|
+
constructor(channel: PhoenixChannel, opts?: GameWebRTCOptions);
|
|
125
|
+
connectionState: string;
|
|
126
|
+
connect(): Promise<void>;
|
|
127
|
+
send(label: string, data: string | ArrayBuffer | Blob): boolean;
|
|
128
|
+
callHook(plugin: string, fn: string, args?: unknown[], timeoutMs?: number): Promise<any>;
|
|
129
|
+
callHookRaw(plugin: string, fn: string, bytes: Uint8Array, timeoutMs?: number): Promise<Uint8Array>;
|
|
130
|
+
isChannelOpen(label: string): boolean;
|
|
131
|
+
isConnected(): boolean;
|
|
132
|
+
close(): void;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export class ApiClient {
|
|
136
|
+
constructor(basePath?: string);
|
|
137
|
+
static instance: ApiClient;
|
|
138
|
+
basePath: string;
|
|
139
|
+
authentications: { authorization: { type: string; accessToken: string | null } };
|
|
140
|
+
defaultHeaders: Record<string, string>;
|
|
141
|
+
timeout: number;
|
|
142
|
+
cache: boolean;
|
|
143
|
+
enableCookies: boolean;
|
|
144
|
+
callApi(...args: any[]): Promise<{ data: any; response: any }>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export { GameRealtime as default_GameRealtime };
|
|
148
|
+
export { GameWebRTC as default_GameWebRTC };
|
|
149
|
+
export { GamendSession as default_GamendSession };
|
|
150
|
+
|
|
151
|
+
export type GroupChannelEvent =
|
|
152
|
+
"updated"
|
|
153
|
+
| "member_joined"
|
|
154
|
+
| "member_left"
|
|
155
|
+
| "member_kicked"
|
|
156
|
+
| "member_promoted"
|
|
157
|
+
| "member_demoted"
|
|
158
|
+
| "member_online"
|
|
159
|
+
| "member_offline"
|
|
160
|
+
| "member_updated"
|
|
161
|
+
| "join_request_approved"
|
|
162
|
+
| "join_request_rejected"
|
|
163
|
+
| "chat_message_created"
|
|
164
|
+
| "chat_message_updated"
|
|
165
|
+
| "chat_message_deleted";
|
|
166
|
+
|
|
167
|
+
export type GroupsChannelEvent =
|
|
168
|
+
"group_created"
|
|
169
|
+
| "group_updated"
|
|
170
|
+
| "group_deleted";
|
|
171
|
+
|
|
172
|
+
export type LobbiesChannelEvent =
|
|
173
|
+
"lobby_created"
|
|
174
|
+
| "lobby_updated"
|
|
175
|
+
| "lobby_deleted"
|
|
176
|
+
| "lobby_membership_changed";
|
|
177
|
+
|
|
178
|
+
export type LobbyChannelEvent =
|
|
179
|
+
"updated"
|
|
180
|
+
| "user_joined"
|
|
181
|
+
| "user_left"
|
|
182
|
+
| "user_kicked"
|
|
183
|
+
| "user_online"
|
|
184
|
+
| "user_offline"
|
|
185
|
+
| "user_updated"
|
|
186
|
+
| "host_changed"
|
|
187
|
+
| "state_changed"
|
|
188
|
+
| "ready_check_started"
|
|
189
|
+
| "ready_check_updated"
|
|
190
|
+
| "ready_check_passed"
|
|
191
|
+
| "ready_check_failed"
|
|
192
|
+
| "chat_message_created"
|
|
193
|
+
| "chat_message_updated"
|
|
194
|
+
| "chat_message_deleted"
|
|
195
|
+
| "result_started"
|
|
196
|
+
| "result_event"
|
|
197
|
+
| "result_ended";
|
|
198
|
+
|
|
199
|
+
export type PartyChannelEvent =
|
|
200
|
+
"updated"
|
|
201
|
+
| "member_joined"
|
|
202
|
+
| "member_left"
|
|
203
|
+
| "member_online"
|
|
204
|
+
| "member_offline"
|
|
205
|
+
| "member_updated"
|
|
206
|
+
| "disbanded"
|
|
207
|
+
| "ready_check_started"
|
|
208
|
+
| "ready_check_updated"
|
|
209
|
+
| "ready_check_passed"
|
|
210
|
+
| "ready_check_failed"
|
|
211
|
+
| "chat_message_created"
|
|
212
|
+
| "chat_message_updated"
|
|
213
|
+
| "chat_message_deleted";
|
|
214
|
+
|
|
215
|
+
export type SignalingChannelEvent =
|
|
216
|
+
"user_joined"
|
|
217
|
+
| "user_rejoined"
|
|
218
|
+
| "user_left"
|
|
219
|
+
| "offer"
|
|
220
|
+
| "answer"
|
|
221
|
+
| "ice"
|
|
222
|
+
| "room_closed";
|
|
223
|
+
|
|
224
|
+
export type UserChannelEvent =
|
|
225
|
+
"updated"
|
|
226
|
+
| "notification_created"
|
|
227
|
+
| "friend_updated"
|
|
228
|
+
| "kv_updated"
|
|
229
|
+
| "kv_deleted"
|
|
230
|
+
| "wallet_updated"
|
|
231
|
+
| "inventory_updated"
|
|
232
|
+
| "result_started"
|
|
233
|
+
| "result_event"
|
|
234
|
+
| "result_ended"
|
|
235
|
+
| "chat_message_created"
|
|
236
|
+
| "chat_message_updated"
|
|
237
|
+
| "chat_message_deleted"
|
|
238
|
+
| "chat_muted"
|
|
239
|
+
| "chat_unmuted"
|
|
240
|
+
| "account_banned"
|
|
241
|
+
| "account_unbanned"
|
|
242
|
+
| "quest_progress"
|
|
243
|
+
| "quest_completed"
|
|
244
|
+
| "quest_claimed"
|
|
245
|
+
| "group_invite_accepted"
|
|
246
|
+
| "group_invite_cancelled"
|
|
247
|
+
| "group_join_request_approved"
|
|
248
|
+
| "group_join_request_rejected"
|
|
249
|
+
| "party_invite_accepted"
|
|
250
|
+
| "party_invite_cancelled"
|
|
251
|
+
| "party_invite_declined"
|
|
252
|
+
| "match_found"
|
|
253
|
+
| "ticket_queued"
|
|
254
|
+
| "ticket_cancelled"
|
|
255
|
+
| "ready_check_started"
|
|
256
|
+
| "ready_check_updated"
|
|
257
|
+
| "ready_check_passed"
|
|
258
|
+
| "ready_check_failed"
|
|
259
|
+
| "outgoing_request"
|
|
260
|
+
| "incoming_request"
|
|
261
|
+
| "request_cancelled"
|
|
262
|
+
| "friend_accepted"
|
|
263
|
+
| "friend_rejected"
|
|
264
|
+
| "friend_removed"
|
|
265
|
+
| "friend_blocked"
|
|
266
|
+
| "friend_unblocked"
|
|
267
|
+
| "tournament_updated"
|
|
268
|
+
| "tournament_finished"
|
|
269
|
+
| "tournament_match_ready"
|
|
270
|
+
| "tournament_match_resolved"
|
|
271
|
+
| "webrtc:answer"
|
|
272
|
+
| "webrtc:ice"
|
|
273
|
+
| "webrtc:channel_open"
|
|
274
|
+
| "webrtc:channel_closed"
|
|
275
|
+
| "webrtc:state";
|
|
276
|
+
|
|
277
|
+
/** The account is banned: it can read and delete itself, every other call answers 403 `account_banned` */
|
|
278
|
+
export class AccountBan {
|
|
279
|
+
constructor(...required: any[]);
|
|
280
|
+
static constructFromObject(data: unknown, obj?: AccountBan): AccountBan;
|
|
281
|
+
static validateJSON(data: unknown): boolean;
|
|
282
|
+
/** When the ban ends; null for a permanent ban */
|
|
283
|
+
expires_at: Date | null;
|
|
284
|
+
/** Why, for the player; may be empty */
|
|
285
|
+
reason: string;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/** Active and new player counts */
|
|
289
|
+
export class ActivityStats {
|
|
290
|
+
constructor(...required: any[]);
|
|
291
|
+
static constructFromObject(data: unknown, obj?: ActivityStats): ActivityStats;
|
|
292
|
+
static validateJSON(data: unknown): boolean;
|
|
293
|
+
dau: number;
|
|
294
|
+
mau: number;
|
|
295
|
+
new_users_1d: number;
|
|
296
|
+
new_users_30d: number;
|
|
297
|
+
new_users_7d: number;
|
|
298
|
+
wau: number;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/** An IP, account or chat ban, active or ended */
|
|
302
|
+
export class AdminBan {
|
|
303
|
+
constructor(...required: any[]);
|
|
304
|
+
static constructFromObject(data: unknown, obj?: AdminBan): AdminBan;
|
|
305
|
+
static validateJSON(data: unknown): boolean;
|
|
306
|
+
static readonly KindEnum: { readonly "ip": "ip"; readonly "account": "account"; readonly "chat": "chat" };
|
|
307
|
+
static readonly SourceEnum: { readonly "admin": "admin"; readonly "api": "api"; readonly "room": "room"; readonly "plugin": "plugin"; readonly "system": "system" };
|
|
308
|
+
/** In force now */
|
|
309
|
+
active: boolean;
|
|
310
|
+
/** Empty when no one placed it by hand */
|
|
311
|
+
banned_by: string;
|
|
312
|
+
banned_by_name: string;
|
|
313
|
+
expires_at: Date | null;
|
|
314
|
+
id: string;
|
|
315
|
+
inserted_at: Date;
|
|
316
|
+
kind: "ip" | "account" | "chat";
|
|
317
|
+
lifted_at: Date | null;
|
|
318
|
+
/** Empty unless an admin lifted it */
|
|
319
|
+
lifted_by: string;
|
|
320
|
+
lifted_by_name: string;
|
|
321
|
+
reason: string;
|
|
322
|
+
/** A chat ban's reach (`global`, `lobby`, `group`, `party`); empty otherwise */
|
|
323
|
+
scope: string;
|
|
324
|
+
/** A scoped chat ban's room; empty otherwise */
|
|
325
|
+
scope_ref_id: string;
|
|
326
|
+
source: "admin" | "api" | "room" | "plugin" | "system";
|
|
327
|
+
/** The IP (an IPv6 one as its /64), or the user id */
|
|
328
|
+
subject: string;
|
|
329
|
+
updated_at: Date;
|
|
330
|
+
/** The banned user; empty for an IP ban */
|
|
331
|
+
user_id: string;
|
|
332
|
+
user_name: string;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/** A page of AdminBan rows */
|
|
336
|
+
export class AdminBanPage {
|
|
337
|
+
constructor(...required: any[]);
|
|
338
|
+
static constructFromObject(data: unknown, obj?: AdminBanPage): AdminBanPage;
|
|
339
|
+
static validateJSON(data: unknown): boolean;
|
|
340
|
+
data: AdminBan[];
|
|
341
|
+
meta: PageMeta;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/** AdminBan under `data` */
|
|
345
|
+
export class AdminBanResponse {
|
|
346
|
+
constructor(...required: any[]);
|
|
347
|
+
static constructFromObject(data: unknown, obj?: AdminBanResponse): AdminBanResponse;
|
|
348
|
+
static validateJSON(data: unknown): boolean;
|
|
349
|
+
data: AdminBan;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/** An item stack */
|
|
353
|
+
export class AdminInventoryItem {
|
|
354
|
+
constructor(...required: any[]);
|
|
355
|
+
static constructFromObject(data: unknown, obj?: AdminInventoryItem): AdminInventoryItem;
|
|
356
|
+
static validateJSON(data: unknown): boolean;
|
|
357
|
+
id: string;
|
|
358
|
+
item: string;
|
|
359
|
+
metadata: Record<string, any>;
|
|
360
|
+
quantity: number;
|
|
361
|
+
user_id: string;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/** A page of AdminInventoryItem rows */
|
|
365
|
+
export class AdminInventoryItemPage {
|
|
366
|
+
constructor(...required: any[]);
|
|
367
|
+
static constructFromObject(data: unknown, obj?: AdminInventoryItemPage): AdminInventoryItemPage;
|
|
368
|
+
static validateJSON(data: unknown): boolean;
|
|
369
|
+
data: AdminInventoryItem[];
|
|
370
|
+
meta: PageMeta;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/** A stored key/value entry */
|
|
374
|
+
export class AdminKvEntry {
|
|
375
|
+
constructor(...required: any[]);
|
|
376
|
+
static constructFromObject(data: unknown, obj?: AdminKvEntry): AdminKvEntry;
|
|
377
|
+
static validateJSON(data: unknown): boolean;
|
|
378
|
+
data: Record<string, any>;
|
|
379
|
+
id: string;
|
|
380
|
+
inserted_at: Date;
|
|
381
|
+
key: string;
|
|
382
|
+
/** Empty when not lobby-scoped */
|
|
383
|
+
lobby_id: string;
|
|
384
|
+
metadata: Record<string, any>;
|
|
385
|
+
updated_at: Date;
|
|
386
|
+
/** Empty when not user-scoped */
|
|
387
|
+
user_id: string;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/** A page of AdminKvEntry rows */
|
|
391
|
+
export class AdminKvEntryPage {
|
|
392
|
+
constructor(...required: any[]);
|
|
393
|
+
static constructFromObject(data: unknown, obj?: AdminKvEntryPage): AdminKvEntryPage;
|
|
394
|
+
static validateJSON(data: unknown): boolean;
|
|
395
|
+
data: AdminKvEntry[];
|
|
396
|
+
meta: PageMeta;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/** AdminKvEntry under `data` */
|
|
400
|
+
export class AdminKvEntryResponse {
|
|
401
|
+
constructor(...required: any[]);
|
|
402
|
+
static constructFromObject(data: unknown, obj?: AdminKvEntryResponse): AdminKvEntryResponse;
|
|
403
|
+
static validateJSON(data: unknown): boolean;
|
|
404
|
+
data: AdminKvEntry;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/** A stored leaderboard record */
|
|
408
|
+
export class AdminLeaderboardRecord {
|
|
409
|
+
constructor(...required: any[]);
|
|
410
|
+
static constructFromObject(data: unknown, obj?: AdminLeaderboardRecord): AdminLeaderboardRecord;
|
|
411
|
+
static validateJSON(data: unknown): boolean;
|
|
412
|
+
id: string;
|
|
413
|
+
inserted_at: Date;
|
|
414
|
+
/** Empty for a user's record */
|
|
415
|
+
label: string;
|
|
416
|
+
leaderboard_id: string;
|
|
417
|
+
metadata: Record<string, any>;
|
|
418
|
+
/** Null until ranked */
|
|
419
|
+
rank: number | null;
|
|
420
|
+
score: number;
|
|
421
|
+
updated_at: Date;
|
|
422
|
+
/** Empty for a label record */
|
|
423
|
+
user_id: string;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/** AdminLeaderboardRecord under `data` */
|
|
427
|
+
export class AdminLeaderboardRecordResponse {
|
|
428
|
+
constructor(...required: any[]);
|
|
429
|
+
static constructFromObject(data: unknown, obj?: AdminLeaderboardRecordResponse): AdminLeaderboardRecordResponse;
|
|
430
|
+
static validateJSON(data: unknown): boolean;
|
|
431
|
+
data: AdminLeaderboardRecord;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/** A wallet change */
|
|
435
|
+
export class AdminLedgerEntry {
|
|
436
|
+
constructor(...required: any[]);
|
|
437
|
+
static constructFromObject(data: unknown, obj?: AdminLedgerEntry): AdminLedgerEntry;
|
|
438
|
+
static validateJSON(data: unknown): boolean;
|
|
439
|
+
balance_after: number;
|
|
440
|
+
currency: string;
|
|
441
|
+
delta: number;
|
|
442
|
+
id: string;
|
|
443
|
+
inserted_at: Date;
|
|
444
|
+
metadata: Record<string, any>;
|
|
445
|
+
reason: string;
|
|
446
|
+
user_id: string;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/** A page of AdminLedgerEntry rows */
|
|
450
|
+
export class AdminLedgerEntryPage {
|
|
451
|
+
constructor(...required: any[]);
|
|
452
|
+
static constructFromObject(data: unknown, obj?: AdminLedgerEntryPage): AdminLedgerEntryPage;
|
|
453
|
+
static validateJSON(data: unknown): boolean;
|
|
454
|
+
data: AdminLedgerEntry[];
|
|
455
|
+
meta: PageMeta;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/** Tickets by status, and waiting players per match params */
|
|
459
|
+
export class AdminMatchmakingStats {
|
|
460
|
+
constructor(...required: any[]);
|
|
461
|
+
static constructFromObject(data: unknown, obj?: AdminMatchmakingStats): AdminMatchmakingStats;
|
|
462
|
+
static validateJSON(data: unknown): boolean;
|
|
463
|
+
cancelled: number;
|
|
464
|
+
matched: number;
|
|
465
|
+
queued: number;
|
|
466
|
+
queues: MatchmakingQueue[];
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/** AdminMatchmakingStats under `data` */
|
|
470
|
+
export class AdminMatchmakingStatsResponse {
|
|
471
|
+
constructor(...required: any[]);
|
|
472
|
+
static constructFromObject(data: unknown, obj?: AdminMatchmakingStatsResponse): AdminMatchmakingStatsResponse;
|
|
473
|
+
static validateJSON(data: unknown): boolean;
|
|
474
|
+
data: AdminMatchmakingStats;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/** A matchmaking ticket */
|
|
478
|
+
export class AdminMatchmakingTicket {
|
|
479
|
+
constructor(...required: any[]);
|
|
480
|
+
static constructFromObject(data: unknown, obj?: AdminMatchmakingTicket): AdminMatchmakingTicket;
|
|
481
|
+
static validateJSON(data: unknown): boolean;
|
|
482
|
+
static readonly StatusEnum: { readonly "queued": "queued"; readonly "matched": "matched"; readonly "cancelled": "cancelled" };
|
|
483
|
+
id: string;
|
|
484
|
+
/** The lobby it fills; empty for none */
|
|
485
|
+
lobby_id: string;
|
|
486
|
+
/** Empty while queued */
|
|
487
|
+
match_id: string;
|
|
488
|
+
match_params: Record<string, string>;
|
|
489
|
+
matched_at: Date | null;
|
|
490
|
+
max_players: number;
|
|
491
|
+
min_players: number;
|
|
492
|
+
queued_at: Date;
|
|
493
|
+
status: "queued" | "matched" | "cancelled";
|
|
494
|
+
timeout_ms: number;
|
|
495
|
+
user_id: string;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/** A page of AdminMatchmakingTicket rows */
|
|
499
|
+
export class AdminMatchmakingTicketPage {
|
|
500
|
+
constructor(...required: any[]);
|
|
501
|
+
static constructFromObject(data: unknown, obj?: AdminMatchmakingTicketPage): AdminMatchmakingTicketPage;
|
|
502
|
+
static validateJSON(data: unknown): boolean;
|
|
503
|
+
data: AdminMatchmakingTicket[];
|
|
504
|
+
meta: PageMeta;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/** AdminMatchmakingTicket under `data` */
|
|
508
|
+
export class AdminMatchmakingTicketResponse {
|
|
509
|
+
constructor(...required: any[]);
|
|
510
|
+
static constructFromObject(data: unknown, obj?: AdminMatchmakingTicketResponse): AdminMatchmakingTicketResponse;
|
|
511
|
+
static validateJSON(data: unknown): boolean;
|
|
512
|
+
data: AdminMatchmakingTicket;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/** A registered device push token */
|
|
516
|
+
export class AdminPushToken {
|
|
517
|
+
constructor(...required: any[]);
|
|
518
|
+
static constructFromObject(data: unknown, obj?: AdminPushToken): AdminPushToken;
|
|
519
|
+
static validateJSON(data: unknown): boolean;
|
|
520
|
+
static readonly PlatformEnum: { readonly "android": "android"; readonly "ios": "ios"; readonly "web": "web" };
|
|
521
|
+
/** Empty when unset */
|
|
522
|
+
device_id: string;
|
|
523
|
+
disabled_at: Date | null;
|
|
524
|
+
id: string;
|
|
525
|
+
inserted_at: Date;
|
|
526
|
+
last_used_at: Date | null;
|
|
527
|
+
platform: "android" | "ios" | "web";
|
|
528
|
+
/** fcm or apns; empty picks by platform */
|
|
529
|
+
provider: string;
|
|
530
|
+
token: string;
|
|
531
|
+
user_id: string;
|
|
532
|
+
user_name: string;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/** A page of AdminPushToken rows */
|
|
536
|
+
export class AdminPushTokenPage {
|
|
537
|
+
constructor(...required: any[]);
|
|
538
|
+
static constructFromObject(data: unknown, obj?: AdminPushTokenPage): AdminPushTokenPage;
|
|
539
|
+
static validateJSON(data: unknown): boolean;
|
|
540
|
+
data: AdminPushToken[];
|
|
541
|
+
meta: PageMeta;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/** A quest definition */
|
|
545
|
+
export class AdminQuest {
|
|
546
|
+
constructor(...required: any[]);
|
|
547
|
+
static constructFromObject(data: unknown, obj?: AdminQuest): AdminQuest;
|
|
548
|
+
static validateJSON(data: unknown): boolean;
|
|
549
|
+
static readonly ResetEnum: { readonly "never": "never"; readonly "daily": "daily"; readonly "weekly": "weekly"; readonly "monthly": "monthly"; readonly "interval": "interval"; readonly "repeat": "repeat" };
|
|
550
|
+
active: boolean;
|
|
551
|
+
auto_claim: boolean;
|
|
552
|
+
category: string;
|
|
553
|
+
/** Only a redemption code finishes it */
|
|
554
|
+
code_only: boolean;
|
|
555
|
+
description: string;
|
|
556
|
+
ends_at: Date | null;
|
|
557
|
+
group_key: string;
|
|
558
|
+
group_title: string;
|
|
559
|
+
hidden: boolean;
|
|
560
|
+
icon_url: string;
|
|
561
|
+
id: string;
|
|
562
|
+
inserted_at: Date;
|
|
563
|
+
key: string;
|
|
564
|
+
metadata: Record<string, any>;
|
|
565
|
+
objectives: QuestObjective[];
|
|
566
|
+
prerequisite_quest_key: string;
|
|
567
|
+
reset: "never" | "daily" | "weekly" | "monthly" | "interval" | "repeat";
|
|
568
|
+
reset_interval_days: number | null;
|
|
569
|
+
rewards: QuestReward[];
|
|
570
|
+
sort_order: number;
|
|
571
|
+
starts_at: Date | null;
|
|
572
|
+
title: string;
|
|
573
|
+
updated_at: Date;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/** A claimed progress row and the rewards granted */
|
|
577
|
+
export class AdminQuestClaim {
|
|
578
|
+
constructor(...required: any[]);
|
|
579
|
+
static constructFromObject(data: unknown, obj?: AdminQuestClaim): AdminQuestClaim;
|
|
580
|
+
static validateJSON(data: unknown): boolean;
|
|
581
|
+
progress: AdminQuestProgress;
|
|
582
|
+
rewards: QuestReward[];
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/** AdminQuestClaim under `data` */
|
|
586
|
+
export class AdminQuestClaimResponse {
|
|
587
|
+
constructor(...required: any[]);
|
|
588
|
+
static constructFromObject(data: unknown, obj?: AdminQuestClaimResponse): AdminQuestClaimResponse;
|
|
589
|
+
static validateJSON(data: unknown): boolean;
|
|
590
|
+
data: AdminQuestClaim;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/** A redemption code */
|
|
594
|
+
export class AdminQuestCode {
|
|
595
|
+
constructor(...required: any[]);
|
|
596
|
+
static constructFromObject(data: unknown, obj?: AdminQuestCode): AdminQuestCode;
|
|
597
|
+
static validateJSON(data: unknown): boolean;
|
|
598
|
+
static readonly StatusEnum: { readonly "active": "active"; readonly "revoked": "revoked" };
|
|
599
|
+
id: string;
|
|
600
|
+
inserted_at: Date;
|
|
601
|
+
/** 1 is single-use, N the first N players, null every player once */
|
|
602
|
+
max_uses: number | null;
|
|
603
|
+
/** Copied onto each player's progress row, where they can read it */
|
|
604
|
+
metadata: Record<string, any>;
|
|
605
|
+
quest_key: string;
|
|
606
|
+
status: "active" | "revoked";
|
|
607
|
+
/** The code as people see it */
|
|
608
|
+
token: string;
|
|
609
|
+
updated_at: Date;
|
|
610
|
+
/** How many players redeemed it */
|
|
611
|
+
uses: number;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/** The result of generating codes; read them with the codes list */
|
|
615
|
+
export class AdminQuestCodeBatch {
|
|
616
|
+
constructor(...required: any[]);
|
|
617
|
+
static constructFromObject(data: unknown, obj?: AdminQuestCodeBatch): AdminQuestCodeBatch;
|
|
618
|
+
static validateJSON(data: unknown): boolean;
|
|
619
|
+
created: number;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/** AdminQuestCodeBatch under `data` */
|
|
623
|
+
export class AdminQuestCodeBatchResponse {
|
|
624
|
+
constructor(...required: any[]);
|
|
625
|
+
static constructFromObject(data: unknown, obj?: AdminQuestCodeBatchResponse): AdminQuestCodeBatchResponse;
|
|
626
|
+
static validateJSON(data: unknown): boolean;
|
|
627
|
+
data: AdminQuestCodeBatch;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/** A page of AdminQuestCode rows */
|
|
631
|
+
export class AdminQuestCodePage {
|
|
632
|
+
constructor(...required: any[]);
|
|
633
|
+
static constructFromObject(data: unknown, obj?: AdminQuestCodePage): AdminQuestCodePage;
|
|
634
|
+
static validateJSON(data: unknown): boolean;
|
|
635
|
+
data: AdminQuestCode[];
|
|
636
|
+
meta: PageMeta;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/** AdminQuestCode under `data` */
|
|
640
|
+
export class AdminQuestCodeResponse {
|
|
641
|
+
constructor(...required: any[]);
|
|
642
|
+
static constructFromObject(data: unknown, obj?: AdminQuestCodeResponse): AdminQuestCodeResponse;
|
|
643
|
+
static validateJSON(data: unknown): boolean;
|
|
644
|
+
data: AdminQuestCode;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
/** A page of AdminQuest rows */
|
|
648
|
+
export class AdminQuestPage {
|
|
649
|
+
constructor(...required: any[]);
|
|
650
|
+
static constructFromObject(data: unknown, obj?: AdminQuestPage): AdminQuestPage;
|
|
651
|
+
static validateJSON(data: unknown): boolean;
|
|
652
|
+
data: AdminQuest[];
|
|
653
|
+
meta: PageMeta;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/** A user's progress row for one quest and period */
|
|
657
|
+
export class AdminQuestProgress {
|
|
658
|
+
constructor(...required: any[]);
|
|
659
|
+
static constructFromObject(data: unknown, obj?: AdminQuestProgress): AdminQuestProgress;
|
|
660
|
+
static validateJSON(data: unknown): boolean;
|
|
661
|
+
static readonly StatusEnum: { readonly "active": "active"; readonly "completed": "completed"; readonly "claimed": "claimed" };
|
|
662
|
+
claimed_at: Date | null;
|
|
663
|
+
completed_at: Date | null;
|
|
664
|
+
id: string;
|
|
665
|
+
inserted_at: Date;
|
|
666
|
+
metadata: Record<string, any>;
|
|
667
|
+
objective_progress: Record<string, number>;
|
|
668
|
+
period_key: string;
|
|
669
|
+
quest_key: string;
|
|
670
|
+
status: "active" | "completed" | "claimed";
|
|
671
|
+
updated_at: Date;
|
|
672
|
+
user_id: string;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
/** A page of AdminQuestProgress rows */
|
|
676
|
+
export class AdminQuestProgressPage {
|
|
677
|
+
constructor(...required: any[]);
|
|
678
|
+
static constructFromObject(data: unknown, obj?: AdminQuestProgressPage): AdminQuestProgressPage;
|
|
679
|
+
static validateJSON(data: unknown): boolean;
|
|
680
|
+
data: AdminQuestProgress[];
|
|
681
|
+
meta: PageMeta;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
/** AdminQuestProgress under `data` */
|
|
685
|
+
export class AdminQuestProgressResponse {
|
|
686
|
+
constructor(...required: any[]);
|
|
687
|
+
static constructFromObject(data: unknown, obj?: AdminQuestProgressResponse): AdminQuestProgressResponse;
|
|
688
|
+
static validateJSON(data: unknown): boolean;
|
|
689
|
+
data: AdminQuestProgress;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/** AdminQuest under `data` */
|
|
693
|
+
export class AdminQuestResponse {
|
|
694
|
+
constructor(...required: any[]);
|
|
695
|
+
static constructFromObject(data: unknown, obj?: AdminQuestResponse): AdminQuestResponse;
|
|
696
|
+
static validateJSON(data: unknown): boolean;
|
|
697
|
+
data: AdminQuest;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/** A ready check */
|
|
701
|
+
export class AdminReadyCheck {
|
|
702
|
+
constructor(...required: any[]);
|
|
703
|
+
static constructFromObject(data: unknown, obj?: AdminReadyCheck): AdminReadyCheck;
|
|
704
|
+
static validateJSON(data: unknown): boolean;
|
|
705
|
+
static readonly KindEnum: { readonly "ready": "ready"; readonly "accept": "accept" };
|
|
706
|
+
static readonly StatusEnum: { readonly "pending": "pending"; readonly "passed": "passed"; readonly "failed": "failed"; readonly "cancelled": "cancelled" };
|
|
707
|
+
deadline_at: Date | null;
|
|
708
|
+
id: string;
|
|
709
|
+
inserted_at: Date;
|
|
710
|
+
kind: "ready" | "accept";
|
|
711
|
+
/** Empty unless a lobby board */
|
|
712
|
+
lobby_id: string;
|
|
713
|
+
/** Empty when the server opened it */
|
|
714
|
+
opened_by: string;
|
|
715
|
+
participants: ReadyCheckParticipant[];
|
|
716
|
+
/** Empty unless a party board */
|
|
717
|
+
party_id: string;
|
|
718
|
+
reason: string;
|
|
719
|
+
resolved_at: Date | null;
|
|
720
|
+
status: "pending" | "passed" | "failed" | "cancelled";
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/** A page of AdminReadyCheck rows */
|
|
724
|
+
export class AdminReadyCheckPage {
|
|
725
|
+
constructor(...required: any[]);
|
|
726
|
+
static constructFromObject(data: unknown, obj?: AdminReadyCheckPage): AdminReadyCheckPage;
|
|
727
|
+
static validateJSON(data: unknown): boolean;
|
|
728
|
+
data: AdminReadyCheck[];
|
|
729
|
+
meta: PageMeta;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
/** AdminReadyCheck under `data` */
|
|
733
|
+
export class AdminReadyCheckResponse {
|
|
734
|
+
constructor(...required: any[]);
|
|
735
|
+
static constructFromObject(data: unknown, obj?: AdminReadyCheckResponse): AdminReadyCheckResponse;
|
|
736
|
+
static validateJSON(data: unknown): boolean;
|
|
737
|
+
data: AdminReadyCheck;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
/** A browser session */
|
|
741
|
+
export class AdminSession {
|
|
742
|
+
constructor(...required: any[]);
|
|
743
|
+
static constructFromObject(data: unknown, obj?: AdminSession): AdminSession;
|
|
744
|
+
static validateJSON(data: unknown): boolean;
|
|
745
|
+
authenticated_at: Date | null;
|
|
746
|
+
context: string;
|
|
747
|
+
display_name: string;
|
|
748
|
+
id: string;
|
|
749
|
+
inserted_at: Date;
|
|
750
|
+
user_email: string;
|
|
751
|
+
user_id: string;
|
|
752
|
+
username: string;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
/** A page of AdminSession rows */
|
|
756
|
+
export class AdminSessionPage {
|
|
757
|
+
constructor(...required: any[]);
|
|
758
|
+
static constructFromObject(data: unknown, obj?: AdminSessionPage): AdminSessionPage;
|
|
759
|
+
static validateJSON(data: unknown): boolean;
|
|
760
|
+
data: AdminSession[];
|
|
761
|
+
meta: PageMeta;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/** A tournament's configuration */
|
|
765
|
+
export class AdminTournament {
|
|
766
|
+
constructor(...required: any[]);
|
|
767
|
+
static constructFromObject(data: unknown, obj?: AdminTournament): AdminTournament;
|
|
768
|
+
static validateJSON(data: unknown): boolean;
|
|
769
|
+
static readonly DeadlinePolicyEnum: { readonly "forfeit_both": "forfeit_both"; readonly "advance_first_slot": "advance_first_slot"; readonly "random": "random" };
|
|
770
|
+
static readonly StateEnum: { readonly "scheduled": "scheduled"; readonly "registration": "registration"; readonly "running": "running"; readonly "finished": "finished"; readonly "cancelled": "cancelled" };
|
|
771
|
+
bracket_size: number;
|
|
772
|
+
/** What an unplayed match comes to at its deadline */
|
|
773
|
+
deadline_policy: "forfeit_both" | "advance_first_slot" | "random";
|
|
774
|
+
description: string;
|
|
775
|
+
ends_at: Date | null;
|
|
776
|
+
icon_url: string;
|
|
777
|
+
id: string;
|
|
778
|
+
inserted_at: Date;
|
|
779
|
+
max_entries: number | null;
|
|
780
|
+
metadata: Record<string, any>;
|
|
781
|
+
/** Cron expression; empty for a one-shot */
|
|
782
|
+
recur: string;
|
|
783
|
+
registration_opens_at: Date | null;
|
|
784
|
+
round_window_sec: number;
|
|
785
|
+
slug: string;
|
|
786
|
+
starts_at: Date | null;
|
|
787
|
+
state: "scheduled" | "registration" | "running" | "finished" | "cancelled";
|
|
788
|
+
team_size: number;
|
|
789
|
+
title: string;
|
|
790
|
+
updated_at: Date;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
/** AdminTournament under `data` */
|
|
794
|
+
export class AdminTournamentResponse {
|
|
795
|
+
constructor(...required: any[]);
|
|
796
|
+
static constructFromObject(data: unknown, obj?: AdminTournamentResponse): AdminTournamentResponse;
|
|
797
|
+
static validateJSON(data: unknown): boolean;
|
|
798
|
+
data: AdminTournament;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
/** A user, with account flags */
|
|
802
|
+
export class AdminUser {
|
|
803
|
+
constructor(...required: any[]);
|
|
804
|
+
static constructFromObject(data: unknown, obj?: AdminUser): AdminUser;
|
|
805
|
+
static validateJSON(data: unknown): boolean;
|
|
806
|
+
display_name: string;
|
|
807
|
+
/** Empty for a device or OAuth-only account */
|
|
808
|
+
email: string;
|
|
809
|
+
id: string;
|
|
810
|
+
inserted_at: Date;
|
|
811
|
+
is_activated: boolean;
|
|
812
|
+
is_admin: boolean;
|
|
813
|
+
is_online: boolean;
|
|
814
|
+
last_seen_at: Date;
|
|
815
|
+
/** Empty when not in a lobby */
|
|
816
|
+
lobby_id: string;
|
|
817
|
+
metadata: Record<string, any>;
|
|
818
|
+
/** Empty when not in a party */
|
|
819
|
+
party_id: string;
|
|
820
|
+
updated_at: Date;
|
|
821
|
+
username: string;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
/** AdminUser under `data` */
|
|
825
|
+
export class AdminUserResponse {
|
|
826
|
+
constructor(...required: any[]);
|
|
827
|
+
static constructFromObject(data: unknown, obj?: AdminUserResponse): AdminUserResponse;
|
|
828
|
+
static validateJSON(data: unknown): boolean;
|
|
829
|
+
data: AdminUser;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
/** A wallet */
|
|
833
|
+
export class AdminWallet {
|
|
834
|
+
constructor(...required: any[]);
|
|
835
|
+
static constructFromObject(data: unknown, obj?: AdminWallet): AdminWallet;
|
|
836
|
+
static validateJSON(data: unknown): boolean;
|
|
837
|
+
balance: number;
|
|
838
|
+
currency: string;
|
|
839
|
+
id: string;
|
|
840
|
+
user_id: string;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
/** A page of AdminWallet rows */
|
|
844
|
+
export class AdminWalletPage {
|
|
845
|
+
constructor(...required: any[]);
|
|
846
|
+
static constructFromObject(data: unknown, obj?: AdminWalletPage): AdminWalletPage;
|
|
847
|
+
static validateJSON(data: unknown): boolean;
|
|
848
|
+
data: AdminWallet[];
|
|
849
|
+
meta: PageMeta;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
/** Counter totals, and each counter by ISO day */
|
|
853
|
+
export class AnalyticsCounts {
|
|
854
|
+
constructor(...required: any[]);
|
|
855
|
+
static constructFromObject(data: unknown, obj?: AnalyticsCounts): AnalyticsCounts;
|
|
856
|
+
static validateJSON(data: unknown): boolean;
|
|
857
|
+
days: number;
|
|
858
|
+
/** The key or `prefix*` asked for */
|
|
859
|
+
key: string;
|
|
860
|
+
/** Counter key to ISO day to count */
|
|
861
|
+
series: Record<string, Record<string, number>>;
|
|
862
|
+
totals: CounterTotal[];
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
/** AnalyticsCounts under `data` */
|
|
866
|
+
export class AnalyticsCountsResponse {
|
|
867
|
+
constructor(...required: any[]);
|
|
868
|
+
static constructFromObject(data: unknown, obj?: AnalyticsCountsResponse): AnalyticsCountsResponse;
|
|
869
|
+
static validateJSON(data: unknown): boolean;
|
|
870
|
+
data: AnalyticsCounts;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
/** Per-day activity and cohort retention */
|
|
874
|
+
export class AnalyticsDaily {
|
|
875
|
+
constructor(...required: any[]);
|
|
876
|
+
static constructFromObject(data: unknown, obj?: AnalyticsDaily): AnalyticsDaily;
|
|
877
|
+
static validateJSON(data: unknown): boolean;
|
|
878
|
+
days: number;
|
|
879
|
+
series: AnalyticsDay[];
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
/** AnalyticsDaily under `data` */
|
|
883
|
+
export class AnalyticsDailyResponse {
|
|
884
|
+
constructor(...required: any[]);
|
|
885
|
+
static constructFromObject(data: unknown, obj?: AnalyticsDailyResponse): AnalyticsDailyResponse;
|
|
886
|
+
static validateJSON(data: unknown): boolean;
|
|
887
|
+
data: AnalyticsDaily;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
/** A day's active players, the 7 and 30 days ending on it, its new players and that cohort's D1 / D7 / D30 */
|
|
891
|
+
export class AnalyticsDay {
|
|
892
|
+
constructor(...required: any[]);
|
|
893
|
+
static constructFromObject(data: unknown, obj?: AnalyticsDay): AnalyticsDay;
|
|
894
|
+
static validateJSON(data: unknown): boolean;
|
|
895
|
+
active: number;
|
|
896
|
+
d1: number | null;
|
|
897
|
+
d30: number | null;
|
|
898
|
+
d7: number | null;
|
|
899
|
+
day: Date;
|
|
900
|
+
/** Distinct players of the 30 days ending on the day */
|
|
901
|
+
mau: number;
|
|
902
|
+
/** Accounts made on the day and seen on it */
|
|
903
|
+
new_active: number;
|
|
904
|
+
new_users: number;
|
|
905
|
+
/** active less new_active */
|
|
906
|
+
returning: number;
|
|
907
|
+
/** active ÷ mau of the day */
|
|
908
|
+
stickiness: number | null;
|
|
909
|
+
/** Distinct players of the 7 days ending on the day */
|
|
910
|
+
wau: number;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
/** Currency granted and spent, per reason and per day */
|
|
914
|
+
export class AnalyticsEconomy {
|
|
915
|
+
constructor(...required: any[]);
|
|
916
|
+
static constructFromObject(data: unknown, obj?: AnalyticsEconomy): AnalyticsEconomy;
|
|
917
|
+
static validateJSON(data: unknown): boolean;
|
|
918
|
+
days: number;
|
|
919
|
+
flow: EconomyFlowDay[];
|
|
920
|
+
totals: EconomyTotal[];
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
/** AnalyticsEconomy under `data` */
|
|
924
|
+
export class AnalyticsEconomyResponse {
|
|
925
|
+
constructor(...required: any[]);
|
|
926
|
+
static constructFromObject(data: unknown, obj?: AnalyticsEconomyResponse): AnalyticsEconomyResponse;
|
|
927
|
+
static validateJSON(data: unknown): boolean;
|
|
928
|
+
data: AnalyticsEconomy;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
/** DAU / WAU / MAU, D1 / D7 / D30 and payer conversion */
|
|
932
|
+
export class AnalyticsSummary {
|
|
933
|
+
constructor(...required: any[]);
|
|
934
|
+
static constructFromObject(data: unknown, obj?: AnalyticsSummary): AnalyticsSummary;
|
|
935
|
+
static validateJSON(data: unknown): boolean;
|
|
936
|
+
static readonly SegmentEnum: { readonly "all": "all"; readonly "registered": "registered"; readonly "guest": "guest" };
|
|
937
|
+
/** 0.0-1.0; null when there is nothing to divide by yet */
|
|
938
|
+
conversion_30d: number | null;
|
|
939
|
+
/** 0.0-1.0; null when there is nothing to divide by yet */
|
|
940
|
+
d1: number | null;
|
|
941
|
+
/** Accounts the D1 pools */
|
|
942
|
+
d1_cohort: number;
|
|
943
|
+
/** 0.0-1.0; null when there is nothing to divide by yet */
|
|
944
|
+
d30: number | null;
|
|
945
|
+
/** Accounts the D30 pools */
|
|
946
|
+
d30_cohort: number;
|
|
947
|
+
/** 0.0-1.0; null when there is nothing to divide by yet */
|
|
948
|
+
d7: number | null;
|
|
949
|
+
/** Accounts the D7 pools */
|
|
950
|
+
d7_cohort: number;
|
|
951
|
+
/** Seen today so far (UTC) */
|
|
952
|
+
dau: number;
|
|
953
|
+
/** Average DAU of the 7 full days before today */
|
|
954
|
+
dau_7d_avg: number;
|
|
955
|
+
day: Date;
|
|
956
|
+
mau: number;
|
|
957
|
+
new_users_30d: number;
|
|
958
|
+
new_users_7d: number;
|
|
959
|
+
payers_30d: number;
|
|
960
|
+
/** The first sign-up day D1 / D7 / D30 pool (activity counted in full from it) */
|
|
961
|
+
retention_since: Date | null;
|
|
962
|
+
/** Which accounts the numbers count */
|
|
963
|
+
segment: "all" | "registered" | "guest";
|
|
964
|
+
/** dau_7d_avg ÷ mau */
|
|
965
|
+
stickiness: number | null;
|
|
966
|
+
wau: number;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
/** AnalyticsSummary under `data` */
|
|
970
|
+
export class AnalyticsSummaryResponse {
|
|
971
|
+
constructor(...required: any[]);
|
|
972
|
+
static constructFromObject(data: unknown, obj?: AnalyticsSummaryResponse): AnalyticsSummaryResponse;
|
|
973
|
+
static validateJSON(data: unknown): boolean;
|
|
974
|
+
data: AnalyticsSummary;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
/** Enabled sign-in providers under `data` */
|
|
978
|
+
export class AuthProvidersResponse {
|
|
979
|
+
constructor(...required: any[]);
|
|
980
|
+
static constructFromObject(data: unknown, obj?: AuthProvidersResponse): AuthProvidersResponse;
|
|
981
|
+
static validateJSON(data: unknown): boolean;
|
|
982
|
+
data: ("discord" | "google" | "apple" | "facebook" | "github" | "steam")[];
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
/** A blocked friendship row */
|
|
986
|
+
export class BlockedFriendship {
|
|
987
|
+
constructor(...required: any[]);
|
|
988
|
+
static constructFromObject(data: unknown, obj?: BlockedFriendship): BlockedFriendship;
|
|
989
|
+
static validateJSON(data: unknown): boolean;
|
|
990
|
+
/** The friendship row id */
|
|
991
|
+
id: string;
|
|
992
|
+
requester: UserBrief;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
/** A page of BlockedFriendship rows */
|
|
996
|
+
export class BlockedFriendshipPage {
|
|
997
|
+
constructor(...required: any[]);
|
|
998
|
+
static constructFromObject(data: unknown, obj?: BlockedFriendshipPage): BlockedFriendshipPage;
|
|
999
|
+
static validateJSON(data: unknown): boolean;
|
|
1000
|
+
data: BlockedFriendship[];
|
|
1001
|
+
meta: PageMeta;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
/** Rows cancelled; 0 when there was nothing to cancel */
|
|
1005
|
+
export class CancelledCount {
|
|
1006
|
+
constructor(...required: any[]);
|
|
1007
|
+
static constructFromObject(data: unknown, obj?: CancelledCount): CancelledCount;
|
|
1008
|
+
static validateJSON(data: unknown): boolean;
|
|
1009
|
+
cancelled: number;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
/** CancelledCount under `data` */
|
|
1013
|
+
export class CancelledCountResponse {
|
|
1014
|
+
constructor(...required: any[]);
|
|
1015
|
+
static constructFromObject(data: unknown, obj?: CancelledCountResponse): CancelledCountResponse;
|
|
1016
|
+
static validateJSON(data: unknown): boolean;
|
|
1017
|
+
data: CancelledCount;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
/** A matched blocklist word */
|
|
1021
|
+
export class ChatFilterHit {
|
|
1022
|
+
constructor(...required: any[]);
|
|
1023
|
+
static constructFromObject(data: unknown, obj?: ChatFilterHit): ChatFilterHit;
|
|
1024
|
+
static validateJSON(data: unknown): boolean;
|
|
1025
|
+
static readonly MatchModeEnum: { readonly "substring": "substring"; readonly "exact": "exact" };
|
|
1026
|
+
static readonly SeverityEnum: { readonly "block": "block"; readonly "mask": "mask"; readonly "flag": "flag" };
|
|
1027
|
+
match_mode: "substring" | "exact";
|
|
1028
|
+
severity: "block" | "mask" | "flag";
|
|
1029
|
+
word: string;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/** Importable bundled lists */
|
|
1033
|
+
export class ChatFilterLanguages {
|
|
1034
|
+
constructor(...required: any[]);
|
|
1035
|
+
static constructFromObject(data: unknown, obj?: ChatFilterLanguages): ChatFilterLanguages;
|
|
1036
|
+
static validateJSON(data: unknown): boolean;
|
|
1037
|
+
/** e.g. `en` */
|
|
1038
|
+
languages: string[];
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
/** ChatFilterLanguages under `data` */
|
|
1042
|
+
export class ChatFilterLanguagesResponse {
|
|
1043
|
+
constructor(...required: any[]);
|
|
1044
|
+
static constructFromObject(data: unknown, obj?: ChatFilterLanguagesResponse): ChatFilterLanguagesResponse;
|
|
1045
|
+
static validateJSON(data: unknown): boolean;
|
|
1046
|
+
data: ChatFilterLanguages;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
/** A phrase's filter outcome */
|
|
1050
|
+
export class ChatFilterTest {
|
|
1051
|
+
constructor(...required: any[]);
|
|
1052
|
+
static constructFromObject(data: unknown, obj?: ChatFilterTest): ChatFilterTest;
|
|
1053
|
+
static validateJSON(data: unknown): boolean;
|
|
1054
|
+
static readonly ActionEnum: { readonly "block": "block"; readonly "mask": "mask"; readonly "flag": "flag"; readonly "allow": "allow" };
|
|
1055
|
+
action: "block" | "mask" | "flag" | "allow";
|
|
1056
|
+
/** What would be stored; empty when blocked */
|
|
1057
|
+
content: string;
|
|
1058
|
+
flagged_words: string[];
|
|
1059
|
+
hits: ChatFilterHit[];
|
|
1060
|
+
phrase: string;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
/** ChatFilterTest under `data` */
|
|
1064
|
+
export class ChatFilterTestResponse {
|
|
1065
|
+
constructor(...required: any[]);
|
|
1066
|
+
static constructFromObject(data: unknown, obj?: ChatFilterTestResponse): ChatFilterTestResponse;
|
|
1067
|
+
static validateJSON(data: unknown): boolean;
|
|
1068
|
+
data: ChatFilterTest;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
/** A blocklist word */
|
|
1072
|
+
export class ChatFilterWord {
|
|
1073
|
+
constructor(...required: any[]);
|
|
1074
|
+
static constructFromObject(data: unknown, obj?: ChatFilterWord): ChatFilterWord;
|
|
1075
|
+
static validateJSON(data: unknown): boolean;
|
|
1076
|
+
static readonly MatchModeEnum: { readonly "substring": "substring"; readonly "exact": "exact" };
|
|
1077
|
+
static readonly SeverityEnum: { readonly "block": "block"; readonly "mask": "mask"; readonly "flag": "flag" };
|
|
1078
|
+
id: string;
|
|
1079
|
+
inserted_at: Date;
|
|
1080
|
+
/** Bundled-list provenance, empty when hand-added */
|
|
1081
|
+
lang: string;
|
|
1082
|
+
match_mode: "substring" | "exact";
|
|
1083
|
+
severity: "block" | "mask" | "flag";
|
|
1084
|
+
updated_at: Date;
|
|
1085
|
+
word: string;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/** A page of ChatFilterWord rows */
|
|
1089
|
+
export class ChatFilterWordPage {
|
|
1090
|
+
constructor(...required: any[]);
|
|
1091
|
+
static constructFromObject(data: unknown, obj?: ChatFilterWordPage): ChatFilterWordPage;
|
|
1092
|
+
static validateJSON(data: unknown): boolean;
|
|
1093
|
+
data: ChatFilterWord[];
|
|
1094
|
+
meta: PageMeta;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
/** ChatFilterWord under `data` */
|
|
1098
|
+
export class ChatFilterWordResponse {
|
|
1099
|
+
constructor(...required: any[]);
|
|
1100
|
+
static constructFromObject(data: unknown, obj?: ChatFilterWordResponse): ChatFilterWordResponse;
|
|
1101
|
+
static validateJSON(data: unknown): boolean;
|
|
1102
|
+
data: ChatFilterWord;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
/** A chat message */
|
|
1106
|
+
export class ChatMessage {
|
|
1107
|
+
constructor(...required: any[]);
|
|
1108
|
+
static constructFromObject(data: unknown, obj?: ChatMessage): ChatMessage;
|
|
1109
|
+
static validateJSON(data: unknown): boolean;
|
|
1110
|
+
static readonly ChatTypeEnum: { readonly "lobby": "lobby"; readonly "group": "group"; readonly "party": "party"; readonly "friend": "friend" };
|
|
1111
|
+
/** The lobby, group or party id, or the friend's user id */
|
|
1112
|
+
chat_ref_id: string;
|
|
1113
|
+
chat_type: "lobby" | "group" | "party" | "friend";
|
|
1114
|
+
content: string;
|
|
1115
|
+
id: string;
|
|
1116
|
+
inserted_at: Date;
|
|
1117
|
+
metadata: Record<string, any>;
|
|
1118
|
+
/** Admin endpoints only */
|
|
1119
|
+
sender_email?: string;
|
|
1120
|
+
sender_id: string;
|
|
1121
|
+
/** Sender's display name */
|
|
1122
|
+
sender_name: string;
|
|
1123
|
+
updated_at?: Date;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
/** A page of ChatMessage rows */
|
|
1127
|
+
export class ChatMessagePage {
|
|
1128
|
+
constructor(...required: any[]);
|
|
1129
|
+
static constructFromObject(data: unknown, obj?: ChatMessagePage): ChatMessagePage;
|
|
1130
|
+
static validateJSON(data: unknown): boolean;
|
|
1131
|
+
data: ChatMessage[];
|
|
1132
|
+
meta: PageMeta;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/** ChatMessage under `data` */
|
|
1136
|
+
export class ChatMessageResponse {
|
|
1137
|
+
constructor(...required: any[]);
|
|
1138
|
+
static constructFromObject(data: unknown, obj?: ChatMessageResponse): ChatMessageResponse;
|
|
1139
|
+
static validateJSON(data: unknown): boolean;
|
|
1140
|
+
data: ChatMessage;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
/** A chat mute */
|
|
1144
|
+
export class ChatMuteRecord {
|
|
1145
|
+
constructor(...required: any[]);
|
|
1146
|
+
static constructFromObject(data: unknown, obj?: ChatMuteRecord): ChatMuteRecord;
|
|
1147
|
+
static validateJSON(data: unknown): boolean;
|
|
1148
|
+
static readonly ScopeEnum: { readonly "global": "global"; readonly "lobby": "lobby"; readonly "group": "group"; readonly "party": "party" };
|
|
1149
|
+
/** Null for a mute with no end */
|
|
1150
|
+
expires_at: Date | null;
|
|
1151
|
+
id: string;
|
|
1152
|
+
inserted_at: Date;
|
|
1153
|
+
/** Who muted; empty for the system */
|
|
1154
|
+
muted_by: string;
|
|
1155
|
+
reason: string;
|
|
1156
|
+
scope: "global" | "lobby" | "group" | "party";
|
|
1157
|
+
/** The lobby, group or party; empty when global */
|
|
1158
|
+
scope_ref_id: string;
|
|
1159
|
+
/** The muted player */
|
|
1160
|
+
user_id: string;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
/** A page of ChatMuteRecord rows */
|
|
1164
|
+
export class ChatMuteRecordPage {
|
|
1165
|
+
constructor(...required: any[]);
|
|
1166
|
+
static constructFromObject(data: unknown, obj?: ChatMuteRecordPage): ChatMuteRecordPage;
|
|
1167
|
+
static validateJSON(data: unknown): boolean;
|
|
1168
|
+
data: ChatMuteRecord[];
|
|
1169
|
+
meta: PageMeta;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
/** ChatMuteRecord under `data` */
|
|
1173
|
+
export class ChatMuteRecordResponse {
|
|
1174
|
+
constructor(...required: any[]);
|
|
1175
|
+
static constructFromObject(data: unknown, obj?: ChatMuteRecordResponse): ChatMuteRecordResponse;
|
|
1176
|
+
static validateJSON(data: unknown): boolean;
|
|
1177
|
+
data: ChatMuteRecord;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
/** The last message read in a conversation */
|
|
1181
|
+
export class ChatReadCursor {
|
|
1182
|
+
constructor(...required: any[]);
|
|
1183
|
+
static constructFromObject(data: unknown, obj?: ChatReadCursor): ChatReadCursor;
|
|
1184
|
+
static validateJSON(data: unknown): boolean;
|
|
1185
|
+
chat_ref_id: string;
|
|
1186
|
+
chat_type: string;
|
|
1187
|
+
last_read_message_id: string;
|
|
1188
|
+
updated_at: Date;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
/** ChatReadCursor under `data` */
|
|
1192
|
+
export class ChatReadCursorResponse {
|
|
1193
|
+
constructor(...required: any[]);
|
|
1194
|
+
static constructFromObject(data: unknown, obj?: ChatReadCursorResponse): ChatReadCursorResponse;
|
|
1195
|
+
static validateJSON(data: unknown): boolean;
|
|
1196
|
+
data: ChatReadCursor;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
/** A chat report */
|
|
1200
|
+
export class ChatReport {
|
|
1201
|
+
constructor(...required: any[]);
|
|
1202
|
+
static constructFromObject(data: unknown, obj?: ChatReport): ChatReport;
|
|
1203
|
+
static validateJSON(data: unknown): boolean;
|
|
1204
|
+
static readonly StatusEnum: { readonly "open": "open"; readonly "reviewing": "reviewing"; readonly "actioned": "actioned"; readonly "dismissed": "dismissed" };
|
|
1205
|
+
content_snapshot: string;
|
|
1206
|
+
id: string;
|
|
1207
|
+
inserted_at: Date;
|
|
1208
|
+
message_id: string;
|
|
1209
|
+
reason: string;
|
|
1210
|
+
reported_user_id: string;
|
|
1211
|
+
reported_user_name: string;
|
|
1212
|
+
/** Empty when the word filter filed it */
|
|
1213
|
+
reporter_id: string;
|
|
1214
|
+
reporter_name: string;
|
|
1215
|
+
resolution_note: string;
|
|
1216
|
+
resolved_at: Date | null;
|
|
1217
|
+
/** Empty until resolved */
|
|
1218
|
+
resolved_by: string;
|
|
1219
|
+
resolved_by_name: string;
|
|
1220
|
+
status: "open" | "reviewing" | "actioned" | "dismissed";
|
|
1221
|
+
updated_at: Date;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
/** A page of ChatReport rows */
|
|
1225
|
+
export class ChatReportPage {
|
|
1226
|
+
constructor(...required: any[]);
|
|
1227
|
+
static constructFromObject(data: unknown, obj?: ChatReportPage): ChatReportPage;
|
|
1228
|
+
static validateJSON(data: unknown): boolean;
|
|
1229
|
+
data: ChatReport[];
|
|
1230
|
+
meta: PageMeta;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
/** ChatReport under `data` */
|
|
1234
|
+
export class ChatReportResponse {
|
|
1235
|
+
constructor(...required: any[]);
|
|
1236
|
+
static constructFromObject(data: unknown, obj?: ChatReportResponse): ChatReportResponse;
|
|
1237
|
+
static validateJSON(data: unknown): boolean;
|
|
1238
|
+
data: ChatReport;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
/** Unread message count */
|
|
1242
|
+
export class ChatUnread {
|
|
1243
|
+
constructor(...required: any[]);
|
|
1244
|
+
static constructFromObject(data: unknown, obj?: ChatUnread): ChatUnread;
|
|
1245
|
+
static validateJSON(data: unknown): boolean;
|
|
1246
|
+
unread_count: number;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
/** ChatUnread under `data` */
|
|
1250
|
+
export class ChatUnreadResponse {
|
|
1251
|
+
constructor(...required: any[]);
|
|
1252
|
+
static constructFromObject(data: unknown, obj?: ChatUnreadResponse): ChatUnreadResponse;
|
|
1253
|
+
static validateJSON(data: unknown): boolean;
|
|
1254
|
+
data: ChatUnread;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
/** A batch of client log entries with the session they belong to */
|
|
1258
|
+
export class ClientLogBatch {
|
|
1259
|
+
constructor(...required: any[]);
|
|
1260
|
+
static constructFromObject(data: unknown, obj?: ClientLogBatch): ClientLogBatch;
|
|
1261
|
+
static validateJSON(data: unknown): boolean;
|
|
1262
|
+
/** At most 200 per call; the surplus is discarded and counted as dropped. */
|
|
1263
|
+
entries: ClientLogEntry[];
|
|
1264
|
+
session: ClientLogSession;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
/** A single client log entry */
|
|
1268
|
+
export class ClientLogEntry {
|
|
1269
|
+
constructor(...required: any[]);
|
|
1270
|
+
static constructFromObject(data: unknown, obj?: ClientLogEntry): ClientLogEntry;
|
|
1271
|
+
static validateJSON(data: unknown): boolean;
|
|
1272
|
+
static readonly LevelEnum: { readonly "trace": "trace"; readonly "debug": "debug"; readonly "info": "info"; readonly "warn": "warn"; readonly "error": "error" };
|
|
1273
|
+
/** Client clock, seconds since the Unix epoch. */
|
|
1274
|
+
at?: number;
|
|
1275
|
+
/** Free-form subsystem tag owned by the game, e.g. game, network, perf. */
|
|
1276
|
+
category?: string;
|
|
1277
|
+
/** Client level. Carried through as data; see the capture policy. */
|
|
1278
|
+
level?: "trace" | "debug" | "info" | "warn" | "error";
|
|
1279
|
+
/** Lobby the client was in, if any. The join key to server-side lobby history. */
|
|
1280
|
+
lobby_id?: string;
|
|
1281
|
+
/** The line itself. */
|
|
1282
|
+
message: string;
|
|
1283
|
+
/** Where the player was, used to band a session into phases. */
|
|
1284
|
+
screen?: string;
|
|
1285
|
+
/** Monotonic counter within the session. A gap tells the server entries were lost. */
|
|
1286
|
+
seq?: number;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
/** Capture policy for game clients */
|
|
1290
|
+
export class ClientLogPolicy {
|
|
1291
|
+
constructor(...required: any[]);
|
|
1292
|
+
static constructFromObject(data: unknown, obj?: ClientLogPolicy): ClientLogPolicy;
|
|
1293
|
+
static validateJSON(data: unknown): boolean;
|
|
1294
|
+
static readonly LevelEnum: { readonly "trace": "trace"; readonly "debug": "debug"; readonly "info": "info"; readonly "warn": "warn"; readonly "error": "error" };
|
|
1295
|
+
/** Entries accepted per call. */
|
|
1296
|
+
batch_max: number;
|
|
1297
|
+
/** Per-category overrides of the floor, e.g. {"perf": "off"}. off drops the category. */
|
|
1298
|
+
categories: Record<string, string>;
|
|
1299
|
+
/** Collect at all. */
|
|
1300
|
+
enabled: boolean;
|
|
1301
|
+
/** Lowest level to upload. */
|
|
1302
|
+
level: "trace" | "debug" | "info" | "warn" | "error";
|
|
1303
|
+
/** Longer messages are truncated server-side. */
|
|
1304
|
+
message_max_bytes: number;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
/** ClientLogPolicy under `data` */
|
|
1308
|
+
export class ClientLogPolicyResponse {
|
|
1309
|
+
constructor(...required: any[]);
|
|
1310
|
+
static constructFromObject(data: unknown, obj?: ClientLogPolicyResponse): ClientLogPolicyResponse;
|
|
1311
|
+
static validateJSON(data: unknown): boolean;
|
|
1312
|
+
data: ClientLogPolicy;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
/** Outcome of a client log upload */
|
|
1316
|
+
export class ClientLogResult {
|
|
1317
|
+
constructor(...required: any[]);
|
|
1318
|
+
static constructFromObject(data: unknown, obj?: ClientLogResult): ClientLogResult;
|
|
1319
|
+
static validateJSON(data: unknown): boolean;
|
|
1320
|
+
/** Entries recorded. */
|
|
1321
|
+
accepted: number;
|
|
1322
|
+
client_session_id: string;
|
|
1323
|
+
/** Entries lost before or during this call. */
|
|
1324
|
+
dropped: number;
|
|
1325
|
+
/** Error-level entries in this batch. */
|
|
1326
|
+
errors: number;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
/** ClientLogResult under `data` */
|
|
1330
|
+
export class ClientLogResultResponse {
|
|
1331
|
+
constructor(...required: any[]);
|
|
1332
|
+
static constructFromObject(data: unknown, obj?: ClientLogResultResponse): ClientLogResultResponse;
|
|
1333
|
+
static validateJSON(data: unknown): boolean;
|
|
1334
|
+
data: ClientLogResult;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
/** Identity and environment of the client run */
|
|
1338
|
+
export class ClientLogSession {
|
|
1339
|
+
constructor(...required: any[]);
|
|
1340
|
+
static constructFromObject(data: unknown, obj?: ClientLogSession): ClientLogSession;
|
|
1341
|
+
static validateJSON(data: unknown): boolean;
|
|
1342
|
+
static readonly BuildEnum: { readonly "debug": "debug"; readonly "release": "release" };
|
|
1343
|
+
static readonly PlatformEnum: { readonly "android": "android"; readonly "ios": "ios"; readonly "web": "web"; readonly "windows": "windows"; readonly "macos": "macos"; readonly "linux": "linux"; readonly "unknown": "unknown" };
|
|
1344
|
+
app_version?: string;
|
|
1345
|
+
build?: "debug" | "release";
|
|
1346
|
+
/** Client-generated id, unique per run. Bound to the first caller that uses it; a later batch from a different user is refused. */
|
|
1347
|
+
client_session_id: string;
|
|
1348
|
+
/** Stable device identifier. */
|
|
1349
|
+
device_id?: string;
|
|
1350
|
+
locale?: string;
|
|
1351
|
+
/** Free-form device facts: model, GPU, screen size. Capped server-side. */
|
|
1352
|
+
meta?: Record<string, any>;
|
|
1353
|
+
platform?: "android" | "ios" | "web" | "windows" | "macos" | "linux" | "unknown";
|
|
1354
|
+
/** When the run began, client clock, seconds since the Unix epoch. */
|
|
1355
|
+
started_at?: number;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
/** A counter's total */
|
|
1359
|
+
export class CounterTotal {
|
|
1360
|
+
constructor(...required: any[]);
|
|
1361
|
+
static constructFromObject(data: unknown, obj?: CounterTotal): CounterTotal;
|
|
1362
|
+
static validateJSON(data: unknown): boolean;
|
|
1363
|
+
key: string;
|
|
1364
|
+
total: number;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
/** The authenticated user */
|
|
1368
|
+
export class CurrentUser {
|
|
1369
|
+
constructor(...required: any[]);
|
|
1370
|
+
static constructFromObject(data: unknown, obj?: CurrentUser): CurrentUser;
|
|
1371
|
+
static validateJSON(data: unknown): boolean;
|
|
1372
|
+
/** The account's ban while it is banned, else null */
|
|
1373
|
+
ban: AccountBan | null;
|
|
1374
|
+
/** Chosen name */
|
|
1375
|
+
display_name: string;
|
|
1376
|
+
/** Empty for accounts without one */
|
|
1377
|
+
email: string;
|
|
1378
|
+
/** Whether a password is set */
|
|
1379
|
+
has_password: boolean;
|
|
1380
|
+
id: string;
|
|
1381
|
+
is_online: boolean;
|
|
1382
|
+
last_seen_at: Date;
|
|
1383
|
+
linked_providers: LinkedProviders;
|
|
1384
|
+
/** Current lobby id, or empty */
|
|
1385
|
+
lobby_id: string;
|
|
1386
|
+
metadata: Record<string, any>;
|
|
1387
|
+
/** Current party id, or empty */
|
|
1388
|
+
party_id: string;
|
|
1389
|
+
/** The avatar: an image we host, or one of the server's icons (`/icons/<name>.svg?color=<color>`), one the user's id gives them when they set none */
|
|
1390
|
+
profile_url: string;
|
|
1391
|
+
/** Unique handle */
|
|
1392
|
+
username: string;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
/** CurrentUser under `data` */
|
|
1396
|
+
export class CurrentUserResponse {
|
|
1397
|
+
constructor(...required: any[]);
|
|
1398
|
+
static constructFromObject(data: unknown, obj?: CurrentUserResponse): CurrentUserResponse;
|
|
1399
|
+
static validateJSON(data: unknown): boolean;
|
|
1400
|
+
data: CurrentUser;
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
/** Rows deleted */
|
|
1404
|
+
export class DeletedCount {
|
|
1405
|
+
constructor(...required: any[]);
|
|
1406
|
+
static constructFromObject(data: unknown, obj?: DeletedCount): DeletedCount;
|
|
1407
|
+
static validateJSON(data: unknown): boolean;
|
|
1408
|
+
deleted: number;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
/** DeletedCount under `data` */
|
|
1412
|
+
export class DeletedCountResponse {
|
|
1413
|
+
constructor(...required: any[]);
|
|
1414
|
+
static constructFromObject(data: unknown, obj?: DeletedCountResponse): DeletedCountResponse;
|
|
1415
|
+
static validateJSON(data: unknown): boolean;
|
|
1416
|
+
data: DeletedCount;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
/** Granted and spent for one day, currency and reason */
|
|
1420
|
+
export class EconomyFlowDay {
|
|
1421
|
+
constructor(...required: any[]);
|
|
1422
|
+
static constructFromObject(data: unknown, obj?: EconomyFlowDay): EconomyFlowDay;
|
|
1423
|
+
static validateJSON(data: unknown): boolean;
|
|
1424
|
+
currency: string;
|
|
1425
|
+
day: Date;
|
|
1426
|
+
entries: number;
|
|
1427
|
+
granted: number;
|
|
1428
|
+
reason: string;
|
|
1429
|
+
spent: number;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
/** Granted and spent for one currency and reason */
|
|
1433
|
+
export class EconomyTotal {
|
|
1434
|
+
constructor(...required: any[]);
|
|
1435
|
+
static constructFromObject(data: unknown, obj?: EconomyTotal): EconomyTotal;
|
|
1436
|
+
static validateJSON(data: unknown): boolean;
|
|
1437
|
+
currency: string;
|
|
1438
|
+
entries: number;
|
|
1439
|
+
granted: number;
|
|
1440
|
+
net: number;
|
|
1441
|
+
reason: string;
|
|
1442
|
+
spent: number;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
/** An owned entitlement */
|
|
1446
|
+
export class Entitlement {
|
|
1447
|
+
constructor(...required: any[]);
|
|
1448
|
+
static constructFromObject(data: unknown, obj?: Entitlement): Entitlement;
|
|
1449
|
+
static validateJSON(data: unknown): boolean;
|
|
1450
|
+
/** Null for a permanent entitlement */
|
|
1451
|
+
expires_at: Date | null;
|
|
1452
|
+
id: string;
|
|
1453
|
+
/** What the game checks for */
|
|
1454
|
+
key: string;
|
|
1455
|
+
metadata: Record<string, any>;
|
|
1456
|
+
/** Empty when not granted by a product */
|
|
1457
|
+
product_id: string;
|
|
1458
|
+
revoked_at: Date | null;
|
|
1459
|
+
/** Empty when not granted by a purchase */
|
|
1460
|
+
source_purchase_id: string;
|
|
1461
|
+
starts_at: Date | null;
|
|
1462
|
+
status: string;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
/** A page of Entitlement rows */
|
|
1466
|
+
export class EntitlementPage {
|
|
1467
|
+
constructor(...required: any[]);
|
|
1468
|
+
static constructFromObject(data: unknown, obj?: EntitlementPage): EntitlementPage;
|
|
1469
|
+
static validateJSON(data: unknown): boolean;
|
|
1470
|
+
data: Entitlement[];
|
|
1471
|
+
meta: PageMeta;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
/** Error response */
|
|
1475
|
+
export class ErrorResponse {
|
|
1476
|
+
constructor(...required: any[]);
|
|
1477
|
+
static constructFromObject(data: unknown, obj?: ErrorResponse): ErrorResponse;
|
|
1478
|
+
static validateJSON(data: unknown): boolean;
|
|
1479
|
+
/** snake_case reason a client can switch on */
|
|
1480
|
+
error: string;
|
|
1481
|
+
/** With validation_failed only: per-field messages, already translated */
|
|
1482
|
+
errors?: Record<string, string[]>;
|
|
1483
|
+
/** A human-readable explanation */
|
|
1484
|
+
message?: string;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
/** An accepted friend */
|
|
1488
|
+
export class Friend {
|
|
1489
|
+
constructor(...required: any[]);
|
|
1490
|
+
static constructFromObject(data: unknown, obj?: Friend): Friend;
|
|
1491
|
+
static validateJSON(data: unknown): boolean;
|
|
1492
|
+
display_name: string;
|
|
1493
|
+
/** The friendship row: the id remove, block and unblock take */
|
|
1494
|
+
friendship_id: string;
|
|
1495
|
+
/** The friend's user id */
|
|
1496
|
+
id: string;
|
|
1497
|
+
is_activated: boolean;
|
|
1498
|
+
is_online: boolean;
|
|
1499
|
+
last_seen_at: Date;
|
|
1500
|
+
metadata: Record<string, any>;
|
|
1501
|
+
profile_url: string;
|
|
1502
|
+
username: string;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
/** A page of Friend rows */
|
|
1506
|
+
export class FriendPage {
|
|
1507
|
+
constructor(...required: any[]);
|
|
1508
|
+
static constructFromObject(data: unknown, obj?: FriendPage): FriendPage;
|
|
1509
|
+
static validateJSON(data: unknown): boolean;
|
|
1510
|
+
data: Friend[];
|
|
1511
|
+
meta: PageMeta;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
/** A friend request */
|
|
1515
|
+
export class FriendRequest {
|
|
1516
|
+
constructor(...required: any[]);
|
|
1517
|
+
static constructFromObject(data: unknown, obj?: FriendRequest): FriendRequest;
|
|
1518
|
+
static validateJSON(data: unknown): boolean;
|
|
1519
|
+
/** The friendship row id */
|
|
1520
|
+
id: string;
|
|
1521
|
+
inserted_at: Date;
|
|
1522
|
+
requester: UserBrief;
|
|
1523
|
+
status: string;
|
|
1524
|
+
target: UserBrief;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
/** Requests to and from the user */
|
|
1528
|
+
export class FriendRequestLists {
|
|
1529
|
+
constructor(...required: any[]);
|
|
1530
|
+
static constructFromObject(data: unknown, obj?: FriendRequestLists): FriendRequestLists;
|
|
1531
|
+
static validateJSON(data: unknown): boolean;
|
|
1532
|
+
incoming: FriendRequest[];
|
|
1533
|
+
outgoing: FriendRequest[];
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
/** Pagination for each request list */
|
|
1537
|
+
export class FriendRequestMeta {
|
|
1538
|
+
constructor(...required: any[]);
|
|
1539
|
+
static constructFromObject(data: unknown, obj?: FriendRequestMeta): FriendRequestMeta;
|
|
1540
|
+
static validateJSON(data: unknown): boolean;
|
|
1541
|
+
incoming: PageMeta;
|
|
1542
|
+
outgoing: PageMeta;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
/** FriendRequest under `data` */
|
|
1546
|
+
export class FriendRequestResponse {
|
|
1547
|
+
constructor(...required: any[]);
|
|
1548
|
+
static constructFromObject(data: unknown, obj?: FriendRequestResponse): FriendRequestResponse;
|
|
1549
|
+
static validateJSON(data: unknown): boolean;
|
|
1550
|
+
data: FriendRequest;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
/** FriendRequestLists under `data` */
|
|
1554
|
+
export class FriendRequestsResponse {
|
|
1555
|
+
constructor(...required: any[]);
|
|
1556
|
+
static constructFromObject(data: unknown, obj?: FriendRequestsResponse): FriendRequestsResponse;
|
|
1557
|
+
static validateJSON(data: unknown): boolean;
|
|
1558
|
+
data: FriendRequestLists;
|
|
1559
|
+
meta: FriendRequestMeta;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
/** A group */
|
|
1563
|
+
export class Group {
|
|
1564
|
+
constructor(...required: any[]);
|
|
1565
|
+
static constructFromObject(data: unknown, obj?: Group): Group;
|
|
1566
|
+
static validateJSON(data: unknown): boolean;
|
|
1567
|
+
static readonly TypeEnum: { readonly "public": "public"; readonly "private": "private"; readonly "hidden": "hidden" };
|
|
1568
|
+
/** Creator's user id; empty for a system group */
|
|
1569
|
+
creator_id: string;
|
|
1570
|
+
/** Creator's display name, or empty */
|
|
1571
|
+
creator_name: string;
|
|
1572
|
+
/** Empty when unset */
|
|
1573
|
+
description: string;
|
|
1574
|
+
/** Empty when unset */
|
|
1575
|
+
icon_url: string;
|
|
1576
|
+
id: string;
|
|
1577
|
+
inserted_at?: Date;
|
|
1578
|
+
max_members: number;
|
|
1579
|
+
member_count?: number;
|
|
1580
|
+
/** Server-managed metadata */
|
|
1581
|
+
metadata: Record<string, any>;
|
|
1582
|
+
/** Chat slowdown in seconds (0 = off) */
|
|
1583
|
+
slowdown?: number;
|
|
1584
|
+
/** Its name in a URL, unique per creator: lowercase letters and digits of any script joined by - or _ */
|
|
1585
|
+
slug: string;
|
|
1586
|
+
/** Display title */
|
|
1587
|
+
title: string;
|
|
1588
|
+
/** Who may join and who may see it */
|
|
1589
|
+
type: "public" | "private" | "hidden";
|
|
1590
|
+
updated_at?: Date;
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
/** An invitation to join a group */
|
|
1594
|
+
export class GroupInvite {
|
|
1595
|
+
constructor(...required: any[]);
|
|
1596
|
+
static constructFromObject(data: unknown, obj?: GroupInvite): GroupInvite;
|
|
1597
|
+
static validateJSON(data: unknown): boolean;
|
|
1598
|
+
group_id: string;
|
|
1599
|
+
group_title: string;
|
|
1600
|
+
id: string;
|
|
1601
|
+
inserted_at: Date;
|
|
1602
|
+
recipient_id: string;
|
|
1603
|
+
recipient_name: string;
|
|
1604
|
+
/** The recipient's avatar, as `sender_profile_url` */
|
|
1605
|
+
recipient_profile_url?: string;
|
|
1606
|
+
sender_id: string;
|
|
1607
|
+
sender_name: string;
|
|
1608
|
+
/** The sender's avatar: an image we host, or one of the server's icons (`/icons/<name>.svg?color=<color>`) */
|
|
1609
|
+
sender_profile_url?: string;
|
|
1610
|
+
/** pending | accepted | declined | cancelled */
|
|
1611
|
+
status: string;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
/** A group's invite link: anyone signed in who opens `url`, or joins with `token`, becomes a member */
|
|
1615
|
+
export class GroupInviteLink {
|
|
1616
|
+
constructor(...required: any[]);
|
|
1617
|
+
static constructFromObject(data: unknown, obj?: GroupInviteLink): GroupInviteLink;
|
|
1618
|
+
static validateJSON(data: unknown): boolean;
|
|
1619
|
+
expires_at: Date;
|
|
1620
|
+
group_id: string;
|
|
1621
|
+
/** The link's secret part */
|
|
1622
|
+
token: string;
|
|
1623
|
+
/** The website page the link opens */
|
|
1624
|
+
url: string;
|
|
1625
|
+
/** How many people joined through it */
|
|
1626
|
+
uses: number;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
/** The group an invite link opens, and whether the caller is already in it */
|
|
1630
|
+
export class GroupInviteLinkPreview {
|
|
1631
|
+
constructor(...required: any[]);
|
|
1632
|
+
static constructFromObject(data: unknown, obj?: GroupInviteLinkPreview): GroupInviteLinkPreview;
|
|
1633
|
+
static validateJSON(data: unknown): boolean;
|
|
1634
|
+
static readonly GroupTypeEnum: { readonly "public": "public"; readonly "private": "private"; readonly "hidden": "hidden" };
|
|
1635
|
+
/** The admin who made the link */
|
|
1636
|
+
creator_name: string;
|
|
1637
|
+
expires_at: Date;
|
|
1638
|
+
group_id: string;
|
|
1639
|
+
group_title: string;
|
|
1640
|
+
group_type: "public" | "private" | "hidden";
|
|
1641
|
+
/** Whether the caller is already a member */
|
|
1642
|
+
member: boolean;
|
|
1643
|
+
member_count: number;
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
/** GroupInviteLinkPreview under `data` */
|
|
1647
|
+
export class GroupInviteLinkPreviewResponse {
|
|
1648
|
+
constructor(...required: any[]);
|
|
1649
|
+
static constructFromObject(data: unknown, obj?: GroupInviteLinkPreviewResponse): GroupInviteLinkPreviewResponse;
|
|
1650
|
+
static validateJSON(data: unknown): boolean;
|
|
1651
|
+
data: GroupInviteLinkPreview;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
/** GroupInviteLink under `data` */
|
|
1655
|
+
export class GroupInviteLinkResponse {
|
|
1656
|
+
constructor(...required: any[]);
|
|
1657
|
+
static constructFromObject(data: unknown, obj?: GroupInviteLinkResponse): GroupInviteLinkResponse;
|
|
1658
|
+
static validateJSON(data: unknown): boolean;
|
|
1659
|
+
data: GroupInviteLink;
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
/** The result of an invitation */
|
|
1663
|
+
export class GroupInviteOutcome {
|
|
1664
|
+
constructor(...required: any[]);
|
|
1665
|
+
static constructFromObject(data: unknown, obj?: GroupInviteOutcome): GroupInviteOutcome;
|
|
1666
|
+
static validateJSON(data: unknown): boolean;
|
|
1667
|
+
static readonly StatusEnum: { readonly "invited": "invited"; readonly "request_approved": "request_approved" };
|
|
1668
|
+
/** `invited` when an invite was created, `request_approved` when the user had asked to join and was let in instead */
|
|
1669
|
+
status: "invited" | "request_approved";
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
/** GroupInviteOutcome under `data` */
|
|
1673
|
+
export class GroupInviteOutcomeResponse {
|
|
1674
|
+
constructor(...required: any[]);
|
|
1675
|
+
static constructFromObject(data: unknown, obj?: GroupInviteOutcomeResponse): GroupInviteOutcomeResponse;
|
|
1676
|
+
static validateJSON(data: unknown): boolean;
|
|
1677
|
+
data: GroupInviteOutcome;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
/** A page of GroupInvite rows */
|
|
1681
|
+
export class GroupInvitePage {
|
|
1682
|
+
constructor(...required: any[]);
|
|
1683
|
+
static constructFromObject(data: unknown, obj?: GroupInvitePage): GroupInvitePage;
|
|
1684
|
+
static validateJSON(data: unknown): boolean;
|
|
1685
|
+
data: GroupInvite[];
|
|
1686
|
+
meta: PageMeta;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
/** A request to join a group */
|
|
1690
|
+
export class GroupJoinRequest {
|
|
1691
|
+
constructor(...required: any[]);
|
|
1692
|
+
static constructFromObject(data: unknown, obj?: GroupJoinRequest): GroupJoinRequest;
|
|
1693
|
+
static validateJSON(data: unknown): boolean;
|
|
1694
|
+
static readonly StatusEnum: { readonly "pending": "pending"; readonly "accepted": "accepted"; readonly "rejected": "rejected" };
|
|
1695
|
+
display_name: string;
|
|
1696
|
+
group_id: string;
|
|
1697
|
+
id: string;
|
|
1698
|
+
inserted_at: Date;
|
|
1699
|
+
status: "pending" | "accepted" | "rejected";
|
|
1700
|
+
user_id: string;
|
|
1701
|
+
username: string;
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
/** A page of GroupJoinRequest rows */
|
|
1705
|
+
export class GroupJoinRequestPage {
|
|
1706
|
+
constructor(...required: any[]);
|
|
1707
|
+
static constructFromObject(data: unknown, obj?: GroupJoinRequestPage): GroupJoinRequestPage;
|
|
1708
|
+
static validateJSON(data: unknown): boolean;
|
|
1709
|
+
data: GroupJoinRequest[];
|
|
1710
|
+
meta: PageMeta;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
/** GroupJoinRequest under `data` */
|
|
1714
|
+
export class GroupJoinRequestResponse {
|
|
1715
|
+
constructor(...required: any[]);
|
|
1716
|
+
static constructFromObject(data: unknown, obj?: GroupJoinRequestResponse): GroupJoinRequestResponse;
|
|
1717
|
+
static validateJSON(data: unknown): boolean;
|
|
1718
|
+
data: GroupJoinRequest;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
/** A member of a group */
|
|
1722
|
+
export class GroupMember {
|
|
1723
|
+
constructor(...required: any[]);
|
|
1724
|
+
static constructFromObject(data: unknown, obj?: GroupMember): GroupMember;
|
|
1725
|
+
static validateJSON(data: unknown): boolean;
|
|
1726
|
+
static readonly RoleEnum: { readonly "admin": "admin"; readonly "member": "member" };
|
|
1727
|
+
display_name: string;
|
|
1728
|
+
group_id: string;
|
|
1729
|
+
/** The membership row id */
|
|
1730
|
+
id: string;
|
|
1731
|
+
/** When they joined */
|
|
1732
|
+
inserted_at: Date;
|
|
1733
|
+
is_online: boolean;
|
|
1734
|
+
last_seen_at: Date;
|
|
1735
|
+
/** The avatar: an image we host, or one of the server's icons (`/icons/<name>.svg?color=<color>`), one the user's id gives them when they set none. Empty when signed out */
|
|
1736
|
+
profile_url: string;
|
|
1737
|
+
role: "admin" | "member";
|
|
1738
|
+
user_id: string;
|
|
1739
|
+
username: string;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
/** A page of GroupMember rows */
|
|
1743
|
+
export class GroupMemberPage {
|
|
1744
|
+
constructor(...required: any[]);
|
|
1745
|
+
static constructFromObject(data: unknown, obj?: GroupMemberPage): GroupMemberPage;
|
|
1746
|
+
static validateJSON(data: unknown): boolean;
|
|
1747
|
+
data: GroupMember[];
|
|
1748
|
+
meta: PageMeta;
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
/** GroupMember under `data` */
|
|
1752
|
+
export class GroupMemberResponse {
|
|
1753
|
+
constructor(...required: any[]);
|
|
1754
|
+
static constructFromObject(data: unknown, obj?: GroupMemberResponse): GroupMemberResponse;
|
|
1755
|
+
static validateJSON(data: unknown): boolean;
|
|
1756
|
+
data: GroupMember;
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
/** A page of Group rows */
|
|
1760
|
+
export class GroupPage {
|
|
1761
|
+
constructor(...required: any[]);
|
|
1762
|
+
static constructFromObject(data: unknown, obj?: GroupPage): GroupPage;
|
|
1763
|
+
static validateJSON(data: unknown): boolean;
|
|
1764
|
+
data: Group[];
|
|
1765
|
+
meta: PageMeta;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
/** Group under `data` */
|
|
1769
|
+
export class GroupResponse {
|
|
1770
|
+
constructor(...required: any[]);
|
|
1771
|
+
static constructFromObject(data: unknown, obj?: GroupResponse): GroupResponse;
|
|
1772
|
+
static validateJSON(data: unknown): boolean;
|
|
1773
|
+
data: Group;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
/** The API is up */
|
|
1777
|
+
export class Health {
|
|
1778
|
+
constructor(...required: any[]);
|
|
1779
|
+
static constructFromObject(data: unknown, obj?: Health): Health;
|
|
1780
|
+
static validateJSON(data: unknown): boolean;
|
|
1781
|
+
/** Always `ok` when answered */
|
|
1782
|
+
status: string;
|
|
1783
|
+
/** The server's clock */
|
|
1784
|
+
timestamp: Date;
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
/** Health under `data` */
|
|
1788
|
+
export class HealthResponse {
|
|
1789
|
+
constructor(...required: any[]);
|
|
1790
|
+
static constructFromObject(data: unknown, obj?: HealthResponse): HealthResponse;
|
|
1791
|
+
static validateJSON(data: unknown): boolean;
|
|
1792
|
+
data: Health;
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
/** The hook's return value under `data` */
|
|
1796
|
+
export class HookCallResponse {
|
|
1797
|
+
constructor(...required: any[]);
|
|
1798
|
+
static constructFromObject(data: unknown, obj?: HookCallResponse): HookCallResponse;
|
|
1799
|
+
static validateJSON(data: unknown): boolean;
|
|
1800
|
+
/** The hook's return value */
|
|
1801
|
+
data: any;
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
/** A callable hook function */
|
|
1805
|
+
export class HookFunction {
|
|
1806
|
+
constructor(...required: any[]);
|
|
1807
|
+
static constructFromObject(data: unknown, obj?: HookFunction): HookFunction;
|
|
1808
|
+
static validateJSON(data: unknown): boolean;
|
|
1809
|
+
arities: number[];
|
|
1810
|
+
/** Registered at runtime rather than compiled */
|
|
1811
|
+
dynamic: boolean;
|
|
1812
|
+
/** The function name, as `call_hook` takes it */
|
|
1813
|
+
fn: string;
|
|
1814
|
+
/** A dynamic function's registration; `{}` otherwise */
|
|
1815
|
+
meta: Record<string, any>;
|
|
1816
|
+
plugin: string;
|
|
1817
|
+
signatures: HookSignature[];
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
/** A page of HookFunction rows */
|
|
1821
|
+
export class HookFunctionPage {
|
|
1822
|
+
constructor(...required: any[]);
|
|
1823
|
+
static constructFromObject(data: unknown, obj?: HookFunctionPage): HookFunctionPage;
|
|
1824
|
+
static validateJSON(data: unknown): boolean;
|
|
1825
|
+
data: HookFunction[];
|
|
1826
|
+
meta: PageMeta;
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
/** A hook function at one arity */
|
|
1830
|
+
export class HookSignature {
|
|
1831
|
+
constructor(...required: any[]);
|
|
1832
|
+
static constructFromObject(data: unknown, obj?: HookSignature): HookSignature;
|
|
1833
|
+
static validateJSON(data: unknown): boolean;
|
|
1834
|
+
arity: number;
|
|
1835
|
+
/** Empty when undocumented */
|
|
1836
|
+
doc: string;
|
|
1837
|
+
/** A JSON array to start `args` from */
|
|
1838
|
+
example_args: string;
|
|
1839
|
+
/** `fn_name(arg, ...)` */
|
|
1840
|
+
signature: string;
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1843
|
+
/** Rows imported; duplicates are skipped and not counted */
|
|
1844
|
+
export class ImportedCount {
|
|
1845
|
+
constructor(...required: any[]);
|
|
1846
|
+
static constructFromObject(data: unknown, obj?: ImportedCount): ImportedCount;
|
|
1847
|
+
static validateJSON(data: unknown): boolean;
|
|
1848
|
+
imported: number;
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
/** ImportedCount under `data` */
|
|
1852
|
+
export class ImportedCountResponse {
|
|
1853
|
+
constructor(...required: any[]);
|
|
1854
|
+
static constructFromObject(data: unknown, obj?: ImportedCountResponse): ImportedCountResponse;
|
|
1855
|
+
static validateJSON(data: unknown): boolean;
|
|
1856
|
+
data: ImportedCount;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
/** Item code to quantity */
|
|
1860
|
+
export type Inventory = Record<string, number>;
|
|
1861
|
+
|
|
1862
|
+
/** Inventory under `data` */
|
|
1863
|
+
export class InventoryResponse {
|
|
1864
|
+
constructor(...required: any[]);
|
|
1865
|
+
static constructFromObject(data: unknown, obj?: InventoryResponse): InventoryResponse;
|
|
1866
|
+
static validateJSON(data: unknown): boolean;
|
|
1867
|
+
data: Inventory;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
/** The quantity after the change */
|
|
1871
|
+
export class ItemQuantity {
|
|
1872
|
+
constructor(...required: any[]);
|
|
1873
|
+
static constructFromObject(data: unknown, obj?: ItemQuantity): ItemQuantity;
|
|
1874
|
+
static validateJSON(data: unknown): boolean;
|
|
1875
|
+
item: string;
|
|
1876
|
+
quantity: number;
|
|
1877
|
+
user_id: string;
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
/** ItemQuantity under `data` */
|
|
1881
|
+
export class ItemQuantityResponse {
|
|
1882
|
+
constructor(...required: any[]);
|
|
1883
|
+
static constructFromObject(data: unknown, obj?: ItemQuantityResponse): ItemQuantityResponse;
|
|
1884
|
+
static validateJSON(data: unknown): boolean;
|
|
1885
|
+
data: ItemQuantity;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
/** A key/value entry */
|
|
1889
|
+
export class KvEntry {
|
|
1890
|
+
constructor(...required: any[]);
|
|
1891
|
+
static constructFromObject(data: unknown, obj?: KvEntry): KvEntry;
|
|
1892
|
+
static validateJSON(data: unknown): boolean;
|
|
1893
|
+
/** The stored value */
|
|
1894
|
+
data: Record<string, any>;
|
|
1895
|
+
key: string;
|
|
1896
|
+
/** Owning lobby; empty when not lobby-scoped */
|
|
1897
|
+
lobby_id: string;
|
|
1898
|
+
metadata: Record<string, any>;
|
|
1899
|
+
/** Owning user; empty when not user-scoped */
|
|
1900
|
+
user_id: string;
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
/** KvEntry under `data` */
|
|
1904
|
+
export class KvEntryResponse {
|
|
1905
|
+
constructor(...required: any[]);
|
|
1906
|
+
static constructFromObject(data: unknown, obj?: KvEntryResponse): KvEntryResponse;
|
|
1907
|
+
static validateJSON(data: unknown): boolean;
|
|
1908
|
+
data: KvEntry;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
/** A leaderboard (one season of a slug) */
|
|
1912
|
+
export class Leaderboard {
|
|
1913
|
+
constructor(...required: any[]);
|
|
1914
|
+
static constructFromObject(data: unknown, obj?: Leaderboard): Leaderboard;
|
|
1915
|
+
static validateJSON(data: unknown): boolean;
|
|
1916
|
+
static readonly OperatorEnum: { readonly "set": "set"; readonly "best": "best"; readonly "incr": "incr"; readonly "decr": "decr" };
|
|
1917
|
+
static readonly SortOrderEnum: { readonly "desc": "desc"; readonly "asc": "asc" };
|
|
1918
|
+
description: string;
|
|
1919
|
+
/** Null for a permanent leaderboard */
|
|
1920
|
+
ends_at: Date | null;
|
|
1921
|
+
/** Empty when unset (the client applies its own default) */
|
|
1922
|
+
icon_url: string;
|
|
1923
|
+
id: string;
|
|
1924
|
+
inserted_at: Date;
|
|
1925
|
+
/** Still accepting scores */
|
|
1926
|
+
is_active: boolean;
|
|
1927
|
+
metadata: Record<string, any>;
|
|
1928
|
+
/** How a submitted score combines with the stored one */
|
|
1929
|
+
operator: "set" | "best" | "incr" | "decr";
|
|
1930
|
+
/** Human-readable identifier in any script, shared by every season */
|
|
1931
|
+
slug: string;
|
|
1932
|
+
/** `desc`: higher is better; `asc`: lower is better */
|
|
1933
|
+
sort_order: "desc" | "asc";
|
|
1934
|
+
starts_at: Date | null;
|
|
1935
|
+
title: string;
|
|
1936
|
+
updated_at: Date;
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
/** The keys the board holds listed records under */
|
|
1940
|
+
export class LeaderboardKeys {
|
|
1941
|
+
constructor(...required: any[]);
|
|
1942
|
+
static constructFromObject(data: unknown, obj?: LeaderboardKeys): LeaderboardKeys;
|
|
1943
|
+
static validateJSON(data: unknown): boolean;
|
|
1944
|
+
keys: string[];
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
/** LeaderboardKeys under `data` */
|
|
1948
|
+
export class LeaderboardKeysResponse {
|
|
1949
|
+
constructor(...required: any[]);
|
|
1950
|
+
static constructFromObject(data: unknown, obj?: LeaderboardKeysResponse): LeaderboardKeysResponse;
|
|
1951
|
+
static validateJSON(data: unknown): boolean;
|
|
1952
|
+
data: LeaderboardKeys;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
/** A page of Leaderboard rows */
|
|
1956
|
+
export class LeaderboardPage {
|
|
1957
|
+
constructor(...required: any[]);
|
|
1958
|
+
static constructFromObject(data: unknown, obj?: LeaderboardPage): LeaderboardPage;
|
|
1959
|
+
static validateJSON(data: unknown): boolean;
|
|
1960
|
+
data: Leaderboard[];
|
|
1961
|
+
meta: PageMeta;
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
/** A ranked leaderboard record */
|
|
1965
|
+
export class LeaderboardRecord {
|
|
1966
|
+
constructor(...required: any[]);
|
|
1967
|
+
static constructFromObject(data: unknown, obj?: LeaderboardRecord): LeaderboardRecord;
|
|
1968
|
+
static validateJSON(data: unknown): boolean;
|
|
1969
|
+
/** The user's display name, or the label's text */
|
|
1970
|
+
display_name: string;
|
|
1971
|
+
/** True on a guest's own record that the board does not list (the server requires an account to be listed): `rank` is where it would stand. Register to be listed. */
|
|
1972
|
+
hidden: boolean;
|
|
1973
|
+
/** Per-record metadata */
|
|
1974
|
+
metadata: Record<string, any>;
|
|
1975
|
+
/** 1 is the top of the board */
|
|
1976
|
+
rank: number;
|
|
1977
|
+
score: number;
|
|
1978
|
+
updated_at: Date;
|
|
1979
|
+
/** Empty for a label record */
|
|
1980
|
+
user_id: string;
|
|
1981
|
+
/** Empty for a label record */
|
|
1982
|
+
username: string;
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
/** A page of LeaderboardRecord rows */
|
|
1986
|
+
export class LeaderboardRecordPage {
|
|
1987
|
+
constructor(...required: any[]);
|
|
1988
|
+
static constructFromObject(data: unknown, obj?: LeaderboardRecordPage): LeaderboardRecordPage;
|
|
1989
|
+
static validateJSON(data: unknown): boolean;
|
|
1990
|
+
data: LeaderboardRecord[];
|
|
1991
|
+
meta: PageMeta;
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
/** LeaderboardRecord under `data` */
|
|
1995
|
+
export class LeaderboardRecordResponse {
|
|
1996
|
+
constructor(...required: any[]);
|
|
1997
|
+
static constructFromObject(data: unknown, obj?: LeaderboardRecordResponse): LeaderboardRecordResponse;
|
|
1998
|
+
static validateJSON(data: unknown): boolean;
|
|
1999
|
+
data: LeaderboardRecord;
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
/** Leaderboard under `data` */
|
|
2003
|
+
export class LeaderboardResponse {
|
|
2004
|
+
constructor(...required: any[]);
|
|
2005
|
+
static constructFromObject(data: unknown, obj?: LeaderboardResponse): LeaderboardResponse;
|
|
2006
|
+
static validateJSON(data: unknown): boolean;
|
|
2007
|
+
data: Leaderboard;
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
/** Slug to its active leaderboard; a slug with none is left out */
|
|
2011
|
+
export type LeaderboardsBySlug = Record<string, Leaderboard>;
|
|
2012
|
+
|
|
2013
|
+
/** LeaderboardsBySlug under `data` */
|
|
2014
|
+
export class LeaderboardsBySlugResponse {
|
|
2015
|
+
constructor(...required: any[]);
|
|
2016
|
+
static constructFromObject(data: unknown, obj?: LeaderboardsBySlugResponse): LeaderboardsBySlugResponse;
|
|
2017
|
+
static validateJSON(data: unknown): boolean;
|
|
2018
|
+
data: LeaderboardsBySlug;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
/** A wallet change */
|
|
2022
|
+
export class LedgerEntry {
|
|
2023
|
+
constructor(...required: any[]);
|
|
2024
|
+
static constructFromObject(data: unknown, obj?: LedgerEntry): LedgerEntry;
|
|
2025
|
+
static validateJSON(data: unknown): boolean;
|
|
2026
|
+
/** The balance right after this change */
|
|
2027
|
+
balance_after: number;
|
|
2028
|
+
currency: string;
|
|
2029
|
+
/** Positive for a grant, negative for a spend */
|
|
2030
|
+
delta: number;
|
|
2031
|
+
id: string;
|
|
2032
|
+
inserted_at: Date;
|
|
2033
|
+
metadata: Record<string, any>;
|
|
2034
|
+
/** Why, as the granting code named it */
|
|
2035
|
+
reason: string;
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
/** A page of LedgerEntry rows */
|
|
2039
|
+
export class LedgerEntryPage {
|
|
2040
|
+
constructor(...required: any[]);
|
|
2041
|
+
static constructFromObject(data: unknown, obj?: LedgerEntryPage): LedgerEntryPage;
|
|
2042
|
+
static validateJSON(data: unknown): boolean;
|
|
2043
|
+
data: LedgerEntry[];
|
|
2044
|
+
meta: PageMeta;
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
/** Which sign-in methods are linked to the account */
|
|
2048
|
+
export class LinkedProviders {
|
|
2049
|
+
constructor(...required: any[]);
|
|
2050
|
+
static constructFromObject(data: unknown, obj?: LinkedProviders): LinkedProviders;
|
|
2051
|
+
static validateJSON(data: unknown): boolean;
|
|
2052
|
+
apple: boolean;
|
|
2053
|
+
device: boolean;
|
|
2054
|
+
discord: boolean;
|
|
2055
|
+
facebook: boolean;
|
|
2056
|
+
github: boolean;
|
|
2057
|
+
google: boolean;
|
|
2058
|
+
steam: boolean;
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
/** A lobby */
|
|
2062
|
+
export class Lobby {
|
|
2063
|
+
constructor(...required: any[]);
|
|
2064
|
+
static constructFromObject(data: unknown, obj?: Lobby): Lobby;
|
|
2065
|
+
static validateJSON(data: unknown): boolean;
|
|
2066
|
+
/** User id of the host; empty for a hostless lobby */
|
|
2067
|
+
host_id: string;
|
|
2068
|
+
/** Display name of the host, or empty */
|
|
2069
|
+
host_name: string;
|
|
2070
|
+
/** Server-managed, with no host */
|
|
2071
|
+
hostless: boolean;
|
|
2072
|
+
id: string;
|
|
2073
|
+
/** Hidden from public listings */
|
|
2074
|
+
is_hidden: boolean;
|
|
2075
|
+
/** Locked: no new joins */
|
|
2076
|
+
is_locked: boolean;
|
|
2077
|
+
/** Joining requires a password */
|
|
2078
|
+
is_passworded?: boolean;
|
|
2079
|
+
/** Maximum number of users */
|
|
2080
|
+
max_users: number;
|
|
2081
|
+
/** Current members */
|
|
2082
|
+
members?: UserBrief[];
|
|
2083
|
+
/** Arbitrary metadata */
|
|
2084
|
+
metadata: Record<string, any>;
|
|
2085
|
+
/** Chat slowdown in seconds (0 = off) */
|
|
2086
|
+
slowdown?: number;
|
|
2087
|
+
/** Current spectators */
|
|
2088
|
+
spectator_count?: number;
|
|
2089
|
+
/** Lifecycle state in the game's vocabulary (core documents created, starting, playing, ended) */
|
|
2090
|
+
state: string;
|
|
2091
|
+
/** When `state` last changed; null if it never has */
|
|
2092
|
+
state_changed_at: Date | null;
|
|
2093
|
+
/** Display title */
|
|
2094
|
+
title: string;
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
/** A page of Lobby rows */
|
|
2098
|
+
export class LobbyPage {
|
|
2099
|
+
constructor(...required: any[]);
|
|
2100
|
+
static constructFromObject(data: unknown, obj?: LobbyPage): LobbyPage;
|
|
2101
|
+
static validateJSON(data: unknown): boolean;
|
|
2102
|
+
data: Lobby[];
|
|
2103
|
+
meta: PageMeta;
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
/** Lobby under `data` */
|
|
2107
|
+
export class LobbyResponse {
|
|
2108
|
+
constructor(...required: any[]);
|
|
2109
|
+
static constructFromObject(data: unknown, obj?: LobbyResponse): LobbyResponse;
|
|
2110
|
+
static validateJSON(data: unknown): boolean;
|
|
2111
|
+
data: Lobby;
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
/** Lobby counts, cached for up to a minute */
|
|
2115
|
+
export class LobbyStats {
|
|
2116
|
+
constructor(...required: any[]);
|
|
2117
|
+
static constructFromObject(data: unknown, obj?: LobbyStats): LobbyStats;
|
|
2118
|
+
static validateJSON(data: unknown): boolean;
|
|
2119
|
+
/** Lobby count per lifecycle state */
|
|
2120
|
+
by_state: Record<string, number>;
|
|
2121
|
+
lobbies_total: number;
|
|
2122
|
+
spectators: number;
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
/** LobbyStats under `data` */
|
|
2126
|
+
export class LobbyStatsResponse {
|
|
2127
|
+
constructor(...required: any[]);
|
|
2128
|
+
static constructFromObject(data: unknown, obj?: LobbyStatsResponse): LobbyStatsResponse;
|
|
2129
|
+
static validateJSON(data: unknown): boolean;
|
|
2130
|
+
data: LobbyStats;
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
/** Waiting players for one set of match params */
|
|
2134
|
+
export class MatchmakingQueue {
|
|
2135
|
+
constructor(...required: any[]);
|
|
2136
|
+
static constructFromObject(data: unknown, obj?: MatchmakingQueue): MatchmakingQueue;
|
|
2137
|
+
static validateJSON(data: unknown): boolean;
|
|
2138
|
+
params: Record<string, string>;
|
|
2139
|
+
waiting: number;
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
/** Players queued, overall and per match params, deepest first */
|
|
2143
|
+
export class MatchmakingStats {
|
|
2144
|
+
constructor(...required: any[]);
|
|
2145
|
+
static constructFromObject(data: unknown, obj?: MatchmakingStats): MatchmakingStats;
|
|
2146
|
+
static validateJSON(data: unknown): boolean;
|
|
2147
|
+
queued: number;
|
|
2148
|
+
queues: MatchmakingQueue[];
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
/** MatchmakingStats under `data` */
|
|
2152
|
+
export class MatchmakingStatsResponse {
|
|
2153
|
+
constructor(...required: any[]);
|
|
2154
|
+
static constructFromObject(data: unknown, obj?: MatchmakingStatsResponse): MatchmakingStatsResponse;
|
|
2155
|
+
static validateJSON(data: unknown): boolean;
|
|
2156
|
+
data: MatchmakingStats;
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
/** A matchmaking ticket */
|
|
2160
|
+
export class MatchmakingTicket {
|
|
2161
|
+
constructor(...required: any[]);
|
|
2162
|
+
static constructFromObject(data: unknown, obj?: MatchmakingTicket): MatchmakingTicket;
|
|
2163
|
+
static validateJSON(data: unknown): boolean;
|
|
2164
|
+
static readonly StatusEnum: { readonly "queued": "queued"; readonly "matched": "matched"; readonly "cancelled": "cancelled" };
|
|
2165
|
+
id: string;
|
|
2166
|
+
/** The lobby the ticket fills (its host queued from it, backfill); empty for none */
|
|
2167
|
+
lobby_id: string;
|
|
2168
|
+
/** The lobby the ticket was matched into; empty while queued */
|
|
2169
|
+
match_id: string;
|
|
2170
|
+
/** String key/value pairs; only identical params match together */
|
|
2171
|
+
match_params: Record<string, string>;
|
|
2172
|
+
matched_at: Date | null;
|
|
2173
|
+
max_players: number;
|
|
2174
|
+
min_players: number;
|
|
2175
|
+
queued_at: Date;
|
|
2176
|
+
status: "queued" | "matched" | "cancelled";
|
|
2177
|
+
timeout_ms: number;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
/** MatchmakingTicket under `data` */
|
|
2181
|
+
export class MatchmakingTicketResponse {
|
|
2182
|
+
constructor(...required: any[]);
|
|
2183
|
+
static constructFromObject(data: unknown, obj?: MatchmakingTicketResponse): MatchmakingTicketResponse;
|
|
2184
|
+
static validateJSON(data: unknown): boolean;
|
|
2185
|
+
data: MatchmakingTicket;
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
/** The open check per lane; null where there is none */
|
|
2189
|
+
export class MyReadyChecks {
|
|
2190
|
+
constructor(...required: any[]);
|
|
2191
|
+
static constructFromObject(data: unknown, obj?: MyReadyChecks): MyReadyChecks;
|
|
2192
|
+
static validateJSON(data: unknown): boolean;
|
|
2193
|
+
/** The match lane: a lobby ready-up or a matchmaking accept */
|
|
2194
|
+
lobby: ReadyCheckState | null;
|
|
2195
|
+
/** The party's standing ready board */
|
|
2196
|
+
party: ReadyCheckState | null;
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
/** MyReadyChecks under `data` */
|
|
2200
|
+
export class MyReadyChecksResponse {
|
|
2201
|
+
constructor(...required: any[]);
|
|
2202
|
+
static constructFromObject(data: unknown, obj?: MyReadyChecksResponse): MyReadyChecksResponse;
|
|
2203
|
+
static validateJSON(data: unknown): boolean;
|
|
2204
|
+
data: MyReadyChecks;
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
/** A notification */
|
|
2208
|
+
export class Notification {
|
|
2209
|
+
constructor(...required: any[]);
|
|
2210
|
+
static constructFromObject(data: unknown, obj?: Notification): Notification;
|
|
2211
|
+
static validateJSON(data: unknown): boolean;
|
|
2212
|
+
content: string;
|
|
2213
|
+
/** The notification group it belongs to (`social`, `chat`, …). Empty for none */
|
|
2214
|
+
group: string;
|
|
2215
|
+
/** Empty when unset */
|
|
2216
|
+
icon_url: string;
|
|
2217
|
+
id: string;
|
|
2218
|
+
inserted_at: Date;
|
|
2219
|
+
metadata: Record<string, any>;
|
|
2220
|
+
recipient_id: string;
|
|
2221
|
+
/** Empty for a system notification */
|
|
2222
|
+
sender_id: string;
|
|
2223
|
+
sender_name: string;
|
|
2224
|
+
title: string;
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
/** A page of Notification rows */
|
|
2228
|
+
export class NotificationPage {
|
|
2229
|
+
constructor(...required: any[]);
|
|
2230
|
+
static constructFromObject(data: unknown, obj?: NotificationPage): NotificationPage;
|
|
2231
|
+
static validateJSON(data: unknown): boolean;
|
|
2232
|
+
data: Notification[];
|
|
2233
|
+
meta: PageMeta;
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
/** Notification under `data` */
|
|
2237
|
+
export class NotificationResponse {
|
|
2238
|
+
constructor(...required: any[]);
|
|
2239
|
+
static constructFromObject(data: unknown, obj?: NotificationResponse): NotificationResponse;
|
|
2240
|
+
static validateJSON(data: unknown): boolean;
|
|
2241
|
+
data: Notification;
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
/** A started OAuth sign-in */
|
|
2245
|
+
export class OAuthAuthorization {
|
|
2246
|
+
constructor(...required: any[]);
|
|
2247
|
+
static constructFromObject(data: unknown, obj?: OAuthAuthorization): OAuthAuthorization;
|
|
2248
|
+
static validateJSON(data: unknown): boolean;
|
|
2249
|
+
/** Open this for the player */
|
|
2250
|
+
authorization_url: string;
|
|
2251
|
+
/** Poll `GET /auth/session/{session_id}` with it */
|
|
2252
|
+
session_id: string;
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
/** OAuthAuthorization under `data` */
|
|
2256
|
+
export class OAuthAuthorizationResponse {
|
|
2257
|
+
constructor(...required: any[]);
|
|
2258
|
+
static constructFromObject(data: unknown, obj?: OAuthAuthorizationResponse): OAuthAuthorizationResponse;
|
|
2259
|
+
static validateJSON(data: unknown): boolean;
|
|
2260
|
+
data: OAuthAuthorization;
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
/** Where a provider sign-in stands */
|
|
2264
|
+
export class OAuthSessionStatus {
|
|
2265
|
+
constructor(...required: any[]);
|
|
2266
|
+
static constructFromObject(data: unknown, obj?: OAuthSessionStatus): OAuthSessionStatus;
|
|
2267
|
+
static validateJSON(data: unknown): boolean;
|
|
2268
|
+
static readonly StatusEnum: { readonly "pending": "pending"; readonly "completed": "completed"; readonly "error": "error" };
|
|
2269
|
+
/** The code when `status` is `error` (`account_not_activated`, `sign_in_failed`, `authentication_failed`), else empty */
|
|
2270
|
+
error: string;
|
|
2271
|
+
/** For a person; may be empty */
|
|
2272
|
+
message: string;
|
|
2273
|
+
/** The signed-in session, on the first read after `completed`; null on every other */
|
|
2274
|
+
session: Session | null;
|
|
2275
|
+
/** `pending` until the player finishes at the provider */
|
|
2276
|
+
status: "pending" | "completed" | "error";
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
/** OAuthSessionStatus under `data` */
|
|
2280
|
+
export class OAuthSessionStatusResponse {
|
|
2281
|
+
constructor(...required: any[]);
|
|
2282
|
+
static constructFromObject(data: unknown, obj?: OAuthSessionStatusResponse): OAuthSessionStatusResponse;
|
|
2283
|
+
static validateJSON(data: unknown): boolean;
|
|
2284
|
+
data: OAuthSessionStatus;
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2287
|
+
/** The action succeeded */
|
|
2288
|
+
export class OkResponse {
|
|
2289
|
+
constructor(...required: any[]);
|
|
2290
|
+
static constructFromObject(data: unknown, obj?: OkResponse): OkResponse;
|
|
2291
|
+
static validateJSON(data: unknown): boolean;
|
|
2292
|
+
ok: boolean;
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2295
|
+
/** Pagination for a list response */
|
|
2296
|
+
export class PageMeta {
|
|
2297
|
+
constructor(...required: any[]);
|
|
2298
|
+
static constructFromObject(data: unknown, obj?: PageMeta): PageMeta;
|
|
2299
|
+
static validateJSON(data: unknown): boolean;
|
|
2300
|
+
/** Rows on this page */
|
|
2301
|
+
count: number;
|
|
2302
|
+
/** Whether a later page exists */
|
|
2303
|
+
has_more: boolean;
|
|
2304
|
+
/** This page, 1-based */
|
|
2305
|
+
page: number;
|
|
2306
|
+
/** Rows asked for per page */
|
|
2307
|
+
page_size: number;
|
|
2308
|
+
/** Rows across every page */
|
|
2309
|
+
total_count: number;
|
|
2310
|
+
/** Pages at this page size */
|
|
2311
|
+
total_pages: number;
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
/** A party */
|
|
2315
|
+
export class Party {
|
|
2316
|
+
constructor(...required: any[]);
|
|
2317
|
+
static constructFromObject(data: unknown, obj?: Party): Party;
|
|
2318
|
+
static validateJSON(data: unknown): boolean;
|
|
2319
|
+
id: string;
|
|
2320
|
+
inserted_at?: Date;
|
|
2321
|
+
leader_id: string;
|
|
2322
|
+
/** Leader's display name */
|
|
2323
|
+
leader_name: string;
|
|
2324
|
+
/** Maximum members */
|
|
2325
|
+
max_size: number;
|
|
2326
|
+
members: UserBrief[];
|
|
2327
|
+
metadata: Record<string, any>;
|
|
2328
|
+
updated_at?: Date;
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
/** An invitation to join a party */
|
|
2332
|
+
export class PartyInvite {
|
|
2333
|
+
constructor(...required: any[]);
|
|
2334
|
+
static constructFromObject(data: unknown, obj?: PartyInvite): PartyInvite;
|
|
2335
|
+
static validateJSON(data: unknown): boolean;
|
|
2336
|
+
id: string;
|
|
2337
|
+
inserted_at: Date;
|
|
2338
|
+
party_id: string;
|
|
2339
|
+
recipient_id: string;
|
|
2340
|
+
recipient_name: string;
|
|
2341
|
+
sender_id: string;
|
|
2342
|
+
sender_name: string;
|
|
2343
|
+
status: string;
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
/** A page of PartyInvite rows */
|
|
2347
|
+
export class PartyInvitePage {
|
|
2348
|
+
constructor(...required: any[]);
|
|
2349
|
+
static constructFromObject(data: unknown, obj?: PartyInvitePage): PartyInvitePage;
|
|
2350
|
+
static validateJSON(data: unknown): boolean;
|
|
2351
|
+
data: PartyInvite[];
|
|
2352
|
+
meta: PageMeta;
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2355
|
+
/** Party under `data` */
|
|
2356
|
+
export class PartyResponse {
|
|
2357
|
+
constructor(...required: any[]);
|
|
2358
|
+
static constructFromObject(data: unknown, obj?: PartyResponse): PartyResponse;
|
|
2359
|
+
static validateJSON(data: unknown): boolean;
|
|
2360
|
+
data: Party;
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
/** Party counts, cached for up to a minute */
|
|
2364
|
+
export class PartyStats {
|
|
2365
|
+
constructor(...required: any[]);
|
|
2366
|
+
static constructFromObject(data: unknown, obj?: PartyStats): PartyStats;
|
|
2367
|
+
static validateJSON(data: unknown): boolean;
|
|
2368
|
+
parties_active: number;
|
|
2369
|
+
players_in_parties: number;
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
/** PartyStats under `data` */
|
|
2373
|
+
export class PartyStatsResponse {
|
|
2374
|
+
constructor(...required: any[]);
|
|
2375
|
+
static constructFromObject(data: unknown, obj?: PartyStatsResponse): PartyStatsResponse;
|
|
2376
|
+
static validateJSON(data: unknown): boolean;
|
|
2377
|
+
data: PartyStats;
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
/** A product on one provider */
|
|
2381
|
+
export class PaymentCatalogEntry {
|
|
2382
|
+
constructor(...required: any[]);
|
|
2383
|
+
static constructFromObject(data: unknown, obj?: PaymentCatalogEntry): PaymentCatalogEntry;
|
|
2384
|
+
static validateJSON(data: unknown): boolean;
|
|
2385
|
+
/** Empty when the provider prices it */
|
|
2386
|
+
currency: string;
|
|
2387
|
+
/** The product's id at the provider */
|
|
2388
|
+
external_id: string;
|
|
2389
|
+
id: string;
|
|
2390
|
+
metadata: Record<string, any>;
|
|
2391
|
+
product: PaymentProduct;
|
|
2392
|
+
/** `stripe`, `steam`, `apple` or `google` */
|
|
2393
|
+
provider: string;
|
|
2394
|
+
/** Price in the currency's minor unit; null when the provider prices it */
|
|
2395
|
+
unit_amount: number | null;
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
/** A page of PaymentCatalogEntry rows */
|
|
2399
|
+
export class PaymentCatalogEntryPage {
|
|
2400
|
+
constructor(...required: any[]);
|
|
2401
|
+
static constructFromObject(data: unknown, obj?: PaymentCatalogEntryPage): PaymentCatalogEntryPage;
|
|
2402
|
+
static validateJSON(data: unknown): boolean;
|
|
2403
|
+
data: PaymentCatalogEntry[];
|
|
2404
|
+
meta: PageMeta;
|
|
2405
|
+
}
|
|
2406
|
+
|
|
2407
|
+
/** A store product */
|
|
2408
|
+
export class PaymentProduct {
|
|
2409
|
+
constructor(...required: any[]);
|
|
2410
|
+
static constructFromObject(data: unknown, obj?: PaymentProduct): PaymentProduct;
|
|
2411
|
+
static validateJSON(data: unknown): boolean;
|
|
2412
|
+
description: string;
|
|
2413
|
+
id: string;
|
|
2414
|
+
/** What buying it grants, e.g. `entitlement` */
|
|
2415
|
+
kind: string;
|
|
2416
|
+
metadata: Record<string, any>;
|
|
2417
|
+
sku: string;
|
|
2418
|
+
title: string;
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
/** The event's outcome */
|
|
2422
|
+
export class PaymentWebhookReceipt {
|
|
2423
|
+
constructor(...required: any[]);
|
|
2424
|
+
static constructFromObject(data: unknown, obj?: PaymentWebhookReceipt): PaymentWebhookReceipt;
|
|
2425
|
+
static validateJSON(data: unknown): boolean;
|
|
2426
|
+
static readonly StatusEnum: { readonly "processed": "processed"; readonly "ignored": "ignored"; readonly "duplicate": "duplicate" };
|
|
2427
|
+
/** `ignored` for an event type the server does not act on */
|
|
2428
|
+
status: "processed" | "ignored" | "duplicate";
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
/** PaymentWebhookReceipt under `data` */
|
|
2432
|
+
export class PaymentWebhookReceiptResponse {
|
|
2433
|
+
constructor(...required: any[]);
|
|
2434
|
+
static constructFromObject(data: unknown, obj?: PaymentWebhookReceiptResponse): PaymentWebhookReceiptResponse;
|
|
2435
|
+
static validateJSON(data: unknown): boolean;
|
|
2436
|
+
data: PaymentWebhookReceipt;
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2439
|
+
/** One play by one player, and its stats by event key */
|
|
2440
|
+
export class PlayResult {
|
|
2441
|
+
constructor(...required: any[]);
|
|
2442
|
+
static constructFromObject(data: unknown, obj?: PlayResult): PlayResult;
|
|
2443
|
+
static validateJSON(data: unknown): boolean;
|
|
2444
|
+
static readonly StatusEnum: { readonly "open": "open"; readonly "ended": "ended" };
|
|
2445
|
+
static readonly VisibilityEnum: { readonly "public": "public"; readonly "owner_only": "owner_only"; readonly "lobby_members_only": "lobby_members_only"; readonly "owner_or_lobby_member": "owner_or_lobby_member"; readonly "admin_only": "admin_only"; readonly "server_only": "server_only" };
|
|
2446
|
+
ended_at?: Date | null;
|
|
2447
|
+
id: string;
|
|
2448
|
+
/** What was played */
|
|
2449
|
+
kind: string;
|
|
2450
|
+
/** The lobby it ran in; empty when none */
|
|
2451
|
+
lobby_id: string;
|
|
2452
|
+
/** What the play was: its settings */
|
|
2453
|
+
metadata: Record<string, any>;
|
|
2454
|
+
started_at: Date;
|
|
2455
|
+
/** By event key */
|
|
2456
|
+
stats: Record<string, PlayResultStat>;
|
|
2457
|
+
status: "open" | "ended";
|
|
2458
|
+
user_id: string;
|
|
2459
|
+
visibility: "public" | "owner_only" | "lobby_members_only" | "owner_or_lobby_member" | "admin_only" | "server_only";
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
/** One thing that happened in a play; ids are time-ordered */
|
|
2463
|
+
export class PlayResultEvent {
|
|
2464
|
+
constructor(...required: any[]);
|
|
2465
|
+
static constructFromObject(data: unknown, obj?: PlayResultEvent): PlayResultEvent;
|
|
2466
|
+
static validateJSON(data: unknown): boolean;
|
|
2467
|
+
/** Milliseconds since the play began */
|
|
2468
|
+
elapsed_ms: number;
|
|
2469
|
+
id: string;
|
|
2470
|
+
/** What happened */
|
|
2471
|
+
key: string;
|
|
2472
|
+
metadata: Record<string, any>;
|
|
2473
|
+
result_id: string;
|
|
2474
|
+
value?: number | null;
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
/** A result's events, oldest first */
|
|
2478
|
+
export class PlayResultEvents {
|
|
2479
|
+
constructor(...required: any[]);
|
|
2480
|
+
static constructFromObject(data: unknown, obj?: PlayResultEvents): PlayResultEvents;
|
|
2481
|
+
static validateJSON(data: unknown): boolean;
|
|
2482
|
+
events: PlayResultEvent[];
|
|
2483
|
+
result_id: string;
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
/** PlayResultEvents under `data` */
|
|
2487
|
+
export class PlayResultEventsResponse {
|
|
2488
|
+
constructor(...required: any[]);
|
|
2489
|
+
static constructFromObject(data: unknown, obj?: PlayResultEventsResponse): PlayResultEventsResponse;
|
|
2490
|
+
static validateJSON(data: unknown): boolean;
|
|
2491
|
+
data: PlayResultEvents;
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
/** A page of PlayResult rows */
|
|
2495
|
+
export class PlayResultPage {
|
|
2496
|
+
constructor(...required: any[]);
|
|
2497
|
+
static constructFromObject(data: unknown, obj?: PlayResultPage): PlayResultPage;
|
|
2498
|
+
static validateJSON(data: unknown): boolean;
|
|
2499
|
+
data: PlayResult[];
|
|
2500
|
+
meta: PageMeta;
|
|
2501
|
+
}
|
|
2502
|
+
|
|
2503
|
+
/** PlayResult under `data` */
|
|
2504
|
+
export class PlayResultResponse {
|
|
2505
|
+
constructor(...required: any[]);
|
|
2506
|
+
static constructFromObject(data: unknown, obj?: PlayResultResponse): PlayResultResponse;
|
|
2507
|
+
static validateJSON(data: unknown): boolean;
|
|
2508
|
+
data: PlayResult;
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2511
|
+
/** How many events a key has in a result, and the sum of their values */
|
|
2512
|
+
export class PlayResultStat {
|
|
2513
|
+
constructor(...required: any[]);
|
|
2514
|
+
static constructFromObject(data: unknown, obj?: PlayResultStat): PlayResultStat;
|
|
2515
|
+
static validateJSON(data: unknown): boolean;
|
|
2516
|
+
count: number;
|
|
2517
|
+
sum: number;
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
/** Player counts, cached for up to a minute */
|
|
2521
|
+
export class PlayerStats {
|
|
2522
|
+
constructor(...required: any[]);
|
|
2523
|
+
static constructFromObject(data: unknown, obj?: PlayerStats): PlayerStats;
|
|
2524
|
+
static validateJSON(data: unknown): boolean;
|
|
2525
|
+
players_in_lobbies: number;
|
|
2526
|
+
players_in_parties: number;
|
|
2527
|
+
players_offline: number;
|
|
2528
|
+
players_online: number;
|
|
2529
|
+
players_total: number;
|
|
2530
|
+
}
|
|
2531
|
+
|
|
2532
|
+
/** PlayerStats under `data` */
|
|
2533
|
+
export class PlayerStatsResponse {
|
|
2534
|
+
constructor(...required: any[]);
|
|
2535
|
+
static constructFromObject(data: unknown, obj?: PlayerStatsResponse): PlayerStatsResponse;
|
|
2536
|
+
static validateJSON(data: unknown): boolean;
|
|
2537
|
+
data: PlayerStats;
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
/** Where a provider link stands */
|
|
2541
|
+
export class ProviderLinkStatus {
|
|
2542
|
+
constructor(...required: any[]);
|
|
2543
|
+
static constructFromObject(data: unknown, obj?: ProviderLinkStatus): ProviderLinkStatus;
|
|
2544
|
+
static validateJSON(data: unknown): boolean;
|
|
2545
|
+
static readonly StatusEnum: { readonly "pending": "pending"; readonly "completed": "completed"; readonly "error": "error" };
|
|
2546
|
+
/** The code when `status` is `error` (`provider_already_linked`, `link_failed`, `authentication_failed`), else empty */
|
|
2547
|
+
error: string;
|
|
2548
|
+
/** For a person; may be empty */
|
|
2549
|
+
message: string;
|
|
2550
|
+
/** The provider being linked */
|
|
2551
|
+
provider: string;
|
|
2552
|
+
status: "pending" | "completed" | "error";
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2555
|
+
/** ProviderLinkStatus under `data` */
|
|
2556
|
+
export class ProviderLinkStatusResponse {
|
|
2557
|
+
constructor(...required: any[]);
|
|
2558
|
+
static constructFromObject(data: unknown, obj?: ProviderLinkStatusResponse): ProviderLinkStatusResponse;
|
|
2559
|
+
static validateJSON(data: unknown): boolean;
|
|
2560
|
+
data: ProviderLinkStatus;
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
/** A user as anyone may see them */
|
|
2564
|
+
export class PublicUser {
|
|
2565
|
+
constructor(...required: any[]);
|
|
2566
|
+
static constructFromObject(data: unknown, obj?: PublicUser): PublicUser;
|
|
2567
|
+
static validateJSON(data: unknown): boolean;
|
|
2568
|
+
/** Chosen name */
|
|
2569
|
+
display_name: string;
|
|
2570
|
+
id: string;
|
|
2571
|
+
is_activated: boolean;
|
|
2572
|
+
is_online: boolean;
|
|
2573
|
+
last_seen_at: Date;
|
|
2574
|
+
/** User metadata, restricted to the keys named by the :public_user_metadata_keys setting. Empty by default. */
|
|
2575
|
+
metadata: Record<string, any>;
|
|
2576
|
+
/** Unique handle */
|
|
2577
|
+
username: string;
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2580
|
+
/** A page of PublicUser rows */
|
|
2581
|
+
export class PublicUserPage {
|
|
2582
|
+
constructor(...required: any[]);
|
|
2583
|
+
static constructFromObject(data: unknown, obj?: PublicUserPage): PublicUserPage;
|
|
2584
|
+
static validateJSON(data: unknown): boolean;
|
|
2585
|
+
data: PublicUser[];
|
|
2586
|
+
meta: PageMeta;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
/** PublicUser under `data` */
|
|
2590
|
+
export class PublicUserResponse {
|
|
2591
|
+
constructor(...required: any[]);
|
|
2592
|
+
static constructFromObject(data: unknown, obj?: PublicUserResponse): PublicUserResponse;
|
|
2593
|
+
static validateJSON(data: unknown): boolean;
|
|
2594
|
+
data: PublicUser;
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
/** A purchase */
|
|
2598
|
+
export class Purchase {
|
|
2599
|
+
constructor(...required: any[]);
|
|
2600
|
+
static constructFromObject(data: unknown, obj?: Purchase): Purchase;
|
|
2601
|
+
static validateJSON(data: unknown): boolean;
|
|
2602
|
+
/** Minor units; null when unknown */
|
|
2603
|
+
amount: number | null;
|
|
2604
|
+
currency: string;
|
|
2605
|
+
/** `production` or a sandbox */
|
|
2606
|
+
environment: string;
|
|
2607
|
+
expires_at: Date | null;
|
|
2608
|
+
id: string;
|
|
2609
|
+
order_id: string;
|
|
2610
|
+
product_id: string;
|
|
2611
|
+
provider: string;
|
|
2612
|
+
/** Empty when not sold through the catalog */
|
|
2613
|
+
provider_product_id: string;
|
|
2614
|
+
/** Empty until the provider assigns one */
|
|
2615
|
+
provider_transaction_id: string;
|
|
2616
|
+
purchased_at: Date | null;
|
|
2617
|
+
quantity: number;
|
|
2618
|
+
revoked_at: Date | null;
|
|
2619
|
+
status: string;
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
/** Purchase under `data` */
|
|
2623
|
+
export class PurchaseResponse {
|
|
2624
|
+
constructor(...required: any[]);
|
|
2625
|
+
static constructFromObject(data: unknown, obj?: PurchaseResponse): PurchaseResponse;
|
|
2626
|
+
static validateJSON(data: unknown): boolean;
|
|
2627
|
+
data: Purchase;
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
/** The validated purchase */
|
|
2631
|
+
export class PurchaseValidation {
|
|
2632
|
+
constructor(...required: any[]);
|
|
2633
|
+
static constructFromObject(data: unknown, obj?: PurchaseValidation): PurchaseValidation;
|
|
2634
|
+
static validateJSON(data: unknown): boolean;
|
|
2635
|
+
purchase: Purchase;
|
|
2636
|
+
/** The receipt was already validated; nothing was granted again */
|
|
2637
|
+
seen_before: boolean;
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2640
|
+
/** PurchaseValidation under `data` */
|
|
2641
|
+
export class PurchaseValidationResponse {
|
|
2642
|
+
constructor(...required: any[]);
|
|
2643
|
+
static constructFromObject(data: unknown, obj?: PurchaseValidationResponse): PurchaseValidationResponse;
|
|
2644
|
+
static validateJSON(data: unknown): boolean;
|
|
2645
|
+
data: PurchaseValidation;
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
/** A device registered for push */
|
|
2649
|
+
export class PushToken {
|
|
2650
|
+
constructor(...required: any[]);
|
|
2651
|
+
static constructFromObject(data: unknown, obj?: PushToken): PushToken;
|
|
2652
|
+
static validateJSON(data: unknown): boolean;
|
|
2653
|
+
/** Empty when unset */
|
|
2654
|
+
device_id: string;
|
|
2655
|
+
/** Set when the provider reported the token dead */
|
|
2656
|
+
disabled_at: Date | null;
|
|
2657
|
+
id: string;
|
|
2658
|
+
inserted_at: Date;
|
|
2659
|
+
last_used_at: Date | null;
|
|
2660
|
+
metadata: Record<string, any>;
|
|
2661
|
+
platform: string;
|
|
2662
|
+
/** fcm or apns; empty picks by platform */
|
|
2663
|
+
provider: string;
|
|
2664
|
+
/** The provider's device token */
|
|
2665
|
+
token: string;
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
/** A page of PushToken rows */
|
|
2669
|
+
export class PushTokenPage {
|
|
2670
|
+
constructor(...required: any[]);
|
|
2671
|
+
static constructFromObject(data: unknown, obj?: PushTokenPage): PushTokenPage;
|
|
2672
|
+
static validateJSON(data: unknown): boolean;
|
|
2673
|
+
data: PushToken[];
|
|
2674
|
+
meta: PageMeta;
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
/** PushToken under `data` */
|
|
2678
|
+
export class PushTokenResponse {
|
|
2679
|
+
constructor(...required: any[]);
|
|
2680
|
+
static constructFromObject(data: unknown, obj?: PushTokenResponse): PushTokenResponse;
|
|
2681
|
+
static validateJSON(data: unknown): boolean;
|
|
2682
|
+
data: PushToken;
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2685
|
+
/** A quest, with the caller's progress */
|
|
2686
|
+
export class Quest {
|
|
2687
|
+
constructor(...required: any[]);
|
|
2688
|
+
static constructFromObject(data: unknown, obj?: Quest): Quest;
|
|
2689
|
+
static validateJSON(data: unknown): boolean;
|
|
2690
|
+
static readonly ResetEnum: { readonly "never": "never"; readonly "daily": "daily"; readonly "weekly": "weekly"; readonly "monthly": "monthly"; readonly "interval": "interval"; readonly "repeat": "repeat" };
|
|
2691
|
+
/** Rewards grant on completion */
|
|
2692
|
+
auto_claim: boolean;
|
|
2693
|
+
/** Free-form grouping label for your UI; empty when unset */
|
|
2694
|
+
category: string;
|
|
2695
|
+
/** Completed and waiting to be claimed */
|
|
2696
|
+
claimable: boolean;
|
|
2697
|
+
/** Only a redemption code finishes it (POST /me/quests/redeem) */
|
|
2698
|
+
code_only: boolean;
|
|
2699
|
+
description: string;
|
|
2700
|
+
ends_at: Date | null;
|
|
2701
|
+
/** Quests sharing this list as one entry; pass `?group=` to open it */
|
|
2702
|
+
group_key: string;
|
|
2703
|
+
/** How many quests the entry stands for (1 when ungrouped) */
|
|
2704
|
+
group_size: number;
|
|
2705
|
+
/** The collapsed group entry's title */
|
|
2706
|
+
group_title: string;
|
|
2707
|
+
/** Hidden until completed */
|
|
2708
|
+
hidden: boolean;
|
|
2709
|
+
/** Empty when unset */
|
|
2710
|
+
icon_url: string;
|
|
2711
|
+
id: string;
|
|
2712
|
+
/** Unique slug */
|
|
2713
|
+
key: string;
|
|
2714
|
+
metadata: Record<string, any>;
|
|
2715
|
+
objectives: QuestObjective[];
|
|
2716
|
+
/** Quest that must be completed first; empty when none */
|
|
2717
|
+
prerequisite_quest_key: string;
|
|
2718
|
+
/** Null when the caller has not started it, or is not signed in */
|
|
2719
|
+
progress: QuestProgress | null;
|
|
2720
|
+
/** When progress starts over */
|
|
2721
|
+
reset: "never" | "daily" | "weekly" | "monthly" | "interval" | "repeat";
|
|
2722
|
+
/** Cadence in days when `reset` is `interval` (biweekly = 14) */
|
|
2723
|
+
reset_interval_days: number | null;
|
|
2724
|
+
rewards: QuestReward[];
|
|
2725
|
+
sort_order: number;
|
|
2726
|
+
starts_at: Date | null;
|
|
2727
|
+
title: string;
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2730
|
+
/** A claimed quest's progress and the rewards granted */
|
|
2731
|
+
export class QuestClaim {
|
|
2732
|
+
constructor(...required: any[]);
|
|
2733
|
+
static constructFromObject(data: unknown, obj?: QuestClaim): QuestClaim;
|
|
2734
|
+
static validateJSON(data: unknown): boolean;
|
|
2735
|
+
progress: QuestProgress;
|
|
2736
|
+
rewards: QuestReward[];
|
|
2737
|
+
}
|
|
2738
|
+
|
|
2739
|
+
/** QuestClaim under `data` */
|
|
2740
|
+
export class QuestClaimResponse {
|
|
2741
|
+
constructor(...required: any[]);
|
|
2742
|
+
static constructFromObject(data: unknown, obj?: QuestClaimResponse): QuestClaimResponse;
|
|
2743
|
+
static validateJSON(data: unknown): boolean;
|
|
2744
|
+
data: QuestClaim;
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
/** Progress rows per status; a status with none is left out */
|
|
2748
|
+
export type QuestFunnel = Record<string, number>;
|
|
2749
|
+
|
|
2750
|
+
/** QuestFunnel under `data` */
|
|
2751
|
+
export class QuestFunnelResponse {
|
|
2752
|
+
constructor(...required: any[]);
|
|
2753
|
+
static constructFromObject(data: unknown, obj?: QuestFunnelResponse): QuestFunnelResponse;
|
|
2754
|
+
static validateJSON(data: unknown): boolean;
|
|
2755
|
+
data: QuestFunnel;
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
/** A quest objective */
|
|
2759
|
+
export class QuestObjective {
|
|
2760
|
+
constructor(...required: any[]);
|
|
2761
|
+
static constructFromObject(data: unknown, obj?: QuestObjective): QuestObjective;
|
|
2762
|
+
static validateJSON(data: unknown): boolean;
|
|
2763
|
+
/** Event name the objective counts */
|
|
2764
|
+
event: string;
|
|
2765
|
+
/** Event meta constraints (all must match) */
|
|
2766
|
+
params: Record<string, any>;
|
|
2767
|
+
/** Occurrences required */
|
|
2768
|
+
target: number;
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2771
|
+
/** A page of Quest rows */
|
|
2772
|
+
export class QuestPage {
|
|
2773
|
+
constructor(...required: any[]);
|
|
2774
|
+
static constructFromObject(data: unknown, obj?: QuestPage): QuestPage;
|
|
2775
|
+
static validateJSON(data: unknown): boolean;
|
|
2776
|
+
data: Quest[];
|
|
2777
|
+
meta: PageMeta;
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
/** Progress for the current reset period */
|
|
2781
|
+
export class QuestProgress {
|
|
2782
|
+
constructor(...required: any[]);
|
|
2783
|
+
static constructFromObject(data: unknown, obj?: QuestProgress): QuestProgress;
|
|
2784
|
+
static validateJSON(data: unknown): boolean;
|
|
2785
|
+
static readonly StatusEnum: { readonly "active": "active"; readonly "completed": "completed"; readonly "claimed": "claimed" };
|
|
2786
|
+
/** Finished runs of a repeat quest; 0 until the first claim */
|
|
2787
|
+
claim_count: number;
|
|
2788
|
+
claimed_at: Date | null;
|
|
2789
|
+
completed_at: Date | null;
|
|
2790
|
+
/** Objective index (as a string) to its current count */
|
|
2791
|
+
objective_progress: Record<string, number>;
|
|
2792
|
+
/** Reset bucket ("static", a date or an ISO week) */
|
|
2793
|
+
period_key: string;
|
|
2794
|
+
status: "active" | "completed" | "claimed";
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
/** A quest reward */
|
|
2798
|
+
export class QuestReward {
|
|
2799
|
+
constructor(...required: any[]);
|
|
2800
|
+
static constructFromObject(data: unknown, obj?: QuestReward): QuestReward;
|
|
2801
|
+
static validateJSON(data: unknown): boolean;
|
|
2802
|
+
static readonly TypeEnum: { readonly "currency": "currency"; readonly "item": "item" };
|
|
2803
|
+
/** Amount granted */
|
|
2804
|
+
amount: number;
|
|
2805
|
+
/** Currency or item code */
|
|
2806
|
+
code: string;
|
|
2807
|
+
type: "currency" | "item";
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2810
|
+
/** Quest progress counts, cached for up to a minute */
|
|
2811
|
+
export class QuestStats {
|
|
2812
|
+
constructor(...required: any[]);
|
|
2813
|
+
static constructFromObject(data: unknown, obj?: QuestStats): QuestStats;
|
|
2814
|
+
static validateJSON(data: unknown): boolean;
|
|
2815
|
+
claimed: number;
|
|
2816
|
+
completed: number;
|
|
2817
|
+
quests_total: number;
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
/** QuestStats under `data` */
|
|
2821
|
+
export class QuestStatsResponse {
|
|
2822
|
+
constructor(...required: any[]);
|
|
2823
|
+
static constructFromObject(data: unknown, obj?: QuestStatsResponse): QuestStatsResponse;
|
|
2824
|
+
static validateJSON(data: unknown): boolean;
|
|
2825
|
+
data: QuestStats;
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
/** Checks per status; a status with none is left out */
|
|
2829
|
+
export type ReadyCheckOutcomes = Record<string, number>;
|
|
2830
|
+
|
|
2831
|
+
/** ReadyCheckOutcomes under `data` */
|
|
2832
|
+
export class ReadyCheckOutcomesResponse {
|
|
2833
|
+
constructor(...required: any[]);
|
|
2834
|
+
static constructFromObject(data: unknown, obj?: ReadyCheckOutcomesResponse): ReadyCheckOutcomesResponse;
|
|
2835
|
+
static validateJSON(data: unknown): boolean;
|
|
2836
|
+
data: ReadyCheckOutcomes;
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
/** A participant's answer */
|
|
2840
|
+
export class ReadyCheckParticipant {
|
|
2841
|
+
constructor(...required: any[]);
|
|
2842
|
+
static constructFromObject(data: unknown, obj?: ReadyCheckParticipant): ReadyCheckParticipant;
|
|
2843
|
+
static validateJSON(data: unknown): boolean;
|
|
2844
|
+
static readonly StateEnum: { readonly "pending": "pending"; readonly "ready": "ready"; readonly "declined": "declined"; readonly "timed_out": "timed_out" };
|
|
2845
|
+
display_name: string;
|
|
2846
|
+
responded_at: Date | null;
|
|
2847
|
+
state: "pending" | "ready" | "declined" | "timed_out";
|
|
2848
|
+
user_id: string;
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2851
|
+
/** A ready check */
|
|
2852
|
+
export class ReadyCheckState {
|
|
2853
|
+
constructor(...required: any[]);
|
|
2854
|
+
static constructFromObject(data: unknown, obj?: ReadyCheckState): ReadyCheckState;
|
|
2855
|
+
static validateJSON(data: unknown): boolean;
|
|
2856
|
+
static readonly KindEnum: { readonly "ready": "ready"; readonly "accept": "accept" };
|
|
2857
|
+
static readonly StatusEnum: { readonly "pending": "pending"; readonly "passed": "passed"; readonly "failed": "failed"; readonly "cancelled": "cancelled" };
|
|
2858
|
+
/** Null for a board with no deadline */
|
|
2859
|
+
deadline_at: Date | null;
|
|
2860
|
+
id: string;
|
|
2861
|
+
kind: "ready" | "accept";
|
|
2862
|
+
/** Empty unless a lobby board */
|
|
2863
|
+
lobby_id: string;
|
|
2864
|
+
metadata: Record<string, any>;
|
|
2865
|
+
/** Empty when the server opened it */
|
|
2866
|
+
opened_by: string;
|
|
2867
|
+
/** Only on kind `ready`: an accept check shows counts alone */
|
|
2868
|
+
participants?: ReadyCheckParticipant[];
|
|
2869
|
+
/** Empty unless a party board */
|
|
2870
|
+
party_id: string;
|
|
2871
|
+
ready_count: number;
|
|
2872
|
+
/** Why it failed: `declined`, `timeout` or `cancelled`; empty otherwise */
|
|
2873
|
+
reason: string;
|
|
2874
|
+
status: "pending" | "passed" | "failed" | "cancelled";
|
|
2875
|
+
total: number;
|
|
2876
|
+
/** The caller's own answer; empty when not a participant */
|
|
2877
|
+
your_state: string;
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
/** ReadyCheckState under `data` */
|
|
2881
|
+
export class ReadyCheckStateResponse {
|
|
2882
|
+
constructor(...required: any[]);
|
|
2883
|
+
static constructFromObject(data: unknown, obj?: ReadyCheckStateResponse): ReadyCheckStateResponse;
|
|
2884
|
+
static validateJSON(data: unknown): boolean;
|
|
2885
|
+
data: ReadyCheckState;
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2888
|
+
/** An account just created with an email, waiting for it to be confirmed */
|
|
2889
|
+
export class Registration {
|
|
2890
|
+
constructor(...required: any[]);
|
|
2891
|
+
static constructFromObject(data: unknown, obj?: Registration): Registration;
|
|
2892
|
+
static validateJSON(data: unknown): boolean;
|
|
2893
|
+
/** Chosen name */
|
|
2894
|
+
display_name: string;
|
|
2895
|
+
/** False: the account has no password until the emailed code confirms it (`POST /api/v1/register/confirm`), or the player opens the emailed link and sets one in their settings */
|
|
2896
|
+
email_confirmed: boolean;
|
|
2897
|
+
user_id: string;
|
|
2898
|
+
/** Unique handle, generated when none was given */
|
|
2899
|
+
username: string;
|
|
2900
|
+
}
|
|
2901
|
+
|
|
2902
|
+
/** Registration under `data` */
|
|
2903
|
+
export class RegistrationResponse {
|
|
2904
|
+
constructor(...required: any[]);
|
|
2905
|
+
static constructFromObject(data: unknown, obj?: RegistrationResponse): RegistrationResponse;
|
|
2906
|
+
static validateJSON(data: unknown): boolean;
|
|
2907
|
+
data: Registration;
|
|
2908
|
+
}
|
|
2909
|
+
|
|
2910
|
+
/** What a report can be about, and what it may carry */
|
|
2911
|
+
export class ReportKind {
|
|
2912
|
+
constructor(...required: any[]);
|
|
2913
|
+
static constructFromObject(data: unknown, obj?: ReportKind): ReportKind;
|
|
2914
|
+
static validateJSON(data: unknown): boolean;
|
|
2915
|
+
/** The kind's key, sent as `kind` */
|
|
2916
|
+
key: string;
|
|
2917
|
+
/** Largest image, in bytes */
|
|
2918
|
+
max_attachment_bytes: number;
|
|
2919
|
+
/** Images a report may carry */
|
|
2920
|
+
max_attachments: number;
|
|
2921
|
+
/** Topics a report must pick one of; empty when the kind has none */
|
|
2922
|
+
topics: string[];
|
|
2923
|
+
}
|
|
2924
|
+
|
|
2925
|
+
/** The report kinds */
|
|
2926
|
+
export class ReportKinds {
|
|
2927
|
+
constructor(...required: any[]);
|
|
2928
|
+
static constructFromObject(data: unknown, obj?: ReportKinds): ReportKinds;
|
|
2929
|
+
static validateJSON(data: unknown): boolean;
|
|
2930
|
+
kinds: ReportKind[];
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
/** ReportKinds under `data` */
|
|
2934
|
+
export class ReportKindsResponse {
|
|
2935
|
+
constructor(...required: any[]);
|
|
2936
|
+
static constructFromObject(data: unknown, obj?: ReportKindsResponse): ReportKindsResponse;
|
|
2937
|
+
static validateJSON(data: unknown): boolean;
|
|
2938
|
+
data: ReportKinds;
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
/** A filed report */
|
|
2942
|
+
export class ReportReceipt {
|
|
2943
|
+
constructor(...required: any[]);
|
|
2944
|
+
static constructFromObject(data: unknown, obj?: ReportReceipt): ReportReceipt;
|
|
2945
|
+
static validateJSON(data: unknown): boolean;
|
|
2946
|
+
/** Report id */
|
|
2947
|
+
id: string;
|
|
2948
|
+
kind: string;
|
|
2949
|
+
status: string;
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
/** ReportReceipt under `data` */
|
|
2953
|
+
export class ReportReceiptResponse {
|
|
2954
|
+
constructor(...required: any[]);
|
|
2955
|
+
static constructFromObject(data: unknown, obj?: ReportReceiptResponse): ReportReceiptResponse;
|
|
2956
|
+
static validateJSON(data: unknown): boolean;
|
|
2957
|
+
data: ReportReceipt;
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2960
|
+
/** A report about the game's content */
|
|
2961
|
+
export class ReportRequest {
|
|
2962
|
+
constructor(...required: any[]);
|
|
2963
|
+
static constructFromObject(data: unknown, obj?: ReportRequest): ReportRequest;
|
|
2964
|
+
static validateJSON(data: unknown): boolean;
|
|
2965
|
+
/** Base64 PNG, JPEG or WebP images, up to the kind's max_attachments */
|
|
2966
|
+
attachments?: string[];
|
|
2967
|
+
/** Short device facts: user_agent, viewport, screen, platform, app_version */
|
|
2968
|
+
client?: Record<string, string>;
|
|
2969
|
+
/** The kind's extra fields (a suggested correction) */
|
|
2970
|
+
data?: Record<string, any>;
|
|
2971
|
+
/** What happened */
|
|
2972
|
+
description?: string;
|
|
2973
|
+
/** Where to send a reply, if anywhere */
|
|
2974
|
+
email?: string;
|
|
2975
|
+
/** A key from GET /reports/kinds */
|
|
2976
|
+
kind: string;
|
|
2977
|
+
locale?: string;
|
|
2978
|
+
/** What is reported, in the kind's own shape */
|
|
2979
|
+
subject?: Record<string, any>;
|
|
2980
|
+
/** One of the kind's topics, if it has any */
|
|
2981
|
+
topic?: string;
|
|
2982
|
+
}
|
|
2983
|
+
|
|
2984
|
+
/** The last retention sweep */
|
|
2985
|
+
export class RetentionStatus {
|
|
2986
|
+
constructor(...required: any[]);
|
|
2987
|
+
static constructFromObject(data: unknown, obj?: RetentionStatus): RetentionStatus;
|
|
2988
|
+
static validateJSON(data: unknown): boolean;
|
|
2989
|
+
duration_ms: number | null;
|
|
2990
|
+
/** Null before the first sweep */
|
|
2991
|
+
last_run_at: Date | null;
|
|
2992
|
+
/** Rows removed per retention class */
|
|
2993
|
+
results: Record<string, number>;
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2996
|
+
/** RetentionStatus under `data` */
|
|
2997
|
+
export class RetentionStatusResponse {
|
|
2998
|
+
constructor(...required: any[]);
|
|
2999
|
+
static constructFromObject(data: unknown, obj?: RetentionStatusResponse): RetentionStatusResponse;
|
|
3000
|
+
static validateJSON(data: unknown): boolean;
|
|
3001
|
+
data: RetentionStatus;
|
|
3002
|
+
}
|
|
3003
|
+
|
|
3004
|
+
/** All public server counters, cached for up to a minute */
|
|
3005
|
+
export class ServerStats {
|
|
3006
|
+
constructor(...required: any[]);
|
|
3007
|
+
static constructFromObject(data: unknown, obj?: ServerStats): ServerStats;
|
|
3008
|
+
static validateJSON(data: unknown): boolean;
|
|
3009
|
+
activity: ActivityStats;
|
|
3010
|
+
lobbies: LobbyStats;
|
|
3011
|
+
matchmaking: MatchmakingStats;
|
|
3012
|
+
parties: PartyStats;
|
|
3013
|
+
players: PlayerStats;
|
|
3014
|
+
quests: QuestStats;
|
|
3015
|
+
signaling: SignalingStats;
|
|
3016
|
+
tournaments: TournamentStats;
|
|
3017
|
+
}
|
|
3018
|
+
|
|
3019
|
+
/** ServerStats under `data` */
|
|
3020
|
+
export class ServerStatsResponse {
|
|
3021
|
+
constructor(...required: any[]);
|
|
3022
|
+
static constructFromObject(data: unknown, obj?: ServerStatsResponse): ServerStatsResponse;
|
|
3023
|
+
static validateJSON(data: unknown): boolean;
|
|
3024
|
+
data: ServerStats;
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
/** The server's clock */
|
|
3028
|
+
export class ServerTime {
|
|
3029
|
+
constructor(...required: any[]);
|
|
3030
|
+
static constructFromObject(data: unknown, obj?: ServerTime): ServerTime;
|
|
3031
|
+
static validateJSON(data: unknown): boolean;
|
|
3032
|
+
/** Milliseconds since the Unix epoch */
|
|
3033
|
+
server_now: number;
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
/** ServerTime under `data` */
|
|
3037
|
+
export class ServerTimeResponse {
|
|
3038
|
+
constructor(...required: any[]);
|
|
3039
|
+
static constructFromObject(data: unknown, obj?: ServerTimeResponse): ServerTimeResponse;
|
|
3040
|
+
static validateJSON(data: unknown): boolean;
|
|
3041
|
+
data: ServerTime;
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3044
|
+
/** Tokens for a signed-in user */
|
|
3045
|
+
export class Session {
|
|
3046
|
+
constructor(...required: any[]);
|
|
3047
|
+
static constructFromObject(data: unknown, obj?: Session): Session;
|
|
3048
|
+
static validateJSON(data: unknown): boolean;
|
|
3049
|
+
/** JWT access token (15 min by default: `GAMEND_AUTH_ACCESS_TOKEN_TTL_MINUTES`) */
|
|
3050
|
+
access_token: string;
|
|
3051
|
+
/** Chosen name */
|
|
3052
|
+
display_name: string;
|
|
3053
|
+
/** Seconds until the access token expires */
|
|
3054
|
+
expires_in: number;
|
|
3055
|
+
/** JWT refresh token (30 days by default: `GAMEND_AUTH_REFRESH_TOKEN_TTL_DAYS`) */
|
|
3056
|
+
refresh_token: string;
|
|
3057
|
+
user_id: string;
|
|
3058
|
+
/** Unique handle */
|
|
3059
|
+
username: string;
|
|
3060
|
+
}
|
|
3061
|
+
|
|
3062
|
+
/** Session under `data` */
|
|
3063
|
+
export class SessionResponse {
|
|
3064
|
+
constructor(...required: any[]);
|
|
3065
|
+
static constructFromObject(data: unknown, obj?: SessionResponse): SessionResponse;
|
|
3066
|
+
static validateJSON(data: unknown): boolean;
|
|
3067
|
+
data: Session;
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
/** WebRTC room counts, cached for up to a minute */
|
|
3071
|
+
export class SignalingStats {
|
|
3072
|
+
constructor(...required: any[]);
|
|
3073
|
+
static constructFromObject(data: unknown, obj?: SignalingStats): SignalingStats;
|
|
3074
|
+
static validateJSON(data: unknown): boolean;
|
|
3075
|
+
peers_connected: number;
|
|
3076
|
+
/** Of those, with someone connected */
|
|
3077
|
+
rooms_active: number;
|
|
3078
|
+
/** Lobbies with WebRTC on */
|
|
3079
|
+
rooms_enabled: number;
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
/** SignalingStats under `data` */
|
|
3083
|
+
export class SignalingStatsResponse {
|
|
3084
|
+
constructor(...required: any[]);
|
|
3085
|
+
static constructFromObject(data: unknown, obj?: SignalingStatsResponse): SignalingStatsResponse;
|
|
3086
|
+
static validateJSON(data: unknown): boolean;
|
|
3087
|
+
data: SignalingStats;
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
/** A pending purchase and its Steam transaction */
|
|
3091
|
+
export class SteamCheckout {
|
|
3092
|
+
constructor(...required: any[]);
|
|
3093
|
+
static constructFromObject(data: unknown, obj?: SteamCheckout): SteamCheckout;
|
|
3094
|
+
static validateJSON(data: unknown): boolean;
|
|
3095
|
+
provider_transaction_id: string;
|
|
3096
|
+
purchase: Purchase;
|
|
3097
|
+
/** Empty when Steam gave none */
|
|
3098
|
+
steam_url: string;
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
/** SteamCheckout under `data` */
|
|
3102
|
+
export class SteamCheckoutResponse {
|
|
3103
|
+
constructor(...required: any[]);
|
|
3104
|
+
static constructFromObject(data: unknown, obj?: SteamCheckoutResponse): SteamCheckoutResponse;
|
|
3105
|
+
static validateJSON(data: unknown): boolean;
|
|
3106
|
+
data: SteamCheckout;
|
|
3107
|
+
}
|
|
3108
|
+
|
|
3109
|
+
/** A stored object */
|
|
3110
|
+
export class StorageObject {
|
|
3111
|
+
constructor(...required: any[]);
|
|
3112
|
+
static constructFromObject(data: unknown, obj?: StorageObject): StorageObject;
|
|
3113
|
+
static validateJSON(data: unknown): boolean;
|
|
3114
|
+
key: string;
|
|
3115
|
+
last_modified: Date | null;
|
|
3116
|
+
/** Bytes */
|
|
3117
|
+
size: number;
|
|
3118
|
+
}
|
|
3119
|
+
|
|
3120
|
+
/** A page of StorageObject rows */
|
|
3121
|
+
export class StorageObjectPage {
|
|
3122
|
+
constructor(...required: any[]);
|
|
3123
|
+
static constructFromObject(data: unknown, obj?: StorageObjectPage): StorageObjectPage;
|
|
3124
|
+
static validateJSON(data: unknown): boolean;
|
|
3125
|
+
data: StorageObject[];
|
|
3126
|
+
meta: PageMeta;
|
|
3127
|
+
}
|
|
3128
|
+
|
|
3129
|
+
/** StorageObject under `data` */
|
|
3130
|
+
export class StorageObjectResponse {
|
|
3131
|
+
constructor(...required: any[]);
|
|
3132
|
+
static constructFromObject(data: unknown, obj?: StorageObjectResponse): StorageObjectResponse;
|
|
3133
|
+
static validateJSON(data: unknown): boolean;
|
|
3134
|
+
data: StorageObject;
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3137
|
+
/** Objects and bytes under a prefix */
|
|
3138
|
+
export class StorageUsage {
|
|
3139
|
+
constructor(...required: any[]);
|
|
3140
|
+
static constructFromObject(data: unknown, obj?: StorageUsage): StorageUsage;
|
|
3141
|
+
static validateJSON(data: unknown): boolean;
|
|
3142
|
+
bytes: number;
|
|
3143
|
+
count: number;
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
/** StorageUsage under `data` */
|
|
3147
|
+
export class StorageUsageResponse {
|
|
3148
|
+
constructor(...required: any[]);
|
|
3149
|
+
static constructFromObject(data: unknown, obj?: StorageUsageResponse): StorageUsageResponse;
|
|
3150
|
+
static validateJSON(data: unknown): boolean;
|
|
3151
|
+
data: StorageUsage;
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
/** A pending purchase and the Stripe page that pays it */
|
|
3155
|
+
export class StripeCheckout {
|
|
3156
|
+
constructor(...required: any[]);
|
|
3157
|
+
static constructFromObject(data: unknown, obj?: StripeCheckout): StripeCheckout;
|
|
3158
|
+
static validateJSON(data: unknown): boolean;
|
|
3159
|
+
checkout_url: string;
|
|
3160
|
+
provider_session_id: string;
|
|
3161
|
+
purchase: Purchase;
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
/** StripeCheckout under `data` */
|
|
3165
|
+
export class StripeCheckoutResponse {
|
|
3166
|
+
constructor(...required: any[]);
|
|
3167
|
+
static constructFromObject(data: unknown, obj?: StripeCheckoutResponse): StripeCheckoutResponse;
|
|
3168
|
+
static validateJSON(data: unknown): boolean;
|
|
3169
|
+
data: StripeCheckout;
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
/** A tournament occurrence */
|
|
3173
|
+
export class Tournament {
|
|
3174
|
+
constructor(...required: any[]);
|
|
3175
|
+
static constructFromObject(data: unknown, obj?: Tournament): Tournament;
|
|
3176
|
+
static validateJSON(data: unknown): boolean;
|
|
3177
|
+
static readonly StateEnum: { readonly "scheduled": "scheduled"; readonly "registration": "registration"; readonly "running": "running"; readonly "finished": "finished"; readonly "cancelled": "cancelled" };
|
|
3178
|
+
bracket_size: number;
|
|
3179
|
+
description: string;
|
|
3180
|
+
ends_at: Date | null;
|
|
3181
|
+
entry_count: number;
|
|
3182
|
+
/** Empty when unset (the client applies its own default) */
|
|
3183
|
+
icon_url: string;
|
|
3184
|
+
id: string;
|
|
3185
|
+
/** Null for no cap */
|
|
3186
|
+
max_entries: number | null;
|
|
3187
|
+
metadata: Record<string, any>;
|
|
3188
|
+
/** The caller's entry. Only `GET /tournaments/{id}` sends it; null when the caller has none or is not signed in. */
|
|
3189
|
+
my_entry?: TournamentEntry | null;
|
|
3190
|
+
/** Cron expression; empty for a one-shot */
|
|
3191
|
+
recur: string;
|
|
3192
|
+
registration_opens_at: Date | null;
|
|
3193
|
+
round_window_sec: number;
|
|
3194
|
+
/** In any script, shared by every recurring occurrence */
|
|
3195
|
+
slug: string;
|
|
3196
|
+
/** Null when an admin starts it by hand */
|
|
3197
|
+
starts_at: Date | null;
|
|
3198
|
+
state: "scheduled" | "registration" | "running" | "finished" | "cancelled";
|
|
3199
|
+
/** Advisory; enforced by game hooks */
|
|
3200
|
+
team_size: number;
|
|
3201
|
+
title: string;
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3204
|
+
/** A bracket, its matches and their entries */
|
|
3205
|
+
export class TournamentBracket {
|
|
3206
|
+
constructor(...required: any[]);
|
|
3207
|
+
static constructFromObject(data: unknown, obj?: TournamentBracket): TournamentBracket;
|
|
3208
|
+
static validateJSON(data: unknown): boolean;
|
|
3209
|
+
/** The entries appearing in `matches` */
|
|
3210
|
+
entries: TournamentEntry[];
|
|
3211
|
+
index: number;
|
|
3212
|
+
/** By round, then slot */
|
|
3213
|
+
matches: TournamentMatch[];
|
|
3214
|
+
/** Entries the bracket seats */
|
|
3215
|
+
size: number;
|
|
3216
|
+
}
|
|
3217
|
+
|
|
3218
|
+
/** A page of TournamentBracket rows */
|
|
3219
|
+
export class TournamentBracketPage {
|
|
3220
|
+
constructor(...required: any[]);
|
|
3221
|
+
static constructFromObject(data: unknown, obj?: TournamentBracketPage): TournamentBracketPage;
|
|
3222
|
+
static validateJSON(data: unknown): boolean;
|
|
3223
|
+
data: TournamentBracket[];
|
|
3224
|
+
meta: PageMeta;
|
|
3225
|
+
}
|
|
3226
|
+
|
|
3227
|
+
/** An entry in a tournament */
|
|
3228
|
+
export class TournamentEntry {
|
|
3229
|
+
constructor(...required: any[]);
|
|
3230
|
+
static constructFromObject(data: unknown, obj?: TournamentEntry): TournamentEntry;
|
|
3231
|
+
static validateJSON(data: unknown): boolean;
|
|
3232
|
+
static readonly StateEnum: { readonly "registered": "registered"; readonly "active": "active"; readonly "eliminated": "eliminated"; readonly "winner": "winner" };
|
|
3233
|
+
/** Null until the draw */
|
|
3234
|
+
bracket_index: number | null;
|
|
3235
|
+
id: string;
|
|
3236
|
+
leader_id: string;
|
|
3237
|
+
metadata: Record<string, any>;
|
|
3238
|
+
/** Null until the draw */
|
|
3239
|
+
seed: number | null;
|
|
3240
|
+
state: "registered" | "active" | "eliminated" | "winner";
|
|
3241
|
+
wins: number;
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
/** A page of TournamentEntry rows */
|
|
3245
|
+
export class TournamentEntryPage {
|
|
3246
|
+
constructor(...required: any[]);
|
|
3247
|
+
static constructFromObject(data: unknown, obj?: TournamentEntryPage): TournamentEntryPage;
|
|
3248
|
+
static validateJSON(data: unknown): boolean;
|
|
3249
|
+
data: TournamentEntry[];
|
|
3250
|
+
meta: PageMeta;
|
|
3251
|
+
}
|
|
3252
|
+
|
|
3253
|
+
/** TournamentEntry under `data` */
|
|
3254
|
+
export class TournamentEntryResponse {
|
|
3255
|
+
constructor(...required: any[]);
|
|
3256
|
+
static constructFromObject(data: unknown, obj?: TournamentEntryResponse): TournamentEntryResponse;
|
|
3257
|
+
static validateJSON(data: unknown): boolean;
|
|
3258
|
+
data: TournamentEntry;
|
|
3259
|
+
}
|
|
3260
|
+
|
|
3261
|
+
/** A match between two entries */
|
|
3262
|
+
export class TournamentMatch {
|
|
3263
|
+
constructor(...required: any[]);
|
|
3264
|
+
static constructFromObject(data: unknown, obj?: TournamentMatch): TournamentMatch;
|
|
3265
|
+
static validateJSON(data: unknown): boolean;
|
|
3266
|
+
/** Empty until the slot is filled */
|
|
3267
|
+
a_entry_id: string;
|
|
3268
|
+
/** Empty until the slot is filled */
|
|
3269
|
+
a_leader_id: string;
|
|
3270
|
+
/** Empty until the slot is filled */
|
|
3271
|
+
b_entry_id: string;
|
|
3272
|
+
/** Empty until the slot is filled */
|
|
3273
|
+
b_leader_id: string;
|
|
3274
|
+
bracket_index: number;
|
|
3275
|
+
deadline_at: Date | null;
|
|
3276
|
+
id: string;
|
|
3277
|
+
metadata: Record<string, any>;
|
|
3278
|
+
resolved_at: Date | null;
|
|
3279
|
+
/** 1 is the first round */
|
|
3280
|
+
round: number;
|
|
3281
|
+
/** Position within the round */
|
|
3282
|
+
slot: number;
|
|
3283
|
+
/** Empty until decided */
|
|
3284
|
+
winner_entry_id: string;
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
/** Tournament match counts */
|
|
3288
|
+
export class TournamentMatchCounts {
|
|
3289
|
+
constructor(...required: any[]);
|
|
3290
|
+
static constructFromObject(data: unknown, obj?: TournamentMatchCounts): TournamentMatchCounts;
|
|
3291
|
+
static validateJSON(data: unknown): boolean;
|
|
3292
|
+
open: number;
|
|
3293
|
+
overdue: number;
|
|
3294
|
+
total: number;
|
|
3295
|
+
}
|
|
3296
|
+
|
|
3297
|
+
/** TournamentMatch under `data` */
|
|
3298
|
+
export class TournamentMatchResponse {
|
|
3299
|
+
constructor(...required: any[]);
|
|
3300
|
+
static constructFromObject(data: unknown, obj?: TournamentMatchResponse): TournamentMatchResponse;
|
|
3301
|
+
static validateJSON(data: unknown): boolean;
|
|
3302
|
+
data: TournamentMatch;
|
|
3303
|
+
}
|
|
3304
|
+
|
|
3305
|
+
/** A page of Tournament rows */
|
|
3306
|
+
export class TournamentPage {
|
|
3307
|
+
constructor(...required: any[]);
|
|
3308
|
+
static constructFromObject(data: unknown, obj?: TournamentPage): TournamentPage;
|
|
3309
|
+
static validateJSON(data: unknown): boolean;
|
|
3310
|
+
data: Tournament[];
|
|
3311
|
+
meta: PageMeta;
|
|
3312
|
+
}
|
|
3313
|
+
|
|
3314
|
+
/** An entry's placement: winners first, then by wins */
|
|
3315
|
+
export class TournamentPlacement {
|
|
3316
|
+
constructor(...required: any[]);
|
|
3317
|
+
static constructFromObject(data: unknown, obj?: TournamentPlacement): TournamentPlacement;
|
|
3318
|
+
static validateJSON(data: unknown): boolean;
|
|
3319
|
+
static readonly StateEnum: { readonly "registered": "registered"; readonly "active": "active"; readonly "eliminated": "eliminated"; readonly "winner": "winner" };
|
|
3320
|
+
bracket_index: number | null;
|
|
3321
|
+
entry_id: string;
|
|
3322
|
+
leader_id: string;
|
|
3323
|
+
/** 1 is first */
|
|
3324
|
+
placement: number;
|
|
3325
|
+
state: "registered" | "active" | "eliminated" | "winner";
|
|
3326
|
+
wins: number;
|
|
3327
|
+
}
|
|
3328
|
+
|
|
3329
|
+
/** Tournament under `data` */
|
|
3330
|
+
export class TournamentResponse {
|
|
3331
|
+
constructor(...required: any[]);
|
|
3332
|
+
static constructFromObject(data: unknown, obj?: TournamentResponse): TournamentResponse;
|
|
3333
|
+
static validateJSON(data: unknown): boolean;
|
|
3334
|
+
data: Tournament;
|
|
3335
|
+
}
|
|
3336
|
+
|
|
3337
|
+
/** Champions (one per bracket once decided) and every placement */
|
|
3338
|
+
export class TournamentStandings {
|
|
3339
|
+
constructor(...required: any[]);
|
|
3340
|
+
static constructFromObject(data: unknown, obj?: TournamentStandings): TournamentStandings;
|
|
3341
|
+
static validateJSON(data: unknown): boolean;
|
|
3342
|
+
champions: TournamentEntry[];
|
|
3343
|
+
placements: TournamentPlacement[];
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
/** TournamentStandings under `data` */
|
|
3347
|
+
export class TournamentStandingsResponse {
|
|
3348
|
+
constructor(...required: any[]);
|
|
3349
|
+
static constructFromObject(data: unknown, obj?: TournamentStandingsResponse): TournamentStandingsResponse;
|
|
3350
|
+
static validateJSON(data: unknown): boolean;
|
|
3351
|
+
data: TournamentStandings;
|
|
3352
|
+
}
|
|
3353
|
+
|
|
3354
|
+
/** Tournaments and entries per state, and match counts */
|
|
3355
|
+
export class TournamentStats {
|
|
3356
|
+
constructor(...required: any[]);
|
|
3357
|
+
static constructFromObject(data: unknown, obj?: TournamentStats): TournamentStats;
|
|
3358
|
+
static validateJSON(data: unknown): boolean;
|
|
3359
|
+
/** Entry count per state */
|
|
3360
|
+
entries: Record<string, number>;
|
|
3361
|
+
matches: TournamentMatchCounts;
|
|
3362
|
+
/** Tournament count per state */
|
|
3363
|
+
tournaments: Record<string, number>;
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
/** Where and how to upload an object */
|
|
3367
|
+
export class UploadTicket {
|
|
3368
|
+
constructor(...required: any[]);
|
|
3369
|
+
static constructFromObject(data: unknown, obj?: UploadTicket): UploadTicket;
|
|
3370
|
+
static validateJSON(data: unknown): boolean;
|
|
3371
|
+
/** Seconds the ticket stays valid */
|
|
3372
|
+
expires_in: number;
|
|
3373
|
+
/** Headers the upload must carry */
|
|
3374
|
+
headers: Record<string, string>;
|
|
3375
|
+
/** The object key to confirm afterwards */
|
|
3376
|
+
key: string;
|
|
3377
|
+
/** HTTP method, always PUT */
|
|
3378
|
+
method: string;
|
|
3379
|
+
/** Local storage only: the signed upload token, also carried in `url` */
|
|
3380
|
+
token?: string;
|
|
3381
|
+
/** Where to send the bytes */
|
|
3382
|
+
url: string;
|
|
3383
|
+
}
|
|
3384
|
+
|
|
3385
|
+
/** UploadTicket under `data` */
|
|
3386
|
+
export class UploadTicketResponse {
|
|
3387
|
+
constructor(...required: any[]);
|
|
3388
|
+
static constructFromObject(data: unknown, obj?: UploadTicketResponse): UploadTicketResponse;
|
|
3389
|
+
static validateJSON(data: unknown): boolean;
|
|
3390
|
+
data: UploadTicket;
|
|
3391
|
+
}
|
|
3392
|
+
|
|
3393
|
+
/** A user as it appears in a member list */
|
|
3394
|
+
export class UserBrief {
|
|
3395
|
+
constructor(...required: any[]);
|
|
3396
|
+
static constructFromObject(data: unknown, obj?: UserBrief): UserBrief;
|
|
3397
|
+
static validateJSON(data: unknown): boolean;
|
|
3398
|
+
/** Chosen name */
|
|
3399
|
+
display_name: string;
|
|
3400
|
+
id: string;
|
|
3401
|
+
is_activated: boolean;
|
|
3402
|
+
is_online: boolean;
|
|
3403
|
+
last_seen_at: Date;
|
|
3404
|
+
/** Public user metadata */
|
|
3405
|
+
metadata: Record<string, any>;
|
|
3406
|
+
/** The avatar: an image we host, or one of the server's icons (`/icons/<name>.svg?color=<color>`), one the user's id gives them when they set none */
|
|
3407
|
+
profile_url: string;
|
|
3408
|
+
/** Unique handle */
|
|
3409
|
+
username: string;
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
/** A page of UserBrief rows */
|
|
3413
|
+
export class UserBriefPage {
|
|
3414
|
+
constructor(...required: any[]);
|
|
3415
|
+
static constructFromObject(data: unknown, obj?: UserBriefPage): UserBriefPage;
|
|
3416
|
+
static validateJSON(data: unknown): boolean;
|
|
3417
|
+
data: UserBrief[];
|
|
3418
|
+
meta: PageMeta;
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
/** The balance after the change */
|
|
3422
|
+
export class WalletBalance {
|
|
3423
|
+
constructor(...required: any[]);
|
|
3424
|
+
static constructFromObject(data: unknown, obj?: WalletBalance): WalletBalance;
|
|
3425
|
+
static validateJSON(data: unknown): boolean;
|
|
3426
|
+
balance: number;
|
|
3427
|
+
currency: string;
|
|
3428
|
+
user_id: string;
|
|
3429
|
+
}
|
|
3430
|
+
|
|
3431
|
+
/** WalletBalance under `data` */
|
|
3432
|
+
export class WalletBalanceResponse {
|
|
3433
|
+
constructor(...required: any[]);
|
|
3434
|
+
static constructFromObject(data: unknown, obj?: WalletBalanceResponse): WalletBalanceResponse;
|
|
3435
|
+
static validateJSON(data: unknown): boolean;
|
|
3436
|
+
data: WalletBalance;
|
|
3437
|
+
}
|
|
3438
|
+
|
|
3439
|
+
/** Currency code to balance */
|
|
3440
|
+
export type WalletBalances = Record<string, number>;
|
|
3441
|
+
|
|
3442
|
+
/** WalletBalances under `data` */
|
|
3443
|
+
export class WalletBalancesResponse {
|
|
3444
|
+
constructor(...required: any[]);
|
|
3445
|
+
static constructFromObject(data: unknown, obj?: WalletBalancesResponse): WalletBalancesResponse;
|
|
3446
|
+
static validateJSON(data: unknown): boolean;
|
|
3447
|
+
data: WalletBalances;
|
|
3448
|
+
}
|
|
3449
|
+
|
|
3450
|
+
export class AdminAnalyticsApi {
|
|
3451
|
+
constructor(apiClient?: ApiClient);
|
|
3452
|
+
apiClient: ApiClient;
|
|
3453
|
+
/** Daily counters by key or prefix (admin) */
|
|
3454
|
+
adminGetAnalyticsCounts(opts?: { key?: string; days?: number }): Promise<AnalyticsCountsResponse>;
|
|
3455
|
+
adminGetAnalyticsCountsWithHttpInfo(opts?: { key?: string; days?: number }): Promise<{ data: AnalyticsCountsResponse; response: any }>;
|
|
3456
|
+
/** Per-day active / new users and cohort retention (admin) */
|
|
3457
|
+
adminGetAnalyticsDaily(opts?: { days?: number; segment?: "all" | "registered" | "guest" }): Promise<AnalyticsDailyResponse>;
|
|
3458
|
+
adminGetAnalyticsDailyWithHttpInfo(opts?: { days?: number; segment?: "all" | "registered" | "guest" }): Promise<{ data: AnalyticsDailyResponse; response: any }>;
|
|
3459
|
+
/** Currency granted / spent per day per ledger reason (admin) */
|
|
3460
|
+
adminGetAnalyticsEconomy(opts?: { days?: number; currency?: string }): Promise<AnalyticsEconomyResponse>;
|
|
3461
|
+
adminGetAnalyticsEconomyWithHttpInfo(opts?: { days?: number; currency?: string }): Promise<{ data: AnalyticsEconomyResponse; response: any }>;
|
|
3462
|
+
/** Live counters: players, lobbies, parties, quests, matchmaking, tournaments (admin) */
|
|
3463
|
+
adminGetAnalyticsSnapshot(): Promise<ServerStatsResponse>;
|
|
3464
|
+
adminGetAnalyticsSnapshotWithHttpInfo(): Promise<{ data: ServerStatsResponse; response: any }>;
|
|
3465
|
+
/** DAU / WAU / MAU, D1 / D7 / D30 and payer conversion (admin) */
|
|
3466
|
+
adminGetAnalyticsSummary(opts?: { segment?: "all" | "registered" | "guest" }): Promise<AnalyticsSummaryResponse>;
|
|
3467
|
+
adminGetAnalyticsSummaryWithHttpInfo(opts?: { segment?: "all" | "registered" | "guest" }): Promise<{ data: AnalyticsSummaryResponse; response: any }>;
|
|
3468
|
+
}
|
|
3469
|
+
|
|
3470
|
+
export class AdminBansApi {
|
|
3471
|
+
constructor(apiClient?: ApiClient);
|
|
3472
|
+
apiClient: ApiClient;
|
|
3473
|
+
/** Ban an IP address, an account or a chat sender (admin) */
|
|
3474
|
+
adminCreateBan(opts?: { adminCreateBanRequest?: { expires_at?: Date | null; ip?: string; kind: "ip" | "account" | "chat"; reason?: string; scope?: "global" | "lobby" | "group" | "party"; scope_ref_id?: string; user_id?: string } }): Promise<AdminBanResponse>;
|
|
3475
|
+
adminCreateBanWithHttpInfo(opts?: { adminCreateBanRequest?: { expires_at?: Date | null; ip?: string; kind: "ip" | "account" | "chat"; reason?: string; scope?: "global" | "lobby" | "group" | "party"; scope_ref_id?: string; user_id?: string } }): Promise<{ data: AdminBanResponse; response: any }>;
|
|
3476
|
+
/** Lift a ban (admin) */
|
|
3477
|
+
adminLiftBan(id: string): Promise<AdminBanResponse>;
|
|
3478
|
+
adminLiftBanWithHttpInfo(id: string): Promise<{ data: AdminBanResponse; response: any }>;
|
|
3479
|
+
/** List bans (admin) */
|
|
3480
|
+
adminListBans(opts?: { kind?: "ip" | "account" | "chat"; userId?: string; subject?: string; scope?: "global" | "lobby" | "group" | "party"; scopeRefId?: string; active?: boolean; page?: number; pageSize?: number }): Promise<AdminBanPage>;
|
|
3481
|
+
adminListBansWithHttpInfo(opts?: { kind?: "ip" | "account" | "chat"; userId?: string; subject?: string; scope?: "global" | "lobby" | "group" | "party"; scopeRefId?: string; active?: boolean; page?: number; pageSize?: number }): Promise<{ data: AdminBanPage; response: any }>;
|
|
3482
|
+
}
|
|
3483
|
+
|
|
3484
|
+
export class AdminChatApi {
|
|
3485
|
+
constructor(apiClient?: ApiClient);
|
|
3486
|
+
apiClient: ApiClient;
|
|
3487
|
+
/** Add a blocklist word (admin) */
|
|
3488
|
+
adminCreateChatFilterWord(opts?: { adminCreateChatFilterWordRequest?: { lang?: string; match_mode?: "substring" | "exact"; severity?: "block" | "mask" | "flag"; word: string } }): Promise<ChatFilterWordResponse>;
|
|
3489
|
+
adminCreateChatFilterWordWithHttpInfo(opts?: { adminCreateChatFilterWordRequest?: { lang?: string; match_mode?: "substring" | "exact"; severity?: "block" | "mask" | "flag"; word: string } }): Promise<{ data: ChatFilterWordResponse; response: any }>;
|
|
3490
|
+
/** Delete all messages in a conversation (admin) */
|
|
3491
|
+
adminDeleteChatConversation(chatType: "lobby" | "group" | "friend" | "party", chatRefId: string): Promise<DeletedCountResponse>;
|
|
3492
|
+
adminDeleteChatConversationWithHttpInfo(chatType: "lobby" | "group" | "friend" | "party", chatRefId: string): Promise<{ data: DeletedCountResponse; response: any }>;
|
|
3493
|
+
/** Remove a blocklist word (admin) */
|
|
3494
|
+
adminDeleteChatFilterWord(id: string): Promise<OkResponse>;
|
|
3495
|
+
adminDeleteChatFilterWordWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3496
|
+
/** Remove an imported word list (admin) */
|
|
3497
|
+
adminDeleteChatFilterWordsByLang(lang: string): Promise<DeletedCountResponse>;
|
|
3498
|
+
adminDeleteChatFilterWordsByLangWithHttpInfo(lang: string): Promise<{ data: DeletedCountResponse; response: any }>;
|
|
3499
|
+
/** Delete a chat message (admin) */
|
|
3500
|
+
adminDeleteChatMessage(id: string): Promise<OkResponse>;
|
|
3501
|
+
adminDeleteChatMessageWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3502
|
+
/** Delete a chat report (admin) */
|
|
3503
|
+
adminDeleteChatReport(id: string): Promise<OkResponse>;
|
|
3504
|
+
adminDeleteChatReportWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3505
|
+
/** Import a bundled word list (admin) */
|
|
3506
|
+
adminImportChatFilterWords(opts?: { adminImportChatFilterWordsRequest?: { lang: string; severity?: "block" | "mask" | "flag" } }): Promise<ImportedCountResponse>;
|
|
3507
|
+
adminImportChatFilterWordsWithHttpInfo(opts?: { adminImportChatFilterWordsRequest?: { lang: string; severity?: "block" | "mask" | "flag" } }): Promise<{ data: ImportedCountResponse; response: any }>;
|
|
3508
|
+
/** Languages with a bundled word list (admin) */
|
|
3509
|
+
adminListChatFilterLanguages(): Promise<ChatFilterLanguagesResponse>;
|
|
3510
|
+
adminListChatFilterLanguagesWithHttpInfo(): Promise<{ data: ChatFilterLanguagesResponse; response: any }>;
|
|
3511
|
+
/** List blocklist words (admin) */
|
|
3512
|
+
adminListChatFilterWords(opts?: { word?: string; severity?: "block" | "mask" | "flag"; lang?: string; page?: number; pageSize?: number }): Promise<ChatFilterWordPage>;
|
|
3513
|
+
adminListChatFilterWordsWithHttpInfo(opts?: { word?: string; severity?: "block" | "mask" | "flag"; lang?: string; page?: number; pageSize?: number }): Promise<{ data: ChatFilterWordPage; response: any }>;
|
|
3514
|
+
/** List all chat messages (admin) */
|
|
3515
|
+
adminListChatMessages(opts?: { senderId?: string; chatType?: "lobby" | "group" | "friend" | "party"; chatRefId?: string; content?: string; sortBy?: "inserted_at" | "inserted_at_asc"; page?: number; pageSize?: number }): Promise<ChatMessagePage>;
|
|
3516
|
+
adminListChatMessagesWithHttpInfo(opts?: { senderId?: string; chatType?: "lobby" | "group" | "friend" | "party"; chatRefId?: string; content?: string; sortBy?: "inserted_at" | "inserted_at_asc"; page?: number; pageSize?: number }): Promise<{ data: ChatMessagePage; response: any }>;
|
|
3517
|
+
/** List chat reports (admin) */
|
|
3518
|
+
adminListChatReports(opts?: { status?: "open" | "reviewing" | "actioned" | "dismissed"; reportedUserId?: string; reporterId?: string; page?: number; pageSize?: number }): Promise<ChatReportPage>;
|
|
3519
|
+
adminListChatReportsWithHttpInfo(opts?: { status?: "open" | "reviewing" | "actioned" | "dismissed"; reportedUserId?: string; reporterId?: string; page?: number; pageSize?: number }): Promise<{ data: ChatReportPage; response: any }>;
|
|
3520
|
+
/** Resolve a chat report (admin) */
|
|
3521
|
+
adminResolveChatReport(id: string, opts?: { adminResolveChatReportRequest?: { note?: string; status: "open" | "reviewing" | "actioned" | "dismissed" } }): Promise<ChatReportResponse>;
|
|
3522
|
+
adminResolveChatReportWithHttpInfo(id: string, opts?: { adminResolveChatReportRequest?: { note?: string; status: "open" | "reviewing" | "actioned" | "dismissed" } }): Promise<{ data: ChatReportResponse; response: any }>;
|
|
3523
|
+
/** Test a phrase against the filter (admin) */
|
|
3524
|
+
adminTestChatPhrase(opts?: { adminTestChatPhraseRequest?: { phrase: string } }): Promise<ChatFilterTestResponse>;
|
|
3525
|
+
adminTestChatPhraseWithHttpInfo(opts?: { adminTestChatPhraseRequest?: { phrase: string } }): Promise<{ data: ChatFilterTestResponse; response: any }>;
|
|
3526
|
+
/** Update a blocklist word (admin) */
|
|
3527
|
+
adminUpdateChatFilterWord(id: string, opts?: { adminUpdateChatFilterWordRequest?: { lang?: string; match_mode?: "substring" | "exact"; severity?: "block" | "mask" | "flag"; word?: string } }): Promise<ChatFilterWordResponse>;
|
|
3528
|
+
adminUpdateChatFilterWordWithHttpInfo(id: string, opts?: { adminUpdateChatFilterWordRequest?: { lang?: string; match_mode?: "substring" | "exact"; severity?: "block" | "mask" | "flag"; word?: string } }): Promise<{ data: ChatFilterWordResponse; response: any }>;
|
|
3529
|
+
}
|
|
3530
|
+
|
|
3531
|
+
export class AdminEconomyApi {
|
|
3532
|
+
constructor(apiClient?: ApiClient);
|
|
3533
|
+
apiClient: ApiClient;
|
|
3534
|
+
/** Consume items from a user (admin) */
|
|
3535
|
+
adminConsumeItem(): Promise<ItemQuantityResponse>;
|
|
3536
|
+
adminConsumeItemWithHttpInfo(): Promise<{ data: ItemQuantityResponse; response: any }>;
|
|
3537
|
+
/** Grant currency to a user (admin) */
|
|
3538
|
+
adminGrantCurrency(opts?: { adminGrantCurrencyRequest?: { amount: number; currency: string; idempotency_key?: string; reason?: string; user_id: string } }): Promise<WalletBalanceResponse>;
|
|
3539
|
+
adminGrantCurrencyWithHttpInfo(opts?: { adminGrantCurrencyRequest?: { amount: number; currency: string; idempotency_key?: string; reason?: string; user_id: string } }): Promise<{ data: WalletBalanceResponse; response: any }>;
|
|
3540
|
+
/** Grant items to a user (admin) */
|
|
3541
|
+
adminGrantItem(opts?: { adminGrantItemRequest?: { item: string; quantity: number; user_id: string } }): Promise<ItemQuantityResponse>;
|
|
3542
|
+
adminGrantItemWithHttpInfo(opts?: { adminGrantItemRequest?: { item: string; quantity: number; user_id: string } }): Promise<{ data: ItemQuantityResponse; response: any }>;
|
|
3543
|
+
/** List inventory item stacks (admin) */
|
|
3544
|
+
adminListInventory(opts?: { userId?: string; item?: string; page?: number; pageSize?: number }): Promise<AdminInventoryItemPage>;
|
|
3545
|
+
adminListInventoryWithHttpInfo(opts?: { userId?: string; item?: string; page?: number; pageSize?: number }): Promise<{ data: AdminInventoryItemPage; response: any }>;
|
|
3546
|
+
/** List ledger entries (admin) */
|
|
3547
|
+
adminListLedger(opts?: { userId?: string; currency?: string; page?: number; pageSize?: number }): Promise<AdminLedgerEntryPage>;
|
|
3548
|
+
adminListLedgerWithHttpInfo(opts?: { userId?: string; currency?: string; page?: number; pageSize?: number }): Promise<{ data: AdminLedgerEntryPage; response: any }>;
|
|
3549
|
+
/** List wallets (admin) */
|
|
3550
|
+
adminListWallets(opts?: { userId?: string; currency?: string; page?: number; pageSize?: number }): Promise<AdminWalletPage>;
|
|
3551
|
+
adminListWalletsWithHttpInfo(opts?: { userId?: string; currency?: string; page?: number; pageSize?: number }): Promise<{ data: AdminWalletPage; response: any }>;
|
|
3552
|
+
/** Spend currency from a user (admin) */
|
|
3553
|
+
adminSpendCurrency(opts?: { adminSpendCurrencyRequest?: { amount: number; currency: string; idempotency_key?: string; reason?: string; user_id: string } }): Promise<WalletBalanceResponse>;
|
|
3554
|
+
adminSpendCurrencyWithHttpInfo(opts?: { adminSpendCurrencyRequest?: { amount: number; currency: string; idempotency_key?: string; reason?: string; user_id: string } }): Promise<{ data: WalletBalanceResponse; response: any }>;
|
|
3555
|
+
}
|
|
3556
|
+
|
|
3557
|
+
export class AdminGroupsApi {
|
|
3558
|
+
constructor(apiClient?: ApiClient);
|
|
3559
|
+
apiClient: ApiClient;
|
|
3560
|
+
/** Delete a group (admin) */
|
|
3561
|
+
adminDeleteGroup(id: string): Promise<OkResponse>;
|
|
3562
|
+
adminDeleteGroupWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3563
|
+
/** List all groups (admin) */
|
|
3564
|
+
adminListGroups(opts?: { title?: string; type?: "public" | "private" | "hidden"; minMembers?: number; maxMembers?: number; sortBy?: "updated_at" | "updated_at_asc" | "inserted_at" | "inserted_at_asc" | "title" | "title_desc" | "max_members" | "max_members_asc"; page?: number; pageSize?: number }): Promise<GroupPage>;
|
|
3565
|
+
adminListGroupsWithHttpInfo(opts?: { title?: string; type?: "public" | "private" | "hidden"; minMembers?: number; maxMembers?: number; sortBy?: "updated_at" | "updated_at_asc" | "inserted_at" | "inserted_at_asc" | "title" | "title_desc" | "max_members" | "max_members_asc"; page?: number; pageSize?: number }): Promise<{ data: GroupPage; response: any }>;
|
|
3566
|
+
/** Update a group (admin) */
|
|
3567
|
+
adminUpdateGroup(id: string, opts?: { adminUpdateGroupRequest?: { description?: string; max_members?: number; metadata?: Record<string, any>; slowdown?: number; slug?: string; title?: string; type?: string } }): Promise<GroupResponse>;
|
|
3568
|
+
adminUpdateGroupWithHttpInfo(id: string, opts?: { adminUpdateGroupRequest?: { description?: string; max_members?: number; metadata?: Record<string, any>; slowdown?: number; slug?: string; title?: string; type?: string } }): Promise<{ data: GroupResponse; response: any }>;
|
|
3569
|
+
}
|
|
3570
|
+
|
|
3571
|
+
export class AdminKVApi {
|
|
3572
|
+
constructor(apiClient?: ApiClient);
|
|
3573
|
+
apiClient: ApiClient;
|
|
3574
|
+
/** Create KV entry (admin) */
|
|
3575
|
+
adminCreateKvEntry(opts?: { adminCreateKvEntryRequest?: { data: Record<string, any>; key: string; lobby_id?: string; metadata?: Record<string, any>; user_id?: string } }): Promise<AdminKvEntryResponse>;
|
|
3576
|
+
adminCreateKvEntryWithHttpInfo(opts?: { adminCreateKvEntryRequest?: { data: Record<string, any>; key: string; lobby_id?: string; metadata?: Record<string, any>; user_id?: string } }): Promise<{ data: AdminKvEntryResponse; response: any }>;
|
|
3577
|
+
/** Delete KV by key (admin) */
|
|
3578
|
+
adminDeleteKv(key: string, opts?: { userId?: string; lobbyId?: string }): Promise<OkResponse>;
|
|
3579
|
+
adminDeleteKvWithHttpInfo(key: string, opts?: { userId?: string; lobbyId?: string }): Promise<{ data: OkResponse; response: any }>;
|
|
3580
|
+
/** Delete KV entry by id (admin) */
|
|
3581
|
+
adminDeleteKvEntry(id: string): Promise<OkResponse>;
|
|
3582
|
+
adminDeleteKvEntryWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3583
|
+
/** List KV entries (admin) */
|
|
3584
|
+
adminListKvEntries(opts?: { page?: number; pageSize?: number; key?: string; userId?: string; lobbyId?: string; globalOnly?: boolean }): Promise<AdminKvEntryPage>;
|
|
3585
|
+
adminListKvEntriesWithHttpInfo(opts?: { page?: number; pageSize?: number; key?: string; userId?: string; lobbyId?: string; globalOnly?: boolean }): Promise<{ data: AdminKvEntryPage; response: any }>;
|
|
3586
|
+
/** Update KV entry by id (admin) */
|
|
3587
|
+
adminUpdateKvEntry(id: string, opts?: { adminUpdateKvEntryRequest?: { data?: Record<string, any>; key?: string; lobby_id?: string; metadata?: Record<string, any>; user_id?: string } }): Promise<AdminKvEntryResponse>;
|
|
3588
|
+
adminUpdateKvEntryWithHttpInfo(id: string, opts?: { adminUpdateKvEntryRequest?: { data?: Record<string, any>; key?: string; lobby_id?: string; metadata?: Record<string, any>; user_id?: string } }): Promise<{ data: AdminKvEntryResponse; response: any }>;
|
|
3589
|
+
/** Upsert KV by key (admin) */
|
|
3590
|
+
adminUpsertKv(opts?: { adminUpsertKvRequest?: { data: Record<string, any>; key: string; lobby_id?: string; metadata?: Record<string, any>; user_id?: string } }): Promise<AdminKvEntryResponse>;
|
|
3591
|
+
adminUpsertKvWithHttpInfo(opts?: { adminUpsertKvRequest?: { data: Record<string, any>; key: string; lobby_id?: string; metadata?: Record<string, any>; user_id?: string } }): Promise<{ data: AdminKvEntryResponse; response: any }>;
|
|
3592
|
+
}
|
|
3593
|
+
|
|
3594
|
+
export class AdminLeaderboardsApi {
|
|
3595
|
+
constructor(apiClient?: ApiClient);
|
|
3596
|
+
apiClient: ApiClient;
|
|
3597
|
+
/** Create leaderboard (admin) */
|
|
3598
|
+
adminCreateLeaderboard(opts?: { adminCreateLeaderboardRequest?: { description?: string; ends_at?: Date; icon_url?: string; metadata?: Record<string, any>; operator?: "set" | "best" | "incr" | "decr"; slug: string; sort_order?: "desc" | "asc"; starts_at?: Date; title: string } }): Promise<LeaderboardResponse>;
|
|
3599
|
+
adminCreateLeaderboardWithHttpInfo(opts?: { adminCreateLeaderboardRequest?: { description?: string; ends_at?: Date; icon_url?: string; metadata?: Record<string, any>; operator?: "set" | "best" | "incr" | "decr"; slug: string; sort_order?: "desc" | "asc"; starts_at?: Date; title: string } }): Promise<{ data: LeaderboardResponse; response: any }>;
|
|
3600
|
+
/** Delete leaderboard (admin) */
|
|
3601
|
+
adminDeleteLeaderboard(id: string): Promise<OkResponse>;
|
|
3602
|
+
adminDeleteLeaderboardWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3603
|
+
/** Delete leaderboard record (admin) */
|
|
3604
|
+
adminDeleteLeaderboardRecord(id: string, recordId: string): Promise<OkResponse>;
|
|
3605
|
+
adminDeleteLeaderboardRecordWithHttpInfo(id: string, recordId: string): Promise<{ data: OkResponse; response: any }>;
|
|
3606
|
+
/** Delete a user's record (admin) */
|
|
3607
|
+
adminDeleteLeaderboardUserRecord(id: string, userId: string): Promise<OkResponse>;
|
|
3608
|
+
adminDeleteLeaderboardUserRecordWithHttpInfo(id: string, userId: string): Promise<{ data: OkResponse; response: any }>;
|
|
3609
|
+
/** End leaderboard (admin) */
|
|
3610
|
+
adminEndLeaderboard(id: string): Promise<LeaderboardResponse>;
|
|
3611
|
+
adminEndLeaderboardWithHttpInfo(id: string): Promise<{ data: LeaderboardResponse; response: any }>;
|
|
3612
|
+
/** Request an upload ticket for a leaderboard icon (admin) */
|
|
3613
|
+
adminLeaderboardIconUploadUrl(id: string, opts?: { adminLeaderboardIconUploadUrlRequest?: { content_type: string } }): Promise<UploadTicketResponse>;
|
|
3614
|
+
adminLeaderboardIconUploadUrlWithHttpInfo(id: string, opts?: { adminLeaderboardIconUploadUrlRequest?: { content_type: string } }): Promise<{ data: UploadTicketResponse; response: any }>;
|
|
3615
|
+
/** Confirm an uploaded leaderboard icon (admin) */
|
|
3616
|
+
adminSetLeaderboardIcon(id: string, opts?: { adminSetLeaderboardIconRequest?: { key: string } }): Promise<LeaderboardResponse>;
|
|
3617
|
+
adminSetLeaderboardIconWithHttpInfo(id: string, opts?: { adminSetLeaderboardIconRequest?: { key: string } }): Promise<{ data: LeaderboardResponse; response: any }>;
|
|
3618
|
+
/** Submit score (admin) */
|
|
3619
|
+
adminSubmitLeaderboardScore(id: string, opts?: { adminSubmitLeaderboardScoreRequest?: { label?: string; metadata?: Record<string, any>; score: number; user_id?: string } }): Promise<AdminLeaderboardRecordResponse>;
|
|
3620
|
+
adminSubmitLeaderboardScoreWithHttpInfo(id: string, opts?: { adminSubmitLeaderboardScoreRequest?: { label?: string; metadata?: Record<string, any>; score: number; user_id?: string } }): Promise<{ data: AdminLeaderboardRecordResponse; response: any }>;
|
|
3621
|
+
/** Update leaderboard (admin) */
|
|
3622
|
+
adminUpdateLeaderboard(id: string, opts?: { adminUpdateLeaderboardRequest?: { description?: string; ends_at?: Date; icon_url?: string; metadata?: Record<string, any>; starts_at?: Date; title?: string } }): Promise<LeaderboardResponse>;
|
|
3623
|
+
adminUpdateLeaderboardWithHttpInfo(id: string, opts?: { adminUpdateLeaderboardRequest?: { description?: string; ends_at?: Date; icon_url?: string; metadata?: Record<string, any>; starts_at?: Date; title?: string } }): Promise<{ data: LeaderboardResponse; response: any }>;
|
|
3624
|
+
/** Update leaderboard record (admin) */
|
|
3625
|
+
adminUpdateLeaderboardRecord(id: string, recordId: string, opts?: { adminUpdateLeaderboardRecordRequest?: { metadata?: Record<string, any>; score?: number } }): Promise<AdminLeaderboardRecordResponse>;
|
|
3626
|
+
adminUpdateLeaderboardRecordWithHttpInfo(id: string, recordId: string, opts?: { adminUpdateLeaderboardRecordRequest?: { metadata?: Record<string, any>; score?: number } }): Promise<{ data: AdminLeaderboardRecordResponse; response: any }>;
|
|
3627
|
+
}
|
|
3628
|
+
|
|
3629
|
+
export class AdminLobbiesApi {
|
|
3630
|
+
constructor(apiClient?: ApiClient);
|
|
3631
|
+
apiClient: ApiClient;
|
|
3632
|
+
/** Delete lobby by id (admin) */
|
|
3633
|
+
adminDeleteLobby(id: string): Promise<OkResponse>;
|
|
3634
|
+
adminDeleteLobbyWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3635
|
+
/** List all lobbies (admin) */
|
|
3636
|
+
adminListLobbies(opts?: { title?: string; isHidden?: boolean; isLocked?: boolean; hasPassword?: boolean; minUsers?: number; maxUsers?: number; page?: number; pageSize?: number }): Promise<LobbyPage>;
|
|
3637
|
+
adminListLobbiesWithHttpInfo(opts?: { title?: string; isHidden?: boolean; isLocked?: boolean; hasPassword?: boolean; minUsers?: number; maxUsers?: number; page?: number; pageSize?: number }): Promise<{ data: LobbyPage; response: any }>;
|
|
3638
|
+
/** Update lobby by id (admin) */
|
|
3639
|
+
adminUpdateLobby(id: string, opts?: { adminUpdateLobbyRequest?: { is_hidden?: boolean; is_locked?: boolean; max_users?: number; metadata?: Record<string, any>; password?: string; slowdown?: number; title?: string } }): Promise<LobbyResponse>;
|
|
3640
|
+
adminUpdateLobbyWithHttpInfo(id: string, opts?: { adminUpdateLobbyRequest?: { is_hidden?: boolean; is_locked?: boolean; max_users?: number; metadata?: Record<string, any>; password?: string; slowdown?: number; title?: string } }): Promise<{ data: LobbyResponse; response: any }>;
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3643
|
+
export class AdminMatchmakingApi {
|
|
3644
|
+
constructor(apiClient?: ApiClient);
|
|
3645
|
+
apiClient: ApiClient;
|
|
3646
|
+
/** Cancel a matchmaking ticket (admin) */
|
|
3647
|
+
adminCancelMatchmakingTicket(id: string): Promise<AdminMatchmakingTicketResponse>;
|
|
3648
|
+
adminCancelMatchmakingTicketWithHttpInfo(id: string): Promise<{ data: AdminMatchmakingTicketResponse; response: any }>;
|
|
3649
|
+
/** List matchmaking tickets (admin) */
|
|
3650
|
+
adminListMatchmakingTickets(opts?: { status?: "queued" | "matched" | "cancelled"; userId?: string; page?: number; pageSize?: number }): Promise<AdminMatchmakingTicketPage>;
|
|
3651
|
+
adminListMatchmakingTicketsWithHttpInfo(opts?: { status?: "queued" | "matched" | "cancelled"; userId?: string; page?: number; pageSize?: number }): Promise<{ data: AdminMatchmakingTicketPage; response: any }>;
|
|
3652
|
+
/** Matchmaking statistics (admin) */
|
|
3653
|
+
adminMatchmakingStats(): Promise<AdminMatchmakingStatsResponse>;
|
|
3654
|
+
adminMatchmakingStatsWithHttpInfo(): Promise<{ data: AdminMatchmakingStatsResponse; response: any }>;
|
|
3655
|
+
}
|
|
3656
|
+
|
|
3657
|
+
export class AdminNotificationsApi {
|
|
3658
|
+
constructor(apiClient?: ApiClient);
|
|
3659
|
+
apiClient: ApiClient;
|
|
3660
|
+
/** Create a notification (admin) */
|
|
3661
|
+
adminCreateNotification(opts?: { adminCreateNotificationRequest?: { content?: string | null; metadata?: Record<string, any> | null; recipient_id: string; sender_id: string; title: string } }): Promise<NotificationResponse>;
|
|
3662
|
+
adminCreateNotificationWithHttpInfo(opts?: { adminCreateNotificationRequest?: { content?: string | null; metadata?: Record<string, any> | null; recipient_id: string; sender_id: string; title: string } }): Promise<{ data: NotificationResponse; response: any }>;
|
|
3663
|
+
/** Delete a notification (admin) */
|
|
3664
|
+
adminDeleteNotification(id: string): Promise<OkResponse>;
|
|
3665
|
+
adminDeleteNotificationWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3666
|
+
/** List all notifications (admin) */
|
|
3667
|
+
adminListNotifications(opts?: { userId?: string; senderId?: string; title?: string; page?: number; pageSize?: number }): Promise<NotificationPage>;
|
|
3668
|
+
adminListNotificationsWithHttpInfo(opts?: { userId?: string; senderId?: string; title?: string; page?: number; pageSize?: number }): Promise<{ data: NotificationPage; response: any }>;
|
|
3669
|
+
}
|
|
3670
|
+
|
|
3671
|
+
export class AdminPushApi {
|
|
3672
|
+
constructor(apiClient?: ApiClient);
|
|
3673
|
+
apiClient: ApiClient;
|
|
3674
|
+
/** Delete a device push token (admin) */
|
|
3675
|
+
adminDeletePushToken(id: string): Promise<OkResponse>;
|
|
3676
|
+
adminDeletePushTokenWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3677
|
+
/** List registered device push tokens (admin) */
|
|
3678
|
+
adminListPushTokens(opts?: { userId?: string; platform?: "android" | "ios" | "web"; provider?: "fcm" | "apns"; status?: "live" | "disabled"; page?: number; pageSize?: number }): Promise<AdminPushTokenPage>;
|
|
3679
|
+
adminListPushTokensWithHttpInfo(opts?: { userId?: string; platform?: "android" | "ios" | "web"; provider?: "fcm" | "apns"; status?: "live" | "disabled"; page?: number; pageSize?: number }): Promise<{ data: AdminPushTokenPage; response: any }>;
|
|
3680
|
+
/** Send a push notification to a user (admin) */
|
|
3681
|
+
adminSendPush(opts?: { adminSendPushRequest?: { badge?: number; body?: string; collapse_key?: string; data?: Record<string, any>; image?: string; sound?: string; title: string; user_id: string } }): Promise<OkResponse>;
|
|
3682
|
+
adminSendPushWithHttpInfo(opts?: { adminSendPushRequest?: { badge?: number; body?: string; collapse_key?: string; data?: Record<string, any>; image?: string; sound?: string; title: string; user_id: string } }): Promise<{ data: OkResponse; response: any }>;
|
|
3683
|
+
}
|
|
3684
|
+
|
|
3685
|
+
export class AdminQuestsApi {
|
|
3686
|
+
constructor(apiClient?: ApiClient);
|
|
3687
|
+
apiClient: ApiClient;
|
|
3688
|
+
/** Claim a completed quest on a user's behalf (admin) */
|
|
3689
|
+
adminClaimQuest(opts?: { adminClaimQuestRequest?: { key: string; user_id: string } }): Promise<AdminQuestClaimResponse>;
|
|
3690
|
+
adminClaimQuestWithHttpInfo(opts?: { adminClaimQuestRequest?: { key: string; user_id: string } }): Promise<{ data: AdminQuestClaimResponse; response: any }>;
|
|
3691
|
+
/** Create quest (admin) */
|
|
3692
|
+
adminCreateQuest(opts?: { adminCreateQuestRequest?: { active?: boolean; auto_claim?: boolean; category?: string; code_only?: boolean; description?: string; ends_at?: Date | null; group_key?: string; group_title?: string; hidden?: boolean; icon_url?: string; key?: string; metadata?: Record<string, any>; objectives?: { event: string; params?: Record<string, any>; target?: number }[]; prerequisite_quest_key?: string; reset?: "never" | "daily" | "weekly" | "monthly" | "interval" | "repeat"; reset_interval_days?: number | null; rewards?: ({ amount?: number; code: string; type: "currency" | "item" })[]; sort_order?: number; starts_at?: Date | null; title?: string } }): Promise<AdminQuestResponse>;
|
|
3693
|
+
adminCreateQuestWithHttpInfo(opts?: { adminCreateQuestRequest?: { active?: boolean; auto_claim?: boolean; category?: string; code_only?: boolean; description?: string; ends_at?: Date | null; group_key?: string; group_title?: string; hidden?: boolean; icon_url?: string; key?: string; metadata?: Record<string, any>; objectives?: { event: string; params?: Record<string, any>; target?: number }[]; prerequisite_quest_key?: string; reset?: "never" | "daily" | "weekly" | "monthly" | "interval" | "repeat"; reset_interval_days?: number | null; rewards?: ({ amount?: number; code: string; type: "currency" | "item" })[]; sort_order?: number; starts_at?: Date | null; title?: string } }): Promise<{ data: AdminQuestResponse; response: any }>;
|
|
3694
|
+
/** Add one redemption code with a chosen token (admin) */
|
|
3695
|
+
adminCreateQuestCode(id: string, opts?: { adminCreateQuestCodeRequest?: { max_uses?: number | null; metadata?: Record<string, any>; token: string } }): Promise<AdminQuestCodeResponse>;
|
|
3696
|
+
adminCreateQuestCodeWithHttpInfo(id: string, opts?: { adminCreateQuestCodeRequest?: { max_uses?: number | null; metadata?: Record<string, any>; token: string } }): Promise<{ data: AdminQuestCodeResponse; response: any }>;
|
|
3697
|
+
/** Delete quest and all user progress (admin) */
|
|
3698
|
+
adminDeleteQuest(id: string): Promise<OkResponse>;
|
|
3699
|
+
adminDeleteQuestWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3700
|
+
/** Generate random redemption codes (admin) */
|
|
3701
|
+
adminGenerateQuestCodes(id: string, opts?: { adminGenerateQuestCodesRequest?: { count: number; max_uses?: number | null; metadata?: Record<string, any> } }): Promise<AdminQuestCodeBatchResponse>;
|
|
3702
|
+
adminGenerateQuestCodesWithHttpInfo(id: string, opts?: { adminGenerateQuestCodesRequest?: { count: number; max_uses?: number | null; metadata?: Record<string, any> } }): Promise<{ data: AdminQuestCodeBatchResponse; response: any }>;
|
|
3703
|
+
/** Force-complete a quest for a user (admin) */
|
|
3704
|
+
adminGrantQuest(opts?: { adminGrantQuestRequest?: { key: string; user_id: string } }): Promise<AdminQuestProgressResponse>;
|
|
3705
|
+
adminGrantQuestWithHttpInfo(opts?: { adminGrantQuestRequest?: { key: string; user_id: string } }): Promise<{ data: AdminQuestProgressResponse; response: any }>;
|
|
3706
|
+
/** List a quest's redemption codes (admin) */
|
|
3707
|
+
adminListQuestCodes(id: string, opts?: { search?: string; page?: number; pageSize?: number }): Promise<AdminQuestCodePage>;
|
|
3708
|
+
adminListQuestCodesWithHttpInfo(id: string, opts?: { search?: string; page?: number; pageSize?: number }): Promise<{ data: AdminQuestCodePage; response: any }>;
|
|
3709
|
+
/** List quest progress rows (admin) */
|
|
3710
|
+
adminListQuestProgress(opts?: { userId?: string; questKey?: string; status?: string; page?: number; pageSize?: number }): Promise<AdminQuestProgressPage>;
|
|
3711
|
+
adminListQuestProgressWithHttpInfo(opts?: { userId?: string; questKey?: string; status?: string; page?: number; pageSize?: number }): Promise<{ data: AdminQuestProgressPage; response: any }>;
|
|
3712
|
+
/** List all quest definitions (admin, includes inactive/hidden) */
|
|
3713
|
+
adminListQuests(opts?: { category?: string; search?: string; page?: number; pageSize?: number }): Promise<AdminQuestPage>;
|
|
3714
|
+
adminListQuestsWithHttpInfo(opts?: { category?: string; search?: string; page?: number; pageSize?: number }): Promise<{ data: AdminQuestPage; response: any }>;
|
|
3715
|
+
/** Per-status progress counts for one quest (admin) */
|
|
3716
|
+
adminQuestFunnel(key: string): Promise<QuestFunnelResponse>;
|
|
3717
|
+
adminQuestFunnelWithHttpInfo(key: string): Promise<{ data: QuestFunnelResponse; response: any }>;
|
|
3718
|
+
/** Request an upload ticket for a quest icon (admin) */
|
|
3719
|
+
adminQuestIconUploadUrl(id: string, opts?: { adminQuestIconUploadUrlRequest?: { content_type: string } }): Promise<UploadTicketResponse>;
|
|
3720
|
+
adminQuestIconUploadUrlWithHttpInfo(id: string, opts?: { adminQuestIconUploadUrlRequest?: { content_type: string } }): Promise<{ data: UploadTicketResponse; response: any }>;
|
|
3721
|
+
/** Reset a user's current-period quest progress (admin) */
|
|
3722
|
+
adminResetQuest(opts?: { adminResetQuestRequest?: { key: string; user_id: string } }): Promise<OkResponse>;
|
|
3723
|
+
adminResetQuestWithHttpInfo(opts?: { adminResetQuestRequest?: { key: string; user_id: string } }): Promise<{ data: OkResponse; response: any }>;
|
|
3724
|
+
/** Confirm an uploaded quest icon (admin) */
|
|
3725
|
+
adminSetQuestIcon(id: string, opts?: { adminSetQuestIconRequest?: { key: string } }): Promise<AdminQuestResponse>;
|
|
3726
|
+
adminSetQuestIconWithHttpInfo(id: string, opts?: { adminSetQuestIconRequest?: { key: string } }): Promise<{ data: AdminQuestResponse; response: any }>;
|
|
3727
|
+
/** Update quest (admin) */
|
|
3728
|
+
adminUpdateQuest(id: string, opts?: { adminUpdateQuestRequest?: { active?: boolean; auto_claim?: boolean; category?: string; code_only?: boolean; description?: string; ends_at?: Date | null; group_key?: string; group_title?: string; hidden?: boolean; icon_url?: string; key?: string; metadata?: Record<string, any>; objectives?: { event: string; params?: Record<string, any>; target?: number }[]; prerequisite_quest_key?: string; reset?: "never" | "daily" | "weekly" | "monthly" | "interval" | "repeat"; reset_interval_days?: number | null; rewards?: ({ amount?: number; code: string; type: "currency" | "item" })[]; sort_order?: number; starts_at?: Date | null; title?: string } }): Promise<AdminQuestResponse>;
|
|
3729
|
+
adminUpdateQuestWithHttpInfo(id: string, opts?: { adminUpdateQuestRequest?: { active?: boolean; auto_claim?: boolean; category?: string; code_only?: boolean; description?: string; ends_at?: Date | null; group_key?: string; group_title?: string; hidden?: boolean; icon_url?: string; key?: string; metadata?: Record<string, any>; objectives?: { event: string; params?: Record<string, any>; target?: number }[]; prerequisite_quest_key?: string; reset?: "never" | "daily" | "weekly" | "monthly" | "interval" | "repeat"; reset_interval_days?: number | null; rewards?: ({ amount?: number; code: string; type: "currency" | "item" })[]; sort_order?: number; starts_at?: Date | null; title?: string } }): Promise<{ data: AdminQuestResponse; response: any }>;
|
|
3730
|
+
/** Revoke or restore a redemption code (admin) */
|
|
3731
|
+
adminUpdateQuestCode(id: string, opts?: { adminUpdateQuestCodeRequest?: { status: "active" | "revoked" } }): Promise<AdminQuestCodeResponse>;
|
|
3732
|
+
adminUpdateQuestCodeWithHttpInfo(id: string, opts?: { adminUpdateQuestCodeRequest?: { status: "active" | "revoked" } }): Promise<{ data: AdminQuestCodeResponse; response: any }>;
|
|
3733
|
+
}
|
|
3734
|
+
|
|
3735
|
+
export class AdminReadyChecksApi {
|
|
3736
|
+
constructor(apiClient?: ApiClient);
|
|
3737
|
+
apiClient: ApiClient;
|
|
3738
|
+
/** Force-cancel a pending ready check (admin) */
|
|
3739
|
+
adminCancelReadyCheck(id: string): Promise<AdminReadyCheckResponse>;
|
|
3740
|
+
adminCancelReadyCheckWithHttpInfo(id: string): Promise<{ data: AdminReadyCheckResponse; response: any }>;
|
|
3741
|
+
/** List ready checks (admin) */
|
|
3742
|
+
adminListReadyChecks(opts?: { status?: "pending" | "passed" | "failed" | "cancelled"; kind?: "ready" | "accept"; lobbyId?: string; page?: number; pageSize?: number }): Promise<AdminReadyCheckPage>;
|
|
3743
|
+
adminListReadyChecksWithHttpInfo(opts?: { status?: "pending" | "passed" | "failed" | "cancelled"; kind?: "ready" | "accept"; lobbyId?: string; page?: number; pageSize?: number }): Promise<{ data: AdminReadyCheckPage; response: any }>;
|
|
3744
|
+
/** Ready check outcomes over the last 24 hours (admin) */
|
|
3745
|
+
adminReadyCheckStats(): Promise<ReadyCheckOutcomesResponse>;
|
|
3746
|
+
adminReadyCheckStatsWithHttpInfo(): Promise<{ data: ReadyCheckOutcomesResponse; response: any }>;
|
|
3747
|
+
}
|
|
3748
|
+
|
|
3749
|
+
export class AdminResultsApi {
|
|
3750
|
+
constructor(apiClient?: ApiClient);
|
|
3751
|
+
apiClient: ApiClient;
|
|
3752
|
+
/** Delete a result and its events (admin) */
|
|
3753
|
+
adminDeleteResult(id: string): Promise<OkResponse>;
|
|
3754
|
+
adminDeleteResultWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3755
|
+
/** Get a result (admin) */
|
|
3756
|
+
adminGetResult(id: string): Promise<PlayResultResponse>;
|
|
3757
|
+
adminGetResultWithHttpInfo(id: string): Promise<{ data: PlayResultResponse; response: any }>;
|
|
3758
|
+
/** List a result's events (admin) */
|
|
3759
|
+
adminListResultEvents(id: string, opts?: { after?: string; limit?: number }): Promise<PlayResultEventsResponse>;
|
|
3760
|
+
adminListResultEventsWithHttpInfo(id: string, opts?: { after?: string; limit?: number }): Promise<{ data: PlayResultEventsResponse; response: any }>;
|
|
3761
|
+
/** List results (admin) */
|
|
3762
|
+
adminListResults(opts?: { kind?: string; status?: "open" | "ended"; userId?: string; lobbyId?: string; page?: number; pageSize?: number }): Promise<PlayResultPage>;
|
|
3763
|
+
adminListResultsWithHttpInfo(opts?: { kind?: string; status?: "open" | "ended"; userId?: string; lobbyId?: string; page?: number; pageSize?: number }): Promise<{ data: PlayResultPage; response: any }>;
|
|
3764
|
+
}
|
|
3765
|
+
|
|
3766
|
+
export class AdminRetentionApi {
|
|
3767
|
+
constructor(apiClient?: ApiClient);
|
|
3768
|
+
apiClient: ApiClient;
|
|
3769
|
+
/** Last retention sweep (admin) */
|
|
3770
|
+
adminGetRetentionStatus(): Promise<RetentionStatusResponse>;
|
|
3771
|
+
adminGetRetentionStatusWithHttpInfo(): Promise<{ data: RetentionStatusResponse; response: any }>;
|
|
3772
|
+
/** Run a retention sweep now (admin) */
|
|
3773
|
+
adminRunRetention(): Promise<RetentionStatusResponse>;
|
|
3774
|
+
adminRunRetentionWithHttpInfo(): Promise<{ data: RetentionStatusResponse; response: any }>;
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
export class AdminSessionsApi {
|
|
3778
|
+
constructor(apiClient?: ApiClient);
|
|
3779
|
+
apiClient: ApiClient;
|
|
3780
|
+
/** Delete session token by id (admin) */
|
|
3781
|
+
adminDeleteSession(id: string): Promise<OkResponse>;
|
|
3782
|
+
adminDeleteSessionWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3783
|
+
/** Delete all session tokens for a user (admin) */
|
|
3784
|
+
adminDeleteUserSessions(id: string): Promise<OkResponse>;
|
|
3785
|
+
adminDeleteUserSessionsWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3786
|
+
/** List sessions (admin) */
|
|
3787
|
+
adminListSessions(opts?: { page?: number; pageSize?: number }): Promise<AdminSessionPage>;
|
|
3788
|
+
adminListSessionsWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: AdminSessionPage; response: any }>;
|
|
3789
|
+
}
|
|
3790
|
+
|
|
3791
|
+
export class AdminStorageApi {
|
|
3792
|
+
constructor(apiClient?: ApiClient);
|
|
3793
|
+
apiClient: ApiClient;
|
|
3794
|
+
/** Delete a stored object (admin) */
|
|
3795
|
+
adminDeleteStorageObject(key: string): Promise<OkResponse>;
|
|
3796
|
+
adminDeleteStorageObjectWithHttpInfo(key: string): Promise<{ data: OkResponse; response: any }>;
|
|
3797
|
+
/** Download an object by key (admin) */
|
|
3798
|
+
adminDownloadStorageObject(key: string): Promise<any>;
|
|
3799
|
+
adminDownloadStorageObjectWithHttpInfo(key: string): Promise<{ data: any; response: any }>;
|
|
3800
|
+
/** List stored objects with usage (admin) */
|
|
3801
|
+
adminListStorageObjects(opts?: { prefix?: string; page?: number; pageSize?: number }): Promise<StorageObjectPage>;
|
|
3802
|
+
adminListStorageObjectsWithHttpInfo(opts?: { prefix?: string; page?: number; pageSize?: number }): Promise<{ data: StorageObjectPage; response: any }>;
|
|
3803
|
+
/** Objects and bytes stored under a prefix (admin) */
|
|
3804
|
+
adminStorageUsage(opts?: { prefix?: string }): Promise<StorageUsageResponse>;
|
|
3805
|
+
adminStorageUsageWithHttpInfo(opts?: { prefix?: string }): Promise<{ data: StorageUsageResponse; response: any }>;
|
|
3806
|
+
/** Upload or overwrite an object at any key (admin) */
|
|
3807
|
+
adminUploadStorageObject(key: string, opts?: { body?: Blob }): Promise<StorageObjectResponse>;
|
|
3808
|
+
adminUploadStorageObjectWithHttpInfo(key: string, opts?: { body?: Blob }): Promise<{ data: StorageObjectResponse; response: any }>;
|
|
3809
|
+
}
|
|
3810
|
+
|
|
3811
|
+
export class AdminTournamentsApi {
|
|
3812
|
+
constructor(apiClient?: ApiClient);
|
|
3813
|
+
apiClient: ApiClient;
|
|
3814
|
+
/** Cancel tournament (admin; terminal, no recurrence spawn) */
|
|
3815
|
+
adminCancelTournament(id: string): Promise<AdminTournamentResponse>;
|
|
3816
|
+
adminCancelTournamentWithHttpInfo(id: string): Promise<{ data: AdminTournamentResponse; response: any }>;
|
|
3817
|
+
/** Create tournament (admin) */
|
|
3818
|
+
adminCreateTournament(opts?: { adminCreateTournamentRequest?: { bracket_size?: number; deadline_policy?: "forfeit_both" | "advance_first_slot" | "random"; description?: string; ends_at?: Date; icon_url?: string; max_entries?: number; metadata?: Record<string, any>; recur?: string; registration_opens_at?: Date; round_window_sec: number; slug: string; starts_at?: Date | null; team_size?: number; title: string } }): Promise<AdminTournamentResponse>;
|
|
3819
|
+
adminCreateTournamentWithHttpInfo(opts?: { adminCreateTournamentRequest?: { bracket_size?: number; deadline_policy?: "forfeit_both" | "advance_first_slot" | "random"; description?: string; ends_at?: Date; icon_url?: string; max_entries?: number; metadata?: Record<string, any>; recur?: string; registration_opens_at?: Date; round_window_sec: number; slug: string; starts_at?: Date | null; team_size?: number; title: string } }): Promise<{ data: AdminTournamentResponse; response: any }>;
|
|
3820
|
+
/** Delete tournament and all its entries/matches (admin) */
|
|
3821
|
+
adminDeleteTournament(id: string): Promise<OkResponse>;
|
|
3822
|
+
adminDeleteTournamentWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3823
|
+
/** Draw the bracket now (admin; pulls starts_at to now) */
|
|
3824
|
+
adminDrawTournament(id: string): Promise<AdminTournamentResponse>;
|
|
3825
|
+
adminDrawTournamentWithHttpInfo(id: string): Promise<{ data: AdminTournamentResponse; response: any }>;
|
|
3826
|
+
/** Finish tournament now (admin; pulls ends_at to now) */
|
|
3827
|
+
adminFinishTournament(id: string): Promise<AdminTournamentResponse>;
|
|
3828
|
+
adminFinishTournamentWithHttpInfo(id: string): Promise<{ data: AdminTournamentResponse; response: any }>;
|
|
3829
|
+
/** Reopen a cancelled tournament (admin) */
|
|
3830
|
+
adminReopenTournament(id: string): Promise<AdminTournamentResponse>;
|
|
3831
|
+
adminReopenTournamentWithHttpInfo(id: string): Promise<{ data: AdminTournamentResponse; response: any }>;
|
|
3832
|
+
/** Force a match verdict (admin) */
|
|
3833
|
+
adminResolveTournamentMatch(id: string, matchId: string, opts?: { adminResolveTournamentMatchRequest?: { winner_entry_id?: string | null } }): Promise<TournamentMatchResponse>;
|
|
3834
|
+
adminResolveTournamentMatchWithHttpInfo(id: string, matchId: string, opts?: { adminResolveTournamentMatchRequest?: { winner_entry_id?: string | null } }): Promise<{ data: TournamentMatchResponse; response: any }>;
|
|
3835
|
+
/** Confirm an uploaded tournament icon (admin) */
|
|
3836
|
+
adminSetTournamentIcon(id: string, opts?: { adminSetTournamentIconRequest?: { key: string } }): Promise<AdminTournamentResponse>;
|
|
3837
|
+
adminSetTournamentIconWithHttpInfo(id: string, opts?: { adminSetTournamentIconRequest?: { key: string } }): Promise<{ data: AdminTournamentResponse; response: any }>;
|
|
3838
|
+
/** Request an upload ticket for a tournament icon (admin) */
|
|
3839
|
+
adminTournamentIconUploadUrl(id: string, opts?: { adminTournamentIconUploadUrlRequest?: { content_type: string } }): Promise<UploadTicketResponse>;
|
|
3840
|
+
adminTournamentIconUploadUrlWithHttpInfo(id: string, opts?: { adminTournamentIconUploadUrlRequest?: { content_type: string } }): Promise<{ data: UploadTicketResponse; response: any }>;
|
|
3841
|
+
/** Update tournament (admin) */
|
|
3842
|
+
adminUpdateTournament(id: string, opts?: { adminUpdateTournamentRequest?: { bracket_size?: number; deadline_policy?: "forfeit_both" | "advance_first_slot" | "random"; description?: string; ends_at?: Date; icon_url?: string; max_entries?: number; metadata?: Record<string, any>; recur?: string; registration_opens_at?: Date; round_window_sec: number; slug: string; starts_at?: Date | null; team_size?: number; title: string } }): Promise<AdminTournamentResponse>;
|
|
3843
|
+
adminUpdateTournamentWithHttpInfo(id: string, opts?: { adminUpdateTournamentRequest?: { bracket_size?: number; deadline_policy?: "forfeit_both" | "advance_first_slot" | "random"; description?: string; ends_at?: Date; icon_url?: string; max_entries?: number; metadata?: Record<string, any>; recur?: string; registration_opens_at?: Date; round_window_sec: number; slug: string; starts_at?: Date | null; team_size?: number; title: string } }): Promise<{ data: AdminTournamentResponse; response: any }>;
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3846
|
+
export class AdminUsersApi {
|
|
3847
|
+
constructor(apiClient?: ApiClient);
|
|
3848
|
+
apiClient: ApiClient;
|
|
3849
|
+
/** Delete user (admin) */
|
|
3850
|
+
adminDeleteUser(id: string): Promise<OkResponse>;
|
|
3851
|
+
adminDeleteUserWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3852
|
+
/** Update user (admin) */
|
|
3853
|
+
adminUpdateUser(id: string, opts?: { adminUpdateUserRequest?: { display_name?: string; is_activated?: boolean; is_admin?: boolean; metadata?: Record<string, any> } }): Promise<AdminUserResponse>;
|
|
3854
|
+
adminUpdateUserWithHttpInfo(id: string, opts?: { adminUpdateUserRequest?: { display_name?: string; is_activated?: boolean; is_admin?: boolean; metadata?: Record<string, any> } }): Promise<{ data: AdminUserResponse; response: any }>;
|
|
3855
|
+
}
|
|
3856
|
+
|
|
3857
|
+
export class AuthenticationApi {
|
|
3858
|
+
constructor(apiClient?: ApiClient);
|
|
3859
|
+
apiClient: ApiClient;
|
|
3860
|
+
/** Confirm a registration with its code */
|
|
3861
|
+
confirmRegistration(opts?: { confirmRegistrationRequest?: { code: string; email: string; password: string } }): Promise<SessionResponse>;
|
|
3862
|
+
confirmRegistrationWithHttpInfo(opts?: { confirmRegistrationRequest?: { code: string; email: string; password: string } }): Promise<{ data: SessionResponse; response: any }>;
|
|
3863
|
+
/** Device login */
|
|
3864
|
+
deviceLogin(opts?: { deviceLoginRequest?: { device_id: string } }): Promise<SessionResponse>;
|
|
3865
|
+
deviceLoginWithHttpInfo(opts?: { deviceLoginRequest?: { device_id: string } }): Promise<{ data: SessionResponse; response: any }>;
|
|
3866
|
+
/** Link Apple (native iOS) */
|
|
3867
|
+
linkAppleIos(opts?: { linkAppleIosRequest?: { code: string; family_name?: string; given_name?: string } }): Promise<CurrentUserResponse>;
|
|
3868
|
+
linkAppleIosWithHttpInfo(opts?: { linkAppleIosRequest?: { code: string; family_name?: string; given_name?: string } }): Promise<{ data: CurrentUserResponse; response: any }>;
|
|
3869
|
+
/** Link device ID */
|
|
3870
|
+
linkDevice(opts?: { linkDeviceRequest?: { device_id: string } }): Promise<CurrentUserResponse>;
|
|
3871
|
+
linkDeviceWithHttpInfo(opts?: { linkDeviceRequest?: { device_id: string } }): Promise<{ data: CurrentUserResponse; response: any }>;
|
|
3872
|
+
/** Link Google with an ID token */
|
|
3873
|
+
linkGoogleIdToken(opts?: { linkGoogleIdTokenRequest?: { id_token: string } }): Promise<CurrentUserResponse>;
|
|
3874
|
+
linkGoogleIdTokenWithHttpInfo(opts?: { linkGoogleIdTokenRequest?: { id_token: string } }): Promise<{ data: CurrentUserResponse; response: any }>;
|
|
3875
|
+
/** Link a provider with a code */
|
|
3876
|
+
linkProvider(provider: "discord" | "apple" | "google" | "facebook" | "github" | "steam", opts?: { linkProviderRequest?: { code: string } }): Promise<CurrentUserResponse>;
|
|
3877
|
+
linkProviderWithHttpInfo(provider: "discord" | "apple" | "google" | "facebook" | "github" | "steam", opts?: { linkProviderRequest?: { code: string } }): Promise<{ data: CurrentUserResponse; response: any }>;
|
|
3878
|
+
/** Start linking a provider */
|
|
3879
|
+
linkProviderRequest(provider: "discord" | "apple" | "google" | "facebook" | "github" | "steam"): Promise<OAuthAuthorizationResponse>;
|
|
3880
|
+
linkProviderRequestWithHttpInfo(provider: "discord" | "apple" | "google" | "facebook" | "github" | "steam"): Promise<{ data: OAuthAuthorizationResponse; response: any }>;
|
|
3881
|
+
/** Poll a provider link */
|
|
3882
|
+
linkSessionStatus(sessionId: string): Promise<ProviderLinkStatusResponse>;
|
|
3883
|
+
linkSessionStatusWithHttpInfo(sessionId: string): Promise<{ data: ProviderLinkStatusResponse; response: any }>;
|
|
3884
|
+
/** List sign-in providers */
|
|
3885
|
+
listAuthProviders(): Promise<AuthProvidersResponse>;
|
|
3886
|
+
listAuthProvidersWithHttpInfo(): Promise<{ data: AuthProvidersResponse; response: any }>;
|
|
3887
|
+
/** Login */
|
|
3888
|
+
login(opts?: { loginRequest?: { email: string; password: string } }): Promise<SessionResponse>;
|
|
3889
|
+
loginWithHttpInfo(opts?: { loginRequest?: { email: string; password: string } }): Promise<{ data: SessionResponse; response: any }>;
|
|
3890
|
+
/** Logout */
|
|
3891
|
+
logout(): Promise<OkResponse>;
|
|
3892
|
+
logoutWithHttpInfo(): Promise<{ data: OkResponse; response: any }>;
|
|
3893
|
+
/** Sign in with a provider code */
|
|
3894
|
+
oauthApiCallback(provider: "discord" | "apple" | "google" | "facebook" | "github" | "steam", opts?: { oauthApiCallbackRequest?: { code: string } }): Promise<SessionResponse>;
|
|
3895
|
+
oauthApiCallbackWithHttpInfo(provider: "discord" | "apple" | "google" | "facebook" | "github" | "steam", opts?: { oauthApiCallbackRequest?: { code: string } }): Promise<{ data: SessionResponse; response: any }>;
|
|
3896
|
+
/** Sign in with Apple (native iOS) */
|
|
3897
|
+
oauthCallbackApiAppleIos(opts?: { oauthCallbackApiAppleIosRequest?: { code: string; family_name?: string; given_name?: string } }): Promise<SessionResponse>;
|
|
3898
|
+
oauthCallbackApiAppleIosWithHttpInfo(opts?: { oauthCallbackApiAppleIosRequest?: { code: string; family_name?: string; given_name?: string } }): Promise<{ data: SessionResponse; response: any }>;
|
|
3899
|
+
/** Sign in with a Google ID token */
|
|
3900
|
+
oauthGoogleIdToken(opts?: { oauthGoogleIdTokenRequest?: { id_token: string } }): Promise<SessionResponse>;
|
|
3901
|
+
oauthGoogleIdTokenWithHttpInfo(opts?: { oauthGoogleIdTokenRequest?: { id_token: string } }): Promise<{ data: SessionResponse; response: any }>;
|
|
3902
|
+
/** Start a provider sign-in */
|
|
3903
|
+
oauthRequest(provider: "discord" | "apple" | "google" | "facebook" | "github" | "steam"): Promise<OAuthAuthorizationResponse>;
|
|
3904
|
+
oauthRequestWithHttpInfo(provider: "discord" | "apple" | "google" | "facebook" | "github" | "steam"): Promise<{ data: OAuthAuthorizationResponse; response: any }>;
|
|
3905
|
+
/** Poll a provider sign-in */
|
|
3906
|
+
oauthSessionStatus(sessionId: string): Promise<OAuthSessionStatusResponse>;
|
|
3907
|
+
oauthSessionStatusWithHttpInfo(sessionId: string): Promise<{ data: OAuthSessionStatusResponse; response: any }>;
|
|
3908
|
+
/** Refresh access token */
|
|
3909
|
+
refreshToken(opts?: { refreshTokenRequest?: { refresh_token: string } }): Promise<SessionResponse>;
|
|
3910
|
+
refreshTokenWithHttpInfo(opts?: { refreshTokenRequest?: { refresh_token: string } }): Promise<{ data: SessionResponse; response: any }>;
|
|
3911
|
+
/** Register */
|
|
3912
|
+
register(opts?: { registerRequest?: { captcha_token?: string; email: string; username?: string } }): Promise<RegistrationResponse>;
|
|
3913
|
+
registerWithHttpInfo(opts?: { registerRequest?: { captcha_token?: string; email: string; username?: string } }): Promise<{ data: RegistrationResponse; response: any }>;
|
|
3914
|
+
/** Send the confirmation email again */
|
|
3915
|
+
resendConfirmation(opts?: { resendConfirmationRequest?: { email: string } }): Promise<OkResponse>;
|
|
3916
|
+
resendConfirmationWithHttpInfo(opts?: { resendConfirmationRequest?: { email: string } }): Promise<{ data: OkResponse; response: any }>;
|
|
3917
|
+
/** Unlink device ID */
|
|
3918
|
+
unlinkDevice(): Promise<CurrentUserResponse>;
|
|
3919
|
+
unlinkDeviceWithHttpInfo(): Promise<{ data: CurrentUserResponse; response: any }>;
|
|
3920
|
+
/** Unlink OAuth provider */
|
|
3921
|
+
unlinkProvider(provider: "discord" | "apple" | "google" | "facebook" | "github" | "steam"): Promise<CurrentUserResponse>;
|
|
3922
|
+
unlinkProviderWithHttpInfo(provider: "discord" | "apple" | "google" | "facebook" | "github" | "steam"): Promise<{ data: CurrentUserResponse; response: any }>;
|
|
3923
|
+
}
|
|
3924
|
+
|
|
3925
|
+
export class ChatApi {
|
|
3926
|
+
constructor(apiClient?: ApiClient);
|
|
3927
|
+
apiClient: ApiClient;
|
|
3928
|
+
/** Get unread message count */
|
|
3929
|
+
chatUnreadCount(chatType: "lobby" | "group" | "friend" | "party", chatRefId: string): Promise<ChatUnreadResponse>;
|
|
3930
|
+
chatUnreadCountWithHttpInfo(chatType: "lobby" | "group" | "friend" | "party", chatRefId: string): Promise<{ data: ChatUnreadResponse; response: any }>;
|
|
3931
|
+
/** Delete your own chat message */
|
|
3932
|
+
deleteChatMessage(id: string): Promise<OkResponse>;
|
|
3933
|
+
deleteChatMessageWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
3934
|
+
/** Get a single chat message */
|
|
3935
|
+
getChatMessage(id: string): Promise<ChatMessageResponse>;
|
|
3936
|
+
getChatMessageWithHttpInfo(id: string): Promise<{ data: ChatMessageResponse; response: any }>;
|
|
3937
|
+
/** List chat messages */
|
|
3938
|
+
listChatMessages(chatType: "lobby" | "group" | "friend" | "party", chatRefId: string, opts?: { page?: number; pageSize?: number }): Promise<ChatMessagePage>;
|
|
3939
|
+
listChatMessagesWithHttpInfo(chatType: "lobby" | "group" | "friend" | "party", chatRefId: string, opts?: { page?: number; pageSize?: number }): Promise<{ data: ChatMessagePage; response: any }>;
|
|
3940
|
+
/** List active mutes in a group */
|
|
3941
|
+
listGroupMutes(id: string, opts?: { page?: number; pageSize?: number }): Promise<ChatMuteRecordPage>;
|
|
3942
|
+
listGroupMutesWithHttpInfo(id: string, opts?: { page?: number; pageSize?: number }): Promise<{ data: ChatMuteRecordPage; response: any }>;
|
|
3943
|
+
/** List active mutes in your lobby */
|
|
3944
|
+
listLobbyMutes(opts?: { page?: number; pageSize?: number }): Promise<ChatMuteRecordPage>;
|
|
3945
|
+
listLobbyMutesWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: ChatMuteRecordPage; response: any }>;
|
|
3946
|
+
/** List active mutes in your party */
|
|
3947
|
+
listPartyMutes(opts?: { page?: number; pageSize?: number }): Promise<ChatMuteRecordPage>;
|
|
3948
|
+
listPartyMutesWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: ChatMuteRecordPage; response: any }>;
|
|
3949
|
+
/** Mark chat as read */
|
|
3950
|
+
markChatRead(opts?: { markChatReadRequest?: { chat_ref_id: string; chat_type: "lobby" | "group" | "friend" | "party"; message_id: string } }): Promise<ChatReadCursorResponse>;
|
|
3951
|
+
markChatReadWithHttpInfo(opts?: { markChatReadRequest?: { chat_ref_id: string; chat_type: "lobby" | "group" | "friend" | "party"; message_id: string } }): Promise<{ data: ChatReadCursorResponse; response: any }>;
|
|
3952
|
+
/** Mute a player in a group */
|
|
3953
|
+
muteGroupMember(id: string, opts?: { muteGroupMemberRequest?: { expires_at?: Date | null; reason?: string; target_user_id: string } }): Promise<ChatMuteRecordResponse>;
|
|
3954
|
+
muteGroupMemberWithHttpInfo(id: string, opts?: { muteGroupMemberRequest?: { expires_at?: Date | null; reason?: string; target_user_id: string } }): Promise<{ data: ChatMuteRecordResponse; response: any }>;
|
|
3955
|
+
/** Mute a player in your lobby */
|
|
3956
|
+
muteLobbyMember(opts?: { muteLobbyMemberRequest?: { expires_at?: Date | null; reason?: string; target_user_id: string } }): Promise<ChatMuteRecordResponse>;
|
|
3957
|
+
muteLobbyMemberWithHttpInfo(opts?: { muteLobbyMemberRequest?: { expires_at?: Date | null; reason?: string; target_user_id: string } }): Promise<{ data: ChatMuteRecordResponse; response: any }>;
|
|
3958
|
+
/** Mute a player in your party */
|
|
3959
|
+
mutePartyMember(opts?: { mutePartyMemberRequest?: { expires_at?: Date | null; reason?: string; target_user_id: string } }): Promise<ChatMuteRecordResponse>;
|
|
3960
|
+
mutePartyMemberWithHttpInfo(opts?: { mutePartyMemberRequest?: { expires_at?: Date | null; reason?: string; target_user_id: string } }): Promise<{ data: ChatMuteRecordResponse; response: any }>;
|
|
3961
|
+
/** Report a chat message */
|
|
3962
|
+
reportChatMessage(id: string, opts?: { reportChatMessageRequest?: { reason?: string } }): Promise<OkResponse>;
|
|
3963
|
+
reportChatMessageWithHttpInfo(id: string, opts?: { reportChatMessageRequest?: { reason?: string } }): Promise<{ data: OkResponse; response: any }>;
|
|
3964
|
+
/** Send a chat message */
|
|
3965
|
+
sendChatMessage(opts?: { sendChatMessageRequest?: { chat_ref_id: string; chat_type: "lobby" | "group" | "friend" | "party"; content: string; metadata?: Record<string, any> } }): Promise<ChatMessageResponse>;
|
|
3966
|
+
sendChatMessageWithHttpInfo(opts?: { sendChatMessageRequest?: { chat_ref_id: string; chat_type: "lobby" | "group" | "friend" | "party"; content: string; metadata?: Record<string, any> } }): Promise<{ data: ChatMessageResponse; response: any }>;
|
|
3967
|
+
/** Lift a mute in a group */
|
|
3968
|
+
unmuteGroupMember(id: string, opts?: { unmuteGroupMemberRequest?: { target_user_id: string } }): Promise<DeletedCountResponse>;
|
|
3969
|
+
unmuteGroupMemberWithHttpInfo(id: string, opts?: { unmuteGroupMemberRequest?: { target_user_id: string } }): Promise<{ data: DeletedCountResponse; response: any }>;
|
|
3970
|
+
/** Lift a mute in your lobby */
|
|
3971
|
+
unmuteLobbyMember(opts?: { unmuteLobbyMemberRequest?: { target_user_id: string } }): Promise<DeletedCountResponse>;
|
|
3972
|
+
unmuteLobbyMemberWithHttpInfo(opts?: { unmuteLobbyMemberRequest?: { target_user_id: string } }): Promise<{ data: DeletedCountResponse; response: any }>;
|
|
3973
|
+
/** Lift a mute in your party */
|
|
3974
|
+
unmutePartyMember(opts?: { unmutePartyMemberRequest?: { target_user_id: string } }): Promise<DeletedCountResponse>;
|
|
3975
|
+
unmutePartyMemberWithHttpInfo(opts?: { unmutePartyMemberRequest?: { target_user_id: string } }): Promise<{ data: DeletedCountResponse; response: any }>;
|
|
3976
|
+
/** Update your own chat message */
|
|
3977
|
+
updateChatMessage(id: string, opts?: { updateChatMessageRequest?: { content?: string; metadata?: Record<string, any> } }): Promise<ChatMessageResponse>;
|
|
3978
|
+
updateChatMessageWithHttpInfo(id: string, opts?: { updateChatMessageRequest?: { content?: string; metadata?: Record<string, any> } }): Promise<{ data: ChatMessageResponse; response: any }>;
|
|
3979
|
+
}
|
|
3980
|
+
|
|
3981
|
+
export class ClientLogsApi {
|
|
3982
|
+
constructor(apiClient?: ApiClient);
|
|
3983
|
+
apiClient: ApiClient;
|
|
3984
|
+
/** Client log capture policy */
|
|
3985
|
+
getClientLogPolicy(): Promise<ClientLogPolicyResponse>;
|
|
3986
|
+
getClientLogPolicyWithHttpInfo(): Promise<{ data: ClientLogPolicyResponse; response: any }>;
|
|
3987
|
+
/** Upload a batch of client log entries */
|
|
3988
|
+
uploadClientLogs(opts?: { clientLogBatch?: ClientLogBatch }): Promise<ClientLogResultResponse>;
|
|
3989
|
+
uploadClientLogsWithHttpInfo(opts?: { clientLogBatch?: ClientLogBatch }): Promise<{ data: ClientLogResultResponse; response: any }>;
|
|
3990
|
+
}
|
|
3991
|
+
|
|
3992
|
+
export class EconomyApi {
|
|
3993
|
+
constructor(apiClient?: ApiClient);
|
|
3994
|
+
apiClient: ApiClient;
|
|
3995
|
+
/** Current user's item quantities */
|
|
3996
|
+
getCurrentUserInventory(): Promise<InventoryResponse>;
|
|
3997
|
+
getCurrentUserInventoryWithHttpInfo(): Promise<{ data: InventoryResponse; response: any }>;
|
|
3998
|
+
/** Current user's currency balances */
|
|
3999
|
+
getCurrentUserWallet(): Promise<WalletBalancesResponse>;
|
|
4000
|
+
getCurrentUserWalletWithHttpInfo(): Promise<{ data: WalletBalancesResponse; response: any }>;
|
|
4001
|
+
/** Current user's ledger history */
|
|
4002
|
+
listCurrentUserLedger(opts?: { currency?: string; page?: number; pageSize?: number }): Promise<LedgerEntryPage>;
|
|
4003
|
+
listCurrentUserLedgerWithHttpInfo(opts?: { currency?: string; page?: number; pageSize?: number }): Promise<{ data: LedgerEntryPage; response: any }>;
|
|
4004
|
+
}
|
|
4005
|
+
|
|
4006
|
+
export class FriendsApi {
|
|
4007
|
+
constructor(apiClient?: ApiClient);
|
|
4008
|
+
apiClient: ApiClient;
|
|
4009
|
+
/** Accept a friend request */
|
|
4010
|
+
acceptFriendRequest(id: string): Promise<OkResponse>;
|
|
4011
|
+
acceptFriendRequestWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
4012
|
+
/** Block a friend request / user */
|
|
4013
|
+
blockFriendRequest(id: string): Promise<OkResponse>;
|
|
4014
|
+
blockFriendRequestWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
4015
|
+
/** Blacklist a user, with or without an existing friendship */
|
|
4016
|
+
blockUser(userId: string): Promise<OkResponse>;
|
|
4017
|
+
blockUserWithHttpInfo(userId: string): Promise<{ data: OkResponse; response: any }>;
|
|
4018
|
+
/** Send a friend request */
|
|
4019
|
+
createFriendRequest(opts?: { createFriendRequestRequest?: { target_user_id: string } }): Promise<FriendRequestResponse>;
|
|
4020
|
+
createFriendRequestWithHttpInfo(opts?: { createFriendRequestRequest?: { target_user_id: string } }): Promise<{ data: FriendRequestResponse; response: any }>;
|
|
4021
|
+
/** List the users you've blocked */
|
|
4022
|
+
listBlacklistedUsers(opts?: { page?: number; pageSize?: number }): Promise<UserBriefPage>;
|
|
4023
|
+
listBlacklistedUsersWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: UserBriefPage; response: any }>;
|
|
4024
|
+
/** List users you've blocked */
|
|
4025
|
+
listBlockedFriends(opts?: { page?: number; pageSize?: number }): Promise<BlockedFriendshipPage>;
|
|
4026
|
+
listBlockedFriendsWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: BlockedFriendshipPage; response: any }>;
|
|
4027
|
+
/** List pending friend requests (incoming and outgoing) */
|
|
4028
|
+
listFriendRequests(opts?: { page?: number; pageSize?: number }): Promise<FriendRequestsResponse>;
|
|
4029
|
+
listFriendRequestsWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: FriendRequestsResponse; response: any }>;
|
|
4030
|
+
/** List current user's friends (returns a paginated set of user objects) */
|
|
4031
|
+
listFriends(opts?: { page?: number; pageSize?: number }): Promise<FriendPage>;
|
|
4032
|
+
listFriendsWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: FriendPage; response: any }>;
|
|
4033
|
+
/** Reject a friend request */
|
|
4034
|
+
rejectFriendRequest(id: string): Promise<OkResponse>;
|
|
4035
|
+
rejectFriendRequestWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
4036
|
+
/** Remove/cancel a friendship or request */
|
|
4037
|
+
removeFriendship(id: string): Promise<OkResponse>;
|
|
4038
|
+
removeFriendshipWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
4039
|
+
/** Unblock a previously-blocked friendship */
|
|
4040
|
+
unblockFriend(id: string): Promise<OkResponse>;
|
|
4041
|
+
unblockFriendWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
4042
|
+
/** Remove a user from your blacklist */
|
|
4043
|
+
unblockUser(userId: string): Promise<OkResponse>;
|
|
4044
|
+
unblockUserWithHttpInfo(userId: string): Promise<{ data: OkResponse; response: any }>;
|
|
4045
|
+
}
|
|
4046
|
+
|
|
4047
|
+
export class GroupsApi {
|
|
4048
|
+
constructor(apiClient?: ApiClient);
|
|
4049
|
+
apiClient: ApiClient;
|
|
4050
|
+
/** Accept a group invitation */
|
|
4051
|
+
acceptGroupInvite(inviteId: string): Promise<GroupMemberResponse>;
|
|
4052
|
+
acceptGroupInviteWithHttpInfo(inviteId: string): Promise<{ data: GroupMemberResponse; response: any }>;
|
|
4053
|
+
/** Approve a join request (admin only) */
|
|
4054
|
+
approveJoinRequest(id: string, requestId: string): Promise<GroupMemberResponse>;
|
|
4055
|
+
approveJoinRequestWithHttpInfo(id: string, requestId: string): Promise<{ data: GroupMemberResponse; response: any }>;
|
|
4056
|
+
/** Cancel a pending group invitation */
|
|
4057
|
+
cancelGroupInvite(inviteId: string): Promise<OkResponse>;
|
|
4058
|
+
cancelGroupInviteWithHttpInfo(inviteId: string): Promise<{ data: OkResponse; response: any }>;
|
|
4059
|
+
/** Cancel your own pending join request */
|
|
4060
|
+
cancelJoinRequest(id: string, requestId: string): Promise<GroupJoinRequestResponse>;
|
|
4061
|
+
cancelJoinRequestWithHttpInfo(id: string, requestId: string): Promise<{ data: GroupJoinRequestResponse; response: any }>;
|
|
4062
|
+
/** Create a group */
|
|
4063
|
+
createGroup(opts?: { createGroupRequest?: { description?: string; icon_url?: string; max_members?: number; metadata?: Record<string, any>; slowdown?: number; slug?: string; title: string; type?: "public" | "private" | "hidden" } }): Promise<GroupResponse>;
|
|
4064
|
+
createGroupWithHttpInfo(opts?: { createGroupRequest?: { description?: string; icon_url?: string; max_members?: number; metadata?: Record<string, any>; slowdown?: number; slug?: string; title: string; type?: "public" | "private" | "hidden" } }): Promise<{ data: GroupResponse; response: any }>;
|
|
4065
|
+
/** Request a group icon upload ticket (admin only) */
|
|
4066
|
+
createGroupIconUploadUrl(id: string, opts?: { createGroupIconUploadUrlRequest?: { content_type: string } }): Promise<UploadTicketResponse>;
|
|
4067
|
+
createGroupIconUploadUrlWithHttpInfo(id: string, opts?: { createGroupIconUploadUrlRequest?: { content_type: string } }): Promise<{ data: UploadTicketResponse; response: any }>;
|
|
4068
|
+
/** Make a group's invite link (admin only) */
|
|
4069
|
+
createGroupInviteLink(id: string): Promise<GroupInviteLinkResponse>;
|
|
4070
|
+
createGroupInviteLinkWithHttpInfo(id: string): Promise<{ data: GroupInviteLinkResponse; response: any }>;
|
|
4071
|
+
/** Decline a group invitation */
|
|
4072
|
+
declineGroupInvite(inviteId: string): Promise<OkResponse>;
|
|
4073
|
+
declineGroupInviteWithHttpInfo(inviteId: string): Promise<{ data: OkResponse; response: any }>;
|
|
4074
|
+
/** Delete a group (admin only) */
|
|
4075
|
+
deleteGroup(id: string): Promise<OkResponse>;
|
|
4076
|
+
deleteGroupWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
4077
|
+
/** Turn a group's invite link off (admin only) */
|
|
4078
|
+
deleteGroupInviteLink(id: string): Promise<OkResponse>;
|
|
4079
|
+
deleteGroupInviteLinkWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
4080
|
+
/** Demote admin to member */
|
|
4081
|
+
demoteGroupMember(id: string, opts?: { demoteGroupMemberRequest?: { target_user_id: string } }): Promise<GroupMemberResponse>;
|
|
4082
|
+
demoteGroupMemberWithHttpInfo(id: string, opts?: { demoteGroupMemberRequest?: { target_user_id: string } }): Promise<{ data: GroupMemberResponse; response: any }>;
|
|
4083
|
+
/** Get group details */
|
|
4084
|
+
getGroup(id: string): Promise<GroupResponse>;
|
|
4085
|
+
getGroupWithHttpInfo(id: string): Promise<{ data: GroupResponse; response: any }>;
|
|
4086
|
+
/** Get a group's invite link (admin only) */
|
|
4087
|
+
getGroupInviteLink(id: string): Promise<GroupInviteLinkResponse>;
|
|
4088
|
+
getGroupInviteLinkWithHttpInfo(id: string): Promise<{ data: GroupInviteLinkResponse; response: any }>;
|
|
4089
|
+
/** Invite a user to a group (admin only) */
|
|
4090
|
+
inviteToGroup(id: string, opts?: { inviteToGroupRequest?: { target_user_id: string } }): Promise<GroupInviteOutcomeResponse>;
|
|
4091
|
+
inviteToGroupWithHttpInfo(id: string, opts?: { inviteToGroupRequest?: { target_user_id: string } }): Promise<{ data: GroupInviteOutcomeResponse; response: any }>;
|
|
4092
|
+
/** Join a group */
|
|
4093
|
+
joinGroup(id: string): Promise<GroupMemberResponse>;
|
|
4094
|
+
joinGroupWithHttpInfo(id: string): Promise<{ data: GroupMemberResponse; response: any }>;
|
|
4095
|
+
/** Join a group through its invite link */
|
|
4096
|
+
joinGroupByInviteLink(token: string): Promise<GroupMemberResponse>;
|
|
4097
|
+
joinGroupByInviteLinkWithHttpInfo(token: string): Promise<{ data: GroupMemberResponse; response: any }>;
|
|
4098
|
+
/** Kick a member (admin only) */
|
|
4099
|
+
kickGroupMember(id: string, opts?: { kickGroupMemberRequest?: { target_user_id: string } }): Promise<OkResponse>;
|
|
4100
|
+
kickGroupMemberWithHttpInfo(id: string, opts?: { kickGroupMemberRequest?: { target_user_id: string } }): Promise<{ data: OkResponse; response: any }>;
|
|
4101
|
+
/** Leave a group */
|
|
4102
|
+
leaveGroup(id: string): Promise<OkResponse>;
|
|
4103
|
+
leaveGroupWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
4104
|
+
/** List my group invitations */
|
|
4105
|
+
listGroupInvitations(opts?: { page?: number; pageSize?: number }): Promise<GroupInvitePage>;
|
|
4106
|
+
listGroupInvitationsWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: GroupInvitePage; response: any }>;
|
|
4107
|
+
/** List a group's pending invitations (admin only) */
|
|
4108
|
+
listGroupInvites(id: string, opts?: { page?: number; pageSize?: number }): Promise<GroupInvitePage>;
|
|
4109
|
+
listGroupInvitesWithHttpInfo(id: string, opts?: { page?: number; pageSize?: number }): Promise<{ data: GroupInvitePage; response: any }>;
|
|
4110
|
+
/** List group members */
|
|
4111
|
+
listGroupMembers(id: string, opts?: { page?: number; pageSize?: number }): Promise<GroupMemberPage>;
|
|
4112
|
+
listGroupMembersWithHttpInfo(id: string, opts?: { page?: number; pageSize?: number }): Promise<{ data: GroupMemberPage; response: any }>;
|
|
4113
|
+
/** List groups */
|
|
4114
|
+
listGroups(opts?: { title?: string; type?: "public" | "private"; minMembers?: number; maxMembers?: number; metadataKey?: string; metadataValue?: string; page?: number; pageSize?: number }): Promise<GroupPage>;
|
|
4115
|
+
listGroupsWithHttpInfo(opts?: { title?: string; type?: "public" | "private"; minMembers?: number; maxMembers?: number; metadataKey?: string; metadataValue?: string; page?: number; pageSize?: number }): Promise<{ data: GroupPage; response: any }>;
|
|
4116
|
+
/** List pending join requests (admin only) */
|
|
4117
|
+
listJoinRequests(id: string, opts?: { page?: number; pageSize?: number }): Promise<GroupJoinRequestPage>;
|
|
4118
|
+
listJoinRequestsWithHttpInfo(id: string, opts?: { page?: number; pageSize?: number }): Promise<{ data: GroupJoinRequestPage; response: any }>;
|
|
4119
|
+
/** List groups I belong to */
|
|
4120
|
+
listMyGroups(opts?: { page?: number; pageSize?: number }): Promise<GroupPage>;
|
|
4121
|
+
listMyGroupsWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: GroupPage; response: any }>;
|
|
4122
|
+
/** List group invitations I have sent */
|
|
4123
|
+
listSentInvitations(opts?: { page?: number; pageSize?: number }): Promise<GroupInvitePage>;
|
|
4124
|
+
listSentInvitationsWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: GroupInvitePage; response: any }>;
|
|
4125
|
+
/** See the group an invite link opens */
|
|
4126
|
+
previewGroupInviteLink(token: string): Promise<GroupInviteLinkPreviewResponse>;
|
|
4127
|
+
previewGroupInviteLinkWithHttpInfo(token: string): Promise<{ data: GroupInviteLinkPreviewResponse; response: any }>;
|
|
4128
|
+
/** Promote member to admin */
|
|
4129
|
+
promoteGroupMember(id: string, opts?: { promoteGroupMemberRequest?: { target_user_id: string } }): Promise<GroupMemberResponse>;
|
|
4130
|
+
promoteGroupMemberWithHttpInfo(id: string, opts?: { promoteGroupMemberRequest?: { target_user_id: string } }): Promise<{ data: GroupMemberResponse; response: any }>;
|
|
4131
|
+
/** Reject a join request (admin only) */
|
|
4132
|
+
rejectJoinRequest(id: string, requestId: string): Promise<GroupJoinRequestResponse>;
|
|
4133
|
+
rejectJoinRequestWithHttpInfo(id: string, requestId: string): Promise<{ data: GroupJoinRequestResponse; response: any }>;
|
|
4134
|
+
/** Confirm an uploaded group icon (admin only) */
|
|
4135
|
+
setGroupIcon(id: string, opts?: { setGroupIconRequest?: { key: string } }): Promise<GroupResponse>;
|
|
4136
|
+
setGroupIconWithHttpInfo(id: string, opts?: { setGroupIconRequest?: { key: string } }): Promise<{ data: GroupResponse; response: any }>;
|
|
4137
|
+
/** Update a group (admin only) */
|
|
4138
|
+
updateGroup(id: string, opts?: { updateGroupRequest?: { description?: string; icon_url?: string; max_members?: number; metadata?: Record<string, any>; slowdown?: number; slug?: string; title?: string; type?: "public" | "private" | "hidden" } }): Promise<GroupResponse>;
|
|
4139
|
+
updateGroupWithHttpInfo(id: string, opts?: { updateGroupRequest?: { description?: string; icon_url?: string; max_members?: number; metadata?: Record<string, any>; slowdown?: number; slug?: string; title?: string; type?: "public" | "private" | "hidden" } }): Promise<{ data: GroupResponse; response: any }>;
|
|
4140
|
+
}
|
|
4141
|
+
|
|
4142
|
+
export class HealthApi {
|
|
4143
|
+
constructor(apiClient?: ApiClient);
|
|
4144
|
+
apiClient: ApiClient;
|
|
4145
|
+
/** Health check */
|
|
4146
|
+
index(): Promise<HealthResponse>;
|
|
4147
|
+
indexWithHttpInfo(): Promise<{ data: HealthResponse; response: any }>;
|
|
4148
|
+
}
|
|
4149
|
+
|
|
4150
|
+
export class HooksApi {
|
|
4151
|
+
constructor(apiClient?: ApiClient);
|
|
4152
|
+
apiClient: ApiClient;
|
|
4153
|
+
/** Invoke a hook function */
|
|
4154
|
+
callHook(opts?: { callHookRequest?: { args?: Record<string, any>[]; fn: string; plugin: string } }): Promise<HookCallResponse>;
|
|
4155
|
+
callHookWithHttpInfo(opts?: { callHookRequest?: { args?: Record<string, any>[]; fn: string; plugin: string } }): Promise<{ data: HookCallResponse; response: any }>;
|
|
4156
|
+
/** List available hook functions */
|
|
4157
|
+
listHooks(opts?: { page?: number; pageSize?: number }): Promise<HookFunctionPage>;
|
|
4158
|
+
listHooksWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: HookFunctionPage; response: any }>;
|
|
4159
|
+
}
|
|
4160
|
+
|
|
4161
|
+
export class KVApi {
|
|
4162
|
+
constructor(apiClient?: ApiClient);
|
|
4163
|
+
apiClient: ApiClient;
|
|
4164
|
+
/** Get a key/value entry */
|
|
4165
|
+
getKv(key: string, opts?: { userId?: string; lobbyId?: string }): Promise<KvEntryResponse>;
|
|
4166
|
+
getKvWithHttpInfo(key: string, opts?: { userId?: string; lobbyId?: string }): Promise<{ data: KvEntryResponse; response: any }>;
|
|
4167
|
+
}
|
|
4168
|
+
|
|
4169
|
+
export class LeaderboardsApi {
|
|
4170
|
+
constructor(apiClient?: ApiClient);
|
|
4171
|
+
apiClient: ApiClient;
|
|
4172
|
+
/** Get a leaderboard by ID */
|
|
4173
|
+
getLeaderboard(id: string): Promise<LeaderboardResponse>;
|
|
4174
|
+
getLeaderboardWithHttpInfo(id: string): Promise<{ data: LeaderboardResponse; response: any }>;
|
|
4175
|
+
/** Get current user's record */
|
|
4176
|
+
getMyRecord(id: string, opts?: { key?: string }): Promise<LeaderboardRecordResponse>;
|
|
4177
|
+
getMyRecordWithHttpInfo(id: string, opts?: { key?: string }): Promise<{ data: LeaderboardRecordResponse; response: any }>;
|
|
4178
|
+
/** List a leaderboard's rankings */
|
|
4179
|
+
listLeaderboardKeys(id: string, opts?: { prefix?: string }): Promise<LeaderboardKeysResponse>;
|
|
4180
|
+
listLeaderboardKeysWithHttpInfo(id: string, opts?: { prefix?: string }): Promise<{ data: LeaderboardKeysResponse; response: any }>;
|
|
4181
|
+
/** List leaderboard records */
|
|
4182
|
+
listLeaderboardRecords(id: string, opts?: { page?: number; pageSize?: number; key?: string }): Promise<LeaderboardRecordPage>;
|
|
4183
|
+
listLeaderboardRecordsWithHttpInfo(id: string, opts?: { page?: number; pageSize?: number; key?: string }): Promise<{ data: LeaderboardRecordPage; response: any }>;
|
|
4184
|
+
/** List leaderboards */
|
|
4185
|
+
listLeaderboards(opts?: { slug?: string; active?: boolean; orderBy?: "ends_at" | "inserted_at"; startsAfter?: Date; startsBefore?: Date; endsAfter?: Date; endsBefore?: Date; page?: number; pageSize?: number }): Promise<LeaderboardPage>;
|
|
4186
|
+
listLeaderboardsWithHttpInfo(opts?: { slug?: string; active?: boolean; orderBy?: "ends_at" | "inserted_at"; startsAfter?: Date; startsBefore?: Date; endsAfter?: Date; endsBefore?: Date; page?: number; pageSize?: number }): Promise<{ data: LeaderboardPage; response: any }>;
|
|
4187
|
+
/** List the records just ahead of a score */
|
|
4188
|
+
listRecordsAbove(id: string, score: number, opts?: { limit?: number; key?: string }): Promise<LeaderboardRecordPage>;
|
|
4189
|
+
listRecordsAboveWithHttpInfo(id: string, score: number, opts?: { limit?: number; key?: string }): Promise<{ data: LeaderboardRecordPage; response: any }>;
|
|
4190
|
+
/** List records around a user */
|
|
4191
|
+
listRecordsAroundUser(id: string, userId: string, opts?: { limit?: number; key?: string }): Promise<LeaderboardRecordPage>;
|
|
4192
|
+
listRecordsAroundUserWithHttpInfo(id: string, userId: string, opts?: { limit?: number; key?: string }): Promise<{ data: LeaderboardRecordPage; response: any }>;
|
|
4193
|
+
/** Resolve multiple slugs to active leaderboards */
|
|
4194
|
+
resolveLeaderboardSlugs(opts?: { resolveLeaderboardSlugsRequest?: { slugs: string[] } }): Promise<LeaderboardsBySlugResponse>;
|
|
4195
|
+
resolveLeaderboardSlugsWithHttpInfo(opts?: { resolveLeaderboardSlugsRequest?: { slugs: string[] } }): Promise<{ data: LeaderboardsBySlugResponse; response: any }>;
|
|
4196
|
+
}
|
|
4197
|
+
|
|
4198
|
+
export class LobbiesApi {
|
|
4199
|
+
constructor(apiClient?: ApiClient);
|
|
4200
|
+
apiClient: ApiClient;
|
|
4201
|
+
/** Create a lobby */
|
|
4202
|
+
createLobby(opts?: { createLobbyRequest?: { is_hidden?: boolean; is_locked?: boolean; max_users?: number; metadata?: Record<string, any>; password?: string; slowdown?: number; title?: string } }): Promise<LobbyResponse>;
|
|
4203
|
+
createLobbyWithHttpInfo(opts?: { createLobbyRequest?: { is_hidden?: boolean; is_locked?: boolean; max_users?: number; metadata?: Record<string, any>; password?: string; slowdown?: number; title?: string } }): Promise<{ data: LobbyResponse; response: any }>;
|
|
4204
|
+
/** Disband the current lobby (host only) */
|
|
4205
|
+
disbandLobby(): Promise<OkResponse>;
|
|
4206
|
+
disbandLobbyWithHttpInfo(): Promise<{ data: OkResponse; response: any }>;
|
|
4207
|
+
/** Get a single lobby */
|
|
4208
|
+
getLobby(id: string): Promise<LobbyResponse>;
|
|
4209
|
+
getLobbyWithHttpInfo(id: string): Promise<{ data: LobbyResponse; response: any }>;
|
|
4210
|
+
/** Join a lobby */
|
|
4211
|
+
joinLobby(id: string, opts?: { joinLobbyRequest?: { password?: string } }): Promise<LobbyResponse>;
|
|
4212
|
+
joinLobbyWithHttpInfo(id: string, opts?: { joinLobbyRequest?: { password?: string } }): Promise<{ data: LobbyResponse; response: any }>;
|
|
4213
|
+
/** Kick a user from the lobby (host only) */
|
|
4214
|
+
kickUser(opts?: { kickUserRequest?: { target_user_id: string } }): Promise<OkResponse>;
|
|
4215
|
+
kickUserWithHttpInfo(opts?: { kickUserRequest?: { target_user_id: string } }): Promise<{ data: OkResponse; response: any }>;
|
|
4216
|
+
/** Leave the current lobby */
|
|
4217
|
+
leaveLobby(): Promise<OkResponse>;
|
|
4218
|
+
leaveLobbyWithHttpInfo(): Promise<{ data: OkResponse; response: any }>;
|
|
4219
|
+
/** List lobbies */
|
|
4220
|
+
listLobbies(opts?: { title?: string; isPassworded?: boolean; isLocked?: boolean; minUsers?: number; maxUsers?: number; page?: number; pageSize?: number; metadataKey?: string; metadataValue?: string }): Promise<LobbyPage>;
|
|
4221
|
+
listLobbiesWithHttpInfo(opts?: { title?: string; isPassworded?: boolean; isLocked?: boolean; minUsers?: number; maxUsers?: number; page?: number; pageSize?: number; metadataKey?: string; metadataValue?: string }): Promise<{ data: LobbyPage; response: any }>;
|
|
4222
|
+
/** Lobby counts */
|
|
4223
|
+
lobbyStats(): Promise<LobbyStatsResponse>;
|
|
4224
|
+
lobbyStatsWithHttpInfo(): Promise<{ data: LobbyStatsResponse; response: any }>;
|
|
4225
|
+
/** Quick-join or create a lobby */
|
|
4226
|
+
quickJoin(opts?: { quickJoinRequest?: { max_users?: number; metadata?: Record<string, any>; title?: string } }): Promise<LobbyResponse>;
|
|
4227
|
+
quickJoinWithHttpInfo(opts?: { quickJoinRequest?: { max_users?: number; metadata?: Record<string, any>; title?: string } }): Promise<{ data: LobbyResponse; response: any }>;
|
|
4228
|
+
/** Set lobby state (host or pinned WebRTC host) */
|
|
4229
|
+
setLobbyState(opts?: { setLobbyStateRequest?: { lobby_id?: string; state: string } }): Promise<LobbyResponse>;
|
|
4230
|
+
setLobbyStateWithHttpInfo(opts?: { setLobbyStateRequest?: { lobby_id?: string; state: string } }): Promise<{ data: LobbyResponse; response: any }>;
|
|
4231
|
+
/** Update lobby (host or pinned WebRTC host) */
|
|
4232
|
+
updateLobby(opts?: { updateLobbyRequest?: { is_hidden?: boolean; is_locked?: boolean; lobby_id?: string; max_users?: number; metadata?: Record<string, any>; password?: string; slowdown?: number; title?: string } }): Promise<LobbyResponse>;
|
|
4233
|
+
updateLobbyWithHttpInfo(opts?: { updateLobbyRequest?: { is_hidden?: boolean; is_locked?: boolean; lobby_id?: string; max_users?: number; metadata?: Record<string, any>; password?: string; slowdown?: number; title?: string } }): Promise<{ data: LobbyResponse; response: any }>;
|
|
4234
|
+
}
|
|
4235
|
+
|
|
4236
|
+
export class MatchmakingApi {
|
|
4237
|
+
constructor(apiClient?: ApiClient);
|
|
4238
|
+
apiClient: ApiClient;
|
|
4239
|
+
/** Leave the matchmaking queue */
|
|
4240
|
+
matchmakingCancel(): Promise<CancelledCountResponse>;
|
|
4241
|
+
matchmakingCancelWithHttpInfo(): Promise<{ data: CancelledCountResponse; response: any }>;
|
|
4242
|
+
/** Join the matchmaking queue */
|
|
4243
|
+
matchmakingJoin(opts?: { matchmakingJoinRequest?: { match_params?: Record<string, any>; max_players?: number; min_players?: number } }): Promise<MatchmakingTicketResponse>;
|
|
4244
|
+
matchmakingJoinWithHttpInfo(opts?: { matchmakingJoinRequest?: { match_params?: Record<string, any>; max_players?: number; min_players?: number } }): Promise<{ data: MatchmakingTicketResponse; response: any }>;
|
|
4245
|
+
/** Get my current ticket */
|
|
4246
|
+
matchmakingMyTicket(): Promise<MatchmakingTicketResponse>;
|
|
4247
|
+
matchmakingMyTicketWithHttpInfo(): Promise<{ data: MatchmakingTicketResponse; response: any }>;
|
|
4248
|
+
/** Queue statistics */
|
|
4249
|
+
matchmakingStats(): Promise<MatchmakingStatsResponse>;
|
|
4250
|
+
matchmakingStatsWithHttpInfo(): Promise<{ data: MatchmakingStatsResponse; response: any }>;
|
|
4251
|
+
}
|
|
4252
|
+
|
|
4253
|
+
export class NotificationsApi {
|
|
4254
|
+
constructor(apiClient?: ApiClient);
|
|
4255
|
+
apiClient: ApiClient;
|
|
4256
|
+
/** Delete notifications by IDs */
|
|
4257
|
+
deleteNotifications(opts?: { deleteNotificationsRequest?: { ids: number[] } }): Promise<DeletedCountResponse>;
|
|
4258
|
+
deleteNotificationsWithHttpInfo(opts?: { deleteNotificationsRequest?: { ids: number[] } }): Promise<{ data: DeletedCountResponse; response: any }>;
|
|
4259
|
+
/** List own notifications */
|
|
4260
|
+
listNotifications(opts?: { page?: number; pageSize?: number }): Promise<NotificationPage>;
|
|
4261
|
+
listNotificationsWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: NotificationPage; response: any }>;
|
|
4262
|
+
/** Send a notification to a friend */
|
|
4263
|
+
sendNotification(opts?: { sendNotificationRequest?: { content?: string | null; icon_url?: string | null; metadata?: Record<string, any> | null; title: string; user_id: string } }): Promise<NotificationResponse>;
|
|
4264
|
+
sendNotificationWithHttpInfo(opts?: { sendNotificationRequest?: { content?: string | null; icon_url?: string | null; metadata?: Record<string, any> | null; title: string; user_id: string } }): Promise<{ data: NotificationResponse; response: any }>;
|
|
4265
|
+
}
|
|
4266
|
+
|
|
4267
|
+
export class PartiesApi {
|
|
4268
|
+
constructor(apiClient?: ApiClient);
|
|
4269
|
+
apiClient: ApiClient;
|
|
4270
|
+
/** Accept a party invite */
|
|
4271
|
+
acceptPartyInvite(opts?: { acceptPartyInviteRequest?: { party_id: string } }): Promise<PartyResponse>;
|
|
4272
|
+
acceptPartyInviteWithHttpInfo(opts?: { acceptPartyInviteRequest?: { party_id: string } }): Promise<{ data: PartyResponse; response: any }>;
|
|
4273
|
+
/** Cancel a pending party invite (leader only) */
|
|
4274
|
+
cancelPartyInvite(opts?: { cancelPartyInviteRequest?: { target_user_id: string } }): Promise<OkResponse>;
|
|
4275
|
+
cancelPartyInviteWithHttpInfo(opts?: { cancelPartyInviteRequest?: { target_user_id: string } }): Promise<{ data: OkResponse; response: any }>;
|
|
4276
|
+
/** Create a party */
|
|
4277
|
+
createParty(opts?: { createPartyRequest?: { max_size?: number; metadata?: Record<string, any> } }): Promise<PartyResponse>;
|
|
4278
|
+
createPartyWithHttpInfo(opts?: { createPartyRequest?: { max_size?: number; metadata?: Record<string, any> } }): Promise<{ data: PartyResponse; response: any }>;
|
|
4279
|
+
/** Decline a party invite */
|
|
4280
|
+
declinePartyInvite(opts?: { declinePartyInviteRequest?: { party_id: string } }): Promise<OkResponse>;
|
|
4281
|
+
declinePartyInviteWithHttpInfo(opts?: { declinePartyInviteRequest?: { party_id: string } }): Promise<{ data: OkResponse; response: any }>;
|
|
4282
|
+
/** Disband the current party (leader only) */
|
|
4283
|
+
disbandParty(): Promise<OkResponse>;
|
|
4284
|
+
disbandPartyWithHttpInfo(): Promise<{ data: OkResponse; response: any }>;
|
|
4285
|
+
/** Invite a user to the party (leader only) */
|
|
4286
|
+
inviteToParty(opts?: { inviteToPartyRequest?: { target_user_id: string } }): Promise<OkResponse>;
|
|
4287
|
+
inviteToPartyWithHttpInfo(opts?: { inviteToPartyRequest?: { target_user_id: string } }): Promise<{ data: OkResponse; response: any }>;
|
|
4288
|
+
/** Kick a member from the party (leader only) */
|
|
4289
|
+
kickPartyMember(opts?: { kickPartyMemberRequest?: { target_user_id: string } }): Promise<OkResponse>;
|
|
4290
|
+
kickPartyMemberWithHttpInfo(opts?: { kickPartyMemberRequest?: { target_user_id: string } }): Promise<{ data: OkResponse; response: any }>;
|
|
4291
|
+
/** Leave the current party */
|
|
4292
|
+
leaveParty(): Promise<OkResponse>;
|
|
4293
|
+
leavePartyWithHttpInfo(): Promise<{ data: OkResponse; response: any }>;
|
|
4294
|
+
/** List pending party invites for the current user */
|
|
4295
|
+
listPartyInvitations(opts?: { page?: number; pageSize?: number }): Promise<PartyInvitePage>;
|
|
4296
|
+
listPartyInvitationsWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: PartyInvitePage; response: any }>;
|
|
4297
|
+
/** List pending party invites sent by the current leader */
|
|
4298
|
+
listSentPartyInvitations(opts?: { page?: number; pageSize?: number }): Promise<PartyInvitePage>;
|
|
4299
|
+
listSentPartyInvitationsWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: PartyInvitePage; response: any }>;
|
|
4300
|
+
/** Create a lobby with the party (leader only) */
|
|
4301
|
+
partyCreateLobby(opts?: { partyCreateLobbyRequest?: { is_hidden?: boolean; is_locked?: boolean; max_users?: number; metadata?: Record<string, any>; password?: string; title?: string } }): Promise<LobbyResponse>;
|
|
4302
|
+
partyCreateLobbyWithHttpInfo(opts?: { partyCreateLobbyRequest?: { is_hidden?: boolean; is_locked?: boolean; max_users?: number; metadata?: Record<string, any>; password?: string; title?: string } }): Promise<{ data: LobbyResponse; response: any }>;
|
|
4303
|
+
/** Join a lobby with the party (leader only) */
|
|
4304
|
+
partyJoinLobby(id: string, opts?: { partyJoinLobbyRequest?: { password?: string } }): Promise<LobbyResponse>;
|
|
4305
|
+
partyJoinLobbyWithHttpInfo(id: string, opts?: { partyJoinLobbyRequest?: { password?: string } }): Promise<{ data: LobbyResponse; response: any }>;
|
|
4306
|
+
/** Party counts */
|
|
4307
|
+
partyStats(): Promise<PartyStatsResponse>;
|
|
4308
|
+
partyStatsWithHttpInfo(): Promise<{ data: PartyStatsResponse; response: any }>;
|
|
4309
|
+
/** Get current party */
|
|
4310
|
+
showParty(): Promise<PartyResponse>;
|
|
4311
|
+
showPartyWithHttpInfo(): Promise<{ data: PartyResponse; response: any }>;
|
|
4312
|
+
/** Update party settings (leader only) */
|
|
4313
|
+
updateParty(opts?: { updatePartyRequest?: { max_size?: number; metadata?: Record<string, any> } }): Promise<PartyResponse>;
|
|
4314
|
+
updatePartyWithHttpInfo(opts?: { updatePartyRequest?: { max_size?: number; metadata?: Record<string, any> } }): Promise<{ data: PartyResponse; response: any }>;
|
|
4315
|
+
}
|
|
4316
|
+
|
|
4317
|
+
export class PaymentsApi {
|
|
4318
|
+
constructor(apiClient?: ApiClient);
|
|
4319
|
+
apiClient: ApiClient;
|
|
4320
|
+
/** Receive App Store Server Notification v2 events */
|
|
4321
|
+
paymentsAppleWebhook(opts?: { body?: Record<string, any> }): Promise<PaymentWebhookReceiptResponse>;
|
|
4322
|
+
paymentsAppleWebhookWithHttpInfo(opts?: { body?: Record<string, any> }): Promise<{ data: PaymentWebhookReceiptResponse; response: any }>;
|
|
4323
|
+
/** List active payment catalog entries */
|
|
4324
|
+
paymentsCatalog(opts?: { provider?: string; page?: number; pageSize?: number }): Promise<PaymentCatalogEntryPage>;
|
|
4325
|
+
paymentsCatalogWithHttpInfo(opts?: { provider?: string; page?: number; pageSize?: number }): Promise<{ data: PaymentCatalogEntryPage; response: any }>;
|
|
4326
|
+
/** List current user's active entitlements */
|
|
4327
|
+
paymentsEntitlements(opts?: { page?: number; pageSize?: number }): Promise<EntitlementPage>;
|
|
4328
|
+
paymentsEntitlementsWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: EntitlementPage; response: any }>;
|
|
4329
|
+
/** Receive Google Play RTDN Pub/Sub push events */
|
|
4330
|
+
paymentsGoogleWebhook(opts?: { body?: Record<string, any> }): Promise<PaymentWebhookReceiptResponse>;
|
|
4331
|
+
paymentsGoogleWebhookWithHttpInfo(opts?: { body?: Record<string, any> }): Promise<{ data: PaymentWebhookReceiptResponse; response: any }>;
|
|
4332
|
+
/** Create a Steam MicroTxn transaction */
|
|
4333
|
+
paymentsSteamCheckout(opts?: { paymentsSteamCheckoutRequest?: { currency?: string; ipaddress?: string; language?: string; product_sku?: string; provider_product_id?: string; quantity?: number; steam_id?: string; usersession?: string } }): Promise<SteamCheckoutResponse>;
|
|
4334
|
+
paymentsSteamCheckoutWithHttpInfo(opts?: { paymentsSteamCheckoutRequest?: { currency?: string; ipaddress?: string; language?: string; product_sku?: string; provider_product_id?: string; quantity?: number; steam_id?: string; usersession?: string } }): Promise<{ data: SteamCheckoutResponse; response: any }>;
|
|
4335
|
+
/** Finalize an authorized Steam MicroTxn transaction */
|
|
4336
|
+
paymentsSteamFinalize(opts?: { paymentsSteamFinalizeRequest?: { order_id: string } }): Promise<PurchaseResponse>;
|
|
4337
|
+
paymentsSteamFinalizeWithHttpInfo(opts?: { paymentsSteamFinalizeRequest?: { order_id: string } }): Promise<{ data: PurchaseResponse; response: any }>;
|
|
4338
|
+
/** Create a Stripe Checkout Session */
|
|
4339
|
+
paymentsStripeCheckout(opts?: { paymentsStripeCheckoutRequest?: { cancel_url?: string; product_sku?: string; provider_product_id?: string; quantity?: number; success_url?: string } }): Promise<StripeCheckoutResponse>;
|
|
4340
|
+
paymentsStripeCheckoutWithHttpInfo(opts?: { paymentsStripeCheckoutRequest?: { cancel_url?: string; product_sku?: string; provider_product_id?: string; quantity?: number; success_url?: string } }): Promise<{ data: StripeCheckoutResponse; response: any }>;
|
|
4341
|
+
/** Receive Stripe webhook events */
|
|
4342
|
+
paymentsStripeWebhook(opts?: { body?: Record<string, any> }): Promise<PaymentWebhookReceiptResponse>;
|
|
4343
|
+
paymentsStripeWebhookWithHttpInfo(opts?: { body?: Record<string, any> }): Promise<{ data: PaymentWebhookReceiptResponse; response: any }>;
|
|
4344
|
+
/** Validate an Apple, Google, or Steam purchase */
|
|
4345
|
+
paymentsValidateStorePurchase(provider: string, opts?: { requestBody?: Record<string, any> }): Promise<PurchaseValidationResponse>;
|
|
4346
|
+
paymentsValidateStorePurchaseWithHttpInfo(provider: string, opts?: { requestBody?: Record<string, any> }): Promise<{ data: PurchaseValidationResponse; response: any }>;
|
|
4347
|
+
}
|
|
4348
|
+
|
|
4349
|
+
export class PushApi {
|
|
4350
|
+
constructor(apiClient?: ApiClient);
|
|
4351
|
+
apiClient: ApiClient;
|
|
4352
|
+
/** Unregister one of the current user's devices */
|
|
4353
|
+
deletePushToken(id: string): Promise<PushTokenResponse>;
|
|
4354
|
+
deletePushTokenWithHttpInfo(id: string): Promise<{ data: PushTokenResponse; response: any }>;
|
|
4355
|
+
/** List the current user's registered devices */
|
|
4356
|
+
listPushTokens(opts?: { page?: number; pageSize?: number }): Promise<PushTokenPage>;
|
|
4357
|
+
listPushTokensWithHttpInfo(opts?: { page?: number; pageSize?: number }): Promise<{ data: PushTokenPage; response: any }>;
|
|
4358
|
+
/** Register a device push token */
|
|
4359
|
+
registerPushToken(opts?: { registerPushTokenRequest?: { device_id?: string; metadata?: Record<string, any>; platform: "android" | "ios" | "web"; provider?: "fcm" | "apns"; token: string } }): Promise<PushTokenResponse>;
|
|
4360
|
+
registerPushTokenWithHttpInfo(opts?: { registerPushTokenRequest?: { device_id?: string; metadata?: Record<string, any>; platform: "android" | "ios" | "web"; provider?: "fcm" | "apns"; token: string } }): Promise<{ data: PushTokenResponse; response: any }>;
|
|
4361
|
+
}
|
|
4362
|
+
|
|
4363
|
+
export class QuestsApi {
|
|
4364
|
+
constructor(apiClient?: ApiClient);
|
|
4365
|
+
apiClient: ApiClient;
|
|
4366
|
+
/** Claim a completed quest */
|
|
4367
|
+
claimQuest(key: string): Promise<QuestClaimResponse>;
|
|
4368
|
+
claimQuestWithHttpInfo(key: string): Promise<{ data: QuestClaimResponse; response: any }>;
|
|
4369
|
+
/** List quests */
|
|
4370
|
+
listQuests(opts?: { category?: string; page?: number; pageSize?: number }): Promise<QuestPage>;
|
|
4371
|
+
listQuestsWithHttpInfo(opts?: { category?: string; page?: number; pageSize?: number }): Promise<{ data: QuestPage; response: any }>;
|
|
4372
|
+
/** List quests a code can finish */
|
|
4373
|
+
listRedeemableQuests(opts?: { quest?: string; page?: number; pageSize?: number }): Promise<QuestPage>;
|
|
4374
|
+
listRedeemableQuestsWithHttpInfo(opts?: { quest?: string; page?: number; pageSize?: number }): Promise<{ data: QuestPage; response: any }>;
|
|
4375
|
+
/** List my quests */
|
|
4376
|
+
myQuests(opts?: { category?: string; group?: string; page?: number; pageSize?: number }): Promise<QuestPage>;
|
|
4377
|
+
myQuestsWithHttpInfo(opts?: { category?: string; group?: string; page?: number; pageSize?: number }): Promise<{ data: QuestPage; response: any }>;
|
|
4378
|
+
/** Quest progress counts */
|
|
4379
|
+
questStats(): Promise<QuestStatsResponse>;
|
|
4380
|
+
questStatsWithHttpInfo(): Promise<{ data: QuestStatsResponse; response: any }>;
|
|
4381
|
+
/** Redeem a code */
|
|
4382
|
+
redeemQuestCode(opts?: { redeemQuestCodeRequest?: { token: string } }): Promise<QuestClaimResponse>;
|
|
4383
|
+
redeemQuestCodeWithHttpInfo(opts?: { redeemQuestCodeRequest?: { token: string } }): Promise<{ data: QuestClaimResponse; response: any }>;
|
|
4384
|
+
/** List a user's completed quests */
|
|
4385
|
+
userQuests(userId: string, opts?: { category?: string; page?: number; pageSize?: number }): Promise<QuestPage>;
|
|
4386
|
+
userQuestsWithHttpInfo(userId: string, opts?: { category?: string; page?: number; pageSize?: number }): Promise<{ data: QuestPage; response: any }>;
|
|
4387
|
+
}
|
|
4388
|
+
|
|
4389
|
+
export class ReadyChecksApi {
|
|
4390
|
+
constructor(apiClient?: ApiClient);
|
|
4391
|
+
apiClient: ApiClient;
|
|
4392
|
+
/** Call off the ready check in the caller's lobby (host only) */
|
|
4393
|
+
cancelLobbyReadyCheck(): Promise<OkResponse>;
|
|
4394
|
+
cancelLobbyReadyCheckWithHttpInfo(): Promise<{ data: OkResponse; response: any }>;
|
|
4395
|
+
/** Call off the ready check in the caller's party (leader only) */
|
|
4396
|
+
cancelPartyReadyCheck(): Promise<OkResponse>;
|
|
4397
|
+
cancelPartyReadyCheckWithHttpInfo(): Promise<{ data: OkResponse; response: any }>;
|
|
4398
|
+
/** Get the caller's open ready checks */
|
|
4399
|
+
getMyReadyCheck(): Promise<MyReadyChecksResponse>;
|
|
4400
|
+
getMyReadyCheckWithHttpInfo(): Promise<{ data: MyReadyChecksResponse; response: any }>;
|
|
4401
|
+
/** Open (or reset) the ready board in the caller's lobby (host only) */
|
|
4402
|
+
openLobbyReadyCheck(opts?: { openLobbyReadyCheckRequest?: { metadata?: Record<string, any>; timeout_ms?: number } }): Promise<ReadyCheckStateResponse>;
|
|
4403
|
+
openLobbyReadyCheckWithHttpInfo(opts?: { openLobbyReadyCheckRequest?: { metadata?: Record<string, any>; timeout_ms?: number } }): Promise<{ data: ReadyCheckStateResponse; response: any }>;
|
|
4404
|
+
/** Open (or reset) the ready board in the caller's party (leader only) */
|
|
4405
|
+
openPartyReadyCheck(opts?: { openPartyReadyCheckRequest?: { metadata?: Record<string, any>; timeout_ms?: number } }): Promise<ReadyCheckStateResponse>;
|
|
4406
|
+
openPartyReadyCheckWithHttpInfo(opts?: { openPartyReadyCheckRequest?: { metadata?: Record<string, any>; timeout_ms?: number } }): Promise<{ data: ReadyCheckStateResponse; response: any }>;
|
|
4407
|
+
/** Answer one of the caller's open ready checks */
|
|
4408
|
+
respondReadyCheck(opts?: { respondReadyCheckRequest?: { ready: boolean; scope?: "lobby" | "party" } }): Promise<ReadyCheckStateResponse>;
|
|
4409
|
+
respondReadyCheckWithHttpInfo(opts?: { respondReadyCheckRequest?: { ready: boolean; scope?: "lobby" | "party" } }): Promise<{ data: ReadyCheckStateResponse; response: any }>;
|
|
4410
|
+
}
|
|
4411
|
+
|
|
4412
|
+
export class ReportsApi {
|
|
4413
|
+
constructor(apiClient?: ApiClient);
|
|
4414
|
+
apiClient: ApiClient;
|
|
4415
|
+
/** File a report */
|
|
4416
|
+
createReport(opts?: { reportRequest?: ReportRequest }): Promise<ReportReceiptResponse>;
|
|
4417
|
+
createReportWithHttpInfo(opts?: { reportRequest?: ReportRequest }): Promise<{ data: ReportReceiptResponse; response: any }>;
|
|
4418
|
+
/** Report kinds */
|
|
4419
|
+
listReportKinds(): Promise<ReportKindsResponse>;
|
|
4420
|
+
listReportKindsWithHttpInfo(): Promise<{ data: ReportKindsResponse; response: any }>;
|
|
4421
|
+
}
|
|
4422
|
+
|
|
4423
|
+
export class ResultsApi {
|
|
4424
|
+
constructor(apiClient?: ApiClient);
|
|
4425
|
+
apiClient: ApiClient;
|
|
4426
|
+
/** Get a result */
|
|
4427
|
+
getResult(id: string): Promise<PlayResultResponse>;
|
|
4428
|
+
getResultWithHttpInfo(id: string): Promise<{ data: PlayResultResponse; response: any }>;
|
|
4429
|
+
/** List a result's events */
|
|
4430
|
+
listResultEvents(id: string, opts?: { after?: string; limit?: number }): Promise<PlayResultEventsResponse>;
|
|
4431
|
+
listResultEventsWithHttpInfo(id: string, opts?: { after?: string; limit?: number }): Promise<{ data: PlayResultEventsResponse; response: any }>;
|
|
4432
|
+
/** List the caller's results */
|
|
4433
|
+
listResults(opts?: { kind?: string; status?: "open" | "ended"; page?: number; pageSize?: number }): Promise<PlayResultPage>;
|
|
4434
|
+
listResultsWithHttpInfo(opts?: { kind?: string; status?: "open" | "ended"; page?: number; pageSize?: number }): Promise<{ data: PlayResultPage; response: any }>;
|
|
4435
|
+
}
|
|
4436
|
+
|
|
4437
|
+
export class SignalingApi {
|
|
4438
|
+
constructor(apiClient?: ApiClient);
|
|
4439
|
+
apiClient: ApiClient;
|
|
4440
|
+
/** WebRTC room counts */
|
|
4441
|
+
signalingStats(): Promise<SignalingStatsResponse>;
|
|
4442
|
+
signalingStatsWithHttpInfo(): Promise<{ data: SignalingStatsResponse; response: any }>;
|
|
4443
|
+
}
|
|
4444
|
+
|
|
4445
|
+
export class StatsApi {
|
|
4446
|
+
constructor(apiClient?: ApiClient);
|
|
4447
|
+
apiClient: ApiClient;
|
|
4448
|
+
/** All public server counters in one call */
|
|
4449
|
+
getStats(): Promise<ServerStatsResponse>;
|
|
4450
|
+
getStatsWithHttpInfo(): Promise<{ data: ServerStatsResponse; response: any }>;
|
|
4451
|
+
}
|
|
4452
|
+
|
|
4453
|
+
export class TimeApi {
|
|
4454
|
+
constructor(apiClient?: ApiClient);
|
|
4455
|
+
apiClient: ApiClient;
|
|
4456
|
+
/** Server clock */
|
|
4457
|
+
getServerTime(): Promise<ServerTimeResponse>;
|
|
4458
|
+
getServerTimeWithHttpInfo(): Promise<{ data: ServerTimeResponse; response: any }>;
|
|
4459
|
+
}
|
|
4460
|
+
|
|
4461
|
+
export class TournamentsApi {
|
|
4462
|
+
constructor(apiClient?: ApiClient);
|
|
4463
|
+
apiClient: ApiClient;
|
|
4464
|
+
/** Tournament details (with the caller's participation when authenticated) */
|
|
4465
|
+
getTournament(id: string): Promise<TournamentResponse>;
|
|
4466
|
+
getTournamentWithHttpInfo(id: string): Promise<{ data: TournamentResponse; response: any }>;
|
|
4467
|
+
/** Register as an entry leader */
|
|
4468
|
+
joinTournament(id: string): Promise<TournamentEntryResponse>;
|
|
4469
|
+
joinTournamentWithHttpInfo(id: string): Promise<{ data: TournamentEntryResponse; response: any }>;
|
|
4470
|
+
/** Withdraw the caller's entry (before the draw) */
|
|
4471
|
+
leaveTournament(id: string): Promise<OkResponse>;
|
|
4472
|
+
leaveTournamentWithHttpInfo(id: string): Promise<{ data: OkResponse; response: any }>;
|
|
4473
|
+
/** List tournaments */
|
|
4474
|
+
listTournaments(opts?: { state?: string; slug?: string; page?: number; pageSize?: number }): Promise<TournamentPage>;
|
|
4475
|
+
listTournamentsWithHttpInfo(opts?: { state?: string; slug?: string; page?: number; pageSize?: number }): Promise<{ data: TournamentPage; response: any }>;
|
|
4476
|
+
/** Brackets and their matches (paginated by bracket) */
|
|
4477
|
+
tournamentBracket(id: string, opts?: { index?: number; page?: number; pageSize?: number }): Promise<TournamentBracketPage>;
|
|
4478
|
+
tournamentBracketWithHttpInfo(id: string, opts?: { index?: number; page?: number; pageSize?: number }): Promise<{ data: TournamentBracketPage; response: any }>;
|
|
4479
|
+
/** Registered entries (paginated) */
|
|
4480
|
+
tournamentEntries(id: string, opts?: { state?: "registered" | "active" | "eliminated" | "winner"; page?: number; pageSize?: number }): Promise<TournamentEntryPage>;
|
|
4481
|
+
tournamentEntriesWithHttpInfo(id: string, opts?: { state?: "registered" | "active" | "eliminated" | "winner"; page?: number; pageSize?: number }): Promise<{ data: TournamentEntryPage; response: any }>;
|
|
4482
|
+
/** The caller's current unresolved match */
|
|
4483
|
+
tournamentMyMatch(id: string): Promise<TournamentMatchResponse>;
|
|
4484
|
+
tournamentMyMatchWithHttpInfo(id: string): Promise<{ data: TournamentMatchResponse; response: any }>;
|
|
4485
|
+
/** Placements, wins and champions */
|
|
4486
|
+
tournamentStandings(id: string): Promise<TournamentStandingsResponse>;
|
|
4487
|
+
tournamentStandingsWithHttpInfo(id: string): Promise<{ data: TournamentStandingsResponse; response: any }>;
|
|
4488
|
+
}
|
|
4489
|
+
|
|
4490
|
+
export class UsersApi {
|
|
4491
|
+
constructor(apiClient?: ApiClient);
|
|
4492
|
+
apiClient: ApiClient;
|
|
4493
|
+
/** Request an avatar upload ticket */
|
|
4494
|
+
createCurrentUserAvatarUploadUrl(opts?: { createCurrentUserAvatarUploadUrlRequest?: { content_type: string; filename?: string } }): Promise<UploadTicketResponse>;
|
|
4495
|
+
createCurrentUserAvatarUploadUrlWithHttpInfo(opts?: { createCurrentUserAvatarUploadUrlRequest?: { content_type: string; filename?: string } }): Promise<{ data: UploadTicketResponse; response: any }>;
|
|
4496
|
+
/** Delete current user */
|
|
4497
|
+
deleteCurrentUser(opts?: { deleteCurrentUserRequest?: { current_password?: string } }): Promise<OkResponse>;
|
|
4498
|
+
deleteCurrentUserWithHttpInfo(opts?: { deleteCurrentUserRequest?: { current_password?: string } }): Promise<{ data: OkResponse; response: any }>;
|
|
4499
|
+
/** Return current user info */
|
|
4500
|
+
getCurrentUser(): Promise<CurrentUserResponse>;
|
|
4501
|
+
getCurrentUserWithHttpInfo(): Promise<{ data: CurrentUserResponse; response: any }>;
|
|
4502
|
+
/** Get a user by id */
|
|
4503
|
+
getUser(id: string): Promise<PublicUserResponse>;
|
|
4504
|
+
getUserWithHttpInfo(id: string): Promise<{ data: PublicUserResponse; response: any }>;
|
|
4505
|
+
/** Search users by id, username, or display_name */
|
|
4506
|
+
searchUsers(opts?: { q?: string; page?: number; pageSize?: number }): Promise<PublicUserPage>;
|
|
4507
|
+
searchUsersWithHttpInfo(opts?: { q?: string; page?: number; pageSize?: number }): Promise<{ data: PublicUserPage; response: any }>;
|
|
4508
|
+
/** Confirm an uploaded avatar */
|
|
4509
|
+
setCurrentUserAvatar(opts?: { setCurrentUserAvatarRequest?: { key: string } }): Promise<CurrentUserResponse>;
|
|
4510
|
+
setCurrentUserAvatarWithHttpInfo(opts?: { setCurrentUserAvatarRequest?: { key: string } }): Promise<{ data: CurrentUserResponse; response: any }>;
|
|
4511
|
+
/** Update current user's display name */
|
|
4512
|
+
updateCurrentUserDisplayName(opts?: { updateCurrentUserDisplayNameRequest?: { display_name: string } }): Promise<CurrentUserResponse>;
|
|
4513
|
+
updateCurrentUserDisplayNameWithHttpInfo(opts?: { updateCurrentUserDisplayNameRequest?: { display_name: string } }): Promise<{ data: CurrentUserResponse; response: any }>;
|
|
4514
|
+
/** Update current user password */
|
|
4515
|
+
updateCurrentUserPassword(opts?: { updateCurrentUserPasswordRequest?: { current_password?: string; password: string } }): Promise<CurrentUserResponse>;
|
|
4516
|
+
updateCurrentUserPasswordWithHttpInfo(opts?: { updateCurrentUserPasswordRequest?: { current_password?: string; password: string } }): Promise<{ data: CurrentUserResponse; response: any }>;
|
|
4517
|
+
/** Update current user's username */
|
|
4518
|
+
updateCurrentUserUsername(opts?: { updateCurrentUserUsernameRequest?: { username: string } }): Promise<CurrentUserResponse>;
|
|
4519
|
+
updateCurrentUserUsernameWithHttpInfo(opts?: { updateCurrentUserUsernameRequest?: { username: string } }): Promise<{ data: CurrentUserResponse; response: any }>;
|
|
4520
|
+
/** Player counts */
|
|
4521
|
+
userStats(): Promise<PlayerStatsResponse>;
|
|
4522
|
+
userStatsWithHttpInfo(): Promise<{ data: PlayerStatsResponse; response: any }>;
|
|
4523
|
+
}
|