Skip to main content

Alta.Api.Client

Types in the Alta.Api.Client assembly, the client for Alta's (now closed) web API. 121 types, 2 with a hand-written page.

See the overview for what the columns mean and how this list is made.

Alta.Api.Client​

TypeKindBasePublic membersDocumented in, or what it is
LoginCredentialsclass4The JWT tokens returned when a user or server logs in to the Alta API.

Alta.Api.Client.HighLevel​

TypeKindBasePublic membersDocumented in, or what it is
AcceptRejectabstract class2Base for an incoming API request (such as a group join request) that you can accept or reject. Calls Alta's web API, which no longer answers.
AccountClientinternal classHighLevelApiClientBase, IAccountClient6Online client for linking an Alta account to Discord. Reached as ApiAccess.ApiClient.Account; calls Alta's web API, which no longer answers.
AchievementApiClientclassHighLevelApiClientBase, IAchievementClient5Online client for a user's achievements and action stats stored by Alta's web API, which no longer answers. Reached as ApiAccess.ApiClient.AchievementClient.
AnalyticsClientclassHighLevelApiClientBase, IAnalyticsClient4Online client that queues analytics events to Alta's web API, which no longer answers. Reached as ApiAccess.ApiClient.Analytics; failures are logged with stack traces unless a mod stubs it.
FutureUserActionsClientclassHighLevelApiClientBase, IFutureUserActions3Online client for actions the API should run for a platform user later, such as friending or inviting an Oculus user once they join. Calls Alta's web API, which no longer answers.
GroupBanclassOutgoing2A ban of one user from a group, from the Alta web API. Revoke it to lift the ban.
GroupBansclassPaginatedListWithAdd<GroupBan>2Paged list of a group's bans from the Alta web API, with a way to ban more users.
GroupCreatorclass3Alta web API calls for creating a group and its server. Reached through ApiAccess.ApiClient.Groups.CreateGroup. The API is gone, so calls fail after timing out.
GroupDiscoveryclass3Alta web API lists of groups a player can find and join. Reached through ApiAccess.ApiClient.Groups.Discovery. The API is gone, so calls fail after timing out.
GroupGetclassPaginatedList<JoinableGroupInfo>0Paged list of joinable groups of one group type, fetched from the Alta web API and wrapped as JoinableGroupInfo.
GroupInfoManagerclass3Admin view of a joined group: its editable info, roles and members.
GroupInfoUpdateclass2Wraps a group so its info can be edited through the Alta web API.
GroupInvitesclassPaginatedListWithAdd<OutgoingGroupInvite>2Paged list of a group's outgoing invites from the Alta web API, with a way to invite more users.
GroupJoinRequestsclassPaginatedList<IncomingGroupJoinRequest>0Paged list of requests from users to join a group, from the Alta web API.
GroupMemberclass4One member of a joined group in Alta's web API, with calls to kick, ban or change their role. Those services are gone, so the calls fail.
GroupMembersclassPaginatedList<GroupMember>0Paged list of a joined group's members from the Alta web API.
GroupRolesclass2A joined group's roles from the current user's point of view, with a permission check.
GroupsClientinternal classHighLevelApiClientBase, IGroupsClient7Online client for Alta groups. Reached as ApiAccess.ApiClient.Groups; calls Alta's web API, which no longer answers.
HighLevelApiClientclassIHighLevelApiClientManager, IHighLevelApiClient35The online client for Alta's web API, one sub-client per area. Made by HighLevelApiClientFactory and reached through ApiAccess.ApiClient. Both sides; most calls now time out because the services are gone.
HighLevelApiClientBaseabstract class0Internal base for the high level web API client parts; each holds a reference to the low level client manager. Not constructible outside the API client assembly.
HighLevelApiClientFactorystatic class16Makes the API client the game uses (ApiAccess calls it) and holds the known API addresses. All of Alta's addresses here no longer answer.
IAccountClientinterface5Alta web API calls for linking a Discord account to an Alta account. ApiAccess.ApiClient.Account. The API is gone, so calls fail.
IAchievementClientinterface4Alta web API calls for a user's achievements and action stats. ApiAccess.ApiClient.AchievementClient. The API is gone, so calls fail.
IAnalyticsClientinterface4Alta web API calls for sending analytics events. ApiAccess.ApiClient.Analytics. The API is gone, so each event fails and is logged.
IFutureUserActionsinterface3Alta web API calls that store an action to run for an outside user (an Oculus user, for example) once they have an Alta account. ApiAccess.ApiClient.FutureUserActions.
IGroupsClientinterface6Alta web API calls for groups (the communities that own servers). ApiAccess.ApiClient.Groups. The API is gone, so calls fail.
IHighLevelApiClientinterface35Alta's web API: One property per area, each its own client class:
IHighLevelApiClientManagerinternal interface2Internal interface for the object that owns the low-level Alta API client and can log it out.
IInstancesClientinterface1Alta web API call that lists running server instances in Alta's hosting. ApiAccess.ApiClient.Instances.
ILauncherApiClientinterface2Alta web API calls for the games listed in Alta's launcher. ApiAccess.ApiClient.LauncherClient.
IMatchMakingClientinterface1Alta web API matchmaking. ApiAccess.ApiClient.MatchMaking.
IncomingGroupInviteclassAcceptReject3An invite to a group that the current user received, with calls to accept or reject it through the Alta web API.
IncomingGroupJoinRequestclassAcceptReject3A request from a user to join a group, which the group's admin can accept or reject. Calls Alta's web API, which no longer answers.
InstancesClientinternal classHighLevelApiClientBase, IInstancesClient2Online client that lists Alta's running game server instances. Reached as ApiAccess.ApiClient.Instances; calls Alta's web API, which no longer answers.
InvitedGroupsclassPaginatedList<IncomingGroupInvite>0Paged list of group invites the current user has received, from the Alta web API.
IOculusClientinterface4Alta web API calls for linking an Oculus account to an Alta account. ApiAccess.ApiClient.Oculus.
IOculusShopinterface1Alta web API call for turning Oculus store purchases into Alta shop items. ShopClient.Oculus.
IPicoClientinterface4Alta web API calls for linking a Pico account to an Alta account, per Pico region. ApiAccess.ApiClient.Pico.
IPlayerReportsClientinterface3Alta web API calls for reporting players and reading reports. ApiAccess.ApiClient.PlayerReports.
IRecentPlayersClientinterface2Alta web API calls for the recent players list. ApiAccess.ApiClient.RecentPlayers.
ISecurityApiClientinterface6Alta web API calls for bans and identity token checks. ApiAccess.ApiClient.SecurityClient.
IServerAccessinterface8Server-side handle for reporting one game server's session to the Alta API: start, stop, ping and online players. ServerAccess calls the API; LocalServerAccess does nothing.
IServerApiClientinterface22Alta web API calls for servers: lists, joining, permissions and online status. ApiAccess.ApiClient.ServerClient. The API is gone, so calls fail after timing out; see the Alta web API guide for which are stubbed.
IServicesApiClientinterface7Alta web API helper calls: public IP lookup, passwords, verification and identity tokens. ApiAccess.ApiClient.ServicesClient.
ISettingsClientinterface2Alta web API calls for named settings stored as text. ApiAccess.ApiClient.SettingsClient.
IShopAccountinterface6Alta web API calls for a user's shop account and owned items. ShopClient.Account.
IShopApiClientinterface11Alta web API calls for the cosmetics shop. ApiAccess.ApiClient.ShopClient. The API is gone; mods stub the rotation and purchase checks.
IShopEditorinterface9Alta web API calls for creating and editing shop items and item sets. ShopClient.Editor. Probably staff only.
IShopPurchaseinterface1Alta web API call for buying a shop item. ShopClient.Purchase.
ISocialClientinterface9Alta web API calls for friends. ApiAccess.ApiClient.SocialClient. TavernEssentials swaps in its own social client.
IUserApiClientinterface21The user account part of Alta's web API: user lookups, verification, roles and cosmetic presets. Reached through ApiAccess.ApiClient.UserClient. Every method except Logout makes a web request.
IVoiceApiClientinterface2Alta web API calls for Vivox voice chat tokens. ApiAccess.ApiClient.VoiceClient. Voice no longer works.
JoinableGroupInfoclass2A group the current user can ask to join through the Alta web API.
JoinedGroupManagerclass7High-level API handle for a group the current user is a member of, with its join requests, invites, bans and info managers.
JoinedGroupsclassPaginatedList<JoinedGroupManager>1Paged list of the groups the logged-in user is a member of, from the Alta web API. Groups.Joined.
LauncherApiClientclassHighLevelApiClientBase, ILauncherApiClient2Online client for the game list shown by Alta's launcher. Reached as ApiAccess.ApiClient.LauncherClient; calls Alta's web API, which no longer answers.
LocalServerAccessclassIServerAccess9Server session that never talks to the API. Used for a server started with a negative ID (/start_server -1, how Tavern starts servers) and by the offline client.
MatchMakingClientinternal classHighLevelApiClientBase, IMatchMakingClient2Online client for matchmaking. Reached as ApiAccess.ApiClient.MatchMaking; calls Alta's web API, which no longer answers.
OculusClientclassHighLevelApiClientBase, IOculusClient4Online client for linking an Alta account to an Oculus (Meta) user. Reached as ApiAccess.ApiClient.Oculus; calls Alta's web API, which no longer answers.
OculusShopclassIOculusShop1Online client that claims a player's Oculus store purchases into their Alta shop account. Reached through ShopClient.Oculus; calls Alta's web API, which no longer answers.
OfflineAchievementApiClientclassIAchievementClient5Offline stand-in for the achievement client: no requests, nothing is stored.
OfflineGroupsClientinternal classIGroupsClient6Offline stand-in for the groups client. Every member throws OfflineException.
OfflineHighLevelApiClientclassIHighLevelApiClient36The API client used when the game starts offline (ApiAccess.StartOffline). It answers locally, and logs in from the stored access token's claims. Several areas are left null.
OfflineLauncherApiClientclassILauncherApiClient2Offline stand-in for the launcher client.
OfflineSecurityApiClientclassISecurityApiClient7Offline stand-in for the security client. Bans are unavailable and every token and join is accepted.
OfflineServerApiClientclassIServerApiClient22Offline stand-in for the server client. It hands out GameServerInfo.OfflineServer wrapped in LocalServerAccess, allows every join, and throws OfflineException for the rest.
OfflineServicesApiClientclassIServicesApiClient8Offline stand-in for the services client. Only the public IP lookup answers; the rest throw OfflineException.
OfflineShopAccountclassIShopAccount6Offline stand-in for the shop account: a fixed supporter account with 100000 shards and no owned items.
OfflineShopApiClientclassIShopApiClient12Offline stand-in for the shop client. Ownership checks always pass; shop configuration calls throw OfflineException.
OfflineShopEditorclassIShopEditor9Offline stand-in for the shop editor. Every method throws OfflineException.
OfflineShopPurchaseclassIShopPurchase2Offline stand-in for shop purchases. Every method throws OfflineException.
OfflineSocialClientclassISocialClient9Offline stand-in for the friends client. Lists come back empty; changing friendships throws OfflineException.
OfflineUserApiClientclassIUserApiClient21Offline stand-in for the user client, created on offline login from the stored access token. Simple calls succeed locally; account and preset calls throw OfflineException.
OfflineVoiceClientclassIVoiceApiClient2Offline stand-in for the Vivox voice token client.
Outgoingabstract class1Base for something the logged-in user sent or set in a group (an invite, a join request, a ban) that can be taken back. Calls Alta's web API, which no longer answers.
OutgoingGroupInviteclassOutgoing2An invite the group has sent to a user, which can be revoked through the Alta web API.
OutgoingGroupJoinRequestclassOutgoing2A join request the current user has sent to a group. Revoke it to withdraw.
OutgoingPrivateGroupJoinRequestclassOutgoing2A join request to a group known only by id. Revoke it to withdraw.
PaginatedList<T>abstract class2Base for a paged list from the API, such as group members, bans, invites and join requests. Calls Alta's web API, which no longer answers.
PaginatedListWithAdd<T>abstract classPaginatedList<T>1Paged API list that a user can also be added to, such as a group's bans or invites.
PersonalGroupsclass3The logged-in user's group join requests and invites, from the Alta web API. Groups.Personal.
PicoClientinternal classHighLevelApiClientBase, IPicoClient5Online client for linking an Alta account to a Pico user. Reached as ApiAccess.ApiClient.Pico; calls Alta's web API, which no longer answers.
PlayerReportAdminclass3High-level API handle for moderating one player report: mark it ignored or acted on.
PlayerReportsClientclassHighLevelApiClientBase, IPlayerReportsClient3Online client for reporting players and reading reports. Reached as ApiAccess.ApiClient.PlayerReports; calls Alta's web API, which no longer answers.
PlayerReportSummaryclass10All admin reports against one player on one server, grouped by ServerReportCollection. Built by the player reports client from report data fetched from the web API.
RecentPlayersClientclassHighLevelApiClientBase, IRecentPlayersClient2Online client for the players you recently met. Reached as ApiAccess.ApiClient.RecentPlayers; calls Alta's web API, which no longer answers.
RequestedGroupsclassPaginatedList<OutgoingGroupJoinRequest>0Paged list of groups the current user has asked to join, from the Alta web API.
SecurityApiClientclassHighLevelApiClientBase, ISecurityApiClient6Online client for bans and identity token checks. Reached as ApiAccess.ApiClient.SecurityClient; calls Alta's web API, which no longer answers.
ServerAccessclassIServerAccess8A server's session with Alta's web API: start, ping, online players and stop. Server side; returned by ServerApiClient for a positive server ID. Every call goes to the API, which no longer answers.
ServerApiClientclassHighLevelApiClientBase, IServerApiClient22Online client for servers: lists, info, joining, sessions and permissions. Reached as ApiAccess.ApiClient.ServerClient; calls Alta's web API, which no longer answers.
ServerReportCollectionclass1Player reports for one server, grouped into one summary per reported player. Built by PlayerReportsClient.ViewAllReportsAsSummary.
ServerStartArgumentsclass9What a server tells the Alta web API when it starts its session. Built by ServerHandler and passed to IServerAccess.StartAsync.
ServicesApiClientclassHighLevelApiClientBase, IServicesApiClient7Online client for general services: public IP lookup, password resets, sign-up codes, verification and identity tokens. Reached as ApiAccess.ApiClient.ServicesClient; calls Alta's web API, which no longer answers.
SettingsClientclassHighLevelApiClientBase, ISettingsClient2Alta's web API
ShopAccountclassIShopAccount6Online client for a player's shop account: balance, owned items and gifts. Reached through ShopClient.Account; calls Alta's web API, which no longer answers.
ShopApiClientclassHighLevelApiClientBase, IShopApiClient12Online client for the cosmetics shop. Reached as ApiAccess.ApiClient.ShopClient; calls Alta's web API, which no longer answers.
ShopEditorclassIShopEditor9Online client for managing shop items and item sets, an Alta staff tool. Reached through ShopClient.Editor; calls Alta's web API, which no longer answers.
ShopPurchaseclassIShopPurchase1Online client for buying shop items with shards. Reached through ShopClient.Purchase; calls Alta's web API, which no longer answers.
SocialClientclassHighLevelApiClientBase, ISocialClient9Online client for friends. Reached as ApiAccess.ApiClient.SocialClient; calls Alta's web API, which no longer answers. TavernEssentials swaps in its own.
Statusclass11A service status notice (an outage or incident message) as JSON from the web API, with its region, platform and severity.
Status.StatusPlatformenum4Platform a service status notice applies to: Quest, Pc, Pico or All.
Status.StatusRegionenum4Region a service status notice applies to: Australia, Usa, Europe or Global.
Status.StatusSeverityenum4Severity of a service status notice, from Low to Critical.
Status.StatusTypeenum2Whether a service status notice is OnGoing or Resolved.
StatusAPIclass2Fetches service status notices from Alta's Strapi site (strapi.townshiptale.dev).
UserApiClientclassHighLevelApiClientBase, IUserApiClient21High-level Alta API calls about user accounts: user info, verification, username and password changes, roles and cosmetic presets. Thin wrapper over the low-level API client.
VoiceApiClientclassHighLevelApiClientBase, IVoiceApiClient2High-level Alta API calls that get voice chat tokens.

Alta.Api.Client.HighLevel.Subscriptions​

TypeKindBasePublic membersDocumented in, or what it is
Teststatic class1Leftover static class holding one LINQ-style extension method.
WebSocketManagerclass3A small WebSocket client for the Alta API that sends JSON messages and routes incoming events to handlers by event name. Opens the socket lazily on the first send.

Alta.Api.Client.LowLevel​

TypeKindBasePublic membersDocumented in, or what it is
ApiBatchRequestServicestatic class1Collects small API posts and sends them in batches: entries are queued and flushed every 30 seconds or at 100 entries, grouped by URI into one JSON list per URI.
BatchedRequestEntryclass2One queued request in ApiBatchRequestService. Entries for the same address are sent together as one JSON list.
ConvertedPagedResult<TSource, T>classIPagedResult<T>5Wraps a paged API result and converts each item with a function, so a page of one model type can be read as another.
DoubleBufferedQueue<T>class3Two queues that swap: entries collect in one until a timer runs out or it is full, then it is passed to ProcessQueue and the other takes new entries. Used by ApiBatchRequestService (30 s, 100 entries).
IPagedResult<T>interface4A paged list result from the Alta web API, fetched one page at a time.
LoginCredentialsChangedHandlerdelegate0Callback for CredentialsChanged, given the old and the new login credentials.
LowLevelApiClientclass164The HTTP layer under IHighLevelApiClient: one method per endpoint of Alta's web API, which no longer answers. Most methods first refresh the login if needed (throwing AuthorizationException with none), and failed responses throw ApiErrorException, ForbiddenException or HttpException.
PagedConfigclass4Page size and continuation token for paged API calls.
PagedResult<T>classIPagedResult<T>5Pages through a paged Alta API endpoint, following the paginationToken response header.

Alta.Api.Client.Utility​

TypeKindBasePublic membersDocumented in, or what it is
ClientTokenUtilitystatic class1Helper for checking JWT tokens on the client.
LoginUtilitiesstatic class1Hashing helper used when logging in: the API takes password hashes, not passwords.