social / pragma.account / AccountService /

AccountService #

class AccountService(pragmaNode: PragmaNode, instanceId: UUID, routingUtils: RoutingUtils = RoutingUtils.defaultInstance, accountLifecycleCommand: AccountLifecycleCommand = AccountLifecycleCommand(), playerGroupProxy: PlayerGroupProxy = PlayerGroupProxy(), accountTagProxy: AccountTagProxy = AccountTagProxyImpl(), accountRegistrar: AccountRegistrar = AccountRegistrar(), limitedAccessEventScheduler: LimitedAccessEventScheduler = LimitedAccessEventSchedulerImpl(), limitedAccessEvents: LimitedAccessEvents = LimitedAccessEvents(), accountSectionsBuilder: AccountSectionsBuilder = AccountSectionsBuilder(), playerBehaviorCustodian: PlayerBehaviorCustodian = PlayerBehaviorCustodian(), publicIdentityConverter: PublicIdentityConverter = PublicIdentityConverter()) : DistributedService, ConfigHandler<AccountServiceConfig>

AccountService is responsible for account creation and authentication and managing account data and account groupings.

References

Constructors #

AccountService

internal fun AccountService(pragmaNode: PragmaNode, instanceId: UUID, routingUtils: RoutingUtils = RoutingUtils.defaultInstance, accountLifecycleCommand: AccountLifecycleCommand = AccountLifecycleCommand(), playerGroupProxy: PlayerGroupProxy = PlayerGroupProxy(), accountTagProxy: AccountTagProxy = AccountTagProxyImpl(), accountRegistrar: AccountRegistrar = AccountRegistrar(), limitedAccessEventScheduler: LimitedAccessEventScheduler = LimitedAccessEventSchedulerImpl(), limitedAccessEvents: LimitedAccessEvents = LimitedAccessEvents(), accountSectionsBuilder: AccountSectionsBuilder = AccountSectionsBuilder(), playerBehaviorCustodian: PlayerBehaviorCustodian = PlayerBehaviorCustodian(), publicIdentityConverter: PublicIdentityConverter = PublicIdentityConverter())

Functions #

NameSummary

addAccountsToPlayerGroupOperatorV1

suspend fun addAccountsToPlayerGroupOperatorV1(operatorSession: OperatorSession, request: AccountRpc.AddAccountsToPlayerGroupOperatorV1Request): AccountRpc.AddAccountsToPlayerGroupOperatorV1Response

Adds a list of Pragma Accounts by Pragma Social Ids to a PlayerGroup.

addAccountTagsOperatorV1

suspend fun addAccountTagsOperatorV1(operatorSession: OperatorSession, request: AccountRpc.AddAccountTagsOperatorV1Request): AccountRpc.AddAccountTagsOperatorV1Response

Adds AccountTags for a list of users by Pragma Social Ids.

addAccountTagsPartnerV1

suspend fun addAccountTagsPartnerV1(partnerSession: PartnerSession, request: AccountRpc.AddAccountTagsPartnerV1Request): AccountRpc.AddAccountTagsPartnerV1Response

Adds AccountTags for a list of users by Pragma Social Ids.

addAccountTagsServiceV1

suspend fun addAccountTagsServiceV1(serviceSession: ServiceSession, request: AccountRpc.AddAccountTagsServiceV1Request): AccountRpc.AddAccountTagsServiceV1Response

Adds AccountTags for a list of users by Pragma Social Ids.

addAccountToPlayerGroupOperatorV1

suspend fun addAccountToPlayerGroupOperatorV1(operatorSession: OperatorSession, request: AccountRpc.AddAccountToPlayerGroupOperatorV1Request): AccountRpc.AddAccountToPlayerGroupOperatorV1Response

Adds a single Pragma Account by Pragma Social Id to a PlayerGroup.

addAccountToPlayerGroupPartnerV1

suspend fun addAccountToPlayerGroupPartnerV1(partnerSession: PartnerSession, request: AccountRpc.AddAccountToPlayerGroupPartnerV1Request): AccountRpc.AddAccountToPlayerGroupPartnerV1Response

Adds a single Pragma Account by Pragma Social Id to a PlayerGroup.

addAccountToPlayerGroupServiceV1

suspend fun addAccountToPlayerGroupServiceV1(serviceSession: ServiceSession, request: AccountRpc.AddAccountToPlayerGroupServiceV1Request): AccountRpc.AddAccountToPlayerGroupServiceV1Response

Adds a single Pragma Account by Pragma Social Id to a PlayerGroup.

authenticateOrCreateV2

suspend fun authenticateOrCreateV2(session: ServiceSession, request: AccountRpc.AuthenticateOrCreateV2Request): AccountRpc.AuthenticateOrCreateV2Response

Authenticates a user against an IdentityProvider, creates a Pragma Account (if it does not exist), and returns SessionTokens used for gateway authentication.

authenticateV1

suspend fun authenticateV1(session: ServiceSession, request: AccountRpc.AuthenticateV1Request): AccountRpc.AuthenticateV1Response

Authenticates a user against an IdentityProvider and returns SessionTokens used for gateway authentication.

bulkActionOperatorV1

suspend fun bulkActionOperatorV1(operatorSession: OperatorSession, request: AccountRpc.BulkActionOperatorV1Request): AccountRpc.BulkActionOperatorV1Response

Filters players based on the PlayerSearchFilter and executes an action based on the BulkActionDelegator.

createAccountV1

suspend fun createAccountV1(session: ServiceSession, request: AccountRpc.CreateAccountV1Request): AccountRpc.CreateAccountV1Response

Creates a Pragma Account, authenticates a user against an IdentityProvider, and returns SessionTokens used for gateway authentication.

createPartnerTokenV1

suspend fun createPartnerTokenV1(session: OperatorSession, request: AccountRpc.CreatePartnerTokenV1Request): AccountRpc.CreatePartnerTokenV1Response

Creates tokens used by third party services for authentication.

createPlayerGroupOperatorV1

suspend fun createPlayerGroupOperatorV1(operatorSession: OperatorSession, request: AccountRpc.CreatePlayerGroupOperatorV1Request): AccountRpc.CreatePlayerGroupOperatorV1Response

Creates a new PlayerGroup.

createTestAccountsOperatorV2

suspend fun createTestAccountsOperatorV2(operatorSession: OperatorSession, request: AccountRpc.CreateTestAccountsOperatorV2Request): AccountRpc.CreateTestAccountsOperatorV2Response

Updates the UnsafeIdentityDaoNodeService with accounts that can be used for authentication and creates the corresponding Pragma Accounts.

createTestUnsafeAccountsOnlyOperatorV1

suspend fun createTestUnsafeAccountsOnlyOperatorV1(operatorSession: OperatorSession, request: AccountRpc.CreateTestUnsafeAccountsOnlyOperatorV1Request): AccountRpc.CreateTestUnsafeAccountsOnlyOperatorV1Response

Updates the UnsafeIdentityDaoNodeService with accounts that can be used for authentication.

deleteAccountOperatorV1

suspend fun deleteAccountOperatorV1(operatorSession: OperatorSession, request: AccountRpc.DeleteAccountOperatorV1Request): AccountRpc.DeleteAccountOperatorV1Response

Deletes the social identity of a player and all related data. This will delete all links to third party accounts and the user’s Personal ID record with all accompanying PII. It will also delete a player’s Social ID, Player ID, and any links to game shards, groups, tags, and inventory. This process is irreversible and the player will not be able to recover their account once deleted.

deleteAccountPartnerV1

suspend fun deleteAccountPartnerV1(partnerSession: PartnerSession, request: AccountRpc.DeleteAccountPartnerV1Request): AccountRpc.DeleteAccountPartnerV1Response

Deletes the social identity of a player and all related data. This will delete all links to third party accounts and the user’s Personal ID record with all accompanying PII. It will also delete a player’s Social ID, Player ID, and any links to game shards, groups, tags, and inventory. This process is irreversible and the player will not be able to recover their account once deleted.

deleteAccountServiceV1

suspend fun deleteAccountServiceV1(serviceSession: ServiceSession, request: AccountRpc.DeleteAccountServiceV1Request): AccountRpc.DeleteAccountServiceV1Response

Deletes the social identity of a player and all related data. This will delete all links to third party accounts and the user’s Personal ID record with all accompanying PII. It will also delete a player’s Social ID, Player ID, and any links to game shards, groups, tags, and inventory. This process is irreversible and the player will not be able to recover their account once deleted.

discordRedirectV1

suspend fun discordRedirectV1(serviceSession: ServiceSession, request: AccountRpc.DiscordRedirectV1Request): AccountRpc.DiscordRedirectV1Response

Gets the Discord access token using Discord OAuth2.

editPlayerGroupOperatorV1

suspend fun editPlayerGroupOperatorV1(operatorSession: OperatorSession, request: AccountRpc.EditPlayerGroupOperatorV1Request): AccountRpc.EditPlayerGroupOperatorV1Response

Edits the name and description and returns a PlayerGroup.

getAccountTagsPartnerV1

suspend fun getAccountTagsPartnerV1(partnerSession: PartnerSession, request: AccountRpc.GetAccountTagsPartnerV1Request): AccountRpc.GetAccountTagsPartnerV1Response

Gets all the AccountTags for a list of users by Pragma Social Ids.

getAccountTagsServiceV1

suspend fun getAccountTagsServiceV1(serviceSession: ServiceSession, request: AccountRpc.GetAccountTagsServiceV1Request): AccountRpc.GetAccountTagsServiceV1Response

Gets all the AccountTags for a list of users by Pragma Social Ids.

getAccountV1

@ExperimentalCoroutinesApi

suspend fun getAccountV1(playerSession: PlayerSession, request: AccountRpc.GetAccountV1Request): AccountRpc.GetAccountV1Response

Gets a player’s account information

getBansBySocialIdOperatorV1

suspend fun getBansBySocialIdOperatorV1(operatorSession: OperatorSession, request: AccountRpc.GetBansBySocialIdOperatorV1Request): AccountRpc.GetBansBySocialIdOperatorV1Response

Returns a list of AccountCommon.BanRecord reports for the specified Pragma SocialId.

getBansBySocialIdPartnerV1

suspend fun getBansBySocialIdPartnerV1(partnerSession: PartnerSession, request: AccountRpc.GetBansBySocialIdPartnerV1Request): AccountRpc.GetBansBySocialIdPartnerV1Response

Returns a list of AccountCommon.BanRecord reports for the specified Pragma SocialId.

getBansBySocialIdServiceV1

suspend fun getBansBySocialIdServiceV1(serviceSession: ServiceSession, request: AccountRpc.GetBansBySocialIdServiceV1Request): AccountRpc.GetBansBySocialIdServiceV1Response

Returns a list of AccountCommon.BanRecord reports for the specified Pragma SocialId.

getBansV1

suspend fun getBansV1(playerSession: PlayerSession, request: AccountRpc.GetBansV1Request): AccountRpc.GetBansV1Response

Returns a list of AccountCommon.Ban reports associated with the player’s account.

getDisplayNameForPlayerIdPartnerV2

suspend fun getDisplayNameForPlayerIdPartnerV2(session: PartnerSession, request: AccountRpc.GetDisplayNameForPlayerIdPartnerV2Request): AccountRpc.GetDisplayNameForPlayerIdPartnerV2Response

Returns the Pragma Full Display Name by a given Pragma Player Id.

getDisplayNameForPragmaPlayerIdV1

suspend fun getDisplayNameForPragmaPlayerIdV1(session: PlayerSession, request: AccountRpc.GetDisplayNameForPragmaPlayerIdV1Request): AccountRpc.GetDisplayNameForPragmaPlayerIdV1Response

Returns the Pragma Full Display Name by a given Pragma Player Id.

getPlayerCountBySearchFilterOperatorV1

suspend fun getPlayerCountBySearchFilterOperatorV1(operatorSession: OperatorSession, request: AccountRpc.GetPlayerCountBySearchFilterOperatorV1Request): AccountRpc.GetPlayerCountBySearchFilterOperatorV1Response

Searches for accounts that match the PlayerSearchFilter and returns the number of matches.

getPlayerIdentitiesByProviderAccountIdsV1

suspend fun getPlayerIdentitiesByProviderAccountIdsV1(playerSession: PlayerSession, request: AccountRpc.GetPlayerIdentitiesByProviderAccountIdsV1Request): AccountRpc.GetPlayerIdentitiesByProviderAccountIdsV1Response

Retrieves all the PlayerIdentities scoped to the given Identity Provider accounts for a given game shard.

getPlayerIdentitiesOperatorV1

suspend fun getPlayerIdentitiesOperatorV1(operatorSession: OperatorSession, request: AccountRpc.GetPlayerIdentitiesOperatorV1Request): AccountRpc.GetPlayerIdentitiesOperatorV1Response

Operator endpoint that returns a list of PlayerIdentity for all requested playerIds that exist in the database and a list of BatchRequestFailure for those not found. If the gameShardId does not exist, an AccountRpc.NotFoundApplicationError will be thrown.

getPlayerIdentitiesPartnerV1

suspend fun getPlayerIdentitiesPartnerV1(partnerSession: PartnerSession, request: AccountRpc.GetPlayerIdentitiesPartnerV1Request): AccountRpc.GetPlayerIdentitiesPartnerV1Response

Partner endpoint that returns a list of PlayerIdentity for all requested playerIds that exist in the database and a list of BatchRequestFailure for those not found. If the gameShardId does not exist, an AccountRpc.NotFoundApplicationError will be thrown.

getPlayerIdentitiesServiceV1

suspend fun getPlayerIdentitiesServiceV1(serviceSession: ServiceSession, request: AccountRpc.GetPlayerIdentitiesServiceV1Request): AccountRpc.GetPlayerIdentitiesServiceV1Response

Service endpoint that returns a list of PlayerIdentity for all requested playerIds that exist in the database and a list of BatchRequestFailure for those not found. If the gameShardId does not exist, an AccountRpc.NotFoundApplicationError will be thrown.

getPlayerIdentitiesV1

suspend fun getPlayerIdentitiesV1(playerSession: PlayerSession, request: AccountRpc.GetPlayerIdentitiesV1Request): AccountRpc.GetPlayerIdentitiesV1Response

Player endpoint that returns a list of PlayerIdentity for all requested playerIds that exist in the database. If the gameShardId does not exist, an AccountRpc.NotFoundApplicationError will be thrown.

getPragmaAccountOverviewsOperatorV1

suspend fun getPragmaAccountOverviewsOperatorV1(operatorSession: OperatorSession, request: AccountRpc.GetPragmaAccountOverviewsOperatorV1Request): AccountRpc.GetPragmaAccountOverviewsOperatorV1Response

Filters players based on the PlayerSearchFilter and returns a list of PragmaAccountOverviews of matched players.

getPragmaAccountOverviewsPartnerV1

suspend fun getPragmaAccountOverviewsPartnerV1(partnerSession: PartnerSession, request: AccountRpc.GetPragmaAccountOverviewsPartnerV1Request): AccountRpc.GetPragmaAccountOverviewsPartnerV1Response

Filters players based on the PlayerSearchFilter and returns a list of PragmaAccountOverviews of matched players.

getPragmaAccountOverviewsServiceV1

suspend fun getPragmaAccountOverviewsServiceV1(partnerSession: ServiceSession, request: AccountRpc.GetPragmaAccountOverviewsServiceV1Request): AccountRpc.GetPragmaAccountOverviewsServiceV1Response

Filters players based on the PlayerSearchFilter and returns a list of PragmaAccountOverviews of matched players.

getPragmaPlayerIdForDisplayNameV1

suspend fun getPragmaPlayerIdForDisplayNameV1(session: PlayerSession, request: AccountRpc.GetPragmaPlayerIdForDisplayNameV1Request): AccountRpc.GetPragmaPlayerIdForDisplayNameV1Response

Returns the Pragma Player Id by a given Pragma Full Display Name.

getPragmaPlayerOverviewsOperatorV1

suspend fun getPragmaPlayerOverviewsOperatorV1(operatorSession: OperatorSession, request: AccountRpc.GetPragmaPlayerOverviewsOperatorV1Request): AccountRpc.GetPragmaPlayerOverviewsOperatorV1Response

Filters players based on the PlayerSearchFilter and returns a list of PragmaPlayerOverviews of matched players.

getSocialIdentitiesByProviderAccountIdsOperatorV1

suspend fun getSocialIdentitiesByProviderAccountIdsOperatorV1(operatorSession: OperatorSession, request: AccountRpc.GetSocialIdentitiesByProviderAccountIdsOperatorV1Request): AccountRpc.GetSocialIdentitiesByProviderAccountIdsOperatorV1Response

Retrieves all the SocialIdentities scoped to the given Identity Provider accounts.

getSocialIdentitiesByProviderAccountIdsPartnerV1

suspend fun getSocialIdentitiesByProviderAccountIdsPartnerV1(partnerSession: PartnerSession, request: AccountRpc.GetSocialIdentitiesByProviderAccountIdsPartnerV1Request): AccountRpc.GetSocialIdentitiesByProviderAccountIdsPartnerV1Response

Retrieves all the SocialIdentities scoped to the given Identity Provider accounts.

getSocialIdentitiesByProviderAccountIdsServiceV1

suspend fun getSocialIdentitiesByProviderAccountIdsServiceV1(serviceSession: ServiceSession, request: AccountRpc.GetSocialIdentitiesByProviderAccountIdsServiceV1Request): AccountRpc.GetSocialIdentitiesByProviderAccountIdsServiceV1Response

Retrieves all the SocialIdentities scoped to the given Identity Provider accounts.

getSocialIdentitiesByProviderAccountIdsV1

suspend fun getSocialIdentitiesByProviderAccountIdsV1(playerSession: PlayerSession, request: AccountRpc.GetSocialIdentitiesByProviderAccountIdsV1Request): AccountRpc.GetSocialIdentitiesByProviderAccountIdsV1Response

Retrieves all the SocialIdentities scoped to the given Identity Provider accounts.

getSocialIdentitiesOperatorV1

suspend fun getSocialIdentitiesOperatorV1(operatorSession: OperatorSession, request: AccountRpc.GetSocialIdentitiesOperatorV1Request): AccountRpc.GetSocialIdentitiesOperatorV1Response

Operator endpoint that returns a list of SocialIdentity for all requested socialIds that exist in the database and a list of BatchRequestFailure for those not found.

getSocialIdentitiesPartnerV1

suspend fun getSocialIdentitiesPartnerV1(partnerSession: PartnerSession, request: AccountRpc.GetSocialIdentitiesPartnerV1Request): AccountRpc.GetSocialIdentitiesPartnerV1Response

Partner endpoint that returns a list of SocialIdentity for all requested socialIds that exist in the database and a list of BatchRequestFailure for those not found.

getSocialIdentitiesServiceV1

suspend fun getSocialIdentitiesServiceV1(serviceSession: ServiceSession, request: AccountRpc.GetSocialIdentitiesServiceV1Request): AccountRpc.GetSocialIdentitiesServiceV1Response

Service endpoint that returns a list of SocialIdentity for all requested socialIds that exist in the database and a list of BatchRequestFailure for those not found.

getSocialIdentitiesV1

suspend fun getSocialIdentitiesV1(playerSession: PlayerSession, request: AccountRpc.GetSocialIdentitiesV1Request): AccountRpc.GetSocialIdentitiesV1Response

Player endpoint that returns a list of SocialIdentity for all requested socialIds that exist in the database and a list of BatchRequestFailure for those not found.

getSocialIdForDisplayNameServiceV1

suspend fun getSocialIdForDisplayNameServiceV1(session: ServiceSession, request: AccountRpc.GetSocialIdForDisplayNameServiceV1Request): AccountRpc.GetSocialIdForDisplayNameServiceV1Response

Returns the Social Id by a given Pragma Full Display Name.

googleRedirectV1

suspend fun googleRedirectV1(serviceSession: ServiceSession, request: AccountRpc.GoogleRedirectV1Request): AccountRpc.GoogleRedirectV1Response

Gets the Google access token using Twitch OAuth2.

linkIdentityProviderAccountPartnerV1

suspend fun linkIdentityProviderAccountPartnerV1(partnerSession: PartnerSession, request: AccountRpc.LinkIdentityProviderAccountPartnerV1Request): AccountRpc.LinkIdentityProviderAccountPartnerV1Response

Associates a new Identity Provider with an existing Pragma account while returning valid authentication tokens.

linkIdentityProviderAccountServiceV1

suspend fun linkIdentityProviderAccountServiceV1(serviceSession: ServiceSession, request: AccountRpc.LinkIdentityProviderAccountServiceV1Request): AccountRpc.LinkIdentityProviderAccountServiceV1Response

Associates a new Identity Provider with an existing Pragma account while returning valid authentication tokens.

linkIdentityProviderAccountV2

suspend fun linkIdentityProviderAccountV2(session: PlayerSession, request: AccountRpc.LinkIdentityProviderAccountV2Request): AccountRpc.LinkIdentityProviderAccountV2Response

Associates a new Identity Provider with an existing Pragma account.

loadTestBulkCreateAccountsOperatorV1

suspend fun loadTestBulkCreateAccountsOperatorV1(operatorSession: OperatorSession, request: AccountRpc.LoadTestBulkCreateAccountsOperatorV1Request): AccountRpc.LoadTestBulkCreateAccountsOperatorV1Response

Creates multiple Players, AccountTags, and PlayerGroups. Used for testing and load testing.

oAuthRedirectV1

suspend fun oAuthRedirectV1(serviceSession: ServiceSession, request: AccountRpc.OAuthRedirectV1Request): AccountRpc.OAuthRedirectV1Response

Gets the OAuth access token using generic OAuth2.

playstationRedirectV1

suspend fun playstationRedirectV1(serviceSession: ServiceSession, request: AccountRpc.PlaystationRedirectV1Request): AccountRpc.PlaystationRedirectV1Response

Gets the Playstation access token using Playstation OAuth2.

refreshTokensV1

suspend fun refreshTokensV1(session: PlayerSession, request: AccountRpc.RefreshTokensV1Request): AccountRpc.RefreshTokensV1Response

Refreshes authentication tokens by accepting older but not expired tokens, checking whether the user still has authentication privileges, and issuing new tokens.

removeAccountFromPlayerGroupOperatorV1

suspend fun removeAccountFromPlayerGroupOperatorV1(operatorSession: OperatorSession, request: AccountRpc.RemoveAccountFromPlayerGroupOperatorV1Request): AccountRpc.RemoveAccountFromPlayerGroupOperatorV1Response

Remove a single Pragma Account by Pragma Social Id from a PlayerGroup.

removeAccountFromPlayerGroupPartnerV1

suspend fun removeAccountFromPlayerGroupPartnerV1(partnerSession: PartnerSession, request: AccountRpc.RemoveAccountFromPlayerGroupPartnerV1Request): AccountRpc.RemoveAccountFromPlayerGroupPartnerV1Response

Remove a single Pragma Account by Pragma Social Id from a PlayerGroup.

removeAccountFromPlayerGroupServiceV1

suspend fun removeAccountFromPlayerGroupServiceV1(serviceSession: ServiceSession, request: AccountRpc.RemoveAccountFromPlayerGroupServiceV1Request): AccountRpc.RemoveAccountFromPlayerGroupServiceV1Response

Remove a single Pragma Account by Pragma Social Id from a PlayerGroup.

removeAccountTagsOperatorV1

suspend fun removeAccountTagsOperatorV1(operatorSession: OperatorSession, request: AccountRpc.RemoveAccountTagsOperatorV1Request): AccountRpc.RemoveAccountTagsOperatorV1Response

Removes AccountTags for a list of users by Pragma Social Ids.

removeAccountTagsPartnerV1

suspend fun removeAccountTagsPartnerV1(partnerSession: PartnerSession, request: AccountRpc.RemoveAccountTagsPartnerV1Request): AccountRpc.RemoveAccountTagsPartnerV1Response

Removes AccountTags for a list of users by Pragma Social Ids.

removeAccountTagsServiceV1

suspend fun removeAccountTagsServiceV1(serviceSession: ServiceSession, request: AccountRpc.RemoveAccountTagsServiceV1Request): AccountRpc.RemoveAccountTagsServiceV1Response

Removes AccountTags for a list of users by Pragma Social Ids.

removePlayerGroupOperatorV1

suspend fun removePlayerGroupOperatorV1(operatorSession: OperatorSession, request: AccountRpc.RemovePlayerGroupOperatorV1Request): AccountRpc.RemovePlayerGroupOperatorV1Response

Removes a PlayerGroup and any account to PlayerGroup associations.

revokeBanAccountOperatorV1

suspend fun revokeBanAccountOperatorV1(operatorSession: OperatorSession, request: AccountRpc.RevokeBanAccountOperatorV1Request): AccountRpc.RevokeBanAccountOperatorV1Response

Revokes a ban for a specified Ban.banId.

revokeBanAccountPartnerV1

suspend fun revokeBanAccountPartnerV1(partnerSession: PartnerSession, request: AccountRpc.RevokeBanAccountPartnerV1Request): AccountRpc.RevokeBanAccountPartnerV1Response

Revokes a ban for a specified Ban.banId.

revokeBanAccountServiceV1

suspend fun revokeBanAccountServiceV1(serviceSession: ServiceSession, request: AccountRpc.RevokeBanAccountServiceV1Request): AccountRpc.RevokeBanAccountServiceV1Response

Revokes a ban for a specified Ban.banId.

twitchRedirectV1

suspend fun twitchRedirectV1(serviceSession: ServiceSession, request: AccountRpc.TwitchRedirectV1Request): AccountRpc.TwitchRedirectV1Response

Gets the Twitch access token using Twitch OAuth2.

unlinkIdentityProviderAccountOperatorV1

suspend fun unlinkIdentityProviderAccountOperatorV1(session: OperatorSession, request: AccountRpc.UnlinkIdentityProviderAccountOperatorV1Request): AccountRpc.UnlinkIdentityProviderAccountOperatorV1Response

Disassociates an existing Identity Provider from an existing Pragma account. In the case of the Pragma account or id provider not existing, no error will be thrown.

unlinkIdentityProviderAccountPartnerV1

suspend fun unlinkIdentityProviderAccountPartnerV1(partnerSession: PartnerSession, request: AccountRpc.UnlinkIdentityProviderAccountPartnerV1Request): AccountRpc.UnlinkIdentityProviderAccountPartnerV1Response

Disassociates an existing Identity Provider from an existing Pragma account. In the case of the Pragma account or id provider not existing, no error will be thrown.

unlinkIdentityProviderAccountServiceV1

suspend fun unlinkIdentityProviderAccountServiceV1(serviceSession: ServiceSession, request: AccountRpc.UnlinkIdentityProviderAccountServiceV1Request): AccountRpc.UnlinkIdentityProviderAccountServiceV1Response

Disassociates an existing Identity Provider from an existing Pragma account. In the case of the Pragma account or id provider not existing, no error will be thrown.

updateDisplayNameOperatorV1

suspend fun updateDisplayNameOperatorV1(operatorSession: OperatorSession, request: AccountRpc.UpdateDisplayNameOperatorV1Request): AccountRpc.UpdateDisplayNameOperatorV1Response

Updates the display name of an account by a Pragma Social Id.

updateDisplayNamePartnerV1

suspend fun updateDisplayNamePartnerV1(operatorSession: PartnerSession, request: AccountRpc.UpdateDisplayNamePartnerV1Request): AccountRpc.UpdateDisplayNamePartnerV1Response

Updates the display name of an account by a Pragma Social Id.

updateDisplayNameServiceV1

suspend fun updateDisplayNameServiceV1(serviceSession: ServiceSession, request: AccountRpc.UpdateDisplayNameServiceV1Request): AccountRpc.UpdateDisplayNameServiceV1Response

Updates the display name of an account by a Pragma Social Id.

updateDisplayNameV1

@ExperimentalCoroutinesApi

suspend fun updateDisplayNameV1(playerSession: PlayerSession, request: AccountRpc.UpdateDisplayNameV1Request): AccountRpc.UpdateDisplayNameV1Response

Updates a user’s display name By default player display name updates are disabled in the DefaultAccountPlugin. Implement your own plugin to enable player display name updates AccountService.updateDisplayNameV1.

updateEmailV1

@ExperimentalCoroutinesApi

suspend fun updateEmailV1(playerSession: PlayerSession, request: AccountRpc.UpdateEmailV1Request): AccountRpc.UpdateEmailV1Response

Adds or updates a user’s email. If the user already has no email or an unverified email, it will add or update the unverified email. If the user has a verified email, the verified email will not be overwritten until the user has verified the new email using AccountService.verifyEmailV1.

verifyEmailV1

suspend fun verifyEmailV1(serviceSession: ServiceSession, request: AccountRpc.VerifyEmailV1Request): AccountRpc.VerifyEmailV1Response

Verifies an email token and updates the users verified email. If the user had a preexisting, verified email, the old verified email will be deleted in favor the email in the email token.

viewActiveIdProvidersOperatorV1

suspend fun viewActiveIdProvidersOperatorV1(operatorSession: OperatorSession, request: AccountRpc.ViewActiveIdProvidersOperatorV1Request): AccountRpc.ViewActiveIdProvidersOperatorV1Response

Gets all the active IdentityProviders.

viewBanReasonsOperatorV1

suspend fun viewBanReasonsOperatorV1(operatorSession: OperatorSession, request: AccountRpc.ViewBanReasonsOperatorV1Request): AccountRpc.ViewBanReasonsOperatorV1Response

Gets all the possible ExtBanReasons.

viewPlayerGroupOperatorV1

suspend fun viewPlayerGroupOperatorV1(operatorSession: OperatorSession, request: AccountRpc.ViewPlayerGroupOperatorV1Request): AccountRpc.ViewPlayerGroupOperatorV1Response

Gets the PlayerGroup and a list of PragmaAccountOverviews limited to a page index and size.

viewPlayerGroupsBySocialIdOperatorV1

suspend fun viewPlayerGroupsBySocialIdOperatorV1(operatorSession: OperatorSession, request: AccountRpc.ViewPlayerGroupsBySocialIdOperatorV1Request): AccountRpc.ViewPlayerGroupsBySocialIdOperatorV1Response

Gets the PlayerGroups of a given Player.

viewPlayerGroupsOperatorV1

suspend fun viewPlayerGroupsOperatorV1(operatorSession: OperatorSession, request: AccountRpc.ViewPlayerGroupsOperatorV1Request): AccountRpc.ViewPlayerGroupsOperatorV1Response

Gets all the PlayerGroups.

viewPlayerGroupsPartnerV1

suspend fun viewPlayerGroupsPartnerV1(operatorSession: PartnerSession, request: AccountRpc.ViewPlayerGroupsPartnerV1Request): AccountRpc.ViewPlayerGroupsPartnerV1Response

Gets all the PlayerGroups.

viewPlayerGroupsServiceV1

suspend fun viewPlayerGroupsServiceV1(operatorSession: ServiceSession, request: AccountRpc.ViewPlayerGroupsServiceV1Request): AccountRpc.ViewPlayerGroupsServiceV1Response

Gets all the PlayerGroups.

viewSocialIdentitiesV1

suspend fun viewSocialIdentitiesV1(operatorSession: OperatorSession, request: AccountRpc.ViewSocialIdentitiesV1Request): AccountRpc.ViewSocialIdentitiesV1Response

Returns a sublist of SocialIdentity.

viewSocialIdentityPartnerV2

suspend fun viewSocialIdentityPartnerV2(partnerSession: PartnerSession, request: AccountRpc.ViewSocialIdentityPartnerV2Request): AccountRpc.ViewSocialIdentityPartnerV2Response

Returns a SocialIdentityWithPersonal for a given Pragma Social Id.

viewSocialIdentityServiceV1

suspend fun viewSocialIdentityServiceV1(serviceSession: ServiceSession, request: AccountRpc.ViewSocialIdentityServiceV1Request): AccountRpc.ViewSocialIdentityServiceV1Response

Returns a SocialIdentity for a given Pragma Social Id.

viewSocialIdentityV1

suspend fun viewSocialIdentityV1(operatorSession: OperatorSession, request: AccountRpc.ViewSocialIdentityV1Request): AccountRpc.ViewSocialIdentityV1Response

Returns a SocialIdentity for a given Pragma Social Id.

viewTagsOperatorV1

suspend fun viewTagsOperatorV1(operatorSession: OperatorSession, request: AccountRpc.ViewTagsOperatorV1Request): AccountRpc.ViewTagsOperatorV1Response

Gets all the AccountTags

viewTagsPartnerV1

suspend fun viewTagsPartnerV1(partnerSession: PartnerSession, request: AccountRpc.ViewTagsPartnerV1Request): AccountRpc.ViewTagsPartnerV1Response

Gets all the AccountTags