parseapi 1.11.4 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c008dfdda226e42eed09f85375f1fed9afc5fdce0b9740d6e4f3ad3705f2ad0
4
- data.tar.gz: 43368b0ed792b127e6fa2518b3f947f9a4d50cc1eba0fde1341e675e0cb3409f
3
+ metadata.gz: 3fa24a686b56d6257d019e9017b3808facbed12243ba8adb0c85a8818c10ec7b
4
+ data.tar.gz: 0f701e472966a1cbe3c3ad58358888227be02a39c2d87f3096370b2a9cf38617
5
5
  SHA512:
6
- metadata.gz: 6e0472ed99ad8630f6e73e3cbff8e91063e2dbb53762552d2dedbd8712fb774eceef6a6fd4f1ca3826c4dc3a53c86b22cd8c602e9aa05a5d6cdee50dc03eb06f
7
- data.tar.gz: 78c60c004989342e0a6f1a6552409c59bf54f91c6d84fd8c3fe528bcb9c250524ec99082b9ea5406ec332db3a71113a7dab6ae3fbee7587540373847cd506fac
6
+ metadata.gz: a6b943d692524e52d68fe498c2c1b420de89b2798b31eb7af81d6e837080536c71c6c3e30be28bbbf774c65612ef3f89daad660e7c40e10d507a25773ddf36ff
7
+ data.tar.gz: aee960bedbab146d371d1f9f471b4e2fa93cc00a85b7773ea06664364636f29731331ac1b80b03be03970482a8713c77dd266d57dbae87dde79ccb0c43db4c77
data/README.md CHANGED
@@ -13,13 +13,15 @@ Get a key at [parseapi.com](https://parseapi.com). The client also reads `PARSEA
13
13
 
14
14
  ## API versions
15
15
 
16
- This SDK explicitly selects the API contract supported by this SDK. It sends `Parse-Version: 2.0.0` on every lookup so responses match the API contract supported by the package. Your key and the team's saved default stay the same.
16
+ State and County use `iso_code` for the full ISO 3166-2 code of the exact returned place, including County items in State lists. A null means unassigned or unknown. National `state` and `county` identifiers are unchanged. Update State readers from `iso_subdivision` to `iso_code`. Responses keep the server's keys without adding legacy duplicates.
17
+
18
+ This SDK explicitly selects the API contract supported by this SDK. It sends `X-API-Version: 2.2.0` on every lookup so responses match the API contract supported by the package. Your key and the team's saved default stay the same. The API still accepts earlier `Parse-Version` request pins.
17
19
 
18
20
  Upgrade the dependency in staging, review the [release notes](https://parseapi.com/docs/releases), and test the application before deploying the same code and dependency version to production. Commit your dependency lockfile so the tested package travels with your deployment. Future major SDK upgrades can select a newer API contract.
19
21
 
20
- Previously published SDKs keep their existing behavior and use the team's default. Requests without `Parse-Version` also use that default, managed in [Dashboard API version](https://parseapi.com/dashboard/versions). Keep it unchanged while older applications depend on it. Rolling back to an SDK without a version header restores the team default, so rollback only restores the old contract when that default has stayed unchanged.
22
+ Older SDKs keep their existing version selection. Requests without either version header use that default, managed in [Dashboard API version](https://parseapi.com/dashboard/versions). Keep it unchanged while older applications depend on it. Rolling back to an SDK without a version header restores the team default, so rollback only restores the old contract when that default has stayed unchanged.
21
23
 
22
- The package owns its supported API version. For direct HTTP integrations, an explicit `Parse-Version` header selects a supported contract. See [API versions and migration](https://parseapi.com/docs/versioning).
24
+ The package owns its supported API version. For direct HTTP integrations, an explicit `X-API-Version` header selects a supported contract. See [API versions and migration](https://parseapi.com/docs/versioning).
23
25
 
24
26
  ## Weather from a postal code
25
27
 
@@ -42,7 +44,7 @@ Pass `country` when a postal code or national phone number needs disambiguation.
42
44
 
43
45
  Results are plain data. Pass a returned code or coordinate to another operation when the task needs it. Check nullable values before composing the next call.
44
46
 
45
- Use `parse.postal('28202', country: 'US', deep: true)` for US ZIP tax references. `deep.tax` names the levy and `deep.tax_rate` is a percentage, so `7.9` means 7.9%. The state, county, city and special components explain that combined rate. An exact address can differ. Country and state lookups provide their own geographic reference rates, which should not be added to the ZIP rate. `nil` means unknown and `0` means known zero.
47
+ Use `parse.postal('28202', country: 'US', deep: true)` for US ZIP tax references. `tax.name` names the levy and `tax.rate` is a percentage, so `7.9` means 7.9%. The state, county, city and special components explain that combined rate. An exact address can differ. Country and state lookups provide their own geographic reference rates, which should not be added to the ZIP rate. `nil` means unknown and `0` means known zero.
46
48
 
47
49
  ## Company directory
48
50
 
@@ -57,28 +59,27 @@ unless candidates['next'].nil?
57
59
  query: 'GitLab', country: 'US', limit: 5, cursor: candidates['next']
58
60
  )
59
61
  end
60
- coverage = parse.company_coverage
61
62
  ```
62
63
 
63
64
  Use at most one selector: `query` for a name, `domain`, `ticker`, or `identifier`; country or exact industry filters also allow discovery without a selector. The API validates selectors and filters. Use `country` to scope candidates, `exchange` with a ticker, and `authority` with an identifier. Search returns `companies` and an opaque `next` cursor. Review candidate identity and match details before choosing a stable Company ID. Pass `next` as `cursor` with the same selector, filters and limit to continue that result set.
64
65
 
65
- Directory profiles are plain JSON data. `deep` belongs to each company in search results and adds legal/reference detail plus nullable `description`, `logo`, `founded`, and the `social_profiles`, `phone_numbers`, `email_addresses`, `domains` and `sources` collections. A logo is a reported URL. `founded` has `value` and `precision`, distinct from incorporation. Sources identify the website, filing or business register, supported fields and observation/update timestamps. Employee observations retain count, measurement date, organization scope and approximation; null means unknown. Missing, null, empty and unknown fields retain their response values. An empty search is a successful result. Invalid inputs and unknown IDs raise the existing API error.
66
+ Directory profiles are plain JSON data. Optional detail belongs to each company in search results and adds legal/reference detail plus nullable `description`, `logo`, `founded`, and the `social_profiles`, `phone_numbers`, `email_addresses`, `domains` and `sources` collections. A logo is a reported URL. `founded` has `value` and `precision`, distinct from incorporation. Sources identify the website, filing or business register, supported fields and observation/update timestamps. Employee observations retain count, measurement date, organization scope and approximation; null means unknown. Missing, null, empty and unknown fields retain their response values. An empty search is a successful result. Invalid inputs and unknown IDs raise the existing API error.
66
67
 
67
- The public-directory service retires national-number Company lookups in both API versions. Use the directory methods with API 2.0.0.
68
+ The public-directory service retires national-number Company lookups in both API versions. Use the directory methods with API 2.1.0.
68
69
 
69
- Company directory social profiles contain `platform`, `url` and `handle`; unknown metadata stays null. Phone and email records use `type` for the source-reported purpose. Earlier response fields remain readable by the client.
70
+ Company directory social profiles include `platform` and `url`. Known handles are included when available; unknown handles may be omitted or returned as null by older servers. Phone and email records use `type` for the source-reported purpose. Earlier response fields remain readable by the client.
70
71
 
71
72
  The recipe requests one candidate page, one explicitly chosen profile and directory coverage, plus a second page when a cursor is returned. Each operation uses the existing retry settings. The number-validation call remains unchanged. `lang` applies to national company-number lookup, while directory calls use the source labels.
72
73
 
73
74
  Discovery example: `parse.company_search(country: 'US', industry: '0700', industry_type: 'sic')`
74
75
 
75
- Supply `industry` and `industry_type` together. The supported namespace is `sic`, with an exact four-digit string such as `0700`; leading zeros are meaningful. Country-only discovery is also supported. Filters intersect and may narrow an existing selector. Country matches the profile country, not a headquarters or operating-presence claim. Unknown values do not match a requested filter. Filter-only candidates use `match.field: "filters"` and `match.value: null`; reuse the same filters and limit with a returned cursor. Counts describe this directory edition, not complete country coverage.
76
+ Supply `industry` and `industry_type` together. The supported namespace is `sic`, with an exact four-digit string such as `0700`; leading zeros are meaningful. Country-only discovery is also supported. Filters intersect and may narrow an existing selector. Country matches the profile country, not a headquarters or operating-presence claim. Unknown values do not match a requested filter. Filter-only candidates use `match.field: "filters"` and `match.value: null`; reuse the same filters and limit with a returned cursor.
76
77
 
77
78
 
78
79
  ## ISO identifiers
79
80
 
80
81
  Country uses `iso_alpha3` and `iso_numeric`, State uses the full
81
- `iso_subdivision` code such as `US-CA`, Language uses `iso_alpha3`, and Currency
82
+ `iso_code` code such as `US-CA`, Language uses `iso_alpha3`, and Currency
82
83
  uses `iso_numeric`. Primary `country`, `state`, `language` and `currency` codes
83
84
  keep their meaning. Results retain the selected API contract's exact keys,
84
85
  values, nulls and nesting. Earlier server contracts retain their earlier ISO
@@ -108,7 +109,6 @@ parse.company_id('co_caczn6wf36hj', deep: true)
108
109
  parse.company_search(domain: 'about.gitlab.com')
109
110
  parse.company_search(ticker: 'GTLB', exchange: 'Nasdaq')
110
111
  parse.company_search(identifier: '0001653482', authority: 'sec')
111
- parse.company_coverage
112
112
  parse.city('charlotte', country: 'US')
113
113
  parse.city_id('city_mb8mbqrkz8zb')
114
114
  parse.city_search('char', country: 'US', limit: 10)
@@ -118,8 +118,8 @@ parse.country('US')
118
118
  parse.country_states('US')
119
119
  parse.state('colorado')
120
120
  parse.state('NC', country: 'US')
121
- parse.state_districts('NC', country: 'US')
122
- parse.district('37081')
121
+ parse.state_counties('NC', country: 'US')
122
+ parse.county('37081')
123
123
  parse.continent('NA')
124
124
  parse.continent_countries('NA')
125
125
  parse.language('en')
@@ -152,13 +152,13 @@ parse.emoji_search('fire')
152
152
 
153
153
  The existing NAICS lookup and search methods remain available as compatibility names for Industry.
154
154
 
155
- Industry paid deep records include classification `deep.exclusions`, each with a description and linked codes. Generic exclusions can have no linked codes. Omitted or null exclusions in older responses remain unknown. Search results also include `match`: the matched `field` (`name`, `term` or `naics`) and `text`, plus `corrections` with `from` and `to` tokens for typo fallback. Corrections are empty for exact, plural and prefix matches. Direct code lookups omit `match`. Older responses may omit it.
155
+ Industry paid deep records include classification `exclusions`, each with a description and linked codes. Generic exclusions can have no linked codes. Omitted or null exclusions in older responses remain unknown. Search results also include `match`: the matched `field` (`name`, `term` or `naics`) and `text`, plus `corrections` with `from` and `to` tokens for typo fallback. Corrections are empty for exact, plural and prefix matches. Direct code lookups omit `match`. Older responses may omit it.
156
156
 
157
157
  Each lookup returns a plain hash with string keys. Related lookups are separate calls, such as `country_states('US')`. Reading the result makes no further requests. New response fields and `nil` values are preserved.
158
158
 
159
159
  DNS uses pooled requests on every plan. Omit `type` to check A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, SRV and PTR. Records contain `name`, `type`, `ttl` in seconds and a DNS presentation `value`. TXT values retain quoting and chunk boundaries. A selected question can include its CNAME chain. Empty records mean no records. Lookup failures remain errors.
160
160
 
161
- Name paid deep includes flat `short`, `directory`, and `initials` fields beside `gender` and `salutation`. `name_locale` selects CLDR formatting rules and defaults to `en`. It changes formatting only. Country remains gender context, and unavailable formatting is null. Older responses may omit these fields.
161
+ Name paid deep includes flat `short`, `directory`, and `initials` fields beside `gender`. `name_locale` selects CLDR formatting rules and defaults to `en`. It changes formatting only. Country remains gender context, and unavailable formatting is null. Older responses may omit these fields.
162
162
 
163
163
  ## Display language
164
164
 
@@ -174,7 +174,7 @@ The next call keeps its usual default unless it also supplies `lang`. Existing `
174
174
 
175
175
  ## Time
176
176
 
177
- `time` returns local ISO `at` with its UTC offset and integer Unix seconds in `unix`. The core `offset` preserves exact precision. Optional `deep.offset_seconds` gives the numeric offset, while `deep.offset_minutes` gives whole minutes. Historical offsets and ISO times can include offset seconds. Omitted `at` means now. With `to` or `targets`, an offsetless `at` is source wall time. Otherwise it is UTC. Include an offset for repeated local times around a clock change. Current time and conversion use pooled requests on every plan. Coordinate clock fields can be null when the timezone is unknown. Existing `timezone` methods remain supported.
177
+ `time` returns local ISO `at` with its UTC offset and integer Unix seconds in `unix`. The core `offset` preserves exact precision. Optional `offset_seconds` gives the numeric offset, while `offset_minutes` gives whole minutes. Historical offsets and ISO times can include offset seconds. Omitted `at` means now. With `to` or `targets`, an offsetless `at` is source wall time. Otherwise it is UTC. Include an offset for repeated local times around a clock change. Current time and conversion use pooled requests on every plan. Coordinate clock fields can be null when the timezone is unknown. Existing `timezone` methods remain supported.
178
178
 
179
179
  For an offsetless `at` with `to` or `targets`, choose how to handle a clock change with `disambiguation`. It applies to named-zone and coordinate Time calls.
180
180
 
@@ -193,7 +193,7 @@ result = parse.time('America/New_York', at: '2026-11-01T01:30:00',
193
193
  puts result['to']['at'] # 2026-11-01T06:30:00+00:00
194
194
  ```
195
195
 
196
- Canonical Time `deep` includes the pinned rule edition in `deep.timezone_database_version` and source-wall resolution in `deep.resolution`. Resolution records `kind` (`unique`, `overlap` or `gap`), the selected policy, signed `adjustment_seconds`, and chronological alternatives with exact `at`, Unix seconds and UTC offset. Unique times have an empty alternatives list. Explicit instants, current time and lookups without conversion have null resolution. Destination detail stays compact.
196
+ Canonical Time `deep` includes the pinned rule edition in `timezone_database_version` and source-wall resolution in `resolution`. Resolution records `kind` (`unique`, `overlap` or `gap`), the selected policy, signed `adjustment_seconds`, and chronological alternatives with exact `at`, Unix seconds and UTC offset. Unique times have an empty alternatives list. Explicit instants, current time and lookups without conversion omit resolution. Destination detail stays compact.
197
197
 
198
198
  Search serving IANA IDs by city or region, or omit the query to list all (Go and Rust use an empty string). Discovery returns `timezone_database_version` and sorted `timezones`. No search matches returns `timezones: []`.
199
199
 
@@ -221,13 +221,15 @@ Source deep adds `standard_offset`, `standard_offset_seconds`, signed `dst_offse
221
221
 
222
222
  ## Place statistics and optional detail
223
223
 
224
- Country Core contains the everyday reference: `name`, `name_full`, `name_local`, demonym, `iso_alpha3` and `iso_numeric` country identifiers, continent, region and subregion, currency, calling code, `flag`, language and timezone codes, borders, bloc memberships and `capital: { name, latitude, longitude }`. Paid Deep adds specialist detail, including population, total area and national statistics. `gdp_usd` and `gdp_per_capita_usd` are current US dollars; `population_growth_percent`, `urban_population_percent` and `internet_users_percent` use a 0–100 percent scale (growth can be negative or exceed 100). GDP per person and these three percentages round once to two decimals in the API response. `elevation_average` is average terrain elevation in meters; `lowest_point.elevation` and `highest_point.elevation` keep their point-specific meaning. Unknown stays null and a known zero stays zero. Country tax references are grouped once as `deep.tax: { name, rate }`; the rate remains a percentage. Read capital from the Core object and read the tax name and rate from the Deep tax object.
224
+ Country Core contains the everyday reference: `name`, `name_full`, `name_local`, demonym, `iso_alpha3` and `iso_numeric` country identifiers, continent, region and subregion, currency, calling code, `flag`, language and timezone codes, borders, bloc memberships and `capital: { name, latitude, longitude }`. Paid Deep adds specialist detail, including population, total area and national statistics. `gdp_usd` and `gdp_per_capita_usd` are current US dollars; `population_growth_percent`, `urban_population_percent` and `internet_users_percent` use a 0–100 percent scale (growth can be negative or exceed 100). GDP per person and these three percentages round once to two decimals in the API response. `elevation_average` is average terrain elevation in meters; `lowest_point.elevation` and `highest_point.elevation` keep their point-specific meaning. Unknown stays null and a known zero stays zero. Country tax references are grouped once as `tax: { name, rate }`; the rate remains a percentage. Read capital from the Core object and read optional tax references from `tax.name` and `tax.rate` on that same resource.
225
+
226
+ Country includes `postal_format` and `postal_regex` on every plan without requesting Deep. `postal_format` is an input hint based on one example, not a complete mask. `postal_regex` checks syntax, not whether a code exists or receives mail. Unavailable values are null.
225
227
 
226
228
  Australian postal lookups include core `localities` with suburb choices (`city`, `state`, `state_name`) on every plan. Null or an omitted field means unknown, while `[]` means the reviewed reference has no eligible choices. `city` stays null when the source is ambiguous, even if there is only one eligible choice. Let the user select their suburb and keep manual entry available. These are geographic choices, not mailing-address verification. [G-NAF source, adaptations and licence](https://parseapi.com/legal/attribution#postal-au).
227
229
 
228
- Postal paid profiles include compact `deep.property_tax: { annual_median }` where supported; `deep.currency` supplies the currency. District keeps the richer property-tax record with `annual_median`, `currency` and `period` (`YYYY-YYYY`). Both are area estimates of annual tax payable on owner-occupied homes, not a rate or an individual property bill. Unsupported, missing and censored estimates are null. Earlier nested currency and period values remain available when returned.
230
+ Postal paid Deep includes `currency`, `neighbors`, grouped `tax` and `property_tax: { annual_median }`. Property-tax amounts use `currency`. Tax contains `name`, `rate` and the `rate_state`, `rate_county`, `rate_city` and `rate_special` components in percent. Core provides the postal location answer.
229
231
 
230
- Weather minute forecasts use `precipitation_rate` (mm/hour) and `precipitation_rate_in` (inches/hour); update earlier minute field reads to those names. History `precipitation` and `precipitation_in` remain accumulated amounts. These clients return the server JSON directly, preserving null collections, known empty arrays and earlier payload keys without translating them.
232
+ District paid profiles include `property_tax` where supported. It contains `annual_median`, `currency` and `period`: median annual property tax payable on owner-occupied homes in the statistical area. The amount is adjusted to the final year of the reporting period (`YYYY-YYYY`). This is an area statistic, not a rate or an individual property bill. Unsupported, missing and censored estimates are null.
231
233
 
232
234
  ```ruby
233
235
  place = parse.postal('28202', country: 'US', deep: true)
@@ -240,7 +242,7 @@ Country deep includes `land_area` and `water_area` in km2, `coastline` in km, an
240
242
 
241
243
  Point returns the timezone ID with the core location. Its optional Deep adds terrain, compact nearest-city context and supported electoral detail on paid plans. Existing accounts retain their current Deep access. A nearest city is null when none is within 200 km.
242
244
 
243
- Weather returns current conditions by default. Paid deep adds specialist current measurements, forecasts and related detail. A past `date` is a UTC day and requires deep: it adds `deep.history` alongside current conditions. Date alone does not request history.
245
+ Weather returns current conditions by default. Paid deep adds specialist current measurements, forecasts and related detail. On a paid plan, a past `date` adds history for that UTC day alongside current conditions in API 2.1. Earlier contracts require an explicit detail request.
244
246
 
245
247
  ```ruby
246
248
  parse.weather(40.7128, -74.006, deep: true, date: '2026-08-15')
@@ -256,29 +258,29 @@ Bank inputs use `POST /bank` JSON bodies, keeping IBAN and account values out of
256
258
 
257
259
  ## Deep
258
260
 
259
- Choose enrichment for the question you need answered.
261
+ Call the API and get everything your plan includes. API 2.1 paid plans include their profile detail automatically; Free returns the complete everyday answer. Existing explicit `deep` options remain supported for compatibility. Mailbox verification is a separate explicit operation. An omitted or false SDK `deep` option follows the plan default; `true` remains an explicit compatibility request.
260
262
 
261
- | Operation | What `deep` requests |
263
+ | Operation | Included data and explicit checks |
262
264
  |---|---|
263
265
  | IP | Richer IP fields included with a paid plan. No separate check meter. |
264
266
  | Domain | Registration dates, registrar, status and DNSSEC, included with a paid plan. Use `dns` for DNS records and `mx` for mail routing. |
265
- | Email | A metered mailbox check with deliverability, catch-all, status, reason and address hints, using included email checks or enabled on-demand usage. |
267
+ | Email | Basic validation is separate. Call the explicit verification method for a metered mailbox check. |
266
268
  | Phone, Time, Date, Emoji, Point | Optional detail on paid plans in the same pooled request. Existing accounts retain their current Deep access. |
267
- | Language | All language facts are in Core; requested Deep is empty. |
268
- | Currency | Currency lookup facts are complete in Core; requested Deep is empty. Lookup and exchange-rate conversion use pooled requests. |
269
- | Country, State, District, City, Postal | The place profile on paid plans, including demographic and tax facts where held. |
269
+ | Language | All language facts are in Core; Deep adds no fields. |
270
+ | Currency | Currency lookup facts are complete in Core; Deep adds no fields. Lookup and exchange-rate conversion use pooled requests. |
271
+ | Country, State, County, City, Postal | The place profile on paid plans, including demographic and tax facts where held. |
270
272
  | Name, Industry | Name evidence or the industry definition profile on paid plans. |
271
273
  | Company | The complete product detail bag on paid plans. |
272
274
  | Weather | Specialist current measurements and the existing forecast, alert, air and history bag on paid plans. |
273
- | Carrier, HLR | Optional diagnostic detail within the same metered core unit, including Free allowance units. No second gate or additional check. |
275
+ | Carrier, HLR | The selected metered operation returns its complete result by default. No deep option is required. |
274
276
 
275
- Email deep includes mailbox status and the reason for the result, plus a suggested first name, no-reply flag, plus-address tag and mail service. The suggested name is not a verified identity. Unavailable details are null.
277
+ Explicit Email verification includes mailbox status and the reason for the result, plus a suggested first name, no-reply flag, plus-address tag and mail service. The suggested name is not a verified identity. Unavailable details are null.
276
278
 
277
279
  Reasons include `accepted`, `invalid_format`, `invalid_domain`, `no_mail_server`, `mailbox_not_found`, `mailbox_disabled`, `mailbox_full`, `catchall`, `disposable`, `temporary_failure`, `rejected` and `unconfirmed`.
278
280
 
279
281
  Carrier, caller, and HLR are separate metered operations. Choose them explicitly when you need their answers. Ordinary lookups retry twice by default. Metered checks use one attempt by default. Setting retries explicitly can repeat paid usage.
280
282
 
281
- Without `deep`, the response omits that key. When requested, it is an empty object if access is locked or the operation has no deep fields. Otherwise it contains the available fields. A missing or null field means unknown.
283
+ With `deep=true`, available extra fields appear at their natural resource homes. Without it, or without access, those optional fields are absent. Included unknown values remain null; false and zero retain their meanings. There is no `deep` response object.
282
284
 
283
285
  ```ruby
284
286
  ip = parse.ip('52.94.76.10', deep: true)
@@ -308,7 +310,7 @@ parse = ParseAPI.new(
308
310
  )
309
311
  ```
310
312
 
311
- Ordinary lookups retry network errors and HTTP 429, 500, 502, 503, and 504 up to twice. Carrier, caller, and HLR lookups, plus email with `deep: true`, make one attempt by default because repeating them can repeat paid usage. Address with `deep: true` also uses one attempt, reserving that behavior for future verification. This does not mean address deep currently has a separate charge.
313
+ Ordinary lookups retry network errors and HTTP 429, 500, 502, 503, and 504 up to twice. Carrier, caller, and HLR lookups, plus explicit Email verification, make one attempt by default because repeating them can repeat paid usage. Address with `deep: true` also uses one attempt, reserving that behavior for future verification. This does not mean address deep currently has a separate charge.
312
314
 
313
315
  Pass `retries: 0` to make every lookup a single attempt. An explicit count such as `retries: 2` applies to every lookup, including paid ones. A retried request can count toward usage even when the first response was lost. Omit `retries` or pass `nil` to use the defaults above.
314
316
 
@@ -336,7 +338,7 @@ generic logo; a known network without reviewed artwork also uses the generic log
336
338
  Optional Deep adds `prefix`, `issuer`, `country`, `type` and `prepaid` on paid plans
337
339
  in the same pooled request. Existing accounts retain their current Deep access.
338
340
  Requested but locked Deep is `{}`. Six or more digits enable directory
339
- matching. With Deep access, fewer digits return all-null Deep fields. Compare `deep.prefix` with
341
+ matching. With Deep access, fewer digits return all-null Deep fields. Compare `prefix` with
340
342
  `bin`: equal is an exact recorded match; shorter is broader; null is no match.
341
343
  The longest row wins, including null fields. `prepaid: null` means unknown, not
342
344
  false. This is partial reference data, not card validity or payment acceptance.
@@ -345,7 +347,7 @@ false. This is partial reference data, not card validity or payment acceptance.
345
347
  card = parse.card("51")
346
348
  puts card["logo"]
347
349
  details = parse.card("43737400", deep: true)
348
- issuer = details["deep"]["issuer"]
350
+ issuer = details["issuer"]
349
351
  ```
350
352
 
351
353
  Leading zeros are preserved. Only ASCII spaces, tabs, CR, LF and hyphens are
@@ -354,7 +356,7 @@ before dispatch, accepted input is forwarded unchanged. Never send a full card n
354
356
 
355
357
  ## Optional detail
356
358
 
357
- The default response answers the common task. Ask for `deep` when you need more detail about that same result. Core fields stay equal. City, Company directory, Industry and Emoji searches put detail inside each result. Postal nearby and distance put metropolitan detail beside the entity it describes. Time conversion keeps target detail in `to.deep` or each `targets` item; only the source has `deep.next_dst`.
359
+ The default response answers the common task. Ask for `deep` when you need more detail about that same result. Core fields stay equal. City, Company directory, Industry and Emoji searches put detail at the root of each result. Postal nearby and distance put metropolitan detail beside the entity it describes. Time conversion keeps target detail in `to` or each `targets` item; only the source has `next_dst`.
358
360
 
359
361
  ```ruby
360
362
  basic = parse.time('America/New_York')
@@ -372,7 +374,7 @@ Stack checks static homepage HTML and response headers. It returns the checked U
372
374
 
373
375
  `cms`, `servers`, `frameworks`, `ecommerce`, `analytics`, `chat`, `payments` and `hosting` are arrays because a site can use several technologies in each category. Each entry contains `technology`, `name` and nullable `version`. Technology codes are open strings. A successful check uses empty arrays for categories with no matches. When no HTML page could be checked, `checked_at` and all categories are null. Unknown or conflicting versions are null. Detections describe the checked homepage.
374
376
 
375
- Successful checks may be reused for up to 24 hours. `pretty` optionally formats the wire JSON. Stack uses your plan's request allowance and API version 2.0.0 selected by this client.
377
+ Successful checks may be reused for up to 24 hours. `pretty` optionally formats the wire JSON. Stack uses your plan's request allowance and API version 2.1.0 selected by this client.
376
378
 
377
379
  Stack defaults to a 35-second transport timeout so a first scan has time to finish. Other lookups retain their 10-second default. An explicit client timeout takes precedence.
378
380
 
@@ -391,17 +393,17 @@ GET /emoji/rocket
391
393
  ```
392
394
 
393
395
  Use `deep=true` for Unicode facts, keywords, tone families and available artwork.
394
- Artwork is keyed by style: `deep.artwork.openmoji.svg` is the SVG URL, and
395
- `deep.artwork.openmoji.png["72"]` is the 72×72 PNG URL (use your language’s map
396
+ Artwork is keyed by style: `artwork.openmoji.svg` is the SVG URL, and
397
+ `artwork.openmoji.png["72"]` is the 72×72 PNG URL (use your language’s map
396
398
  access syntax). The same shape applies to `noto` and `twemoji`. Missing styles
397
399
  and formats are omitted. URLs pin immutable artwork editions and retain their bytes.
398
400
  Core values stay unchanged. Text parsing returns `emojis` with UTF-16 `positions`;
399
401
  conversion returns `text` and unresolved tokens with positions and reasons.
400
402
 
401
403
  The compact JSON catalog contains offline identity, qualification-form and
402
- shortcode indexes. Request `profile=full` when artwork is needed and `lang` when
403
- localized names and keywords are needed. `/emoji/metadata` carries dataset
404
- coverage and shared source notices once. Artwork supports Google Noto, Twemoji
404
+ shortcode indexes. Use `lang` for localized names and keywords. Metadata and
405
+ shared source notices are included in the catalog. Read an individual emoji
406
+ with Deep for its artwork links. Artwork supports Google Noto, Twemoji
405
407
  and OpenMoji, with real SVG/PNG availability and immutable first-party URLs.
406
408
  A device's emoji font remains the ordinary display.
407
409
 
@@ -426,7 +428,7 @@ Collections support `name`, `population`, `country` and `elevation`; search also
426
428
 
427
429
  ## Canonical City operations
428
430
 
429
- Classic lookup, search, nearest and named-nearby methods retain their default envelopes and required-field models. Browse and coordinate-nearby use canonical lists: `object`, `data` and nullable `next_cursor` (camelCase properties in Swift/Kotlin). Keep all query options unchanged when continuing a page; no client fetches pages automatically.
431
+ Classic lookup, search, nearest and named-nearby methods retain their default envelopes and required-field models. Browse uses `cities` and coordinate-nearby uses `nearby`, with nullable `next_cursor` (camelCase properties in Swift/Kotlin). Keep all query options unchanged when continuing a page; no client fetches pages automatically.
430
432
 
431
433
  ```ruby
432
434
  page = parse.city_search('Viena', format: 'list', match: 'fuzzy', max_distance: 1)
@@ -434,7 +436,7 @@ children = parse.city_children('city_7aj899nvwyku')
434
436
  distance = parse.city_distance('city_7aj899nvwyku', 'city_7aj899nvwyku')
435
437
  ```
436
438
 
437
- Select `format=resource` for one City or `format=list` for a collection. Country inclusion/exclusion sets, timezone sets, inclusive population and meter-elevation bounds, stored-center `bbox` and signed multi-key sorting are available for collections. Unknown numeric facts do not match range filters.
439
+ Each route retains its default response. Country inclusion/exclusion sets, timezone sets, inclusive population and meter-elevation bounds, stored-center `bbox` and signed multi-key sorting are available for collections. Unknown numeric facts do not match range filters.
438
440
 
439
441
  Search defaults to prefix matching. Exact and fuzzy matching are explicit; fuzzy accepts maximum edit distance 1 or 2 and returns `match` evidence (`type`, `source`, `value`, `language`, `edit_distance`). Review a fuzzy choice before storing its ID.
440
442
 
@@ -456,8 +458,32 @@ Coverage by country and available fields is described at https://parseapi.com/ci
456
458
 
457
459
  Conditional `If-None-Match` reads and GeoJSON currently use HTTP directly. A matching City ETag returns 304 without a body; ordinary billing and rate limits apply. These JSON client methods do not supply conditional-cache handling.
458
460
 
461
+ IP paid Deep includes supported approximate location, `state_name`, `postal`, `latitude`, `longitude`, `timezone`, routed `network`, `asn_type` and public `proxy` status. Missing facts remain null. Coordinates describe range geography, not device GPS. `asn_type` classifies the origin network, not subscriber connection technology. Proxy/VPN false means unlisted. Optional fields are omitted without the requested detail or access.
462
+
459
463
  ## Capital coordinate migration
460
464
 
461
465
  Country and State capital coordinates use `latitude` and `longitude`. Update
462
466
  `capital.lat` and `capital.lon` reads to `capital.latitude` and
463
467
  `capital.longitude` when adopting this release.
468
+
469
+ ## API 2.1 upgrade
470
+
471
+ API 2.1 Time returns the clock first and the matched place in `location`. Read that place directly; `location.candidates` is for unresolved choices. Unused `resolution` is absent. City matches keep the match kind, text and language without the source category or spelling score. Holiday JSON keeps scope and completeness without calendar hashes; explicitly selected work-profile pins remain.
472
+
473
+ This client targets ParseAPI 2.1.0. Upgrading requires response-reader changes: optional detail now lives on its resource. Read `population` instead of `deep.population`. Deep remains an explicit request for optional detail. Without the request or access, optional fields are absent. A returned null still means unknown. User-Agent device, OS and browser are objects in every mode. Postal tax is one `tax` object. Specialist Weather measurements live in `current`. Metered Carrier and HLR return the complete purchased result without a Deep switch.
474
+
475
+ Use `parse.email_verify(email)` for mailbox verification. It sends POST `/email/verify` with `{ "email": "person@example.com" }` and defaults to no automatic retries. The earlier Email deep argument is accepted only as a migration alias for that same operation. App keys receive `permission_denied`. Bulk exports retain their existing column names and saved-job recovery.
476
+
477
+ The 2.0 API is a temporary migration bridge for older installed clients. There is one maintained SDK line using the 2.1 structure.
478
+
479
+ ## Upgrade to API 2.1
480
+
481
+ This version selects API `2.1.0`. Update existing `.deep` property reads to the fields at their natural homes, such as `country.population`. User-Agent identities are objects; Postal tax and Weather observations keep their documented object homes. Paid plans include their profile detail automatically in API 2.1. Free keeps its complete routine answer, and existing explicit `deep` options remain supported. Mailbox verification stays explicit.
482
+
483
+ **This minor version changes existing field reads.** Upgrade the SDK and your application reads together. Existing factories remain. Email verification is explicit and includes basic validation; Carrier/HLR need no extra detail request. Preserve missing values, `null`, `false` and `0`.
484
+
485
+ ## County migration: HTTP API 2.2
486
+
487
+ This source selects HTTP API `2.2.0`. County is the public name for counties and comparable administrative areas internationally. Use `county` and the State counties operation. Read `county`, `county_name`, `county_name_local` and `counties` in affected geography results; City `capital_of` uses `county` for this administrative level. Actual local types such as `department` and `district` retain their meaning.
488
+
489
+ This is a breaking field-read upgrade from earlier contracts. Deprecated District callable names remain source aliases, but SDK results use the canonical County fields. Update property reads before upgrading. Older installed packages keep their existing API contract, and this client does not change an account's saved default.
@@ -19,7 +19,12 @@ module ParseAPI
19
19
  end
20
20
 
21
21
  class Client
22
- API_VERSION = '2.0.0'.freeze
22
+ API_VERSION = '2.2.0'.freeze
23
+ private def city_format(value)
24
+ raise ArgumentError, 'Use format=geojson or omit format.' unless value.nil? || value == 'geojson'
25
+ value
26
+ end
27
+
23
28
  private_constant :API_VERSION
24
29
  DEFAULT_BASE_URL = 'https://api.parseapi.com'.freeze
25
30
  DEFAULT_TIMEOUT = 10
@@ -92,25 +97,29 @@ module ParseAPI
92
97
  get("/state/#{seg(code)}", country: country, deep: deep, lang: lang)
93
98
  end
94
99
 
95
- def state_districts(code, country: nil, deep: false, lang: nil)
96
- get("/state/#{seg(code)}/districts", country: country, deep: deep, lang: lang)
100
+ def state_counties(code, country: nil, deep: false, lang: nil)
101
+ get("/state/#{seg(code)}/counties", country: country, deep: deep, lang: lang)
97
102
  end
98
103
 
99
- def district(code, country: nil, state: nil, deep: false, lang: nil)
100
- get("/district/#{seg(code)}", country: country, state: state, deep: deep, lang: lang)
104
+ def county(code, country: nil, state: nil, deep: false, lang: nil)
105
+ get("/county/#{seg(code)}", country: country, state: state, deep: deep, lang: lang)
101
106
  end
102
107
 
108
+ # Deprecated source aliases. API 2.2 results use county/counties fields.
109
+ alias_method :state_districts, :state_counties
110
+ alias_method :district, :county
111
+
103
112
  def city(name, country: nil, state: nil, deep: false, lang: nil, type: nil, grain: nil, hierarchy: false, aliases: false, ambiguity: nil, format: nil, romanized: false)
104
- get("/city/#{seg(name)}", country: country, state: state, deep: deep, lang: lang, type: type, grain: grain, hierarchy: hierarchy, aliases: aliases, ambiguity: ambiguity, romanized: romanized, format: format)
113
+ get("/city/#{seg(name)}", country: country, state: state, deep: deep, lang: lang, type: type, grain: grain, hierarchy: hierarchy, aliases: aliases, ambiguity: ambiguity, romanized: romanized, format: city_format(format))
105
114
  end
106
115
 
107
116
  def city_id(id, deep: false, lang: nil, hierarchy: false, format: nil, romanized: false)
108
- get("/city/id/#{seg(id)}", deep: deep, lang: lang, hierarchy: hierarchy, romanized: romanized, format: format)
117
+ get("/city/id/#{seg(id)}", deep: deep, lang: lang, hierarchy: hierarchy, romanized: romanized, format: city_format(format))
109
118
  end
110
119
 
111
- def city_search(query, country: nil, state: nil, limit: nil, deep: false, lang: nil, type: nil, grain: nil, hierarchy: false, aliases: false, min_population: nil, max_population: nil, timezone: nil, bbox: nil, sort: nil, order: nil, page: false, cursor: nil, format: nil, countries: nil, exclude_countries: nil, timezones: nil, min_elevation: nil, max_elevation: nil, match: nil, max_distance: nil, romanized: false)
120
+ def city_search(query, country: nil, state: nil, limit: nil, deep: false, lang: nil, type: nil, grain: nil, hierarchy: false, aliases: false, min_population: nil, max_population: nil, bbox: nil, sort: nil, page: false, cursor: nil, format: nil, countries: nil, exclude_countries: nil, timezones: nil, min_elevation: nil, max_elevation: nil, match: nil, max_distance: nil, romanized: false)
112
121
  spelling = !match.nil? || !max_distance.nil?
113
- response = get(spelling ? '/city/search' : '/city', q: query, match: match, max_distance: max_distance, country: country, state: state, limit: limit, deep: deep, lang: lang, type: type, grain: grain, hierarchy: hierarchy, aliases: aliases, min_population: min_population, max_population: max_population, timezone: timezone, bbox: bbox, sort: sort, order: order, page: page, cursor: cursor, romanized: romanized, format: format, countries: city_csv(countries), exclude_countries: city_csv(exclude_countries), timezones: city_csv(timezones), min_elevation: min_elevation, max_elevation: max_elevation)
122
+ response = get(spelling ? '/city/search' : '/city', q: query, match: match, max_distance: max_distance, country: country, state: state, limit: limit, deep: deep, lang: lang, type: type, grain: grain, hierarchy: hierarchy, aliases: aliases, min_population: min_population, max_population: max_population, bbox: bbox, sort: sort, page: page, cursor: cursor, romanized: romanized, format: city_format(format), countries: city_csv(countries), exclude_countries: city_csv(exclude_countries), timezones: city_csv(timezones), min_elevation: min_elevation, max_elevation: max_elevation)
114
123
  if spelling && format.nil?
115
124
  classic = {"q"=>query, "cities"=>response.fetch("data"), "next_cursor"=>response["next_cursor"]}
116
125
  classic["country"] = country unless country.nil?
@@ -121,11 +130,11 @@ module ParseAPI
121
130
  end
122
131
 
123
132
  def city_nearest(lat, lon, deep: false, lang: nil, country: nil, state: nil, type: nil, grain: nil, hierarchy: false, format: nil, romanized: false)
124
- get('/city', lat: lat, lon: lon, deep: deep, lang: lang, country: country, state: state, type: type, grain: grain, hierarchy: hierarchy, romanized: romanized, format: format)
133
+ get('/city', lat: lat, lon: lon, deep: deep, lang: lang, country: country, state: state, type: type, grain: grain, hierarchy: hierarchy, romanized: romanized, format: city_format(format))
125
134
  end
126
135
 
127
- def city_nearby(name, radius: nil, unit: nil, country: nil, state: nil, limit: nil, deep: false, lang: nil, type: nil, grain: nil, hierarchy: false, aliases: false, ambiguity: nil, min_population: nil, max_population: nil, timezone: nil, bbox: nil, sort: nil, order: nil, page: false, cursor: nil, format: nil, countries: nil, exclude_countries: nil, timezones: nil, min_elevation: nil, max_elevation: nil, romanized: false)
128
- get("/city/#{seg(name)}/nearby", radius: radius, unit: unit, country: country, state: state, limit: limit, deep: deep, lang: lang, type: type, grain: grain, hierarchy: hierarchy, aliases: aliases, ambiguity: ambiguity, min_population: min_population, max_population: max_population, timezone: timezone, bbox: bbox, sort: sort, order: order, page: page, cursor: cursor, romanized: romanized, format: format, countries: city_csv(countries), exclude_countries: city_csv(exclude_countries), timezones: city_csv(timezones), min_elevation: min_elevation, max_elevation: max_elevation)
136
+ def city_nearby(name, radius: nil, unit: nil, country: nil, state: nil, limit: nil, deep: false, lang: nil, type: nil, grain: nil, hierarchy: false, aliases: false, ambiguity: nil, min_population: nil, max_population: nil, bbox: nil, sort: nil, page: false, cursor: nil, format: nil, countries: nil, exclude_countries: nil, timezones: nil, min_elevation: nil, max_elevation: nil, romanized: false)
137
+ get("/city/#{seg(name)}/nearby", radius: radius, unit: unit, country: country, state: state, limit: limit, deep: deep, lang: lang, type: type, grain: grain, hierarchy: hierarchy, aliases: aliases, ambiguity: ambiguity, min_population: min_population, max_population: max_population, bbox: bbox, sort: sort, page: page, cursor: cursor, romanized: romanized, format: city_format(format), countries: city_csv(countries), exclude_countries: city_csv(exclude_countries), timezones: city_csv(timezones), min_elevation: min_elevation, max_elevation: max_elevation)
129
138
  end
130
139
 
131
140
  # Look up a postal area. Pass country when known. Check nullable coordinates before another
@@ -148,13 +157,13 @@ module ParseAPI
148
157
  end
149
158
 
150
159
 
151
- def city_list(country: nil, state: nil, limit: nil, deep: false, lang: nil, type: nil, grain: nil, hierarchy: false, min_population: nil, max_population: nil, timezone: nil, bbox: nil, sort: nil, order: nil, cursor: nil, countries: nil, exclude_countries: nil, timezones: nil, min_elevation: nil, max_elevation: nil, romanized: false)
152
- get('/city', browse: true, country: country, state: state, limit: limit, deep: deep, lang: lang, type: type, grain: grain, hierarchy: hierarchy, min_population: min_population, max_population: max_population, timezone: timezone, bbox: bbox, sort: sort, order: order, cursor: cursor, romanized: romanized, format: 'list', countries: city_csv(countries), exclude_countries: city_csv(exclude_countries), timezones: city_csv(timezones), min_elevation: min_elevation, max_elevation: max_elevation)
160
+ def city_list(country: nil, state: nil, limit: nil, deep: false, lang: nil, type: nil, grain: nil, hierarchy: false, min_population: nil, max_population: nil, bbox: nil, sort: nil, cursor: nil, countries: nil, exclude_countries: nil, timezones: nil, min_elevation: nil, max_elevation: nil, romanized: false)
161
+ get('/city', browse: true, country: country, state: state, limit: limit, deep: deep, lang: lang, type: type, grain: grain, hierarchy: hierarchy, min_population: min_population, max_population: max_population, bbox: bbox, sort: sort, cursor: cursor, romanized: romanized, countries: city_csv(countries), exclude_countries: city_csv(exclude_countries), timezones: city_csv(timezones), min_elevation: min_elevation, max_elevation: max_elevation)
153
162
  end
154
163
 
155
164
 
156
- def city_nearby_coords(lat, lon, radius: nil, unit: nil, country: nil, state: nil, limit: nil, deep: false, lang: nil, type: nil, grain: nil, hierarchy: false, min_population: nil, max_population: nil, timezone: nil, bbox: nil, sort: nil, order: nil, cursor: nil, countries: nil, exclude_countries: nil, timezones: nil, min_elevation: nil, max_elevation: nil, romanized: false)
157
- get('/city', lat: lat, lon: lon, nearby: true, radius: radius, unit: unit, country: country, state: state, limit: limit, deep: deep, lang: lang, type: type, grain: grain, hierarchy: hierarchy, min_population: min_population, max_population: max_population, timezone: timezone, bbox: bbox, sort: sort, order: order, cursor: cursor, romanized: romanized, format: 'list', countries: city_csv(countries), exclude_countries: city_csv(exclude_countries), timezones: city_csv(timezones), min_elevation: min_elevation, max_elevation: max_elevation)
165
+ def city_nearby_coords(lat, lon, radius: nil, unit: nil, country: nil, state: nil, limit: nil, deep: false, lang: nil, type: nil, grain: nil, hierarchy: false, min_population: nil, max_population: nil, bbox: nil, sort: nil, cursor: nil, countries: nil, exclude_countries: nil, timezones: nil, min_elevation: nil, max_elevation: nil, romanized: false)
166
+ get('/city', lat: lat, lon: lon, nearby: true, radius: radius, unit: unit, country: country, state: state, limit: limit, deep: deep, lang: lang, type: type, grain: grain, hierarchy: hierarchy, min_population: min_population, max_population: max_population, bbox: bbox, sort: sort, cursor: cursor, romanized: romanized, countries: city_csv(countries), exclude_countries: city_csv(exclude_countries), timezones: city_csv(timezones), min_elevation: min_elevation, max_elevation: max_elevation)
158
167
  end
159
168
 
160
169
 
@@ -203,23 +212,20 @@ module ParseAPI
203
212
  get('/company', q: query, domain: domain, ticker: ticker, identifier: identifier, country: country, exchange: exchange, authority: authority, limit: limit, cursor: cursor, deep: deep, industry: industry, industry_type: industry_type)
204
213
  end
205
214
 
206
- # Read the directory edition and source coverage.
207
- def company_coverage
208
- get('/company/directory/coverage')
209
- end
210
-
211
215
  # Parse an email and check its format and domain. Deep explicitly requests a metered
212
216
  # deliverability check. Deep checks use one attempt by default. An explicit retry count can
213
217
  # repeat paid usage.
214
218
  def email(email, deep: false)
215
- get("/email/#{seg(email)}", deep: deep)
219
+ deep ? email_verify(email) : get("/email/#{seg(email)}")
220
+ end
221
+
222
+ # Run one explicit metered mailbox check, without automatic retries.
223
+ def email_verify(email)
224
+ get('/email/verify', {}, {}, { email: email })
216
225
  end
217
226
 
218
227
 
219
228
 
220
- def bin(bin, deep: false)
221
- get("/bin/#{seg(bin)}", deep: deep)
222
- end
223
229
 
224
230
 
225
231
 
@@ -361,7 +367,7 @@ module ParseAPI
361
367
  get('/elevation', lat: lat, lon: lon)
362
368
  end
363
369
 
364
- # Resolve the country, state, district and timezone at coordinates. Deep adds terrain and
370
+ # Resolve the country, state, county and timezone at coordinates. Deep adds terrain and
365
371
  # compact nearest-city context on every plan. The timezone ID stays in core. The nearest city is
366
372
  # null when none is within 200 km.
367
373
  def point(lat, lon, deep: false, lang: nil)
@@ -370,7 +376,7 @@ module ParseAPI
370
376
 
371
377
  # Get current conditions in metric and imperial units. Paid deep adds specialist current
372
378
  # measurements, forecasts and related detail. With deep, date selects a past UTC day (YYYY-MM-
373
- # DD) in deep.history alongside current conditions. Date alone does not request history.
379
+ # DD) in history alongside current conditions. Date alone does not request history.
374
380
  def weather(lat, lon, deep: false, date: nil)
375
381
  get('/weather', lat: lat, lon: lon, deep: deep, date: date)
376
382
  end
@@ -388,13 +394,10 @@ module ParseAPI
388
394
  end
389
395
 
390
396
  # Download the full filtered JSON catalog, including offline resolution maps.
391
- def emoji_catalog(deep: true, lang: nil, category: nil, subcategory: nil, version: nil, max_version: nil, include_skin_tones: nil, profile: nil)
392
- get('/emoji/catalog', profile: profile, deep: deep.to_s, lang: lang, category: category, subcategory: subcategory, version: version, max_version: max_version, include_skin_tones: include_skin_tones.nil? ? nil : include_skin_tones.to_s)
397
+ def emoji_catalog(lang: nil, category: nil, subcategory: nil, version: nil, max_version: nil, include_skin_tones: nil)
398
+ get('/emoji/catalog', lang: lang, category: category, subcategory: subcategory, version: version, max_version: max_version, include_skin_tones: include_skin_tones.nil? ? nil : include_skin_tones.to_s)
393
399
  end
394
400
 
395
- def emoji_metadata
396
- get('/emoji/metadata')
397
- end
398
401
 
399
402
  def emoji_categories
400
403
  get('/emoji/categories')
@@ -477,7 +480,7 @@ module ParseAPI
477
480
  end
478
481
 
479
482
  def request_headers(extra)
480
- { 'X-API-Key' => @api_key, 'User-Agent' => "parseapi-ruby/#{VERSION}" }.merge(extra).merge('Parse-Version' => API_VERSION)
483
+ { 'X-API-Key' => @api_key, 'User-Agent' => "parseapi-ruby/#{VERSION}" }.merge(extra).merge('X-API-Version' => API_VERSION)
481
484
  end
482
485
 
483
486
  # Returns [status, headers_hash, body_string]. Overridden in tests.
@@ -530,7 +533,7 @@ module ParseAPI
530
533
  return @retries unless @retries.nil?
531
534
 
532
535
  product = path.split('/', 3)[1]
533
- metered = METERED_CORE.include?(product) || (%w[email vat address].include?(product) && params[:deep] == true)
536
+ metered = path == '/email/verify' || METERED_CORE.include?(product) || (%w[email vat address].include?(product) && params[:deep] == true)
534
537
  metered ? 0 : DEFAULT_RETRIES
535
538
  end
536
539
 
@@ -1,3 +1,3 @@
1
1
  module ParseAPI
2
- VERSION = '1.11.4'.freeze
2
+ VERSION = '1.13.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parseapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.4
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ParseAPI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-01 00:00:00.000000000 Z
11
+ date: 2026-11-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: