@apifreaks/openapi-specs 0.4.20 → 0.4.22

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.
Files changed (63) hide show
  1. package/dist/index.cjs +4410 -530
  2. package/dist/index.js +4410 -530
  3. package/dist/specs/commodity/historical-commodity-prices.yaml +30 -11
  4. package/dist/specs/dns/bulk-dns-lookup.yaml +214 -33
  5. package/dist/specs/dns/dns-lookup.yaml +9 -1
  6. package/dist/specs/financial/bulk-vat-rates-country.yaml +22 -4
  7. package/dist/specs/geography/flags-supported.yaml +18 -10
  8. package/dist/specs/pdf/delete-pdf-page.yaml +12 -4
  9. package/dist/specs/pdf/linearize-pdf.yaml +11 -3
  10. package/dist/specs/pdf/merge-pdf.yaml +11 -3
  11. package/dist/specs/pdf/pdf-compress.yaml +12 -4
  12. package/dist/specs/pdf/pdf-decrypt.yaml +13 -5
  13. package/dist/specs/pdf/pdf-encrypt.yaml +11 -3
  14. package/dist/specs/pdf/pdf-extract-pages.yaml +11 -3
  15. package/dist/specs/pdf/pdf-resource-upload-binary.yaml +1 -1
  16. package/dist/specs/pdf/pdf-resource-upload.yaml +3 -3
  17. package/dist/specs/pdf/pdf-restrict.yaml +13 -5
  18. package/dist/specs/pdf/pdf-to-image.yaml +130 -0
  19. package/dist/specs/pdf/pdf-unrestrict.yaml +13 -5
  20. package/dist/specs/pdf/rotate-pdf-pages.yaml +11 -3
  21. package/dist/specs/pdf/split-pdf.yaml +11 -3
  22. package/dist/specs/screenshot/bulk-screenshot.yaml +11 -10
  23. package/dist/specs/screenshot/website-screenshot.yaml +11 -10
  24. package/dist/specs/timezone/timezone-converter.yaml +36 -8
  25. package/dist/specs/timezone/timezone-lookup.yaml +36 -10
  26. package/dist/specs/weather/time-series-weather.yaml +6 -7
  27. package/dist/specs/whois/asn-lookup.yaml +676 -37
  28. package/dist/specs/whois/bulk-whois-lookup.yaml +480 -2
  29. package/dist/specs/whois/domain-whois-history-lookup.yaml +222 -2
  30. package/dist/specs/whois/reverse-whois.yaml +316 -8
  31. package/dist/specs/whois/whois-domain-lookup.yaml +482 -11
  32. package/dist/specs/whois/whois-ip-lookup.yaml +306 -255
  33. package/package.json +1 -1
  34. package/specs/commodity/historical-commodity-prices.json +37 -11
  35. package/specs/dns/bulk-dns-lookup.json +274 -29
  36. package/specs/dns/dns-lookup.json +13 -2
  37. package/specs/financial/bulk-vat-rates-country.json +33 -4
  38. package/specs/geography/flags-supported.json +20 -13
  39. package/specs/pdf/delete-pdf-page.json +14 -4
  40. package/specs/pdf/linearize-pdf.json +13 -3
  41. package/specs/pdf/merge-pdf.json +13 -3
  42. package/specs/pdf/pdf-compress.json +14 -4
  43. package/specs/pdf/pdf-decrypt.json +16 -6
  44. package/specs/pdf/pdf-encrypt.json +13 -3
  45. package/specs/pdf/pdf-extract-pages.json +13 -3
  46. package/specs/pdf/pdf-resource-upload-binary.json +1 -1
  47. package/specs/pdf/pdf-resource-upload.json +4 -4
  48. package/specs/pdf/pdf-restrict.json +16 -6
  49. package/specs/pdf/pdf-to-image.json +185 -0
  50. package/specs/pdf/pdf-unrestrict.json +16 -6
  51. package/specs/pdf/rotate-pdf-pages.json +13 -3
  52. package/specs/pdf/split-pdf.json +13 -3
  53. package/specs/screenshot/bulk-screenshot.json +10 -10
  54. package/specs/screenshot/website-screenshot.json +10 -10
  55. package/specs/timezone/timezone-converter.json +48 -8
  56. package/specs/timezone/timezone-lookup.json +53 -10
  57. package/specs/weather/time-series-weather.json +7 -7
  58. package/specs/whois/asn-lookup.json +878 -54
  59. package/specs/whois/bulk-whois-lookup.json +612 -2
  60. package/specs/whois/domain-whois-history-lookup.json +307 -2
  61. package/specs/whois/reverse-whois.json +453 -9
  62. package/specs/whois/whois-domain-lookup.json +632 -11
  63. package/specs/whois/whois-ip-lookup.json +427 -241
@@ -149,7 +149,7 @@ paths:
149
149
  X-AF-Credits-Cost:
150
150
  $ref: '#/components/headers/X-AF-Credits-Cost'
151
151
  '400':
152
- description: Bad Request — Incomplete parameter combination, invalid timezone name, invalid coordinates, or location address not found
152
+ description: Bad Request — Incomplete or mixed parameter combination, invalid timezone name, time, coordinates, or airport / LO code format
153
153
  content:
154
154
  application/json:
155
155
  schema:
@@ -159,6 +159,14 @@ paths:
159
159
  summary: Incomplete parameters combination
160
160
  value:
161
161
  message: Parameters' combination is not complete. 'tz_from' and 'tz_to' or 'location_from' and 'location_to' or 'lat_from' and 'long_from' and 'lat_to' and 'long_to' or 'locode_from' and 'locode_to' or 'iata_from' and 'iata_to' or 'icao_from' and 'icao_to' combinations must be provided.
162
+ MismatchedParameters:
163
+ summary: Only one side of a pair, or parameters from different groups, supplied (for example tz_from alone)
164
+ value:
165
+ error: Invalid Param Exception
166
+ message: please pass correct parameters
167
+ path: /v1.0/timezone/converter
168
+ status: 400
169
+ timestamp: '2026-11-20T09:56:23.268Z'
162
170
  InvalidSourceTimezone:
163
171
  summary: Invalid source timezone
164
172
  value:
@@ -167,19 +175,31 @@ paths:
167
175
  summary: Invalid coordinates range
168
176
  value:
169
177
  message: Provided lat_from (999) or long_from (0) is not valid. Latitude must be between -90.0 and +90.0 and longitude must be between -180.0 and +180.0.
170
- FromLocationNotFound:
171
- summary: Source (from) location address not found
178
+ InvalidTime:
179
+ summary: Unparseable time value
172
180
  value:
173
- message: We couldn't find the (from) location (ZZZNOTEXIST). Try a city or state level address only.
174
- ToLocationNotFound:
175
- summary: Target (to) location address not found
181
+ message: Check whether your input values are correct; source_time_zone = UTC, destined_time_zone = Asia/Karachi, date_time = notatime
182
+ InvalidIataFormat:
183
+ summary: Malformed IATA code
176
184
  value:
177
- message: We couldn't find the (to) location (ZZZNOTEXIST). Try a city or state level address only.
185
+ message: 'Invalid IATA code: INVALID. IATA code must be in the format of AAA.'
186
+ InvalidIcaoFormat:
187
+ summary: Malformed ICAO code
188
+ value:
189
+ message: 'Invalid ICAO code: INVALID. ICAO code must be in the format of AAAA.'
190
+ InvalidLocodeFormat:
191
+ summary: Malformed UN/LOCODE
192
+ value:
193
+ message: 'Invalid LOCode: ABC. LOCode must start with the first two characters as alphabets followed by three alphanumeric characters.'
194
+ NonNumericCoordinate:
195
+ summary: Non-numeric coordinate
196
+ value:
197
+ message: Invalid value 'abc' for parameter 'lat_from'.
178
198
  headers:
179
199
  X-AF-Credits-Cost:
180
200
  $ref: '#/components/headers/X-AF-Credits-Cost'
181
201
  '404':
182
- description: Not Found — Airport (IATA/ICAO) code or UN/LOCODE has no matching data
202
+ description: Not Found — Location address, airport (IATA/ICAO) code, or UN/LOCODE has no matching data
183
203
  content:
184
204
  application/json:
185
205
  schema:
@@ -193,6 +213,14 @@ paths:
193
213
  summary: UN/LOCODE not found
194
214
  value:
195
215
  message: '''Data not found for the provided LO code: ZZZZZ Please contact at support@ipgeolocation.io if provided LO code exists.'''
216
+ FromLocationNotFound:
217
+ summary: Source (from) location address not found
218
+ value:
219
+ message: We couldn't find the (from) location (ZZZNOTEXIST). Try a city or state level address only.
220
+ ToLocationNotFound:
221
+ summary: Target (to) location address not found
222
+ value:
223
+ message: We couldn't find the (to) location (ZZZNOTEXIST). Try a city or state level address only.
196
224
  headers:
197
225
  X-AF-Credits-Cost:
198
226
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -360,7 +360,7 @@ paths:
360
360
  X-AF-Credits-Cost:
361
361
  $ref: '#/components/headers/X-AF-Credits-Cost'
362
362
  '400':
363
- description: Bad Request — Invalid coordinates, timezone name, IP address, or airport code
363
+ description: Bad Request — Invalid coordinates, timezone name, IP address, airport code, LO code format, language, or non-numeric coordinate
364
364
  content:
365
365
  application/json:
366
366
  schema:
@@ -386,11 +386,23 @@ paths:
386
386
  summary: Invalid ICAO code
387
387
  value:
388
388
  message: 'Invalid ICAO code: INVALID. ICAO code must be in the format of AAAA.'
389
+ InvalidLoCodeFormat:
390
+ summary: Malformed UN/LOCODE
391
+ value:
392
+ message: 'Invalid LOCode: ABC. LOCode must start with the first two characters as alphabets followed by three alphanumeric characters.'
393
+ InvalidLanguage:
394
+ summary: Unsupported lang value
395
+ value:
396
+ message: This 'xx' lang is not valid. Please use 'en' as the default language
397
+ NonNumericCoordinate:
398
+ summary: Non-numeric lat or long
399
+ value:
400
+ message: Invalid value 'abc' for parameter 'lat'.
389
401
  headers:
390
402
  X-AF-Credits-Cost:
391
403
  $ref: '#/components/headers/X-AF-Credits-Cost'
392
404
  '404':
393
- description: Not Found — Location address not found, or LO code has no matching data
405
+ description: Not Found — Location address not found, or airport code / LO code has no matching data
394
406
  content:
395
407
  application/json:
396
408
  schema:
@@ -404,6 +416,24 @@ paths:
404
416
  summary: UN/LOCODE not found
405
417
  value:
406
418
  message: '''Data not found for the provided LO code: XXXXX Please contact at support@ipgeolocation.io if provided LO code exists.'''
419
+ AirportNotFound:
420
+ summary: IATA/ICAO airport code not found
421
+ value:
422
+ message: '''Data not found for the provided airport code: ZZZ Please contact at support@ipgeolocation.io if provided airport code exists.'''
423
+ headers:
424
+ X-AF-Credits-Cost:
425
+ $ref: '#/components/headers/X-AF-Credits-Cost'
426
+ '423':
427
+ description: Locked — Bogon or reserved IP address
428
+ content:
429
+ application/json:
430
+ schema:
431
+ $ref: '#/components/schemas/ErrorResponse'
432
+ examples:
433
+ BogonIp:
434
+ summary: Bogon or reserved IP address
435
+ value:
436
+ message: '''192.168.1.1'' is a bogon IP address.'
407
437
  headers:
408
438
  X-AF-Credits-Cost:
409
439
  $ref: '#/components/headers/X-AF-Credits-Cost'
@@ -633,12 +663,10 @@ components:
633
663
  type: string
634
664
  description: The full name of the airport.
635
665
  latitude:
636
- type: number
637
- format: float
666
+ type: string
638
667
  description: The latitude coordinate of the airport.
639
668
  longitude:
640
- type: number
641
- format: float
669
+ type: string
642
670
  description: The longitude coordinate of the airport.
643
671
  elevation_ft:
644
672
  type: integer
@@ -687,12 +715,10 @@ components:
687
715
  type: string
688
716
  description: The type of location as comma-separated list of facilities (e.g., Port, Rail Terminal, Road Terminal, Airport).
689
717
  latitude:
690
- type: number
691
- format: float
718
+ type: string
692
719
  description: The latitude coordinate of the location.
693
720
  longitude:
694
- type: number
695
- format: float
721
+ type: string
696
722
  description: The longitude coordinate of the location.
697
723
  ErrorResponse:
698
724
  type: object
@@ -52,13 +52,13 @@ paths:
52
52
  in: query
53
53
  schema:
54
54
  type: number
55
- description: Latitude of the location, used together with long. A value of exactly 0 is treated as missing by the live API and returns a 400, so use a small non-zero value (e.g. 0.0001) for equator queries.
55
+ description: Latitude of the location, used together with long. A value of exactly 0 is treated as missing by the live API, and the location is then inferred from the requester IP instead of returning an error, so use a small non-zero value (e.g. 0.0001) for equator queries.
56
56
  required: false
57
57
  - name: long
58
58
  in: query
59
59
  schema:
60
60
  type: number
61
- description: Longitude of the location, used together with lat. A value of exactly 0 is treated as missing by the live API and returns a 400, so use a small non-zero value (e.g. 0.0001) for prime-meridian queries.
61
+ description: Longitude of the location, used together with lat. A value of exactly 0 is treated as missing by the live API, and the location is then inferred from the requester IP instead of returning an error, so use a small non-zero value (e.g. 0.0001) for prime-meridian queries.
62
62
  required: false
63
63
  - name: ip
64
64
  in: query
@@ -816,11 +816,10 @@ components:
816
816
  TimeSeriesData:
817
817
  type: object
818
818
  description: Time-series data object keyed by date (YYYY-MM-DD). Each key is a date and the value is a TimeSeriesDay containing daily aggregates, hourly readings, and astronomy data.
819
- properties:
820
- date:
821
- $ref: '#/components/schemas/TimeSeriesDay'
822
- required:
823
- - date
819
+ additionalProperties:
820
+ $ref: '#/components/schemas/TimeSeriesDay'
821
+ propertyNames:
822
+ pattern: ^\d{4}-\d{2}-\d{2}$
824
823
  headers:
825
824
  X-AF-Credits-Cost:
826
825
  description: Specifies the number of credits consumed by the current request.