@parseapi/sdk 1.12.3 → 1.12.5

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.
package/README.md CHANGED
@@ -189,8 +189,8 @@ await parse.date.today();
189
189
  await parse.holiday('US', { year: 2026 });
190
190
  await parse.holiday.date('US', '2026-12-25');
191
191
  await parse.elevation(35.2271, -80.8431);
192
- await parse.elevation.points([[35.2271, -80.8431], [40.7128, -74.006]]);
193
- await parse.elevation.path([[35.2271, -80.8431], [35.5951, -82.5515]], 100);
192
+ await parse.elevation.points([[39.7392, -104.9903], [39.75, -104.98]]);
193
+ await parse.elevation.path([[39.7392, -104.9903], [39.75, -104.98]], 100);
194
194
  await parse.point(36.0726, -79.792);
195
195
  await parse.weather(40.7128, -74.006);
196
196
  await parse.domain('example.com');
@@ -215,9 +215,11 @@ DNS uses pooled requests on every plan. Omit `type` to check A, AAAA, CNAME, MX,
215
215
 
216
216
  ## Elevation
217
217
 
218
- `elevation(lat, lon)` returns one sample with meters, feet and grid resolution in meters. `elevation.points(...)` accepts up to 512 `[lat, lon]` pairs, a `lat,lon|lat,lon` string, or `enc:` followed by a Google encoded polyline. Its `points` array preserves input order and duplicate coordinates. Unknown samples stay null, and negative elevations and known zero values are preserved. Each list uses one pooled request. The SDK automatically uses JSON POST for long URLs and numeric coordinates that JavaScript expresses in exponent notation.
218
+ `elevation(lat, lon)` returns one sample with meters, feet and grid resolution in meters. `elevation.points(...)` accepts up to 512 points per local batch as `[lat, lon]` pairs, a `lat,lon|lat,lon` string, or `enc:` followed by a Google encoded polyline. Its `points` array preserves input order and duplicate coordinates. Unknown samples stay null, and negative elevations and known zero values are preserved. Each accepted local list uses one pooled request. The SDK automatically uses JSON POST for long URLs and numeric coordinates that JavaScript expresses in exponent notation.
219
219
 
220
- `elevation.path(path, samples)` accepts the same input formats with 2-512 path vertices and a required integer sample count from 2 to 512. Its `points` array includes both endpoints, with samples spaced uniformly by cumulative great-circle distance along the path. Each segment follows the shortest arc. A segment with antipodal endpoints is rejected because it does not define a unique arc. Path sampling uses one pooled request and automatically selects JSON POST for a long URL.
220
+ `elevation.path(path, samples)` accepts the same input formats with 2-512 path vertices and a required integer sample count from 2 to 512. Its `points` array includes both endpoints, with samples spaced uniformly by cumulative great-circle distance along the path. Each segment follows the shortest arc. A segment with antipodal endpoints is rejected because it does not define a unique arc. Each accepted local path uses one pooled request and automatically selects JSON POST for a long URL.
221
+
222
+ Each local batch is limited to 25 km between any two coordinates and 12 distinct terrain files in total across the fine grid and all possible global fallback files. For paths, both the supplied vertices and generated samples must fit the 25 km span. The terrain file budget applies to the sampled coordinates. This is a span limit, not a limit on cumulative path length. Send longer or more spread-out routes in shorter sections. An over-limit batch returns HTTP 400. GET, POST and polylines use the same limits. The SDK does not silently split or discard coordinates.
221
223
 
222
224
  ## Time
223
225
 
@@ -269,6 +271,10 @@ Source deep adds `standard_offset`, `standard_offset_seconds`, signed `dst_offse
269
271
 
270
272
  ## Place statistics and optional detail
271
273
 
274
+ Country Core contains the everyday reference: `name`, `name_full`, `name_local`, demonym and country codes, continent, region and subregion, currency, calling code, `flag`, language and timezone codes, borders, bloc memberships and `capital: { name, lat, lon }`. 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.
275
+
276
+ Read `name_full` from current responses. The older `full_name` type member remains available for earlier payloads; responses are returned as received, with null values preserved. Historical Deep fields remain readable in earlier responses; they are not added to the current wire result.
277
+
272
278
  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).
273
279
 
274
280
  Postal and District paid profiles include `deep.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.
@@ -408,10 +414,10 @@ console.log(basic.at, detail.deep?.next_dst);
408
414
 
409
415
  ## Domain results with unknown availability
410
416
 
411
- Use `domainResult` when deciding whether a domain is registered. It returns `available: true` for unregistered, `false` for registered, and `null` when the registry answer is unknown.
417
+ Use `domain` when deciding whether a domain is registered. It returns `available: true` for unregistered, `false` for registered, and `null` when the registry answer is unknown.
412
418
 
413
419
  ```ts
414
- const result = await parse.domainResult('example.com', { deep: true });
420
+ const result = await parse.domain('example.com', { deep: true });
415
421
  if (result.available === null) {
416
422
  console.log('Registration could not be determined');
417
423
  } else {
@@ -421,7 +427,7 @@ if (result.available === null) {
421
427
 
422
428
  This makes one ordinary Domain lookup with the same options, authentication and retry policy. Registration detail may be partial. Missing or null `dnssec` is unknown, while `false` is a known negative. Missing or null `status` is unknown, while `[]` is a known empty list.
423
429
 
424
- The existing `domain` method and `Domain` type keep their published interface. That older type declares `available` as a boolean even though the API can return null. Use `domainResult` for its accurate nullable type.
430
+ The ordinary `Domain` type represents unknown availability as `null`. The existing `domainResult` method and its result type remain available.
425
431
 
426
432
  ## Stack API
427
433
 
package/dist/index.cjs CHANGED
@@ -448,7 +448,7 @@ var EmojiCatalog = class {
448
448
  };
449
449
 
450
450
  // src/index.ts
451
- var VERSION = "1.12.3";
451
+ var VERSION = "1.12.5";
452
452
  var API_VERSION = "2.0.0";
453
453
  var DEFAULT_BASE_URL = "https://api.parseapi.com";
454
454
  var DEFAULT_TIMEOUT_MS = 1e4;
@@ -752,7 +752,7 @@ function parseAPI(apiKey, options = {}) {
752
752
  hlr: (number, opts) => request(`/hlr/${enc(number)}`, { country: opts?.country, ...deepQuery(opts) }, void 0, opts),
753
753
  /** Identify website technologies by category, with homepage or bounded site coverage metadata. */
754
754
  stack: (domain, opts) => request(`/stack/${enc(domain)}`, { ...deepQuery(opts), pretty: opts?.pretty }, void 0, opts),
755
- /** Check whether a domain is registered. Deep adds registration dates, registrar, status and DNSSEC on paid plans. */
755
+ /** Check registration: available is true, false or null when unknown. Paid Deep adds available registration details. */
756
756
  domain: (domain, opts) => request(`/domain/${enc(domain)}`, deepQuery(opts), void 0, opts),
757
757
  /** Check domain registration while preserving unknown availability and partial detail. */
758
758
  domainResult: (domain, opts) => request(`/domain/${enc(domain)}`, deepQuery(opts), void 0, opts),
package/dist/index.d.cts CHANGED
@@ -47,6 +47,8 @@ interface Continent {
47
47
  interface ContinentCountryItem {
48
48
  country: string;
49
49
  name: string;
50
+ flag?: string | null;
51
+ /** @deprecated Present only in earlier compact response payloads. */
50
52
  emoji?: string | null;
51
53
  calling_code?: string | null;
52
54
  }
@@ -63,11 +65,36 @@ interface Country {
63
65
  currency_name: string | null;
64
66
  currency_symbol: string | null;
65
67
  calling_code: string | null;
66
- emoji: string | null;
67
- languages: string[];
68
+ flag: string | null;
69
+ /** @deprecated Present only in earlier response payloads. */
70
+ emoji?: string | null;
71
+ languages: string[] | null;
68
72
  deep?: Deep<CountryDeep>;
69
73
  /** IANA timezones used by the country. */
70
74
  timezones: string[] | null;
75
+ iso3?: string | null;
76
+ numeric?: number | null;
77
+ /** Official long name. */
78
+ name_full?: string | null;
79
+ /** @deprecated Legacy wire spelling; retained for earlier responses. */
80
+ full_name?: string | null;
81
+ demonym?: string | null;
82
+ region?: string | null;
83
+ subregion?: string | null;
84
+ capital?: CountryCapital | null;
85
+ capital_lat?: number | null;
86
+ capital_lon?: number | null;
87
+ borders?: string[] | null;
88
+ blocs?: string[] | null;
89
+ }
90
+ interface CountryCapital {
91
+ name: string | null;
92
+ lat: number | null;
93
+ lon: number | null;
94
+ }
95
+ interface CountryTax {
96
+ name: string | null;
97
+ rate: number | null;
71
98
  }
72
99
  interface CountryStateItem {
73
100
  state: string;
@@ -341,19 +368,21 @@ interface Stack {
341
368
  }
342
369
  interface DomainRegistration {
343
370
  registered: boolean;
344
- created: string | null;
345
- updated: string | null;
346
- expires: string | null;
347
- registrar: string | null;
348
- status: string[];
349
- dnssec: boolean;
371
+ created?: string | null;
372
+ updated?: string | null;
373
+ expires?: string | null;
374
+ registrar?: string | null;
375
+ status?: string[] | null;
376
+ /** Missing or null is unknown; false is a known unsigned observation. */
377
+ dnssec?: boolean | null;
350
378
  }
351
379
  interface DomainDeep {
352
380
  registration: DomainRegistration;
353
381
  }
354
382
  interface Domain {
355
383
  domain: string;
356
- available: boolean;
384
+ /** true means unregistered, false means registered, null means unknown. */
385
+ available: boolean | null;
357
386
  deep?: Deep<DomainDeep>;
358
387
  }
359
388
  /** Network identity for an autonomous system number. */
@@ -1187,12 +1216,12 @@ interface CountryDeep {
1187
1216
  highest_point?: CountryElevationPoint | null;
1188
1217
  tld: string | null;
1189
1218
  /** Levy name, such as VAT, GST or sales tax. Null when unknown or not applicable. */
1190
- tax?: string | null;
1191
- /** Standard country reference rate in percent (19 means 19%). Null is unknown, zero is known zero. */
1219
+ tax?: CountryTax | null;
1220
+ /** @deprecated Historical flat field; current responses use tax.rate. */
1192
1221
  tax_rate?: number | null;
1193
- /** Tax registration number mask (9 is a digit, A is a letter). Describes format only. */
1222
+ /** @deprecated Historical flat field; no longer returned. */
1194
1223
  tax_id_format?: string | null;
1195
- /** Anchored tax registration number format regex. A match does not establish registration. */
1224
+ /** @deprecated Historical flat field; no longer returned. */
1196
1225
  tax_id_regex?: string | null;
1197
1226
  borders: string[];
1198
1227
  /** Bloc memberships (EU, SCHENGEN, NATO, ...). Empty when none. */
@@ -1209,6 +1238,13 @@ interface CountryDeep {
1209
1238
  ioc: string | null;
1210
1239
  fifa: string | null;
1211
1240
  plate: string | null;
1241
+ gdp_usd?: number | null;
1242
+ gdp_per_capita_usd?: number | null;
1243
+ population_growth_percent?: number | null;
1244
+ urban_population_percent?: number | null;
1245
+ internet_users_percent?: number | null;
1246
+ /** Average terrain elevation in meters above sea level. */
1247
+ elevation_average?: number | null;
1212
1248
  }
1213
1249
  interface CountryElevationPoint {
1214
1250
  name: string | null;
@@ -2245,7 +2281,7 @@ declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
2245
2281
  hlr: (number: string, opts?: HlrOptions) => Promise<Hlr>;
2246
2282
  /** Identify website technologies by category, with homepage or bounded site coverage metadata. */
2247
2283
  stack: (domain: string, opts?: StackOptions) => Promise<Stack>;
2248
- /** Check whether a domain is registered. Deep adds registration dates, registrar, status and DNSSEC on paid plans. */
2284
+ /** Check registration: available is true, false or null when unknown. Paid Deep adds available registration details. */
2249
2285
  domain: (domain: string, opts?: DomainOptions) => Promise<Domain>;
2250
2286
  /** Check domain registration while preserving unknown availability and partial detail. */
2251
2287
  domainResult: (domain: string, opts?: DomainOptions) => Promise<DomainResult>;
@@ -2395,4 +2431,4 @@ interface CityNearbyCall {
2395
2431
  (name: string, opts: CityNearbyOptions): Promise<CityNearby | CityCollection>;
2396
2432
  }
2397
2433
 
2398
- export { type Address, type AddressOptions, type AddressSearch, type AddressSearchOptions, type AddressSuggestion, type AgentTask, type AgentTaskInput, type AgentTaskLookupInput, type AgentTaskResult, type Asn, type AsnOptions, BULK_CHECKS, type Bin, type BinOptions, ParseAPIError as BulkAPIError, type BulkClient, type BulkClientOptions, type BulkJob, type BulkPreview, type BulkPreviewInput, type BulkQuote, type BulkRequestOptions, type BulkResult, type BulkStartInput, type BulkStatus, type BulkUpload, type BulkUploadInput, type Caller, type CallerOptions, type Card, type CardDeep, type CardOptions, type Carrier, type CarrierDeep, type CarrierOptions, type City, type CityAmbiguityCandidate, type CityAncestorsOptions, type CityCollection, type CityCollectionFilters, type CityDeep, type CityDistance, type CityDistanceOptions, type CityGrain, type CityIdCall, type CityIdOptions, type CityList, type CityListOptions, type CityLookupCall, type CityMatch, type CityNearby, type CityNearbyCall, type CityNearbyCoordinates, type CityNearbyCoordinatesOptions, type CityNearbyOptions, type CityNearest, type CityNearestCall, type CityNearestOptions, type CityOptions, type CityPagingOptions, type CityParent, type CityRelations, type CityRelationsOptions, type CityResource, type CityResponseOptions, type CityScopeOptions, type CitySearch, type CitySearchCall, type CitySearchOptions, type CitySort, type Company, type CompanyCandidate, type CompanyCountry, type CompanyCoverage, type CompanyCoverageOptions, type CompanyDeep, type CompanyEmailAddress, type CompanyIdOptions, type CompanyMatch, type CompanyOptions, type CompanyPhoneNumber, type CompanyProfile, type CompanyProfileAddress, type CompanyProfileDeep, type CompanyProfileDomain, type CompanyProfileEmail, type CompanyProfileEmployees, type CompanyProfileFounding, type CompanyProfileIdentifier, type CompanyProfileIndustry, type CompanyProfileJurisdiction, type CompanyProfileListing, type CompanyProfilePhone, type CompanyProfileRegistration, type CompanyProfileRegistrationAddress, type CompanyProfileRegistrationLegalForm, type CompanyProfileSource, type CompanyProfileWebsite, type CompanySearch, type CompanySearchOptions, type CompanySocialProfile, type Continent, type ContinentCountries, type ContinentCountriesOptions, type ContinentCountryItem, type ContinentOptions, type Country, type CountryDeep, type CountryElevationPoint, type CountryEmergency, type CountryOptions, type CountryStateItem, type CountryStates, type CountryStatesOptions, type DateInfo, type DateInfoDeep, type DateOptions, type DateTodayOptions, type Deep, type District, type DistrictDeep, type DistrictOptions, type Dns, type DnsOptions, type DnsRecord, type Domain, type DomainDeep, type DomainOptions, type DomainRegistration, type DomainRegistrationResult, type DomainResult, type DomainResultDeep, type Elevation, type ElevationLocations, type ElevationOptions, type Email, type EmailDeep, type EmailOptions, type Emoji, type EmojiArtwork, type EmojiArtworkSource, type EmojiBrowse, type EmojiBrowseOptions, EmojiCatalog, type EmojiCatalogConvertOptions, type EmojiCatalogData, EmojiCatalogError, type EmojiCatalogLocalization, type EmojiCatalogLookupOptions, type EmojiCatalogOptions, type EmojiCatalogParseOptions, type EmojiCatalogRegexOptions, type EmojiCatalogScope, type EmojiCatalogSearchFacts, type EmojiCatalogSearchOptions, type EmojiCategories, type EmojiCategory, type EmojiConversion, type EmojiConvertOptions, type EmojiDeep, type EmojiMetadata, type EmojiNativeSearchFacts, type EmojiNotice, type EmojiOptions, type EmojiParse, type EmojiParseOptions, type EmojiPosition, type EmojiSearch, type EmojiSearchOptions, type EmojiShortcodeSourceMetadata, type EmojiSkin, type EmojiSource, type EmojiUnresolved, type EmojiVariant, type Hlr, type HlrDeep, type HlrOptions, type Holiday, type HolidayDate, type HolidayDateOptions, type HolidayOptions, type HolidayYear, type Industry, type IndustryChild, type IndustryCorrection, type IndustryDeep, type IndustryExclusion, type IndustryMatch, type IndustryOptions, type IndustrySearch, type IndustrySearchItem, type IndustrySearchOptions, type Ip, type IpDeep, type IpOptions, type IpSelfOptions, type Language, type LanguageDeep, type LanguageOption, type LanguageOptions, type Mx, type MxOptions, type MxRecord, type Naics, type NaicsChild, type NaicsCorrection, type NaicsDeep, type NaicsExclusion, type NaicsMatch, type NaicsOptions, type NaicsSearch, type NaicsSearchItem, type NaicsSearchOptions, type Name, type NameDeep, type NameOptions, type ParseAPIClient, ParseAPIError, type ParseAPIOptions, type Phone, type PhoneDeep, type PhoneOptions, type Point, type PointCity, type PointDeep, type PointOptions, type Postal, type PostalDeep, type PostalDistance, type PostalDistanceEnd, type PostalDistanceOptions, type PostalLocality, type PostalMetro, type PostalMetrosDeep, type PostalNearby, type PostalNearbyItem, type PostalNearbyOptions, type PostalOptions, type Preflight, type PreflightCost, type PreflightEmailCapacity, type PreflightOperation, type PreflightOperationEstimate, type PreflightPooledCapacity, type PreflightSpendCapacity, type PreflightTask, type PropertyTax, type RequestOptions, type Stack, type StackOptions, type StackResult, type StackTechnology, type State, type StateDeep, type StateDistrictDeep, type StateDistrictItem, type StateDistricts, type StateDistrictsOptions, type StateOptions, type Time, type TimeAtOptions, type TimeLocation, type TimeLocationCandidate, type TimeLocationInput, type TimeOptions, type TimeResolution, type TimeResolutionAlternative, type TimeSeason, type TimeTransition, type TimeTransitionState, type TimeZoneEntry, type TimeZones, type TimeZonesOptions, type Timezone, type TimezoneAtOptions, type TimezoneConversionTarget, type TimezoneConversionTargetDeep, type TimezoneDeep, type TimezoneNextDst, type TimezoneOptions, type Useragent, type UseragentBrowserBrand, type UseragentBrowserDeep, type UseragentDeep, type UseragentDeviceDeep, type UseragentEngineDeep, type UseragentOptions, type UseragentOsDeep, type Weather, type WeatherAir, type WeatherAlert, type WeatherCurrent, type WeatherCurrentDeep, type WeatherDay, type WeatherDeep, type WeatherForecastPeriod, type WeatherHistory, type WeatherHour, type WeatherMinute, type WeatherOptions, type WeatherStation, createBulkClient, parseAPI };
2434
+ export { type Address, type AddressOptions, type AddressSearch, type AddressSearchOptions, type AddressSuggestion, type AgentTask, type AgentTaskInput, type AgentTaskLookupInput, type AgentTaskResult, type Asn, type AsnOptions, BULK_CHECKS, type Bin, type BinOptions, ParseAPIError as BulkAPIError, type BulkClient, type BulkClientOptions, type BulkJob, type BulkPreview, type BulkPreviewInput, type BulkQuote, type BulkRequestOptions, type BulkResult, type BulkStartInput, type BulkStatus, type BulkUpload, type BulkUploadInput, type Caller, type CallerOptions, type Card, type CardDeep, type CardOptions, type Carrier, type CarrierDeep, type CarrierOptions, type City, type CityAmbiguityCandidate, type CityAncestorsOptions, type CityCollection, type CityCollectionFilters, type CityDeep, type CityDistance, type CityDistanceOptions, type CityGrain, type CityIdCall, type CityIdOptions, type CityList, type CityListOptions, type CityLookupCall, type CityMatch, type CityNearby, type CityNearbyCall, type CityNearbyCoordinates, type CityNearbyCoordinatesOptions, type CityNearbyOptions, type CityNearest, type CityNearestCall, type CityNearestOptions, type CityOptions, type CityPagingOptions, type CityParent, type CityRelations, type CityRelationsOptions, type CityResource, type CityResponseOptions, type CityScopeOptions, type CitySearch, type CitySearchCall, type CitySearchOptions, type CitySort, type Company, type CompanyCandidate, type CompanyCountry, type CompanyCoverage, type CompanyCoverageOptions, type CompanyDeep, type CompanyEmailAddress, type CompanyIdOptions, type CompanyMatch, type CompanyOptions, type CompanyPhoneNumber, type CompanyProfile, type CompanyProfileAddress, type CompanyProfileDeep, type CompanyProfileDomain, type CompanyProfileEmail, type CompanyProfileEmployees, type CompanyProfileFounding, type CompanyProfileIdentifier, type CompanyProfileIndustry, type CompanyProfileJurisdiction, type CompanyProfileListing, type CompanyProfilePhone, type CompanyProfileRegistration, type CompanyProfileRegistrationAddress, type CompanyProfileRegistrationLegalForm, type CompanyProfileSource, type CompanyProfileWebsite, type CompanySearch, type CompanySearchOptions, type CompanySocialProfile, type Continent, type ContinentCountries, type ContinentCountriesOptions, type ContinentCountryItem, type ContinentOptions, type Country, type CountryCapital, type CountryDeep, type CountryElevationPoint, type CountryEmergency, type CountryOptions, type CountryStateItem, type CountryStates, type CountryStatesOptions, type CountryTax, type DateInfo, type DateInfoDeep, type DateOptions, type DateTodayOptions, type Deep, type District, type DistrictDeep, type DistrictOptions, type Dns, type DnsOptions, type DnsRecord, type Domain, type DomainDeep, type DomainOptions, type DomainRegistration, type DomainRegistrationResult, type DomainResult, type DomainResultDeep, type Elevation, type ElevationLocations, type ElevationOptions, type Email, type EmailDeep, type EmailOptions, type Emoji, type EmojiArtwork, type EmojiArtworkSource, type EmojiBrowse, type EmojiBrowseOptions, EmojiCatalog, type EmojiCatalogConvertOptions, type EmojiCatalogData, EmojiCatalogError, type EmojiCatalogLocalization, type EmojiCatalogLookupOptions, type EmojiCatalogOptions, type EmojiCatalogParseOptions, type EmojiCatalogRegexOptions, type EmojiCatalogScope, type EmojiCatalogSearchFacts, type EmojiCatalogSearchOptions, type EmojiCategories, type EmojiCategory, type EmojiConversion, type EmojiConvertOptions, type EmojiDeep, type EmojiMetadata, type EmojiNativeSearchFacts, type EmojiNotice, type EmojiOptions, type EmojiParse, type EmojiParseOptions, type EmojiPosition, type EmojiSearch, type EmojiSearchOptions, type EmojiShortcodeSourceMetadata, type EmojiSkin, type EmojiSource, type EmojiUnresolved, type EmojiVariant, type Hlr, type HlrDeep, type HlrOptions, type Holiday, type HolidayDate, type HolidayDateOptions, type HolidayOptions, type HolidayYear, type Industry, type IndustryChild, type IndustryCorrection, type IndustryDeep, type IndustryExclusion, type IndustryMatch, type IndustryOptions, type IndustrySearch, type IndustrySearchItem, type IndustrySearchOptions, type Ip, type IpDeep, type IpOptions, type IpSelfOptions, type Language, type LanguageDeep, type LanguageOption, type LanguageOptions, type Mx, type MxOptions, type MxRecord, type Naics, type NaicsChild, type NaicsCorrection, type NaicsDeep, type NaicsExclusion, type NaicsMatch, type NaicsOptions, type NaicsSearch, type NaicsSearchItem, type NaicsSearchOptions, type Name, type NameDeep, type NameOptions, type ParseAPIClient, ParseAPIError, type ParseAPIOptions, type Phone, type PhoneDeep, type PhoneOptions, type Point, type PointCity, type PointDeep, type PointOptions, type Postal, type PostalDeep, type PostalDistance, type PostalDistanceEnd, type PostalDistanceOptions, type PostalLocality, type PostalMetro, type PostalMetrosDeep, type PostalNearby, type PostalNearbyItem, type PostalNearbyOptions, type PostalOptions, type Preflight, type PreflightCost, type PreflightEmailCapacity, type PreflightOperation, type PreflightOperationEstimate, type PreflightPooledCapacity, type PreflightSpendCapacity, type PreflightTask, type PropertyTax, type RequestOptions, type Stack, type StackOptions, type StackResult, type StackTechnology, type State, type StateDeep, type StateDistrictDeep, type StateDistrictItem, type StateDistricts, type StateDistrictsOptions, type StateOptions, type Time, type TimeAtOptions, type TimeLocation, type TimeLocationCandidate, type TimeLocationInput, type TimeOptions, type TimeResolution, type TimeResolutionAlternative, type TimeSeason, type TimeTransition, type TimeTransitionState, type TimeZoneEntry, type TimeZones, type TimeZonesOptions, type Timezone, type TimezoneAtOptions, type TimezoneConversionTarget, type TimezoneConversionTargetDeep, type TimezoneDeep, type TimezoneNextDst, type TimezoneOptions, type Useragent, type UseragentBrowserBrand, type UseragentBrowserDeep, type UseragentDeep, type UseragentDeviceDeep, type UseragentEngineDeep, type UseragentOptions, type UseragentOsDeep, type Weather, type WeatherAir, type WeatherAlert, type WeatherCurrent, type WeatherCurrentDeep, type WeatherDay, type WeatherDeep, type WeatherForecastPeriod, type WeatherHistory, type WeatherHour, type WeatherMinute, type WeatherOptions, type WeatherStation, createBulkClient, parseAPI };
package/dist/index.d.ts CHANGED
@@ -47,6 +47,8 @@ interface Continent {
47
47
  interface ContinentCountryItem {
48
48
  country: string;
49
49
  name: string;
50
+ flag?: string | null;
51
+ /** @deprecated Present only in earlier compact response payloads. */
50
52
  emoji?: string | null;
51
53
  calling_code?: string | null;
52
54
  }
@@ -63,11 +65,36 @@ interface Country {
63
65
  currency_name: string | null;
64
66
  currency_symbol: string | null;
65
67
  calling_code: string | null;
66
- emoji: string | null;
67
- languages: string[];
68
+ flag: string | null;
69
+ /** @deprecated Present only in earlier response payloads. */
70
+ emoji?: string | null;
71
+ languages: string[] | null;
68
72
  deep?: Deep<CountryDeep>;
69
73
  /** IANA timezones used by the country. */
70
74
  timezones: string[] | null;
75
+ iso3?: string | null;
76
+ numeric?: number | null;
77
+ /** Official long name. */
78
+ name_full?: string | null;
79
+ /** @deprecated Legacy wire spelling; retained for earlier responses. */
80
+ full_name?: string | null;
81
+ demonym?: string | null;
82
+ region?: string | null;
83
+ subregion?: string | null;
84
+ capital?: CountryCapital | null;
85
+ capital_lat?: number | null;
86
+ capital_lon?: number | null;
87
+ borders?: string[] | null;
88
+ blocs?: string[] | null;
89
+ }
90
+ interface CountryCapital {
91
+ name: string | null;
92
+ lat: number | null;
93
+ lon: number | null;
94
+ }
95
+ interface CountryTax {
96
+ name: string | null;
97
+ rate: number | null;
71
98
  }
72
99
  interface CountryStateItem {
73
100
  state: string;
@@ -341,19 +368,21 @@ interface Stack {
341
368
  }
342
369
  interface DomainRegistration {
343
370
  registered: boolean;
344
- created: string | null;
345
- updated: string | null;
346
- expires: string | null;
347
- registrar: string | null;
348
- status: string[];
349
- dnssec: boolean;
371
+ created?: string | null;
372
+ updated?: string | null;
373
+ expires?: string | null;
374
+ registrar?: string | null;
375
+ status?: string[] | null;
376
+ /** Missing or null is unknown; false is a known unsigned observation. */
377
+ dnssec?: boolean | null;
350
378
  }
351
379
  interface DomainDeep {
352
380
  registration: DomainRegistration;
353
381
  }
354
382
  interface Domain {
355
383
  domain: string;
356
- available: boolean;
384
+ /** true means unregistered, false means registered, null means unknown. */
385
+ available: boolean | null;
357
386
  deep?: Deep<DomainDeep>;
358
387
  }
359
388
  /** Network identity for an autonomous system number. */
@@ -1187,12 +1216,12 @@ interface CountryDeep {
1187
1216
  highest_point?: CountryElevationPoint | null;
1188
1217
  tld: string | null;
1189
1218
  /** Levy name, such as VAT, GST or sales tax. Null when unknown or not applicable. */
1190
- tax?: string | null;
1191
- /** Standard country reference rate in percent (19 means 19%). Null is unknown, zero is known zero. */
1219
+ tax?: CountryTax | null;
1220
+ /** @deprecated Historical flat field; current responses use tax.rate. */
1192
1221
  tax_rate?: number | null;
1193
- /** Tax registration number mask (9 is a digit, A is a letter). Describes format only. */
1222
+ /** @deprecated Historical flat field; no longer returned. */
1194
1223
  tax_id_format?: string | null;
1195
- /** Anchored tax registration number format regex. A match does not establish registration. */
1224
+ /** @deprecated Historical flat field; no longer returned. */
1196
1225
  tax_id_regex?: string | null;
1197
1226
  borders: string[];
1198
1227
  /** Bloc memberships (EU, SCHENGEN, NATO, ...). Empty when none. */
@@ -1209,6 +1238,13 @@ interface CountryDeep {
1209
1238
  ioc: string | null;
1210
1239
  fifa: string | null;
1211
1240
  plate: string | null;
1241
+ gdp_usd?: number | null;
1242
+ gdp_per_capita_usd?: number | null;
1243
+ population_growth_percent?: number | null;
1244
+ urban_population_percent?: number | null;
1245
+ internet_users_percent?: number | null;
1246
+ /** Average terrain elevation in meters above sea level. */
1247
+ elevation_average?: number | null;
1212
1248
  }
1213
1249
  interface CountryElevationPoint {
1214
1250
  name: string | null;
@@ -2245,7 +2281,7 @@ declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
2245
2281
  hlr: (number: string, opts?: HlrOptions) => Promise<Hlr>;
2246
2282
  /** Identify website technologies by category, with homepage or bounded site coverage metadata. */
2247
2283
  stack: (domain: string, opts?: StackOptions) => Promise<Stack>;
2248
- /** Check whether a domain is registered. Deep adds registration dates, registrar, status and DNSSEC on paid plans. */
2284
+ /** Check registration: available is true, false or null when unknown. Paid Deep adds available registration details. */
2249
2285
  domain: (domain: string, opts?: DomainOptions) => Promise<Domain>;
2250
2286
  /** Check domain registration while preserving unknown availability and partial detail. */
2251
2287
  domainResult: (domain: string, opts?: DomainOptions) => Promise<DomainResult>;
@@ -2395,4 +2431,4 @@ interface CityNearbyCall {
2395
2431
  (name: string, opts: CityNearbyOptions): Promise<CityNearby | CityCollection>;
2396
2432
  }
2397
2433
 
2398
- export { type Address, type AddressOptions, type AddressSearch, type AddressSearchOptions, type AddressSuggestion, type AgentTask, type AgentTaskInput, type AgentTaskLookupInput, type AgentTaskResult, type Asn, type AsnOptions, BULK_CHECKS, type Bin, type BinOptions, ParseAPIError as BulkAPIError, type BulkClient, type BulkClientOptions, type BulkJob, type BulkPreview, type BulkPreviewInput, type BulkQuote, type BulkRequestOptions, type BulkResult, type BulkStartInput, type BulkStatus, type BulkUpload, type BulkUploadInput, type Caller, type CallerOptions, type Card, type CardDeep, type CardOptions, type Carrier, type CarrierDeep, type CarrierOptions, type City, type CityAmbiguityCandidate, type CityAncestorsOptions, type CityCollection, type CityCollectionFilters, type CityDeep, type CityDistance, type CityDistanceOptions, type CityGrain, type CityIdCall, type CityIdOptions, type CityList, type CityListOptions, type CityLookupCall, type CityMatch, type CityNearby, type CityNearbyCall, type CityNearbyCoordinates, type CityNearbyCoordinatesOptions, type CityNearbyOptions, type CityNearest, type CityNearestCall, type CityNearestOptions, type CityOptions, type CityPagingOptions, type CityParent, type CityRelations, type CityRelationsOptions, type CityResource, type CityResponseOptions, type CityScopeOptions, type CitySearch, type CitySearchCall, type CitySearchOptions, type CitySort, type Company, type CompanyCandidate, type CompanyCountry, type CompanyCoverage, type CompanyCoverageOptions, type CompanyDeep, type CompanyEmailAddress, type CompanyIdOptions, type CompanyMatch, type CompanyOptions, type CompanyPhoneNumber, type CompanyProfile, type CompanyProfileAddress, type CompanyProfileDeep, type CompanyProfileDomain, type CompanyProfileEmail, type CompanyProfileEmployees, type CompanyProfileFounding, type CompanyProfileIdentifier, type CompanyProfileIndustry, type CompanyProfileJurisdiction, type CompanyProfileListing, type CompanyProfilePhone, type CompanyProfileRegistration, type CompanyProfileRegistrationAddress, type CompanyProfileRegistrationLegalForm, type CompanyProfileSource, type CompanyProfileWebsite, type CompanySearch, type CompanySearchOptions, type CompanySocialProfile, type Continent, type ContinentCountries, type ContinentCountriesOptions, type ContinentCountryItem, type ContinentOptions, type Country, type CountryDeep, type CountryElevationPoint, type CountryEmergency, type CountryOptions, type CountryStateItem, type CountryStates, type CountryStatesOptions, type DateInfo, type DateInfoDeep, type DateOptions, type DateTodayOptions, type Deep, type District, type DistrictDeep, type DistrictOptions, type Dns, type DnsOptions, type DnsRecord, type Domain, type DomainDeep, type DomainOptions, type DomainRegistration, type DomainRegistrationResult, type DomainResult, type DomainResultDeep, type Elevation, type ElevationLocations, type ElevationOptions, type Email, type EmailDeep, type EmailOptions, type Emoji, type EmojiArtwork, type EmojiArtworkSource, type EmojiBrowse, type EmojiBrowseOptions, EmojiCatalog, type EmojiCatalogConvertOptions, type EmojiCatalogData, EmojiCatalogError, type EmojiCatalogLocalization, type EmojiCatalogLookupOptions, type EmojiCatalogOptions, type EmojiCatalogParseOptions, type EmojiCatalogRegexOptions, type EmojiCatalogScope, type EmojiCatalogSearchFacts, type EmojiCatalogSearchOptions, type EmojiCategories, type EmojiCategory, type EmojiConversion, type EmojiConvertOptions, type EmojiDeep, type EmojiMetadata, type EmojiNativeSearchFacts, type EmojiNotice, type EmojiOptions, type EmojiParse, type EmojiParseOptions, type EmojiPosition, type EmojiSearch, type EmojiSearchOptions, type EmojiShortcodeSourceMetadata, type EmojiSkin, type EmojiSource, type EmojiUnresolved, type EmojiVariant, type Hlr, type HlrDeep, type HlrOptions, type Holiday, type HolidayDate, type HolidayDateOptions, type HolidayOptions, type HolidayYear, type Industry, type IndustryChild, type IndustryCorrection, type IndustryDeep, type IndustryExclusion, type IndustryMatch, type IndustryOptions, type IndustrySearch, type IndustrySearchItem, type IndustrySearchOptions, type Ip, type IpDeep, type IpOptions, type IpSelfOptions, type Language, type LanguageDeep, type LanguageOption, type LanguageOptions, type Mx, type MxOptions, type MxRecord, type Naics, type NaicsChild, type NaicsCorrection, type NaicsDeep, type NaicsExclusion, type NaicsMatch, type NaicsOptions, type NaicsSearch, type NaicsSearchItem, type NaicsSearchOptions, type Name, type NameDeep, type NameOptions, type ParseAPIClient, ParseAPIError, type ParseAPIOptions, type Phone, type PhoneDeep, type PhoneOptions, type Point, type PointCity, type PointDeep, type PointOptions, type Postal, type PostalDeep, type PostalDistance, type PostalDistanceEnd, type PostalDistanceOptions, type PostalLocality, type PostalMetro, type PostalMetrosDeep, type PostalNearby, type PostalNearbyItem, type PostalNearbyOptions, type PostalOptions, type Preflight, type PreflightCost, type PreflightEmailCapacity, type PreflightOperation, type PreflightOperationEstimate, type PreflightPooledCapacity, type PreflightSpendCapacity, type PreflightTask, type PropertyTax, type RequestOptions, type Stack, type StackOptions, type StackResult, type StackTechnology, type State, type StateDeep, type StateDistrictDeep, type StateDistrictItem, type StateDistricts, type StateDistrictsOptions, type StateOptions, type Time, type TimeAtOptions, type TimeLocation, type TimeLocationCandidate, type TimeLocationInput, type TimeOptions, type TimeResolution, type TimeResolutionAlternative, type TimeSeason, type TimeTransition, type TimeTransitionState, type TimeZoneEntry, type TimeZones, type TimeZonesOptions, type Timezone, type TimezoneAtOptions, type TimezoneConversionTarget, type TimezoneConversionTargetDeep, type TimezoneDeep, type TimezoneNextDst, type TimezoneOptions, type Useragent, type UseragentBrowserBrand, type UseragentBrowserDeep, type UseragentDeep, type UseragentDeviceDeep, type UseragentEngineDeep, type UseragentOptions, type UseragentOsDeep, type Weather, type WeatherAir, type WeatherAlert, type WeatherCurrent, type WeatherCurrentDeep, type WeatherDay, type WeatherDeep, type WeatherForecastPeriod, type WeatherHistory, type WeatherHour, type WeatherMinute, type WeatherOptions, type WeatherStation, createBulkClient, parseAPI };
2434
+ export { type Address, type AddressOptions, type AddressSearch, type AddressSearchOptions, type AddressSuggestion, type AgentTask, type AgentTaskInput, type AgentTaskLookupInput, type AgentTaskResult, type Asn, type AsnOptions, BULK_CHECKS, type Bin, type BinOptions, ParseAPIError as BulkAPIError, type BulkClient, type BulkClientOptions, type BulkJob, type BulkPreview, type BulkPreviewInput, type BulkQuote, type BulkRequestOptions, type BulkResult, type BulkStartInput, type BulkStatus, type BulkUpload, type BulkUploadInput, type Caller, type CallerOptions, type Card, type CardDeep, type CardOptions, type Carrier, type CarrierDeep, type CarrierOptions, type City, type CityAmbiguityCandidate, type CityAncestorsOptions, type CityCollection, type CityCollectionFilters, type CityDeep, type CityDistance, type CityDistanceOptions, type CityGrain, type CityIdCall, type CityIdOptions, type CityList, type CityListOptions, type CityLookupCall, type CityMatch, type CityNearby, type CityNearbyCall, type CityNearbyCoordinates, type CityNearbyCoordinatesOptions, type CityNearbyOptions, type CityNearest, type CityNearestCall, type CityNearestOptions, type CityOptions, type CityPagingOptions, type CityParent, type CityRelations, type CityRelationsOptions, type CityResource, type CityResponseOptions, type CityScopeOptions, type CitySearch, type CitySearchCall, type CitySearchOptions, type CitySort, type Company, type CompanyCandidate, type CompanyCountry, type CompanyCoverage, type CompanyCoverageOptions, type CompanyDeep, type CompanyEmailAddress, type CompanyIdOptions, type CompanyMatch, type CompanyOptions, type CompanyPhoneNumber, type CompanyProfile, type CompanyProfileAddress, type CompanyProfileDeep, type CompanyProfileDomain, type CompanyProfileEmail, type CompanyProfileEmployees, type CompanyProfileFounding, type CompanyProfileIdentifier, type CompanyProfileIndustry, type CompanyProfileJurisdiction, type CompanyProfileListing, type CompanyProfilePhone, type CompanyProfileRegistration, type CompanyProfileRegistrationAddress, type CompanyProfileRegistrationLegalForm, type CompanyProfileSource, type CompanyProfileWebsite, type CompanySearch, type CompanySearchOptions, type CompanySocialProfile, type Continent, type ContinentCountries, type ContinentCountriesOptions, type ContinentCountryItem, type ContinentOptions, type Country, type CountryCapital, type CountryDeep, type CountryElevationPoint, type CountryEmergency, type CountryOptions, type CountryStateItem, type CountryStates, type CountryStatesOptions, type CountryTax, type DateInfo, type DateInfoDeep, type DateOptions, type DateTodayOptions, type Deep, type District, type DistrictDeep, type DistrictOptions, type Dns, type DnsOptions, type DnsRecord, type Domain, type DomainDeep, type DomainOptions, type DomainRegistration, type DomainRegistrationResult, type DomainResult, type DomainResultDeep, type Elevation, type ElevationLocations, type ElevationOptions, type Email, type EmailDeep, type EmailOptions, type Emoji, type EmojiArtwork, type EmojiArtworkSource, type EmojiBrowse, type EmojiBrowseOptions, EmojiCatalog, type EmojiCatalogConvertOptions, type EmojiCatalogData, EmojiCatalogError, type EmojiCatalogLocalization, type EmojiCatalogLookupOptions, type EmojiCatalogOptions, type EmojiCatalogParseOptions, type EmojiCatalogRegexOptions, type EmojiCatalogScope, type EmojiCatalogSearchFacts, type EmojiCatalogSearchOptions, type EmojiCategories, type EmojiCategory, type EmojiConversion, type EmojiConvertOptions, type EmojiDeep, type EmojiMetadata, type EmojiNativeSearchFacts, type EmojiNotice, type EmojiOptions, type EmojiParse, type EmojiParseOptions, type EmojiPosition, type EmojiSearch, type EmojiSearchOptions, type EmojiShortcodeSourceMetadata, type EmojiSkin, type EmojiSource, type EmojiUnresolved, type EmojiVariant, type Hlr, type HlrDeep, type HlrOptions, type Holiday, type HolidayDate, type HolidayDateOptions, type HolidayOptions, type HolidayYear, type Industry, type IndustryChild, type IndustryCorrection, type IndustryDeep, type IndustryExclusion, type IndustryMatch, type IndustryOptions, type IndustrySearch, type IndustrySearchItem, type IndustrySearchOptions, type Ip, type IpDeep, type IpOptions, type IpSelfOptions, type Language, type LanguageDeep, type LanguageOption, type LanguageOptions, type Mx, type MxOptions, type MxRecord, type Naics, type NaicsChild, type NaicsCorrection, type NaicsDeep, type NaicsExclusion, type NaicsMatch, type NaicsOptions, type NaicsSearch, type NaicsSearchItem, type NaicsSearchOptions, type Name, type NameDeep, type NameOptions, type ParseAPIClient, ParseAPIError, type ParseAPIOptions, type Phone, type PhoneDeep, type PhoneOptions, type Point, type PointCity, type PointDeep, type PointOptions, type Postal, type PostalDeep, type PostalDistance, type PostalDistanceEnd, type PostalDistanceOptions, type PostalLocality, type PostalMetro, type PostalMetrosDeep, type PostalNearby, type PostalNearbyItem, type PostalNearbyOptions, type PostalOptions, type Preflight, type PreflightCost, type PreflightEmailCapacity, type PreflightOperation, type PreflightOperationEstimate, type PreflightPooledCapacity, type PreflightSpendCapacity, type PreflightTask, type PropertyTax, type RequestOptions, type Stack, type StackOptions, type StackResult, type StackTechnology, type State, type StateDeep, type StateDistrictDeep, type StateDistrictItem, type StateDistricts, type StateDistrictsOptions, type StateOptions, type Time, type TimeAtOptions, type TimeLocation, type TimeLocationCandidate, type TimeLocationInput, type TimeOptions, type TimeResolution, type TimeResolutionAlternative, type TimeSeason, type TimeTransition, type TimeTransitionState, type TimeZoneEntry, type TimeZones, type TimeZonesOptions, type Timezone, type TimezoneAtOptions, type TimezoneConversionTarget, type TimezoneConversionTargetDeep, type TimezoneDeep, type TimezoneNextDst, type TimezoneOptions, type Useragent, type UseragentBrowserBrand, type UseragentBrowserDeep, type UseragentDeep, type UseragentDeviceDeep, type UseragentEngineDeep, type UseragentOptions, type UseragentOsDeep, type Weather, type WeatherAir, type WeatherAlert, type WeatherCurrent, type WeatherCurrentDeep, type WeatherDay, type WeatherDeep, type WeatherForecastPeriod, type WeatherHistory, type WeatherHour, type WeatherMinute, type WeatherOptions, type WeatherStation, createBulkClient, parseAPI };
package/dist/index.js CHANGED
@@ -416,7 +416,7 @@ var EmojiCatalog = class {
416
416
  };
417
417
 
418
418
  // src/index.ts
419
- var VERSION = "1.12.3";
419
+ var VERSION = "1.12.5";
420
420
  var API_VERSION = "2.0.0";
421
421
  var DEFAULT_BASE_URL = "https://api.parseapi.com";
422
422
  var DEFAULT_TIMEOUT_MS = 1e4;
@@ -720,7 +720,7 @@ function parseAPI(apiKey, options = {}) {
720
720
  hlr: (number, opts) => request(`/hlr/${enc(number)}`, { country: opts?.country, ...deepQuery(opts) }, void 0, opts),
721
721
  /** Identify website technologies by category, with homepage or bounded site coverage metadata. */
722
722
  stack: (domain, opts) => request(`/stack/${enc(domain)}`, { ...deepQuery(opts), pretty: opts?.pretty }, void 0, opts),
723
- /** Check whether a domain is registered. Deep adds registration dates, registrar, status and DNSSEC on paid plans. */
723
+ /** Check registration: available is true, false or null when unknown. Paid Deep adds available registration details. */
724
724
  domain: (domain, opts) => request(`/domain/${enc(domain)}`, deepQuery(opts), void 0, opts),
725
725
  /** Check domain registration while preserving unknown availability and partial detail. */
726
726
  domainResult: (domain, opts) => request(`/domain/${enc(domain)}`, deepQuery(opts), void 0, opts),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parseapi/sdk",
3
- "version": "1.12.3",
3
+ "version": "1.12.5",
4
4
  "description": "Official ParseAPI client for Node and TypeScript. One key, minimal JSON, fast.",
5
5
  "keywords": [
6
6
  "parseapi",