phoebe 0.1.0.pre.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.ignore +2 -0
- data/CHANGELOG.md +52 -0
- data/README.md +235 -0
- data/SECURITY.md +27 -0
- data/lib/phoebe/client.rb +80 -0
- data/lib/phoebe/errors.rb +228 -0
- data/lib/phoebe/file_part.rb +58 -0
- data/lib/phoebe/internal/transport/base_client.rb +573 -0
- data/lib/phoebe/internal/transport/pooled_net_requester.rb +208 -0
- data/lib/phoebe/internal/type/array_of.rb +168 -0
- data/lib/phoebe/internal/type/base_model.rb +531 -0
- data/lib/phoebe/internal/type/base_page.rb +55 -0
- data/lib/phoebe/internal/type/boolean.rb +77 -0
- data/lib/phoebe/internal/type/converter.rb +327 -0
- data/lib/phoebe/internal/type/enum.rb +131 -0
- data/lib/phoebe/internal/type/file_input.rb +111 -0
- data/lib/phoebe/internal/type/hash_of.rb +188 -0
- data/lib/phoebe/internal/type/request_parameters.rb +42 -0
- data/lib/phoebe/internal/type/union.rb +237 -0
- data/lib/phoebe/internal/type/unknown.rb +81 -0
- data/lib/phoebe/internal/util.rb +915 -0
- data/lib/phoebe/internal.rb +20 -0
- data/lib/phoebe/models/data/observation.rb +107 -0
- data/lib/phoebe/models/data/observations/geo/recent/notable_list_params.rb +95 -0
- data/lib/phoebe/models/data/observations/geo/recent/notable_list_response.rb +16 -0
- data/lib/phoebe/models/data/observations/geo/recent/specie_list_params.rb +84 -0
- data/lib/phoebe/models/data/observations/geo/recent/specie_list_response.rb +16 -0
- data/lib/phoebe/models/data/observations/geo/recent_list_params.rb +126 -0
- data/lib/phoebe/models/data/observations/geo/recent_list_response.rb +14 -0
- data/lib/phoebe/models/data/observations/nearest/geo_specie_list_params.rb +82 -0
- data/lib/phoebe/models/data/observations/nearest/geo_specie_list_response.rb +14 -0
- data/lib/phoebe/models/data/observations/recent/historic_list_params.rb +144 -0
- data/lib/phoebe/models/data/observations/recent/historic_list_response.rb +14 -0
- data/lib/phoebe/models/data/observations/recent/notable_list_params.rb +79 -0
- data/lib/phoebe/models/data/observations/recent/notable_list_response.rb +14 -0
- data/lib/phoebe/models/data/observations/recent/specie_retrieve_params.rb +75 -0
- data/lib/phoebe/models/data/observations/recent/specie_retrieve_response.rb +14 -0
- data/lib/phoebe/models/data/observations/recent_list_params.rb +91 -0
- data/lib/phoebe/models/data/observations/recent_list_response.rb +12 -0
- data/lib/phoebe/models/product/checklist_view_params.rb +16 -0
- data/lib/phoebe/models/product/checklist_view_response.rb +291 -0
- data/lib/phoebe/models/product/list_retrieve_params.rb +24 -0
- data/lib/phoebe/models/product/list_retrieve_response.rb +295 -0
- data/lib/phoebe/models/product/lists/historical_retrieve_params.rb +66 -0
- data/lib/phoebe/models/product/lists/historical_retrieve_response.rb +297 -0
- data/lib/phoebe/models/product/species_list_list_params.rb +16 -0
- data/lib/phoebe/models/product/species_list_list_response.rb +10 -0
- data/lib/phoebe/models/product/stat_retrieve_params.rb +34 -0
- data/lib/phoebe/models/product/stat_retrieve_response.rb +30 -0
- data/lib/phoebe/models/product/top100_retrieve_params.rb +64 -0
- data/lib/phoebe/models/product/top100_retrieve_response.rb +51 -0
- data/lib/phoebe/models/ref/hotspot/geo_retrieve_params.rb +67 -0
- data/lib/phoebe/models/ref/hotspot/geo_retrieve_response.rb +71 -0
- data/lib/phoebe/models/ref/hotspot/info_retrieve_params.rb +18 -0
- data/lib/phoebe/models/ref/hotspot/info_retrieve_response.rb +92 -0
- data/lib/phoebe/models/ref/hotspot_list_params.rb +43 -0
- data/lib/phoebe/models/ref/hotspot_list_response.rb +69 -0
- data/lib/phoebe/models/ref/region/adjacent_list_params.rb +18 -0
- data/lib/phoebe/models/ref/region/adjacent_list_response.rb +29 -0
- data/lib/phoebe/models/ref/region/info_retrieve_params.rb +49 -0
- data/lib/phoebe/models/ref/region/info_retrieve_response.rb +55 -0
- data/lib/phoebe/models/ref/region/list_list_params.rb +44 -0
- data/lib/phoebe/models/ref/region/list_list_response.rb +29 -0
- data/lib/phoebe/models/ref/taxonomy/ebird_retrieve_params.rb +69 -0
- data/lib/phoebe/models/ref/taxonomy/ebird_retrieve_response.rb +89 -0
- data/lib/phoebe/models/ref/taxonomy/form_list_params.rb +18 -0
- data/lib/phoebe/models/ref/taxonomy/form_list_response.rb +12 -0
- data/lib/phoebe/models/ref/taxonomy/locale_list_params.rb +24 -0
- data/lib/phoebe/models/ref/taxonomy/locale_list_response.rb +35 -0
- data/lib/phoebe/models/ref/taxonomy/species_group_list_params.rb +41 -0
- data/lib/phoebe/models/ref/taxonomy/species_group_list_response.rb +37 -0
- data/lib/phoebe/models/ref/taxonomy/version_list_params.rb +18 -0
- data/lib/phoebe/models/ref/taxonomy/version_list_response.rb +29 -0
- data/lib/phoebe/models.rb +47 -0
- data/lib/phoebe/request_options.rb +77 -0
- data/lib/phoebe/resources/data/observations/geo/recent/notable.rb +62 -0
- data/lib/phoebe/resources/data/observations/geo/recent/species.rb +78 -0
- data/lib/phoebe/resources/data/observations/geo/recent.rb +75 -0
- data/lib/phoebe/resources/data/observations/geo.rb +22 -0
- data/lib/phoebe/resources/data/observations/nearest/geo_species.rb +64 -0
- data/lib/phoebe/resources/data/observations/nearest.rb +22 -0
- data/lib/phoebe/resources/data/observations/recent/historic.rb +84 -0
- data/lib/phoebe/resources/data/observations/recent/notable.rb +57 -0
- data/lib/phoebe/resources/data/observations/recent/species.rb +74 -0
- data/lib/phoebe/resources/data/observations/recent.rb +72 -0
- data/lib/phoebe/resources/data/observations.rb +28 -0
- data/lib/phoebe/resources/data.rb +18 -0
- data/lib/phoebe/resources/product/checklist.rb +38 -0
- data/lib/phoebe/resources/product/lists/historical.rb +66 -0
- data/lib/phoebe/resources/product/lists.rb +44 -0
- data/lib/phoebe/resources/product/species_list.rb +42 -0
- data/lib/phoebe/resources/product/stats.rb +58 -0
- data/lib/phoebe/resources/product/top100.rb +79 -0
- data/lib/phoebe/resources/product.rb +34 -0
- data/lib/phoebe/resources/ref/hotspot/geo.rb +49 -0
- data/lib/phoebe/resources/ref/hotspot/info.rb +40 -0
- data/lib/phoebe/resources/ref/hotspot.rb +50 -0
- data/lib/phoebe/resources/ref/region/adjacent.rb +40 -0
- data/lib/phoebe/resources/ref/region/info.rb +58 -0
- data/lib/phoebe/resources/ref/region/list.rb +51 -0
- data/lib/phoebe/resources/ref/region.rb +28 -0
- data/lib/phoebe/resources/ref/taxonomy/ebird.rb +51 -0
- data/lib/phoebe/resources/ref/taxonomy/forms.rb +39 -0
- data/lib/phoebe/resources/ref/taxonomy/locales.rb +44 -0
- data/lib/phoebe/resources/ref/taxonomy/species_groups.rb +47 -0
- data/lib/phoebe/resources/ref/taxonomy/versions.rb +37 -0
- data/lib/phoebe/resources/ref/taxonomy.rb +36 -0
- data/lib/phoebe/resources/ref.rb +26 -0
- data/lib/phoebe/version.rb +5 -0
- data/lib/phoebe.rb +139 -0
- data/manifest.yaml +17 -0
- data/rbi/phoebe/client.rbi +55 -0
- data/rbi/phoebe/errors.rbi +205 -0
- data/rbi/phoebe/file_part.rbi +37 -0
- data/rbi/phoebe/internal/transport/base_client.rbi +297 -0
- data/rbi/phoebe/internal/transport/pooled_net_requester.rbi +82 -0
- data/rbi/phoebe/internal/type/array_of.rbi +104 -0
- data/rbi/phoebe/internal/type/base_model.rbi +299 -0
- data/rbi/phoebe/internal/type/base_page.rbi +42 -0
- data/rbi/phoebe/internal/type/boolean.rbi +58 -0
- data/rbi/phoebe/internal/type/converter.rbi +204 -0
- data/rbi/phoebe/internal/type/enum.rbi +82 -0
- data/rbi/phoebe/internal/type/file_input.rbi +59 -0
- data/rbi/phoebe/internal/type/hash_of.rbi +104 -0
- data/rbi/phoebe/internal/type/request_parameters.rbi +29 -0
- data/rbi/phoebe/internal/type/union.rbi +126 -0
- data/rbi/phoebe/internal/type/unknown.rbi +58 -0
- data/rbi/phoebe/internal/util.rbi +484 -0
- data/rbi/phoebe/internal.rbi +16 -0
- data/rbi/phoebe/models/data/observation.rbi +175 -0
- data/rbi/phoebe/models/data/observations/geo/recent/notable_list_params.rbi +172 -0
- data/rbi/phoebe/models/data/observations/geo/recent/notable_list_response.rbi +19 -0
- data/rbi/phoebe/models/data/observations/geo/recent/specie_list_params.rbi +124 -0
- data/rbi/phoebe/models/data/observations/geo/recent/specie_list_response.rbi +19 -0
- data/rbi/phoebe/models/data/observations/geo/recent_list_params.rbi +270 -0
- data/rbi/phoebe/models/data/observations/geo/recent_list_response.rbi +17 -0
- data/rbi/phoebe/models/data/observations/nearest/geo_specie_list_params.rbi +122 -0
- data/rbi/phoebe/models/data/observations/nearest/geo_specie_list_response.rbi +17 -0
- data/rbi/phoebe/models/data/observations/recent/historic_list_params.rbi +324 -0
- data/rbi/phoebe/models/data/observations/recent/historic_list_response.rbi +17 -0
- data/rbi/phoebe/models/data/observations/recent/notable_list_params.rbi +158 -0
- data/rbi/phoebe/models/data/observations/recent/notable_list_response.rbi +17 -0
- data/rbi/phoebe/models/data/observations/recent/specie_retrieve_params.rbi +116 -0
- data/rbi/phoebe/models/data/observations/recent/specie_retrieve_response.rbi +17 -0
- data/rbi/phoebe/models/data/observations/recent_list_params.rbi +192 -0
- data/rbi/phoebe/models/data/observations/recent_list_response.rbi +15 -0
- data/rbi/phoebe/models/product/checklist_view_params.rbi +32 -0
- data/rbi/phoebe/models/product/checklist_view_response.rbi +556 -0
- data/rbi/phoebe/models/product/list_retrieve_params.rbi +48 -0
- data/rbi/phoebe/models/product/list_retrieve_response.rbi +565 -0
- data/rbi/phoebe/models/product/lists/historical_retrieve_params.rbi +130 -0
- data/rbi/phoebe/models/product/lists/historical_retrieve_response.rbi +576 -0
- data/rbi/phoebe/models/product/species_list_list_params.rbi +32 -0
- data/rbi/phoebe/models/product/species_list_list_response.rbi +13 -0
- data/rbi/phoebe/models/product/stat_retrieve_params.rbi +53 -0
- data/rbi/phoebe/models/product/stat_retrieve_response.rbi +61 -0
- data/rbi/phoebe/models/product/top100_retrieve_params.rbi +122 -0
- data/rbi/phoebe/models/product/top100_retrieve_response.rbi +96 -0
- data/rbi/phoebe/models/ref/hotspot/geo_retrieve_params.rbi +127 -0
- data/rbi/phoebe/models/ref/hotspot/geo_retrieve_response.rbi +125 -0
- data/rbi/phoebe/models/ref/hotspot/info_retrieve_params.rbi +34 -0
- data/rbi/phoebe/models/ref/hotspot/info_retrieve_response.rbi +153 -0
- data/rbi/phoebe/models/ref/hotspot_list_params.rbi +81 -0
- data/rbi/phoebe/models/ref/hotspot_list_response.rbi +123 -0
- data/rbi/phoebe/models/ref/region/adjacent_list_params.rbi +34 -0
- data/rbi/phoebe/models/ref/region/adjacent_list_response.rbi +47 -0
- data/rbi/phoebe/models/ref/region/info_retrieve_params.rbi +132 -0
- data/rbi/phoebe/models/ref/region/info_retrieve_response.rbi +117 -0
- data/rbi/phoebe/models/ref/region/list_list_params.rbi +95 -0
- data/rbi/phoebe/models/ref/region/list_list_response.rbi +47 -0
- data/rbi/phoebe/models/ref/taxonomy/ebird_retrieve_params.rbi +139 -0
- data/rbi/phoebe/models/ref/taxonomy/ebird_retrieve_response.rbi +152 -0
- data/rbi/phoebe/models/ref/taxonomy/form_list_params.rbi +34 -0
- data/rbi/phoebe/models/ref/taxonomy/form_list_response.rbi +15 -0
- data/rbi/phoebe/models/ref/taxonomy/locale_list_params.rbi +48 -0
- data/rbi/phoebe/models/ref/taxonomy/locale_list_response.rbi +61 -0
- data/rbi/phoebe/models/ref/taxonomy/species_group_list_params.rbi +90 -0
- data/rbi/phoebe/models/ref/taxonomy/species_group_list_response.rbi +71 -0
- data/rbi/phoebe/models/ref/taxonomy/version_list_params.rbi +34 -0
- data/rbi/phoebe/models/ref/taxonomy/version_list_response.rbi +51 -0
- data/rbi/phoebe/models.rbi +9 -0
- data/rbi/phoebe/request_options.rbi +55 -0
- data/rbi/phoebe/resources/data/observations/geo/recent/notable.rbi +58 -0
- data/rbi/phoebe/resources/data/observations/geo/recent/species.rbi +70 -0
- data/rbi/phoebe/resources/data/observations/geo/recent.rbi +76 -0
- data/rbi/phoebe/resources/data/observations/geo.rbi +19 -0
- data/rbi/phoebe/resources/data/observations/nearest/geo_species.rbi +56 -0
- data/rbi/phoebe/resources/data/observations/nearest.rbi +21 -0
- data/rbi/phoebe/resources/data/observations/recent/historic.rbi +72 -0
- data/rbi/phoebe/resources/data/observations/recent/notable.rbi +54 -0
- data/rbi/phoebe/resources/data/observations/recent/species.rbi +63 -0
- data/rbi/phoebe/resources/data/observations/recent.rbi +68 -0
- data/rbi/phoebe/resources/data/observations.rbi +23 -0
- data/rbi/phoebe/resources/data.rbi +15 -0
- data/rbi/phoebe/resources/product/checklist.rbi +30 -0
- data/rbi/phoebe/resources/product/lists/historical.rbi +52 -0
- data/rbi/phoebe/resources/product/lists.rbi +34 -0
- data/rbi/phoebe/resources/product/species_list.rbi +32 -0
- data/rbi/phoebe/resources/product/stats.rbi +40 -0
- data/rbi/phoebe/resources/product/top100.rbi +63 -0
- data/rbi/phoebe/resources/product.rbi +27 -0
- data/rbi/phoebe/resources/ref/hotspot/geo.rbi +43 -0
- data/rbi/phoebe/resources/ref/hotspot/info.rbi +32 -0
- data/rbi/phoebe/resources/ref/hotspot.rbi +40 -0
- data/rbi/phoebe/resources/ref/region/adjacent.rbi +34 -0
- data/rbi/phoebe/resources/ref/region/info.rbi +51 -0
- data/rbi/phoebe/resources/ref/region/list.rbi +41 -0
- data/rbi/phoebe/resources/ref/region.rbi +23 -0
- data/rbi/phoebe/resources/ref/taxonomy/ebird.rbi +47 -0
- data/rbi/phoebe/resources/ref/taxonomy/forms.rbi +31 -0
- data/rbi/phoebe/resources/ref/taxonomy/locales.rbi +33 -0
- data/rbi/phoebe/resources/ref/taxonomy/species_groups.rbi +41 -0
- data/rbi/phoebe/resources/ref/taxonomy/versions.rbi +26 -0
- data/rbi/phoebe/resources/ref/taxonomy.rbi +29 -0
- data/rbi/phoebe/resources/ref.rbi +21 -0
- data/rbi/phoebe/version.rbi +5 -0
- data/sig/phoebe/client.rbs +30 -0
- data/sig/phoebe/errors.rbs +117 -0
- data/sig/phoebe/file_part.rbs +21 -0
- data/sig/phoebe/internal/transport/base_client.rbs +133 -0
- data/sig/phoebe/internal/transport/pooled_net_requester.rbs +48 -0
- data/sig/phoebe/internal/type/array_of.rbs +48 -0
- data/sig/phoebe/internal/type/base_model.rbs +102 -0
- data/sig/phoebe/internal/type/base_page.rbs +24 -0
- data/sig/phoebe/internal/type/boolean.rbs +26 -0
- data/sig/phoebe/internal/type/converter.rbs +79 -0
- data/sig/phoebe/internal/type/enum.rbs +32 -0
- data/sig/phoebe/internal/type/file_input.rbs +25 -0
- data/sig/phoebe/internal/type/hash_of.rbs +48 -0
- data/sig/phoebe/internal/type/request_parameters.rbs +17 -0
- data/sig/phoebe/internal/type/union.rbs +52 -0
- data/sig/phoebe/internal/type/unknown.rbs +26 -0
- data/sig/phoebe/internal/util.rbs +185 -0
- data/sig/phoebe/internal.rbs +9 -0
- data/sig/phoebe/models/data/observation.rbs +129 -0
- data/sig/phoebe/models/data/observations/geo/recent/notable_list_params.rbs +94 -0
- data/sig/phoebe/models/data/observations/geo/recent/notable_list_response.rbs +15 -0
- data/sig/phoebe/models/data/observations/geo/recent/specie_list_params.rbs +81 -0
- data/sig/phoebe/models/data/observations/geo/recent/specie_list_response.rbs +15 -0
- data/sig/phoebe/models/data/observations/geo/recent_list_params.rbs +133 -0
- data/sig/phoebe/models/data/observations/geo/recent_list_response.rbs +13 -0
- data/sig/phoebe/models/data/observations/nearest/geo_specie_list_params.rbs +79 -0
- data/sig/phoebe/models/data/observations/nearest/geo_specie_list_response.rbs +13 -0
- data/sig/phoebe/models/data/observations/recent/historic_list_params.rbs +151 -0
- data/sig/phoebe/models/data/observations/recent/historic_list_response.rbs +13 -0
- data/sig/phoebe/models/data/observations/recent/notable_list_params.rbs +82 -0
- data/sig/phoebe/models/data/observations/recent/notable_list_response.rbs +13 -0
- data/sig/phoebe/models/data/observations/recent/specie_retrieve_params.rbs +74 -0
- data/sig/phoebe/models/data/observations/recent/specie_retrieve_response.rbs +13 -0
- data/sig/phoebe/models/data/observations/recent_list_params.rbs +101 -0
- data/sig/phoebe/models/data/observations/recent_list_response.rbs +11 -0
- data/sig/phoebe/models/product/checklist_view_params.rbs +17 -0
- data/sig/phoebe/models/product/checklist_view_response.rbs +367 -0
- data/sig/phoebe/models/product/list_retrieve_params.rbs +27 -0
- data/sig/phoebe/models/product/list_retrieve_response.rbs +372 -0
- data/sig/phoebe/models/product/lists/historical_retrieve_params.rbs +67 -0
- data/sig/phoebe/models/product/lists/historical_retrieve_response.rbs +374 -0
- data/sig/phoebe/models/product/species_list_list_params.rbs +17 -0
- data/sig/phoebe/models/product/species_list_list_response.rbs +9 -0
- data/sig/phoebe/models/product/stat_retrieve_params.rbs +34 -0
- data/sig/phoebe/models/product/stat_retrieve_response.rbs +38 -0
- data/sig/phoebe/models/product/top100_retrieve_params.rbs +65 -0
- data/sig/phoebe/models/product/top100_retrieve_response.rbs +64 -0
- data/sig/phoebe/models/ref/hotspot/geo_retrieve_params.rbs +69 -0
- data/sig/phoebe/models/ref/hotspot/geo_retrieve_response.rbs +87 -0
- data/sig/phoebe/models/ref/hotspot/info_retrieve_params.rbs +19 -0
- data/sig/phoebe/models/ref/hotspot/info_retrieve_response.rbs +110 -0
- data/sig/phoebe/models/ref/hotspot_list_params.rbs +47 -0
- data/sig/phoebe/models/ref/hotspot_list_response.rbs +85 -0
- data/sig/phoebe/models/ref/region/adjacent_list_params.rbs +19 -0
- data/sig/phoebe/models/ref/region/adjacent_list_response.rbs +28 -0
- data/sig/phoebe/models/ref/region/info_retrieve_params.rbs +62 -0
- data/sig/phoebe/models/ref/region/info_retrieve_response.rbs +70 -0
- data/sig/phoebe/models/ref/region/list_list_params.rbs +50 -0
- data/sig/phoebe/models/ref/region/list_list_response.rbs +28 -0
- data/sig/phoebe/models/ref/taxonomy/ebird_retrieve_params.rbs +73 -0
- data/sig/phoebe/models/ref/taxonomy/ebird_retrieve_response.rbs +108 -0
- data/sig/phoebe/models/ref/taxonomy/form_list_params.rbs +19 -0
- data/sig/phoebe/models/ref/taxonomy/form_list_response.rbs +11 -0
- data/sig/phoebe/models/ref/taxonomy/locale_list_params.rbs +30 -0
- data/sig/phoebe/models/ref/taxonomy/locale_list_response.rbs +37 -0
- data/sig/phoebe/models/ref/taxonomy/species_group_list_params.rbs +41 -0
- data/sig/phoebe/models/ref/taxonomy/species_group_list_response.rbs +47 -0
- data/sig/phoebe/models/ref/taxonomy/version_list_params.rbs +19 -0
- data/sig/phoebe/models/ref/taxonomy/version_list_response.rbs +28 -0
- data/sig/phoebe/models.rbs +7 -0
- data/sig/phoebe/request_options.rbs +34 -0
- data/sig/phoebe/resources/data/observations/geo/recent/notable.rbs +27 -0
- data/sig/phoebe/resources/data/observations/geo/recent/species.rbs +28 -0
- data/sig/phoebe/resources/data/observations/geo/recent.rbs +31 -0
- data/sig/phoebe/resources/data/observations/geo.rbs +13 -0
- data/sig/phoebe/resources/data/observations/nearest/geo_species.rbs +26 -0
- data/sig/phoebe/resources/data/observations/nearest.rbs +13 -0
- data/sig/phoebe/resources/data/observations/recent/historic.rbs +29 -0
- data/sig/phoebe/resources/data/observations/recent/notable.rbs +24 -0
- data/sig/phoebe/resources/data/observations/recent/species.rbs +25 -0
- data/sig/phoebe/resources/data/observations/recent.rbs +29 -0
- data/sig/phoebe/resources/data/observations.rbs +15 -0
- data/sig/phoebe/resources/data.rbs +9 -0
- data/sig/phoebe/resources/product/checklist.rbs +14 -0
- data/sig/phoebe/resources/product/lists/historical.rbs +21 -0
- data/sig/phoebe/resources/product/lists.rbs +17 -0
- data/sig/phoebe/resources/product/species_list.rbs +14 -0
- data/sig/phoebe/resources/product/stats.rbs +17 -0
- data/sig/phoebe/resources/product/top100.rbs +19 -0
- data/sig/phoebe/resources/product.rbs +17 -0
- data/sig/phoebe/resources/ref/hotspot/geo.rbs +20 -0
- data/sig/phoebe/resources/ref/hotspot/info.rbs +16 -0
- data/sig/phoebe/resources/ref/hotspot.rbs +20 -0
- data/sig/phoebe/resources/ref/region/adjacent.rbs +16 -0
- data/sig/phoebe/resources/ref/region/info.rbs +18 -0
- data/sig/phoebe/resources/ref/region/list.rbs +18 -0
- data/sig/phoebe/resources/ref/region.rbs +15 -0
- data/sig/phoebe/resources/ref/taxonomy/ebird.rbs +20 -0
- data/sig/phoebe/resources/ref/taxonomy/forms.rbs +16 -0
- data/sig/phoebe/resources/ref/taxonomy/locales.rbs +16 -0
- data/sig/phoebe/resources/ref/taxonomy/species_groups.rbs +17 -0
- data/sig/phoebe/resources/ref/taxonomy/versions.rbs +15 -0
- data/sig/phoebe/resources/ref/taxonomy.rbs +19 -0
- data/sig/phoebe/resources/ref.rbs +13 -0
- data/sig/phoebe/version.rbs +3 -0
- metadata +380 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
# Specify HTTP behaviour to use for a specific request. These options supplement
|
|
5
|
+
# or override those provided at the client level.
|
|
6
|
+
#
|
|
7
|
+
# When making a request, you can pass an actual {RequestOptions} instance, or
|
|
8
|
+
# simply pass a Hash with symbol keys matching the attributes on this class.
|
|
9
|
+
class RequestOptions < Phoebe::Internal::Type::BaseModel
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias { T.any(Phoebe::RequestOptions, Phoebe::Internal::AnyHash) }
|
|
12
|
+
|
|
13
|
+
# @api private
|
|
14
|
+
sig { params(opts: Phoebe::RequestOptions::OrHash).void }
|
|
15
|
+
def self.validate!(opts)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# Idempotency key to send with request and all associated retries. Will only be
|
|
19
|
+
# sent for write requests.
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_accessor :idempotency_key
|
|
22
|
+
|
|
23
|
+
# Extra query params to send with the request. These are `.merge`’d into any
|
|
24
|
+
# `query` given at the client level.
|
|
25
|
+
sig do
|
|
26
|
+
returns(
|
|
27
|
+
T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))])
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
attr_accessor :extra_query
|
|
31
|
+
|
|
32
|
+
# Extra headers to send with the request. These are `.merged`’d into any
|
|
33
|
+
# `extra_headers` given at the client level.
|
|
34
|
+
sig { returns(T.nilable(T::Hash[String, T.nilable(String)])) }
|
|
35
|
+
attr_accessor :extra_headers
|
|
36
|
+
|
|
37
|
+
# Extra data to send with the request. These are deep merged into any data
|
|
38
|
+
# generated as part of the normal request.
|
|
39
|
+
sig { returns(T.nilable(T.anything)) }
|
|
40
|
+
attr_accessor :extra_body
|
|
41
|
+
|
|
42
|
+
# Maximum number of retries to attempt after a failed initial request.
|
|
43
|
+
sig { returns(T.nilable(Integer)) }
|
|
44
|
+
attr_accessor :max_retries
|
|
45
|
+
|
|
46
|
+
# Request timeout in seconds.
|
|
47
|
+
sig { returns(T.nilable(Float)) }
|
|
48
|
+
attr_accessor :timeout
|
|
49
|
+
|
|
50
|
+
# Returns a new instance of RequestOptions.
|
|
51
|
+
sig { params(values: Phoebe::Internal::AnyHash).returns(T.attached_class) }
|
|
52
|
+
def self.new(values = {})
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Data
|
|
6
|
+
class Observations
|
|
7
|
+
class Geo
|
|
8
|
+
class Recent
|
|
9
|
+
class Notable
|
|
10
|
+
# Get the list of notable observations (up to 30 days ago) of birds seen at
|
|
11
|
+
# locations within a radius of up to 50 kilometers, from a given set of
|
|
12
|
+
# coordinates. Notable observations can be for locally or nationally rare species
|
|
13
|
+
# or are otherwise unusual, for example over-wintering birds in a species which is
|
|
14
|
+
# normally only a summer visitor.
|
|
15
|
+
sig do
|
|
16
|
+
params(
|
|
17
|
+
lat: Float,
|
|
18
|
+
lng: Float,
|
|
19
|
+
back: Integer,
|
|
20
|
+
detail:
|
|
21
|
+
Phoebe::Data::Observations::Geo::Recent::NotableListParams::Detail::OrSymbol,
|
|
22
|
+
dist: Integer,
|
|
23
|
+
hotspot: T::Boolean,
|
|
24
|
+
max_results: Integer,
|
|
25
|
+
spp_locale: String,
|
|
26
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
27
|
+
).returns(T::Array[Phoebe::Data::Observation])
|
|
28
|
+
end
|
|
29
|
+
def list(
|
|
30
|
+
lat:,
|
|
31
|
+
lng:,
|
|
32
|
+
# The number of days back to fetch observations.
|
|
33
|
+
back: nil,
|
|
34
|
+
# Include a subset (simple), or all (full), of the fields available.
|
|
35
|
+
detail: nil,
|
|
36
|
+
# The search radius from the given position, in kilometers.
|
|
37
|
+
dist: nil,
|
|
38
|
+
# Only fetch observations from hotspots
|
|
39
|
+
hotspot: nil,
|
|
40
|
+
# Only fetch this number of observations
|
|
41
|
+
max_results: nil,
|
|
42
|
+
# Use this language for species common names
|
|
43
|
+
spp_locale: nil,
|
|
44
|
+
request_options: {}
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# @api private
|
|
49
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
50
|
+
def self.new(client:)
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Data
|
|
6
|
+
class Observations
|
|
7
|
+
class Geo
|
|
8
|
+
class Recent
|
|
9
|
+
class Species
|
|
10
|
+
# Get all observations of a species, seen up to 30 days ago, at any location
|
|
11
|
+
# within a radius of up to 50 kilometers, from a given set of coordinates. Results
|
|
12
|
+
# include only the most recent observation from each location in the region
|
|
13
|
+
# specified.
|
|
14
|
+
#
|
|
15
|
+
# #### URL parameters
|
|
16
|
+
#
|
|
17
|
+
# | Name | Description |
|
|
18
|
+
# | ----------- | ----------------------- |
|
|
19
|
+
# | speciesCode | The eBird species code. |
|
|
20
|
+
#
|
|
21
|
+
# #### Notes
|
|
22
|
+
#
|
|
23
|
+
# The species code is typically a 6-letter code, e.g. horlar for Horned Lark. You
|
|
24
|
+
# can get complete set of species code from the GET eBird Taxonomy end-point.
|
|
25
|
+
sig do
|
|
26
|
+
params(
|
|
27
|
+
species_code: String,
|
|
28
|
+
lat: Float,
|
|
29
|
+
lng: Float,
|
|
30
|
+
back: Integer,
|
|
31
|
+
dist: Integer,
|
|
32
|
+
hotspot: T::Boolean,
|
|
33
|
+
include_provisional: T::Boolean,
|
|
34
|
+
max_results: Integer,
|
|
35
|
+
spp_locale: String,
|
|
36
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
37
|
+
).returns(T::Array[Phoebe::Data::Observation])
|
|
38
|
+
end
|
|
39
|
+
def list(
|
|
40
|
+
# The eBird species code.
|
|
41
|
+
species_code,
|
|
42
|
+
lat:,
|
|
43
|
+
lng:,
|
|
44
|
+
# The number of days back to fetch observations.
|
|
45
|
+
back: nil,
|
|
46
|
+
# The search radius from the given position, in kilometers.
|
|
47
|
+
dist: nil,
|
|
48
|
+
# Only fetch observations from hotspots
|
|
49
|
+
hotspot: nil,
|
|
50
|
+
# Include observations which have not yet been reviewed.
|
|
51
|
+
include_provisional: nil,
|
|
52
|
+
# Only fetch this number of observations
|
|
53
|
+
max_results: nil,
|
|
54
|
+
# Use this language for species common names
|
|
55
|
+
spp_locale: nil,
|
|
56
|
+
request_options: {}
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# @api private
|
|
61
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
62
|
+
def self.new(client:)
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Data
|
|
6
|
+
class Observations
|
|
7
|
+
class Geo
|
|
8
|
+
class Recent
|
|
9
|
+
sig do
|
|
10
|
+
returns(
|
|
11
|
+
Phoebe::Resources::Data::Observations::Geo::Recent::Species
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
attr_reader :species
|
|
15
|
+
|
|
16
|
+
sig do
|
|
17
|
+
returns(
|
|
18
|
+
Phoebe::Resources::Data::Observations::Geo::Recent::Notable
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
attr_reader :notable
|
|
22
|
+
|
|
23
|
+
# Get the list of recent observations (up to 30 days ago) of birds seen at
|
|
24
|
+
# locations within a radius of up to 50 kilometers, from a given set of
|
|
25
|
+
# coordinates. Results include only the most recent observation for each species
|
|
26
|
+
# in the region specified.
|
|
27
|
+
sig do
|
|
28
|
+
params(
|
|
29
|
+
lat: Float,
|
|
30
|
+
lng: Float,
|
|
31
|
+
back: Integer,
|
|
32
|
+
cat:
|
|
33
|
+
Phoebe::Data::Observations::Geo::RecentListParams::Cat::OrSymbol,
|
|
34
|
+
dist: Integer,
|
|
35
|
+
hotspot: T::Boolean,
|
|
36
|
+
include_provisional: T::Boolean,
|
|
37
|
+
max_results: Integer,
|
|
38
|
+
sort:
|
|
39
|
+
Phoebe::Data::Observations::Geo::RecentListParams::Sort::OrSymbol,
|
|
40
|
+
spp_locale: String,
|
|
41
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
42
|
+
).returns(T::Array[Phoebe::Data::Observation])
|
|
43
|
+
end
|
|
44
|
+
def list(
|
|
45
|
+
lat:,
|
|
46
|
+
lng:,
|
|
47
|
+
# The number of days back to fetch observations.
|
|
48
|
+
back: nil,
|
|
49
|
+
# Only fetch observations from these taxonomic categories
|
|
50
|
+
cat: nil,
|
|
51
|
+
# The search radius from the given position, in kilometers.
|
|
52
|
+
dist: nil,
|
|
53
|
+
# Only fetch observations from hotspots
|
|
54
|
+
hotspot: nil,
|
|
55
|
+
# Include observations which have not yet been reviewed.
|
|
56
|
+
include_provisional: nil,
|
|
57
|
+
# Only fetch this number of observations
|
|
58
|
+
max_results: nil,
|
|
59
|
+
# Sort observations by taxonomy or by date, most recent first.
|
|
60
|
+
sort: nil,
|
|
61
|
+
# Use this language for species common names
|
|
62
|
+
spp_locale: nil,
|
|
63
|
+
request_options: {}
|
|
64
|
+
)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# @api private
|
|
68
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
69
|
+
def self.new(client:)
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Data
|
|
6
|
+
class Observations
|
|
7
|
+
class Geo
|
|
8
|
+
sig { returns(Phoebe::Resources::Data::Observations::Geo::Recent) }
|
|
9
|
+
attr_reader :recent
|
|
10
|
+
|
|
11
|
+
# @api private
|
|
12
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
13
|
+
def self.new(client:)
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Data
|
|
6
|
+
class Observations
|
|
7
|
+
class Nearest
|
|
8
|
+
class GeoSpecies
|
|
9
|
+
# Find the nearest locations where a species has been seen recently. #### Notes
|
|
10
|
+
# The species code is typically a 6-letter code, e.g. barswa for Barn Swallow. You
|
|
11
|
+
# can get complete set of species code from the GET eBird Taxonomy end-point.
|
|
12
|
+
sig do
|
|
13
|
+
params(
|
|
14
|
+
species_code: String,
|
|
15
|
+
lat: Float,
|
|
16
|
+
lng: Float,
|
|
17
|
+
back: Integer,
|
|
18
|
+
dist: Integer,
|
|
19
|
+
hotspot: T::Boolean,
|
|
20
|
+
include_provisional: T::Boolean,
|
|
21
|
+
max_results: Integer,
|
|
22
|
+
spp_locale: String,
|
|
23
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
24
|
+
).returns(T::Array[Phoebe::Data::Observation])
|
|
25
|
+
end
|
|
26
|
+
def list(
|
|
27
|
+
# The eBird species code.
|
|
28
|
+
species_code,
|
|
29
|
+
lat:,
|
|
30
|
+
lng:,
|
|
31
|
+
# The number of days back to fetch observations.
|
|
32
|
+
back: nil,
|
|
33
|
+
# Only fetch observations within this distance of the provided lat/lng
|
|
34
|
+
dist: nil,
|
|
35
|
+
# Only fetch observations from hotspots
|
|
36
|
+
hotspot: nil,
|
|
37
|
+
# Include observations which have not yet been reviewed.
|
|
38
|
+
include_provisional: nil,
|
|
39
|
+
# Only fetch up to this number of observations
|
|
40
|
+
max_results: nil,
|
|
41
|
+
# Use this language for species common names
|
|
42
|
+
spp_locale: nil,
|
|
43
|
+
request_options: {}
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# @api private
|
|
48
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
49
|
+
def self.new(client:)
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Data
|
|
6
|
+
class Observations
|
|
7
|
+
class Nearest
|
|
8
|
+
sig do
|
|
9
|
+
returns(Phoebe::Resources::Data::Observations::Nearest::GeoSpecies)
|
|
10
|
+
end
|
|
11
|
+
attr_reader :geo_species
|
|
12
|
+
|
|
13
|
+
# @api private
|
|
14
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
15
|
+
def self.new(client:)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Data
|
|
6
|
+
class Observations
|
|
7
|
+
class Recent
|
|
8
|
+
class Historic
|
|
9
|
+
# Get a list of all taxa seen in a country, region or location on a specific date,
|
|
10
|
+
# with the specific observations determined by the "rank" parameter (defaults to
|
|
11
|
+
# latest observation on the date).
|
|
12
|
+
#
|
|
13
|
+
# #### Notes Responses may be cached for 30 minutes
|
|
14
|
+
sig do
|
|
15
|
+
params(
|
|
16
|
+
d: Integer,
|
|
17
|
+
region_code: String,
|
|
18
|
+
y_: Integer,
|
|
19
|
+
m: Integer,
|
|
20
|
+
cat:
|
|
21
|
+
Phoebe::Data::Observations::Recent::HistoricListParams::Cat::OrSymbol,
|
|
22
|
+
detail:
|
|
23
|
+
Phoebe::Data::Observations::Recent::HistoricListParams::Detail::OrSymbol,
|
|
24
|
+
hotspot: T::Boolean,
|
|
25
|
+
include_provisional: T::Boolean,
|
|
26
|
+
max_results: Integer,
|
|
27
|
+
r: T::Array[String],
|
|
28
|
+
rank:
|
|
29
|
+
Phoebe::Data::Observations::Recent::HistoricListParams::Rank::OrSymbol,
|
|
30
|
+
spp_locale: String,
|
|
31
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
32
|
+
).returns(T::Array[Phoebe::Data::Observation])
|
|
33
|
+
end
|
|
34
|
+
def list(
|
|
35
|
+
# Path param:
|
|
36
|
+
d,
|
|
37
|
+
# Path param: The country, subnational1, subnational2 or location code.
|
|
38
|
+
region_code:,
|
|
39
|
+
# Path param:
|
|
40
|
+
y_:,
|
|
41
|
+
# Path param:
|
|
42
|
+
m:,
|
|
43
|
+
# Query param: Only fetch observations from these taxonomic categories
|
|
44
|
+
cat: nil,
|
|
45
|
+
# Query param: Include a subset (simple), or all (full), of the fields available.
|
|
46
|
+
detail: nil,
|
|
47
|
+
# Query param: Only fetch observations from hotspots
|
|
48
|
+
hotspot: nil,
|
|
49
|
+
# Query param: Include observations which have not yet been reviewed.
|
|
50
|
+
include_provisional: nil,
|
|
51
|
+
# Query param: Only fetch this number of observations
|
|
52
|
+
max_results: nil,
|
|
53
|
+
# Query param: Fetch observations from up to 50 locations
|
|
54
|
+
r: nil,
|
|
55
|
+
# Query param: Include latest observation of the day, or the first added
|
|
56
|
+
rank: nil,
|
|
57
|
+
# Query param: Use this language for species common names
|
|
58
|
+
spp_locale: nil,
|
|
59
|
+
request_options: {}
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# @api private
|
|
64
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
65
|
+
def self.new(client:)
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Data
|
|
6
|
+
class Observations
|
|
7
|
+
class Recent
|
|
8
|
+
class Notable
|
|
9
|
+
# Get the list of recent, notable observations (up to 30 days ago) of birds seen
|
|
10
|
+
# in a country, region or location. Notable observations can be for locally or
|
|
11
|
+
# nationally rare species or are otherwise unusual, e.g. over-wintering birds in a
|
|
12
|
+
# species which is normally only a summer visitor.
|
|
13
|
+
sig do
|
|
14
|
+
params(
|
|
15
|
+
region_code: String,
|
|
16
|
+
back: Integer,
|
|
17
|
+
detail:
|
|
18
|
+
Phoebe::Data::Observations::Recent::NotableListParams::Detail::OrSymbol,
|
|
19
|
+
hotspot: T::Boolean,
|
|
20
|
+
max_results: Integer,
|
|
21
|
+
r: T::Array[String],
|
|
22
|
+
spp_locale: String,
|
|
23
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
24
|
+
).returns(T::Array[Phoebe::Data::Observation])
|
|
25
|
+
end
|
|
26
|
+
def list(
|
|
27
|
+
# The country, subnational1, subnational2 or location code.
|
|
28
|
+
region_code,
|
|
29
|
+
# The number of days back to fetch observations.
|
|
30
|
+
back: nil,
|
|
31
|
+
# Include a subset (simple), or all (full), of the fields available.
|
|
32
|
+
detail: nil,
|
|
33
|
+
# Only fetch observations from hotspots
|
|
34
|
+
hotspot: nil,
|
|
35
|
+
# Only fetch this number of observations
|
|
36
|
+
max_results: nil,
|
|
37
|
+
# Fetch observations from up to 10 locations
|
|
38
|
+
r: nil,
|
|
39
|
+
# Use this language for species common names
|
|
40
|
+
spp_locale: nil,
|
|
41
|
+
request_options: {}
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# @api private
|
|
46
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
47
|
+
def self.new(client:)
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Data
|
|
6
|
+
class Observations
|
|
7
|
+
class Recent
|
|
8
|
+
class Species
|
|
9
|
+
# Get the recent observations, up to 30 days ago, of a particular species in a
|
|
10
|
+
# country, region or location. Results include only the most recent observation
|
|
11
|
+
# from each location in the region specified.
|
|
12
|
+
#
|
|
13
|
+
# #### Notes
|
|
14
|
+
#
|
|
15
|
+
# The species code is typically a 6-letter code, e.g. cangoo for Canada Goose. You
|
|
16
|
+
# can get complete set of species code from the GET eBird Taxonomy end-point.
|
|
17
|
+
#
|
|
18
|
+
# When using the _r_ query parameter set the _regionCode_ URL parameter to an
|
|
19
|
+
# empty string.
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
species_code: String,
|
|
23
|
+
region_code: String,
|
|
24
|
+
back: Integer,
|
|
25
|
+
hotspot: T::Boolean,
|
|
26
|
+
include_provisional: T::Boolean,
|
|
27
|
+
max_results: Integer,
|
|
28
|
+
r: T::Array[String],
|
|
29
|
+
spp_locale: String,
|
|
30
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
31
|
+
).returns(T::Array[Phoebe::Data::Observation])
|
|
32
|
+
end
|
|
33
|
+
def retrieve(
|
|
34
|
+
# Path param: The eBird species code.
|
|
35
|
+
species_code,
|
|
36
|
+
# Path param: The country, subnational1, subnational2 or location code.
|
|
37
|
+
region_code:,
|
|
38
|
+
# Query param: The number of days back to fetch observations.
|
|
39
|
+
back: nil,
|
|
40
|
+
# Query param: Only fetch observations from hotspots
|
|
41
|
+
hotspot: nil,
|
|
42
|
+
# Query param: Include observations which have not yet been reviewed.
|
|
43
|
+
include_provisional: nil,
|
|
44
|
+
# Query param: Only fetch this number of observations
|
|
45
|
+
max_results: nil,
|
|
46
|
+
# Query param: Fetch observations from up to 10 locations
|
|
47
|
+
r: nil,
|
|
48
|
+
# Query param: Use this language for species common names
|
|
49
|
+
spp_locale: nil,
|
|
50
|
+
request_options: {}
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# @api private
|
|
55
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
56
|
+
def self.new(client:)
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Data
|
|
6
|
+
class Observations
|
|
7
|
+
class Recent
|
|
8
|
+
sig do
|
|
9
|
+
returns(Phoebe::Resources::Data::Observations::Recent::Notable)
|
|
10
|
+
end
|
|
11
|
+
attr_reader :notable
|
|
12
|
+
|
|
13
|
+
sig do
|
|
14
|
+
returns(Phoebe::Resources::Data::Observations::Recent::Species)
|
|
15
|
+
end
|
|
16
|
+
attr_reader :species
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
returns(Phoebe::Resources::Data::Observations::Recent::Historic)
|
|
20
|
+
end
|
|
21
|
+
attr_reader :historic
|
|
22
|
+
|
|
23
|
+
# Get the list of recent observations (up to 30 days ago) of birds seen in a
|
|
24
|
+
# country, state, county, or location. Results include only the most recent
|
|
25
|
+
# observation for each species in the region specified.
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
region_code: String,
|
|
29
|
+
back: Integer,
|
|
30
|
+
cat: Phoebe::Data::Observations::RecentListParams::Cat::OrSymbol,
|
|
31
|
+
hotspot: T::Boolean,
|
|
32
|
+
include_provisional: T::Boolean,
|
|
33
|
+
max_results: Integer,
|
|
34
|
+
r: T::Array[String],
|
|
35
|
+
spp_locale: String,
|
|
36
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
37
|
+
).returns(T::Array[Phoebe::Data::Observation])
|
|
38
|
+
end
|
|
39
|
+
def list(
|
|
40
|
+
# The country, subnational1, subnational2 or location code.
|
|
41
|
+
region_code,
|
|
42
|
+
# The number of days back to fetch observations.
|
|
43
|
+
back: nil,
|
|
44
|
+
# Only fetch observations from these taxonomic categories
|
|
45
|
+
cat: nil,
|
|
46
|
+
# Only fetch observations from hotspots
|
|
47
|
+
hotspot: nil,
|
|
48
|
+
# Include observations which have not yet been reviewed
|
|
49
|
+
include_provisional: nil,
|
|
50
|
+
# Only fetch this number of observations
|
|
51
|
+
max_results: nil,
|
|
52
|
+
# Fetch observations from up to 10 locations
|
|
53
|
+
r: nil,
|
|
54
|
+
# Use this language for species common names
|
|
55
|
+
spp_locale: nil,
|
|
56
|
+
request_options: {}
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# @api private
|
|
61
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
62
|
+
def self.new(client:)
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Data
|
|
6
|
+
class Observations
|
|
7
|
+
sig { returns(Phoebe::Resources::Data::Observations::Recent) }
|
|
8
|
+
attr_reader :recent
|
|
9
|
+
|
|
10
|
+
sig { returns(Phoebe::Resources::Data::Observations::Geo) }
|
|
11
|
+
attr_reader :geo
|
|
12
|
+
|
|
13
|
+
sig { returns(Phoebe::Resources::Data::Observations::Nearest) }
|
|
14
|
+
attr_reader :nearest
|
|
15
|
+
|
|
16
|
+
# @api private
|
|
17
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
18
|
+
def self.new(client:)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Data
|
|
6
|
+
sig { returns(Phoebe::Resources::Data::Observations) }
|
|
7
|
+
attr_reader :observations
|
|
8
|
+
|
|
9
|
+
# @api private
|
|
10
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
11
|
+
def self.new(client:)
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Product
|
|
6
|
+
class Checklist
|
|
7
|
+
# Get the details and observations of a checklist.
|
|
8
|
+
#
|
|
9
|
+
# #### Notes Do NOT use this to download large amounts of data. You will be banned if you do. In the fields for each observation, the following fields are duplicates or obsolete and will be removed at a future date: _howManyAtleast_, _howManyAtmost_, _hideFlags_, _projId_, _subId_, _subnational1Code_ and _present_.
|
|
10
|
+
sig do
|
|
11
|
+
params(
|
|
12
|
+
sub_id: String,
|
|
13
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
14
|
+
).returns(Phoebe::Models::Product::ChecklistViewResponse)
|
|
15
|
+
end
|
|
16
|
+
def view(
|
|
17
|
+
# The checklist identifier.
|
|
18
|
+
sub_id,
|
|
19
|
+
request_options: {}
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# @api private
|
|
24
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
25
|
+
def self.new(client:)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|