@ughuuu/gamend 1.1.1536 → 1.1.1542
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 +6 -2
- package/dist/ApiClient.js +2 -2
- package/dist/api/AdminAnalyticsApi.js +2 -2
- package/dist/api/AdminBansApi.js +2 -2
- package/dist/api/AdminChatApi.js +2 -2
- package/dist/api/AdminEconomyApi.js +2 -2
- package/dist/api/AdminGroupsApi.js +2 -2
- package/dist/api/AdminKVApi.js +2 -2
- package/dist/api/AdminLeaderboardsApi.js +2 -2
- package/dist/api/AdminLobbiesApi.js +2 -2
- package/dist/api/AdminMatchmakingApi.js +2 -2
- package/dist/api/AdminNotificationsApi.js +2 -2
- package/dist/api/AdminPushApi.js +2 -2
- package/dist/api/AdminQuestsApi.js +2 -2
- package/dist/api/AdminReadyChecksApi.js +2 -2
- package/dist/api/AdminResultsApi.js +2 -2
- package/dist/api/AdminRetentionApi.js +2 -2
- package/dist/api/AdminSessionsApi.js +2 -2
- package/dist/api/AdminStorageApi.js +2 -2
- package/dist/api/AdminTournamentsApi.js +2 -2
- package/dist/api/AdminUsersApi.js +2 -2
- package/dist/api/AuthenticationApi.js +4 -4
- package/dist/api/ChatApi.js +2 -2
- package/dist/api/ClientLogsApi.js +2 -2
- package/dist/api/EconomyApi.js +2 -2
- package/dist/api/FriendsApi.js +2 -2
- package/dist/api/GroupsApi.js +2 -2
- package/dist/api/HealthApi.js +2 -2
- package/dist/api/HooksApi.js +2 -2
- package/dist/api/KVApi.js +2 -2
- package/dist/api/LeaderboardsApi.js +2 -2
- package/dist/api/LobbiesApi.js +2 -2
- package/dist/api/MatchmakingApi.js +2 -2
- package/dist/api/NotificationsApi.js +2 -2
- package/dist/api/PartiesApi.js +2 -2
- package/dist/api/PaymentsApi.js +2 -2
- package/dist/api/PushApi.js +2 -2
- package/dist/api/QuestsApi.js +2 -2
- package/dist/api/ReadyChecksApi.js +2 -2
- package/dist/api/ReportsApi.js +2 -2
- package/dist/api/ResultsApi.js +2 -2
- package/dist/api/SignalingApi.js +2 -2
- package/dist/api/StatsApi.js +2 -2
- package/dist/api/StorageApi.js +2 -2
- package/dist/api/TimeApi.js +2 -2
- package/dist/api/TournamentsApi.js +2 -2
- package/dist/api/UsersApi.js +85 -6
- package/dist/gamend_proto.js +12 -0
- package/dist/gamend_realtime.pb.js +277 -7
- package/dist/index.d.ts +8 -0
- package/dist/index.js +14 -0
- package/dist/model/AcceptPartyInviteRequest.js +2 -2
- package/dist/model/AccountBan.js +2 -2
- package/dist/model/ActivityStats.js +2 -2
- package/dist/model/AdminAnnounceNotificationRequest.js +2 -2
- package/dist/model/AdminBan.js +2 -2
- package/dist/model/AdminBanPage.js +2 -2
- package/dist/model/AdminBanResponse.js +2 -2
- package/dist/model/AdminClaimQuestRequest.js +2 -2
- package/dist/model/AdminCreateBanRequest.js +2 -2
- package/dist/model/AdminCreateChatFilterWordRequest.js +2 -2
- package/dist/model/AdminCreateKvEntryRequest.js +2 -2
- package/dist/model/AdminCreateLeaderboardRequest.js +2 -2
- package/dist/model/AdminCreateNotificationRequest.js +2 -2
- package/dist/model/AdminCreateQuestCodeRequest.js +2 -2
- package/dist/model/AdminCreateQuestRequest.js +2 -2
- package/dist/model/AdminCreateQuestRequestObjectivesInner.js +2 -2
- package/dist/model/AdminCreateQuestRequestRewardsInner.js +2 -2
- package/dist/model/AdminCreateTournamentRequest.js +2 -2
- package/dist/model/AdminGenerateQuestCodesRequest.js +2 -2
- package/dist/model/AdminGrantCurrencyRequest.js +2 -2
- package/dist/model/AdminGrantItemRequest.js +2 -2
- package/dist/model/AdminGrantQuestRequest.js +2 -2
- package/dist/model/AdminImportChatFilterWordsRequest.js +2 -2
- package/dist/model/AdminInventoryItem.js +2 -2
- package/dist/model/AdminInventoryItemPage.js +2 -2
- package/dist/model/AdminKvEntry.js +2 -2
- package/dist/model/AdminKvEntryPage.js +2 -2
- package/dist/model/AdminKvEntryResponse.js +2 -2
- package/dist/model/AdminLeaderboardIconUploadUrlRequest.js +2 -2
- package/dist/model/AdminLeaderboardRecord.js +2 -2
- package/dist/model/AdminLeaderboardRecordResponse.js +2 -2
- package/dist/model/AdminLedgerEntry.js +2 -2
- package/dist/model/AdminLedgerEntryPage.js +2 -2
- package/dist/model/AdminMatchmakingStats.js +2 -2
- package/dist/model/AdminMatchmakingStatsResponse.js +2 -2
- package/dist/model/AdminMatchmakingTicket.js +2 -2
- package/dist/model/AdminMatchmakingTicketPage.js +2 -2
- package/dist/model/AdminMatchmakingTicketResponse.js +2 -2
- package/dist/model/AdminPushToken.js +2 -2
- package/dist/model/AdminPushTokenPage.js +2 -2
- package/dist/model/AdminQuest.js +2 -2
- package/dist/model/AdminQuestClaim.js +2 -2
- package/dist/model/AdminQuestClaimResponse.js +2 -2
- package/dist/model/AdminQuestCode.js +2 -2
- package/dist/model/AdminQuestCodeBatch.js +2 -2
- package/dist/model/AdminQuestCodeBatchResponse.js +2 -2
- package/dist/model/AdminQuestCodePage.js +2 -2
- package/dist/model/AdminQuestCodeResponse.js +2 -2
- package/dist/model/AdminQuestIconUploadUrlRequest.js +2 -2
- package/dist/model/AdminQuestPage.js +2 -2
- package/dist/model/AdminQuestProgress.js +2 -2
- package/dist/model/AdminQuestProgressPage.js +2 -2
- package/dist/model/AdminQuestProgressResponse.js +2 -2
- package/dist/model/AdminQuestResponse.js +2 -2
- package/dist/model/AdminReadyCheck.js +2 -2
- package/dist/model/AdminReadyCheckPage.js +2 -2
- package/dist/model/AdminReadyCheckResponse.js +2 -2
- package/dist/model/AdminResetQuestRequest.js +2 -2
- package/dist/model/AdminResolveChatReportRequest.js +2 -2
- package/dist/model/AdminResolveTournamentMatchRequest.js +2 -2
- package/dist/model/AdminSendPushRequest.js +2 -2
- package/dist/model/AdminSession.js +2 -2
- package/dist/model/AdminSessionPage.js +2 -2
- package/dist/model/AdminSetLeaderboardIconRequest.js +2 -2
- package/dist/model/AdminSetQuestIconRequest.js +2 -2
- package/dist/model/AdminSetTournamentIconRequest.js +2 -2
- package/dist/model/AdminSpendCurrencyRequest.js +2 -2
- package/dist/model/AdminSubmitLeaderboardScoreRequest.js +2 -2
- package/dist/model/AdminTestChatPhraseRequest.js +2 -2
- package/dist/model/AdminTournament.js +2 -2
- package/dist/model/AdminTournamentIconUploadUrlRequest.js +2 -2
- package/dist/model/AdminTournamentResponse.js +2 -2
- package/dist/model/AdminUpdateChatFilterWordRequest.js +2 -2
- package/dist/model/AdminUpdateGroupRequest.js +2 -2
- package/dist/model/AdminUpdateKvEntryRequest.js +2 -2
- package/dist/model/AdminUpdateLeaderboardRecordRequest.js +2 -2
- package/dist/model/AdminUpdateLeaderboardRequest.js +2 -2
- package/dist/model/AdminUpdateLobbyRequest.js +2 -2
- package/dist/model/AdminUpdateQuestCodeRequest.js +2 -2
- package/dist/model/AdminUpdateQuestRequest.js +2 -2
- package/dist/model/AdminUpdateTournamentRequest.js +2 -2
- package/dist/model/AdminUpdateUserRequest.js +2 -2
- package/dist/model/AdminUpsertKvRequest.js +2 -2
- package/dist/model/AdminUser.js +2 -2
- package/dist/model/AdminUserResponse.js +2 -2
- package/dist/model/AdminWallet.js +2 -2
- package/dist/model/AdminWalletPage.js +2 -2
- package/dist/model/AnalyticsCounts.js +2 -2
- package/dist/model/AnalyticsCountsResponse.js +2 -2
- package/dist/model/AnalyticsDaily.js +2 -2
- package/dist/model/AnalyticsDailyResponse.js +2 -2
- package/dist/model/AnalyticsDay.js +2 -2
- package/dist/model/AnalyticsEconomy.js +2 -2
- package/dist/model/AnalyticsEconomyResponse.js +2 -2
- package/dist/model/AnalyticsSummary.js +2 -2
- package/dist/model/AnalyticsSummaryResponse.js +2 -2
- package/dist/model/Announcement.js +2 -2
- package/dist/model/AnnouncementResponse.js +2 -2
- package/dist/model/AuthProvidersResponse.js +2 -2
- package/dist/model/AvatarIcon.js +2 -2
- package/dist/model/AvatarIconColor.js +2 -2
- package/dist/model/AvatarIconLit.js +2 -2
- package/dist/model/AvatarIconLitResponse.js +2 -2
- package/dist/model/AvatarIcons.js +2 -2
- package/dist/model/AvatarIconsResponse.js +2 -2
- package/dist/model/BlockedFriendship.js +2 -2
- package/dist/model/BlockedFriendshipPage.js +2 -2
- package/dist/model/CallHookRequest.js +2 -2
- package/dist/model/CancelPartyInviteRequest.js +2 -2
- package/dist/model/CancelledCount.js +2 -2
- package/dist/model/CancelledCountResponse.js +2 -2
- package/dist/model/ChatFilterHit.js +2 -2
- package/dist/model/ChatFilterLanguages.js +2 -2
- package/dist/model/ChatFilterLanguagesResponse.js +2 -2
- package/dist/model/ChatFilterTest.js +2 -2
- package/dist/model/ChatFilterTestResponse.js +2 -2
- package/dist/model/ChatFilterWord.js +2 -2
- package/dist/model/ChatFilterWordPage.js +2 -2
- package/dist/model/ChatFilterWordResponse.js +2 -2
- package/dist/model/ChatMessage.js +2 -2
- package/dist/model/ChatMessagePage.js +2 -2
- package/dist/model/ChatMessageResponse.js +2 -2
- package/dist/model/ChatMuteRecord.js +2 -2
- package/dist/model/ChatMuteRecordPage.js +2 -2
- package/dist/model/ChatMuteRecordResponse.js +2 -2
- package/dist/model/ChatReadCursor.js +2 -2
- package/dist/model/ChatReadCursorResponse.js +2 -2
- package/dist/model/ChatReport.js +2 -2
- package/dist/model/ChatReportPage.js +2 -2
- package/dist/model/ChatReportResponse.js +2 -2
- package/dist/model/ChatUnread.js +2 -2
- package/dist/model/ChatUnreadResponse.js +2 -2
- package/dist/model/ClientLogBatch.js +2 -2
- package/dist/model/ClientLogEntry.js +2 -2
- package/dist/model/ClientLogPolicy.js +2 -2
- package/dist/model/ClientLogPolicyResponse.js +2 -2
- package/dist/model/ClientLogResult.js +2 -2
- package/dist/model/ClientLogResultResponse.js +2 -2
- package/dist/model/ClientLogSession.js +2 -2
- package/dist/model/ConfirmCurrentUserEmailChangeRequest.js +113 -0
- package/dist/model/ConfirmRegistrationRequest.js +2 -2
- package/dist/model/CounterTotal.js +2 -2
- package/dist/model/CreateCurrentUserAvatarUploadUrlRequest.js +2 -2
- package/dist/model/CreateFriendRequestRequest.js +2 -2
- package/dist/model/CreateGroupIconUploadUrlRequest.js +2 -2
- package/dist/model/CreateGroupRequest.js +2 -2
- package/dist/model/CreateLobbyRequest.js +2 -2
- package/dist/model/CreatePartyRequest.js +2 -2
- package/dist/model/CurrentUser.js +2 -2
- package/dist/model/CurrentUserResponse.js +2 -2
- package/dist/model/DeclinePartyInviteRequest.js +2 -2
- package/dist/model/DeleteCurrentUserRequest.js +2 -2
- package/dist/model/DeleteNotificationsRequest.js +2 -2
- package/dist/model/DeletedCount.js +2 -2
- package/dist/model/DeletedCountResponse.js +2 -2
- package/dist/model/DemoteGroupMemberRequest.js +2 -2
- package/dist/model/DeviceLoginRequest.js +2 -2
- package/dist/model/EconomyFlowDay.js +2 -2
- package/dist/model/EconomyTotal.js +2 -2
- package/dist/model/Entitlement.js +2 -2
- package/dist/model/EntitlementPage.js +2 -2
- package/dist/model/ErrorResponse.js +2 -2
- package/dist/model/Friend.js +2 -2
- package/dist/model/FriendPage.js +2 -2
- package/dist/model/FriendRequest.js +2 -2
- package/dist/model/FriendRequestLists.js +2 -2
- package/dist/model/FriendRequestMeta.js +2 -2
- package/dist/model/FriendRequestResponse.js +2 -2
- package/dist/model/FriendRequestsResponse.js +2 -2
- package/dist/model/Group.js +2 -2
- package/dist/model/GroupInvite.js +2 -2
- package/dist/model/GroupInviteLink.js +2 -2
- package/dist/model/GroupInviteLinkPreview.js +2 -2
- package/dist/model/GroupInviteLinkPreviewResponse.js +2 -2
- package/dist/model/GroupInviteLinkResponse.js +2 -2
- package/dist/model/GroupInviteOutcome.js +2 -2
- package/dist/model/GroupInviteOutcomeResponse.js +2 -2
- package/dist/model/GroupInvitePage.js +2 -2
- package/dist/model/GroupJoinRequest.js +2 -2
- package/dist/model/GroupJoinRequestPage.js +2 -2
- package/dist/model/GroupJoinRequestResponse.js +2 -2
- package/dist/model/GroupMember.js +2 -2
- package/dist/model/GroupMemberPage.js +2 -2
- package/dist/model/GroupMemberResponse.js +2 -2
- package/dist/model/GroupPage.js +2 -2
- package/dist/model/GroupResponse.js +2 -2
- package/dist/model/Health.js +2 -2
- package/dist/model/HealthResponse.js +2 -2
- package/dist/model/HookCallResponse.js +2 -2
- package/dist/model/HookFunction.js +2 -2
- package/dist/model/HookFunctionPage.js +2 -2
- package/dist/model/HookSignature.js +2 -2
- package/dist/model/ImportedCount.js +2 -2
- package/dist/model/ImportedCountResponse.js +2 -2
- package/dist/model/InventoryItem.js +2 -2
- package/dist/model/InventoryItemPage.js +2 -2
- package/dist/model/InviteToGroupRequest.js +2 -2
- package/dist/model/InviteToPartyRequest.js +2 -2
- package/dist/model/ItemQuantity.js +2 -2
- package/dist/model/ItemQuantityResponse.js +2 -2
- package/dist/model/JoinLobbyRequest.js +2 -2
- package/dist/model/KickGroupMemberRequest.js +2 -2
- package/dist/model/KickPartyMemberRequest.js +2 -2
- package/dist/model/KickUserRequest.js +2 -2
- package/dist/model/KvEntry.js +2 -2
- package/dist/model/KvEntryResponse.js +2 -2
- package/dist/model/Leaderboard.js +2 -2
- package/dist/model/LeaderboardAction.js +2 -2
- package/dist/model/LeaderboardKeys.js +2 -2
- package/dist/model/LeaderboardKeysResponse.js +2 -2
- package/dist/model/LeaderboardPage.js +2 -2
- package/dist/model/LeaderboardRecord.js +2 -2
- package/dist/model/LeaderboardRecordPage.js +2 -2
- package/dist/model/LeaderboardRecordResponse.js +2 -2
- package/dist/model/LeaderboardResponse.js +2 -2
- package/dist/model/LeaderboardsBySlugResponse.js +2 -2
- package/dist/model/LedgerEntry.js +2 -2
- package/dist/model/LedgerEntryPage.js +2 -2
- package/dist/model/LinkAppleIosRequest.js +2 -2
- package/dist/model/LinkDeviceRequest.js +2 -2
- package/dist/model/LinkGoogleIdTokenRequest.js +2 -2
- package/dist/model/LinkProviderRequest.js +2 -2
- package/dist/model/LinkedProviders.js +2 -2
- package/dist/model/Lobby.js +2 -2
- package/dist/model/LobbyPage.js +2 -2
- package/dist/model/LobbyResponse.js +2 -2
- package/dist/model/LobbyStats.js +2 -2
- package/dist/model/LobbyStatsResponse.js +2 -2
- package/dist/model/LoginRequest.js +2 -2
- package/dist/model/LoginWithCodeRequest.js +2 -2
- package/dist/model/MarkChatReadRequest.js +2 -2
- package/dist/model/MarkNotificationsReadRequest.js +2 -2
- package/dist/model/MatchmakingJoinRequest.js +2 -2
- package/dist/model/MatchmakingJoinRequestMatchParamsValue.js +2 -2
- package/dist/model/MatchmakingQueue.js +2 -2
- package/dist/model/MatchmakingStats.js +2 -2
- package/dist/model/MatchmakingStatsResponse.js +2 -2
- package/dist/model/MatchmakingTicket.js +2 -2
- package/dist/model/MatchmakingTicketResponse.js +2 -2
- package/dist/model/MuteGroupMemberRequest.js +2 -2
- package/dist/model/MuteLobbyMemberRequest.js +2 -2
- package/dist/model/MutePartyMemberRequest.js +2 -2
- package/dist/model/MyReadyChecks.js +2 -2
- package/dist/model/MyReadyChecksResponse.js +2 -2
- package/dist/model/Notification.js +2 -2
- package/dist/model/NotificationGroupSetting.js +2 -2
- package/dist/model/NotificationPage.js +2 -2
- package/dist/model/NotificationResponse.js +2 -2
- package/dist/model/NotificationSettings.js +2 -2
- package/dist/model/NotificationSettingsResponse.js +2 -2
- package/dist/model/NotificationsRead.js +2 -2
- package/dist/model/NotificationsReadResponse.js +2 -2
- package/dist/model/OAuthAuthorization.js +2 -2
- package/dist/model/OAuthAuthorizationResponse.js +2 -2
- package/dist/model/OAuthSessionStatus.js +2 -2
- package/dist/model/OAuthSessionStatusResponse.js +2 -2
- package/dist/model/OauthApiCallbackRequest.js +2 -2
- package/dist/model/OauthCallbackApiAppleIosRequest.js +2 -2
- package/dist/model/OauthGoogleIdTokenRequest.js +2 -2
- package/dist/model/OkResponse.js +2 -2
- package/dist/model/OpenLobbyReadyCheckRequest.js +2 -2
- package/dist/model/OpenPartyReadyCheckRequest.js +2 -2
- package/dist/model/PageMeta.js +2 -2
- package/dist/model/Party.js +2 -2
- package/dist/model/PartyCreateLobbyRequest.js +2 -2
- package/dist/model/PartyInvite.js +2 -2
- package/dist/model/PartyInvitePage.js +2 -2
- package/dist/model/PartyJoinLobbyRequest.js +2 -2
- package/dist/model/PartyResponse.js +2 -2
- package/dist/model/PartyStats.js +2 -2
- package/dist/model/PartyStatsResponse.js +2 -2
- package/dist/model/PaymentCatalogEntry.js +2 -2
- package/dist/model/PaymentCatalogEntryPage.js +2 -2
- package/dist/model/PaymentProduct.js +2 -2
- package/dist/model/PaymentWebhookReceipt.js +2 -2
- package/dist/model/PaymentWebhookReceiptResponse.js +2 -2
- package/dist/model/PaymentsSteamCheckoutRequest.js +2 -2
- package/dist/model/PaymentsSteamFinalizeRequest.js +2 -2
- package/dist/model/PaymentsStripeCheckoutRequest.js +2 -2
- package/dist/model/PickCurrentUserAvatarIconRequest.js +2 -2
- package/dist/model/PlayResult.js +2 -2
- package/dist/model/PlayResultEvent.js +2 -2
- package/dist/model/PlayResultEvents.js +2 -2
- package/dist/model/PlayResultEventsResponse.js +2 -2
- package/dist/model/PlayResultPage.js +2 -2
- package/dist/model/PlayResultResponse.js +2 -2
- package/dist/model/PlayResultStat.js +2 -2
- package/dist/model/PlayerCard.js +2 -2
- package/dist/model/PlayerStats.js +2 -2
- package/dist/model/PlayerStatsResponse.js +2 -2
- package/dist/model/PromoteGroupMemberRequest.js +2 -2
- package/dist/model/ProviderLinkStatus.js +2 -2
- package/dist/model/ProviderLinkStatusResponse.js +2 -2
- package/dist/model/PublicUser.js +2 -2
- package/dist/model/PublicUserPage.js +2 -2
- package/dist/model/PublicUserResponse.js +2 -2
- package/dist/model/Purchase.js +2 -2
- package/dist/model/PurchaseResponse.js +2 -2
- package/dist/model/PurchaseValidation.js +2 -2
- package/dist/model/PurchaseValidationResponse.js +2 -2
- package/dist/model/PushToken.js +2 -2
- package/dist/model/PushTokenPage.js +2 -2
- package/dist/model/PushTokenResponse.js +2 -2
- package/dist/model/Quest.js +2 -2
- package/dist/model/QuestAction.js +2 -2
- package/dist/model/QuestClaim.js +2 -2
- package/dist/model/QuestClaimResponse.js +2 -2
- package/dist/model/QuestFunnelResponse.js +2 -2
- package/dist/model/QuestNote.js +2 -2
- package/dist/model/QuestNoteItemsInner.js +2 -2
- package/dist/model/QuestObjective.js +2 -2
- package/dist/model/QuestPage.js +2 -2
- package/dist/model/QuestProgress.js +2 -2
- package/dist/model/QuestReward.js +2 -2
- package/dist/model/QuestStats.js +2 -2
- package/dist/model/QuestStatsResponse.js +2 -2
- package/dist/model/QuickJoinRequest.js +2 -2
- package/dist/model/QuickJoinRequestMetadata.js +2 -2
- package/dist/model/ReadyCheckOutcomesResponse.js +2 -2
- package/dist/model/ReadyCheckParticipant.js +2 -2
- package/dist/model/ReadyCheckState.js +2 -2
- package/dist/model/ReadyCheckStateResponse.js +2 -2
- package/dist/model/RedeemQuestCodeRequest.js +2 -2
- package/dist/model/RefreshTokenRequest.js +2 -2
- package/dist/model/RegisterPushTokenRequest.js +2 -2
- package/dist/model/RegisterRequest.js +2 -2
- package/dist/model/Registration.js +2 -2
- package/dist/model/RegistrationResponse.js +2 -2
- package/dist/model/ReportChatMessageRequest.js +2 -2
- package/dist/model/ReportKind.js +2 -2
- package/dist/model/ReportKinds.js +2 -2
- package/dist/model/ReportKindsResponse.js +2 -2
- package/dist/model/ReportReceipt.js +2 -2
- package/dist/model/ReportReceiptResponse.js +2 -2
- package/dist/model/ReportRequest.js +2 -2
- package/dist/model/RequestCurrentUserEmailChangeRequest.js +126 -0
- package/dist/model/RequestLoginCodeRequest.js +2 -2
- package/dist/model/RequestPasswordResetRequest.js +2 -2
- package/dist/model/ResendConfirmationRequest.js +2 -2
- package/dist/model/ResetPasswordRequest.js +2 -2
- package/dist/model/ResolveLeaderboardSlugsRequest.js +2 -2
- package/dist/model/RespondReadyCheckRequest.js +2 -2
- package/dist/model/RetentionStatus.js +2 -2
- package/dist/model/RetentionStatusResponse.js +2 -2
- package/dist/model/SendChatMessageRequest.js +2 -2
- package/dist/model/SendNotificationRequest.js +2 -2
- package/dist/model/SentMessage.js +2 -2
- package/dist/model/SentMessagePage.js +2 -2
- package/dist/model/SentMessagePreview.js +2 -2
- package/dist/model/SentMessagePreviewResponse.js +2 -2
- package/dist/model/ServerStats.js +2 -2
- package/dist/model/ServerStatsResponse.js +2 -2
- package/dist/model/ServerTime.js +2 -2
- package/dist/model/ServerTimeResponse.js +2 -2
- package/dist/model/Session.js +2 -2
- package/dist/model/SessionResponse.js +2 -2
- package/dist/model/SetCurrentUserAvatarRequest.js +2 -2
- package/dist/model/SetGroupIconRequest.js +2 -2
- package/dist/model/SetLobbyStateRequest.js +2 -2
- package/dist/model/SignalingStats.js +2 -2
- package/dist/model/SignalingStatsResponse.js +2 -2
- package/dist/model/SteamCheckout.js +2 -2
- package/dist/model/SteamCheckoutResponse.js +2 -2
- package/dist/model/StorageObject.js +2 -2
- package/dist/model/StorageObjectPage.js +2 -2
- package/dist/model/StorageObjectResponse.js +2 -2
- package/dist/model/StorageUsage.js +2 -2
- package/dist/model/StorageUsageResponse.js +2 -2
- package/dist/model/StripeCheckout.js +2 -2
- package/dist/model/StripeCheckoutResponse.js +2 -2
- package/dist/model/TimeZones.js +2 -2
- package/dist/model/TimeZonesResponse.js +2 -2
- package/dist/model/Tournament.js +2 -2
- package/dist/model/TournamentBracket.js +2 -2
- package/dist/model/TournamentBracketPage.js +2 -2
- package/dist/model/TournamentEntry.js +2 -2
- package/dist/model/TournamentEntryPage.js +2 -2
- package/dist/model/TournamentEntryResponse.js +2 -2
- package/dist/model/TournamentMatch.js +2 -2
- package/dist/model/TournamentMatchCounts.js +2 -2
- package/dist/model/TournamentMatchResponse.js +2 -2
- package/dist/model/TournamentPage.js +2 -2
- package/dist/model/TournamentPlacement.js +2 -2
- package/dist/model/TournamentResponse.js +2 -2
- package/dist/model/TournamentStandings.js +2 -2
- package/dist/model/TournamentStandingsResponse.js +2 -2
- package/dist/model/TournamentStats.js +2 -2
- package/dist/model/UnmuteGroupMemberRequest.js +2 -2
- package/dist/model/UnmuteLobbyMemberRequest.js +2 -2
- package/dist/model/UnmutePartyMemberRequest.js +2 -2
- package/dist/model/UnreadCount.js +2 -2
- package/dist/model/UnreadCountResponse.js +2 -2
- package/dist/model/UpdateChatMessageRequest.js +2 -2
- package/dist/model/UpdateCurrentUserDisplayNameRequest.js +2 -2
- package/dist/model/UpdateCurrentUserPasswordRequest.js +2 -2
- package/dist/model/UpdateCurrentUserPreferenceRequest.js +2 -2
- package/dist/model/UpdateCurrentUserUsernameRequest.js +2 -2
- package/dist/model/UpdateGroupRequest.js +2 -2
- package/dist/model/UpdateLobbyRequest.js +2 -2
- package/dist/model/UpdateNotificationSettingsRequest.js +2 -2
- package/dist/model/UpdatePartyRequest.js +2 -2
- package/dist/model/UploadTicket.js +2 -2
- package/dist/model/UploadTicketResponse.js +2 -2
- package/dist/model/UserBrief.js +2 -2
- package/dist/model/UserBriefPage.js +2 -2
- package/dist/model/UserCard.js +2 -2
- package/dist/model/WalletBalance.js +2 -2
- package/dist/model/WalletBalanceResponse.js +2 -2
- package/dist/model/WalletBalancesResponse.js +2 -2
- package/package.json +2 -2
|
@@ -2222,7 +2222,277 @@ $Object.defineProperty(LobbyStateChanged.prototype,"_state_changed_at_ms",{get:$
|
|
|
2222
2222
|
* @static
|
|
2223
2223
|
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
2224
2224
|
* @returns {string} The type url
|
|
2225
|
-
*/InventoryChange.getTypeUrl=function(prefix){if(prefix===$undefined)prefix="type.googleapis.com";return prefix+"/gamend.realtime.v1.InventoryChange";};return InventoryChange;}();v1.
|
|
2225
|
+
*/InventoryChange.getTypeUrl=function(prefix){if(prefix===$undefined)prefix="type.googleapis.com";return prefix+"/gamend.realtime.v1.InventoryChange";};return InventoryChange;}();v1.Purchase=function(){/**
|
|
2226
|
+
* Properties of a Purchase.
|
|
2227
|
+
* @typedef {Object} gamend.realtime.v1.Purchase.$Properties
|
|
2228
|
+
* @property {string|null} [id] Purchase id
|
|
2229
|
+
* @property {string|null} [order_id] Purchase order_id
|
|
2230
|
+
* @property {string|null} [provider] Purchase provider
|
|
2231
|
+
* @property {string|null} [provider_transaction_id] Purchase provider_transaction_id
|
|
2232
|
+
* @property {string|null} [status] Purchase status
|
|
2233
|
+
* @property {string|null} [product_id] Purchase product_id
|
|
2234
|
+
* @property {string|null} [provider_product_id] Purchase provider_product_id
|
|
2235
|
+
* @property {number|Long|null} [quantity] Purchase quantity
|
|
2236
|
+
* @property {string|null} [currency] Purchase currency
|
|
2237
|
+
* @property {number|Long|null} [amount] Purchase amount
|
|
2238
|
+
* @property {string|null} [environment] Purchase environment
|
|
2239
|
+
* @property {number|Long|null} [purchased_at_ms] Purchase purchased_at_ms
|
|
2240
|
+
* @property {number|Long|null} [expires_at_ms] Purchase expires_at_ms
|
|
2241
|
+
* @property {number|Long|null} [revoked_at_ms] Purchase revoked_at_ms
|
|
2242
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
2243
|
+
*//**
|
|
2244
|
+
* Properties of a Purchase.
|
|
2245
|
+
* @memberof gamend.realtime.v1
|
|
2246
|
+
* @interface IPurchase
|
|
2247
|
+
* @augments gamend.realtime.v1.Purchase.$Properties
|
|
2248
|
+
* @deprecated Use gamend.realtime.v1.Purchase.$Properties instead.
|
|
2249
|
+
*//**
|
|
2250
|
+
* Shape of a Purchase.
|
|
2251
|
+
* @typedef {gamend.realtime.v1.Purchase.$Properties} gamend.realtime.v1.Purchase.$Shape
|
|
2252
|
+
*//**
|
|
2253
|
+
* Constructs a new Purchase.
|
|
2254
|
+
* @memberof gamend.realtime.v1
|
|
2255
|
+
* @classdesc Represents a Purchase.
|
|
2256
|
+
* @constructor
|
|
2257
|
+
* @param {gamend.realtime.v1.Purchase.$Properties=} [properties] Properties to set
|
|
2258
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
2259
|
+
*/var Purchase=function Purchase(properties){if(properties)for(var keys=$Object.keys(properties),i=0;i<keys.length;++i)if(properties[keys[i]]!=null&&keys[i]!=="__proto__")this[keys[i]]=properties[keys[i]];};/**
|
|
2260
|
+
* Purchase id.
|
|
2261
|
+
* @member {string} id
|
|
2262
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2263
|
+
* @instance
|
|
2264
|
+
*/Purchase.prototype.id="";/**
|
|
2265
|
+
* Purchase order_id.
|
|
2266
|
+
* @member {string} order_id
|
|
2267
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2268
|
+
* @instance
|
|
2269
|
+
*/Purchase.prototype.order_id="";/**
|
|
2270
|
+
* Purchase provider.
|
|
2271
|
+
* @member {string} provider
|
|
2272
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2273
|
+
* @instance
|
|
2274
|
+
*/Purchase.prototype.provider="";/**
|
|
2275
|
+
* Purchase provider_transaction_id.
|
|
2276
|
+
* @member {string} provider_transaction_id
|
|
2277
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2278
|
+
* @instance
|
|
2279
|
+
*/Purchase.prototype.provider_transaction_id="";/**
|
|
2280
|
+
* Purchase status.
|
|
2281
|
+
* @member {string} status
|
|
2282
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2283
|
+
* @instance
|
|
2284
|
+
*/Purchase.prototype.status="";/**
|
|
2285
|
+
* Purchase product_id.
|
|
2286
|
+
* @member {string} product_id
|
|
2287
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2288
|
+
* @instance
|
|
2289
|
+
*/Purchase.prototype.product_id="";/**
|
|
2290
|
+
* Purchase provider_product_id.
|
|
2291
|
+
* @member {string} provider_product_id
|
|
2292
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2293
|
+
* @instance
|
|
2294
|
+
*/Purchase.prototype.provider_product_id="";/**
|
|
2295
|
+
* Purchase quantity.
|
|
2296
|
+
* @member {number|Long} quantity
|
|
2297
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2298
|
+
* @instance
|
|
2299
|
+
*/Purchase.prototype.quantity=$util.Long?$util.Long.fromBits(0,0,false):0;/**
|
|
2300
|
+
* Purchase currency.
|
|
2301
|
+
* @member {string} currency
|
|
2302
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2303
|
+
* @instance
|
|
2304
|
+
*/Purchase.prototype.currency="";/**
|
|
2305
|
+
* Purchase amount.
|
|
2306
|
+
* @member {number|Long} amount
|
|
2307
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2308
|
+
* @instance
|
|
2309
|
+
*/Purchase.prototype.amount=$util.Long?$util.Long.fromBits(0,0,false):0;/**
|
|
2310
|
+
* Purchase environment.
|
|
2311
|
+
* @member {string} environment
|
|
2312
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2313
|
+
* @instance
|
|
2314
|
+
*/Purchase.prototype.environment="";/**
|
|
2315
|
+
* Purchase purchased_at_ms.
|
|
2316
|
+
* @member {number|Long} purchased_at_ms
|
|
2317
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2318
|
+
* @instance
|
|
2319
|
+
*/Purchase.prototype.purchased_at_ms=$util.Long?$util.Long.fromBits(0,0,false):0;/**
|
|
2320
|
+
* Purchase expires_at_ms.
|
|
2321
|
+
* @member {number|Long} expires_at_ms
|
|
2322
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2323
|
+
* @instance
|
|
2324
|
+
*/Purchase.prototype.expires_at_ms=$util.Long?$util.Long.fromBits(0,0,false):0;/**
|
|
2325
|
+
* Purchase revoked_at_ms.
|
|
2326
|
+
* @member {number|Long} revoked_at_ms
|
|
2327
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2328
|
+
* @instance
|
|
2329
|
+
*/Purchase.prototype.revoked_at_ms=$util.Long?$util.Long.fromBits(0,0,false):0;/**
|
|
2330
|
+
* Encodes the specified Purchase message. Does not implicitly {@link gamend.realtime.v1.Purchase.verify|verify} messages.
|
|
2331
|
+
* @function encode
|
|
2332
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2333
|
+
* @static
|
|
2334
|
+
* @param {gamend.realtime.v1.Purchase.$Properties} message Purchase message or plain object to encode
|
|
2335
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2336
|
+
* @returns {$protobuf.Writer} Writer
|
|
2337
|
+
*/Purchase.encode=function(message,writer,_depth){if(!writer)writer=$Writer.create();if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");if(message.id!=null&&$Object.hasOwnProperty.call(message,"id")&&message.id!=="")writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);if(message.order_id!=null&&$Object.hasOwnProperty.call(message,"order_id")&&message.order_id!=="")writer.uint32(/* id 2, wireType 2 =*/18).string(message.order_id);if(message.provider!=null&&$Object.hasOwnProperty.call(message,"provider")&&message.provider!=="")writer.uint32(/* id 3, wireType 2 =*/26).string(message.provider);if(message.provider_transaction_id!=null&&$Object.hasOwnProperty.call(message,"provider_transaction_id")&&message.provider_transaction_id!=="")writer.uint32(/* id 4, wireType 2 =*/34).string(message.provider_transaction_id);if(message.status!=null&&$Object.hasOwnProperty.call(message,"status")&&message.status!=="")writer.uint32(/* id 5, wireType 2 =*/42).string(message.status);if(message.product_id!=null&&$Object.hasOwnProperty.call(message,"product_id")&&message.product_id!=="")writer.uint32(/* id 6, wireType 2 =*/50).string(message.product_id);if(message.provider_product_id!=null&&$Object.hasOwnProperty.call(message,"provider_product_id")&&message.provider_product_id!=="")writer.uint32(/* id 7, wireType 2 =*/58).string(message.provider_product_id);if(message.quantity!=null&&$Object.hasOwnProperty.call(message,"quantity")&&(_typeof(message.quantity)==="object"?message.quantity.low||message.quantity.high:message.quantity!==0))writer.uint32(/* id 8, wireType 0 =*/64).int64(message.quantity);if(message.currency!=null&&$Object.hasOwnProperty.call(message,"currency")&&message.currency!=="")writer.uint32(/* id 9, wireType 2 =*/74).string(message.currency);if(message.amount!=null&&$Object.hasOwnProperty.call(message,"amount")&&(_typeof(message.amount)==="object"?message.amount.low||message.amount.high:message.amount!==0))writer.uint32(/* id 10, wireType 0 =*/80).int64(message.amount);if(message.environment!=null&&$Object.hasOwnProperty.call(message,"environment")&&message.environment!=="")writer.uint32(/* id 11, wireType 2 =*/90).string(message.environment);if(message.purchased_at_ms!=null&&$Object.hasOwnProperty.call(message,"purchased_at_ms")&&(_typeof(message.purchased_at_ms)==="object"?message.purchased_at_ms.low||message.purchased_at_ms.high:message.purchased_at_ms!==0))writer.uint32(/* id 12, wireType 0 =*/96).int64(message.purchased_at_ms);if(message.expires_at_ms!=null&&$Object.hasOwnProperty.call(message,"expires_at_ms")&&(_typeof(message.expires_at_ms)==="object"?message.expires_at_ms.low||message.expires_at_ms.high:message.expires_at_ms!==0))writer.uint32(/* id 13, wireType 0 =*/104).int64(message.expires_at_ms);if(message.revoked_at_ms!=null&&$Object.hasOwnProperty.call(message,"revoked_at_ms")&&(_typeof(message.revoked_at_ms)==="object"?message.revoked_at_ms.low||message.revoked_at_ms.high:message.revoked_at_ms!==0))writer.uint32(/* id 14, wireType 0 =*/112).int64(message.revoked_at_ms);if(message.$unknowns!=null&&$Object.hasOwnProperty.call(message,"$unknowns"))for(var i=0;i<message.$unknowns.length;++i)writer.raw(message.$unknowns[i]);return writer;};/**
|
|
2338
|
+
* Decodes a Purchase message from the specified reader or buffer.
|
|
2339
|
+
* @function decode
|
|
2340
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2341
|
+
* @static
|
|
2342
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2343
|
+
* @param {number} [length] Message length if known beforehand
|
|
2344
|
+
* @returns {gamend.realtime.v1.Purchase & gamend.realtime.v1.Purchase.$Shape} Purchase
|
|
2345
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2346
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2347
|
+
*/Purchase.decode=function(reader,length,_end,_depth,_target){if(!(reader instanceof $Reader))reader=$Reader.create(reader);if(_depth===$undefined)_depth=0;if(_depth>$Reader.recursionLimit)throw $Error("max depth exceeded");var end,message,value;if(length===$undefined)end=reader.len;else{end=reader.pos+length;if(end>reader.len)throw $RangeError("index out of range");length=reader.len;reader.len=end;}message=_target||new $root.gamend.realtime.v1.Purchase();while(reader.pos<end){var start=reader.pos;var tag=reader.tag();if(tag===_end){_end=$undefined;break;}var wireType=tag&7;switch(tag>>>=3){case 1:{if(wireType!==2)break;if((value=reader.stringVerify()).length)message.id=value;else delete message.id;continue;}case 2:{if(wireType!==2)break;if((value=reader.stringVerify()).length)message.order_id=value;else delete message.order_id;continue;}case 3:{if(wireType!==2)break;if((value=reader.stringVerify()).length)message.provider=value;else delete message.provider;continue;}case 4:{if(wireType!==2)break;if((value=reader.stringVerify()).length)message.provider_transaction_id=value;else delete message.provider_transaction_id;continue;}case 5:{if(wireType!==2)break;if((value=reader.stringVerify()).length)message.status=value;else delete message.status;continue;}case 6:{if(wireType!==2)break;if((value=reader.stringVerify()).length)message.product_id=value;else delete message.product_id;continue;}case 7:{if(wireType!==2)break;if((value=reader.stringVerify()).length)message.provider_product_id=value;else delete message.provider_product_id;continue;}case 8:{if(wireType!==0)break;if(_typeof(value=reader.int64())==="object"?value.low||value.high:value!==0)message.quantity=value;else delete message.quantity;continue;}case 9:{if(wireType!==2)break;if((value=reader.stringVerify()).length)message.currency=value;else delete message.currency;continue;}case 10:{if(wireType!==0)break;if(_typeof(value=reader.int64())==="object"?value.low||value.high:value!==0)message.amount=value;else delete message.amount;continue;}case 11:{if(wireType!==2)break;if((value=reader.stringVerify()).length)message.environment=value;else delete message.environment;continue;}case 12:{if(wireType!==0)break;if(_typeof(value=reader.int64())==="object"?value.low||value.high:value!==0)message.purchased_at_ms=value;else delete message.purchased_at_ms;continue;}case 13:{if(wireType!==0)break;if(_typeof(value=reader.int64())==="object"?value.low||value.high:value!==0)message.expires_at_ms=value;else delete message.expires_at_ms;continue;}case 14:{if(wireType!==0)break;if(_typeof(value=reader.int64())==="object"?value.low||value.high:value!==0)message.revoked_at_ms=value;else delete message.revoked_at_ms;continue;}}reader.skipType(wireType,_depth,tag);if(!reader.discardUnknown){$util.makeProp(message,"$unknowns",false);(message.$unknowns||(message.$unknowns=[])).push(reader.raw(start,reader.pos));}}if(length!==$undefined){if(reader.pos!==end)throw $RangeError("index out of range");reader.len=length;}if(_end!==$undefined)throw $Error("missing end group");return message;};/**
|
|
2348
|
+
* Creates a Purchase message from a plain object. Also converts values to their respective internal types.
|
|
2349
|
+
* @function fromObject
|
|
2350
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2351
|
+
* @static
|
|
2352
|
+
* @param {Object.<string,*>} object Plain object
|
|
2353
|
+
* @returns {gamend.realtime.v1.Purchase} Purchase
|
|
2354
|
+
*/Purchase.fromObject=function(object,_depth){if(object instanceof $root.gamend.realtime.v1.Purchase)return object;if(!$util.isObject(object))throw $TypeError(".gamend.realtime.v1.Purchase: object expected");if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var message=new $root.gamend.realtime.v1.Purchase();if(object.id!=null)if(typeof object.id!=="string"||object.id.length)message.id=$String(object.id);if(object.order_id!=null)if(typeof object.order_id!=="string"||object.order_id.length)message.order_id=$String(object.order_id);if(object.provider!=null)if(typeof object.provider!=="string"||object.provider.length)message.provider=$String(object.provider);if(object.provider_transaction_id!=null)if(typeof object.provider_transaction_id!=="string"||object.provider_transaction_id.length)message.provider_transaction_id=$String(object.provider_transaction_id);if(object.status!=null)if(typeof object.status!=="string"||object.status.length)message.status=$String(object.status);if(object.product_id!=null)if(typeof object.product_id!=="string"||object.product_id.length)message.product_id=$String(object.product_id);if(object.provider_product_id!=null)if(typeof object.provider_product_id!=="string"||object.provider_product_id.length)message.provider_product_id=$String(object.provider_product_id);if(object.quantity!=null)if(_typeof(object.quantity)==="object"?object.quantity.low||object.quantity.high:$Number(object.quantity)!==0)if($util.Long)message.quantity=$util.Long.fromValue(object.quantity,false);else if(typeof object.quantity==="string")message.quantity=$parseInt(object.quantity,10);else if(typeof object.quantity==="number")message.quantity=object.quantity;else if(_typeof(object.quantity)==="object")message.quantity=new $util.LongBits(object.quantity.low>>>0,object.quantity.high>>>0).toNumber();if(object.currency!=null)if(typeof object.currency!=="string"||object.currency.length)message.currency=$String(object.currency);if(object.amount!=null)if(_typeof(object.amount)==="object"?object.amount.low||object.amount.high:$Number(object.amount)!==0)if($util.Long)message.amount=$util.Long.fromValue(object.amount,false);else if(typeof object.amount==="string")message.amount=$parseInt(object.amount,10);else if(typeof object.amount==="number")message.amount=object.amount;else if(_typeof(object.amount)==="object")message.amount=new $util.LongBits(object.amount.low>>>0,object.amount.high>>>0).toNumber();if(object.environment!=null)if(typeof object.environment!=="string"||object.environment.length)message.environment=$String(object.environment);if(object.purchased_at_ms!=null)if(_typeof(object.purchased_at_ms)==="object"?object.purchased_at_ms.low||object.purchased_at_ms.high:$Number(object.purchased_at_ms)!==0)if($util.Long)message.purchased_at_ms=$util.Long.fromValue(object.purchased_at_ms,false);else if(typeof object.purchased_at_ms==="string")message.purchased_at_ms=$parseInt(object.purchased_at_ms,10);else if(typeof object.purchased_at_ms==="number")message.purchased_at_ms=object.purchased_at_ms;else if(_typeof(object.purchased_at_ms)==="object")message.purchased_at_ms=new $util.LongBits(object.purchased_at_ms.low>>>0,object.purchased_at_ms.high>>>0).toNumber();if(object.expires_at_ms!=null)if(_typeof(object.expires_at_ms)==="object"?object.expires_at_ms.low||object.expires_at_ms.high:$Number(object.expires_at_ms)!==0)if($util.Long)message.expires_at_ms=$util.Long.fromValue(object.expires_at_ms,false);else if(typeof object.expires_at_ms==="string")message.expires_at_ms=$parseInt(object.expires_at_ms,10);else if(typeof object.expires_at_ms==="number")message.expires_at_ms=object.expires_at_ms;else if(_typeof(object.expires_at_ms)==="object")message.expires_at_ms=new $util.LongBits(object.expires_at_ms.low>>>0,object.expires_at_ms.high>>>0).toNumber();if(object.revoked_at_ms!=null)if(_typeof(object.revoked_at_ms)==="object"?object.revoked_at_ms.low||object.revoked_at_ms.high:$Number(object.revoked_at_ms)!==0)if($util.Long)message.revoked_at_ms=$util.Long.fromValue(object.revoked_at_ms,false);else if(typeof object.revoked_at_ms==="string")message.revoked_at_ms=$parseInt(object.revoked_at_ms,10);else if(typeof object.revoked_at_ms==="number")message.revoked_at_ms=object.revoked_at_ms;else if(_typeof(object.revoked_at_ms)==="object")message.revoked_at_ms=new $util.LongBits(object.revoked_at_ms.low>>>0,object.revoked_at_ms.high>>>0).toNumber();return message;};/**
|
|
2355
|
+
* Creates a plain object from a Purchase message. Also converts values to other types if specified.
|
|
2356
|
+
* @function toObject
|
|
2357
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2358
|
+
* @static
|
|
2359
|
+
* @param {gamend.realtime.v1.Purchase} message Purchase
|
|
2360
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2361
|
+
* @returns {Object.<string,*>} Plain object
|
|
2362
|
+
*/Purchase.toObject=function(message,options,_depth){if(!options)options={};if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var object={};if(options.defaults){object.id="";object.order_id="";object.provider="";object.provider_transaction_id="";object.status="";object.product_id="";object.provider_product_id="";if($util.Long){var _long0=new $util.Long(0,0,false);object.quantity=options.longs===$String?_long0.toString():options.longs===$Number?_long0.toNumber():typeof $BigInt!=="undefined"&&options.longs===$BigInt?_long0.toBigInt():_long0;}else object.quantity=options.longs===$String?"0":typeof $BigInt!=="undefined"&&options.longs===$BigInt?$BigInt("0"):0;object.currency="";if($util.Long){var _long1=new $util.Long(0,0,false);object.amount=options.longs===$String?_long1.toString():options.longs===$Number?_long1.toNumber():typeof $BigInt!=="undefined"&&options.longs===$BigInt?_long1.toBigInt():_long1;}else object.amount=options.longs===$String?"0":typeof $BigInt!=="undefined"&&options.longs===$BigInt?$BigInt("0"):0;object.environment="";if($util.Long){var _long10=new $util.Long(0,0,false);object.purchased_at_ms=options.longs===$String?_long10.toString():options.longs===$Number?_long10.toNumber():typeof $BigInt!=="undefined"&&options.longs===$BigInt?_long10.toBigInt():_long10;}else object.purchased_at_ms=options.longs===$String?"0":typeof $BigInt!=="undefined"&&options.longs===$BigInt?$BigInt("0"):0;if($util.Long){var _long11=new $util.Long(0,0,false);object.expires_at_ms=options.longs===$String?_long11.toString():options.longs===$Number?_long11.toNumber():typeof $BigInt!=="undefined"&&options.longs===$BigInt?_long11.toBigInt():_long11;}else object.expires_at_ms=options.longs===$String?"0":typeof $BigInt!=="undefined"&&options.longs===$BigInt?$BigInt("0"):0;if($util.Long){var _long12=new $util.Long(0,0,false);object.revoked_at_ms=options.longs===$String?_long12.toString():options.longs===$Number?_long12.toNumber():typeof $BigInt!=="undefined"&&options.longs===$BigInt?_long12.toBigInt():_long12;}else object.revoked_at_ms=options.longs===$String?"0":typeof $BigInt!=="undefined"&&options.longs===$BigInt?$BigInt("0"):0;}if(message.id!=null&&$Object.hasOwnProperty.call(message,"id"))object.id=message.id;if(message.order_id!=null&&$Object.hasOwnProperty.call(message,"order_id"))object.order_id=message.order_id;if(message.provider!=null&&$Object.hasOwnProperty.call(message,"provider"))object.provider=message.provider;if(message.provider_transaction_id!=null&&$Object.hasOwnProperty.call(message,"provider_transaction_id"))object.provider_transaction_id=message.provider_transaction_id;if(message.status!=null&&$Object.hasOwnProperty.call(message,"status"))object.status=message.status;if(message.product_id!=null&&$Object.hasOwnProperty.call(message,"product_id"))object.product_id=message.product_id;if(message.provider_product_id!=null&&$Object.hasOwnProperty.call(message,"provider_product_id"))object.provider_product_id=message.provider_product_id;if(message.quantity!=null&&$Object.hasOwnProperty.call(message,"quantity"))if(typeof $BigInt!=="undefined"&&options.longs===$BigInt)object.quantity=typeof message.quantity==="number"?$BigInt(message.quantity):$util.Long.fromBits(message.quantity.low>>>0,message.quantity.high>>>0,false).toBigInt();else if(typeof message.quantity==="number")object.quantity=options.longs===$String?$String(message.quantity):message.quantity;else object.quantity=options.longs===$String?$util.Long.prototype.toString.call(message.quantity):options.longs===$Number?new $util.LongBits(message.quantity.low>>>0,message.quantity.high>>>0).toNumber():message.quantity;if(message.currency!=null&&$Object.hasOwnProperty.call(message,"currency"))object.currency=message.currency;if(message.amount!=null&&$Object.hasOwnProperty.call(message,"amount"))if(typeof $BigInt!=="undefined"&&options.longs===$BigInt)object.amount=typeof message.amount==="number"?$BigInt(message.amount):$util.Long.fromBits(message.amount.low>>>0,message.amount.high>>>0,false).toBigInt();else if(typeof message.amount==="number")object.amount=options.longs===$String?$String(message.amount):message.amount;else object.amount=options.longs===$String?$util.Long.prototype.toString.call(message.amount):options.longs===$Number?new $util.LongBits(message.amount.low>>>0,message.amount.high>>>0).toNumber():message.amount;if(message.environment!=null&&$Object.hasOwnProperty.call(message,"environment"))object.environment=message.environment;if(message.purchased_at_ms!=null&&$Object.hasOwnProperty.call(message,"purchased_at_ms"))if(typeof $BigInt!=="undefined"&&options.longs===$BigInt)object.purchased_at_ms=typeof message.purchased_at_ms==="number"?$BigInt(message.purchased_at_ms):$util.Long.fromBits(message.purchased_at_ms.low>>>0,message.purchased_at_ms.high>>>0,false).toBigInt();else if(typeof message.purchased_at_ms==="number")object.purchased_at_ms=options.longs===$String?$String(message.purchased_at_ms):message.purchased_at_ms;else object.purchased_at_ms=options.longs===$String?$util.Long.prototype.toString.call(message.purchased_at_ms):options.longs===$Number?new $util.LongBits(message.purchased_at_ms.low>>>0,message.purchased_at_ms.high>>>0).toNumber():message.purchased_at_ms;if(message.expires_at_ms!=null&&$Object.hasOwnProperty.call(message,"expires_at_ms"))if(typeof $BigInt!=="undefined"&&options.longs===$BigInt)object.expires_at_ms=typeof message.expires_at_ms==="number"?$BigInt(message.expires_at_ms):$util.Long.fromBits(message.expires_at_ms.low>>>0,message.expires_at_ms.high>>>0,false).toBigInt();else if(typeof message.expires_at_ms==="number")object.expires_at_ms=options.longs===$String?$String(message.expires_at_ms):message.expires_at_ms;else object.expires_at_ms=options.longs===$String?$util.Long.prototype.toString.call(message.expires_at_ms):options.longs===$Number?new $util.LongBits(message.expires_at_ms.low>>>0,message.expires_at_ms.high>>>0).toNumber():message.expires_at_ms;if(message.revoked_at_ms!=null&&$Object.hasOwnProperty.call(message,"revoked_at_ms"))if(typeof $BigInt!=="undefined"&&options.longs===$BigInt)object.revoked_at_ms=typeof message.revoked_at_ms==="number"?$BigInt(message.revoked_at_ms):$util.Long.fromBits(message.revoked_at_ms.low>>>0,message.revoked_at_ms.high>>>0,false).toBigInt();else if(typeof message.revoked_at_ms==="number")object.revoked_at_ms=options.longs===$String?$String(message.revoked_at_ms):message.revoked_at_ms;else object.revoked_at_ms=options.longs===$String?$util.Long.prototype.toString.call(message.revoked_at_ms):options.longs===$Number?new $util.LongBits(message.revoked_at_ms.low>>>0,message.revoked_at_ms.high>>>0).toNumber():message.revoked_at_ms;return object;};/**
|
|
2363
|
+
* Converts this Purchase to JSON.
|
|
2364
|
+
* @function toJSON
|
|
2365
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2366
|
+
* @instance
|
|
2367
|
+
* @returns {Object.<string,*>} JSON object
|
|
2368
|
+
*/Purchase.prototype.toJSON=function(){return Purchase.toObject(this,_minimal["default"].util.toJSONOptions);};/**
|
|
2369
|
+
* Gets the type url for Purchase
|
|
2370
|
+
* @function getTypeUrl
|
|
2371
|
+
* @memberof gamend.realtime.v1.Purchase
|
|
2372
|
+
* @static
|
|
2373
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
2374
|
+
* @returns {string} The type url
|
|
2375
|
+
*/Purchase.getTypeUrl=function(prefix){if(prefix===$undefined)prefix="type.googleapis.com";return prefix+"/gamend.realtime.v1.Purchase";};return Purchase;}();v1.Entitlement=function(){/**
|
|
2376
|
+
* Properties of an Entitlement.
|
|
2377
|
+
* @typedef {Object} gamend.realtime.v1.Entitlement.$Properties
|
|
2378
|
+
* @property {string|null} [id] Entitlement id
|
|
2379
|
+
* @property {string|null} [key] Entitlement key
|
|
2380
|
+
* @property {string|null} [status] Entitlement status
|
|
2381
|
+
* @property {string|null} [product_id] Entitlement product_id
|
|
2382
|
+
* @property {string|null} [source_purchase_id] Entitlement source_purchase_id
|
|
2383
|
+
* @property {number|Long|null} [starts_at_ms] Entitlement starts_at_ms
|
|
2384
|
+
* @property {number|Long|null} [expires_at_ms] Entitlement expires_at_ms
|
|
2385
|
+
* @property {number|Long|null} [revoked_at_ms] Entitlement revoked_at_ms
|
|
2386
|
+
* @property {Uint8Array|null} [metadata_json] Entitlement metadata_json
|
|
2387
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
2388
|
+
*//**
|
|
2389
|
+
* Properties of an Entitlement.
|
|
2390
|
+
* @memberof gamend.realtime.v1
|
|
2391
|
+
* @interface IEntitlement
|
|
2392
|
+
* @augments gamend.realtime.v1.Entitlement.$Properties
|
|
2393
|
+
* @deprecated Use gamend.realtime.v1.Entitlement.$Properties instead.
|
|
2394
|
+
*//**
|
|
2395
|
+
* Shape of an Entitlement.
|
|
2396
|
+
* @typedef {gamend.realtime.v1.Entitlement.$Properties} gamend.realtime.v1.Entitlement.$Shape
|
|
2397
|
+
*//**
|
|
2398
|
+
* Constructs a new Entitlement.
|
|
2399
|
+
* @memberof gamend.realtime.v1
|
|
2400
|
+
* @classdesc Represents an Entitlement.
|
|
2401
|
+
* @constructor
|
|
2402
|
+
* @param {gamend.realtime.v1.Entitlement.$Properties=} [properties] Properties to set
|
|
2403
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
2404
|
+
*/var Entitlement=function Entitlement(properties){if(properties)for(var keys=$Object.keys(properties),i=0;i<keys.length;++i)if(properties[keys[i]]!=null&&keys[i]!=="__proto__")this[keys[i]]=properties[keys[i]];};/**
|
|
2405
|
+
* Entitlement id.
|
|
2406
|
+
* @member {string} id
|
|
2407
|
+
* @memberof gamend.realtime.v1.Entitlement
|
|
2408
|
+
* @instance
|
|
2409
|
+
*/Entitlement.prototype.id="";/**
|
|
2410
|
+
* Entitlement key.
|
|
2411
|
+
* @member {string} key
|
|
2412
|
+
* @memberof gamend.realtime.v1.Entitlement
|
|
2413
|
+
* @instance
|
|
2414
|
+
*/Entitlement.prototype.key="";/**
|
|
2415
|
+
* Entitlement status.
|
|
2416
|
+
* @member {string} status
|
|
2417
|
+
* @memberof gamend.realtime.v1.Entitlement
|
|
2418
|
+
* @instance
|
|
2419
|
+
*/Entitlement.prototype.status="";/**
|
|
2420
|
+
* Entitlement product_id.
|
|
2421
|
+
* @member {string} product_id
|
|
2422
|
+
* @memberof gamend.realtime.v1.Entitlement
|
|
2423
|
+
* @instance
|
|
2424
|
+
*/Entitlement.prototype.product_id="";/**
|
|
2425
|
+
* Entitlement source_purchase_id.
|
|
2426
|
+
* @member {string} source_purchase_id
|
|
2427
|
+
* @memberof gamend.realtime.v1.Entitlement
|
|
2428
|
+
* @instance
|
|
2429
|
+
*/Entitlement.prototype.source_purchase_id="";/**
|
|
2430
|
+
* Entitlement starts_at_ms.
|
|
2431
|
+
* @member {number|Long} starts_at_ms
|
|
2432
|
+
* @memberof gamend.realtime.v1.Entitlement
|
|
2433
|
+
* @instance
|
|
2434
|
+
*/Entitlement.prototype.starts_at_ms=$util.Long?$util.Long.fromBits(0,0,false):0;/**
|
|
2435
|
+
* Entitlement expires_at_ms.
|
|
2436
|
+
* @member {number|Long} expires_at_ms
|
|
2437
|
+
* @memberof gamend.realtime.v1.Entitlement
|
|
2438
|
+
* @instance
|
|
2439
|
+
*/Entitlement.prototype.expires_at_ms=$util.Long?$util.Long.fromBits(0,0,false):0;/**
|
|
2440
|
+
* Entitlement revoked_at_ms.
|
|
2441
|
+
* @member {number|Long} revoked_at_ms
|
|
2442
|
+
* @memberof gamend.realtime.v1.Entitlement
|
|
2443
|
+
* @instance
|
|
2444
|
+
*/Entitlement.prototype.revoked_at_ms=$util.Long?$util.Long.fromBits(0,0,false):0;/**
|
|
2445
|
+
* Entitlement metadata_json.
|
|
2446
|
+
* @member {Uint8Array} metadata_json
|
|
2447
|
+
* @memberof gamend.realtime.v1.Entitlement
|
|
2448
|
+
* @instance
|
|
2449
|
+
*/Entitlement.prototype.metadata_json=$util.newBuffer([]);/**
|
|
2450
|
+
* Encodes the specified Entitlement message. Does not implicitly {@link gamend.realtime.v1.Entitlement.verify|verify} messages.
|
|
2451
|
+
* @function encode
|
|
2452
|
+
* @memberof gamend.realtime.v1.Entitlement
|
|
2453
|
+
* @static
|
|
2454
|
+
* @param {gamend.realtime.v1.Entitlement.$Properties} message Entitlement message or plain object to encode
|
|
2455
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2456
|
+
* @returns {$protobuf.Writer} Writer
|
|
2457
|
+
*/Entitlement.encode=function(message,writer,_depth){if(!writer)writer=$Writer.create();if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");if(message.id!=null&&$Object.hasOwnProperty.call(message,"id")&&message.id!=="")writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);if(message.key!=null&&$Object.hasOwnProperty.call(message,"key")&&message.key!=="")writer.uint32(/* id 2, wireType 2 =*/18).string(message.key);if(message.status!=null&&$Object.hasOwnProperty.call(message,"status")&&message.status!=="")writer.uint32(/* id 3, wireType 2 =*/26).string(message.status);if(message.product_id!=null&&$Object.hasOwnProperty.call(message,"product_id")&&message.product_id!=="")writer.uint32(/* id 4, wireType 2 =*/34).string(message.product_id);if(message.source_purchase_id!=null&&$Object.hasOwnProperty.call(message,"source_purchase_id")&&message.source_purchase_id!=="")writer.uint32(/* id 5, wireType 2 =*/42).string(message.source_purchase_id);if(message.starts_at_ms!=null&&$Object.hasOwnProperty.call(message,"starts_at_ms")&&(_typeof(message.starts_at_ms)==="object"?message.starts_at_ms.low||message.starts_at_ms.high:message.starts_at_ms!==0))writer.uint32(/* id 6, wireType 0 =*/48).int64(message.starts_at_ms);if(message.expires_at_ms!=null&&$Object.hasOwnProperty.call(message,"expires_at_ms")&&(_typeof(message.expires_at_ms)==="object"?message.expires_at_ms.low||message.expires_at_ms.high:message.expires_at_ms!==0))writer.uint32(/* id 7, wireType 0 =*/56).int64(message.expires_at_ms);if(message.revoked_at_ms!=null&&$Object.hasOwnProperty.call(message,"revoked_at_ms")&&(_typeof(message.revoked_at_ms)==="object"?message.revoked_at_ms.low||message.revoked_at_ms.high:message.revoked_at_ms!==0))writer.uint32(/* id 8, wireType 0 =*/64).int64(message.revoked_at_ms);if(message.metadata_json!=null&&$Object.hasOwnProperty.call(message,"metadata_json")&&message.metadata_json.length)writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.metadata_json);if(message.$unknowns!=null&&$Object.hasOwnProperty.call(message,"$unknowns"))for(var i=0;i<message.$unknowns.length;++i)writer.raw(message.$unknowns[i]);return writer;};/**
|
|
2458
|
+
* Decodes an Entitlement message from the specified reader or buffer.
|
|
2459
|
+
* @function decode
|
|
2460
|
+
* @memberof gamend.realtime.v1.Entitlement
|
|
2461
|
+
* @static
|
|
2462
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2463
|
+
* @param {number} [length] Message length if known beforehand
|
|
2464
|
+
* @returns {gamend.realtime.v1.Entitlement & gamend.realtime.v1.Entitlement.$Shape} Entitlement
|
|
2465
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2466
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2467
|
+
*/Entitlement.decode=function(reader,length,_end,_depth,_target){if(!(reader instanceof $Reader))reader=$Reader.create(reader);if(_depth===$undefined)_depth=0;if(_depth>$Reader.recursionLimit)throw $Error("max depth exceeded");var end,message,value;if(length===$undefined)end=reader.len;else{end=reader.pos+length;if(end>reader.len)throw $RangeError("index out of range");length=reader.len;reader.len=end;}message=_target||new $root.gamend.realtime.v1.Entitlement();while(reader.pos<end){var start=reader.pos;var tag=reader.tag();if(tag===_end){_end=$undefined;break;}var wireType=tag&7;switch(tag>>>=3){case 1:{if(wireType!==2)break;if((value=reader.stringVerify()).length)message.id=value;else delete message.id;continue;}case 2:{if(wireType!==2)break;if((value=reader.stringVerify()).length)message.key=value;else delete message.key;continue;}case 3:{if(wireType!==2)break;if((value=reader.stringVerify()).length)message.status=value;else delete message.status;continue;}case 4:{if(wireType!==2)break;if((value=reader.stringVerify()).length)message.product_id=value;else delete message.product_id;continue;}case 5:{if(wireType!==2)break;if((value=reader.stringVerify()).length)message.source_purchase_id=value;else delete message.source_purchase_id;continue;}case 6:{if(wireType!==0)break;if(_typeof(value=reader.int64())==="object"?value.low||value.high:value!==0)message.starts_at_ms=value;else delete message.starts_at_ms;continue;}case 7:{if(wireType!==0)break;if(_typeof(value=reader.int64())==="object"?value.low||value.high:value!==0)message.expires_at_ms=value;else delete message.expires_at_ms;continue;}case 8:{if(wireType!==0)break;if(_typeof(value=reader.int64())==="object"?value.low||value.high:value!==0)message.revoked_at_ms=value;else delete message.revoked_at_ms;continue;}case 9:{if(wireType!==2)break;if((value=reader.bytes()).length)message.metadata_json=value;else delete message.metadata_json;continue;}}reader.skipType(wireType,_depth,tag);if(!reader.discardUnknown){$util.makeProp(message,"$unknowns",false);(message.$unknowns||(message.$unknowns=[])).push(reader.raw(start,reader.pos));}}if(length!==$undefined){if(reader.pos!==end)throw $RangeError("index out of range");reader.len=length;}if(_end!==$undefined)throw $Error("missing end group");return message;};/**
|
|
2468
|
+
* Creates an Entitlement message from a plain object. Also converts values to their respective internal types.
|
|
2469
|
+
* @function fromObject
|
|
2470
|
+
* @memberof gamend.realtime.v1.Entitlement
|
|
2471
|
+
* @static
|
|
2472
|
+
* @param {Object.<string,*>} object Plain object
|
|
2473
|
+
* @returns {gamend.realtime.v1.Entitlement} Entitlement
|
|
2474
|
+
*/Entitlement.fromObject=function(object,_depth){if(object instanceof $root.gamend.realtime.v1.Entitlement)return object;if(!$util.isObject(object))throw $TypeError(".gamend.realtime.v1.Entitlement: object expected");if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var message=new $root.gamend.realtime.v1.Entitlement();if(object.id!=null)if(typeof object.id!=="string"||object.id.length)message.id=$String(object.id);if(object.key!=null)if(typeof object.key!=="string"||object.key.length)message.key=$String(object.key);if(object.status!=null)if(typeof object.status!=="string"||object.status.length)message.status=$String(object.status);if(object.product_id!=null)if(typeof object.product_id!=="string"||object.product_id.length)message.product_id=$String(object.product_id);if(object.source_purchase_id!=null)if(typeof object.source_purchase_id!=="string"||object.source_purchase_id.length)message.source_purchase_id=$String(object.source_purchase_id);if(object.starts_at_ms!=null)if(_typeof(object.starts_at_ms)==="object"?object.starts_at_ms.low||object.starts_at_ms.high:$Number(object.starts_at_ms)!==0)if($util.Long)message.starts_at_ms=$util.Long.fromValue(object.starts_at_ms,false);else if(typeof object.starts_at_ms==="string")message.starts_at_ms=$parseInt(object.starts_at_ms,10);else if(typeof object.starts_at_ms==="number")message.starts_at_ms=object.starts_at_ms;else if(_typeof(object.starts_at_ms)==="object")message.starts_at_ms=new $util.LongBits(object.starts_at_ms.low>>>0,object.starts_at_ms.high>>>0).toNumber();if(object.expires_at_ms!=null)if(_typeof(object.expires_at_ms)==="object"?object.expires_at_ms.low||object.expires_at_ms.high:$Number(object.expires_at_ms)!==0)if($util.Long)message.expires_at_ms=$util.Long.fromValue(object.expires_at_ms,false);else if(typeof object.expires_at_ms==="string")message.expires_at_ms=$parseInt(object.expires_at_ms,10);else if(typeof object.expires_at_ms==="number")message.expires_at_ms=object.expires_at_ms;else if(_typeof(object.expires_at_ms)==="object")message.expires_at_ms=new $util.LongBits(object.expires_at_ms.low>>>0,object.expires_at_ms.high>>>0).toNumber();if(object.revoked_at_ms!=null)if(_typeof(object.revoked_at_ms)==="object"?object.revoked_at_ms.low||object.revoked_at_ms.high:$Number(object.revoked_at_ms)!==0)if($util.Long)message.revoked_at_ms=$util.Long.fromValue(object.revoked_at_ms,false);else if(typeof object.revoked_at_ms==="string")message.revoked_at_ms=$parseInt(object.revoked_at_ms,10);else if(typeof object.revoked_at_ms==="number")message.revoked_at_ms=object.revoked_at_ms;else if(_typeof(object.revoked_at_ms)==="object")message.revoked_at_ms=new $util.LongBits(object.revoked_at_ms.low>>>0,object.revoked_at_ms.high>>>0).toNumber();if(object.metadata_json!=null)if(object.metadata_json.length)if(typeof object.metadata_json==="string")$util.base64.decode(object.metadata_json,message.metadata_json=$util.newBuffer($util.base64.length(object.metadata_json)),0);else if(object.metadata_json.length>=0)message.metadata_json=object.metadata_json;return message;};/**
|
|
2475
|
+
* Creates a plain object from an Entitlement message. Also converts values to other types if specified.
|
|
2476
|
+
* @function toObject
|
|
2477
|
+
* @memberof gamend.realtime.v1.Entitlement
|
|
2478
|
+
* @static
|
|
2479
|
+
* @param {gamend.realtime.v1.Entitlement} message Entitlement
|
|
2480
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2481
|
+
* @returns {Object.<string,*>} Plain object
|
|
2482
|
+
*/Entitlement.toObject=function(message,options,_depth){if(!options)options={};if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var object={};if(options.defaults){object.id="";object.key="";object.status="";object.product_id="";object.source_purchase_id="";if($util.Long){var _long13=new $util.Long(0,0,false);object.starts_at_ms=options.longs===$String?_long13.toString():options.longs===$Number?_long13.toNumber():typeof $BigInt!=="undefined"&&options.longs===$BigInt?_long13.toBigInt():_long13;}else object.starts_at_ms=options.longs===$String?"0":typeof $BigInt!=="undefined"&&options.longs===$BigInt?$BigInt("0"):0;if($util.Long){var _long14=new $util.Long(0,0,false);object.expires_at_ms=options.longs===$String?_long14.toString():options.longs===$Number?_long14.toNumber():typeof $BigInt!=="undefined"&&options.longs===$BigInt?_long14.toBigInt():_long14;}else object.expires_at_ms=options.longs===$String?"0":typeof $BigInt!=="undefined"&&options.longs===$BigInt?$BigInt("0"):0;if($util.Long){var _long15=new $util.Long(0,0,false);object.revoked_at_ms=options.longs===$String?_long15.toString():options.longs===$Number?_long15.toNumber():typeof $BigInt!=="undefined"&&options.longs===$BigInt?_long15.toBigInt():_long15;}else object.revoked_at_ms=options.longs===$String?"0":typeof $BigInt!=="undefined"&&options.longs===$BigInt?$BigInt("0"):0;if(options.bytes===$String)object.metadata_json="";else{object.metadata_json=[];if(options.bytes!==$Array)object.metadata_json=$util.newBuffer(object.metadata_json);}}if(message.id!=null&&$Object.hasOwnProperty.call(message,"id"))object.id=message.id;if(message.key!=null&&$Object.hasOwnProperty.call(message,"key"))object.key=message.key;if(message.status!=null&&$Object.hasOwnProperty.call(message,"status"))object.status=message.status;if(message.product_id!=null&&$Object.hasOwnProperty.call(message,"product_id"))object.product_id=message.product_id;if(message.source_purchase_id!=null&&$Object.hasOwnProperty.call(message,"source_purchase_id"))object.source_purchase_id=message.source_purchase_id;if(message.starts_at_ms!=null&&$Object.hasOwnProperty.call(message,"starts_at_ms"))if(typeof $BigInt!=="undefined"&&options.longs===$BigInt)object.starts_at_ms=typeof message.starts_at_ms==="number"?$BigInt(message.starts_at_ms):$util.Long.fromBits(message.starts_at_ms.low>>>0,message.starts_at_ms.high>>>0,false).toBigInt();else if(typeof message.starts_at_ms==="number")object.starts_at_ms=options.longs===$String?$String(message.starts_at_ms):message.starts_at_ms;else object.starts_at_ms=options.longs===$String?$util.Long.prototype.toString.call(message.starts_at_ms):options.longs===$Number?new $util.LongBits(message.starts_at_ms.low>>>0,message.starts_at_ms.high>>>0).toNumber():message.starts_at_ms;if(message.expires_at_ms!=null&&$Object.hasOwnProperty.call(message,"expires_at_ms"))if(typeof $BigInt!=="undefined"&&options.longs===$BigInt)object.expires_at_ms=typeof message.expires_at_ms==="number"?$BigInt(message.expires_at_ms):$util.Long.fromBits(message.expires_at_ms.low>>>0,message.expires_at_ms.high>>>0,false).toBigInt();else if(typeof message.expires_at_ms==="number")object.expires_at_ms=options.longs===$String?$String(message.expires_at_ms):message.expires_at_ms;else object.expires_at_ms=options.longs===$String?$util.Long.prototype.toString.call(message.expires_at_ms):options.longs===$Number?new $util.LongBits(message.expires_at_ms.low>>>0,message.expires_at_ms.high>>>0).toNumber():message.expires_at_ms;if(message.revoked_at_ms!=null&&$Object.hasOwnProperty.call(message,"revoked_at_ms"))if(typeof $BigInt!=="undefined"&&options.longs===$BigInt)object.revoked_at_ms=typeof message.revoked_at_ms==="number"?$BigInt(message.revoked_at_ms):$util.Long.fromBits(message.revoked_at_ms.low>>>0,message.revoked_at_ms.high>>>0,false).toBigInt();else if(typeof message.revoked_at_ms==="number")object.revoked_at_ms=options.longs===$String?$String(message.revoked_at_ms):message.revoked_at_ms;else object.revoked_at_ms=options.longs===$String?$util.Long.prototype.toString.call(message.revoked_at_ms):options.longs===$Number?new $util.LongBits(message.revoked_at_ms.low>>>0,message.revoked_at_ms.high>>>0).toNumber():message.revoked_at_ms;if(message.metadata_json!=null&&$Object.hasOwnProperty.call(message,"metadata_json"))object.metadata_json=options.bytes===$String?$util.base64.encode(message.metadata_json,0,message.metadata_json.length):options.bytes===$Array?$Array.prototype.slice.call(message.metadata_json):message.metadata_json;return object;};/**
|
|
2483
|
+
* Converts this Entitlement to JSON.
|
|
2484
|
+
* @function toJSON
|
|
2485
|
+
* @memberof gamend.realtime.v1.Entitlement
|
|
2486
|
+
* @instance
|
|
2487
|
+
* @returns {Object.<string,*>} JSON object
|
|
2488
|
+
*/Entitlement.prototype.toJSON=function(){return Entitlement.toObject(this,_minimal["default"].util.toJSONOptions);};/**
|
|
2489
|
+
* Gets the type url for Entitlement
|
|
2490
|
+
* @function getTypeUrl
|
|
2491
|
+
* @memberof gamend.realtime.v1.Entitlement
|
|
2492
|
+
* @static
|
|
2493
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
2494
|
+
* @returns {string} The type url
|
|
2495
|
+
*/Entitlement.getTypeUrl=function(prefix){if(prefix===$undefined)prefix="type.googleapis.com";return prefix+"/gamend.realtime.v1.Entitlement";};return Entitlement;}();v1.ChatMute=function(){/**
|
|
2226
2496
|
* Properties of a ChatMute.
|
|
2227
2497
|
* @typedef {Object} gamend.realtime.v1.ChatMute.$Properties
|
|
2228
2498
|
* @property {string|null} [scope] ChatMute scope
|
|
@@ -2299,7 +2569,7 @@ $Object.defineProperty(LobbyStateChanged.prototype,"_state_changed_at_ms",{get:$
|
|
|
2299
2569
|
* @param {gamend.realtime.v1.ChatMute} message ChatMute
|
|
2300
2570
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2301
2571
|
* @returns {Object.<string,*>} Plain object
|
|
2302
|
-
*/ChatMute.toObject=function(message,options,_depth){if(!options)options={};if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var object={};if(options.defaults){object.scope="";object.scope_ref_id="";if($util.Long){var
|
|
2572
|
+
*/ChatMute.toObject=function(message,options,_depth){if(!options)options={};if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var object={};if(options.defaults){object.scope="";object.scope_ref_id="";if($util.Long){var _long16=new $util.Long(0,0,false);object.expires_at_seconds=options.longs===$String?_long16.toString():options.longs===$Number?_long16.toNumber():typeof $BigInt!=="undefined"&&options.longs===$BigInt?_long16.toBigInt():_long16;}else object.expires_at_seconds=options.longs===$String?"0":typeof $BigInt!=="undefined"&&options.longs===$BigInt?$BigInt("0"):0;object.reason="";}if(message.scope!=null&&$Object.hasOwnProperty.call(message,"scope"))object.scope=message.scope;if(message.scope_ref_id!=null&&$Object.hasOwnProperty.call(message,"scope_ref_id"))object.scope_ref_id=message.scope_ref_id;if(message.expires_at_seconds!=null&&$Object.hasOwnProperty.call(message,"expires_at_seconds"))if(typeof $BigInt!=="undefined"&&options.longs===$BigInt)object.expires_at_seconds=typeof message.expires_at_seconds==="number"?$BigInt(message.expires_at_seconds):$util.Long.fromBits(message.expires_at_seconds.low>>>0,message.expires_at_seconds.high>>>0,false).toBigInt();else if(typeof message.expires_at_seconds==="number")object.expires_at_seconds=options.longs===$String?$String(message.expires_at_seconds):message.expires_at_seconds;else object.expires_at_seconds=options.longs===$String?$util.Long.prototype.toString.call(message.expires_at_seconds):options.longs===$Number?new $util.LongBits(message.expires_at_seconds.low>>>0,message.expires_at_seconds.high>>>0).toNumber():message.expires_at_seconds;if(message.reason!=null&&$Object.hasOwnProperty.call(message,"reason"))object.reason=message.reason;return object;};/**
|
|
2303
2573
|
* Converts this ChatMute to JSON.
|
|
2304
2574
|
* @function toJSON
|
|
2305
2575
|
* @memberof gamend.realtime.v1.ChatMute
|
|
@@ -2563,7 +2833,7 @@ $Object.defineProperty(LobbyStateChanged.prototype,"_state_changed_at_ms",{get:$
|
|
|
2563
2833
|
* @param {gamend.realtime.v1.TournamentMatchEvent} message TournamentMatchEvent
|
|
2564
2834
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2565
2835
|
* @returns {Object.<string,*>} Plain object
|
|
2566
|
-
*/TournamentMatchEvent.toObject=function(message,options,_depth){if(!options)options={};if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var object={};if(options.defaults){object.tournament_id="";object.slug="";object.match_id="";object.round=0;if($util.Long){var
|
|
2836
|
+
*/TournamentMatchEvent.toObject=function(message,options,_depth){if(!options)options={};if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var object={};if(options.defaults){object.tournament_id="";object.slug="";object.match_id="";object.round=0;if($util.Long){var _long17=new $util.Long(0,0,false);object.deadline_at_ms=options.longs===$String?_long17.toString():options.longs===$Number?_long17.toNumber():typeof $BigInt!=="undefined"&&options.longs===$BigInt?_long17.toBigInt():_long17;}else object.deadline_at_ms=options.longs===$String?"0":typeof $BigInt!=="undefined"&&options.longs===$BigInt?$BigInt("0"):0;object.winner_entry_id="";}if(message.tournament_id!=null&&$Object.hasOwnProperty.call(message,"tournament_id"))object.tournament_id=message.tournament_id;if(message.slug!=null&&$Object.hasOwnProperty.call(message,"slug"))object.slug=message.slug;if(message.match_id!=null&&$Object.hasOwnProperty.call(message,"match_id"))object.match_id=message.match_id;if(message.round!=null&&$Object.hasOwnProperty.call(message,"round"))object.round=message.round;if(message.deadline_at_ms!=null&&$Object.hasOwnProperty.call(message,"deadline_at_ms"))if(typeof $BigInt!=="undefined"&&options.longs===$BigInt)object.deadline_at_ms=typeof message.deadline_at_ms==="number"?$BigInt(message.deadline_at_ms):$util.Long.fromBits(message.deadline_at_ms.low>>>0,message.deadline_at_ms.high>>>0,false).toBigInt();else if(typeof message.deadline_at_ms==="number")object.deadline_at_ms=options.longs===$String?$String(message.deadline_at_ms):message.deadline_at_ms;else object.deadline_at_ms=options.longs===$String?$util.Long.prototype.toString.call(message.deadline_at_ms):options.longs===$Number?new $util.LongBits(message.deadline_at_ms.low>>>0,message.deadline_at_ms.high>>>0).toNumber():message.deadline_at_ms;if(message.winner_entry_id!=null&&$Object.hasOwnProperty.call(message,"winner_entry_id"))object.winner_entry_id=message.winner_entry_id;return object;};/**
|
|
2567
2837
|
* Converts this TournamentMatchEvent to JSON.
|
|
2568
2838
|
* @function toJSON
|
|
2569
2839
|
* @memberof gamend.realtime.v1.TournamentMatchEvent
|
|
@@ -2731,7 +3001,7 @@ $Object.defineProperty(LobbyStateChanged.prototype,"_state_changed_at_ms",{get:$
|
|
|
2731
3001
|
* @param {gamend.realtime.v1.MatchmakingTicketQueued} message MatchmakingTicketQueued
|
|
2732
3002
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2733
3003
|
* @returns {Object.<string,*>} Plain object
|
|
2734
|
-
*/MatchmakingTicketQueued.toObject=function(message,options,_depth){if(!options)options={};if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var object={};if(options.objects||options.defaults)object.match_params={};if(options.defaults){object.ticket_id="";if($util.Long){var
|
|
3004
|
+
*/MatchmakingTicketQueued.toObject=function(message,options,_depth){if(!options)options={};if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var object={};if(options.objects||options.defaults)object.match_params={};if(options.defaults){object.ticket_id="";if($util.Long){var _long18=new $util.Long(0,0,false);object.queued_at_ms=options.longs===$String?_long18.toString():options.longs===$Number?_long18.toNumber():typeof $BigInt!=="undefined"&&options.longs===$BigInt?_long18.toBigInt():_long18;}else object.queued_at_ms=options.longs===$String?"0":typeof $BigInt!=="undefined"&&options.longs===$BigInt?$BigInt("0"):0;object.requeued=false;}if(message.ticket_id!=null&&$Object.hasOwnProperty.call(message,"ticket_id"))object.ticket_id=message.ticket_id;var keys2;if(message.match_params&&(keys2=$Object.keys(message.match_params)).length){object.match_params={};for(var j=0;j<keys2.length;++j){if(keys2[j]==="__proto__")$util.makeProp(object.match_params,keys2[j]);object.match_params[keys2[j]]=message.match_params[keys2[j]];}}if(message.queued_at_ms!=null&&$Object.hasOwnProperty.call(message,"queued_at_ms"))if(typeof $BigInt!=="undefined"&&options.longs===$BigInt)object.queued_at_ms=typeof message.queued_at_ms==="number"?$BigInt(message.queued_at_ms):$util.Long.fromBits(message.queued_at_ms.low>>>0,message.queued_at_ms.high>>>0,false).toBigInt();else if(typeof message.queued_at_ms==="number")object.queued_at_ms=options.longs===$String?$String(message.queued_at_ms):message.queued_at_ms;else object.queued_at_ms=options.longs===$String?$util.Long.prototype.toString.call(message.queued_at_ms):options.longs===$Number?new $util.LongBits(message.queued_at_ms.low>>>0,message.queued_at_ms.high>>>0).toNumber():message.queued_at_ms;if(message.requeued!=null&&$Object.hasOwnProperty.call(message,"requeued"))object.requeued=message.requeued;return object;};/**
|
|
2735
3005
|
* Converts this MatchmakingTicketQueued to JSON.
|
|
2736
3006
|
* @function toJSON
|
|
2737
3007
|
* @memberof gamend.realtime.v1.MatchmakingTicketQueued
|
|
@@ -2899,7 +3169,7 @@ $Object.defineProperty(LobbyStateChanged.prototype,"_state_changed_at_ms",{get:$
|
|
|
2899
3169
|
* @param {gamend.realtime.v1.ReadyCheckParticipant} message ReadyCheckParticipant
|
|
2900
3170
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2901
3171
|
* @returns {Object.<string,*>} Plain object
|
|
2902
|
-
*/ReadyCheckParticipant.toObject=function(message,options,_depth){if(!options)options={};if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var object={};if(options.defaults){object.user_id="";object.display_name="";object.state="";if($util.Long){var
|
|
3172
|
+
*/ReadyCheckParticipant.toObject=function(message,options,_depth){if(!options)options={};if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var object={};if(options.defaults){object.user_id="";object.display_name="";object.state="";if($util.Long){var _long19=new $util.Long(0,0,false);object.responded_at_ms=options.longs===$String?_long19.toString():options.longs===$Number?_long19.toNumber():typeof $BigInt!=="undefined"&&options.longs===$BigInt?_long19.toBigInt():_long19;}else object.responded_at_ms=options.longs===$String?"0":typeof $BigInt!=="undefined"&&options.longs===$BigInt?$BigInt("0"):0;}if(message.user_id!=null&&$Object.hasOwnProperty.call(message,"user_id"))object.user_id=message.user_id;if(message.display_name!=null&&$Object.hasOwnProperty.call(message,"display_name"))object.display_name=message.display_name;if(message.state!=null&&$Object.hasOwnProperty.call(message,"state"))object.state=message.state;if(message.responded_at_ms!=null&&$Object.hasOwnProperty.call(message,"responded_at_ms"))if(typeof $BigInt!=="undefined"&&options.longs===$BigInt)object.responded_at_ms=typeof message.responded_at_ms==="number"?$BigInt(message.responded_at_ms):$util.Long.fromBits(message.responded_at_ms.low>>>0,message.responded_at_ms.high>>>0,false).toBigInt();else if(typeof message.responded_at_ms==="number")object.responded_at_ms=options.longs===$String?$String(message.responded_at_ms):message.responded_at_ms;else object.responded_at_ms=options.longs===$String?$util.Long.prototype.toString.call(message.responded_at_ms):options.longs===$Number?new $util.LongBits(message.responded_at_ms.low>>>0,message.responded_at_ms.high>>>0).toNumber():message.responded_at_ms;return object;};/**
|
|
2903
3173
|
* Converts this ReadyCheckParticipant to JSON.
|
|
2904
3174
|
* @function toJSON
|
|
2905
3175
|
* @memberof gamend.realtime.v1.ReadyCheckParticipant
|
|
@@ -3043,7 +3313,7 @@ $Object.defineProperty(LobbyStateChanged.prototype,"_state_changed_at_ms",{get:$
|
|
|
3043
3313
|
* @param {gamend.realtime.v1.ReadyCheckState} message ReadyCheckState
|
|
3044
3314
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3045
3315
|
* @returns {Object.<string,*>} Plain object
|
|
3046
|
-
*/ReadyCheckState.toObject=function(message,options,_depth){if(!options)options={};if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var object={};if(options.arrays||options.defaults)object.participants=[];if(options.defaults){object.id="";object.kind="";object.status="";object.lobby_id="";if($util.Long){var
|
|
3316
|
+
*/ReadyCheckState.toObject=function(message,options,_depth){if(!options)options={};if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var object={};if(options.arrays||options.defaults)object.participants=[];if(options.defaults){object.id="";object.kind="";object.status="";object.lobby_id="";if($util.Long){var _long20=new $util.Long(0,0,false);object.deadline_at_ms=options.longs===$String?_long20.toString():options.longs===$Number?_long20.toNumber():typeof $BigInt!=="undefined"&&options.longs===$BigInt?_long20.toBigInt():_long20;}else object.deadline_at_ms=options.longs===$String?"0":typeof $BigInt!=="undefined"&&options.longs===$BigInt?$BigInt("0"):0;object.total=0;object.ready_count=0;object.your_state="";object.reason="";object.party_id="";object.opened_by="";if(options.bytes===$String)object.metadata_json="";else{object.metadata_json=[];if(options.bytes!==$Array)object.metadata_json=$util.newBuffer(object.metadata_json);}}if(message.id!=null&&$Object.hasOwnProperty.call(message,"id"))object.id=message.id;if(message.kind!=null&&$Object.hasOwnProperty.call(message,"kind"))object.kind=message.kind;if(message.status!=null&&$Object.hasOwnProperty.call(message,"status"))object.status=message.status;if(message.lobby_id!=null&&$Object.hasOwnProperty.call(message,"lobby_id"))object.lobby_id=message.lobby_id;if(message.deadline_at_ms!=null&&$Object.hasOwnProperty.call(message,"deadline_at_ms"))if(typeof $BigInt!=="undefined"&&options.longs===$BigInt)object.deadline_at_ms=typeof message.deadline_at_ms==="number"?$BigInt(message.deadline_at_ms):$util.Long.fromBits(message.deadline_at_ms.low>>>0,message.deadline_at_ms.high>>>0,false).toBigInt();else if(typeof message.deadline_at_ms==="number")object.deadline_at_ms=options.longs===$String?$String(message.deadline_at_ms):message.deadline_at_ms;else object.deadline_at_ms=options.longs===$String?$util.Long.prototype.toString.call(message.deadline_at_ms):options.longs===$Number?new $util.LongBits(message.deadline_at_ms.low>>>0,message.deadline_at_ms.high>>>0).toNumber():message.deadline_at_ms;if(message.total!=null&&$Object.hasOwnProperty.call(message,"total"))object.total=message.total;if(message.ready_count!=null&&$Object.hasOwnProperty.call(message,"ready_count"))object.ready_count=message.ready_count;if(message.your_state!=null&&$Object.hasOwnProperty.call(message,"your_state"))object.your_state=message.your_state;if(message.reason!=null&&$Object.hasOwnProperty.call(message,"reason"))object.reason=message.reason;if(message.participants&&message.participants.length){object.participants=$Array(message.participants.length);for(var j=0;j<message.participants.length;++j)object.participants[j]=$root.gamend.realtime.v1.ReadyCheckParticipant.toObject(message.participants[j],options,_depth+1);}if(message.party_id!=null&&$Object.hasOwnProperty.call(message,"party_id"))object.party_id=message.party_id;if(message.opened_by!=null&&$Object.hasOwnProperty.call(message,"opened_by"))object.opened_by=message.opened_by;if(message.metadata_json!=null&&$Object.hasOwnProperty.call(message,"metadata_json"))object.metadata_json=options.bytes===$String?$util.base64.encode(message.metadata_json,0,message.metadata_json.length):options.bytes===$Array?$Array.prototype.slice.call(message.metadata_json):message.metadata_json;return object;};/**
|
|
3047
3317
|
* Converts this ReadyCheckState to JSON.
|
|
3048
3318
|
* @function toJSON
|
|
3049
3319
|
* @memberof gamend.realtime.v1.ReadyCheckState
|
|
@@ -3376,7 +3646,7 @@ $Object.defineProperty(PlayResult.prototype,"_ended_at_ms",{get:$util.oneOfGette
|
|
|
3376
3646
|
* @param {gamend.realtime.v1.PlayResultEvent} message PlayResultEvent
|
|
3377
3647
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3378
3648
|
* @returns {Object.<string,*>} Plain object
|
|
3379
|
-
*/PlayResultEvent.toObject=function(message,options,_depth){if(!options)options={};if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var object={};if(options.defaults){object.id="";object.result_id="";if($util.Long){var
|
|
3649
|
+
*/PlayResultEvent.toObject=function(message,options,_depth){if(!options)options={};if(_depth===$undefined)_depth=0;if(_depth>$util.recursionLimit)throw $Error("max depth exceeded");var object={};if(options.defaults){object.id="";object.result_id="";if($util.Long){var _long21=new $util.Long(0,0,false);object.elapsed_ms=options.longs===$String?_long21.toString():options.longs===$Number?_long21.toNumber():typeof $BigInt!=="undefined"&&options.longs===$BigInt?_long21.toBigInt():_long21;}else object.elapsed_ms=options.longs===$String?"0":typeof $BigInt!=="undefined"&&options.longs===$BigInt?$BigInt("0"):0;object.key="";if(options.bytes===$String)object.value_json="";else{object.value_json=[];if(options.bytes!==$Array)object.value_json=$util.newBuffer(object.value_json);}if(options.bytes===$String)object.metadata_json="";else{object.metadata_json=[];if(options.bytes!==$Array)object.metadata_json=$util.newBuffer(object.metadata_json);}}if(message.id!=null&&$Object.hasOwnProperty.call(message,"id"))object.id=message.id;if(message.result_id!=null&&$Object.hasOwnProperty.call(message,"result_id"))object.result_id=message.result_id;if(message.elapsed_ms!=null&&$Object.hasOwnProperty.call(message,"elapsed_ms"))if(typeof $BigInt!=="undefined"&&options.longs===$BigInt)object.elapsed_ms=typeof message.elapsed_ms==="number"?$BigInt(message.elapsed_ms):$util.Long.fromBits(message.elapsed_ms.low>>>0,message.elapsed_ms.high>>>0,false).toBigInt();else if(typeof message.elapsed_ms==="number")object.elapsed_ms=options.longs===$String?$String(message.elapsed_ms):message.elapsed_ms;else object.elapsed_ms=options.longs===$String?$util.Long.prototype.toString.call(message.elapsed_ms):options.longs===$Number?new $util.LongBits(message.elapsed_ms.low>>>0,message.elapsed_ms.high>>>0).toNumber():message.elapsed_ms;if(message.key!=null&&$Object.hasOwnProperty.call(message,"key"))object.key=message.key;if(message.value_json!=null&&$Object.hasOwnProperty.call(message,"value_json"))object.value_json=options.bytes===$String?$util.base64.encode(message.value_json,0,message.value_json.length):options.bytes===$Array?$Array.prototype.slice.call(message.value_json):message.value_json;if(message.metadata_json!=null&&$Object.hasOwnProperty.call(message,"metadata_json"))object.metadata_json=options.bytes===$String?$util.base64.encode(message.metadata_json,0,message.metadata_json.length):options.bytes===$Array?$Array.prototype.slice.call(message.metadata_json):message.metadata_json;return object;};/**
|
|
3380
3650
|
* Converts this PlayResultEvent to JSON.
|
|
3381
3651
|
* @function toJSON
|
|
3382
3652
|
* @memberof gamend.realtime.v1.PlayResultEvent
|
package/dist/index.d.ts
CHANGED
|
@@ -230,6 +230,8 @@ export type UserChannelEvent =
|
|
|
230
230
|
| "kv_deleted"
|
|
231
231
|
| "wallet_updated"
|
|
232
232
|
| "inventory_updated"
|
|
233
|
+
| "purchase_updated"
|
|
234
|
+
| "entitlement_changed"
|
|
233
235
|
| "result_started"
|
|
234
236
|
| "result_event"
|
|
235
237
|
| "result_ended"
|
|
@@ -4898,6 +4900,9 @@ export class TournamentsApi {
|
|
|
4898
4900
|
export class UsersApi {
|
|
4899
4901
|
constructor(apiClient?: ApiClient);
|
|
4900
4902
|
apiClient: ApiClient;
|
|
4903
|
+
/** Change the account's email with the emailed code */
|
|
4904
|
+
confirmCurrentUserEmailChange(opts?: { confirmCurrentUserEmailChangeRequest?: { code: string } }): Promise<SessionResponse>;
|
|
4905
|
+
confirmCurrentUserEmailChangeWithHttpInfo(opts?: { confirmCurrentUserEmailChangeRequest?: { code: string } }): Promise<{ data: SessionResponse; response: any }>;
|
|
4901
4906
|
/** Request an avatar upload ticket */
|
|
4902
4907
|
createCurrentUserAvatarUploadUrl(opts?: { createCurrentUserAvatarUploadUrlRequest?: { content_type: string; filename?: string } }): Promise<UploadTicketResponse>;
|
|
4903
4908
|
createCurrentUserAvatarUploadUrlWithHttpInfo(opts?: { createCurrentUserAvatarUploadUrlRequest?: { content_type: string; filename?: string } }): Promise<{ data: UploadTicketResponse; response: any }>;
|
|
@@ -4919,6 +4924,9 @@ export class UsersApi {
|
|
|
4919
4924
|
/** Make one of the site's icons the avatar */
|
|
4920
4925
|
pickCurrentUserAvatarIcon(opts?: { pickCurrentUserAvatarIconRequest?: { color?: string; icon: string } }): Promise<CurrentUserResponse>;
|
|
4921
4926
|
pickCurrentUserAvatarIconWithHttpInfo(opts?: { pickCurrentUserAvatarIconRequest?: { color?: string; icon: string } }): Promise<{ data: CurrentUserResponse; response: any }>;
|
|
4927
|
+
/** Ask to change the account's email */
|
|
4928
|
+
requestCurrentUserEmailChange(opts?: { requestCurrentUserEmailChangeRequest?: { current_password?: string; email: string } }): Promise<OkResponse>;
|
|
4929
|
+
requestCurrentUserEmailChangeWithHttpInfo(opts?: { requestCurrentUserEmailChangeRequest?: { current_password?: string; email: string } }): Promise<{ data: OkResponse; response: any }>;
|
|
4922
4930
|
/** Search users by id, username, or display_name */
|
|
4923
4931
|
searchUsers(opts?: { q?: string; page?: number; pageSize?: number }): Promise<PublicUserPage>;
|
|
4924
4932
|
searchUsersWithHttpInfo(opts?: { q?: string; page?: number; pageSize?: number }): Promise<{ data: PublicUserPage; response: any }>;
|
package/dist/index.js
CHANGED
|
@@ -975,6 +975,12 @@ Object.defineProperty(exports, "ClientLogsApi", {
|
|
|
975
975
|
return _ClientLogsApi["default"];
|
|
976
976
|
}
|
|
977
977
|
});
|
|
978
|
+
Object.defineProperty(exports, "ConfirmCurrentUserEmailChangeRequest", {
|
|
979
|
+
enumerable: true,
|
|
980
|
+
get: function get() {
|
|
981
|
+
return _ConfirmCurrentUserEmailChangeRequest["default"];
|
|
982
|
+
}
|
|
983
|
+
});
|
|
978
984
|
Object.defineProperty(exports, "ConfirmRegistrationRequest", {
|
|
979
985
|
enumerable: true,
|
|
980
986
|
get: function get() {
|
|
@@ -2259,6 +2265,12 @@ Object.defineProperty(exports, "ReportsApi", {
|
|
|
2259
2265
|
return _ReportsApi["default"];
|
|
2260
2266
|
}
|
|
2261
2267
|
});
|
|
2268
|
+
Object.defineProperty(exports, "RequestCurrentUserEmailChangeRequest", {
|
|
2269
|
+
enumerable: true,
|
|
2270
|
+
get: function get() {
|
|
2271
|
+
return _RequestCurrentUserEmailChangeRequest["default"];
|
|
2272
|
+
}
|
|
2273
|
+
});
|
|
2262
2274
|
Object.defineProperty(exports, "RequestLoginCodeRequest", {
|
|
2263
2275
|
enumerable: true,
|
|
2264
2276
|
get: function get() {
|
|
@@ -2897,6 +2909,7 @@ var _ClientLogPolicyResponse = _interopRequireDefault(require("./model/ClientLog
|
|
|
2897
2909
|
var _ClientLogResult = _interopRequireDefault(require("./model/ClientLogResult"));
|
|
2898
2910
|
var _ClientLogResultResponse = _interopRequireDefault(require("./model/ClientLogResultResponse"));
|
|
2899
2911
|
var _ClientLogSession = _interopRequireDefault(require("./model/ClientLogSession"));
|
|
2912
|
+
var _ConfirmCurrentUserEmailChangeRequest = _interopRequireDefault(require("./model/ConfirmCurrentUserEmailChangeRequest"));
|
|
2900
2913
|
var _ConfirmRegistrationRequest = _interopRequireDefault(require("./model/ConfirmRegistrationRequest"));
|
|
2901
2914
|
var _CounterTotal = _interopRequireDefault(require("./model/CounterTotal"));
|
|
2902
2915
|
var _CreateCurrentUserAvatarUploadUrlRequest = _interopRequireDefault(require("./model/CreateCurrentUserAvatarUploadUrlRequest"));
|
|
@@ -3092,6 +3105,7 @@ var _ReportKindsResponse = _interopRequireDefault(require("./model/ReportKindsRe
|
|
|
3092
3105
|
var _ReportReceipt = _interopRequireDefault(require("./model/ReportReceipt"));
|
|
3093
3106
|
var _ReportReceiptResponse = _interopRequireDefault(require("./model/ReportReceiptResponse"));
|
|
3094
3107
|
var _ReportRequest = _interopRequireDefault(require("./model/ReportRequest"));
|
|
3108
|
+
var _RequestCurrentUserEmailChangeRequest = _interopRequireDefault(require("./model/RequestCurrentUserEmailChangeRequest"));
|
|
3095
3109
|
var _RequestLoginCodeRequest = _interopRequireDefault(require("./model/RequestLoginCodeRequest"));
|
|
3096
3110
|
var _RequestPasswordResetRequest = _interopRequireDefault(require("./model/RequestPasswordResetRequest"));
|
|
3097
3111
|
var _ResendConfirmationRequest = _interopRequireDefault(require("./model/ResendConfirmationRequest"));
|