poke-go-api 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/poke-api.rb +14 -0
- data/lib/poke-api/POGOProtos/Data/AssetDigestEntry.rb +21 -0
- data/lib/poke-api/POGOProtos/Data/Battle/BattleAction.rb +33 -0
- data/lib/poke-api/POGOProtos/Data/Battle/BattleActionType.rb +28 -0
- data/lib/poke-api/POGOProtos/Data/Battle/BattleLog.rb +26 -0
- data/lib/poke-api/POGOProtos/Data/Battle/BattleParticipant.rb +23 -0
- data/lib/poke-api/POGOProtos/Data/Battle/BattlePokemonInfo.rb +21 -0
- data/lib/poke-api/POGOProtos/Data/Battle/BattleResults.rb +24 -0
- data/lib/poke-api/POGOProtos/Data/Battle/BattleState.rb +22 -0
- data/lib/poke-api/POGOProtos/Data/Battle/BattleType.rb +20 -0
- data/lib/poke-api/POGOProtos/Data/Capture/CaptureAward.rb +22 -0
- data/lib/poke-api/POGOProtos/Data/Capture/CaptureProbability.rb +21 -0
- data/lib/poke-api/POGOProtos/Data/DownloadUrlEntry.rb +19 -0
- data/lib/poke-api/POGOProtos/Data/Gym/GymMembership.rb +21 -0
- data/lib/poke-api/POGOProtos/Data/Gym/GymState.rb +21 -0
- data/lib/poke-api/POGOProtos/Data/Logs/ActionLogEntry.rb +25 -0
- data/lib/poke-api/POGOProtos/Data/Logs/CatchPokemonLogEntry.rb +28 -0
- data/lib/poke-api/POGOProtos/Data/Logs/FortSearchLogEntry.rb +27 -0
- data/lib/poke-api/POGOProtos/Data/Player/ContactSettings.rb +19 -0
- data/lib/poke-api/POGOProtos/Data/Player/Currency.rb +19 -0
- data/lib/poke-api/POGOProtos/Data/Player/DailyBonus.rb +19 -0
- data/lib/poke-api/POGOProtos/Data/Player/EquippedBadge.rb +21 -0
- data/lib/poke-api/POGOProtos/Data/Player/PlayerAvatar.rb +27 -0
- data/lib/poke-api/POGOProtos/Data/Player/PlayerCamera.rb +18 -0
- data/lib/poke-api/POGOProtos/Data/Player/PlayerCurrency.rb +18 -0
- data/lib/poke-api/POGOProtos/Data/Player/PlayerPublicProfile.rb +21 -0
- data/lib/poke-api/POGOProtos/Data/Player/PlayerStats.rb +40 -0
- data/lib/poke-api/POGOProtos/Data/PlayerBadge.rb +21 -0
- data/lib/poke-api/POGOProtos/Data/PlayerData.rb +33 -0
- data/lib/poke-api/POGOProtos/Data/PokedexEntry.rb +21 -0
- data/lib/poke-api/POGOProtos/Data/PokemonData.rb +48 -0
- data/lib/poke-api/POGOProtos/Enums/ActivityType.rb +39 -0
- data/lib/poke-api/POGOProtos/Enums/BadgeType.rb +53 -0
- data/lib/poke-api/POGOProtos/Enums/CameraInterpolation.rb +20 -0
- data/lib/poke-api/POGOProtos/Enums/CameraTarget.rb +29 -0
- data/lib/poke-api/POGOProtos/Enums/Gender.rb +17 -0
- data/lib/poke-api/POGOProtos/Enums/IapItemCategory.rb +20 -0
- data/lib/poke-api/POGOProtos/Enums/ItemCategory.rb +27 -0
- data/lib/poke-api/POGOProtos/Enums/ItemEffect.rb +30 -0
- data/lib/poke-api/POGOProtos/Enums/Platform.rb +20 -0
- data/lib/poke-api/POGOProtos/Enums/PokemonFamilyId.rb +96 -0
- data/lib/poke-api/POGOProtos/Enums/PokemonId.rb +167 -0
- data/lib/poke-api/POGOProtos/Enums/PokemonMove.rb +195 -0
- data/lib/poke-api/POGOProtos/Enums/PokemonMovementType.rb +22 -0
- data/lib/poke-api/POGOProtos/Enums/PokemonRarity.rb +18 -0
- data/lib/poke-api/POGOProtos/Enums/PokemonType.rb +34 -0
- data/lib/poke-api/POGOProtos/Enums/TeamColor.rb +19 -0
- data/lib/poke-api/POGOProtos/Enums/TutorialState.rb +25 -0
- data/lib/poke-api/POGOProtos/Inventory/AppliedItem.rb +21 -0
- data/lib/poke-api/POGOProtos/Inventory/AppliedItems.rb +17 -0
- data/lib/poke-api/POGOProtos/Inventory/EggIncubator.rb +24 -0
- data/lib/poke-api/POGOProtos/Inventory/EggIncubatorType.rb +17 -0
- data/lib/poke-api/POGOProtos/Inventory/EggIncubators.rb +17 -0
- data/lib/poke-api/POGOProtos/Inventory/InventoryDelta.rb +19 -0
- data/lib/poke-api/POGOProtos/Inventory/InventoryItem.rb +19 -0
- data/lib/poke-api/POGOProtos/Inventory/InventoryItemData.rb +35 -0
- data/lib/poke-api/POGOProtos/Inventory/InventoryUpgrade.rb +20 -0
- data/lib/poke-api/POGOProtos/Inventory/InventoryUpgradeType.rb +18 -0
- data/lib/poke-api/POGOProtos/Inventory/InventoryUpgrades.rb +17 -0
- data/lib/poke-api/POGOProtos/Inventory/Item/ItemAward.rb +20 -0
- data/lib/poke-api/POGOProtos/Inventory/Item/ItemData.rb +21 -0
- data/lib/poke-api/POGOProtos/Inventory/Item/ItemId.rb +47 -0
- data/lib/poke-api/POGOProtos/Inventory/Item/ItemType.rb +30 -0
- data/lib/poke-api/POGOProtos/Inventory/PokemonFamily.rb +18 -0
- data/lib/poke-api/POGOProtos/Map/Fort/FortData.rb +39 -0
- data/lib/poke-api/POGOProtos/Map/Fort/FortLureInfo.rb +22 -0
- data/lib/poke-api/POGOProtos/Map/Fort/FortModifier.rb +21 -0
- data/lib/poke-api/POGOProtos/Map/Fort/FortRenderingType.rb +19 -0
- data/lib/poke-api/POGOProtos/Map/Fort/FortSponsor.rb +20 -0
- data/lib/poke-api/POGOProtos/Map/Fort/FortSummary.rb +21 -0
- data/lib/poke-api/POGOProtos/Map/Fort/FortType.rb +19 -0
- data/lib/poke-api/POGOProtos/Map/MapCell.rb +32 -0
- data/lib/poke-api/POGOProtos/Map/MapObjectsStatus.rb +18 -0
- data/lib/poke-api/POGOProtos/Map/Pokemon/MapPokemon.rb +24 -0
- data/lib/poke-api/POGOProtos/Map/Pokemon/NearbyPokemon.rb +21 -0
- data/lib/poke-api/POGOProtos/Map/Pokemon/WildPokemon.rb +25 -0
- data/lib/poke-api/POGOProtos/Map/SpawnPoint.rb +17 -0
- data/lib/poke-api/POGOProtos/Networking/Envelopes/AuthTicket.rb +20 -0
- data/lib/poke-api/POGOProtos/Networking/Envelopes/RequestEnvelope.rb +40 -0
- data/lib/poke-api/POGOProtos/Networking/Envelopes/ResponseEnvelope.rb +32 -0
- data/lib/poke-api/POGOProtos/Networking/Envelopes/Unknown6.rb +23 -0
- data/lib/poke-api/POGOProtos/Networking/Envelopes/Unknown6Response.rb +23 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/AddFortModifierMessage.rb +24 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/AttackGymMessage.rb +26 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/CatchPokemonMessage.rb +27 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/CheckAwardedBadgesMessage.rb +19 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/CheckCodenameAvailableMessage.rb +20 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/ClaimCodenameMessage.rb +20 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/CollectDailyBonusMessage.rb +19 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/CollectDailyDefenderBonusMessage.rb +19 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/DiskEncounterMessage.rb +23 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/DownloadItemTemplatesMessage.rb +19 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/DownloadRemoteConfigVersionMessage.rb +25 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/DownloadSettingsMessage.rb +20 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/EchoMessage.rb +19 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/EncounterMessage.rb +23 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/EncounterTutorialCompleteMessage.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/EquipBadgeMessage.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/EvolvePokemonMessage.rb +20 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/FortDeployPokemonMessage.rb +23 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/FortDetailsMessage.rb +22 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/FortRecallPokemonMessage.rb +23 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/FortSearchMessage.rb +24 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetAssetDigestMessage.rb +25 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetDownloadUrlsMessage.rb +20 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetGymDetailsMessage.rb +24 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetHatchedEggsMessage.rb +19 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetIncensePokemonMessage.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetInventoryMessage.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetMapObjectsMessage.rb +23 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetPlayerMessage.rb +19 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetPlayerProfileMessage.rb +20 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/GetSuggestedCodenamesMessage.rb +19 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/IncenseEncounterMessage.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/LevelUpRewardsMessage.rb +20 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/MarkTutorialCompleteMessage.rb +23 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/NicknamePokemonMessage.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/PlayerUpdateMessage.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/RecycleInventoryItemMessage.rb +22 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/ReleasePokemonMessage.rb +20 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/SetAvatarMessage.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/SetContactSettingsMessage.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/SetFavoritePokemonMessage.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/SetPlayerTeamMessage.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/SfidaActionLogMessage.rb +19 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/StartGymBattleMessage.rb +24 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UpgradePokemonMessage.rb +20 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UseIncenseMessage.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UseItemCaptureMessage.rb +23 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UseItemEggIncubatorMessage.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UseItemGymMessage.rb +24 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UseItemPotionMessage.rb +22 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UseItemReviveMessage.rb +22 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Messages/UseItemXpBoostMessage.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/Request.rb +20 -0
- data/lib/poke-api/POGOProtos/Networking/Requests/RequestType.rb +88 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/AddFortModifierResponse.rb +17 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/AttackGymResponse.rb +31 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/CatchPokemonResponse.rb +30 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/CheckAwardedBadgesResponse.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/CheckCodenameAvailableResponse.rb +30 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/ClaimCodenameResponse.rb +30 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/CollectDailyBonusResponse.rb +25 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/CollectDailyDefenderBonusResponse.rb +29 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/DiskEncounterResponse.rb +31 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/DownloadItemTemplatesResponse.rb +54 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/DownloadRemoteConfigVersionResponse.rb +25 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/DownloadSettingsResponse.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/EchoResponse.rb +18 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/EncounterResponse.rb +39 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/EncounterTutorialCompleteResponse.rb +28 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/EquipBadgeResponse.rb +27 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/EvolvePokemonResponse.rb +31 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/FortDeployPokemonResponse.rb +36 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/FortDetailsResponse.rb +34 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/FortRecallPokemonResponse.rb +28 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/FortSearchResponse.rb +34 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/GetAssetDigestResponse.rb +20 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/GetDownloadUrlsResponse.rb +19 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/GetGymDetailsResponse.rb +29 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/GetHatchedEggsResponse.rb +22 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/GetIncensePokemonResponse.rb +31 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/GetInventoryResponse.rb +20 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/GetMapObjectsResponse.rb +21 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/GetPlayerProfileResponse.rb +26 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/GetPlayerResponse.rb +20 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/GetSuggestedCodenamesResponse.rb +19 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/IncenseEncounterResponse.rb +29 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/LevelUpRewardsResponse.rb +28 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/MarkTutorialCompleteResponse.rb +20 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/NicknamePokemonResponse.rb +26 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/PlayerUpdateResponse.rb +22 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/RecycleInventoryItemResponse.rb +26 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/ReleasePokemonResponse.rb +27 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/SetAvatarResponse.rb +27 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/SetContactSettingsResponse.rb +26 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/SetFavoritePokemonResponse.rb +25 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/SetPlayerTeamResponse.rb +27 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/SfidaActionLogResponse.rb +25 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/StartGymBattleResponse.rb +42 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/UpgradePokemonResponse.rb +29 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/UseIncenseResponse.rb +28 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/UseItemCaptureResponse.rb +24 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/UseItemEggIncubatorResponse.rb +31 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/UseItemGymResponse.rb +26 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/UseItemPotionResponse.rb +27 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/UseItemReviveResponse.rb +27 -0
- data/lib/poke-api/POGOProtos/Networking/Responses/UseItemXpBoostResponse.rb +29 -0
- data/lib/poke-api/POGOProtos/Settings/DownloadSettingsAction.rb +16 -0
- data/lib/poke-api/POGOProtos/Settings/FortSettings.rb +21 -0
- data/lib/poke-api/POGOProtos/Settings/GlobalSettings.rb +24 -0
- data/lib/poke-api/POGOProtos/Settings/InventorySettings.rb +20 -0
- data/lib/poke-api/POGOProtos/Settings/LevelSettings.rb +17 -0
- data/lib/poke-api/POGOProtos/Settings/MapSettings.rb +22 -0
- data/lib/poke-api/POGOProtos/Settings/Master/BadgeSettings.rb +21 -0
- data/lib/poke-api/POGOProtos/Settings/Master/CameraSettings.rb +35 -0
- data/lib/poke-api/POGOProtos/Settings/Master/EncounterSettings.rb +22 -0
- data/lib/poke-api/POGOProtos/Settings/Master/EquippedBadgeSettings.rb +20 -0
- data/lib/poke-api/POGOProtos/Settings/Master/GymBattleSettings.rb +31 -0
- data/lib/poke-api/POGOProtos/Settings/Master/GymLevelSettings.rb +21 -0
- data/lib/poke-api/POGOProtos/Settings/Master/IapItemDisplay.rb +24 -0
- data/lib/poke-api/POGOProtos/Settings/Master/IapSettings.rb +24 -0
- data/lib/poke-api/POGOProtos/Settings/Master/Item/BattleAttributes.rb +20 -0
- data/lib/poke-api/POGOProtos/Settings/Master/Item/EggIncubatorAttributes.rb +23 -0
- data/lib/poke-api/POGOProtos/Settings/Master/Item/ExperienceBoostAttributes.rb +21 -0
- data/lib/poke-api/POGOProtos/Settings/Master/Item/FoodAttributes.rb +23 -0
- data/lib/poke-api/POGOProtos/Settings/Master/Item/FortModifierAttributes.rb +21 -0
- data/lib/poke-api/POGOProtos/Settings/Master/Item/IncenseAttributes.rb +27 -0
- data/lib/poke-api/POGOProtos/Settings/Master/Item/InventoryUpgradeAttributes.rb +22 -0
- data/lib/poke-api/POGOProtos/Settings/Master/Item/PokeballAttributes.rb +24 -0
- data/lib/poke-api/POGOProtos/Settings/Master/Item/PotionAttributes.rb +21 -0
- data/lib/poke-api/POGOProtos/Settings/Master/Item/ReviveAttributes.rb +20 -0
- data/lib/poke-api/POGOProtos/Settings/Master/ItemSettings.rb +45 -0
- data/lib/poke-api/POGOProtos/Settings/Master/MoveSequenceSettings.rb +18 -0
- data/lib/poke-api/POGOProtos/Settings/Master/MoveSettings.rb +34 -0
- data/lib/poke-api/POGOProtos/Settings/Master/PlayerLevelSettings.rb +22 -0
- data/lib/poke-api/POGOProtos/Settings/Master/Pokemon/CameraAttributes.rb +24 -0
- data/lib/poke-api/POGOProtos/Settings/Master/Pokemon/EncounterAttributes.rb +29 -0
- data/lib/poke-api/POGOProtos/Settings/Master/Pokemon/StatsAttributes.rb +23 -0
- data/lib/poke-api/POGOProtos/Settings/Master/PokemonSettings.rb +46 -0
- data/lib/poke-api/POGOProtos/Settings/Master/PokemonUpgradeSettings.rb +21 -0
- data/lib/poke-api/POGOProtos/Settings/Master/TypeEffectiveSettings.rb +20 -0
- data/lib/poke-api/POGOProtosSource/Data/AssetDigestEntry.proto +11 -0
- data/lib/poke-api/POGOProtosSource/Data/Battle/BattleAction.proto +22 -0
- data/lib/poke-api/POGOProtosSource/Data/Battle/BattleActionType.proto +16 -0
- data/lib/poke-api/POGOProtosSource/Data/Battle/BattleLog.proto +15 -0
- data/lib/poke-api/POGOProtosSource/Data/Battle/BattleParticipant.proto +12 -0
- data/lib/poke-api/POGOProtosSource/Data/Battle/BattlePokemonInfo.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Data/Battle/BattleResults.proto +13 -0
- data/lib/poke-api/POGOProtosSource/Data/Battle/BattleState.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Data/Battle/BattleType.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Data/Capture/CaptureAward.proto +11 -0
- data/lib/poke-api/POGOProtosSource/Data/Capture/CaptureProbability.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Data/DownloadUrlEntry.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Data/Gym/GymMembership.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Data/Gym/GymState.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Data/Logs/ActionLogEntry.proto +15 -0
- data/lib/poke-api/POGOProtosSource/Data/Logs/CatchPokemonLogEntry.proto +17 -0
- data/lib/poke-api/POGOProtosSource/Data/Logs/FortSearchLogEntry.proto +16 -0
- data/lib/poke-api/POGOProtosSource/Data/Player/ContactSettings.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Data/Player/Currency.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Data/Player/DailyBonus.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Data/Player/EquippedBadge.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Data/Player/PlayerAvatar.proto +16 -0
- data/lib/poke-api/POGOProtosSource/Data/Player/PlayerCamera.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Data/Player/PlayerCurrency.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Data/Player/PlayerPublicProfile.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Data/Player/PlayerStats.proto +28 -0
- data/lib/poke-api/POGOProtosSource/Data/PlayerBadge.proto +12 -0
- data/lib/poke-api/POGOProtosSource/Data/PlayerData.proto +24 -0
- data/lib/poke-api/POGOProtosSource/Data/PokedexEntry.proto +12 -0
- data/lib/poke-api/POGOProtosSource/Data/PokemonData.proto +39 -0
- data/lib/poke-api/POGOProtosSource/Enums/ActivityType.proto +29 -0
- data/lib/poke-api/POGOProtosSource/Enums/BadgeType.proto +43 -0
- data/lib/poke-api/POGOProtosSource/Enums/CameraInterpolation.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Enums/CameraTarget.proto +19 -0
- data/lib/poke-api/POGOProtosSource/Enums/Gender.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Enums/IapItemCategory.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Enums/ItemCategory.proto +17 -0
- data/lib/poke-api/POGOProtosSource/Enums/ItemEffect.proto +20 -0
- data/lib/poke-api/POGOProtosSource/Enums/Platform.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Enums/PokemonFamilyId.proto +86 -0
- data/lib/poke-api/POGOProtosSource/Enums/PokemonId.proto +157 -0
- data/lib/poke-api/POGOProtosSource/Enums/PokemonMove.proto +185 -0
- data/lib/poke-api/POGOProtosSource/Enums/PokemonMovementType.proto +12 -0
- data/lib/poke-api/POGOProtosSource/Enums/PokemonRarity.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Enums/PokemonType.proto +24 -0
- data/lib/poke-api/POGOProtosSource/Enums/TeamColor.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Enums/TutorialState.proto +15 -0
- data/lib/poke-api/POGOProtosSource/Inventory/AppliedItem.proto +12 -0
- data/lib/poke-api/POGOProtosSource/Inventory/AppliedItems.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Inventory/EggIncubator.proto +15 -0
- data/lib/poke-api/POGOProtosSource/Inventory/EggIncubatorType.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Inventory/EggIncubators.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Inventory/InventoryDelta.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Inventory/InventoryItem.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Inventory/InventoryItemData.proto +26 -0
- data/lib/poke-api/POGOProtosSource/Inventory/InventoryUpgrade.proto +11 -0
- data/lib/poke-api/POGOProtosSource/Inventory/InventoryUpgradeType.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Inventory/InventoryUpgrades.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Inventory/Item/ItemAward.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Inventory/Item/ItemData.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Inventory/Item/ItemId.proto +35 -0
- data/lib/poke-api/POGOProtosSource/Inventory/Item/ItemType.proto +18 -0
- data/lib/poke-api/POGOProtosSource/Inventory/PokemonFamily.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Map/Fort/FortData.proto +45 -0
- data/lib/poke-api/POGOProtosSource/Map/Fort/FortLureInfo.proto +11 -0
- data/lib/poke-api/POGOProtosSource/Map/Fort/FortModifier.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Map/Fort/FortRenderingType.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Map/Fort/FortSponsor.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Map/Fort/FortSummary.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Map/Fort/FortType.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Map/MapCell.proto +29 -0
- data/lib/poke-api/POGOProtosSource/Map/MapObjectsStatus.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Map/Pokemon/MapPokemon.proto +14 -0
- data/lib/poke-api/POGOProtosSource/Map/Pokemon/NearbyPokemon.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Map/Pokemon/WildPokemon.proto +14 -0
- data/lib/poke-api/POGOProtosSource/Map/SpawnPoint.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Networking/Envelopes/AuthTicket.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Networking/Envelopes/RequestEnvelope.proto +31 -0
- data/lib/poke-api/POGOProtosSource/Networking/Envelopes/ResponseEnvelope.proto +23 -0
- data/lib/poke-api/POGOProtosSource/Networking/Envelopes/Unknown6.proto +11 -0
- data/lib/poke-api/POGOProtosSource/Networking/Envelopes/Unknown6Response.proto +11 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/AddFortModifierMessage.proto +11 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/AttackGymMessage.proto +13 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/CatchPokemonMessage.proto +14 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/CheckAwardedBadgesMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/CheckCodenameAvailableMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/ClaimCodenameMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/CollectDailyBonusMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/CollectDailyDefenderBonusMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/DiskEncounterMessage.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/DownloadItemTemplatesMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/DownloadRemoteConfigVersionMessage.proto +12 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/DownloadSettingsMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/EchoMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/EncounterMessage.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/EncounterTutorialCompleteMessage.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/EquipBadgeMessage.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/EvolvePokemonMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/FortDeployPokemonMessage.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/FortDetailsMessage.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/FortRecallPokemonMessage.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/FortSearchMessage.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetAssetDigestMessage.proto +12 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetDownloadUrlsMessage.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetGymDetailsMessage.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetHatchedEggsMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetIncensePokemonMessage.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetInventoryMessage.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetMapObjectsMessage.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetPlayerMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetPlayerProfileMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/GetSuggestedCodenamesMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/IncenseEncounterMessage.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/LevelUpRewardsMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/MarkTutorialCompleteMessage.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/NicknamePokemonMessage.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/PlayerUpdateMessage.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/README.txt +1 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/RecycleInventoryItemMessage.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/ReleasePokemonMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/SetAvatarMessage.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/SetContactSettingsMessage.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/SetFavoritePokemonMessage.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/SetPlayerTeamMessage.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/SfidaActionLogMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/StartGymBattleMessage.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UpgradePokemonMessage.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UseIncenseMessage.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UseItemCaptureMessage.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UseItemEggIncubatorMessage.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UseItemGymMessage.proto +11 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UseItemPotionMessage.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UseItemReviveMessage.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Messages/UseItemXpBoostMessage.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/Request.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Networking/Requests/RequestType.proto +79 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/AddFortModifierResponse.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/AttackGymResponse.proto +20 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/CatchPokemonResponse.proto +19 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/CheckAwardedBadgesResponse.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/CheckCodenameAvailableResponse.proto +19 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/ClaimCodenameResponse.proto +19 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/CollectDailyBonusResponse.proto +13 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/CollectDailyDefenderBonusResponse.proto +17 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/DiskEncounterResponse.proto +20 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/DownloadItemTemplatesResponse.proto +45 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/DownloadRemoteConfigVersionResponse.proto +13 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/DownloadSettingsResponse.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/EchoResponse.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/EncounterResponse.proto +28 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/EncounterTutorialCompleteResponse.proto +17 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/EquipBadgeResponse.proto +16 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/EvolvePokemonResponse.proto +20 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/FortDeployPokemonResponse.proto +25 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/FortDetailsResponse.proto +23 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/FortRecallPokemonResponse.proto +17 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/FortSearchResponse.proto +23 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/GetAssetDigestResponse.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/GetDownloadUrlsResponse.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/GetGymDetailsResponse.proto +18 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/GetHatchedEggsResponse.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/GetIncensePokemonResponse.proto +20 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/GetInventoryResponse.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/GetMapObjectsResponse.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/GetPlayerProfileResponse.proto +15 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/GetPlayerResponse.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/GetSuggestedCodenamesResponse.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/IncenseEncounterResponse.proto +18 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/LevelUpRewardsResponse.proto +17 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/MarkTutorialCompleteResponse.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/NicknamePokemonResponse.proto +14 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/PlayerUpdateResponse.proto +11 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/README.txt +1 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/RecycleInventoryItemResponse.proto +14 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/ReleasePokemonResponse.proto +15 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/SetAvatarResponse.proto +16 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/SetContactSettingsResponse.proto +15 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/SetFavoritePokemonResponse.proto +13 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/SetPlayerTeamResponse.proto +16 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/SfidaActionLogResponse.proto +14 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/StartGymBattleResponse.proto +31 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/UpgradePokemonResponse.proto +18 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/UseIncenseResponse.proto +17 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/UseItemCaptureResponse.proto +12 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/UseItemEggIncubatorResponse.proto +20 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/UseItemGymResponse.proto +14 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/UseItemPotionResponse.proto +15 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/UseItemReviveResponse.proto +15 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/UseItemXpBoostResponse.proto +18 -0
- data/lib/poke-api/POGOProtosSource/Networking/Responses/base.proto.txt +2 -0
- data/lib/poke-api/POGOProtosSource/Settings/DownloadSettingsAction.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Settings/FortSettings.proto +11 -0
- data/lib/poke-api/POGOProtosSource/Settings/GlobalSettings.proto +15 -0
- data/lib/poke-api/POGOProtosSource/Settings/InventorySettings.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Settings/LevelSettings.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Settings/MapSettings.proto +12 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/BadgeSettings.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/CameraSettings.proto +24 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/EncounterSettings.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/EquippedBadgeSettings.proto +8 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/GymBattleSettings.proto +19 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/GymLevelSettings.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/IapItemDisplay.proto +13 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/IapSettings.proto +12 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/Item/BattleAttributes.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/Item/EggIncubatorAttributes.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/Item/ExperienceBoostAttributes.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/Item/FoodAttributes.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/Item/FortModifierAttributes.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/Item/IncenseAttributes.proto +14 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/Item/InventoryUpgradeAttributes.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/Item/PokeballAttributes.proto +11 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/Item/PotionAttributes.proto +7 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/Item/ReviveAttributes.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/ItemSettings.proto +38 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/MoveSequenceSettings.proto +6 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/MoveSettings.proto +23 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/PlayerLevelSettings.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/Pokemon/CameraAttributes.proto +10 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/Pokemon/EncounterAttributes.proto +16 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/Pokemon/StatsAttributes.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/PokemonSettings.proto +35 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/PokemonUpgradeSettings.proto +9 -0
- data/lib/poke-api/POGOProtosSource/Settings/Master/TypeEffectiveSettings.proto +9 -0
- data/lib/poke-api/auth/google.rb +51 -0
- data/lib/poke-api/auth/ptc.rb +69 -0
- data/lib/poke-api/client.rb +83 -0
- data/lib/poke-api/errors.rb +41 -0
- data/lib/poke-api/helpers.rb +17 -0
- data/lib/poke-api/logging.rb +33 -0
- data/lib/poke-api/request_builder.rb +98 -0
- data/lib/poke-api/response.rb +74 -0
- data/lib/poke-api/version.rb +5 -0
- metadata +554 -0
@@ -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,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
|