@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,7 @@
1
+ import { AcademyRecruitQueue } from './AcademyRecruitQueue';
2
+ import { BuildingLevel } from './BuildingLevel';
3
+ export type Academy = {
4
+ level: BuildingLevel;
5
+ enabled: boolean;
6
+ recruitQueue: AcademyRecruitQueue;
7
+ };
@@ -0,0 +1,7 @@
1
+ import { AcademyRecruitCatalogEntry } from './AcademyRecruitCatalogEntry';
2
+ export type AcademyRecruitCatalog = {
3
+ pikeman: AcademyRecruitCatalogEntry;
4
+ swordsman: AcademyRecruitCatalogEntry;
5
+ axeman: AcademyRecruitCatalogEntry;
6
+ archer: AcademyRecruitCatalogEntry;
7
+ };
@@ -0,0 +1,9 @@
1
+ import { AcademyRecruitCatalogRecipe } from './AcademyRecruitCatalogRecipe';
2
+ import { InfrastructureRequirements } from './InfrastructureRequirements';
3
+ export type AcademyRecruitCatalogEntry = {
4
+ "kind": "available";
5
+ recipe: AcademyRecruitCatalogRecipe;
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 AcademyRecruitCatalogRecipe = {
6
+ resources: Resources;
7
+ maintenance: Maintenance;
8
+ workforce: Workforce;
9
+ requirements: InfrastructureRequirements;
10
+ };
@@ -0,0 +1,12 @@
1
+ import { AcademyRecruitOrderId } from './AcademyRecruitOrderId';
2
+ import { AcademyRecruitOrderState } from './AcademyRecruitOrderState';
3
+ import { Resources } from './Resources';
4
+ import { Squad } from './Squad';
5
+ import { Workforce } from './Workforce';
6
+ export type AcademyRecruitOrder = {
7
+ id: AcademyRecruitOrderId;
8
+ squad: Squad;
9
+ resources: Resources;
10
+ workforce: Workforce;
11
+ state: AcademyRecruitOrderState;
12
+ };
@@ -0,0 +1 @@
1
+ export type AcademyRecruitOrderId = string;
@@ -0,0 +1,7 @@
1
+ import { AcademyUnitId } from './AcademyUnitId';
2
+ import { Coord } from './Coord';
3
+ export type AcademyRecruitOrderRequest = {
4
+ coord: Coord;
5
+ unit: AcademyUnitId;
6
+ chunks: number;
7
+ };
@@ -0,0 +1,7 @@
1
+ import { Workforce } from './Workforce';
2
+ export type AcademyRecruitOrderState = {
3
+ "kind": "pending";
4
+ workforce: Workforce;
5
+ } | {
6
+ "kind": "done";
7
+ };
@@ -0,0 +1,4 @@
1
+ import { AcademyRecruitOrder } from './AcademyRecruitOrder';
2
+ export type AcademyRecruitQueue = {
3
+ orders: Array<AcademyRecruitOrder>;
4
+ };
@@ -0,0 +1 @@
1
+ export type AcademyUnitId = "archer" | "axeman" | "pikeman" | "swordsman";
@@ -0,0 +1,6 @@
1
+ import { AcademyRecruitOrderRequest } from './AcademyRecruitOrderRequest';
2
+ import { WorldId } from './WorldId';
3
+ export type AddAcademyRecruitOrderRequest = {
4
+ world: WorldId;
5
+ request: AcademyRecruitOrderRequest;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { PrefectureBuildOrderRequest } from './PrefectureBuildOrderRequest';
2
+ import { WorldId } from './WorldId';
3
+ export type AddPrefectureBuildOrderRequest = {
4
+ world: WorldId;
5
+ request: PrefectureBuildOrderRequest;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { StableRecruitOrderRequest } from './StableRecruitOrderRequest';
2
+ import { WorldId } from './WorldId';
3
+ export type AddStableRecruitOrderRequest = {
4
+ world: WorldId;
5
+ request: StableRecruitOrderRequest;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { WorkshopRecruitOrderRequest } from './WorkshopRecruitOrderRequest';
2
+ import { WorldId } from './WorldId';
3
+ export type AddWorkshopRecruitOrderRequest = {
4
+ world: WorldId;
5
+ request: WorkshopRecruitOrderRequest;
6
+ };
@@ -0,0 +1,10 @@
1
+ import { ArmyId } from './ArmyId';
2
+ import { ArmyPersonnel } from './ArmyPersonnel';
3
+ import { ArmyState } from './ArmyState';
4
+ import { Ruler } from './Ruler';
5
+ export type Army = {
6
+ id: ArmyId;
7
+ personnel: ArmyPersonnel;
8
+ owner: Ruler;
9
+ state: ArmyState;
10
+ };
@@ -0,0 +1 @@
1
+ export type ArmyId = string;
@@ -0,0 +1,10 @@
1
+ import { Squad } from './Squad';
2
+ export type ArmyPersonnel = {
3
+ archer: Squad;
4
+ axeman: Squad;
5
+ heavyCavalry: Squad;
6
+ lightCavalry: Squad;
7
+ pikeman: Squad;
8
+ ram: Squad;
9
+ swordsman: Squad;
10
+ };
@@ -0,0 +1,7 @@
1
+ import { ManeuverId } from './ManeuverId';
2
+ export type ArmyState = {
3
+ "kind": "idle";
4
+ } | {
5
+ "kind": "maneuvering";
6
+ maneuver: ManeuverId;
7
+ };
@@ -0,0 +1,6 @@
1
+ import { Password } from './Password';
2
+ import { PlayerId } from './PlayerId';
3
+ export type AuthorizeRequest = {
4
+ player: PlayerId;
5
+ password?: Password | null;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { Token } from './Token';
2
+ export type AuthorizeResponse = Token;
@@ -0,0 +1,17 @@
1
+ import { BattleResult } from './BattleResult';
2
+ import { Coord } from './Coord';
3
+ import { ReportId } from './ReportId';
4
+ import { Resources } from './Resources';
5
+ import { RoundId } from './RoundId';
6
+ import { Ruler } from './Ruler';
7
+ export type BattleReport = {
8
+ id: ReportId;
9
+ attacker: Ruler;
10
+ defender: Ruler;
11
+ origin: Coord;
12
+ destination: Coord;
13
+ result: BattleResult;
14
+ hauledResources: Resources;
15
+ round: RoundId;
16
+ time: string;
17
+ };
@@ -0,0 +1,15 @@
1
+ import { ArmyPersonnel } from './ArmyPersonnel';
2
+ import { BattleWinner } from './BattleWinner';
3
+ import { BuildingLevel } from './BuildingLevel';
4
+ import { BuildingLevelDiff } from './BuildingLevelDiff';
5
+ import { Luck } from './Luck';
6
+ export type BattleResult = {
7
+ attackerPersonnel: ArmyPersonnel;
8
+ attackerSurvivingPersonnel: ArmyPersonnel;
9
+ defenderPersonnel: ArmyPersonnel;
10
+ defenderSurvivingPersonnel: ArmyPersonnel;
11
+ wallLevel: BuildingLevel;
12
+ downgradedWallLevel: BuildingLevelDiff;
13
+ winner: BattleWinner;
14
+ luck: Luck;
15
+ };
@@ -0,0 +1 @@
1
+ export type BattleWinner = "attacker" | "defender";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Proportion of bots that will have an advanced start with higher level infrastructure.
3
+ */
4
+ export type BotAdvancedStartRatio = number;
@@ -0,0 +1 @@
1
+ export type BotDensity = number;
@@ -0,0 +1 @@
1
+ export type BotId = string;
@@ -0,0 +1,6 @@
1
+ import { BuildingId } from './BuildingId';
2
+ import { BuildingLevel } from './BuildingLevel';
3
+ export type BuildStep = {
4
+ id: BuildingId;
5
+ level: BuildingLevel;
6
+ };
@@ -0,0 +1 @@
1
+ export type BuildingId = "academy" | "farm" | "iron-mine" | "prefecture" | "quarry" | "sawmill" | "silo" | "stable" | "wall" | "warehouse" | "workshop";
@@ -0,0 +1 @@
1
+ export type BuildingLevel = number;
@@ -0,0 +1 @@
1
+ export type BuildingLevelDiff = number;
@@ -0,0 +1,17 @@
1
+ import { BuildingLevel } from './BuildingLevel';
2
+ import { Cost } from './Cost';
3
+ import { Maintenance } from './Maintenance';
4
+ import { Resources } from './Resources';
5
+ import { Score } from './Score';
6
+ import { Workforce } from './Workforce';
7
+ /**
8
+ * Information about a building at a given level.
9
+ */
10
+ export type BuildingStats = {
11
+ level: BuildingLevel;
12
+ cost: Cost;
13
+ resources: Resources;
14
+ maintenance: Maintenance;
15
+ workforce: Workforce;
16
+ score: Score;
17
+ };
@@ -0,0 +1,11 @@
1
+ import { BuildingId } from './BuildingId';
2
+ import { BuildingLevel } from './BuildingLevel';
3
+ import { BuildingStats } from './BuildingStats';
4
+ export type BuildingStatsTable = {
5
+ id: BuildingId;
6
+ minLevel: BuildingLevel;
7
+ maxLevel: BuildingLevel;
8
+ table: {
9
+ [key in BuildingLevel]: BuildingStats;
10
+ };
11
+ };
@@ -0,0 +1,8 @@
1
+ import { AcademyRecruitOrderId } from './AcademyRecruitOrderId';
2
+ import { Coord } from './Coord';
3
+ import { WorldId } from './WorldId';
4
+ export type CancelAcademyRecruitOrderRequest = {
5
+ world: WorldId;
6
+ coord: Coord;
7
+ id: AcademyRecruitOrderId;
8
+ };
@@ -0,0 +1,6 @@
1
+ import { Coord } from './Coord';
2
+ import { WorldId } from './WorldId';
3
+ export type CancelPrefectureBuildOrderRequest = {
4
+ world: WorldId;
5
+ coord: Coord;
6
+ };
@@ -0,0 +1,8 @@
1
+ import { Coord } from './Coord';
2
+ import { StableRecruitOrderId } from './StableRecruitOrderId';
3
+ import { WorldId } from './WorldId';
4
+ export type CancelStableRecruitOrderRequest = {
5
+ world: WorldId;
6
+ coord: Coord;
7
+ id: StableRecruitOrderId;
8
+ };
@@ -0,0 +1,8 @@
1
+ import { Coord } from './Coord';
2
+ import { WorkshopRecruitOrderId } from './WorkshopRecruitOrderId';
3
+ import { WorldId } from './WorldId';
4
+ export type CancelWorkshopRecruitOrderRequest = {
5
+ world: WorldId;
6
+ coord: Coord;
7
+ id: WorkshopRecruitOrderId;
8
+ };
@@ -0,0 +1,5 @@
1
+ import { ChatMessage } from './ChatMessage';
2
+ export type ChatHistory = {
3
+ queue: Array<ChatMessage>;
4
+ size: number;
5
+ };
@@ -0,0 +1,11 @@
1
+ import { ChatMessageAuthor } from './ChatMessageAuthor';
2
+ import { ChatMessageContent } from './ChatMessageContent';
3
+ import { ChatMessageId } from './ChatMessageId';
4
+ import { ChatMessageKind } from './ChatMessageKind';
5
+ export type ChatMessage = {
6
+ content: ChatMessageContent;
7
+ id: ChatMessageId;
8
+ kind: ChatMessageKind;
9
+ author: ChatMessageAuthor;
10
+ time: string;
11
+ };
@@ -0,0 +1,7 @@
1
+ import { PlayerId } from './PlayerId';
2
+ export type ChatMessageAuthor = {
3
+ "kind": "system";
4
+ } | {
5
+ "kind": "player";
6
+ id: PlayerId;
7
+ };
@@ -0,0 +1 @@
1
+ export type ChatMessageContent = string;
@@ -0,0 +1 @@
1
+ export type ChatMessageId = string;
@@ -0,0 +1 @@
1
+ export type ChatMessageKind = "default";
@@ -0,0 +1,6 @@
1
+ import { Coord } from './Coord';
2
+ import { WorldId } from './WorldId';
3
+ export type CheatGetAcademyRecruitQueueRequest = {
4
+ world: WorldId;
5
+ coord: Coord;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { AcademyRecruitQueue } from './AcademyRecruitQueue';
2
+ export type CheatGetAcademyRecruitQueueResponse = AcademyRecruitQueue;
@@ -0,0 +1,7 @@
1
+ import { Coord } from './Coord';
2
+ import { WorldId } from './WorldId';
3
+ export type CheatGetAcademyRecruitQueuesRequest = {
4
+ world: WorldId;
5
+ coords: Array<Coord>;
6
+ filterEmpty: boolean;
7
+ };
@@ -0,0 +1,6 @@
1
+ import { AcademyRecruitQueue } from './AcademyRecruitQueue';
2
+ import { Coord } from './Coord';
3
+ export type CheatGetAcademyRecruitQueuesResponse = Array<[
4
+ Coord,
5
+ AcademyRecruitQueue
6
+ ]>;
@@ -0,0 +1,5 @@
1
+ import { WorldId } from './WorldId';
2
+ export type CheatGetAllAcademyRecruitQueuesRequest = {
3
+ world: WorldId;
4
+ filterEmpty: boolean;
5
+ };
@@ -0,0 +1,6 @@
1
+ import { AcademyRecruitQueue } from './AcademyRecruitQueue';
2
+ import { Coord } from './Coord';
3
+ export type CheatGetAllAcademyRecruitQueuesResponse = Array<[
4
+ Coord,
5
+ AcademyRecruitQueue
6
+ ]>;
@@ -0,0 +1,5 @@
1
+ import { WorldId } from './WorldId';
2
+ export type CheatGetAllPrefectureBuildQueuesRequest = {
3
+ world: WorldId;
4
+ filterEmpty: boolean;
5
+ };
@@ -0,0 +1,6 @@
1
+ import { Coord } from './Coord';
2
+ import { PrefectureBuildQueue } from './PrefectureBuildQueue';
3
+ export type CheatGetAllPrefectureBuildQueuesResponse = Array<[
4
+ Coord,
5
+ PrefectureBuildQueue
6
+ ]>;
@@ -0,0 +1,5 @@
1
+ import { WorldId } from './WorldId';
2
+ export type CheatGetAllStableRecruitQueuesRequest = {
3
+ world: WorldId;
4
+ filterEmpty: boolean;
5
+ };
@@ -0,0 +1,6 @@
1
+ import { Coord } from './Coord';
2
+ import { StableRecruitQueue } from './StableRecruitQueue';
3
+ export type CheatGetAllStableRecruitQueuesResponse = Array<[
4
+ Coord,
5
+ StableRecruitQueue
6
+ ]>;
@@ -0,0 +1,6 @@
1
+ import { Coord } from './Coord';
2
+ import { WorldId } from './WorldId';
3
+ export type CheatGetBuildStepsRequest = {
4
+ world: WorldId;
5
+ coord: Coord;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { BuildStep } from './BuildStep';
2
+ export type CheatGetBuildStepsResponse = Array<BuildStep>;
@@ -0,0 +1,6 @@
1
+ import { Ruler } from './Ruler';
2
+ import { WorldId } from './WorldId';
3
+ export type CheatGetEthicsRequest = {
4
+ world: WorldId;
5
+ ruler: Ruler;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { Ethics } from './Ethics';
2
+ export type CheatGetEthicsResponse = Ethics | null;
@@ -0,0 +1,6 @@
1
+ import { Coord } from './Coord';
2
+ import { WorldId } from './WorldId';
3
+ export type CheatGetIdleArmiesAtRequest = {
4
+ world: WorldId;
5
+ coord: Coord;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { Army } from './Army';
2
+ export type CheatGetIdleArmiesAtResponse = Array<Army>;
@@ -0,0 +1,6 @@
1
+ import { Coord } from './Coord';
2
+ import { WorldId } from './WorldId';
3
+ export type CheatGetIdlePersonnelAtRequest = {
4
+ world: WorldId;
5
+ coord: Coord;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { ArmyPersonnel } from './ArmyPersonnel';
2
+ export type CheatGetIdlePersonnelAtResponse = ArmyPersonnel;
@@ -0,0 +1,6 @@
1
+ import { Coord } from './Coord';
2
+ import { WorldId } from './WorldId';
3
+ export type CheatGetInfrastructureRequest = {
4
+ world: WorldId;
5
+ coord: Coord;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { Infrastructure } from './Infrastructure';
2
+ export type CheatGetInfrastructureResponse = Infrastructure;
@@ -0,0 +1,6 @@
1
+ import { Ruler } from './Ruler';
2
+ import { WorldId } from './WorldId';
3
+ export type CheatGetManeuversOfRequest = {
4
+ world: WorldId;
5
+ ruler?: Ruler | null;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { Maneuver } from './Maneuver';
2
+ export type CheatGetManeuversOfResponse = Array<Maneuver>;
@@ -0,0 +1,4 @@
1
+ import { WorldId } from './WorldId';
2
+ export type CheatGetManeuversRequest = {
3
+ world: WorldId;
4
+ };
@@ -0,0 +1,2 @@
1
+ import { Maneuver } from './Maneuver';
2
+ export type CheatGetManeuversResponse = Array<Maneuver>;
@@ -0,0 +1,6 @@
1
+ import { PlayerId } from './PlayerId';
2
+ import { WorldId } from './WorldId';
3
+ export type CheatGetPlayerRequest = {
4
+ world: WorldId;
5
+ player?: PlayerId | null;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { Player } from './Player';
2
+ export type CheatGetPlayerResponse = Player;
@@ -0,0 +1,4 @@
1
+ import { WorldId } from './WorldId';
2
+ export type CheatGetPlayersRequest = {
3
+ world: WorldId;
4
+ };
@@ -0,0 +1,2 @@
1
+ import { Player } from './Player';
2
+ export type CheatGetPlayersResponse = Array<Player>;
@@ -0,0 +1,6 @@
1
+ import { Coord } from './Coord';
2
+ import { WorldId } from './WorldId';
3
+ export type CheatGetPrefectureBuildQueueRequest = {
4
+ world: WorldId;
5
+ coord: Coord;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { PrefectureBuildQueue } from './PrefectureBuildQueue';
2
+ export type CheatGetPrefectureBuildQueueResponse = PrefectureBuildQueue;
@@ -0,0 +1,7 @@
1
+ import { Coord } from './Coord';
2
+ import { WorldId } from './WorldId';
3
+ export type CheatGetPrefectureBuildQueuesRequest = {
4
+ world: WorldId;
5
+ coords: Array<Coord>;
6
+ filterEmpty: boolean;
7
+ };
@@ -0,0 +1,6 @@
1
+ import { Coord } from './Coord';
2
+ import { PrefectureBuildQueue } from './PrefectureBuildQueue';
3
+ export type CheatGetPrefectureBuildQueuesResponse = Array<[
4
+ Coord,
5
+ PrefectureBuildQueue
6
+ ]>;
@@ -0,0 +1,6 @@
1
+ import { Ruler } from './Ruler';
2
+ import { WorldId } from './WorldId';
3
+ export type CheatGetResourcesRequest = {
4
+ world: WorldId;
5
+ ruler?: Ruler | null;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { Resources } from './Resources';
2
+ export type CheatGetResourcesResponse = Resources;
@@ -0,0 +1,6 @@
1
+ import { Coord } from './Coord';
2
+ import { WorldId } from './WorldId';
3
+ export type CheatGetStableRecruitQueueRequest = {
4
+ world: WorldId;
5
+ coord: Coord;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { StableRecruitQueue } from './StableRecruitQueue';
2
+ export type CheatGetStableRecruitQueueResponse = StableRecruitQueue;
@@ -0,0 +1,7 @@
1
+ import { Coord } from './Coord';
2
+ import { WorldId } from './WorldId';
3
+ export type CheatGetStableRecruitQueuesRequest = {
4
+ world: WorldId;
5
+ coords: Array<Coord>;
6
+ filterEmpty: boolean;
7
+ };
@@ -0,0 +1,6 @@
1
+ import { Coord } from './Coord';
2
+ import { StableRecruitQueue } from './StableRecruitQueue';
3
+ export type CheatGetStableRecruitQueuesResponse = Array<[
4
+ Coord,
5
+ StableRecruitQueue
6
+ ]>;
@@ -0,0 +1,6 @@
1
+ import { Ruler } from './Ruler';
2
+ import { WorldId } from './WorldId';
3
+ export type CheatGetStorageCapacityRequest = {
4
+ world: WorldId;
5
+ ruler?: Ruler | null;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { OverallStorageCapacity } from './OverallStorageCapacity';
2
+ export type CheatGetStorageCapacityResponse = OverallStorageCapacity;
@@ -0,0 +1,8 @@
1
+ import { BotId } from './BotId';
2
+ import { Ethics } from './Ethics';
3
+ import { WorldId } from './WorldId';
4
+ export type CheatSetBotEthicsRequest = {
5
+ world: WorldId;
6
+ id: BotId;
7
+ ethics?: Ethics | null;
8
+ };