com.beamable 5.0.1 → 5.1.0-PREVIEW.RC10

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.
Files changed (687) hide show
  1. package/.attestation.p7m +0 -0
  2. package/CHANGELOG.md +27 -1
  3. package/Common/README.md +16 -3
  4. package/Common/Runtime/AgnosticAttribute.cs +2 -2
  5. package/Common/Runtime/Api/AliasHelper.cs +2 -2
  6. package/Common/Runtime/Api/Analytics/AnalyticsEventRequest.cs +2 -2
  7. package/Common/Runtime/Api/Analytics/AnalyticsService.cs +2 -2
  8. package/Common/Runtime/Api/Analytics/IBeamAnalyticsService.cs +2 -2
  9. package/Common/Runtime/Api/Analytics/Models/CoreEvent.cs +2 -2
  10. package/Common/Runtime/Api/Analytics/Models/IAnalyticsEvent.cs +2 -2
  11. package/Common/Runtime/Api/Analytics/Models/SampleCustomEvent.cs +2 -2
  12. package/Common/Runtime/Api/Announcements/AbsAnnouncementsApi.cs +2 -2
  13. package/Common/Runtime/Api/Announcements/IAnnouncementsApi.cs +2 -2
  14. package/Common/Runtime/Api/Auth/AuthApi.cs +2 -2
  15. package/Common/Runtime/Api/Auth/IAuthApi.cs +2 -2
  16. package/Common/Runtime/Api/Calendars/AbsCalendarApi.cs +2 -2
  17. package/Common/Runtime/Api/Calendars/ICalendarApi.cs +2 -2
  18. package/Common/Runtime/Api/Chat/ChatApi.cs +2 -2
  19. package/Common/Runtime/Api/Chat/IChatApi.cs +2 -2
  20. package/Common/Runtime/Api/CloudData/CloudDataApi.cs +2 -2
  21. package/Common/Runtime/Api/CloudData/ICloudDataApi.cs +2 -2
  22. package/Common/Runtime/Api/CometClientData.cs +2 -2
  23. package/Common/Runtime/Api/Commerce/ICommerceApi.cs +2 -2
  24. package/Common/Runtime/Api/Content/IContentApi.cs +2 -2
  25. package/Common/Runtime/Api/Events/AbsEventsApi.cs +23 -26
  26. package/Common/Runtime/Api/Events/IEventsApi.cs +2 -2
  27. package/Common/Runtime/Api/Groups/GroupsApi.cs +2 -2
  28. package/Common/Runtime/Api/Groups/IGroupsApi.cs +2 -2
  29. package/Common/Runtime/Api/IAccessToken.cs +2 -2
  30. package/Common/Runtime/Api/IBeamableFilesystemAccessor.cs +2 -2
  31. package/Common/Runtime/Api/IBeamableRequester.cs +2 -2
  32. package/Common/Runtime/Api/IConnectivityChecker.cs +2 -2
  33. package/Common/Runtime/Api/IHasBeamableRequester.cs +2 -2
  34. package/Common/Runtime/Api/IServiceRoutingStrategy.cs +2 -2
  35. package/Common/Runtime/Api/ISupportsGet.cs +2 -2
  36. package/Common/Runtime/Api/IUserContext.cs +2 -2
  37. package/Common/Runtime/Api/IUserDataCache.cs +2 -2
  38. package/Common/Runtime/Api/Inventory/IInventoryApi.cs +71 -4
  39. package/Common/Runtime/Api/Inventory/InventoryApi.cs +136 -37
  40. package/Common/Runtime/Api/Inventory/InventoryUpdateBuilder.cs +2 -2
  41. package/Common/Runtime/Api/Leaderboards/ILeaderboardApi.cs +2 -2
  42. package/Common/Runtime/Api/Leaderboards/LeaderboardApi.cs +2 -2
  43. package/Common/Runtime/Api/Lobbies/ILobbyApi.cs +2 -2
  44. package/Common/Runtime/Api/Lobbies/Lobby.cs +2 -2
  45. package/Common/Runtime/Api/Lobbies/LobbyNotification.cs +2 -2
  46. package/Common/Runtime/Api/Lobbies/LobbyPlayer.cs +2 -2
  47. package/Common/Runtime/Api/Lobbies/LobbyRestriction.cs +2 -2
  48. package/Common/Runtime/Api/Lobbies/LobbyService.cs +2 -2
  49. package/Common/Runtime/Api/Lobbies/LobbyUtils.cs +2 -2
  50. package/Common/Runtime/Api/Lobbies/NotInLobby.cs +2 -2
  51. package/Common/Runtime/Api/Lobbies/Requests/AddTagsRequest.cs +2 -2
  52. package/Common/Runtime/Api/Lobbies/Requests/CreateLobbyRequest.cs +2 -2
  53. package/Common/Runtime/Api/Lobbies/Requests/JoinByPasscodeRequest.cs +2 -2
  54. package/Common/Runtime/Api/Lobbies/Requests/JoinLobbyRequest.cs +2 -2
  55. package/Common/Runtime/Api/Lobbies/Requests/LobbyQueryRequest.cs +2 -2
  56. package/Common/Runtime/Api/Lobbies/Requests/LobbyQueryResponse.cs +2 -2
  57. package/Common/Runtime/Api/Lobbies/Requests/RemoveFromLobbyRequest.cs +2 -2
  58. package/Common/Runtime/Api/Lobbies/Requests/RemoveTagsRequest.cs +2 -2
  59. package/Common/Runtime/Api/Lobbies/Requests/UpdateLobbyRequest.cs +2 -2
  60. package/Common/Runtime/Api/Mail/AbsMailApi.cs +2 -2
  61. package/Common/Runtime/Api/Mail/IMailApi.cs +2 -2
  62. package/Common/Runtime/Api/Notifications/INotificationService.cs +2 -2
  63. package/Common/Runtime/Api/Notifications/PrimitiveStringPayload.cs +2 -2
  64. package/Common/Runtime/Api/Parties/IPartyApi.cs +2 -2
  65. package/Common/Runtime/Api/Parties/NotInParty.cs +2 -2
  66. package/Common/Runtime/Api/Parties/Party.cs +2 -2
  67. package/Common/Runtime/Api/Parties/PartyNotifications.cs +2 -2
  68. package/Common/Runtime/Api/Parties/PartyRestriction.cs +2 -2
  69. package/Common/Runtime/Api/Parties/PartyService.cs +2 -2
  70. package/Common/Runtime/Api/Parties/Requests/CreatePartyRequest.cs +2 -2
  71. package/Common/Runtime/Api/Parties/Requests/PartyQueryResponse.cs +2 -2
  72. package/Common/Runtime/Api/Parties/Requests/PlayerRequest.cs +2 -2
  73. package/Common/Runtime/Api/Parties/Requests/UpdatePartyRequest.cs +2 -2
  74. package/Common/Runtime/Api/Payments/IPaymentsApi.cs +2 -2
  75. package/Common/Runtime/Api/Payments/PaymentsApi.cs +2 -2
  76. package/Common/Runtime/Api/Presence/IPresenceApi.cs +2 -2
  77. package/Common/Runtime/Api/Presence/PresenceService.cs +2 -2
  78. package/Common/Runtime/Api/Push/IPushApi.cs +2 -2
  79. package/Common/Runtime/Api/QueryBuilder.cs +2 -2
  80. package/Common/Runtime/Api/Realms/IAliasService.cs +2 -2
  81. package/Common/Runtime/Api/Realms/IRealmApi.cs +2 -2
  82. package/Common/Runtime/Api/Realms/RealmService.cs +2 -2
  83. package/Common/Runtime/Api/SignedRequesterHelper.cs +2 -2
  84. package/Common/Runtime/Api/Social/ISocialApi.cs +2 -2
  85. package/Common/Runtime/Api/Social/SocialApi.cs +2 -2
  86. package/Common/Runtime/Api/Stats/AbsStatsApi.cs +2 -2
  87. package/Common/Runtime/Api/Stats/IStatsApi.cs +2 -2
  88. package/Common/Runtime/Api/Stats/StatsAccessType.cs +2 -2
  89. package/Common/Runtime/Api/Stats/StatsApiHelper.cs +2 -2
  90. package/Common/Runtime/Api/Stats/StatsDomainType.cs +2 -2
  91. package/Common/Runtime/Api/Tournaments/ITournamentApi.cs +2 -2
  92. package/Common/Runtime/Api/Tournaments/TournamentApi.cs +2 -2
  93. package/Common/Runtime/BeamCli/CliContractTypeAttribute.cs +2 -2
  94. package/Common/Runtime/BeamCli/CliOtelData.cs +2 -2
  95. package/Common/Runtime/BeamCli/Contracts/CliLogMessage.cs +2 -2
  96. package/Common/Runtime/BeamCli/Contracts/CollectorStatus.cs +2 -2
  97. package/Common/Runtime/BeamCli/Contracts/Constants.cs +2 -2
  98. package/Common/Runtime/BeamCli/Contracts/ContentService/AutoSnapshotActionType.cs +2 -2
  99. package/Common/Runtime/BeamCli/Contracts/ContentService/AutoSnapshotType.cs +2 -2
  100. package/Common/Runtime/BeamCli/Contracts/ContentService/ContentSnapshotType.cs +2 -2
  101. package/Common/Runtime/BeamCli/Contracts/ContentService/ContentStatus.cs +2 -2
  102. package/Common/Runtime/BeamCli/Contracts/ContentService/LocalContentManifest.cs +2 -2
  103. package/Common/Runtime/BeamCli/Contracts/ContentService/LocalContentManifestEntry.cs +2 -2
  104. package/Common/Runtime/BeamCli/Contracts/ContentService/ManifestAuthor.cs +2 -2
  105. package/Common/Runtime/BeamCli/Contracts/ContentService/ManifestProjectData.cs +2 -2
  106. package/Common/Runtime/BeamCli/Contracts/ContentService/TagStatus.cs +2 -2
  107. package/Common/Runtime/BeamCli/Contracts/EnvironmentVersionData.cs +2 -2
  108. package/Common/Runtime/BeamCli/Contracts/GenerateEnvOutput.cs +2 -2
  109. package/Common/Runtime/BeamCli/Contracts/ServiceInfo.cs +2 -2
  110. package/Common/Runtime/BeamCli/ErrorOutput.cs +2 -2
  111. package/Common/Runtime/BeamCli/IBeamCommand.cs +2 -2
  112. package/Common/Runtime/BeamCli/Reporting.cs +2 -2
  113. package/Common/Runtime/BeamCli/ServiceInfoHelper.cs +2 -2
  114. package/Common/Runtime/BeamGenerateSchemaAttribute.cs +2 -2
  115. package/Common/Runtime/BeamableColorUtil.cs +2 -2
  116. package/Common/Runtime/BeamableEnumExtensions.cs +2 -2
  117. package/Common/Runtime/BeamableTaskExtensions.cs +2 -2
  118. package/Common/Runtime/Collections/ConcurrentBag.cs +2 -2
  119. package/Common/Runtime/Collections/ConcurrentDictionary.cs +2 -2
  120. package/Common/Runtime/Constants/Constants.cs +13 -4
  121. package/Common/Runtime/Constants/Implementations/ArchiveConstants.cs +2 -2
  122. package/Common/Runtime/Constants/Implementations/ConfigConstants.cs +2 -2
  123. package/Common/Runtime/Constants/Implementations/ContentConstants.cs +2 -2
  124. package/Common/Runtime/Constants/Implementations/ContentManagerConstants.cs +2 -2
  125. package/Common/Runtime/Constants/Implementations/CronConstants.cs +2 -2
  126. package/Common/Runtime/Constants/Implementations/DockerConstants.cs +2 -2
  127. package/Common/Runtime/Constants/Implementations/EnvironmentConstants.cs +2 -2
  128. package/Common/Runtime/Constants/Implementations/LoginBaseConstants.cs +2 -2
  129. package/Common/Runtime/Constants/Implementations/MigrationConstants.cs +2 -2
  130. package/Common/Runtime/Constants/Implementations/NotificationConstants.cs +2 -2
  131. package/Common/Runtime/Constants/Implementations/OtelConstants.cs +32 -2
  132. package/Common/Runtime/Constants/Implementations/PortalExtensionConstants.cs +18 -0
  133. package/Common/Runtime/{OpenApi/BeamServiceplan.gs.cs.meta → Constants/Implementations/PortalExtensionConstants.cs.meta} +1 -1
  134. package/Common/Runtime/Constants/Implementations/RequesterConstants.cs +2 -2
  135. package/Common/Runtime/Constants/Implementations/SchedulesConstants.cs +2 -2
  136. package/Common/Runtime/Constants/Implementations/ServiceConstants.cs +9 -2
  137. package/Common/Runtime/Constants/Implementations/SpewConstants.cs +2 -2
  138. package/Common/Runtime/Constants/Implementations/TestingToolConstants.cs +2 -2
  139. package/Common/Runtime/Constants/Implementations/ToolbarConstants.cs +2 -2
  140. package/Common/Runtime/Constants/Implementations/ToolboxConstants.cs +2 -2
  141. package/Common/Runtime/Constants/Implementations/TooltipConstants.cs +2 -2
  142. package/Common/Runtime/Content/ClientContentSerializer.cs +13 -2
  143. package/Common/Runtime/Content/ClientManifest.cs +2 -2
  144. package/Common/Runtime/Content/ClientPermissions.cs +2 -2
  145. package/Common/Runtime/Content/ContentCorruptedException.cs +2 -2
  146. package/Common/Runtime/Content/ContentDataInfo.cs +2 -2
  147. package/Common/Runtime/Content/ContentDeserializationException.cs +2 -2
  148. package/Common/Runtime/Content/ContentFieldAttribute.cs +2 -2
  149. package/Common/Runtime/Content/ContentFilterType.cs +2 -2
  150. package/Common/Runtime/Content/ContentNotFoundException.cs +2 -2
  151. package/Common/Runtime/Content/ContentObject.cs +47 -8
  152. package/Common/Runtime/Content/ContentQuery.cs +2 -2
  153. package/Common/Runtime/Content/ContentQueryExtensions.cs +2 -2
  154. package/Common/Runtime/Content/ContentRef.cs +2 -2
  155. package/Common/Runtime/Content/ContentSerializer.cs +2 -2
  156. package/Common/Runtime/Content/ContentTypeAttribute.cs +2 -2
  157. package/Common/Runtime/Content/ContentTypeReflectionCache.cs +2 -2
  158. package/Common/Runtime/Content/ContentVisibility.cs +2 -2
  159. package/Common/Runtime/Content/Federation.cs +2 -2
  160. package/Common/Runtime/Content/IContentObject.cs +2 -2
  161. package/Common/Runtime/Content/IContentService.cs +2 -2
  162. package/Common/Runtime/Content/IIgnoreSerializationCallbacks.cs +2 -2
  163. package/Common/Runtime/Content/IgnoreContentFieldAttribute.cs +2 -2
  164. package/Common/Runtime/Content/Optionals.cs +2 -2
  165. package/Common/Runtime/Content/PropertyAttributes/FilePathSelectorAttribute.cs +2 -2
  166. package/Common/Runtime/Content/PropertyAttributes/HideUnlessServerPackageInstalled.cs +2 -2
  167. package/Common/Runtime/Content/PropertyAttributes/ReadonlyIfAttribute.cs +2 -2
  168. package/Common/Runtime/Content/PropertyAttributes/ShowOnlyAttribute.cs +2 -2
  169. package/Common/Runtime/Content/RenderAsRefAttribute.cs +2 -2
  170. package/Common/Runtime/Content/SerializableDictionary.cs +2 -2
  171. package/Common/Runtime/Content/Utility/DateUtility.cs +2 -2
  172. package/Common/Runtime/Content/Validation/AggregateContentValidationException.cs +2 -2
  173. package/Common/Runtime/Content/Validation/CannotBeBlank.cs +2 -2
  174. package/Common/Runtime/Content/Validation/CannotBeEmpty.cs +2 -2
  175. package/Common/Runtime/Content/Validation/ContentValidationException.cs +2 -2
  176. package/Common/Runtime/Content/Validation/FederationMustBeValid.cs +2 -2
  177. package/Common/Runtime/Content/Validation/MustBeComparatorString.cs +2 -2
  178. package/Common/Runtime/Content/Validation/MustBeCurrency.cs +2 -2
  179. package/Common/Runtime/Content/Validation/MustBeCurrencyOrItem.cs +2 -2
  180. package/Common/Runtime/Content/Validation/MustBeDateString.cs +2 -2
  181. package/Common/Runtime/Content/Validation/MustBeItem.cs +2 -2
  182. package/Common/Runtime/Content/Validation/MustBeLeaderboard.cs +2 -2
  183. package/Common/Runtime/Content/Validation/MustBeNonDefault.cs +2 -2
  184. package/Common/Runtime/Content/Validation/MustBeNonNegative.cs +2 -2
  185. package/Common/Runtime/Content/Validation/MustBeOneOf.cs +2 -2
  186. package/Common/Runtime/Content/Validation/MustBePositive.cs +2 -2
  187. package/Common/Runtime/Content/Validation/MustBeSlugString.cs +2 -2
  188. package/Common/Runtime/Content/Validation/MustBeTimeSpanDuration.cs +2 -2
  189. package/Common/Runtime/Content/Validation/MustBeValidCron.cs +2 -2
  190. package/Common/Runtime/Content/Validation/MustContain.cs +2 -2
  191. package/Common/Runtime/Content/Validation/MustReferenceContent.cs +2 -2
  192. package/Common/Runtime/Content/Validation/RouteParametersMustBeValid.cs +2 -2
  193. package/Common/Runtime/Content/Validation/ServiceRouteMustBeValid.cs +2 -2
  194. package/Common/Runtime/Content/Validation/TimeSpanDisplayAttribute.cs +2 -2
  195. package/Common/Runtime/Content/Validation/ValidationAttribute.cs +2 -2
  196. package/Common/Runtime/Content/Validation/ValidationContext.cs +2 -2
  197. package/Common/Runtime/CronExpression/CronLocale.cs +2 -2
  198. package/Common/Runtime/CronExpression/ErrorData.cs +2 -2
  199. package/Common/Runtime/CronExpression/ExpressionParser.cs +2 -2
  200. package/Common/Runtime/CronExpression/Options.cs +2 -2
  201. package/Common/Runtime/Debug.cs +2 -2
  202. package/Common/Runtime/DefaultQuery.cs +2 -2
  203. package/Common/Runtime/Dependencies/DependencyBuilder.cs +2 -2
  204. package/Common/Runtime/Dependencies/DependencyProvider.cs +12 -2
  205. package/Common/Runtime/Dependencies/Exceptions.cs +2 -2
  206. package/Common/Runtime/Dependencies/IDependencyList.cs +2 -2
  207. package/Common/Runtime/Dependencies/IDependencyNameProvider.cs +2 -2
  208. package/Common/Runtime/Dependencies/RegisterBeamableDependenciesAttribute.cs +2 -2
  209. package/Common/Runtime/Dependencies/ServiceStorage.cs +2 -2
  210. package/Common/Runtime/Dependencies/Utils.cs +2 -2
  211. package/Common/Runtime/DocUtils.cs +2 -2
  212. package/Common/Runtime/Environment/PackageVersion.cs +2 -2
  213. package/Common/Runtime/Federation/FederatedGameServer.cs +2 -2
  214. package/Common/Runtime/Federation/FederatedInventory.cs +2 -2
  215. package/Common/Runtime/Federation/FederatedLogin.cs +2 -2
  216. package/Common/Runtime/Federation/FederatedPlayerInit.cs +2 -2
  217. package/Common/Runtime/Federation/Federation.cs +2 -2
  218. package/Common/Runtime/IRuntimeConfigProvider.cs +2 -2
  219. package/Common/Runtime/ISearchableElement.cs +2 -2
  220. package/Common/Runtime/JsonSerializable/DeleteStream.cs +2 -2
  221. package/Common/Runtime/JsonSerializable/DiffStream.cs +2 -2
  222. package/Common/Runtime/JsonSerializable/JsonData.cs +2 -2
  223. package/Common/Runtime/JsonSerializable/JsonSaveStream.cs +2 -2
  224. package/Common/Runtime/JsonSerializable/JsonSerializable.cs +2 -2
  225. package/Common/Runtime/JsonSerializable/LoadStream.cs +2 -2
  226. package/Common/Runtime/JsonSerializable/MessagePackStream.cs +2 -2
  227. package/Common/Runtime/JsonSerializable/SaveStream.cs +2 -2
  228. package/Common/Runtime/JsonSerializable/TypeLookupFactory.cs +2 -2
  229. package/Common/Runtime/Modules/Announcements/AnnouncementApiContent.cs +2 -2
  230. package/Common/Runtime/Modules/Announcements/AnnouncementContent.cs +2 -2
  231. package/Common/Runtime/Modules/Announcements/AnnouncementRef.cs +2 -2
  232. package/Common/Runtime/Modules/Calendars/CalendarContent.cs +2 -2
  233. package/Common/Runtime/Modules/Calendars/CalendarRef.cs +2 -2
  234. package/Common/Runtime/Modules/Groups/GroupDonationContentRef.cs +2 -2
  235. package/Common/Runtime/Modules/Groups/GroupDonationsContent.cs +2 -2
  236. package/Common/Runtime/Modules/Inventory/CurrencyContent.cs +2 -2
  237. package/Common/Runtime/Modules/Inventory/CurrencyRef.cs +2 -2
  238. package/Common/Runtime/Modules/Inventory/ItemContent.cs +2 -2
  239. package/Common/Runtime/Modules/Inventory/ItemRef.cs +2 -2
  240. package/Common/Runtime/Modules/Inventory/VipContent.cs +2 -2
  241. package/Common/Runtime/Modules/Leaderboards/LeaderboardContent.cs +2 -2
  242. package/Common/Runtime/Modules/Leaderboards/LeaderboardRef.cs +2 -2
  243. package/Common/Runtime/Modules/SharedContent/ApiContent.cs +2 -2
  244. package/Common/Runtime/Modules/SharedContent/EmailContent.cs +2 -2
  245. package/Common/Runtime/Modules/SharedContent/EventContent.cs +2 -2
  246. package/Common/Runtime/Modules/SharedContent/PlayerReward.cs +2 -2
  247. package/Common/Runtime/Modules/SharedContent/ScheduleDefinition.cs +2 -2
  248. package/Common/Runtime/Modules/SharedContent/ScheduleExtensions.cs +2 -2
  249. package/Common/Runtime/Modules/SharedContent/SimGameType.cs +2 -2
  250. package/Common/Runtime/Modules/Shop/ListingContent.cs +2 -2
  251. package/Common/Runtime/Modules/Shop/ListingLink.cs +2 -2
  252. package/Common/Runtime/Modules/Shop/ListingRef.cs +2 -2
  253. package/Common/Runtime/Modules/Shop/SKUContent.cs +2 -2
  254. package/Common/Runtime/Modules/Shop/SKURef.cs +2 -2
  255. package/Common/Runtime/Modules/Shop/StoreContent.cs +2 -2
  256. package/Common/Runtime/Modules/Shop/StoreRef.cs +2 -2
  257. package/Common/Runtime/Modules/Steam/ISteamService.cs +2 -2
  258. package/Common/Runtime/Modules/Tournaments/TournamentColorConstants.cs +2 -2
  259. package/Common/Runtime/Modules/Tournaments/TournamentContent.cs +2 -2
  260. package/Common/Runtime/ObjectExtensions.cs +2 -2
  261. package/Common/Runtime/OpenApi/AccountsBasic.gs.cs +2 -2
  262. package/Common/Runtime/OpenApi/AccountsBasicCommon.gs.cs +2 -2
  263. package/Common/Runtime/OpenApi/AccountsObject.gs.cs +2 -2
  264. package/Common/Runtime/OpenApi/AnnouncementsBasic.gs.cs +2 -2
  265. package/Common/Runtime/OpenApi/AnnouncementsBasicCommon.gs.cs +2 -2
  266. package/Common/Runtime/OpenApi/AnnouncementsObject.gs.cs +2 -2
  267. package/Common/Runtime/OpenApi/AuthBasic.gs.cs +2 -2
  268. package/Common/Runtime/OpenApi/AuthBasicCommon.gs.cs +2 -2
  269. package/Common/Runtime/OpenApi/BeamAuth.gs.cs +2 -2
  270. package/Common/Runtime/OpenApi/BeamAuthCommon.gs.cs +2 -2
  271. package/Common/Runtime/OpenApi/BeamBeamo.gs.cs +136 -38
  272. package/Common/Runtime/OpenApi/BeamBeamoCommon.gs.cs +2 -2
  273. package/Common/Runtime/OpenApi/BeamBeamootel.gs.cs +32 -8
  274. package/Common/Runtime/OpenApi/BeamBeamootelCommon.gs.cs +2 -2
  275. package/Common/Runtime/OpenApi/BeamBilling.gs.cs +45 -0
  276. package/Common/Runtime/OpenApi/{BeamAdmin.gs.cs.meta → BeamBilling.gs.cs.meta} +1 -1
  277. package/Common/Runtime/OpenApi/BeamBillingCommon.gs.cs +45 -0
  278. package/Common/Runtime/OpenApi/{BeamServiceplanCommon.gs.cs.meta → BeamBillingCommon.gs.cs.meta} +1 -1
  279. package/Common/Runtime/OpenApi/BeamCustomer.gs.cs +198 -124
  280. package/Common/Runtime/OpenApi/BeamCustomerCommon.gs.cs +2 -2
  281. package/Common/Runtime/OpenApi/BeamLobby.gs.cs +4 -4
  282. package/Common/Runtime/OpenApi/BeamLobbyCommon.gs.cs +2 -2
  283. package/Common/Runtime/OpenApi/BeamMailbox.gs.cs +6 -2
  284. package/Common/Runtime/OpenApi/BeamMailboxCommon.gs.cs +2 -2
  285. package/Common/Runtime/OpenApi/BeamMatchmaking.gs.cs +4 -4
  286. package/Common/Runtime/OpenApi/BeamMatchmakingCommon.gs.cs +2 -2
  287. package/Common/Runtime/OpenApi/BeamParty.gs.cs +6 -6
  288. package/Common/Runtime/OpenApi/BeamPartyCommon.gs.cs +2 -2
  289. package/Common/Runtime/OpenApi/BeamPlayer.gs.cs +20 -8
  290. package/Common/Runtime/OpenApi/BeamPlayerCommon.gs.cs +2 -2
  291. package/Common/Runtime/OpenApi/BeamPlayerlobby.gs.cs +2 -2
  292. package/Common/Runtime/OpenApi/BeamPlayerlobbyCommon.gs.cs +2 -2
  293. package/Common/Runtime/OpenApi/BeamPlayerparty.gs.cs +2 -2
  294. package/Common/Runtime/OpenApi/BeamPlayerpartyCommon.gs.cs +2 -2
  295. package/Common/Runtime/OpenApi/BeamPlayersession.gs.cs +110 -0
  296. package/Common/Runtime/OpenApi/{BeamAdminCommon.gs.cs.meta → BeamPlayersession.gs.cs.meta} +1 -1
  297. package/Common/Runtime/OpenApi/BeamPlayersessionCommon.gs.cs +45 -0
  298. package/Common/Runtime/OpenApi/BeamPlayersessionCommon.gs.cs.meta +11 -0
  299. package/Common/Runtime/OpenApi/BeamPlayerstats.gs.cs +159 -0
  300. package/Common/Runtime/OpenApi/BeamPlayerstats.gs.cs.meta +11 -0
  301. package/Common/Runtime/OpenApi/{BeamServiceplanCommon.gs.cs → BeamPlayerstatsCommon.gs.cs} +6 -6
  302. package/Common/Runtime/OpenApi/BeamPlayerstatsCommon.gs.cs.meta +11 -0
  303. package/Common/Runtime/OpenApi/BeamPlayerticket.gs.cs +2 -2
  304. package/Common/Runtime/OpenApi/BeamPlayerticketCommon.gs.cs +2 -2
  305. package/Common/Runtime/OpenApi/BeamPresence.gs.cs +6 -2
  306. package/Common/Runtime/OpenApi/BeamPresenceCommon.gs.cs +2 -2
  307. package/Common/Runtime/OpenApi/BeamRealmsecrets.gs.cs +255 -0
  308. package/Common/Runtime/OpenApi/BeamRealmsecrets.gs.cs.meta +11 -0
  309. package/Common/Runtime/OpenApi/BeamRealmsecretsCommon.gs.cs +45 -0
  310. package/Common/Runtime/OpenApi/BeamRealmsecretsCommon.gs.cs.meta +11 -0
  311. package/Common/Runtime/OpenApi/BeamScheduler.gs.cs +90 -42
  312. package/Common/Runtime/OpenApi/BeamSchedulerCommon.gs.cs +2 -2
  313. package/Common/Runtime/OpenApi/BeamSession.gs.cs +114 -0
  314. package/Common/Runtime/OpenApi/BeamSession.gs.cs.meta +11 -0
  315. package/Common/Runtime/OpenApi/BeamSessionCommon.gs.cs +45 -0
  316. package/Common/Runtime/OpenApi/BeamSessionCommon.gs.cs.meta +11 -0
  317. package/Common/Runtime/OpenApi/BeamStats.gs.cs +308 -0
  318. package/Common/Runtime/OpenApi/BeamStats.gs.cs.meta +11 -0
  319. package/Common/Runtime/OpenApi/{BeamAdminCommon.gs.cs → BeamStatsCommon.gs.cs} +6 -6
  320. package/Common/Runtime/OpenApi/BeamStatsCommon.gs.cs.meta +11 -0
  321. package/Common/Runtime/OpenApi/BeamoBasic.gs.cs +2 -2
  322. package/Common/Runtime/OpenApi/BeamoBasicCommon.gs.cs +2 -2
  323. package/Common/Runtime/OpenApi/CalendarsObject.gs.cs +2 -2
  324. package/Common/Runtime/OpenApi/CalendarsObjectCommon.gs.cs +2 -2
  325. package/Common/Runtime/OpenApi/CloudsavingBasic.gs.cs +2 -2
  326. package/Common/Runtime/OpenApi/CloudsavingBasicCommon.gs.cs +2 -2
  327. package/Common/Runtime/OpenApi/CommerceBasic.gs.cs +2 -2
  328. package/Common/Runtime/OpenApi/CommerceBasicCommon.gs.cs +2 -2
  329. package/Common/Runtime/OpenApi/CommerceObject.gs.cs +2 -2
  330. package/Common/Runtime/OpenApi/ContentBasic.gs.cs +21 -2
  331. package/Common/Runtime/OpenApi/ContentBasicCommon.gs.cs +2 -2
  332. package/Common/Runtime/OpenApi/Event-playersObject.gs.cs +2 -2
  333. package/Common/Runtime/OpenApi/Event-playersObjectCommon.gs.cs +2 -2
  334. package/Common/Runtime/OpenApi/EventsBasic.gs.cs +2 -2
  335. package/Common/Runtime/OpenApi/EventsBasicCommon.gs.cs +2 -2
  336. package/Common/Runtime/OpenApi/EventsObject.gs.cs +2 -2
  337. package/Common/Runtime/OpenApi/Group-usersObject.gs.cs +2 -2
  338. package/Common/Runtime/OpenApi/Group-usersObjectCommon.gs.cs +2 -2
  339. package/Common/Runtime/OpenApi/GroupsObject.gs.cs +2 -2
  340. package/Common/Runtime/OpenApi/GroupsObjectCommon.gs.cs +2 -2
  341. package/Common/Runtime/OpenApi/InventoryBasic.gs.cs +2 -2
  342. package/Common/Runtime/OpenApi/InventoryBasicCommon.gs.cs +2 -2
  343. package/Common/Runtime/OpenApi/InventoryObject.gs.cs +2 -2
  344. package/Common/Runtime/OpenApi/LeaderboardsBasic.gs.cs +2 -2
  345. package/Common/Runtime/OpenApi/LeaderboardsBasicCommon.gs.cs +2 -2
  346. package/Common/Runtime/OpenApi/LeaderboardsObject.gs.cs +2 -2
  347. package/Common/Runtime/OpenApi/MailBasic.gs.cs +2 -2
  348. package/Common/Runtime/OpenApi/MailBasicCommon.gs.cs +2 -2
  349. package/Common/Runtime/OpenApi/MailObject.gs.cs +2 -2
  350. package/Common/Runtime/OpenApi/Models.gs.cs +1489 -410
  351. package/Common/Runtime/OpenApi/NotificationBasic.gs.cs +21 -2
  352. package/Common/Runtime/OpenApi/NotificationBasicCommon.gs.cs +2 -2
  353. package/Common/Runtime/OpenApi/PaymentsBasic.gs.cs +160 -2
  354. package/Common/Runtime/OpenApi/PaymentsBasicCommon.gs.cs +2 -2
  355. package/Common/Runtime/OpenApi/PaymentsObject.gs.cs +2 -2
  356. package/Common/Runtime/OpenApi/PushBasic.gs.cs +2 -2
  357. package/Common/Runtime/OpenApi/PushBasicCommon.gs.cs +2 -2
  358. package/Common/Runtime/OpenApi/RealmsBasic.gs.cs +12 -12
  359. package/Common/Runtime/OpenApi/RealmsBasicCommon.gs.cs +2 -2
  360. package/Common/Runtime/OpenApi/SessionBasic.gs.cs +16 -16
  361. package/Common/Runtime/OpenApi/SessionBasicCommon.gs.cs +2 -2
  362. package/Common/Runtime/OpenApi/SocialBasic.gs.cs +2 -2
  363. package/Common/Runtime/OpenApi/SocialBasicCommon.gs.cs +2 -2
  364. package/Common/Runtime/OpenApi/StatsBasic.gs.cs +9 -9
  365. package/Common/Runtime/OpenApi/StatsBasicCommon.gs.cs +2 -2
  366. package/Common/Runtime/OpenApi/StatsObject.gs.cs +2 -2
  367. package/Common/Runtime/OpenApi/TournamentsBasic.gs.cs +2 -2
  368. package/Common/Runtime/OpenApi/TournamentsBasicCommon.gs.cs +2 -2
  369. package/Common/Runtime/OpenApi/TournamentsObject.gs.cs +2 -2
  370. package/Common/Runtime/OpenApi/TrialsBasic.gs.cs +2 -2
  371. package/Common/Runtime/OpenApi/TrialsBasicCommon.gs.cs +2 -2
  372. package/Common/Runtime/OpenApiExtensions/BeamoExtensions.cs +2 -2
  373. package/Common/Runtime/OpenApiExtensions/LegacyConverterExtensions.cs +189 -2
  374. package/Common/Runtime/OpenApiSystem.cs +2 -2
  375. package/Common/Runtime/Player/Lazy.cs +2 -2
  376. package/Common/Runtime/Player/Observables.cs +2 -2
  377. package/Common/Runtime/Pooling/ClassPool.cs +2 -2
  378. package/Common/Runtime/Pooling/StringBuilderPool.cs +2 -2
  379. package/Common/Runtime/Promise.cs +66 -43
  380. package/Common/Runtime/ReflectionCache/BeamContextSystemAttribute.cs +2 -2
  381. package/Common/Runtime/ReflectionCache/INamingAttribute.cs +2 -2
  382. package/Common/Runtime/ReflectionCache/IReflectionAttribute.cs +2 -2
  383. package/Common/Runtime/ReflectionCache/PreserveAttribute.cs +2 -2
  384. package/Common/Runtime/ReflectionCache/ReflectionCache.cs +2 -2
  385. package/Common/Runtime/ReflectionCache/ReflectionCache_Attributes.cs +2 -2
  386. package/Common/Runtime/ReflectionCache/ReflectionCache_BaseTypes.cs +2 -2
  387. package/Common/Runtime/ReflectionCache/ReflectionCache_SignatureMatching.cs +2 -2
  388. package/Common/Runtime/Scheduler/BeamScheduler.cs +2 -2
  389. package/Common/Runtime/Scheduler/Cron.cs +2 -2
  390. package/Common/Runtime/Scheduler/CronValidation.cs +2 -2
  391. package/Common/Runtime/Semantics/BeamAccountId.cs +91 -0
  392. package/Common/Runtime/Semantics/BeamAccountId.cs.meta +11 -0
  393. package/Common/Runtime/Semantics/BeamCid.cs +89 -0
  394. package/Common/Runtime/Semantics/BeamCid.cs.meta +11 -0
  395. package/Common/Runtime/Semantics/BeamContentId.cs +55 -0
  396. package/Common/Runtime/Semantics/BeamContentId.cs.meta +11 -0
  397. package/Common/Runtime/Semantics/BeamContentManifestId.cs +49 -0
  398. package/Common/Runtime/Semantics/BeamContentManifestId.cs.meta +11 -0
  399. package/Common/Runtime/Semantics/BeamGamerTag.cs +90 -0
  400. package/Common/Runtime/Semantics/BeamGamerTag.cs.meta +11 -0
  401. package/Common/Runtime/Semantics/BeamPid.cs +49 -0
  402. package/Common/Runtime/Semantics/BeamPid.cs.meta +11 -0
  403. package/Common/Runtime/Semantics/BeamStats.cs +62 -0
  404. package/Common/Runtime/Semantics/BeamStats.cs.meta +11 -0
  405. package/Common/Runtime/Semantics/IBeamSemanticType.cs +16 -0
  406. package/Common/Runtime/Semantics/IBeamSemanticType.cs.meta +11 -0
  407. package/Common/Runtime/Semantics/ServiceName.cs +25 -4
  408. package/Common/Runtime/SmallerJSON/IRawJsonProvider.cs +2 -2
  409. package/Common/Runtime/SmallerJSON/SmallerJSON.ArrayDict.cs +2 -2
  410. package/Common/Runtime/SmallerJSON/SmallerJSON.FromString.cs +2 -2
  411. package/Common/Runtime/SmallerJSON/SmallerJSON.cs +226 -2
  412. package/Common/Runtime/Spew/Logger.cs +2 -2
  413. package/Common/Runtime/Spew/SpewLoggerAttribute.cs +2 -2
  414. package/Common/Runtime/Trie.cs +2 -2
  415. package/Common/Runtime/TypeExtensions.cs +2 -2
  416. package/Common/Runtime/Util/BeamAssemblyVersionUtil.cs +2 -2
  417. package/Common/Runtime/Util/BeamFileUtil.cs +2 -2
  418. package/Common/Runtime/Util/DocsPageHelper.cs +2 -2
  419. package/Common/Runtime/Util/NaturalStringComparer.cs +2 -2
  420. package/Editor/BeamCli/BeamCliUtil.cs +165 -18
  421. package/Editor/BeamCli/BeamCommand.cs +0 -6
  422. package/Editor/BeamCli/BeamWebCommand.cs +102 -56
  423. package/Editor/BeamCli/Commands/Beam.cs +7 -0
  424. package/Editor/BeamCli/Commands/BeamBeamableTypesSchema.cs +17 -0
  425. package/Editor/BeamCli/Commands/BeamBeamableTypesSchema.cs.meta +11 -0
  426. package/Editor/BeamCli/Commands/BeamComponentExtensionOption.cs +13 -0
  427. package/Editor/BeamCli/Commands/BeamComponentExtensionOption.cs.meta +11 -0
  428. package/Editor/BeamCli/Commands/BeamComponentSelectorOption.cs +13 -0
  429. package/Editor/BeamCli/Commands/BeamComponentSelectorOption.cs.meta +11 -0
  430. package/Editor/BeamCli/Commands/BeamContentFieldEntry.cs +14 -0
  431. package/Editor/BeamCli/Commands/BeamContentFieldEntry.cs.meta +11 -0
  432. package/Editor/BeamCli/Commands/BeamContentHistory.cs +97 -0
  433. package/Editor/BeamCli/Commands/BeamContentHistory.cs.meta +11 -0
  434. package/Editor/BeamCli/Commands/BeamContentHistoryChangelist.cs +11 -0
  435. package/Editor/BeamCli/Commands/BeamContentHistoryChangelist.cs.meta +11 -0
  436. package/Editor/BeamCli/Commands/BeamContentHistoryChangelistEntry.cs +23 -0
  437. package/Editor/BeamCli/Commands/BeamContentHistoryChangelistEntry.cs.meta +11 -0
  438. package/Editor/BeamCli/Commands/BeamContentHistoryChangelistPage.cs +12 -0
  439. package/Editor/BeamCli/Commands/BeamContentHistoryChangelistPage.cs.meta +11 -0
  440. package/Editor/BeamCli/Commands/BeamContentHistoryCommandEvent.cs +16 -0
  441. package/Editor/BeamCli/Commands/BeamContentHistoryCommandEvent.cs.meta +11 -0
  442. package/Editor/BeamCli/Commands/BeamContentHistoryEntriesPage.cs +15 -0
  443. package/Editor/BeamCli/Commands/BeamContentHistoryEntriesPage.cs.meta +11 -0
  444. package/Editor/BeamCli/Commands/BeamContentHistoryEntry.cs +16 -0
  445. package/Editor/BeamCli/Commands/BeamContentHistoryEntry.cs.meta +11 -0
  446. package/Editor/BeamCli/Commands/BeamContentHistoryRestoreCommandOutput.cs +12 -0
  447. package/Editor/BeamCli/Commands/BeamContentHistoryRestoreCommandOutput.cs.meta +11 -0
  448. package/Editor/BeamCli/Commands/BeamContentHistoryRestoreContent.cs +82 -0
  449. package/Editor/BeamCli/Commands/BeamContentHistoryRestoreContent.cs.meta +11 -0
  450. package/Editor/BeamCli/Commands/BeamContentHistorySyncChangelist.cs +71 -0
  451. package/Editor/BeamCli/Commands/BeamContentHistorySyncChangelist.cs.meta +11 -0
  452. package/Editor/BeamCli/Commands/BeamContentHistorySyncChangelistCommandOutput.cs +12 -0
  453. package/Editor/BeamCli/Commands/BeamContentHistorySyncChangelistCommandOutput.cs.meta +11 -0
  454. package/Editor/BeamCli/Commands/BeamContentHistorySyncContent.cs +82 -0
  455. package/Editor/BeamCli/Commands/BeamContentHistorySyncContent.cs.meta +11 -0
  456. package/Editor/BeamCli/Commands/BeamContentHistorySyncContentCommandOutput.cs +12 -0
  457. package/Editor/BeamCli/Commands/BeamContentHistorySyncContentCommandOutput.cs.meta +11 -0
  458. package/Editor/BeamCli/Commands/BeamContentSync.cs +7 -0
  459. package/Editor/BeamCli/Commands/BeamContentTypeEntry.cs +18 -0
  460. package/Editor/BeamCli/Commands/BeamContentTypeEntry.cs.meta +11 -0
  461. package/Editor/BeamCli/Commands/BeamDeployablePlan.cs +2 -0
  462. package/Editor/BeamCli/Commands/BeamDeploymentDiffSummary.cs +3 -0
  463. package/Editor/BeamCli/Commands/BeamDeploymentPlan.cs +14 -0
  464. package/Editor/BeamCli/Commands/BeamDeploymentRelease.cs +14 -0
  465. package/Editor/BeamCli/Commands/BeamFederationMethodEntry.cs +15 -0
  466. package/Editor/BeamCli/Commands/BeamFederationMethodEntry.cs.meta +11 -0
  467. package/Editor/BeamCli/Commands/BeamFederationMethodParam.cs +13 -0
  468. package/Editor/BeamCli/Commands/BeamFederationMethodParam.cs.meta +11 -0
  469. package/Editor/BeamCli/Commands/BeamFederationTypeEntry.cs +17 -0
  470. package/Editor/BeamCli/Commands/BeamFederationTypeEntry.cs.meta +11 -0
  471. package/Editor/BeamCli/Commands/BeamGameWithRealms.cs +14 -0
  472. package/Editor/BeamCli/Commands/BeamGameWithRealms.cs.meta +11 -0
  473. package/Editor/BeamCli/Commands/BeamGenerateSkillDocs.cs +57 -0
  474. package/Editor/BeamCli/Commands/BeamGenerateSkillDocs.cs.meta +11 -0
  475. package/Editor/BeamCli/Commands/BeamGenerateSkillDocsCommandResult.cs +12 -0
  476. package/Editor/BeamCli/Commands/BeamGenerateSkillDocsCommandResult.cs.meta +11 -0
  477. package/Editor/BeamCli/Commands/BeamGenerateTypeSchema.cs +64 -0
  478. package/Editor/BeamCli/Commands/BeamGenerateTypeSchema.cs.meta +11 -0
  479. package/Editor/BeamCli/Commands/BeamHostServiceDescriptor.cs +1 -0
  480. package/Editor/BeamCli/Commands/BeamInitGetRealms.cs +73 -0
  481. package/Editor/BeamCli/Commands/BeamInitGetRealms.cs.meta +11 -0
  482. package/Editor/BeamCli/Commands/BeamInitGetRealmsResult.cs +12 -0
  483. package/Editor/BeamCli/Commands/BeamInitGetRealmsResult.cs.meta +11 -0
  484. package/Editor/BeamCli/Commands/BeamInstallAISkillsCommandResult.cs +17 -0
  485. package/Editor/BeamCli/Commands/BeamInstallAISkillsCommandResult.cs.meta +11 -0
  486. package/Editor/BeamCli/Commands/BeamInstallAiSkill.cs +85 -0
  487. package/Editor/BeamCli/Commands/BeamInstallAiSkill.cs.meta +11 -0
  488. package/Editor/BeamCli/Commands/BeamListMountSitesCommandResults.cs +12 -0
  489. package/Editor/BeamCli/Commands/BeamListMountSitesCommandResults.cs.meta +11 -0
  490. package/Editor/BeamCli/Commands/BeamListReplacementTypeCommandOutput.cs +12 -0
  491. package/Editor/BeamCli/Commands/BeamListReplacementTypeCommandOutput.cs.meta +11 -0
  492. package/Editor/BeamCli/Commands/BeamMcpSetup.cs +58 -0
  493. package/Editor/BeamCli/Commands/BeamMcpSetup.cs.meta +11 -0
  494. package/Editor/BeamCli/Commands/BeamMcpSetupCommandResult.cs +12 -0
  495. package/Editor/BeamCli/Commands/BeamMcpSetupCommandResult.cs.meta +11 -0
  496. package/Editor/BeamCli/Commands/BeamMountSiteConfig.cs +14 -0
  497. package/Editor/BeamCli/Commands/BeamMountSiteConfig.cs.meta +11 -0
  498. package/Editor/BeamCli/Commands/BeamMountSiteSelector.cs +13 -0
  499. package/Editor/BeamCli/Commands/BeamMountSiteSelector.cs.meta +11 -0
  500. package/Editor/BeamCli/Commands/BeamPageExtensionOption.cs +13 -0
  501. package/Editor/BeamCli/Commands/BeamPageExtensionOption.cs.meta +11 -0
  502. package/Editor/BeamCli/Commands/BeamPortalExtensionAddMicroservice.cs +55 -0
  503. package/Editor/BeamCli/Commands/BeamPortalExtensionAddMicroservice.cs.meta +11 -0
  504. package/Editor/BeamCli/Commands/BeamPortalExtensionFileUploadInfo.cs +16 -0
  505. package/Editor/BeamCli/Commands/BeamPortalExtensionFileUploadInfo.cs.meta +11 -0
  506. package/Editor/BeamCli/Commands/BeamPortalExtensionListExtensionOptions.cs +51 -0
  507. package/Editor/BeamCli/Commands/BeamPortalExtensionListExtensionOptions.cs.meta +11 -0
  508. package/Editor/BeamCli/Commands/BeamPortalExtensionListMountSites.cs +51 -0
  509. package/Editor/BeamCli/Commands/BeamPortalExtensionListMountSites.cs.meta +11 -0
  510. package/Editor/BeamCli/Commands/BeamPortalExtensionOptionsResult.cs +13 -0
  511. package/Editor/BeamCli/Commands/BeamPortalExtensionOptionsResult.cs.meta +11 -0
  512. package/Editor/BeamCli/Commands/BeamPortalExtensionPlanFileReference.cs +14 -0
  513. package/Editor/BeamCli/Commands/BeamPortalExtensionPlanFileReference.cs.meta +11 -0
  514. package/Editor/BeamCli/Commands/BeamPortalExtensionPlanReference.cs +16 -0
  515. package/Editor/BeamCli/Commands/BeamPortalExtensionPlanReference.cs.meta +11 -0
  516. package/Editor/BeamCli/Commands/BeamPortalExtensionSetConfig.cs +63 -0
  517. package/Editor/BeamCli/Commands/BeamPortalExtensionSetConfig.cs.meta +11 -0
  518. package/Editor/BeamCli/Commands/BeamPortalExtensionUploadInfo.cs +15 -0
  519. package/Editor/BeamCli/Commands/BeamPortalExtensionUploadInfo.cs.meta +11 -0
  520. package/Editor/BeamCli/Commands/BeamProjectAddReplacementType.cs +81 -0
  521. package/Editor/BeamCli/Commands/BeamProjectAddReplacementType.cs.meta +11 -0
  522. package/Editor/BeamCli/Commands/BeamProjectBuild.cs +7 -0
  523. package/Editor/BeamCli/Commands/BeamProjectGenerateClientOapi.cs +14 -0
  524. package/Editor/BeamCli/Commands/BeamProjectListReplacementType.cs +58 -0
  525. package/Editor/BeamCli/Commands/BeamProjectListReplacementType.cs.meta +11 -0
  526. package/Editor/BeamCli/Commands/BeamProjectNewPortalExtension.cs +121 -0
  527. package/Editor/BeamCli/Commands/BeamProjectNewPortalExtension.cs.meta +11 -0
  528. package/Editor/BeamCli/Commands/BeamProjectRemoveReplacementType.cs +60 -0
  529. package/Editor/BeamCli/Commands/BeamProjectRemoveReplacementType.cs.meta +11 -0
  530. package/Editor/BeamCli/Commands/BeamRealmOption.cs +16 -0
  531. package/Editor/BeamCli/Commands/BeamRealmOption.cs.meta +11 -0
  532. package/Editor/BeamCli/Commands/BeamRemotePortalConfiguration.cs +12 -0
  533. package/Editor/BeamCli/Commands/BeamRemotePortalConfiguration.cs.meta +11 -0
  534. package/Editor/BeamCli/Commands/BeamRemotePortalExtensionDescriptor.cs +15 -0
  535. package/Editor/BeamCli/Commands/BeamRemotePortalExtensionDescriptor.cs.meta +11 -0
  536. package/Editor/BeamCli/Commands/BeamReplacementTypeInfo.cs +15 -0
  537. package/Editor/BeamCli/Commands/BeamReplacementTypeInfo.cs.meta +11 -0
  538. package/Editor/BeamCli/Commands/BeamServiceInstance.cs +1 -0
  539. package/Editor/BeamCli/Commands/BeamSetPortalExtensionConfigCommandResults.cs +11 -0
  540. package/Editor/BeamCli/Commands/BeamSetPortalExtensionConfigCommandResults.cs.meta +11 -0
  541. package/Editor/BeamCli/Commands/BeamUnrealTypeMappingEntry.cs +14 -0
  542. package/Editor/BeamCli/Commands/BeamUnrealTypeMappingEntry.cs.meta +11 -0
  543. package/Editor/BeamCli/Commands/BeamUtilityMemberEntry.cs +16 -0
  544. package/Editor/BeamCli/Commands/BeamUtilityMemberEntry.cs.meta +11 -0
  545. package/Editor/BeamCli/Commands/BeamUtilityMethodEntry.cs +16 -0
  546. package/Editor/BeamCli/Commands/BeamUtilityMethodEntry.cs.meta +11 -0
  547. package/Editor/BeamCli/Commands/BeamUtilityParam.cs +13 -0
  548. package/Editor/BeamCli/Commands/BeamUtilityParam.cs.meta +11 -0
  549. package/Editor/BeamCli/Commands/BeamUtilityTypeEntry.cs +19 -0
  550. package/Editor/BeamCli/Commands/BeamUtilityTypeEntry.cs.meta +11 -0
  551. package/Editor/BeamCli/UI/LogUtil/LogViewUtil.cs +2 -0
  552. package/Editor/BeamEditor.cs +52 -7
  553. package/Editor/Config/ConsoleConfiguration.asset +6 -1
  554. package/Editor/ContentService/CliContentService.cs +364 -39
  555. package/Editor/ContentService/DefaultContentImporter.cs +248 -0
  556. package/Editor/ContentService/DefaultContentImporter.cs.meta +2 -0
  557. package/Editor/LibraryService.cs +25 -2
  558. package/Editor/Modules/Content/DefaultAssets~/currency/coins.png +0 -0
  559. package/Editor/Modules/Content/DefaultAssets~/currency/coins.png.meta +135 -0
  560. package/Editor/Modules/Content/DefaultAssets~/currency/gems.png +0 -0
  561. package/Editor/Modules/Content/DefaultAssets~/currency/gems.png.meta +135 -0
  562. package/Editor/Modules/Content/DefaultContent/currency/coins.asset +2 -1
  563. package/Editor/Modules/Content/DefaultContent/currency/gems.asset +2 -1
  564. package/Editor/Modules/Content/UI/ContentObjectEditor.cs +3 -2
  565. package/Editor/Server/MicroserviceConfiguration.cs +3 -0
  566. package/Editor/Server/UI/PublishWindow/UsamPublishWindow.cs +5 -1
  567. package/Editor/Server/Usam/UsamService.cs +1 -1
  568. package/Editor/Server/Usam/UsamService_GenerateClient.cs +6 -1
  569. package/Editor/Toolbar/MenuItems/BeamableRealmMenuItem.cs +2 -1
  570. package/Editor/Toolbar/MenuItems/OpenToolboxWindowMenuItem.asset +1 -1
  571. package/Editor/UI/AccountWindow/AccountWindow_Games.cs +19 -3
  572. package/Editor/UI/AccountWindow/AccountWindow_SignedIn.cs +4 -3
  573. package/Editor/UI/BeamGUI/BeamGUI_Icons.cs +43 -43
  574. package/Editor/UI/BeamGUI/BeamGUI_LogoBanner.cs +2 -0
  575. package/Editor/UI/ContentWindow/ContentWindow.cs +121 -9
  576. package/Editor/UI/ContentWindow/ContentWindow_ContentActions.cs +148 -16
  577. package/Editor/UI/ContentWindow/ContentWindow_Header.cs +30 -6
  578. package/Editor/UI/ContentWindow/ContentWindow_ItemsPanel.cs +35 -4
  579. package/Editor/UI/LibraryWindow/BeamLibraryWindow.cs +2 -2
  580. package/Editor/UI/LibraryWindow/BeamLibraryWindow_Main.cs +0 -21
  581. package/Editor/UI/LibraryWindow/BeamLibraryWindow_Samples.cs +98 -38
  582. package/Editor/UI/McpMenuItems.cs +47 -0
  583. package/Editor/UI/McpMenuItems.cs.meta +11 -0
  584. package/Runtime/Beam.cs +2 -0
  585. package/Runtime/BeamContext.cs +9 -2
  586. package/Runtime/Core/Platform/SDK/Events/EventsService.cs +8 -2
  587. package/Runtime/Core/Platform/SDK/Inventory/InventoryService.cs +7 -3
  588. package/Runtime/Environment/Resources/env-default.json +3 -3
  589. package/Runtime/Environment/Resources/versions-default.json +2 -2
  590. package/Runtime/Modules/Console/BeamableAdminConsole.cs +722 -0
  591. package/Runtime/Modules/Console/BeamableAdminConsole.cs.meta +3 -0
  592. package/Runtime/Modules/Console/ConsoleConfiguration.cs +7 -3
  593. package/Runtime/Modules/Console/ConsoleFlow.cs +3 -0
  594. package/Runtime/Modules/Content/ContentConfiguration.cs +11 -1
  595. package/Runtime/Modules/Content/ContentParameterProvider.cs +2 -0
  596. package/Runtime/Modules/Content/ContentService.cs +13 -4
  597. package/Runtime/Server/MicroserviceClient.cs +5 -2
  598. package/Runtime/UI/Lightbeam/DependencyExtensions.cs +5 -1
  599. package/Runtime/UI/Lightbeam/LightBeam.cs +45 -0
  600. package/Runtime/UI/Lightbeam/Sprites_v1/BeamLogo.PNG +0 -0
  601. package/Runtime/UI/Lightbeam/Sprites_v1/BeamLogo.PNG.meta +325 -0
  602. package/Runtime/UI/Lightbeam/Sprites_v1/Bg.png +0 -0
  603. package/Runtime/UI/Lightbeam/Sprites_v1/Bg.png.meta +143 -0
  604. package/Runtime/UI/Lightbeam/Sprites_v1/BtBase.png +0 -0
  605. package/Runtime/UI/Lightbeam/Sprites_v1/BtBase.png.meta +143 -0
  606. package/Runtime/UI/Lightbeam/Sprites_v1/IconInfo.png +0 -0
  607. package/Runtime/UI/Lightbeam/Sprites_v1/IconInfo.png.meta +143 -0
  608. package/Runtime/UI/Lightbeam/Sprites_v1/Icon_Link.png +0 -0
  609. package/Runtime/UI/Lightbeam/Sprites_v1/Icon_Link.png.meta +169 -0
  610. package/Runtime/UI/Lightbeam/Sprites_v1/UIBase.png +0 -0
  611. package/Runtime/UI/Lightbeam/Sprites_v1/UIBase.png.meta +143 -0
  612. package/Runtime/UI/Lightbeam/Sprites_v1/UIBaseWhite.png +0 -0
  613. package/Runtime/UI/Lightbeam/Sprites_v1/UIBaseWhite.png.meta +143 -0
  614. package/Runtime/UI/Lightbeam/Sprites_v1.meta +8 -0
  615. package/Runtime/UI/Lightbeam/Unity.Beamable.LightBeams.asmdef +7 -4
  616. package/Runtime/UI/Sprites/icon.png +0 -0
  617. package/{Editor/Modules/Content/DefaultAssets~/currency → Runtime/UI/Sprites}/icon.png.meta +46 -10
  618. package/Runtime/UI/Sprites/icon_coin.png +0 -0
  619. package/Runtime/UI/Sprites/icon_coin.png.meta +135 -0
  620. package/Runtime/UI/Sprites/icon_gem.png +0 -0
  621. package/Runtime/UI/Sprites/icon_gem.png.meta +135 -0
  622. package/Runtime/Unity.Beamable.asmdef +2 -1
  623. package/Samples~/LightBeamSamples/AccountManager/AccountExampleConfig.cs +1 -1
  624. package/Samples~/LightBeamSamples/AccountManager/AccountManager.cs +7 -2
  625. package/Samples~/LightBeamSamples/AccountManager/Prefabs/{AccountDetailsBehaviour → AccountDetailsPage}/AccountDetails.prefab +148 -214
  626. package/Samples~/LightBeamSamples/AccountManager/Prefabs/{AccountDetailsBehaviour/AccountDetailsBehaviour.cs → AccountDetailsPage/AccountDetailsPage.cs} +8 -2
  627. package/Samples~/LightBeamSamples/AccountManager/Prefabs/AccountDisplayBehaviour/AccountDisplay.prefab +551 -76
  628. package/Samples~/LightBeamSamples/AccountManager/Prefabs/AccountSwitchPage/AccountSwitchPage.prefab +324 -88
  629. package/Samples~/LightBeamSamples/AccountManager/Prefabs/HomePage/HomePage.cs +7 -2
  630. package/Samples~/LightBeamSamples/AccountManager/Prefabs/HomePage/HomePage.prefab +469 -280
  631. package/Samples~/LightBeamSamples/AccountManager/Prefabs/RecoverEmailPage/RecoverAccountPage.prefab +183 -110
  632. package/Samples~/LightBeamSamples/AccountManager/Prefabs/RegisterEmailPage/RegisterEmailPage.prefab +157 -84
  633. package/Samples~/LightBeamSamples/AccountManager/Sample_AccountManager.unity +1913 -24
  634. package/Samples~/LightBeamSamples/CloudSaving/CloudSavingManager.cs +4 -0
  635. package/Samples~/LightBeamSamples/CloudSaving/Prefabs/BytePage/BytePage.prefab +1699 -423
  636. package/Samples~/LightBeamSamples/CloudSaving/Prefabs/HomePage/HomePage.cs +4 -1
  637. package/Samples~/LightBeamSamples/CloudSaving/Prefabs/HomePage/HomePage.prefab +738 -340
  638. package/Samples~/LightBeamSamples/CloudSaving/Prefabs/JsonPage/JsonPage.prefab +3448 -1303
  639. package/Samples~/LightBeamSamples/CloudSaving/Prefabs/StringPage/StringPage.prefab +168 -184
  640. package/Samples~/LightBeamSamples/CloudSaving/Sample_CloudSaving.unity +1387 -30
  641. package/Samples~/LightBeamSamples/FriendsManager/FriendsManager.cs +4 -0
  642. package/Samples~/LightBeamSamples/FriendsManager/Prefabs/BlockedDisplay/BlockedDisplay.prefab +71 -29
  643. package/Samples~/LightBeamSamples/FriendsManager/Prefabs/FriendDisplay/FriendDisplay.prefab +84 -31
  644. package/Samples~/LightBeamSamples/FriendsManager/Prefabs/HomePage/HomePage.prefab +446 -182
  645. package/Samples~/LightBeamSamples/FriendsManager/Prefabs/PlayerFriendsDisplay/PlayerDisplay.prefab +349 -127
  646. package/Samples~/LightBeamSamples/FriendsManager/Prefabs/ReceivedInvitesDisplay/ReceivedInviteDisplay.prefab +89 -36
  647. package/Samples~/LightBeamSamples/FriendsManager/Prefabs/SelectorButton.prefab +16 -12
  648. package/Samples~/LightBeamSamples/FriendsManager/Prefabs/SentInvitesDisplay/SentInviteDisplay.prefab +81 -30
  649. package/Samples~/LightBeamSamples/FriendsManager/Sample_FriendsManager.unity +2113 -41
  650. package/Samples~/LightBeamSamples/Inventory/InventoryManager.cs +4 -0
  651. package/Samples~/LightBeamSamples/Inventory/Prefabs/CurrencyDisplay/CurrencyDisplay.prefab +180 -29
  652. package/Samples~/LightBeamSamples/Inventory/Prefabs/CurrencyDisplay/CurrencyDisplayBehaviour.cs +7 -2
  653. package/Samples~/LightBeamSamples/Inventory/Prefabs/CurrencyInfoPage/CurrencyInfoBehaviour.cs +7 -2
  654. package/Samples~/LightBeamSamples/Inventory/Prefabs/CurrencyInfoPage/CurrencyInfoDisplay.prefab +434 -97
  655. package/Samples~/LightBeamSamples/Inventory/Prefabs/HomePage/HomePage.prefab +1300 -279
  656. package/Samples~/LightBeamSamples/Inventory/Prefabs/ItemDisplay/ItemDisplay.prefab +182 -62
  657. package/Samples~/LightBeamSamples/Inventory/Prefabs/ItemDisplay/ItemDisplayBehaviour.cs +7 -2
  658. package/Samples~/LightBeamSamples/Inventory/Prefabs/ItemInfoPage/ItemInfoPage.cs +2 -2
  659. package/Samples~/LightBeamSamples/Inventory/Prefabs/ItemInfoPage/ItemInfoPage.prefab +240 -105
  660. package/Samples~/LightBeamSamples/Inventory/Prefabs/PropertyDisplay/PropertyDisplay.prefab +16 -13
  661. package/Samples~/LightBeamSamples/Inventory/Sample_InventoryManager.unity +1865 -41
  662. package/Samples~/LightBeamSamples/LobbyManager/LobbyManager.cs +4 -0
  663. package/Samples~/LightBeamSamples/LobbyManager/Prefabs/CreateLobbyDisplay/CreateLobbyDisplay.prefab +261 -268
  664. package/Samples~/LightBeamSamples/LobbyManager/Prefabs/FindLobbyDisplay/FindLobbyDisplay.prefab +44 -64
  665. package/Samples~/LightBeamSamples/LobbyManager/Prefabs/HomePage/HomePage.prefab +2337 -185
  666. package/Samples~/LightBeamSamples/LobbyManager/Prefabs/JoinLobbyDisplay/JoinLobbyDisplay.prefab +221 -233
  667. package/Samples~/LightBeamSamples/LobbyManager/Prefabs/LobbyDetailsDisplay/LobbyDetailsDisplay.prefab +273 -440
  668. package/Samples~/LightBeamSamples/LobbyManager/Prefabs/LobbyDisplay/LobbyDisplay.prefab +24 -47
  669. package/Samples~/LightBeamSamples/LobbyManager/Prefabs/PlayerDisplay/PlayerIdDisplay.prefab +18 -14
  670. package/Samples~/LightBeamSamples/LobbyManager/Prefabs/PlayerLobby/PlayerLobby.prefab +234 -238
  671. package/Samples~/LightBeamSamples/LobbyManager/Sample_LobbyManager.unity +1567 -41
  672. package/Samples~/LightBeamSamples/LootBox/Prefabs/LootBoxPage/LootBoxPage.prefab +19 -186
  673. package/Samples~/LightBeamSamples/LootBox/Sample_LootBox.unity +651 -49
  674. package/Samples~/LightBeamSamples/LootBox/Shared/LootboxConstants.cs +1 -1
  675. package/Samples~/LightBeamSamples/SceneLoader/Editor/LightBeamBuilds.cs +16 -6
  676. package/Tests/Runtime/Beamable/Environment/PackageVersionTests/ImplicitConversionTest.cs +2 -2
  677. package/Tests/Runtime/Beamable/Platform/Inventory/InventoryServiceTests/UpdateTests.cs +4 -2
  678. package/Tests/Runtime/Beamable/Player/Inventory/GetItemTests.cs +16 -9
  679. package/package.json +8 -15
  680. package/Common/Runtime/OpenApi/BeamAdmin.gs.cs +0 -77
  681. package/Common/Runtime/OpenApi/BeamServiceplan.gs.cs +0 -96
  682. package/Editor/ContentService/ContentUtils.cs +0 -79
  683. package/Editor/ContentService/ContentUtils.cs.meta +0 -11
  684. package/Editor/Modules/Content/DefaultAssets~/currency/icon.png +0 -0
  685. /package/Samples~/LightBeamSamples/AccountManager/Prefabs/{AccountDetailsBehaviour → AccountDetailsPage}/AccountDetails.prefab.meta +0 -0
  686. /package/Samples~/LightBeamSamples/AccountManager/Prefabs/{AccountDetailsBehaviour/AccountDetailsBehaviour.cs.meta → AccountDetailsPage/AccountDetailsPage.cs.meta} +0 -0
  687. /package/Samples~/LightBeamSamples/AccountManager/Prefabs/{AccountDetailsBehaviour.meta → AccountDetailsPage.meta} +0 -0
@@ -0,0 +1,722 @@
1
+ using Beamable.ConsoleCommands;
2
+ using System;
3
+ using System.Collections.Generic;
4
+ using System.Linq;
5
+ using System.Text;
6
+ using UnityEngine;
7
+
8
+ #if ENABLE_INPUT_SYSTEM && !ENABLE_LEGACY_INPUT_MANAGER
9
+ using UnityEngine.InputSystem;
10
+ #endif
11
+
12
+ namespace Beamable.Console
13
+ {
14
+ public class BeamableAdminConsole : MonoBehaviour
15
+ {
16
+ public static BeamableAdminConsole Instance { get; private set; }
17
+ public event Action<string> OnLogLine;
18
+ public bool IsActive => _isActive;
19
+ public bool IsInitialized => _isInitialized;
20
+
21
+ #region Private State
22
+
23
+ private bool _isInitialized;
24
+ private bool _isActive;
25
+ private bool _focusInputNextFrame;
26
+ private bool _moveCursorToEndNextFrame;
27
+
28
+ private string _inputText = string.Empty;
29
+ private string _consoleText = string.Empty;
30
+ private Vector2 _scrollPosition;
31
+
32
+ // 3-finger touch detection for Android
33
+ private int _fingerCount;
34
+ private bool _waitForRelease;
35
+ private Vector2 _averagePositionStart;
36
+
37
+ // Virtual keyboard state tracking
38
+ private bool _wasVirtualKeyboardOpen;
39
+
40
+ // Drag-to-scroll state
41
+ private bool _isDraggingScroll;
42
+ private float _dragLastMouseY;
43
+ private Rect _scrollViewRect;
44
+
45
+ private readonly Dictionary<string, ConsoleCommandEntry> _commands =
46
+ new Dictionary<string, ConsoleCommandEntry>(StringComparer.OrdinalIgnoreCase);
47
+
48
+ private ConsoleHistory _history;
49
+ private AutoCompleter _autoCompleter;
50
+ private BeamableConsole _beamableConsole;
51
+ private BeamContext _beamContext;
52
+
53
+ // IMGUI styles — built lazily inside OnGUI so GUI.skin is available
54
+ private GUIStyle _titleStyle;
55
+ private GUIStyle _outputStyle;
56
+ private GUIStyle _inputStyle;
57
+ private GUIStyle _promptStyle;
58
+ private GUIStyle _suggestionStyle;
59
+ private readonly Color _backgroundColor = new Color(0f, 0f, 0f, 0.85f);
60
+
61
+ private const string InputControlName = "SAConsoleInput";
62
+
63
+ private const float ReferenceResolutionHeight = 1080f;
64
+ private float _screenScale = 1f;
65
+ private float _lastScreenScale = -1f;
66
+
67
+ #endregion
68
+
69
+ #region MonoBehaviour Lifecycle
70
+
71
+ private void Awake()
72
+ {
73
+ _history = new ConsoleHistory();
74
+ _autoCompleter = new AutoCompleter(_commands);
75
+ }
76
+
77
+ private void Update()
78
+ {
79
+ if (!_isInitialized) return;
80
+
81
+ if (!IsEnabled()) return;
82
+
83
+ if (CheckToggleKey())
84
+ {
85
+ if (!_isActive){ShowConsole();}
86
+ else{HideConsole();}
87
+ }
88
+
89
+ if (ShouldToggleByTouch())
90
+ {
91
+ if (!_isActive){ShowConsole();}
92
+ else{HideConsole();}
93
+ }
94
+ }
95
+
96
+ private bool CheckToggleKey()
97
+ {
98
+ #if ENABLE_INPUT_SYSTEM && !ENABLE_LEGACY_INPUT_MANAGER
99
+ if (Keyboard.current.backquoteKey.wasPressedThisFrame)
100
+ {
101
+ return true;
102
+ }
103
+ #endif
104
+ #if ENABLE_LEGACY_INPUT_MANAGER
105
+ if (Input.GetKeyDown(KeyCode.BackQuote))
106
+ {
107
+ return true;
108
+ }
109
+ #endif
110
+ return false;
111
+ }
112
+
113
+ #endregion
114
+
115
+ #region Initialization
116
+
117
+ public void InitializeConsole(BeamContext beamContext)
118
+ {
119
+ Instance = this;
120
+
121
+ DetachConsole();
122
+ _beamContext = beamContext;
123
+ _beamableConsole = _beamContext.ServiceProvider.GetService<BeamableConsole>();
124
+ if(_beamableConsole == null)
125
+ {
126
+ Debug.LogError("ConsoleFlow Unable to retrieve BeamableConsole from context.");
127
+ return;
128
+ }
129
+
130
+ AttachConsole();
131
+
132
+ try
133
+ {
134
+ _beamableConsole.LoadCommands();
135
+ }
136
+ catch (Exception)
137
+ {
138
+ Debug.LogError("[StandAloneConsoleFlow] Unable to load console commands.");
139
+ }
140
+
141
+ _isInitialized = true;
142
+ Log("Console ready");
143
+
144
+ }
145
+
146
+ #endregion
147
+
148
+ #region Visibility
149
+
150
+ /// <summary>Opens the console window and focuses the input field.</summary>
151
+ public void ShowConsole()
152
+ {
153
+ _isActive = true;
154
+ _inputText = string.Empty;
155
+ _focusInputNextFrame = true;
156
+ _scrollPosition.y = float.MaxValue; // jump to bottom
157
+ }
158
+
159
+ /// <summary>Hides the console window.</summary>
160
+ public void HideConsole()
161
+ {
162
+ _isActive = false;
163
+ _inputText = string.Empty;
164
+ _autoCompleter.Reset();
165
+ }
166
+
167
+ #endregion
168
+
169
+ #region Logging
170
+
171
+ /// <summary>Appends a line to the console output and fires <see cref="OnLogLine"/>.</summary>
172
+ public void Log(string line)
173
+ {
174
+ if (line == null) return;
175
+ _consoleText += Environment.NewLine + line;
176
+ _scrollPosition.y = float.MaxValue;
177
+ TrimConsoleText();
178
+ OnLogLine?.Invoke(line);
179
+ }
180
+
181
+ #endregion
182
+
183
+ #region Update & OnGUI
184
+
185
+ private void OnGUI()
186
+ {
187
+ _screenScale = Screen.height / ReferenceResolutionHeight * ConsoleConfiguration.Instance.UISize;
188
+
189
+ if (!_isActive) return;
190
+
191
+ MakeStyle();
192
+
193
+ // Keyboard shortcuts processed BEFORE control drawing so we can consume
194
+ // events (e.g. Tab, UpArrow) before the TextField sees them.
195
+ if (Event.current.type == EventType.KeyDown)
196
+ {
197
+ switch (Event.current.keyCode)
198
+ {
199
+ case KeyCode.Return:
200
+ case KeyCode.KeypadEnter:
201
+ if (!string.IsNullOrEmpty(_inputText))
202
+ SubmitInput(_inputText);
203
+ Event.current.Use();
204
+ break;
205
+
206
+ case KeyCode.Tab:
207
+ _autoCompleter.Accept(ref _inputText);
208
+ _moveCursorToEndNextFrame = true;
209
+ _focusInputNextFrame = true;
210
+ Event.current.Use();
211
+ break;
212
+
213
+ case KeyCode.UpArrow:
214
+ _inputText = _history.Previous();
215
+ Event.current.Use();
216
+ break;
217
+
218
+ case KeyCode.DownArrow:
219
+ _inputText = _history.Next();
220
+ Event.current.Use();
221
+ break;
222
+
223
+ // Forced hide here if using the Old Input System since the tab intercept all input calls
224
+ #if ENABLE_LEGACY_INPUT_MANAGER
225
+ case KeyCode.BackQuote:
226
+ HideConsole();
227
+ break;
228
+ #endif
229
+ }
230
+ }
231
+
232
+ // Guard: Hide() might have been called by Escape above
233
+ if (!_isActive) return;
234
+
235
+ var windowRect = new Rect(0f, 0f, Screen.width, Screen.height * ConsoleConfiguration.Instance.Height);
236
+ var prevColor = GUI.color;
237
+ GUI.color = _backgroundColor;
238
+ GUI.DrawTexture(windowRect, Texture2D.whiteTexture);
239
+ GUI.color = prevColor;
240
+
241
+ GUILayout.BeginArea(windowRect);
242
+ DrawConsoleContent();
243
+ GUILayout.EndArea();
244
+
245
+ // Deferred focus — must happen in a Layout event to avoid IMGUI control-ID mismatches.
246
+ if (_focusInputNextFrame && Event.current.type == EventType.Layout)
247
+ {
248
+ GUI.FocusControl(InputControlName);
249
+ _focusInputNextFrame = false;
250
+ }
251
+ }
252
+
253
+ private void DrawConsoleContent()
254
+ {
255
+ var scaledTitleHeight = Mathf.RoundToInt(56 * _screenScale);
256
+ var scaledPromptWidth = Mathf.RoundToInt(36 * _screenScale);
257
+ var scaledSeparatorHeight = Mathf.Max(1, Mathf.RoundToInt(2 * _screenScale));
258
+ var scaledInputHeight = Mathf.RoundToInt(56 * _screenScale);
259
+ var scaledInputMinHeight = Mathf.RoundToInt(44 * _screenScale);
260
+
261
+ // Title bar
262
+ GUILayout.BeginHorizontal(GUILayout.Height(scaledTitleHeight));
263
+ {
264
+ GUILayout.Label("<b>▶ BEAMABLE ADMIN CONSOLE</b>", _titleStyle);
265
+ GUILayout.FlexibleSpace();
266
+ }
267
+ GUILayout.EndHorizontal();
268
+
269
+ // Thin separator
270
+ GUILayout.Box(string.Empty, GUILayout.ExpandWidth(true), GUILayout.Height(scaledSeparatorHeight));
271
+
272
+ // Scrollable output area — reserved space for title + input row
273
+ float reservedHeight = scaledTitleHeight + scaledInputHeight + Mathf.RoundToInt(2 * _screenScale);
274
+ float outputHeight = Mathf.Max(Mathf.RoundToInt(40 * _screenScale), Screen.height * ConsoleConfiguration.Instance.Height - reservedHeight);
275
+ _scrollPosition = GUILayout.BeginScrollView(
276
+ _scrollPosition, GUILayout.Height(outputHeight), GUILayout.ExpandWidth(true));
277
+ {
278
+ GUILayout.Label(_consoleText, _outputStyle);
279
+ }
280
+ GUILayout.EndScrollView();
281
+
282
+ if (Event.current.type == EventType.Repaint)
283
+ _scrollViewRect = GUILayoutUtility.GetLastRect();
284
+
285
+ HandleScrollViewDrag();
286
+
287
+ // Input row: ">" [text field] [suggestion hint]
288
+ GUILayout.BeginHorizontal(GUILayout.Height(scaledInputHeight));
289
+ {
290
+ if (GUILayout.Button("Run", _promptStyle, GUILayout.Width(scaledPromptWidth * 2f), GUILayout.Height(scaledInputMinHeight)) && !string.IsNullOrEmpty(_inputText))
291
+ SubmitInput(_inputText);
292
+
293
+ GUI.SetNextControlName(InputControlName);
294
+ var prevBg = GUI.backgroundColor;
295
+ GUI.backgroundColor = GUI.GetNameOfFocusedControl() == InputControlName
296
+ ? new Color(0.24f, 0.24f, 0.24f, 1f)
297
+ : new Color(0.18f, 0.18f, 0.18f, 1f);
298
+ var newInput = GUILayout.TextField(_inputText, _inputStyle, GUILayout.MinHeight(scaledInputMinHeight));
299
+ GUI.backgroundColor = prevBg;
300
+ if (newInput != _inputText)
301
+ {
302
+ _inputText = newInput;
303
+ _autoCompleter.Update(_inputText);
304
+ }
305
+
306
+ if (_moveCursorToEndNextFrame && Event.current.type == EventType.Repaint)
307
+ {
308
+ var editor = (TextEditor)GUIUtility.GetStateObject(typeof(TextEditor), GUIUtility.keyboardControl);
309
+ if (editor != null)
310
+ {
311
+ editor.text = _inputText;
312
+ editor.cursorIndex = _inputText.Length;
313
+ editor.selectIndex = _inputText.Length;
314
+ editor.MoveTextEnd();
315
+ }
316
+ _moveCursorToEndNextFrame = false;
317
+ }
318
+
319
+ var suggestion = _autoCompleter.CurrentSuggestion;
320
+ if (!string.IsNullOrEmpty(suggestion))
321
+ {
322
+ if (GUILayout.Button($"↹ {suggestion}", _suggestionStyle, GUILayout.ExpandWidth(false)))
323
+ {
324
+ _autoCompleter.Accept(ref _inputText);
325
+ _moveCursorToEndNextFrame = true;
326
+ _focusInputNextFrame = true;
327
+ }
328
+ }
329
+ }
330
+ GUILayout.EndHorizontal();
331
+ }
332
+
333
+ private void HandleScrollViewDrag()
334
+ {
335
+ var e = Event.current;
336
+ switch (e.type)
337
+ {
338
+ case EventType.MouseDown when _scrollViewRect.Contains(e.mousePosition):
339
+ _isDraggingScroll = true;
340
+ _dragLastMouseY = e.mousePosition.y;
341
+ e.Use();
342
+ break;
343
+ case EventType.MouseDrag when _isDraggingScroll:
344
+ _scrollPosition.y += _dragLastMouseY - e.mousePosition.y;
345
+ _dragLastMouseY = e.mousePosition.y;
346
+ e.Use();
347
+ break;
348
+ case EventType.MouseUp when _isDraggingScroll:
349
+ _isDraggingScroll = false;
350
+ e.Use();
351
+ break;
352
+ }
353
+ }
354
+
355
+ private void MakeStyle()
356
+ {
357
+ if (Mathf.Abs(_lastScreenScale - _screenScale) < 0.01f) return;
358
+ _lastScreenScale = _screenScale;
359
+
360
+ var scaledFontSize = Mathf.RoundToInt(20 * _screenScale);
361
+ var scaledPaddingH = Mathf.RoundToInt(12 * _screenScale);
362
+ var scaledPaddingV = Mathf.RoundToInt(8 * _screenScale);
363
+ var scaledPaddingSmall = Mathf.RoundToInt(4 * _screenScale);
364
+ var scaledPaddingTiny = Mathf.RoundToInt(6 * _screenScale);
365
+
366
+ _titleStyle = new GUIStyle(GUI.skin.label)
367
+ {
368
+ fontSize = scaledFontSize,
369
+ fontStyle = FontStyle.Bold,
370
+ richText = true,
371
+ normal = { textColor = Color.white },
372
+ padding = new RectOffset(scaledPaddingH, scaledPaddingH / 2, scaledPaddingV, scaledPaddingSmall)
373
+ };
374
+
375
+ _outputStyle = new GUIStyle(GUI.skin.label)
376
+ {
377
+ fontSize = scaledFontSize,
378
+ wordWrap = true,
379
+ richText = true,
380
+ stretchWidth = true,
381
+ normal = { textColor = new Color(0.87f, 0.87f, 0.87f) },
382
+ padding = new RectOffset(scaledPaddingH, scaledPaddingH, scaledPaddingSmall, scaledPaddingSmall)
383
+ };
384
+
385
+ _inputStyle = new GUIStyle(GUI.skin.textField)
386
+ {
387
+ fontSize = scaledFontSize,
388
+ alignment = TextAnchor.MiddleLeft,
389
+ normal = { textColor = Color.white },
390
+ hover = { textColor = Color.white },
391
+ focused = { textColor = Color.white },
392
+ active = { textColor = Color.white }
393
+ };
394
+
395
+ _promptStyle = new GUIStyle(GUI.skin.label)
396
+ {
397
+ fontSize = scaledFontSize,
398
+ fontStyle = FontStyle.Bold,
399
+ normal = { textColor = new Color(0.4f, 0.9f, 0.4f) },
400
+ padding = new RectOffset(Mathf.RoundToInt(8 * _screenScale), 0, scaledPaddingTiny, 0)
401
+ };
402
+
403
+ _suggestionStyle = new GUIStyle(GUI.skin.label)
404
+ {
405
+ fontSize = scaledFontSize,
406
+ fontStyle = FontStyle.Italic,
407
+ stretchWidth = false,
408
+ normal = { textColor = new Color(0.55f, 0.78f, 1f) },
409
+ padding = new RectOffset(scaledPaddingH, Mathf.RoundToInt(8 * _screenScale), scaledPaddingTiny, 0)
410
+ };
411
+
412
+ }
413
+
414
+ #endregion
415
+
416
+ #region Command Execution
417
+
418
+ private void SubmitInput(string txt)
419
+ {
420
+ _history.Push(txt);
421
+ _inputText = string.Empty;
422
+ _autoCompleter.Reset();
423
+
424
+ var parts = txt.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
425
+ if (parts.Length == 0) return;
426
+
427
+ var args = new string[parts.Length - 1];
428
+ for (var i = 1; i < parts.Length; i++) args[i - 1] = parts[i];
429
+
430
+ var result = _beamableConsole.Execute(parts[0], args);
431
+ if (!string.IsNullOrEmpty(result)) Log(result);
432
+ }
433
+
434
+ private void AttachConsole()
435
+ {
436
+ if (_beamableConsole == null) return;
437
+ _beamableConsole.OnLog += Log;
438
+ _beamableConsole.OnExecute += HandleExecute;
439
+ _beamableConsole.OnCommandRegistered += HandleCommandRegistered;
440
+ }
441
+
442
+ private void DetachConsole()
443
+ {
444
+ if (_beamableConsole == null) return;
445
+ _beamableConsole.OnLog -= Log;
446
+ _beamableConsole.OnExecute -= HandleExecute;
447
+ _beamableConsole.OnCommandRegistered -= HandleCommandRegistered;
448
+ }
449
+
450
+ private void HandleCommandRegistered(BeamableConsoleCommandAttribute attr, ConsoleCommandCallback cb)
451
+ {
452
+ foreach (var name in attr.Names)
453
+ _commands[name.ToLower()] = new ConsoleCommandEntry { Attribute = attr, Callback = cb };
454
+
455
+ _autoCompleter.Refresh();
456
+ }
457
+
458
+ private string HandleExecute(string command, string[] args)
459
+ {
460
+ if (string.Equals(command, "help", StringComparison.OrdinalIgnoreCase))
461
+ return BuildHelp(args);
462
+
463
+ if (_commands.TryGetValue(command.ToLower(), out var entry))
464
+ {
465
+ var echo = "> " + command + (args.Length > 0 ? " " + string.Join(" ", args) : string.Empty);
466
+ Log(echo);
467
+ return entry.Callback(args);
468
+ }
469
+
470
+ return "Unknown command: " + command;
471
+ }
472
+
473
+ private string BuildHelp(string[] args)
474
+ {
475
+ if (args.Length == 0)
476
+ {
477
+ var sb = new StringBuilder();
478
+ sb.AppendLine("Available commands:");
479
+ foreach (var entry in _commands.Values.Distinct())
480
+ sb.AppendLine($" {entry.Attribute.Usage} — {entry.Attribute.Description}");
481
+ return sb.ToString();
482
+ }
483
+
484
+ var key = args[0].ToLower();
485
+ return _commands.TryGetValue(key, out var found)
486
+ ? $"{found.Attribute.Usage}\n {found.Attribute.Description}"
487
+ : $"No help found for '{args[0]}'.";
488
+ }
489
+
490
+ #endregion
491
+
492
+ #region Toggle Detection
493
+
494
+ private bool ShouldToggleByTouch()
495
+ {
496
+ var shouldToggle = false;
497
+
498
+ #if ENABLE_INPUT_SYSTEM && !ENABLE_LEGACY_INPUT_MANAGER
499
+
500
+ if (Touchscreen.current != null)
501
+ {
502
+ var fingerCount = 0;
503
+ var averagePosition = Vector2.zero;
504
+ foreach (var touch in Touchscreen.current.touches)
505
+ {
506
+ var phase = touch.phase.ReadValue();
507
+ if (phase != UnityEngine.InputSystem.TouchPhase.Ended &&
508
+ phase != UnityEngine.InputSystem.TouchPhase.Canceled &&
509
+ phase != UnityEngine.InputSystem.TouchPhase.None)
510
+ {
511
+ fingerCount++;
512
+ averagePosition += touch.position.ReadValue();
513
+ }
514
+ }
515
+
516
+ switch (fingerCount)
517
+ {
518
+ case 3 when !_waitForRelease:
519
+ {
520
+ averagePosition /= 3;
521
+ if (_fingerCount != 3)
522
+ {
523
+ _averagePositionStart = averagePosition;
524
+ }
525
+ else if ((_averagePositionStart - averagePosition).magnitude > 20.0f)
526
+ {
527
+ _waitForRelease = true;
528
+ shouldToggle = true;
529
+ }
530
+ break;
531
+ }
532
+ case 0 when _waitForRelease:
533
+ _waitForRelease = false;
534
+ break;
535
+ }
536
+
537
+ _fingerCount = fingerCount;
538
+ }
539
+
540
+ return shouldToggle;
541
+ #else
542
+ // 3-finger touch detection (legacy input)
543
+ var fingerCount = 0;
544
+ var averagePosition = Vector2.zero;
545
+ var touchCount = Input.touchCount;
546
+ for (var i = 0; i < touchCount; ++i)
547
+ {
548
+ var touch = Input.GetTouch(i);
549
+ if (touch.phase != TouchPhase.Ended && touch.phase != TouchPhase.Canceled)
550
+ {
551
+ fingerCount++;
552
+ averagePosition += touch.position;
553
+ }
554
+ }
555
+
556
+ switch (fingerCount)
557
+ {
558
+ case 3 when !_waitForRelease:
559
+ {
560
+ averagePosition /= 3;
561
+ if (_fingerCount != 3)
562
+ {
563
+ _averagePositionStart = averagePosition;
564
+ }
565
+ else if ((_averagePositionStart - averagePosition).magnitude > 20.0f)
566
+ {
567
+ _waitForRelease = true;
568
+ shouldToggle = true;
569
+ }
570
+ break;
571
+ }
572
+ case 0 when _waitForRelease:
573
+ _waitForRelease = false;
574
+ break;
575
+ }
576
+
577
+ _fingerCount = fingerCount;
578
+ return shouldToggle;
579
+ #endif
580
+ }
581
+
582
+ private bool IsEnabled()
583
+ {
584
+
585
+ #if UNITY_EDITOR
586
+ return true;
587
+ #else
588
+ return ConsoleConfiguration.Instance.EnableAdminConsole
589
+ || _beamContext.AuthorizedUser.Value.HasScope("cli:console");
590
+ #endif
591
+ }
592
+
593
+ #endregion
594
+
595
+ #region Text Trimming
596
+
597
+ /// Mirrors ConsoleFlow's vertex-budget-based pruning to keep IMGUI from
598
+ /// hitting Unity's 65K-vertex text mesh limit.
599
+ private void TrimConsoleText()
600
+ {
601
+ const int charsPerVertex = 6;
602
+ const int vertexLimit = 65 * 1024;
603
+
604
+ int excess = (_consoleText.Length * charsPerVertex) - vertexLimit;
605
+ if (excess <= 0) return;
606
+
607
+ int cutAt = excess / charsPerVertex;
608
+ int newLine = _consoleText.IndexOf(Environment.NewLine, cutAt, StringComparison.Ordinal);
609
+ _consoleText = newLine >= 0
610
+ ? _consoleText.Substring(newLine + Environment.NewLine.Length)
611
+ : string.Empty;
612
+ }
613
+
614
+ #endregion
615
+
616
+ #region Nested Console Command Entry
617
+
618
+ private struct ConsoleCommandEntry
619
+ {
620
+ public BeamableConsoleCommandAttribute Attribute;
621
+ public ConsoleCommandCallback Callback;
622
+ }
623
+
624
+ #endregion
625
+
626
+ #region Nested Console History
627
+
628
+ private class ConsoleHistory
629
+ {
630
+ private readonly List<string> _items = new List<string>();
631
+ private int _pos;
632
+
633
+ public void Push(string text)
634
+ {
635
+ if (string.IsNullOrEmpty(text)) return;
636
+ _items.Add(text);
637
+ _pos = _items.Count;
638
+ }
639
+
640
+ public string Previous()
641
+ {
642
+ if (_items.Count == 0) return string.Empty;
643
+ _pos = Mathf.Max(0, _pos - 1);
644
+ return _items[_pos];
645
+ }
646
+
647
+ public string Next()
648
+ {
649
+ _pos++;
650
+ if (_pos < _items.Count) return _items[_pos];
651
+ _pos = _items.Count;
652
+ return string.Empty;
653
+ }
654
+ }
655
+
656
+ #endregion
657
+
658
+ #region Nested Auto Completer
659
+
660
+ private class AutoCompleter
661
+ {
662
+ private readonly Dictionary<string, ConsoleCommandEntry> _source;
663
+ private List<string> _matches = new List<string>();
664
+ private int _matchIndex;
665
+ private string _lastInput = string.Empty;
666
+
667
+ public string CurrentSuggestion { get; private set; } = string.Empty;
668
+
669
+ public AutoCompleter(Dictionary<string, ConsoleCommandEntry> source) => _source = source;
670
+
671
+ /// <summary>Re-runs the last search (called after new commands are registered).</summary>
672
+ public void Refresh() => Update(_lastInput);
673
+
674
+ public void Update(string input)
675
+ {
676
+ _lastInput = input;
677
+ _matchIndex = 0;
678
+
679
+ if (string.IsNullOrWhiteSpace(input))
680
+ {
681
+ _matches = _source.Keys.OrderBy(k => k).ToList();
682
+ CurrentSuggestion = string.Empty;
683
+ }
684
+ else
685
+ {
686
+ _matches = _source.Keys
687
+ .Where(k => k.StartsWith(input, StringComparison.OrdinalIgnoreCase))
688
+ .OrderBy(k => k)
689
+ .ToList();
690
+ CurrentSuggestion = _matches.Count > 0 ? _matches[0] : string.Empty;
691
+ }
692
+ }
693
+
694
+ /// <summary>
695
+ /// Accepts the current suggestion (sets <paramref name="inputText"/>).
696
+ /// Pressing Tab again cycles to the next matching command.
697
+ /// </summary>
698
+ public void Accept(ref string inputText)
699
+ {
700
+ if (_matches.Count == 0) return;
701
+
702
+ if (string.Equals(inputText, CurrentSuggestion, StringComparison.OrdinalIgnoreCase))
703
+ {
704
+ _matchIndex = (_matchIndex + 1) % _matches.Count;
705
+ CurrentSuggestion = _matches[_matchIndex];
706
+ }
707
+
708
+ inputText = CurrentSuggestion;
709
+ }
710
+
711
+ public void Reset()
712
+ {
713
+ CurrentSuggestion = string.Empty;
714
+ _matches.Clear();
715
+ _matchIndex = 0;
716
+ }
717
+ }
718
+
719
+ #endregion
720
+ }
721
+
722
+ }
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 081a7a0ba8219f9419767d791bf59a51
3
+ timeCreated: 1776172808