poke-go-api 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (457) hide show
  1. checksums.yaml +7 -0
  2. data/lib/poke-api.rb +14 -0
  3. data/lib/poke-api/POGOProtos/Data/AssetDigestEntry.rb +21 -0
  4. data/lib/poke-api/POGOProtos/Data/Battle/BattleAction.rb +33 -0
  5. data/lib/poke-api/POGOProtos/Data/Battle/BattleActionType.rb +28 -0
  6. data/lib/poke-api/POGOProtos/Data/Battle/BattleLog.rb +26 -0
  7. data/lib/poke-api/POGOProtos/Data/Battle/BattleParticipant.rb +23 -0
  8. data/lib/poke-api/POGOProtos/Data/Battle/BattlePokemonInfo.rb +21 -0
  9. data/lib/poke-api/POGOProtos/Data/Battle/BattleResults.rb +24 -0
  10. data/lib/poke-api/POGOProtos/Data/Battle/BattleState.rb +22 -0
  11. data/lib/poke-api/POGOProtos/Data/Battle/BattleType.rb +20 -0
  12. data/lib/poke-api/POGOProtos/Data/Capture/CaptureAward.rb +22 -0
  13. data/lib/poke-api/POGOProtos/Data/Capture/CaptureProbability.rb +21 -0
  14. data/lib/poke-api/POGOProtos/Data/DownloadUrlEntry.rb +19 -0
  15. data/lib/poke-api/POGOProtos/Data/Gym/GymMembership.rb +21 -0
  16. data/lib/poke-api/POGOProtos/Data/Gym/GymState.rb +21 -0
  17. data/lib/poke-api/POGOProtos/Data/Logs/ActionLogEntry.rb +25 -0
  18. data/lib/poke-api/POGOProtos/Data/Logs/CatchPokemonLogEntry.rb +28 -0
  19. data/lib/poke-api/POGOProtos/Data/Logs/FortSearchLogEntry.rb +27 -0
  20. data/lib/poke-api/POGOProtos/Data/Player/ContactSettings.rb +19 -0
  21. data/lib/poke-api/POGOProtos/Data/Player/Currency.rb +19 -0
  22. data/lib/poke-api/POGOProtos/Data/Player/DailyBonus.rb +19 -0
  23. data/lib/poke-api/POGOProtos/Data/Player/EquippedBadge.rb +21 -0
  24. data/lib/poke-api/POGOProtos/Data/Player/PlayerAvatar.rb +27 -0
  25. data/lib/poke-api/POGOProtos/Data/Player/PlayerCamera.rb +18 -0
  26. data/lib/poke-api/POGOProtos/Data/Player/PlayerCurrency.rb +18 -0
  27. data/lib/poke-api/POGOProtos/Data/Player/PlayerPublicProfile.rb +21 -0
  28. data/lib/poke-api/POGOProtos/Data/Player/PlayerStats.rb +40 -0
  29. data/lib/poke-api/POGOProtos/Data/PlayerBadge.rb +21 -0
  30. data/lib/poke-api/POGOProtos/Data/PlayerData.rb +33 -0
  31. data/lib/poke-api/POGOProtos/Data/PokedexEntry.rb +21 -0
  32. data/lib/poke-api/POGOProtos/Data/PokemonData.rb +48 -0
  33. data/lib/poke-api/POGOProtos/Enums/ActivityType.rb +39 -0
  34. data/lib/poke-api/POGOProtos/Enums/BadgeType.rb +53 -0
  35. data/lib/poke-api/POGOProtos/Enums/CameraInterpolation.rb +20 -0
  36. data/lib/poke-api/POGOProtos/Enums/CameraTarget.rb +29 -0
  37. data/lib/poke-api/POGOProtos/Enums/Gender.rb +17 -0
  38. data/lib/poke-api/POGOProtos/Enums/IapItemCategory.rb +20 -0
  39. data/lib/poke-api/POGOProtos/Enums/ItemCategory.rb +27 -0
  40. data/lib/poke-api/POGOProtos/Enums/ItemEffect.rb +30 -0
  41. data/lib/poke-api/POGOProtos/Enums/Platform.rb +20 -0
  42. data/lib/poke-api/POGOProtos/Enums/PokemonFamilyId.rb +96 -0
  43. data/lib/poke-api/POGOProtos/Enums/PokemonId.rb +167 -0
  44. data/lib/poke-api/POGOProtos/Enums/PokemonMove.rb +195 -0
  45. data/lib/poke-api/POGOProtos/Enums/PokemonMovementType.rb +22 -0
  46. data/lib/poke-api/POGOProtos/Enums/PokemonRarity.rb +18 -0
  47. data/lib/poke-api/POGOProtos/Enums/PokemonType.rb +34 -0
  48. data/lib/poke-api/POGOProtos/Enums/TeamColor.rb +19 -0
  49. data/lib/poke-api/POGOProtos/Enums/TutorialState.rb +25 -0
  50. data/lib/poke-api/POGOProtos/Inventory/AppliedItem.rb +21 -0
  51. data/lib/poke-api/POGOProtos/Inventory/AppliedItems.rb +17 -0
  52. data/lib/poke-api/POGOProtos/Inventory/EggIncubator.rb +24 -0
  53. data/lib/poke-api/POGOProtos/Inventory/EggIncubatorType.rb +17 -0
  54. data/lib/poke-api/POGOProtos/Inventory/EggIncubators.rb +17 -0
  55. data/lib/poke-api/POGOProtos/Inventory/InventoryDelta.rb +19 -0
  56. data/lib/poke-api/POGOProtos/Inventory/InventoryItem.rb +19 -0
  57. data/lib/poke-api/POGOProtos/Inventory/InventoryItemData.rb +35 -0
  58. data/lib/poke-api/POGOProtos/Inventory/InventoryUpgrade.rb +20 -0
  59. data/lib/poke-api/POGOProtos/Inventory/InventoryUpgradeType.rb +18 -0
  60. data/lib/poke-api/POGOProtos/Inventory/InventoryUpgrades.rb +17 -0
  61. data/lib/poke-api/POGOProtos/Inventory/Item/ItemAward.rb +20 -0
  62. data/lib/poke-api/POGOProtos/Inventory/Item/ItemData.rb +21 -0
  63. data/lib/poke-api/POGOProtos/Inventory/Item/ItemId.rb +47 -0
  64. data/lib/poke-api/POGOProtos/Inventory/Item/ItemType.rb +30 -0
  65. data/lib/poke-api/POGOProtos/Inventory/PokemonFamily.rb +18 -0
  66. data/lib/poke-api/POGOProtos/Map/Fort/FortData.rb +39 -0
  67. data/lib/poke-api/POGOProtos/Map/Fort/FortLureInfo.rb +22 -0
  68. data/lib/poke-api/POGOProtos/Map/Fort/FortModifier.rb +21 -0
  69. data/lib/poke-api/POGOProtos/Map/Fort/FortRenderingType.rb +19 -0
  70. data/lib/poke-api/POGOProtos/Map/Fort/FortSponsor.rb +20 -0
  71. data/lib/poke-api/POGOProtos/Map/Fort/FortSummary.rb +21 -0
  72. data/lib/poke-api/POGOProtos/Map/Fort/FortType.rb +19 -0
  73. data/lib/poke-api/POGOProtos/Map/MapCell.rb +32 -0
  74. data/lib/poke-api/POGOProtos/Map/MapObjectsStatus.rb +18 -0
  75. data/lib/poke-api/POGOProtos/Map/Pokemon/MapPokemon.rb +24 -0
  76. data/lib/poke-api/POGOProtos/Map/Pokemon/NearbyPokemon.rb +21 -0
  77. data/lib/poke-api/POGOProtos/Map/Pokemon/WildPokemon.rb +25 -0
  78. data/lib/poke-api/POGOProtos/Map/SpawnPoint.rb +17 -0
  79. data/lib/poke-api/POGOProtos/Networking/Envelopes/AuthTicket.rb +20 -0
  80. data/lib/poke-api/POGOProtos/Networking/Envelopes/RequestEnvelope.rb +40 -0
  81. data/lib/poke-api/POGOProtos/Networking/Envelopes/ResponseEnvelope.rb +32 -0
  82. data/lib/poke-api/POGOProtos/Networking/Envelopes/Unknown6.rb +23 -0
  83. data/lib/poke-api/POGOProtos/Networking/Envelopes/Unknown6Response.rb +23 -0
  84. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/AddFortModifierMessage.rb +24 -0
  85. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/AttackGymMessage.rb +26 -0
  86. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/CatchPokemonMessage.rb +27 -0
  87. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/CheckAwardedBadgesMessage.rb +19 -0
  88. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/CheckCodenameAvailableMessage.rb +20 -0
  89. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/ClaimCodenameMessage.rb +20 -0
  90. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/CollectDailyBonusMessage.rb +19 -0
  91. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/CollectDailyDefenderBonusMessage.rb +19 -0
  92. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/DiskEncounterMessage.rb +23 -0
  93. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/DownloadItemTemplatesMessage.rb +19 -0
  94. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/DownloadRemoteConfigVersionMessage.rb +25 -0
  95. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/DownloadSettingsMessage.rb +20 -0
  96. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/EchoMessage.rb +19 -0
  97. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/EncounterMessage.rb +23 -0
  98. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/EncounterTutorialCompleteMessage.rb +21 -0
  99. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/EquipBadgeMessage.rb +21 -0
  100. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/EvolvePokemonMessage.rb +20 -0
  101. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/FortDeployPokemonMessage.rb +23 -0
  102. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/FortDetailsMessage.rb +22 -0
  103. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/FortRecallPokemonMessage.rb +23 -0
  104. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/FortSearchMessage.rb +24 -0
  105. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetAssetDigestMessage.rb +25 -0
  106. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetDownloadUrlsMessage.rb +20 -0
  107. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetGymDetailsMessage.rb +24 -0
  108. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetHatchedEggsMessage.rb +19 -0
  109. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetIncensePokemonMessage.rb +21 -0
  110. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetInventoryMessage.rb +21 -0
  111. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetMapObjectsMessage.rb +23 -0
  112. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetPlayerMessage.rb +19 -0
  113. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetPlayerProfileMessage.rb +20 -0
  114. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetSuggestedCodenamesMessage.rb +19 -0
  115. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/IncenseEncounterMessage.rb +21 -0
  116. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/LevelUpRewardsMessage.rb +20 -0
  117. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/MarkTutorialCompleteMessage.rb +23 -0
  118. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/NicknamePokemonMessage.rb +21 -0
  119. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/PlayerUpdateMessage.rb +21 -0
  120. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/RecycleInventoryItemMessage.rb +22 -0
  121. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/ReleasePokemonMessage.rb +20 -0
  122. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/SetAvatarMessage.rb +21 -0
  123. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/SetContactSettingsMessage.rb +21 -0
  124. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/SetFavoritePokemonMessage.rb +21 -0
  125. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/SetPlayerTeamMessage.rb +21 -0
  126. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/SfidaActionLogMessage.rb +19 -0
  127. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/StartGymBattleMessage.rb +24 -0
  128. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UpgradePokemonMessage.rb +20 -0
  129. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UseIncenseMessage.rb +21 -0
  130. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UseItemCaptureMessage.rb +23 -0
  131. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UseItemEggIncubatorMessage.rb +21 -0
  132. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UseItemGymMessage.rb +24 -0
  133. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UseItemPotionMessage.rb +22 -0
  134. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UseItemReviveMessage.rb +22 -0
  135. data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UseItemXpBoostMessage.rb +21 -0
  136. data/lib/poke-api/POGOProtos/Networking/Requests/Request.rb +20 -0
  137. data/lib/poke-api/POGOProtos/Networking/Requests/RequestType.rb +88 -0
  138. data/lib/poke-api/POGOProtos/Networking/Responses/AddFortModifierResponse.rb +17 -0
  139. data/lib/poke-api/POGOProtos/Networking/Responses/AttackGymResponse.rb +31 -0
  140. data/lib/poke-api/POGOProtos/Networking/Responses/CatchPokemonResponse.rb +30 -0
  141. data/lib/poke-api/POGOProtos/Networking/Responses/CheckAwardedBadgesResponse.rb +21 -0
  142. data/lib/poke-api/POGOProtos/Networking/Responses/CheckCodenameAvailableResponse.rb +30 -0
  143. data/lib/poke-api/POGOProtos/Networking/Responses/ClaimCodenameResponse.rb +30 -0
  144. data/lib/poke-api/POGOProtos/Networking/Responses/CollectDailyBonusResponse.rb +25 -0
  145. data/lib/poke-api/POGOProtos/Networking/Responses/CollectDailyDefenderBonusResponse.rb +29 -0
  146. data/lib/poke-api/POGOProtos/Networking/Responses/DiskEncounterResponse.rb +31 -0
  147. data/lib/poke-api/POGOProtos/Networking/Responses/DownloadItemTemplatesResponse.rb +54 -0
  148. data/lib/poke-api/POGOProtos/Networking/Responses/DownloadRemoteConfigVersionResponse.rb +25 -0
  149. data/lib/poke-api/POGOProtos/Networking/Responses/DownloadSettingsResponse.rb +21 -0
  150. data/lib/poke-api/POGOProtos/Networking/Responses/EchoResponse.rb +18 -0
  151. data/lib/poke-api/POGOProtos/Networking/Responses/EncounterResponse.rb +39 -0
  152. data/lib/poke-api/POGOProtos/Networking/Responses/EncounterTutorialCompleteResponse.rb +28 -0
  153. data/lib/poke-api/POGOProtos/Networking/Responses/EquipBadgeResponse.rb +27 -0
  154. data/lib/poke-api/POGOProtos/Networking/Responses/EvolvePokemonResponse.rb +31 -0
  155. data/lib/poke-api/POGOProtos/Networking/Responses/FortDeployPokemonResponse.rb +36 -0
  156. data/lib/poke-api/POGOProtos/Networking/Responses/FortDetailsResponse.rb +34 -0
  157. data/lib/poke-api/POGOProtos/Networking/Responses/FortRecallPokemonResponse.rb +28 -0
  158. data/lib/poke-api/POGOProtos/Networking/Responses/FortSearchResponse.rb +34 -0
  159. data/lib/poke-api/POGOProtos/Networking/Responses/GetAssetDigestResponse.rb +20 -0
  160. data/lib/poke-api/POGOProtos/Networking/Responses/GetDownloadUrlsResponse.rb +19 -0
  161. data/lib/poke-api/POGOProtos/Networking/Responses/GetGymDetailsResponse.rb +29 -0
  162. data/lib/poke-api/POGOProtos/Networking/Responses/GetHatchedEggsResponse.rb +22 -0
  163. data/lib/poke-api/POGOProtos/Networking/Responses/GetIncensePokemonResponse.rb +31 -0
  164. data/lib/poke-api/POGOProtos/Networking/Responses/GetInventoryResponse.rb +20 -0
  165. data/lib/poke-api/POGOProtos/Networking/Responses/GetMapObjectsResponse.rb +21 -0
  166. data/lib/poke-api/POGOProtos/Networking/Responses/GetPlayerProfileResponse.rb +26 -0
  167. data/lib/poke-api/POGOProtos/Networking/Responses/GetPlayerResponse.rb +20 -0
  168. data/lib/poke-api/POGOProtos/Networking/Responses/GetSuggestedCodenamesResponse.rb +19 -0
  169. data/lib/poke-api/POGOProtos/Networking/Responses/IncenseEncounterResponse.rb +29 -0
  170. data/lib/poke-api/POGOProtos/Networking/Responses/LevelUpRewardsResponse.rb +28 -0
  171. data/lib/poke-api/POGOProtos/Networking/Responses/MarkTutorialCompleteResponse.rb +20 -0
  172. data/lib/poke-api/POGOProtos/Networking/Responses/NicknamePokemonResponse.rb +26 -0
  173. data/lib/poke-api/POGOProtos/Networking/Responses/PlayerUpdateResponse.rb +22 -0
  174. data/lib/poke-api/POGOProtos/Networking/Responses/RecycleInventoryItemResponse.rb +26 -0
  175. data/lib/poke-api/POGOProtos/Networking/Responses/ReleasePokemonResponse.rb +27 -0
  176. data/lib/poke-api/POGOProtos/Networking/Responses/SetAvatarResponse.rb +27 -0
  177. data/lib/poke-api/POGOProtos/Networking/Responses/SetContactSettingsResponse.rb +26 -0
  178. data/lib/poke-api/POGOProtos/Networking/Responses/SetFavoritePokemonResponse.rb +25 -0
  179. data/lib/poke-api/POGOProtos/Networking/Responses/SetPlayerTeamResponse.rb +27 -0
  180. data/lib/poke-api/POGOProtos/Networking/Responses/SfidaActionLogResponse.rb +25 -0
  181. data/lib/poke-api/POGOProtos/Networking/Responses/StartGymBattleResponse.rb +42 -0
  182. data/lib/poke-api/POGOProtos/Networking/Responses/UpgradePokemonResponse.rb +29 -0
  183. data/lib/poke-api/POGOProtos/Networking/Responses/UseIncenseResponse.rb +28 -0
  184. data/lib/poke-api/POGOProtos/Networking/Responses/UseItemCaptureResponse.rb +24 -0
  185. data/lib/poke-api/POGOProtos/Networking/Responses/UseItemEggIncubatorResponse.rb +31 -0
  186. data/lib/poke-api/POGOProtos/Networking/Responses/UseItemGymResponse.rb +26 -0
  187. data/lib/poke-api/POGOProtos/Networking/Responses/UseItemPotionResponse.rb +27 -0
  188. data/lib/poke-api/POGOProtos/Networking/Responses/UseItemReviveResponse.rb +27 -0
  189. data/lib/poke-api/POGOProtos/Networking/Responses/UseItemXpBoostResponse.rb +29 -0
  190. data/lib/poke-api/POGOProtos/Settings/DownloadSettingsAction.rb +16 -0
  191. data/lib/poke-api/POGOProtos/Settings/FortSettings.rb +21 -0
  192. data/lib/poke-api/POGOProtos/Settings/GlobalSettings.rb +24 -0
  193. data/lib/poke-api/POGOProtos/Settings/InventorySettings.rb +20 -0
  194. data/lib/poke-api/POGOProtos/Settings/LevelSettings.rb +17 -0
  195. data/lib/poke-api/POGOProtos/Settings/MapSettings.rb +22 -0
  196. data/lib/poke-api/POGOProtos/Settings/Master/BadgeSettings.rb +21 -0
  197. data/lib/poke-api/POGOProtos/Settings/Master/CameraSettings.rb +35 -0
  198. data/lib/poke-api/POGOProtos/Settings/Master/EncounterSettings.rb +22 -0
  199. data/lib/poke-api/POGOProtos/Settings/Master/EquippedBadgeSettings.rb +20 -0
  200. data/lib/poke-api/POGOProtos/Settings/Master/GymBattleSettings.rb +31 -0
  201. data/lib/poke-api/POGOProtos/Settings/Master/GymLevelSettings.rb +21 -0
  202. data/lib/poke-api/POGOProtos/Settings/Master/IapItemDisplay.rb +24 -0
  203. data/lib/poke-api/POGOProtos/Settings/Master/IapSettings.rb +24 -0
  204. data/lib/poke-api/POGOProtos/Settings/Master/Item/BattleAttributes.rb +20 -0
  205. data/lib/poke-api/POGOProtos/Settings/Master/Item/EggIncubatorAttributes.rb +23 -0
  206. data/lib/poke-api/POGOProtos/Settings/Master/Item/ExperienceBoostAttributes.rb +21 -0
  207. data/lib/poke-api/POGOProtos/Settings/Master/Item/FoodAttributes.rb +23 -0
  208. data/lib/poke-api/POGOProtos/Settings/Master/Item/FortModifierAttributes.rb +21 -0
  209. data/lib/poke-api/POGOProtos/Settings/Master/Item/IncenseAttributes.rb +27 -0
  210. data/lib/poke-api/POGOProtos/Settings/Master/Item/InventoryUpgradeAttributes.rb +22 -0
  211. data/lib/poke-api/POGOProtos/Settings/Master/Item/PokeballAttributes.rb +24 -0
  212. data/lib/poke-api/POGOProtos/Settings/Master/Item/PotionAttributes.rb +21 -0
  213. data/lib/poke-api/POGOProtos/Settings/Master/Item/ReviveAttributes.rb +20 -0
  214. data/lib/poke-api/POGOProtos/Settings/Master/ItemSettings.rb +45 -0
  215. data/lib/poke-api/POGOProtos/Settings/Master/MoveSequenceSettings.rb +18 -0
  216. data/lib/poke-api/POGOProtos/Settings/Master/MoveSettings.rb +34 -0
  217. data/lib/poke-api/POGOProtos/Settings/Master/PlayerLevelSettings.rb +22 -0
  218. data/lib/poke-api/POGOProtos/Settings/Master/Pokemon/CameraAttributes.rb +24 -0
  219. data/lib/poke-api/POGOProtos/Settings/Master/Pokemon/EncounterAttributes.rb +29 -0
  220. data/lib/poke-api/POGOProtos/Settings/Master/Pokemon/StatsAttributes.rb +23 -0
  221. data/lib/poke-api/POGOProtos/Settings/Master/PokemonSettings.rb +46 -0
  222. data/lib/poke-api/POGOProtos/Settings/Master/PokemonUpgradeSettings.rb +21 -0
  223. data/lib/poke-api/POGOProtos/Settings/Master/TypeEffectiveSettings.rb +20 -0
  224. data/lib/poke-api/POGOProtosSource/Data/AssetDigestEntry.proto +11 -0
  225. data/lib/poke-api/POGOProtosSource/Data/Battle/BattleAction.proto +22 -0
  226. data/lib/poke-api/POGOProtosSource/Data/Battle/BattleActionType.proto +16 -0
  227. data/lib/poke-api/POGOProtosSource/Data/Battle/BattleLog.proto +15 -0
  228. data/lib/poke-api/POGOProtosSource/Data/Battle/BattleParticipant.proto +12 -0
  229. data/lib/poke-api/POGOProtosSource/Data/Battle/BattlePokemonInfo.proto +10 -0
  230. data/lib/poke-api/POGOProtosSource/Data/Battle/BattleResults.proto +13 -0
  231. data/lib/poke-api/POGOProtosSource/Data/Battle/BattleState.proto +10 -0
  232. data/lib/poke-api/POGOProtosSource/Data/Battle/BattleType.proto +8 -0
  233. data/lib/poke-api/POGOProtosSource/Data/Capture/CaptureAward.proto +11 -0
  234. data/lib/poke-api/POGOProtosSource/Data/Capture/CaptureProbability.proto +10 -0
  235. data/lib/poke-api/POGOProtosSource/Data/DownloadUrlEntry.proto +9 -0
  236. data/lib/poke-api/POGOProtosSource/Data/Gym/GymMembership.proto +10 -0
  237. data/lib/poke-api/POGOProtosSource/Data/Gym/GymState.proto +10 -0
  238. data/lib/poke-api/POGOProtosSource/Data/Logs/ActionLogEntry.proto +15 -0
  239. data/lib/poke-api/POGOProtosSource/Data/Logs/CatchPokemonLogEntry.proto +17 -0
  240. data/lib/poke-api/POGOProtosSource/Data/Logs/FortSearchLogEntry.proto +16 -0
  241. data/lib/poke-api/POGOProtosSource/Data/Player/ContactSettings.proto +7 -0
  242. data/lib/poke-api/POGOProtosSource/Data/Player/Currency.proto +7 -0
  243. data/lib/poke-api/POGOProtosSource/Data/Player/DailyBonus.proto +7 -0
  244. data/lib/poke-api/POGOProtosSource/Data/Player/EquippedBadge.proto +10 -0
  245. data/lib/poke-api/POGOProtosSource/Data/Player/PlayerAvatar.proto +16 -0
  246. data/lib/poke-api/POGOProtosSource/Data/Player/PlayerCamera.proto +6 -0
  247. data/lib/poke-api/POGOProtosSource/Data/Player/PlayerCurrency.proto +6 -0
  248. data/lib/poke-api/POGOProtosSource/Data/Player/PlayerPublicProfile.proto +10 -0
  249. data/lib/poke-api/POGOProtosSource/Data/Player/PlayerStats.proto +28 -0
  250. data/lib/poke-api/POGOProtosSource/Data/PlayerBadge.proto +12 -0
  251. data/lib/poke-api/POGOProtosSource/Data/PlayerData.proto +24 -0
  252. data/lib/poke-api/POGOProtosSource/Data/PokedexEntry.proto +12 -0
  253. data/lib/poke-api/POGOProtosSource/Data/PokemonData.proto +39 -0
  254. data/lib/poke-api/POGOProtosSource/Enums/ActivityType.proto +29 -0
  255. data/lib/poke-api/POGOProtosSource/Enums/BadgeType.proto +43 -0
  256. data/lib/poke-api/POGOProtosSource/Enums/CameraInterpolation.proto +10 -0
  257. data/lib/poke-api/POGOProtosSource/Enums/CameraTarget.proto +19 -0
  258. data/lib/poke-api/POGOProtosSource/Enums/Gender.proto +7 -0
  259. data/lib/poke-api/POGOProtosSource/Enums/IapItemCategory.proto +10 -0
  260. data/lib/poke-api/POGOProtosSource/Enums/ItemCategory.proto +17 -0
  261. data/lib/poke-api/POGOProtosSource/Enums/ItemEffect.proto +20 -0
  262. data/lib/poke-api/POGOProtosSource/Enums/Platform.proto +10 -0
  263. data/lib/poke-api/POGOProtosSource/Enums/PokemonFamilyId.proto +86 -0
  264. data/lib/poke-api/POGOProtosSource/Enums/PokemonId.proto +157 -0
  265. data/lib/poke-api/POGOProtosSource/Enums/PokemonMove.proto +185 -0
  266. data/lib/poke-api/POGOProtosSource/Enums/PokemonMovementType.proto +12 -0
  267. data/lib/poke-api/POGOProtosSource/Enums/PokemonRarity.proto +8 -0
  268. data/lib/poke-api/POGOProtosSource/Enums/PokemonType.proto +24 -0
  269. data/lib/poke-api/POGOProtosSource/Enums/TeamColor.proto +9 -0
  270. data/lib/poke-api/POGOProtosSource/Enums/TutorialState.proto +15 -0
  271. data/lib/poke-api/POGOProtosSource/Inventory/AppliedItem.proto +12 -0
  272. data/lib/poke-api/POGOProtosSource/Inventory/AppliedItems.proto +8 -0
  273. data/lib/poke-api/POGOProtosSource/Inventory/EggIncubator.proto +15 -0
  274. data/lib/poke-api/POGOProtosSource/Inventory/EggIncubatorType.proto +7 -0
  275. data/lib/poke-api/POGOProtosSource/Inventory/EggIncubators.proto +8 -0
  276. data/lib/poke-api/POGOProtosSource/Inventory/InventoryDelta.proto +10 -0
  277. data/lib/poke-api/POGOProtosSource/Inventory/InventoryItem.proto +10 -0
  278. data/lib/poke-api/POGOProtosSource/Inventory/InventoryItemData.proto +26 -0
  279. data/lib/poke-api/POGOProtosSource/Inventory/InventoryUpgrade.proto +11 -0
  280. data/lib/poke-api/POGOProtosSource/Inventory/InventoryUpgradeType.proto +8 -0
  281. data/lib/poke-api/POGOProtosSource/Inventory/InventoryUpgrades.proto +8 -0
  282. data/lib/poke-api/POGOProtosSource/Inventory/Item/ItemAward.proto +9 -0
  283. data/lib/poke-api/POGOProtosSource/Inventory/Item/ItemData.proto +10 -0
  284. data/lib/poke-api/POGOProtosSource/Inventory/Item/ItemId.proto +35 -0
  285. data/lib/poke-api/POGOProtosSource/Inventory/Item/ItemType.proto +18 -0
  286. data/lib/poke-api/POGOProtosSource/Inventory/PokemonFamily.proto +9 -0
  287. data/lib/poke-api/POGOProtosSource/Map/Fort/FortData.proto +45 -0
  288. data/lib/poke-api/POGOProtosSource/Map/Fort/FortLureInfo.proto +11 -0
  289. data/lib/poke-api/POGOProtosSource/Map/Fort/FortModifier.proto +10 -0
  290. data/lib/poke-api/POGOProtosSource/Map/Fort/FortRenderingType.proto +7 -0
  291. data/lib/poke-api/POGOProtosSource/Map/Fort/FortSponsor.proto +8 -0
  292. data/lib/poke-api/POGOProtosSource/Map/Fort/FortSummary.proto +9 -0
  293. data/lib/poke-api/POGOProtosSource/Map/Fort/FortType.proto +7 -0
  294. data/lib/poke-api/POGOProtosSource/Map/MapCell.proto +29 -0
  295. data/lib/poke-api/POGOProtosSource/Map/MapObjectsStatus.proto +8 -0
  296. data/lib/poke-api/POGOProtosSource/Map/Pokemon/MapPokemon.proto +14 -0
  297. data/lib/poke-api/POGOProtosSource/Map/Pokemon/NearbyPokemon.proto +10 -0
  298. data/lib/poke-api/POGOProtosSource/Map/Pokemon/WildPokemon.proto +14 -0
  299. data/lib/poke-api/POGOProtosSource/Map/SpawnPoint.proto +7 -0
  300. data/lib/poke-api/POGOProtosSource/Networking/Envelopes/AuthTicket.proto +8 -0
  301. data/lib/poke-api/POGOProtosSource/Networking/Envelopes/RequestEnvelope.proto +31 -0
  302. data/lib/poke-api/POGOProtosSource/Networking/Envelopes/ResponseEnvelope.proto +23 -0
  303. data/lib/poke-api/POGOProtosSource/Networking/Envelopes/Unknown6.proto +11 -0
  304. data/lib/poke-api/POGOProtosSource/Networking/Envelopes/Unknown6Response.proto +11 -0
  305. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/AddFortModifierMessage.proto +11 -0
  306. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/AttackGymMessage.proto +13 -0
  307. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/CatchPokemonMessage.proto +14 -0
  308. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/CheckAwardedBadgesMessage.proto +6 -0
  309. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/CheckCodenameAvailableMessage.proto +6 -0
  310. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/ClaimCodenameMessage.proto +6 -0
  311. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/CollectDailyBonusMessage.proto +6 -0
  312. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/CollectDailyDefenderBonusMessage.proto +6 -0
  313. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/DiskEncounterMessage.proto +9 -0
  314. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/DownloadItemTemplatesMessage.proto +6 -0
  315. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/DownloadRemoteConfigVersionMessage.proto +12 -0
  316. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/DownloadSettingsMessage.proto +6 -0
  317. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/EchoMessage.proto +6 -0
  318. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/EncounterMessage.proto +9 -0
  319. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/EncounterTutorialCompleteMessage.proto +8 -0
  320. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/EquipBadgeMessage.proto +8 -0
  321. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/EvolvePokemonMessage.proto +6 -0
  322. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/FortDeployPokemonMessage.proto +9 -0
  323. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/FortDetailsMessage.proto +8 -0
  324. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/FortRecallPokemonMessage.proto +9 -0
  325. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/FortSearchMessage.proto +10 -0
  326. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetAssetDigestMessage.proto +12 -0
  327. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetDownloadUrlsMessage.proto +7 -0
  328. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetGymDetailsMessage.proto +10 -0
  329. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetHatchedEggsMessage.proto +6 -0
  330. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetIncensePokemonMessage.proto +7 -0
  331. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetInventoryMessage.proto +7 -0
  332. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetMapObjectsMessage.proto +9 -0
  333. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetPlayerMessage.proto +6 -0
  334. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetPlayerProfileMessage.proto +6 -0
  335. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetSuggestedCodenamesMessage.proto +6 -0
  336. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/IncenseEncounterMessage.proto +7 -0
  337. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/LevelUpRewardsMessage.proto +6 -0
  338. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/MarkTutorialCompleteMessage.proto +10 -0
  339. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/NicknamePokemonMessage.proto +7 -0
  340. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/PlayerUpdateMessage.proto +7 -0
  341. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/README.txt +1 -0
  342. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/RecycleInventoryItemMessage.proto +9 -0
  343. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/ReleasePokemonMessage.proto +6 -0
  344. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/SetAvatarMessage.proto +8 -0
  345. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/SetContactSettingsMessage.proto +8 -0
  346. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/SetFavoritePokemonMessage.proto +7 -0
  347. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/SetPlayerTeamMessage.proto +8 -0
  348. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/SfidaActionLogMessage.proto +6 -0
  349. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/StartGymBattleMessage.proto +10 -0
  350. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UpgradePokemonMessage.proto +6 -0
  351. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UseIncenseMessage.proto +8 -0
  352. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UseItemCaptureMessage.proto +10 -0
  353. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UseItemEggIncubatorMessage.proto +7 -0
  354. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UseItemGymMessage.proto +11 -0
  355. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UseItemPotionMessage.proto +9 -0
  356. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UseItemReviveMessage.proto +9 -0
  357. data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UseItemXpBoostMessage.proto +8 -0
  358. data/lib/poke-api/POGOProtosSource/Networking/Requests/Request.proto +9 -0
  359. data/lib/poke-api/POGOProtosSource/Networking/Requests/RequestType.proto +79 -0
  360. data/lib/poke-api/POGOProtosSource/Networking/Responses/AddFortModifierResponse.proto +6 -0
  361. data/lib/poke-api/POGOProtosSource/Networking/Responses/AttackGymResponse.proto +20 -0
  362. data/lib/poke-api/POGOProtosSource/Networking/Responses/CatchPokemonResponse.proto +19 -0
  363. data/lib/poke-api/POGOProtosSource/Networking/Responses/CheckAwardedBadgesResponse.proto +10 -0
  364. data/lib/poke-api/POGOProtosSource/Networking/Responses/CheckCodenameAvailableResponse.proto +19 -0
  365. data/lib/poke-api/POGOProtosSource/Networking/Responses/ClaimCodenameResponse.proto +19 -0
  366. data/lib/poke-api/POGOProtosSource/Networking/Responses/CollectDailyBonusResponse.proto +13 -0
  367. data/lib/poke-api/POGOProtosSource/Networking/Responses/CollectDailyDefenderBonusResponse.proto +17 -0
  368. data/lib/poke-api/POGOProtosSource/Networking/Responses/DiskEncounterResponse.proto +20 -0
  369. data/lib/poke-api/POGOProtosSource/Networking/Responses/DownloadItemTemplatesResponse.proto +45 -0
  370. data/lib/poke-api/POGOProtosSource/Networking/Responses/DownloadRemoteConfigVersionResponse.proto +13 -0
  371. data/lib/poke-api/POGOProtosSource/Networking/Responses/DownloadSettingsResponse.proto +10 -0
  372. data/lib/poke-api/POGOProtosSource/Networking/Responses/EchoResponse.proto +6 -0
  373. data/lib/poke-api/POGOProtosSource/Networking/Responses/EncounterResponse.proto +28 -0
  374. data/lib/poke-api/POGOProtosSource/Networking/Responses/EncounterTutorialCompleteResponse.proto +17 -0
  375. data/lib/poke-api/POGOProtosSource/Networking/Responses/EquipBadgeResponse.proto +16 -0
  376. data/lib/poke-api/POGOProtosSource/Networking/Responses/EvolvePokemonResponse.proto +20 -0
  377. data/lib/poke-api/POGOProtosSource/Networking/Responses/FortDeployPokemonResponse.proto +25 -0
  378. data/lib/poke-api/POGOProtosSource/Networking/Responses/FortDetailsResponse.proto +23 -0
  379. data/lib/poke-api/POGOProtosSource/Networking/Responses/FortRecallPokemonResponse.proto +17 -0
  380. data/lib/poke-api/POGOProtosSource/Networking/Responses/FortSearchResponse.proto +23 -0
  381. data/lib/poke-api/POGOProtosSource/Networking/Responses/GetAssetDigestResponse.proto +9 -0
  382. data/lib/poke-api/POGOProtosSource/Networking/Responses/GetDownloadUrlsResponse.proto +9 -0
  383. data/lib/poke-api/POGOProtosSource/Networking/Responses/GetGymDetailsResponse.proto +18 -0
  384. data/lib/poke-api/POGOProtosSource/Networking/Responses/GetHatchedEggsResponse.proto +10 -0
  385. data/lib/poke-api/POGOProtosSource/Networking/Responses/GetIncensePokemonResponse.proto +20 -0
  386. data/lib/poke-api/POGOProtosSource/Networking/Responses/GetInventoryResponse.proto +9 -0
  387. data/lib/poke-api/POGOProtosSource/Networking/Responses/GetMapObjectsResponse.proto +10 -0
  388. data/lib/poke-api/POGOProtosSource/Networking/Responses/GetPlayerProfileResponse.proto +15 -0
  389. data/lib/poke-api/POGOProtosSource/Networking/Responses/GetPlayerResponse.proto +9 -0
  390. data/lib/poke-api/POGOProtosSource/Networking/Responses/GetSuggestedCodenamesResponse.proto +7 -0
  391. data/lib/poke-api/POGOProtosSource/Networking/Responses/IncenseEncounterResponse.proto +18 -0
  392. data/lib/poke-api/POGOProtosSource/Networking/Responses/LevelUpRewardsResponse.proto +17 -0
  393. data/lib/poke-api/POGOProtosSource/Networking/Responses/MarkTutorialCompleteResponse.proto +9 -0
  394. data/lib/poke-api/POGOProtosSource/Networking/Responses/NicknamePokemonResponse.proto +14 -0
  395. data/lib/poke-api/POGOProtosSource/Networking/Responses/PlayerUpdateResponse.proto +11 -0
  396. data/lib/poke-api/POGOProtosSource/Networking/Responses/README.txt +1 -0
  397. data/lib/poke-api/POGOProtosSource/Networking/Responses/RecycleInventoryItemResponse.proto +14 -0
  398. data/lib/poke-api/POGOProtosSource/Networking/Responses/ReleasePokemonResponse.proto +15 -0
  399. data/lib/poke-api/POGOProtosSource/Networking/Responses/SetAvatarResponse.proto +16 -0
  400. data/lib/poke-api/POGOProtosSource/Networking/Responses/SetContactSettingsResponse.proto +15 -0
  401. data/lib/poke-api/POGOProtosSource/Networking/Responses/SetFavoritePokemonResponse.proto +13 -0
  402. data/lib/poke-api/POGOProtosSource/Networking/Responses/SetPlayerTeamResponse.proto +16 -0
  403. data/lib/poke-api/POGOProtosSource/Networking/Responses/SfidaActionLogResponse.proto +14 -0
  404. data/lib/poke-api/POGOProtosSource/Networking/Responses/StartGymBattleResponse.proto +31 -0
  405. data/lib/poke-api/POGOProtosSource/Networking/Responses/UpgradePokemonResponse.proto +18 -0
  406. data/lib/poke-api/POGOProtosSource/Networking/Responses/UseIncenseResponse.proto +17 -0
  407. data/lib/poke-api/POGOProtosSource/Networking/Responses/UseItemCaptureResponse.proto +12 -0
  408. data/lib/poke-api/POGOProtosSource/Networking/Responses/UseItemEggIncubatorResponse.proto +20 -0
  409. data/lib/poke-api/POGOProtosSource/Networking/Responses/UseItemGymResponse.proto +14 -0
  410. data/lib/poke-api/POGOProtosSource/Networking/Responses/UseItemPotionResponse.proto +15 -0
  411. data/lib/poke-api/POGOProtosSource/Networking/Responses/UseItemReviveResponse.proto +15 -0
  412. data/lib/poke-api/POGOProtosSource/Networking/Responses/UseItemXpBoostResponse.proto +18 -0
  413. data/lib/poke-api/POGOProtosSource/Networking/Responses/base.proto.txt +2 -0
  414. data/lib/poke-api/POGOProtosSource/Settings/DownloadSettingsAction.proto +6 -0
  415. data/lib/poke-api/POGOProtosSource/Settings/FortSettings.proto +11 -0
  416. data/lib/poke-api/POGOProtosSource/Settings/GlobalSettings.proto +15 -0
  417. data/lib/poke-api/POGOProtosSource/Settings/InventorySettings.proto +10 -0
  418. data/lib/poke-api/POGOProtosSource/Settings/LevelSettings.proto +7 -0
  419. data/lib/poke-api/POGOProtosSource/Settings/MapSettings.proto +12 -0
  420. data/lib/poke-api/POGOProtosSource/Settings/Master/BadgeSettings.proto +10 -0
  421. data/lib/poke-api/POGOProtosSource/Settings/Master/CameraSettings.proto +24 -0
  422. data/lib/poke-api/POGOProtosSource/Settings/Master/EncounterSettings.proto +10 -0
  423. data/lib/poke-api/POGOProtosSource/Settings/Master/EquippedBadgeSettings.proto +8 -0
  424. data/lib/poke-api/POGOProtosSource/Settings/Master/GymBattleSettings.proto +19 -0
  425. data/lib/poke-api/POGOProtosSource/Settings/Master/GymLevelSettings.proto +9 -0
  426. data/lib/poke-api/POGOProtosSource/Settings/Master/IapItemDisplay.proto +13 -0
  427. data/lib/poke-api/POGOProtosSource/Settings/Master/IapSettings.proto +12 -0
  428. data/lib/poke-api/POGOProtosSource/Settings/Master/Item/BattleAttributes.proto +6 -0
  429. data/lib/poke-api/POGOProtosSource/Settings/Master/Item/EggIncubatorAttributes.proto +10 -0
  430. data/lib/poke-api/POGOProtosSource/Settings/Master/Item/ExperienceBoostAttributes.proto +7 -0
  431. data/lib/poke-api/POGOProtosSource/Settings/Master/Item/FoodAttributes.proto +10 -0
  432. data/lib/poke-api/POGOProtosSource/Settings/Master/Item/FortModifierAttributes.proto +7 -0
  433. data/lib/poke-api/POGOProtosSource/Settings/Master/Item/IncenseAttributes.proto +14 -0
  434. data/lib/poke-api/POGOProtosSource/Settings/Master/Item/InventoryUpgradeAttributes.proto +9 -0
  435. data/lib/poke-api/POGOProtosSource/Settings/Master/Item/PokeballAttributes.proto +11 -0
  436. data/lib/poke-api/POGOProtosSource/Settings/Master/Item/PotionAttributes.proto +7 -0
  437. data/lib/poke-api/POGOProtosSource/Settings/Master/Item/ReviveAttributes.proto +6 -0
  438. data/lib/poke-api/POGOProtosSource/Settings/Master/ItemSettings.proto +38 -0
  439. data/lib/poke-api/POGOProtosSource/Settings/Master/MoveSequenceSettings.proto +6 -0
  440. data/lib/poke-api/POGOProtosSource/Settings/Master/MoveSettings.proto +23 -0
  441. data/lib/poke-api/POGOProtosSource/Settings/Master/PlayerLevelSettings.proto +10 -0
  442. data/lib/poke-api/POGOProtosSource/Settings/Master/Pokemon/CameraAttributes.proto +10 -0
  443. data/lib/poke-api/POGOProtosSource/Settings/Master/Pokemon/EncounterAttributes.proto +16 -0
  444. data/lib/poke-api/POGOProtosSource/Settings/Master/Pokemon/StatsAttributes.proto +9 -0
  445. data/lib/poke-api/POGOProtosSource/Settings/Master/PokemonSettings.proto +35 -0
  446. data/lib/poke-api/POGOProtosSource/Settings/Master/PokemonUpgradeSettings.proto +9 -0
  447. data/lib/poke-api/POGOProtosSource/Settings/Master/TypeEffectiveSettings.proto +9 -0
  448. data/lib/poke-api/auth/google.rb +51 -0
  449. data/lib/poke-api/auth/ptc.rb +69 -0
  450. data/lib/poke-api/client.rb +83 -0
  451. data/lib/poke-api/errors.rb +41 -0
  452. data/lib/poke-api/helpers.rb +17 -0
  453. data/lib/poke-api/logging.rb +33 -0
  454. data/lib/poke-api/request_builder.rb +98 -0
  455. data/lib/poke-api/response.rb +74 -0
  456. data/lib/poke-api/version.rb +5 -0
  457. metadata +554 -0
@@ -0,0 +1,9 @@
1
+ syntax = "proto3";
2
+ package POGOProtos.Settings.Master.Pokemon;
3
+
4
+ message StatsAttributes {
5
+ int32 base_stamina = 1;
6
+ int32 base_attack = 2;
7
+ int32 base_defense = 3;
8
+ int32 dodge_energy_delta = 8;
9
+ }
@@ -0,0 +1,35 @@
1
+ syntax = "proto3";
2
+ package POGOProtos.Settings.Master;
3
+
4
+ import "POGOProtos/Enums/PokemonId.proto";
5
+ import "POGOProtos/Enums/PokemonRarity.proto";
6
+ import "POGOProtos/Enums/PokemonType.proto";
7
+ import "POGOProtos/Enums/PokemonMove.proto";
8
+ import "POGOProtos/Enums/PokemonFamilyId.proto";
9
+ import "POGOProtos/Settings/Master/Pokemon/StatsAttributes.proto";
10
+ import "POGOProtos/Settings/Master/Pokemon/CameraAttributes.proto";
11
+ import "POGOProtos/Settings/Master/Pokemon/EncounterAttributes.proto";
12
+
13
+ message PokemonSettings {
14
+ .POGOProtos.Enums.PokemonId pokemon_id = 1;
15
+ float model_scale = 3;
16
+ .POGOProtos.Enums.PokemonType type = 4;
17
+ .POGOProtos.Enums.PokemonType type_2 = 5;
18
+ .POGOProtos.Settings.Master.Pokemon.CameraAttributes camera = 6;
19
+ .POGOProtos.Settings.Master.Pokemon.EncounterAttributes encounter = 7;
20
+ .POGOProtos.Settings.Master.Pokemon.StatsAttributes stats = 8;
21
+ repeated .POGOProtos.Enums.PokemonMove quick_moves = 9;
22
+ repeated .POGOProtos.Enums.PokemonMove cinematic_moves = 10;
23
+ repeated float animation_time = 11;
24
+ repeated .POGOProtos.Enums.PokemonId evolution_ids = 12;
25
+ int32 evolution_pips = 13;
26
+ .POGOProtos.Enums.PokemonRarity rarity = 14;
27
+ float pokedex_height_m = 15;
28
+ float pokedex_weight_kg = 16;
29
+ .POGOProtos.Enums.PokemonId parent_pokemon_id = 17;
30
+ float height_std_dev = 18;
31
+ float weight_std_dev = 19;
32
+ float km_distance_to_hatch = 20;
33
+ .POGOProtos.Enums.PokemonFamilyId family_id = 21;
34
+ int32 candy_to_evolve = 22;
35
+ }
@@ -0,0 +1,9 @@
1
+ syntax = "proto3";
2
+ package POGOProtos.Settings.Master;
3
+
4
+ message PokemonUpgradeSettings {
5
+ int32 upgrades_per_level = 1;
6
+ int32 allowed_levels_above_player = 2;
7
+ repeated int32 candy_cost = 3;
8
+ repeated int32 stardust_cost = 4;
9
+ }
@@ -0,0 +1,9 @@
1
+ syntax = "proto3";
2
+ package POGOProtos.Settings.Master;
3
+
4
+ import "POGOProtos/Enums/PokemonType.proto";
5
+
6
+ message TypeEffectiveSettings {
7
+ repeated float attack_scalar = 1;
8
+ .POGOProtos.Enums.PokemonType attack_type = 2;
9
+ }
@@ -0,0 +1,51 @@
1
+ require 'gpsoauth'
2
+
3
+ module Poke
4
+ module API
5
+ module Auth
6
+ class GOOGLE
7
+ include Logging
8
+ attr_reader :access_token, :provider
9
+
10
+ GOOGLE_LOGIN_ANDROID_ID = '9774d56d682e549c'
11
+ GOOGLE_LOGIN_SERVICE = 'audience:server:client_id:848232511240-7so421jotr' \
12
+ '2609rmqakceuu1luuq0ptb.apps.googleusercontent.com'
13
+ GOOGLE_LOGIN_APP = 'com.nianticlabs.pokemongo'
14
+ GOOGLE_LOGIN_CLIENT_SIG = '321187995bc7cdc2b5fc91b11a96e2baa8602c62'
15
+
16
+ def initialize(username, password)
17
+ @username = username
18
+ @password = password
19
+ @provider = 'google'
20
+ end
21
+
22
+ def connect
23
+ logger.debug '[>] Fetching Google access token'
24
+
25
+ token_request = perform_request('Token') do
26
+ Gpsoauth::Auth.performMasterLogin(@username, @password, GOOGLE_LOGIN_ANDROID_ID)
27
+ end
28
+
29
+ auth_request = perform_request('Auth') do
30
+ Gpsoauth::Auth.performOAuth(@username, token_request['Token'], GOOGLE_LOGIN_ANDROID_ID,
31
+ GOOGLE_LOGIN_SERVICE, GOOGLE_LOGIN_APP, GOOGLE_LOGIN_CLIENT_SIG)
32
+ end
33
+
34
+ @access_token = auth_request['Auth']
35
+ end
36
+
37
+ private
38
+
39
+ def perform_request(method)
40
+ response = yield
41
+
42
+ unless response['Token'] || response['Auth']
43
+ raise Errors::GoogleAuthenticationFailure.new(method, response)
44
+ end
45
+
46
+ response
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,69 @@
1
+ require 'json'
2
+ require 'httpclient'
3
+
4
+ module Poke
5
+ module API
6
+ module Auth
7
+ class PTC
8
+ include Logging
9
+ attr_reader :access_token, :provider
10
+
11
+ PTC_LOGIN_URL = 'https://sso.pokemon.com/sso/login?service=https%3A%2F%2Fsso.pokemon.com' \
12
+ '%2Fsso%2Foauth2.0%2FcallbackAuthorize'
13
+ PTC_LOGIN_OAUTH = 'https://sso.pokemon.com/sso/oauth2.0/accessToken'
14
+ PTC_LOGIN_CLIENT_SECRET = 'w8ScCUXJQc6kXKw8FiOhd8Fixzht18Dq3PEVkUCP5ZPxtgyWsbTvWHFLm2wNY0JR'
15
+
16
+ def initialize(username, password)
17
+ @username = username
18
+ @password = password
19
+ @provider = 'ptc'
20
+ @client = HTTPClient.new(agent_name: 'PokeAPI/0.0.1')
21
+ end
22
+
23
+ def connect
24
+ resp = @client.get_content(PTC_LOGIN_URL)
25
+ parsed_resp = JSON.parse(resp)
26
+
27
+ data = {
28
+ username: @username,
29
+ password: @password,
30
+ _eventId: 'submit',
31
+ lt: parsed_resp['lt'],
32
+ execution: parsed_resp['execution']
33
+ }
34
+
35
+ fetch_ticket(data)
36
+ end
37
+
38
+ private
39
+
40
+ def fetch_ticket(data)
41
+ logger.debug '[>] Fetching PTC ticket'
42
+
43
+ ticket = begin
44
+ @client.post_content(PTC_LOGIN_URL, data)
45
+ rescue StandardError => ex
46
+ ex.res.http_header.request_uri.to_s.match(/ticket=(.*)/)[1]
47
+ end
48
+
49
+ fetch_access_token(ticket)
50
+ end
51
+
52
+ def fetch_access_token(ticket)
53
+ logger.debug '[>] Fetching PTC access token'
54
+
55
+ data = {
56
+ client_id: 'mobile-app_pokemon-go',
57
+ redirect_uri: 'https://www.nianticlabs.com/pokemongo/error',
58
+ client_secret: PTC_LOGIN_CLIENT_SECRET,
59
+ grant_type: 'refresh_token',
60
+ code: ticket
61
+ }
62
+
63
+ @access_token = @client.post(PTC_LOGIN_OAUTH, data).body
64
+ .match(/access_token=(.*)&expires/)[1]
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,83 @@
1
+ module Poke
2
+ module API
3
+ class Client
4
+ include Logging
5
+ attr_accessor :lat, :lng, :alt
6
+
7
+ def initialize
8
+ @auth = nil
9
+ @endpoint = 'https://pgorelease.nianticlabs.com/plfe/rpc'
10
+ @reqs = []
11
+ @lat = 0
12
+ @lng = 0
13
+ @alt = 0
14
+ end
15
+
16
+ def login(username, password, provider)
17
+ raise Errors::InvalidProvider.new(provider) unless ['PTC', 'GOOGLE'].include?(provider.upcase!)
18
+ logger.info "[+] Logging in user: #{username}"
19
+
20
+ begin
21
+ @auth = Auth.const_get(provider).new(username, password)
22
+ @auth.connect
23
+ rescue StandardError => ex
24
+ raise Errors::LoginFailure.new(provider, ex)
25
+ end
26
+
27
+ logger.info "[+] Login with #{provider} Successful"
28
+ fetch_endpoint
29
+ end
30
+
31
+ def call
32
+ raise Errors::LoginRequired.new unless @auth
33
+ req = RequestBuilder.new(@auth, [@lat, @lng, @alt], @endpoint)
34
+
35
+ begin
36
+ resp = req.request(@reqs)
37
+ rescue StandardError => ex
38
+ raise Errors::UnknownProtoFault.new(ex)
39
+ ensure
40
+ @reqs = []
41
+ logger.info '[+] Cleaning up RPC requests'
42
+ end
43
+
44
+ resp
45
+ end
46
+
47
+ def store_location(loc)
48
+ pos = Poke::API::Helpers.get_position(loc).first
49
+ logger.info "[+] Given location: #{pos.address}"
50
+
51
+ logger.info "[+] Lat/Long: #{pos.latitude}, #{pos.longitude}"
52
+ @lat, @lng = pos.latitude, pos.longitude
53
+ end
54
+
55
+ def inspect
56
+ "#<#{self.class.name} @auth=#{@auth} @reqs=#{@reqs} " \
57
+ "@lat=#{@lat} @lng=#{@lng} @alt=#{@alt}>"
58
+ end
59
+
60
+ private
61
+
62
+ def fetch_endpoint
63
+ get_player
64
+ get_hatched_eggs
65
+ get_inventory
66
+ check_awarded_badges
67
+ download_settings(hash: '4a2e9bc330dae60e7b74fc85b98868ab4700802e')
68
+
69
+ @endpoint = "https://#{call.response[:api_url]}/rpc"
70
+ logger.debug "[+] Setting endpoint to #{@endpoint}"
71
+ end
72
+
73
+ def method_missing(method, *args)
74
+ begin
75
+ POGOProtos::Networking::Requests::RequestType.const_get(method.upcase)
76
+ @reqs << (args.empty? ? method.to_sym.upcase : { method.to_sym.upcase => args.first })
77
+ rescue NameError
78
+ super
79
+ end
80
+ end
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,41 @@
1
+ module Poke
2
+ module API
3
+ class Errors
4
+ class InvalidProvider < StandardError
5
+ def initialize(provider)
6
+ super("Invalid provider #{provider}.")
7
+ end
8
+ end
9
+
10
+ class LoginRequired < StandardError
11
+ def initialize
12
+ super('Not logged in currently, please login.')
13
+ end
14
+ end
15
+
16
+ class InvalidRequestEntry < StandardError
17
+ def initialize(subreq)
18
+ super("Subrequest entry #{subreq} is invalid.")
19
+ end
20
+ end
21
+
22
+ class UnknownProtoFault < StandardError
23
+ def initialize(error)
24
+ super("An unknown proto fault has occured => [#{error} @ #{error.backtrace.first}]")
25
+ end
26
+ end
27
+
28
+ class GoogleAuthenticationFailure < StandardError
29
+ def initialize(token, response)
30
+ super("Unable to login to Google, could not find => #{token} in #{response}")
31
+ end
32
+ end
33
+
34
+ class LoginFailure < StandardError
35
+ def initialize(provider, error)
36
+ super("Unable to login to #{provider} => [#{error} @ #{error.backtrace.first}]")
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,17 @@
1
+ require 'geocoder'
2
+
3
+ module Poke
4
+ module API
5
+ class Helpers
6
+ class << self
7
+ def get_position(pos)
8
+ Geocoder.search(pos)
9
+ end
10
+
11
+ def camel_case_lower(sym)
12
+ sym.to_s.split('_').collect(&:capitalize).join
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,33 @@
1
+ require 'logger'
2
+ require 'time'
3
+
4
+ module Poke
5
+ module API
6
+ module Logging
7
+ @@loggers = {}
8
+ @@log_level = :INFO
9
+ @@formatter = proc do |severity, datetime, progname, msg|
10
+ sev_color = ['INFO', 'DEBUG', 'ANY'].include?(severity) ? "\e[32m" : "\e[31m"
11
+
12
+ "[\e[36m%s\e[0m]: #{sev_color}%-5s\e[0m > \e[33m%-25s\e[0m --: %s\n" \
13
+ % [datetime.iso8601, severity, progname, msg]
14
+ end
15
+
16
+ def logger
17
+ @@loggers[self.class.name] ||= Logger.new(STDOUT).tap do |logger|
18
+ logger.progname = self.class.name
19
+ logger.level = Logger.const_get(@@log_level)
20
+ logger.formatter = @@formatter
21
+ end
22
+ end
23
+
24
+ def self.log_level=(level)
25
+ @@log_level = level
26
+ end
27
+
28
+ def self.formatter=(formatter)
29
+ @@formatter = formatter
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,98 @@
1
+ module Poke
2
+ module API
3
+ class RequestBuilder
4
+ include Logging
5
+
6
+ def initialize(auth, pos, endpoint)
7
+ @access_token = auth.access_token
8
+ @provider = auth.provider
9
+ @endpoint = endpoint
10
+ @position = pos
11
+ @client = HTTPClient.new(agent_name: 'PokeAPI/0.0.1')
12
+ end
13
+
14
+ def request(reqs)
15
+ logger.debug '[+] Creating new request'
16
+ request_proto = build_main_request(reqs)
17
+
18
+ logger.info '[+] Executing RPC request'
19
+ resp = execute_rpc_request(request_proto)
20
+
21
+ resp = Response.new(resp.body, reqs)
22
+ resp.decode_response
23
+
24
+ resp
25
+ end
26
+
27
+ private
28
+
29
+ def build_main_request(sub_reqs)
30
+ request_envelope = POGOProtos::Networking::Envelopes::RequestEnvelope
31
+ req = request_envelope.new(
32
+ status_code: 2,
33
+ request_id: 814_580_613_288_820_746_0,
34
+ unknown12: 989
35
+ )
36
+ req.latitude, req.longitude, req.altitude = @position
37
+
38
+ token = request_envelope::AuthInfo::JWT.new(contents: @access_token, unknown2: 59)
39
+ req.auth_info = request_envelope::AuthInfo.new(provider: @provider, token: token)
40
+
41
+ build_sub_request(req, sub_reqs)
42
+
43
+ logger.debug "[+] Generated RPC protobuf request \r\n#{req.inspect}"
44
+ req.to_proto
45
+ end
46
+
47
+ def build_sub_request(req, sub_reqs)
48
+ sub_reqs.each do |sub_req|
49
+ if sub_req.is_a?(Symbol)
50
+ append_int_request(req, sub_req)
51
+ elsif sub_req.is_a?(Hash)
52
+ append_hash_request(req, sub_req)
53
+ else
54
+ raise Errors::InvalidRequestEntry.new(sub_req)
55
+ end
56
+ end
57
+ end
58
+
59
+ def append_int_request(req, sub_req)
60
+ entry_id = fetch_request_id(sub_req)
61
+ int_req = POGOProtos::Networking::Requests::Request.new(request_type: entry_id)
62
+
63
+ req.requests << int_req
64
+ logger.info "[+] Adding '#{int_req.request_type}' to RPC request"
65
+ end
66
+
67
+ def append_hash_request(req, sub_req)
68
+ entry_name = sub_req.keys.first
69
+ entry_id = fetch_request_id(entry_name)
70
+
71
+ logger.info "[+] Adding '#{entry_name}' to RPC request with arguments"
72
+ proto_class = fetch_proto_request_class(sub_req, entry_name)
73
+
74
+ req.requests << POGOProtos::Networking::Requests::Request.new(
75
+ request_type: entry_id,
76
+ request_message: proto_class.to_proto
77
+ )
78
+ end
79
+
80
+ def fetch_request_id(name)
81
+ POGOProtos::Networking::Requests::RequestType.const_get(name)
82
+ end
83
+
84
+ def fetch_proto_request_class(sub_req, entry_name)
85
+ entry_content = sub_req[entry_name]
86
+ proto_name = Poke::API::Helpers.camel_case_lower(entry_name) + 'Message'
87
+ logger.debug "[+] #{entry_name}: #{entry_content}"
88
+
89
+ require "poke-api/POGOProtos/Networking/Requests/Messages/#{proto_name}"
90
+ POGOProtos::Networking::Requests::Messages.const_get(proto_name).new(entry_content)
91
+ end
92
+
93
+ def execute_rpc_request(request)
94
+ @client.post(@endpoint, request)
95
+ end
96
+ end
97
+ end
98
+ end