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,52 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Product
|
|
6
|
+
class Lists
|
|
7
|
+
class Historical
|
|
8
|
+
# Get information on the checklists submitted on a given date for a country or
|
|
9
|
+
# region.
|
|
10
|
+
sig do
|
|
11
|
+
params(
|
|
12
|
+
d: Integer,
|
|
13
|
+
region_code: String,
|
|
14
|
+
y_: Integer,
|
|
15
|
+
m: Integer,
|
|
16
|
+
max_results: Integer,
|
|
17
|
+
sort_key:
|
|
18
|
+
Phoebe::Product::Lists::HistoricalRetrieveParams::SortKey::OrSymbol,
|
|
19
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
20
|
+
).returns(
|
|
21
|
+
T::Array[
|
|
22
|
+
Phoebe::Models::Product::Lists::HistoricalRetrieveResponseItem
|
|
23
|
+
]
|
|
24
|
+
)
|
|
25
|
+
end
|
|
26
|
+
def retrieve(
|
|
27
|
+
# Path param: The day in the month.
|
|
28
|
+
d,
|
|
29
|
+
# Path param: The country, subnational1, subnational2 or location code.
|
|
30
|
+
region_code:,
|
|
31
|
+
# Path param: The year, from 1800 to the present.
|
|
32
|
+
y_:,
|
|
33
|
+
# Path param: The month, from 1-12.
|
|
34
|
+
m:,
|
|
35
|
+
# Query param: Only fetch this number of checklists.
|
|
36
|
+
max_results: nil,
|
|
37
|
+
# Query param: Order the results by the date of the checklist or by the date it
|
|
38
|
+
# was submitted.
|
|
39
|
+
sort_key: nil,
|
|
40
|
+
request_options: {}
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# @api private
|
|
45
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
46
|
+
def self.new(client:)
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Product
|
|
6
|
+
class Lists
|
|
7
|
+
sig { returns(Phoebe::Resources::Product::Lists::Historical) }
|
|
8
|
+
attr_reader :historical
|
|
9
|
+
|
|
10
|
+
# Get information on the most recently submitted checklists for a region.
|
|
11
|
+
sig do
|
|
12
|
+
params(
|
|
13
|
+
region_code: String,
|
|
14
|
+
max_results: Integer,
|
|
15
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
16
|
+
).returns(T::Array[Phoebe::Models::Product::ListRetrieveResponseItem])
|
|
17
|
+
end
|
|
18
|
+
def retrieve(
|
|
19
|
+
# The country, subnational1, subnational2 or location code.
|
|
20
|
+
region_code,
|
|
21
|
+
# Only fetch this number of checklists.
|
|
22
|
+
max_results: nil,
|
|
23
|
+
request_options: {}
|
|
24
|
+
)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# @api private
|
|
28
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
29
|
+
def self.new(client:)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Product
|
|
6
|
+
class SpeciesList
|
|
7
|
+
# Get a list of species codes ever seen in a region, in taxonomic order (species
|
|
8
|
+
# taxa only)
|
|
9
|
+
#
|
|
10
|
+
# #### Notes The results are usually updated every 10 seconds for locations, every day for larger regions.
|
|
11
|
+
sig do
|
|
12
|
+
params(
|
|
13
|
+
region_code: String,
|
|
14
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
15
|
+
).returns(T::Array[String])
|
|
16
|
+
end
|
|
17
|
+
def list(
|
|
18
|
+
# Any location, USFWS region, subnational2, subnational1, country, or custom
|
|
19
|
+
# region code
|
|
20
|
+
region_code,
|
|
21
|
+
request_options: {}
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# @api private
|
|
26
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
27
|
+
def self.new(client:)
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Product
|
|
6
|
+
class Stats
|
|
7
|
+
# Get a summary of the number of checklist submitted, species seen and
|
|
8
|
+
# contributors on a given date for a country or region.
|
|
9
|
+
#
|
|
10
|
+
# #### Notes The results are updated every 15 minutes.
|
|
11
|
+
sig do
|
|
12
|
+
params(
|
|
13
|
+
d: Integer,
|
|
14
|
+
region_code: String,
|
|
15
|
+
y_: Integer,
|
|
16
|
+
m: Integer,
|
|
17
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
18
|
+
).returns(Phoebe::Models::Product::StatRetrieveResponse)
|
|
19
|
+
end
|
|
20
|
+
def retrieve(
|
|
21
|
+
# The day in the month.
|
|
22
|
+
d,
|
|
23
|
+
# The country, subnational1, subnational2 or location code.
|
|
24
|
+
region_code:,
|
|
25
|
+
# The year, from 1800 to the present.
|
|
26
|
+
y_:,
|
|
27
|
+
# The month, from 1-12.
|
|
28
|
+
m:,
|
|
29
|
+
request_options: {}
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# @api private
|
|
34
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
35
|
+
def self.new(client:)
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Product
|
|
6
|
+
class Top100
|
|
7
|
+
# Get the top 100 contributors on a given date for a country or region.
|
|
8
|
+
#
|
|
9
|
+
# #### Notes
|
|
10
|
+
#
|
|
11
|
+
# The results are updated every 15 minutes.
|
|
12
|
+
#
|
|
13
|
+
# When ordering by the number of completed checklists, the number of species seen
|
|
14
|
+
# will always be zero. Similarly when ordering by the number of species seen the
|
|
15
|
+
# number of completed checklists will always be zero. <b>Selected Response Field
|
|
16
|
+
# Notes</b>
|
|
17
|
+
#
|
|
18
|
+
# profileHandle - if a user has enabled their profile, this is the handle to reach
|
|
19
|
+
# it via ebird.org/ebird/profile/{profileHandle}
|
|
20
|
+
#
|
|
21
|
+
# numSpecies - always zero when checklistSort parameter is true. Invalid
|
|
22
|
+
# observations ARE included in this total numCompleteChecklists - always zero when
|
|
23
|
+
# checklistSort parameter is false
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
d: Integer,
|
|
27
|
+
region_code: String,
|
|
28
|
+
y_: Integer,
|
|
29
|
+
m: Integer,
|
|
30
|
+
max_results: Integer,
|
|
31
|
+
ranked_by:
|
|
32
|
+
Phoebe::Product::Top100RetrieveParams::RankedBy::OrSymbol,
|
|
33
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
34
|
+
).returns(
|
|
35
|
+
T::Array[Phoebe::Models::Product::Top100RetrieveResponseItem]
|
|
36
|
+
)
|
|
37
|
+
end
|
|
38
|
+
def retrieve(
|
|
39
|
+
# Path param: The day in the month.
|
|
40
|
+
d,
|
|
41
|
+
# Path param: The country, subnational1, or location code.
|
|
42
|
+
region_code:,
|
|
43
|
+
# Path param: The year, from 1800 to the present.
|
|
44
|
+
y_:,
|
|
45
|
+
# Path param: The month, from 1-12.
|
|
46
|
+
m:,
|
|
47
|
+
# Query param: Only fetch this number of contributors.
|
|
48
|
+
max_results: nil,
|
|
49
|
+
# Query param: Order by number of complete checklists (cl) or by number of species
|
|
50
|
+
# seen (spp).
|
|
51
|
+
ranked_by: nil,
|
|
52
|
+
request_options: {}
|
|
53
|
+
)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# @api private
|
|
57
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
58
|
+
def self.new(client:)
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Product
|
|
6
|
+
sig { returns(Phoebe::Resources::Product::Lists) }
|
|
7
|
+
attr_reader :lists
|
|
8
|
+
|
|
9
|
+
sig { returns(Phoebe::Resources::Product::Top100) }
|
|
10
|
+
attr_reader :top100
|
|
11
|
+
|
|
12
|
+
sig { returns(Phoebe::Resources::Product::Stats) }
|
|
13
|
+
attr_reader :stats
|
|
14
|
+
|
|
15
|
+
sig { returns(Phoebe::Resources::Product::SpeciesList) }
|
|
16
|
+
attr_reader :species_list
|
|
17
|
+
|
|
18
|
+
sig { returns(Phoebe::Resources::Product::Checklist) }
|
|
19
|
+
attr_reader :checklist
|
|
20
|
+
|
|
21
|
+
# @api private
|
|
22
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
23
|
+
def self.new(client:)
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Ref
|
|
6
|
+
class Hotspot
|
|
7
|
+
class Geo
|
|
8
|
+
# Get the list of hotspots, within a radius of up to 50 kilometers, from a given
|
|
9
|
+
# set of coordinates.
|
|
10
|
+
sig do
|
|
11
|
+
params(
|
|
12
|
+
lat: Float,
|
|
13
|
+
lng: Float,
|
|
14
|
+
back: Integer,
|
|
15
|
+
dist: Integer,
|
|
16
|
+
fmt: Phoebe::Ref::Hotspot::GeoRetrieveParams::Fmt::OrSymbol,
|
|
17
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
18
|
+
).returns(
|
|
19
|
+
T::Array[Phoebe::Models::Ref::Hotspot::GeoRetrieveResponseItem]
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
def retrieve(
|
|
23
|
+
lat:,
|
|
24
|
+
lng:,
|
|
25
|
+
# The number of days back to fetch hotspots.
|
|
26
|
+
back: nil,
|
|
27
|
+
# The search radius from the given position, in kilometers.
|
|
28
|
+
dist: nil,
|
|
29
|
+
# Fetch the records in CSV or JSON format.
|
|
30
|
+
fmt: nil,
|
|
31
|
+
request_options: {}
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# @api private
|
|
36
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
37
|
+
def self.new(client:)
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Ref
|
|
6
|
+
class Hotspot
|
|
7
|
+
class Info
|
|
8
|
+
# Get information on the location of a hotspot. #### Notes This API call only
|
|
9
|
+
# works for hotspots. If you pass the location code for a private location or an
|
|
10
|
+
# invalid location code then an HTTP 410 (Gone) error is returned.
|
|
11
|
+
sig do
|
|
12
|
+
params(
|
|
13
|
+
loc_id: String,
|
|
14
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
15
|
+
).returns(Phoebe::Models::Ref::Hotspot::InfoRetrieveResponse)
|
|
16
|
+
end
|
|
17
|
+
def retrieve(
|
|
18
|
+
# The location code.
|
|
19
|
+
loc_id,
|
|
20
|
+
request_options: {}
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# @api private
|
|
25
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
26
|
+
def self.new(client:)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Ref
|
|
6
|
+
class Hotspot
|
|
7
|
+
sig { returns(Phoebe::Resources::Ref::Hotspot::Geo) }
|
|
8
|
+
attr_reader :geo
|
|
9
|
+
|
|
10
|
+
sig { returns(Phoebe::Resources::Ref::Hotspot::Info) }
|
|
11
|
+
attr_reader :info
|
|
12
|
+
|
|
13
|
+
# Hotspots in a region
|
|
14
|
+
sig do
|
|
15
|
+
params(
|
|
16
|
+
region_code: String,
|
|
17
|
+
back: Integer,
|
|
18
|
+
fmt: Phoebe::Ref::HotspotListParams::Fmt::OrSymbol,
|
|
19
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
20
|
+
).returns(T::Array[Phoebe::Models::Ref::HotspotListResponseItem])
|
|
21
|
+
end
|
|
22
|
+
def list(
|
|
23
|
+
# The country, subnational1 or subnational2 code.
|
|
24
|
+
region_code,
|
|
25
|
+
# The number of days back to fetch hotspots.
|
|
26
|
+
back: nil,
|
|
27
|
+
# Fetch the records in CSV or JSON format.
|
|
28
|
+
fmt: nil,
|
|
29
|
+
request_options: {}
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# @api private
|
|
34
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
35
|
+
def self.new(client:)
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Ref
|
|
6
|
+
class Region
|
|
7
|
+
class Adjacent
|
|
8
|
+
# Get the list of countries or regions that share a border with this one. ####
|
|
9
|
+
# Notes Only subnational2 codes in the United States, New Zealand, or Mexico are
|
|
10
|
+
# currently supported
|
|
11
|
+
sig do
|
|
12
|
+
params(
|
|
13
|
+
region_code: String,
|
|
14
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
15
|
+
).returns(
|
|
16
|
+
T::Array[Phoebe::Models::Ref::Region::AdjacentListResponseItem]
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
def list(
|
|
20
|
+
# The country, subnational1 or subnational2 code.
|
|
21
|
+
region_code,
|
|
22
|
+
request_options: {}
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# @api private
|
|
27
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
28
|
+
def self.new(client:)
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Ref
|
|
6
|
+
class Region
|
|
7
|
+
class Info
|
|
8
|
+
# Get information on the name and geographical area covered by a region.
|
|
9
|
+
#
|
|
10
|
+
# #### Notes
|
|
11
|
+
#
|
|
12
|
+
# Taking Madison County, New York, USA (location code US-NY-053) as an example the
|
|
13
|
+
# various values for the regionNameFormat query parameter work as follows:
|
|
14
|
+
#
|
|
15
|
+
# | Value | Description | Result |
|
|
16
|
+
# | -------------- | ------------------------------------------ | -------------------------------- |
|
|
17
|
+
# | detailed | return a detailed description | Madison County, New York, US |
|
|
18
|
+
# | detailednoqual | return the name to the subnational1 level | Madison, New York |
|
|
19
|
+
# | full | return the full description | Madison, New York, United States |
|
|
20
|
+
# | namequal | return the qualified name | Madison County |
|
|
21
|
+
# | nameonly | return only the name of the region | Madison |
|
|
22
|
+
# | revdetailed | return the detailed description in reverse | US, New York, Madison County |
|
|
23
|
+
sig do
|
|
24
|
+
params(
|
|
25
|
+
region_code: String,
|
|
26
|
+
delim: String,
|
|
27
|
+
region_name_format:
|
|
28
|
+
Phoebe::Ref::Region::InfoRetrieveParams::RegionNameFormat::OrSymbol,
|
|
29
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
30
|
+
).returns(Phoebe::Models::Ref::Region::InfoRetrieveResponse)
|
|
31
|
+
end
|
|
32
|
+
def retrieve(
|
|
33
|
+
# The major region, country, subnational1 or subnational2 code, or locId
|
|
34
|
+
region_code,
|
|
35
|
+
# The characters used to separate elements in the name.
|
|
36
|
+
delim: nil,
|
|
37
|
+
# Control how the name is displayed.
|
|
38
|
+
region_name_format: nil,
|
|
39
|
+
request_options: {}
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# @api private
|
|
44
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
45
|
+
def self.new(client:)
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Ref
|
|
6
|
+
class Region
|
|
7
|
+
class List
|
|
8
|
+
# Get the list of sub-regions for a given country or region. #### Notes Not all
|
|
9
|
+
# combinations of region type and region code are valid. You can fetch all the
|
|
10
|
+
# subnational1 or subnational2 regions for a country however you can only specify
|
|
11
|
+
# a region type of 'country' when using 'world' as a region code.
|
|
12
|
+
sig do
|
|
13
|
+
params(
|
|
14
|
+
parent_region_code: String,
|
|
15
|
+
region_type: String,
|
|
16
|
+
fmt: Phoebe::Ref::Region::ListListParams::Fmt::OrSymbol,
|
|
17
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
18
|
+
).returns(
|
|
19
|
+
T::Array[Phoebe::Models::Ref::Region::ListListResponseItem]
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
def list(
|
|
23
|
+
# Path param: The country or subnational1 code, or 'world'.
|
|
24
|
+
parent_region_code,
|
|
25
|
+
# Path param: The region type: 'country', 'subnational1' or 'subnational2'.
|
|
26
|
+
region_type:,
|
|
27
|
+
# Query param: Fetch the records in CSV or JSON format.
|
|
28
|
+
fmt: nil,
|
|
29
|
+
request_options: {}
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# @api private
|
|
34
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
35
|
+
def self.new(client:)
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Ref
|
|
6
|
+
class Region
|
|
7
|
+
sig { returns(Phoebe::Resources::Ref::Region::Adjacent) }
|
|
8
|
+
attr_reader :adjacent
|
|
9
|
+
|
|
10
|
+
sig { returns(Phoebe::Resources::Ref::Region::Info) }
|
|
11
|
+
attr_reader :info
|
|
12
|
+
|
|
13
|
+
sig { returns(Phoebe::Resources::Ref::Region::List) }
|
|
14
|
+
attr_reader :list
|
|
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,47 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Ref
|
|
6
|
+
class Taxonomy
|
|
7
|
+
class Ebird
|
|
8
|
+
# Get the taxonomy used by eBird. #### Notes Each entry in the taxonomy contains a
|
|
9
|
+
# species code for example, barswa for Barn Swallow. You can download the taxonomy
|
|
10
|
+
# for selected species using the _species_ query parameter with a comma separating
|
|
11
|
+
# each code. Otherwise the full taxonomy is downloaded.
|
|
12
|
+
sig do
|
|
13
|
+
params(
|
|
14
|
+
cat: String,
|
|
15
|
+
fmt: Phoebe::Ref::Taxonomy::EbirdRetrieveParams::Fmt::OrSymbol,
|
|
16
|
+
locale: String,
|
|
17
|
+
species: String,
|
|
18
|
+
version: String,
|
|
19
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
20
|
+
).returns(
|
|
21
|
+
T::Array[Phoebe::Models::Ref::Taxonomy::EbirdRetrieveResponseItem]
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
def retrieve(
|
|
25
|
+
# Only fetch records from these taxonomic categories.
|
|
26
|
+
cat: nil,
|
|
27
|
+
# Fetch the records in CSV or JSON format.
|
|
28
|
+
fmt: nil,
|
|
29
|
+
# Use this language for common names.
|
|
30
|
+
locale: nil,
|
|
31
|
+
# Only fetch records for these species.
|
|
32
|
+
species: nil,
|
|
33
|
+
# Fetch a specific version of the taxonomy.
|
|
34
|
+
version: nil,
|
|
35
|
+
request_options: {}
|
|
36
|
+
)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# @api private
|
|
40
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
41
|
+
def self.new(client:)
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Ref
|
|
6
|
+
class Taxonomy
|
|
7
|
+
class Forms
|
|
8
|
+
# For a species, get the list of subspecies recognised in the taxonomy. The
|
|
9
|
+
# results include the species that was passed in.
|
|
10
|
+
sig do
|
|
11
|
+
params(
|
|
12
|
+
species_code: String,
|
|
13
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
14
|
+
).returns(T::Array[String])
|
|
15
|
+
end
|
|
16
|
+
def list(
|
|
17
|
+
# The eBird species code.
|
|
18
|
+
species_code,
|
|
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
|
|
31
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Ref
|
|
6
|
+
class Taxonomy
|
|
7
|
+
class Locales
|
|
8
|
+
# Returns the list of supported locale codes and names for species common names,
|
|
9
|
+
# with the last time they were updated. Use the accept-language header to get
|
|
10
|
+
# translated language names when available.
|
|
11
|
+
#
|
|
12
|
+
# NOTE: The locale codes and names are stable but the other fields in this result
|
|
13
|
+
# are not yet finalized and should be used with caution.
|
|
14
|
+
sig do
|
|
15
|
+
params(
|
|
16
|
+
accept_language: String,
|
|
17
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
18
|
+
).returns(
|
|
19
|
+
T::Array[Phoebe::Models::Ref::Taxonomy::LocaleListResponseItem]
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
def list(accept_language: nil, request_options: {})
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# @api private
|
|
26
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
27
|
+
def self.new(client:)
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Phoebe
|
|
4
|
+
module Resources
|
|
5
|
+
class Ref
|
|
6
|
+
class Taxonomy
|
|
7
|
+
class SpeciesGroups
|
|
8
|
+
# Get the list of species groups, e.g. terns, finches, etc. #### Notes Merlin puts
|
|
9
|
+
# like birds together, with Falcons next to Hawks, whereas eBird follows taxonomic
|
|
10
|
+
# order.
|
|
11
|
+
sig do
|
|
12
|
+
params(
|
|
13
|
+
species_grouping:
|
|
14
|
+
Phoebe::Ref::Taxonomy::SpeciesGroupListParams::SpeciesGrouping::OrSymbol,
|
|
15
|
+
group_name_locale: String,
|
|
16
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
17
|
+
).returns(
|
|
18
|
+
T::Array[
|
|
19
|
+
Phoebe::Models::Ref::Taxonomy::SpeciesGroupListResponseItem
|
|
20
|
+
]
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
def list(
|
|
24
|
+
# The order in which groups are returned.
|
|
25
|
+
species_grouping,
|
|
26
|
+
# Locale for species group names. English names are returned for any non-listed
|
|
27
|
+
# locale or any non-translated group name.
|
|
28
|
+
group_name_locale: nil,
|
|
29
|
+
request_options: {}
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# @api private
|
|
34
|
+
sig { params(client: Phoebe::Client).returns(T.attached_class) }
|
|
35
|
+
def self.new(client:)
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|