@tsukilabs/nil-bindings 0.5.0

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 (349) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +3 -0
  3. package/dist/index.js +7 -0
  4. package/dist/src/Academy.d.ts +7 -0
  5. package/dist/src/AcademyRecruitCatalog.d.ts +7 -0
  6. package/dist/src/AcademyRecruitCatalogEntry.d.ts +9 -0
  7. package/dist/src/AcademyRecruitCatalogRecipe.d.ts +10 -0
  8. package/dist/src/AcademyRecruitOrder.d.ts +12 -0
  9. package/dist/src/AcademyRecruitOrderId.d.ts +1 -0
  10. package/dist/src/AcademyRecruitOrderRequest.d.ts +7 -0
  11. package/dist/src/AcademyRecruitOrderState.d.ts +7 -0
  12. package/dist/src/AcademyRecruitQueue.d.ts +4 -0
  13. package/dist/src/AcademyUnitId.d.ts +1 -0
  14. package/dist/src/AddAcademyRecruitOrderRequest.d.ts +6 -0
  15. package/dist/src/AddPrefectureBuildOrderRequest.d.ts +6 -0
  16. package/dist/src/AddStableRecruitOrderRequest.d.ts +6 -0
  17. package/dist/src/AddWorkshopRecruitOrderRequest.d.ts +6 -0
  18. package/dist/src/Army.d.ts +10 -0
  19. package/dist/src/ArmyId.d.ts +1 -0
  20. package/dist/src/ArmyPersonnel.d.ts +10 -0
  21. package/dist/src/ArmyState.d.ts +7 -0
  22. package/dist/src/AuthorizeRequest.d.ts +6 -0
  23. package/dist/src/AuthorizeResponse.d.ts +2 -0
  24. package/dist/src/BattleReport.d.ts +17 -0
  25. package/dist/src/BattleResult.d.ts +15 -0
  26. package/dist/src/BattleWinner.d.ts +1 -0
  27. package/dist/src/BotAdvancedStartRatio.d.ts +4 -0
  28. package/dist/src/BotDensity.d.ts +1 -0
  29. package/dist/src/BotId.d.ts +1 -0
  30. package/dist/src/BuildStep.d.ts +6 -0
  31. package/dist/src/BuildingId.d.ts +1 -0
  32. package/dist/src/BuildingLevel.d.ts +1 -0
  33. package/dist/src/BuildingLevelDiff.d.ts +1 -0
  34. package/dist/src/BuildingStats.d.ts +17 -0
  35. package/dist/src/BuildingStatsTable.d.ts +11 -0
  36. package/dist/src/CancelAcademyRecruitOrderRequest.d.ts +8 -0
  37. package/dist/src/CancelPrefectureBuildOrderRequest.d.ts +6 -0
  38. package/dist/src/CancelStableRecruitOrderRequest.d.ts +8 -0
  39. package/dist/src/CancelWorkshopRecruitOrderRequest.d.ts +8 -0
  40. package/dist/src/ChatHistory.d.ts +5 -0
  41. package/dist/src/ChatMessage.d.ts +11 -0
  42. package/dist/src/ChatMessageAuthor.d.ts +7 -0
  43. package/dist/src/ChatMessageContent.d.ts +1 -0
  44. package/dist/src/ChatMessageId.d.ts +1 -0
  45. package/dist/src/ChatMessageKind.d.ts +1 -0
  46. package/dist/src/CheatGetAcademyRecruitQueueRequest.d.ts +6 -0
  47. package/dist/src/CheatGetAcademyRecruitQueueResponse.d.ts +2 -0
  48. package/dist/src/CheatGetAcademyRecruitQueuesRequest.d.ts +7 -0
  49. package/dist/src/CheatGetAcademyRecruitQueuesResponse.d.ts +6 -0
  50. package/dist/src/CheatGetAllAcademyRecruitQueuesRequest.d.ts +5 -0
  51. package/dist/src/CheatGetAllAcademyRecruitQueuesResponse.d.ts +6 -0
  52. package/dist/src/CheatGetAllPrefectureBuildQueuesRequest.d.ts +5 -0
  53. package/dist/src/CheatGetAllPrefectureBuildQueuesResponse.d.ts +6 -0
  54. package/dist/src/CheatGetAllStableRecruitQueuesRequest.d.ts +5 -0
  55. package/dist/src/CheatGetAllStableRecruitQueuesResponse.d.ts +6 -0
  56. package/dist/src/CheatGetBuildStepsRequest.d.ts +6 -0
  57. package/dist/src/CheatGetBuildStepsResponse.d.ts +2 -0
  58. package/dist/src/CheatGetEthicsRequest.d.ts +6 -0
  59. package/dist/src/CheatGetEthicsResponse.d.ts +2 -0
  60. package/dist/src/CheatGetIdleArmiesAtRequest.d.ts +6 -0
  61. package/dist/src/CheatGetIdleArmiesAtResponse.d.ts +2 -0
  62. package/dist/src/CheatGetIdlePersonnelAtRequest.d.ts +6 -0
  63. package/dist/src/CheatGetIdlePersonnelAtResponse.d.ts +2 -0
  64. package/dist/src/CheatGetInfrastructureRequest.d.ts +6 -0
  65. package/dist/src/CheatGetInfrastructureResponse.d.ts +2 -0
  66. package/dist/src/CheatGetManeuversOfRequest.d.ts +6 -0
  67. package/dist/src/CheatGetManeuversOfResponse.d.ts +2 -0
  68. package/dist/src/CheatGetManeuversRequest.d.ts +4 -0
  69. package/dist/src/CheatGetManeuversResponse.d.ts +2 -0
  70. package/dist/src/CheatGetPlayerRequest.d.ts +6 -0
  71. package/dist/src/CheatGetPlayerResponse.d.ts +2 -0
  72. package/dist/src/CheatGetPlayersRequest.d.ts +4 -0
  73. package/dist/src/CheatGetPlayersResponse.d.ts +2 -0
  74. package/dist/src/CheatGetPrefectureBuildQueueRequest.d.ts +6 -0
  75. package/dist/src/CheatGetPrefectureBuildQueueResponse.d.ts +2 -0
  76. package/dist/src/CheatGetPrefectureBuildQueuesRequest.d.ts +7 -0
  77. package/dist/src/CheatGetPrefectureBuildQueuesResponse.d.ts +6 -0
  78. package/dist/src/CheatGetResourcesRequest.d.ts +6 -0
  79. package/dist/src/CheatGetResourcesResponse.d.ts +2 -0
  80. package/dist/src/CheatGetStableRecruitQueueRequest.d.ts +6 -0
  81. package/dist/src/CheatGetStableRecruitQueueResponse.d.ts +2 -0
  82. package/dist/src/CheatGetStableRecruitQueuesRequest.d.ts +7 -0
  83. package/dist/src/CheatGetStableRecruitQueuesResponse.d.ts +6 -0
  84. package/dist/src/CheatGetStorageCapacityRequest.d.ts +6 -0
  85. package/dist/src/CheatGetStorageCapacityResponse.d.ts +2 -0
  86. package/dist/src/CheatSetBotEthicsRequest.d.ts +8 -0
  87. package/dist/src/CheatSetBuildingLevelRequest.d.ts +10 -0
  88. package/dist/src/CheatSetFoodRequest.d.ts +8 -0
  89. package/dist/src/CheatSetIronRequest.d.ts +8 -0
  90. package/dist/src/CheatSetMaxFoodRequest.d.ts +6 -0
  91. package/dist/src/CheatSetMaxInfrastructureRequest.d.ts +6 -0
  92. package/dist/src/CheatSetMaxIronRequest.d.ts +6 -0
  93. package/dist/src/CheatSetMaxResourcesRequest.d.ts +6 -0
  94. package/dist/src/CheatSetMaxSiloResourcesRequest.d.ts +6 -0
  95. package/dist/src/CheatSetMaxStoneRequest.d.ts +6 -0
  96. package/dist/src/CheatSetMaxWarehouseResourcesRequest.d.ts +6 -0
  97. package/dist/src/CheatSetMaxWoodRequest.d.ts +6 -0
  98. package/dist/src/CheatSetResourcesRequest.d.ts +8 -0
  99. package/dist/src/CheatSetStabilityRequest.d.ts +8 -0
  100. package/dist/src/CheatSetStoneRequest.d.ts +8 -0
  101. package/dist/src/CheatSetWoodRequest.d.ts +8 -0
  102. package/dist/src/CheatSkipRoundRequest.d.ts +5 -0
  103. package/dist/src/CheatSpawnBotRequest.d.ts +7 -0
  104. package/dist/src/CheatSpawnBotResponse.d.ts +2 -0
  105. package/dist/src/CheatSpawnPersonnelRequest.d.ts +10 -0
  106. package/dist/src/City.d.ts +12 -0
  107. package/dist/src/CityName.d.ts +1 -0
  108. package/dist/src/CitySearch.d.ts +6 -0
  109. package/dist/src/ContinentIndex.d.ts +1 -0
  110. package/dist/src/ContinentSize.d.ts +1 -0
  111. package/dist/src/Coord.d.ts +4 -0
  112. package/dist/src/Cost.d.ts +4 -0
  113. package/dist/src/CreateRemoteWorldRequest.d.ts +9 -0
  114. package/dist/src/CreateRemoteWorldResponse.d.ts +2 -0
  115. package/dist/src/CreateUserRequest.d.ts +6 -0
  116. package/dist/src/DeleteRemoteWorldRequest.d.ts +4 -0
  117. package/dist/src/EthicPowerAxis.d.ts +1 -0
  118. package/dist/src/EthicTruthAxis.d.ts +1 -0
  119. package/dist/src/Ethics.d.ts +6 -0
  120. package/dist/src/Event.d.ts +38 -0
  121. package/dist/src/Farm.d.ts +5 -0
  122. package/dist/src/Food.d.ts +1 -0
  123. package/dist/src/ForwardReportRequest.d.ts +8 -0
  124. package/dist/src/GetAcademyRecruitCatalogRequest.d.ts +6 -0
  125. package/dist/src/GetAcademyRecruitCatalogResponse.d.ts +2 -0
  126. package/dist/src/GetBotCoordsRequest.d.ts +6 -0
  127. package/dist/src/GetBotCoordsResponse.d.ts +2 -0
  128. package/dist/src/GetChatHistoryRequest.d.ts +4 -0
  129. package/dist/src/GetChatHistoryResponse.d.ts +2 -0
  130. package/dist/src/GetCityRequest.d.ts +6 -0
  131. package/dist/src/GetCityResponse.d.ts +2 -0
  132. package/dist/src/GetCityScoreRequest.d.ts +6 -0
  133. package/dist/src/GetCityScoreResponse.d.ts +2 -0
  134. package/dist/src/GetContinentSizeRequest.d.ts +4 -0
  135. package/dist/src/GetContinentSizeResponse.d.ts +2 -0
  136. package/dist/src/GetPlayerCoordsRequest.d.ts +6 -0
  137. package/dist/src/GetPlayerCoordsResponse.d.ts +2 -0
  138. package/dist/src/GetPlayerIdsRequest.d.ts +4 -0
  139. package/dist/src/GetPlayerIdsResponse.d.ts +2 -0
  140. package/dist/src/GetPlayerMaintenanceRequest.d.ts +4 -0
  141. package/dist/src/GetPlayerMaintenanceResponse.d.ts +2 -0
  142. package/dist/src/GetPlayerMilitaryRequest.d.ts +4 -0
  143. package/dist/src/GetPlayerMilitaryResponse.d.ts +2 -0
  144. package/dist/src/GetPlayerReportsRequest.d.ts +4 -0
  145. package/dist/src/GetPlayerReportsResponse.d.ts +2 -0
  146. package/dist/src/GetPlayerRequest.d.ts +4 -0
  147. package/dist/src/GetPlayerResponse.d.ts +2 -0
  148. package/dist/src/GetPlayerStatusRequest.d.ts +6 -0
  149. package/dist/src/GetPlayerStatusResponse.d.ts +2 -0
  150. package/dist/src/GetPlayerStorageCapacityRequest.d.ts +4 -0
  151. package/dist/src/GetPlayerStorageCapacityResponse.d.ts +2 -0
  152. package/dist/src/GetPlayerWorldsRequest.d.ts +4 -0
  153. package/dist/src/GetPlayerWorldsResponse.d.ts +2 -0
  154. package/dist/src/GetPrecursorCoordsRequest.d.ts +6 -0
  155. package/dist/src/GetPrecursorCoordsResponse.d.ts +2 -0
  156. package/dist/src/GetPrefectureBuildCatalogRequest.d.ts +6 -0
  157. package/dist/src/GetPrefectureBuildCatalogResponse.d.ts +2 -0
  158. package/dist/src/GetPublicBotRequest.d.ts +6 -0
  159. package/dist/src/GetPublicBotResponse.d.ts +2 -0
  160. package/dist/src/GetPublicBotsRequest.d.ts +4 -0
  161. package/dist/src/GetPublicBotsResponse.d.ts +2 -0
  162. package/dist/src/GetPublicCitiesRequest.d.ts +8 -0
  163. package/dist/src/GetPublicCitiesResponse.d.ts +2 -0
  164. package/dist/src/GetPublicCityRequest.d.ts +7 -0
  165. package/dist/src/GetPublicCityResponse.d.ts +6 -0
  166. package/dist/src/GetPublicFieldRequest.d.ts +6 -0
  167. package/dist/src/GetPublicFieldResponse.d.ts +2 -0
  168. package/dist/src/GetPublicFieldsRequest.d.ts +6 -0
  169. package/dist/src/GetPublicFieldsResponse.d.ts +3 -0
  170. package/dist/src/GetPublicPlayerRequest.d.ts +6 -0
  171. package/dist/src/GetPublicPlayerResponse.d.ts +2 -0
  172. package/dist/src/GetPublicPlayersRequest.d.ts +4 -0
  173. package/dist/src/GetPublicPlayersResponse.d.ts +2 -0
  174. package/dist/src/GetPublicPrecursorRequest.d.ts +6 -0
  175. package/dist/src/GetPublicPrecursorResponse.d.ts +2 -0
  176. package/dist/src/GetPublicPrecursorsRequest.d.ts +4 -0
  177. package/dist/src/GetPublicPrecursorsResponse.d.ts +2 -0
  178. package/dist/src/GetRankRequest.d.ts +6 -0
  179. package/dist/src/GetRankResponse.d.ts +2 -0
  180. package/dist/src/GetRankingRequest.d.ts +4 -0
  181. package/dist/src/GetRankingResponse.d.ts +2 -0
  182. package/dist/src/GetRemoteWorldLimitPerUserResponse.d.ts +1 -0
  183. package/dist/src/GetRemoteWorldLimitResponse.d.ts +1 -0
  184. package/dist/src/GetRemoteWorldRequest.d.ts +4 -0
  185. package/dist/src/GetRemoteWorldResponse.d.ts +2 -0
  186. package/dist/src/GetRemoteWorldsResponse.d.ts +2 -0
  187. package/dist/src/GetReportRequest.d.ts +6 -0
  188. package/dist/src/GetReportResponse.d.ts +2 -0
  189. package/dist/src/GetReportsRequest.d.ts +7 -0
  190. package/dist/src/GetReportsResponse.d.ts +2 -0
  191. package/dist/src/GetRoundRequest.d.ts +4 -0
  192. package/dist/src/GetRoundResponse.d.ts +2 -0
  193. package/dist/src/GetServerKindResponse.d.ts +2 -0
  194. package/dist/src/GetStableRecruitCatalogRequest.d.ts +6 -0
  195. package/dist/src/GetStableRecruitCatalogResponse.d.ts +2 -0
  196. package/dist/src/GetWorkshopRecruitCatalogRequest.d.ts +6 -0
  197. package/dist/src/GetWorkshopRecruitCatalogResponse.d.ts +2 -0
  198. package/dist/src/GetWorldBotsRequest.d.ts +4 -0
  199. package/dist/src/GetWorldBotsResponse.d.ts +2 -0
  200. package/dist/src/GetWorldConfigRequest.d.ts +4 -0
  201. package/dist/src/GetWorldConfigResponse.d.ts +2 -0
  202. package/dist/src/GetWorldPersonnelRequest.d.ts +4 -0
  203. package/dist/src/GetWorldPersonnelResponse.d.ts +2 -0
  204. package/dist/src/GetWorldPlayersRequest.d.ts +4 -0
  205. package/dist/src/GetWorldPlayersResponse.d.ts +2 -0
  206. package/dist/src/GetWorldPrecursorsRequest.d.ts +4 -0
  207. package/dist/src/GetWorldPrecursorsResponse.d.ts +2 -0
  208. package/dist/src/GetWorldStatsRequest.d.ts +4 -0
  209. package/dist/src/GetWorldStatsResponse.d.ts +2 -0
  210. package/dist/src/Influence.d.ts +8 -0
  211. package/dist/src/Infrastructure.d.ts +24 -0
  212. package/dist/src/InfrastructureRequirements.d.ts +14 -0
  213. package/dist/src/InfrastructureStats.d.ts +19 -0
  214. package/dist/src/Iron.d.ts +1 -0
  215. package/dist/src/IronMine.d.ts +5 -0
  216. package/dist/src/LeaveRequest.d.ts +4 -0
  217. package/dist/src/Locale.d.ts +1 -0
  218. package/dist/src/Luck.d.ts +1 -0
  219. package/dist/src/Maintenance.d.ts +9 -0
  220. package/dist/src/Maneuver.d.ts +19 -0
  221. package/dist/src/ManeuverDirection.d.ts +1 -0
  222. package/dist/src/ManeuverDistance.d.ts +1 -0
  223. package/dist/src/ManeuverHaul.d.ts +6 -0
  224. package/dist/src/ManeuverId.d.ts +1 -0
  225. package/dist/src/ManeuverKind.d.ts +1 -0
  226. package/dist/src/ManeuverRequest.d.ts +9 -0
  227. package/dist/src/ManeuverState.d.ts +7 -0
  228. package/dist/src/Military.d.ts +14 -0
  229. package/dist/src/MineId.d.ts +1 -0
  230. package/dist/src/MineProduction.d.ts +4 -0
  231. package/dist/src/MineStats.d.ts +6 -0
  232. package/dist/src/MineStatsTable.d.ts +9 -0
  233. package/dist/src/Minutes.d.ts +1 -0
  234. package/dist/src/OverallStorageCapacity.d.ts +5 -0
  235. package/dist/src/Password.d.ts +1 -0
  236. package/dist/src/Player.d.ts +10 -0
  237. package/dist/src/PlayerExistsRequest.d.ts +6 -0
  238. package/dist/src/PlayerExistsResponse.d.ts +1 -0
  239. package/dist/src/PlayerId.d.ts +1 -0
  240. package/dist/src/PlayerOptions.d.ts +4 -0
  241. package/dist/src/PlayerStatus.d.ts +1 -0
  242. package/dist/src/PrecursorId.d.ts +1 -0
  243. package/dist/src/Prefecture.d.ts +7 -0
  244. package/dist/src/PrefectureBuildCatalog.d.ts +14 -0
  245. package/dist/src/PrefectureBuildCatalogEntry.d.ts +11 -0
  246. package/dist/src/PrefectureBuildCatalogRecipe.d.ts +12 -0
  247. package/dist/src/PrefectureBuildOrder.d.ts +16 -0
  248. package/dist/src/PrefectureBuildOrderId.d.ts +1 -0
  249. package/dist/src/PrefectureBuildOrderKind.d.ts +1 -0
  250. package/dist/src/PrefectureBuildOrderRequest.d.ts +8 -0
  251. package/dist/src/PrefectureBuildOrderState.d.ts +7 -0
  252. package/dist/src/PrefectureBuildQueue.d.ts +4 -0
  253. package/dist/src/PublicBot.d.ts +4 -0
  254. package/dist/src/PublicCity.d.ts +10 -0
  255. package/dist/src/PublicField.d.ts +10 -0
  256. package/dist/src/PublicPlayer.d.ts +6 -0
  257. package/dist/src/PublicPrecursor.d.ts +6 -0
  258. package/dist/src/PushChatMessageRequest.d.ts +5 -0
  259. package/dist/src/PushChatMessageResponse.d.ts +2 -0
  260. package/dist/src/Quarry.d.ts +5 -0
  261. package/dist/src/Rank.d.ts +1 -0
  262. package/dist/src/Ranking.d.ts +2 -0
  263. package/dist/src/RankingEntry.d.ts +9 -0
  264. package/dist/src/RemoteWorld.d.ts +18 -0
  265. package/dist/src/RemoveReportRequest.d.ts +6 -0
  266. package/dist/src/RenameCityRequest.d.ts +7 -0
  267. package/dist/src/ReportId.d.ts +1 -0
  268. package/dist/src/ReportKind.d.ts +9 -0
  269. package/dist/src/RequestManeuverRequest.d.ts +6 -0
  270. package/dist/src/RequestManeuverResponse.d.ts +2 -0
  271. package/dist/src/Resources.d.ts +10 -0
  272. package/dist/src/Round.d.ts +7 -0
  273. package/dist/src/RoundDuration.d.ts +5 -0
  274. package/dist/src/RoundId.d.ts +1 -0
  275. package/dist/src/RoundState.d.ts +10 -0
  276. package/dist/src/Ruler.d.ts +13 -0
  277. package/dist/src/SaveLocalWorldRequest.d.ts +5 -0
  278. package/dist/src/Sawmill.d.ts +5 -0
  279. package/dist/src/Score.d.ts +1 -0
  280. package/dist/src/SearchCityRequest.d.ts +6 -0
  281. package/dist/src/SearchCityResponse.d.ts +2 -0
  282. package/dist/src/SearchPublicCityRequest.d.ts +6 -0
  283. package/dist/src/SearchPublicCityResponse.d.ts +2 -0
  284. package/dist/src/ServerKind.d.ts +7 -0
  285. package/dist/src/SetPlayerReadyRequest.d.ts +5 -0
  286. package/dist/src/SetPlayerReadyResponse.d.ts +2 -0
  287. package/dist/src/SetPlayerStatusRequest.d.ts +6 -0
  288. package/dist/src/Silo.d.ts +5 -0
  289. package/dist/src/SimulateBattleRequest.d.ts +11 -0
  290. package/dist/src/SimulateBattleResponse.d.ts +2 -0
  291. package/dist/src/SpawnPlayerRequest.d.ts +8 -0
  292. package/dist/src/Speed.d.ts +4 -0
  293. package/dist/src/Squad.d.ts +9 -0
  294. package/dist/src/SquadSize.d.ts +1 -0
  295. package/dist/src/Stability.d.ts +4 -0
  296. package/dist/src/Stable.d.ts +7 -0
  297. package/dist/src/StableRecruitCatalog.d.ts +5 -0
  298. package/dist/src/StableRecruitCatalogEntry.d.ts +9 -0
  299. package/dist/src/StableRecruitCatalogRecipe.d.ts +10 -0
  300. package/dist/src/StableRecruitOrder.d.ts +12 -0
  301. package/dist/src/StableRecruitOrderId.d.ts +1 -0
  302. package/dist/src/StableRecruitOrderRequest.d.ts +7 -0
  303. package/dist/src/StableRecruitOrderState.d.ts +7 -0
  304. package/dist/src/StableRecruitQueue.d.ts +4 -0
  305. package/dist/src/StableUnitId.d.ts +1 -0
  306. package/dist/src/StartRoundRequest.d.ts +4 -0
  307. package/dist/src/StartRoundResponse.d.ts +2 -0
  308. package/dist/src/Stone.d.ts +1 -0
  309. package/dist/src/StorageCapacity.d.ts +4 -0
  310. package/dist/src/StorageId.d.ts +1 -0
  311. package/dist/src/StorageStats.d.ts +6 -0
  312. package/dist/src/StorageStatsTable.d.ts +9 -0
  313. package/dist/src/SupportReport.d.ts +15 -0
  314. package/dist/src/ToggleBuildingRequest.d.ts +9 -0
  315. package/dist/src/Token.d.ts +1 -0
  316. package/dist/src/UnitBox.d.ts +1 -0
  317. package/dist/src/UnitId.d.ts +1 -0
  318. package/dist/src/UserExistsRequest.d.ts +4 -0
  319. package/dist/src/UserExistsResponse.d.ts +1 -0
  320. package/dist/src/ValidateTokenRequest.d.ts +4 -0
  321. package/dist/src/ValidateTokenResponse.d.ts +2 -0
  322. package/dist/src/VersionResponse.d.ts +1 -0
  323. package/dist/src/Wall.d.ts +5 -0
  324. package/dist/src/WallDefense.d.ts +1 -0
  325. package/dist/src/WallDefenseBonus.d.ts +1 -0
  326. package/dist/src/WallStats.d.ts +8 -0
  327. package/dist/src/WallStatsTable.d.ts +5 -0
  328. package/dist/src/Warehouse.d.ts +5 -0
  329. package/dist/src/Wood.d.ts +1 -0
  330. package/dist/src/Workforce.d.ts +9 -0
  331. package/dist/src/Workshop.d.ts +7 -0
  332. package/dist/src/WorkshopRecruitCatalog.d.ts +4 -0
  333. package/dist/src/WorkshopRecruitCatalogEntry.d.ts +9 -0
  334. package/dist/src/WorkshopRecruitCatalogRecipe.d.ts +10 -0
  335. package/dist/src/WorkshopRecruitOrder.d.ts +12 -0
  336. package/dist/src/WorkshopRecruitOrderId.d.ts +1 -0
  337. package/dist/src/WorkshopRecruitOrderRequest.d.ts +7 -0
  338. package/dist/src/WorkshopRecruitOrderState.d.ts +7 -0
  339. package/dist/src/WorkshopRecruitQueue.d.ts +4 -0
  340. package/dist/src/WorkshopUnitId.d.ts +1 -0
  341. package/dist/src/WorldConfig.d.ts +17 -0
  342. package/dist/src/WorldId.d.ts +1 -0
  343. package/dist/src/WorldName.d.ts +1 -0
  344. package/dist/src/WorldOptions.d.ts +17 -0
  345. package/dist/src/WorldSpeed.d.ts +1 -0
  346. package/dist/src/WorldStats.d.ts +4 -0
  347. package/dist/src/WorldUnitSpeed.d.ts +1 -0
  348. package/dist/src/index.d.ts +345 -0
  349. package/package.json +39 -0
@@ -0,0 +1,18 @@
1
+ import { ContinentSize } from './ContinentSize';
2
+ import { PlayerId } from './PlayerId';
3
+ import { RoundDuration } from './RoundDuration';
4
+ import { RoundId } from './RoundId';
5
+ import { WorldConfig } from './WorldConfig';
6
+ export type RemoteWorld = {
7
+ config: WorldConfig;
8
+ description: string | null;
9
+ createdBy: PlayerId;
10
+ createdAt: string;
11
+ updatedAt: string;
12
+ hasPassword: boolean;
13
+ currentRound: RoundId;
14
+ roundDuration: RoundDuration | null;
15
+ activePlayers: number;
16
+ totalPlayers: number;
17
+ continentSize: ContinentSize;
18
+ };
@@ -0,0 +1,6 @@
1
+ import { ReportId } from './ReportId';
2
+ import { WorldId } from './WorldId';
3
+ export type RemoveReportRequest = {
4
+ world: WorldId;
5
+ id: ReportId;
6
+ };
@@ -0,0 +1,7 @@
1
+ import { Coord } from './Coord';
2
+ import { WorldId } from './WorldId';
3
+ export type RenameCityRequest = {
4
+ world: WorldId;
5
+ coord: Coord;
6
+ name: string;
7
+ };
@@ -0,0 +1 @@
1
+ export type ReportId = string;
@@ -0,0 +1,9 @@
1
+ import { BattleReport } from './BattleReport';
2
+ import { SupportReport } from './SupportReport';
3
+ export type ReportKind = {
4
+ "kind": "battle";
5
+ report: BattleReport;
6
+ } | {
7
+ "kind": "support";
8
+ report: SupportReport;
9
+ };
@@ -0,0 +1,6 @@
1
+ import { ManeuverRequest } from './ManeuverRequest';
2
+ import { WorldId } from './WorldId';
3
+ export type RequestManeuverRequest = {
4
+ world: WorldId;
5
+ request: ManeuverRequest;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { ManeuverId } from './ManeuverId';
2
+ export type RequestManeuverResponse = ManeuverId;
@@ -0,0 +1,10 @@
1
+ import { Food } from './Food';
2
+ import { Iron } from './Iron';
3
+ import { Stone } from './Stone';
4
+ import { Wood } from './Wood';
5
+ export type Resources = {
6
+ food: Food;
7
+ iron: Iron;
8
+ stone: Stone;
9
+ wood: Wood;
10
+ };
@@ -0,0 +1,7 @@
1
+ import { RoundId } from './RoundId';
2
+ import { RoundState } from './RoundState';
3
+ export type Round = {
4
+ id: RoundId;
5
+ state: RoundState;
6
+ startedAt: string | null;
7
+ };
@@ -0,0 +1,5 @@
1
+ import { Minutes } from './Minutes';
2
+ /**
3
+ * Round duration, in minutes.
4
+ */
5
+ export type RoundDuration = Minutes;
@@ -0,0 +1 @@
1
+ export type RoundId = number;
@@ -0,0 +1,10 @@
1
+ import { PlayerId } from './PlayerId';
2
+ export type RoundState = {
3
+ "kind": "idle";
4
+ } | {
5
+ "kind": "waiting";
6
+ pending: Array<PlayerId>;
7
+ ready: Array<PlayerId>;
8
+ } | {
9
+ "kind": "done";
10
+ };
@@ -0,0 +1,13 @@
1
+ import { BotId } from './BotId';
2
+ import { PlayerId } from './PlayerId';
3
+ import { PrecursorId } from './PrecursorId';
4
+ export type Ruler = {
5
+ "kind": "bot";
6
+ id: BotId;
7
+ } | {
8
+ "kind": "player";
9
+ id: PlayerId;
10
+ } | {
11
+ "kind": "precursor";
12
+ id: PrecursorId;
13
+ };
@@ -0,0 +1,5 @@
1
+ import { WorldId } from './WorldId';
2
+ export type SaveLocalWorldRequest = {
3
+ world: WorldId;
4
+ path: string;
5
+ };
@@ -0,0 +1,5 @@
1
+ import { BuildingLevel } from './BuildingLevel';
2
+ export type Sawmill = {
3
+ level: BuildingLevel;
4
+ enabled: boolean;
5
+ };
@@ -0,0 +1 @@
1
+ export type Score = number;
@@ -0,0 +1,6 @@
1
+ import { CitySearch } from './CitySearch';
2
+ import { WorldId } from './WorldId';
3
+ export type SearchCityRequest = {
4
+ world: WorldId;
5
+ search: CitySearch;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { City } from './City';
2
+ export type SearchCityResponse = Array<City>;
@@ -0,0 +1,6 @@
1
+ import { CitySearch } from './CitySearch';
2
+ import { WorldId } from './WorldId';
3
+ export type SearchPublicCityRequest = {
4
+ world: WorldId;
5
+ search: CitySearch;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { PublicCity } from './PublicCity';
2
+ export type SearchPublicCityResponse = Array<PublicCity>;
@@ -0,0 +1,7 @@
1
+ import { WorldId } from './WorldId';
2
+ export type ServerKind = {
3
+ "kind": "local";
4
+ id: WorldId;
5
+ } | {
6
+ "kind": "remote";
7
+ };
@@ -0,0 +1,5 @@
1
+ import { WorldId } from './WorldId';
2
+ export type SetPlayerReadyRequest = {
3
+ world: WorldId;
4
+ isReady: boolean;
5
+ };
@@ -0,0 +1,2 @@
1
+ import { Round } from './Round';
2
+ export type SetPlayerReadyResponse = Round;
@@ -0,0 +1,6 @@
1
+ import { PlayerStatus } from './PlayerStatus';
2
+ import { WorldId } from './WorldId';
3
+ export type SetPlayerStatusRequest = {
4
+ world: WorldId;
5
+ status: PlayerStatus;
6
+ };
@@ -0,0 +1,5 @@
1
+ import { BuildingLevel } from './BuildingLevel';
2
+ export type Silo = {
3
+ level: BuildingLevel;
4
+ enabled: boolean;
5
+ };
@@ -0,0 +1,11 @@
1
+ import { BuildingLevel } from './BuildingLevel';
2
+ import { Luck } from './Luck';
3
+ import { Squad } from './Squad';
4
+ import { WorldId } from './WorldId';
5
+ export type SimulateBattleRequest = {
6
+ world: WorldId;
7
+ attacker: Array<Squad>;
8
+ defender: Array<Squad>;
9
+ luck?: Luck | null;
10
+ wall: BuildingLevel;
11
+ };
@@ -0,0 +1,2 @@
1
+ import { BattleResult } from './BattleResult';
2
+ export type SimulateBattleResponse = BattleResult;
@@ -0,0 +1,8 @@
1
+ import { Password } from './Password';
2
+ import { PlayerOptions } from './PlayerOptions';
3
+ import { WorldId } from './WorldId';
4
+ export type SpawnPlayerRequest = {
5
+ world: WorldId;
6
+ worldPassword?: Password | null;
7
+ options: PlayerOptions;
8
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Represents how many fields a unit can travel in one round.
3
+ */
4
+ export type Speed = number;
@@ -0,0 +1,9 @@
1
+ import { SquadSize } from './SquadSize';
2
+ import { UnitBox } from './UnitBox';
3
+ /**
4
+ * A group of units of the same type.
5
+ */
6
+ export type Squad = {
7
+ unit: UnitBox;
8
+ size: SquadSize;
9
+ };
@@ -0,0 +1 @@
1
+ export type SquadSize = number;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Political stability of the city.
3
+ */
4
+ export type Stability = number;
@@ -0,0 +1,7 @@
1
+ import { BuildingLevel } from './BuildingLevel';
2
+ import { StableRecruitQueue } from './StableRecruitQueue';
3
+ export type Stable = {
4
+ level: BuildingLevel;
5
+ enabled: boolean;
6
+ recruitQueue: StableRecruitQueue;
7
+ };
@@ -0,0 +1,5 @@
1
+ import { StableRecruitCatalogEntry } from './StableRecruitCatalogEntry';
2
+ export type StableRecruitCatalog = {
3
+ heavyCavalry: StableRecruitCatalogEntry;
4
+ lightCavalry: StableRecruitCatalogEntry;
5
+ };
@@ -0,0 +1,9 @@
1
+ import { InfrastructureRequirements } from './InfrastructureRequirements';
2
+ import { StableRecruitCatalogRecipe } from './StableRecruitCatalogRecipe';
3
+ export type StableRecruitCatalogEntry = {
4
+ "kind": "available";
5
+ recipe: StableRecruitCatalogRecipe;
6
+ } | {
7
+ "kind": "unmet";
8
+ requirements: InfrastructureRequirements;
9
+ };
@@ -0,0 +1,10 @@
1
+ import { InfrastructureRequirements } from './InfrastructureRequirements';
2
+ import { Maintenance } from './Maintenance';
3
+ import { Resources } from './Resources';
4
+ import { Workforce } from './Workforce';
5
+ export type StableRecruitCatalogRecipe = {
6
+ resources: Resources;
7
+ maintenance: Maintenance;
8
+ workforce: Workforce;
9
+ requirements: InfrastructureRequirements;
10
+ };
@@ -0,0 +1,12 @@
1
+ import { Resources } from './Resources';
2
+ import { Squad } from './Squad';
3
+ import { StableRecruitOrderId } from './StableRecruitOrderId';
4
+ import { StableRecruitOrderState } from './StableRecruitOrderState';
5
+ import { Workforce } from './Workforce';
6
+ export type StableRecruitOrder = {
7
+ id: StableRecruitOrderId;
8
+ squad: Squad;
9
+ resources: Resources;
10
+ workforce: Workforce;
11
+ state: StableRecruitOrderState;
12
+ };
@@ -0,0 +1 @@
1
+ export type StableRecruitOrderId = string;
@@ -0,0 +1,7 @@
1
+ import { Coord } from './Coord';
2
+ import { StableUnitId } from './StableUnitId';
3
+ export type StableRecruitOrderRequest = {
4
+ coord: Coord;
5
+ unit: StableUnitId;
6
+ chunks: number;
7
+ };
@@ -0,0 +1,7 @@
1
+ import { Workforce } from './Workforce';
2
+ export type StableRecruitOrderState = {
3
+ "kind": "pending";
4
+ workforce: Workforce;
5
+ } | {
6
+ "kind": "done";
7
+ };
@@ -0,0 +1,4 @@
1
+ import { StableRecruitOrder } from './StableRecruitOrder';
2
+ export type StableRecruitQueue = {
3
+ orders: Array<StableRecruitOrder>;
4
+ };
@@ -0,0 +1 @@
1
+ export type StableUnitId = "heavy-cavalry" | "light-cavalry";
@@ -0,0 +1,4 @@
1
+ import { WorldId } from './WorldId';
2
+ export type StartRoundRequest = {
3
+ world: WorldId;
4
+ };
@@ -0,0 +1,2 @@
1
+ import { Round } from './Round';
2
+ export type StartRoundResponse = Round;
@@ -0,0 +1 @@
1
+ export type Stone = number;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Storage capacity of a building.
3
+ */
4
+ export type StorageCapacity = number;
@@ -0,0 +1 @@
1
+ export type StorageId = "silo" | "warehouse";
@@ -0,0 +1,6 @@
1
+ import { BuildingLevel } from './BuildingLevel';
2
+ import { StorageCapacity } from './StorageCapacity';
3
+ export type StorageStats = {
4
+ level: BuildingLevel;
5
+ capacity: StorageCapacity;
6
+ };
@@ -0,0 +1,9 @@
1
+ import { BuildingLevel } from './BuildingLevel';
2
+ import { StorageId } from './StorageId';
3
+ import { StorageStats } from './StorageStats';
4
+ export type StorageStatsTable = {
5
+ id: StorageId;
6
+ table: {
7
+ [key in BuildingLevel]: StorageStats;
8
+ };
9
+ };
@@ -0,0 +1,15 @@
1
+ import { ArmyPersonnel } from './ArmyPersonnel';
2
+ import { Coord } from './Coord';
3
+ import { ReportId } from './ReportId';
4
+ import { RoundId } from './RoundId';
5
+ import { Ruler } from './Ruler';
6
+ export type SupportReport = {
7
+ id: ReportId;
8
+ sender: Ruler;
9
+ receiver: Ruler;
10
+ origin: Coord;
11
+ destination: Coord;
12
+ personnel: ArmyPersonnel;
13
+ round: RoundId;
14
+ time: string;
15
+ };
@@ -0,0 +1,9 @@
1
+ import { BuildingId } from './BuildingId';
2
+ import { Coord } from './Coord';
3
+ import { WorldId } from './WorldId';
4
+ export type ToggleBuildingRequest = {
5
+ world: WorldId;
6
+ coord: Coord;
7
+ id: BuildingId;
8
+ enabled: boolean;
9
+ };
@@ -0,0 +1 @@
1
+ export type Token = string;
@@ -0,0 +1 @@
1
+ export type UnitBox = "archer" | "axeman" | "heavy-cavalry" | "light-cavalry" | "pikeman" | "ram" | "swordsman";
@@ -0,0 +1 @@
1
+ export type UnitId = "archer" | "axeman" | "heavy-cavalry" | "light-cavalry" | "pikeman" | "ram" | "swordsman";
@@ -0,0 +1,4 @@
1
+ import { PlayerId } from './PlayerId';
2
+ export type UserExistsRequest = {
3
+ user: PlayerId;
4
+ };
@@ -0,0 +1 @@
1
+ export type UserExistsResponse = boolean;
@@ -0,0 +1,4 @@
1
+ import { Token } from './Token';
2
+ export type ValidateTokenRequest = {
3
+ token: Token;
4
+ };
@@ -0,0 +1,2 @@
1
+ import { PlayerId } from './PlayerId';
2
+ export type ValidateTokenResponse = PlayerId | null;
@@ -0,0 +1 @@
1
+ export type VersionResponse = string;
@@ -0,0 +1,5 @@
1
+ import { BuildingLevel } from './BuildingLevel';
2
+ export type Wall = {
3
+ level: BuildingLevel;
4
+ enabled: boolean;
5
+ };
@@ -0,0 +1 @@
1
+ export type WallDefense = number;
@@ -0,0 +1 @@
1
+ export type WallDefenseBonus = number;
@@ -0,0 +1,8 @@
1
+ import { BuildingLevel } from './BuildingLevel';
2
+ import { WallDefense } from './WallDefense';
3
+ import { WallDefenseBonus } from './WallDefenseBonus';
4
+ export type WallStats = {
5
+ level: BuildingLevel;
6
+ defense: WallDefense;
7
+ defensePercent: WallDefenseBonus;
8
+ };
@@ -0,0 +1,5 @@
1
+ import { BuildingLevel } from './BuildingLevel';
2
+ import { WallStats } from './WallStats';
3
+ export type WallStatsTable = {
4
+ [key in BuildingLevel]: WallStats;
5
+ };
@@ -0,0 +1,5 @@
1
+ import { BuildingLevel } from './BuildingLevel';
2
+ export type Warehouse = {
3
+ level: BuildingLevel;
4
+ enabled: boolean;
5
+ };
@@ -0,0 +1 @@
1
+ export type Wood = number;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Workforce is a special resource used to construct buildings and recruit troops.
3
+ * The amount generated per round will always be equal to the level of the relevant
4
+ * building multiplied by the world speed.
5
+ *
6
+ * Unlike other resources, workforce should never accumulate for the next round.
7
+ * Anything that is not used should be discarded.
8
+ */
9
+ export type Workforce = number;
@@ -0,0 +1,7 @@
1
+ import { BuildingLevel } from './BuildingLevel';
2
+ import { WorkshopRecruitQueue } from './WorkshopRecruitQueue';
3
+ export type Workshop = {
4
+ level: BuildingLevel;
5
+ enabled: boolean;
6
+ recruitQueue: WorkshopRecruitQueue;
7
+ };
@@ -0,0 +1,4 @@
1
+ import { WorkshopRecruitCatalogEntry } from './WorkshopRecruitCatalogEntry';
2
+ export type WorkshopRecruitCatalog = {
3
+ ram: WorkshopRecruitCatalogEntry;
4
+ };
@@ -0,0 +1,9 @@
1
+ import { InfrastructureRequirements } from './InfrastructureRequirements';
2
+ import { WorkshopRecruitCatalogRecipe } from './WorkshopRecruitCatalogRecipe';
3
+ export type WorkshopRecruitCatalogEntry = {
4
+ "kind": "available";
5
+ recipe: WorkshopRecruitCatalogRecipe;
6
+ } | {
7
+ "kind": "unmet";
8
+ requirements: InfrastructureRequirements;
9
+ };
@@ -0,0 +1,10 @@
1
+ import { InfrastructureRequirements } from './InfrastructureRequirements';
2
+ import { Maintenance } from './Maintenance';
3
+ import { Resources } from './Resources';
4
+ import { Workforce } from './Workforce';
5
+ export type WorkshopRecruitCatalogRecipe = {
6
+ resources: Resources;
7
+ maintenance: Maintenance;
8
+ workforce: Workforce;
9
+ requirements: InfrastructureRequirements;
10
+ };
@@ -0,0 +1,12 @@
1
+ import { Resources } from './Resources';
2
+ import { Squad } from './Squad';
3
+ import { Workforce } from './Workforce';
4
+ import { WorkshopRecruitOrderId } from './WorkshopRecruitOrderId';
5
+ import { WorkshopRecruitOrderState } from './WorkshopRecruitOrderState';
6
+ export type WorkshopRecruitOrder = {
7
+ id: WorkshopRecruitOrderId;
8
+ squad: Squad;
9
+ resources: Resources;
10
+ workforce: Workforce;
11
+ state: WorkshopRecruitOrderState;
12
+ };
@@ -0,0 +1 @@
1
+ export type WorkshopRecruitOrderId = string;
@@ -0,0 +1,7 @@
1
+ import { Coord } from './Coord';
2
+ import { WorkshopUnitId } from './WorkshopUnitId';
3
+ export type WorkshopRecruitOrderRequest = {
4
+ coord: Coord;
5
+ unit: WorkshopUnitId;
6
+ chunks: number;
7
+ };
@@ -0,0 +1,7 @@
1
+ import { Workforce } from './Workforce';
2
+ export type WorkshopRecruitOrderState = {
3
+ "kind": "pending";
4
+ workforce: Workforce;
5
+ } | {
6
+ "kind": "done";
7
+ };
@@ -0,0 +1,4 @@
1
+ import { WorkshopRecruitOrder } from './WorkshopRecruitOrder';
2
+ export type WorkshopRecruitQueue = {
3
+ orders: Array<WorkshopRecruitOrder>;
4
+ };
@@ -0,0 +1 @@
1
+ export type WorkshopUnitId = "ram";
@@ -0,0 +1,17 @@
1
+ import { BotAdvancedStartRatio } from './BotAdvancedStartRatio';
2
+ import { BotDensity } from './BotDensity';
3
+ import { Locale } from './Locale';
4
+ import { WorldId } from './WorldId';
5
+ import { WorldName } from './WorldName';
6
+ import { WorldSpeed } from './WorldSpeed';
7
+ import { WorldUnitSpeed } from './WorldUnitSpeed';
8
+ export type WorldConfig = {
9
+ name: WorldName;
10
+ id: WorldId;
11
+ locale: Locale;
12
+ allowCheats: boolean;
13
+ speed: WorldSpeed;
14
+ unitSpeed: WorldUnitSpeed;
15
+ botDensity: BotDensity;
16
+ botAdvancedStartRatio: BotAdvancedStartRatio;
17
+ };
@@ -0,0 +1 @@
1
+ export type WorldId = string;
@@ -0,0 +1 @@
1
+ export type WorldName = string;
@@ -0,0 +1,17 @@
1
+ import { BotAdvancedStartRatio } from './BotAdvancedStartRatio';
2
+ import { BotDensity } from './BotDensity';
3
+ import { ContinentSize } from './ContinentSize';
4
+ import { Locale } from './Locale';
5
+ import { WorldName } from './WorldName';
6
+ import { WorldSpeed } from './WorldSpeed';
7
+ import { WorldUnitSpeed } from './WorldUnitSpeed';
8
+ export type WorldOptions = {
9
+ name: WorldName;
10
+ size: ContinentSize;
11
+ locale: Locale;
12
+ allowCheats: boolean;
13
+ speed: WorldSpeed;
14
+ unitSpeed: WorldUnitSpeed;
15
+ botDensity: BotDensity;
16
+ botAdvancedStartRatio: BotAdvancedStartRatio;
17
+ };
@@ -0,0 +1 @@
1
+ export type WorldSpeed = number;
@@ -0,0 +1,4 @@
1
+ import { InfrastructureStats } from './InfrastructureStats';
2
+ export type WorldStats = {
3
+ infrastructure: InfrastructureStats;
4
+ };
@@ -0,0 +1 @@
1
+ export type WorldUnitSpeed = number;