@apifreaks/openapi-specs 0.2.0 → 0.3.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.
- package/README.md +37 -37
- package/dist/index.cjs +2787 -348
- package/dist/index.js +2787 -348
- package/dist/specs/commodity/commodity-fluctuation.yaml +14 -0
- package/dist/specs/commodity/commodity-prices.yaml +14 -0
- package/dist/specs/commodity/commodity-symbols.yaml +8 -0
- package/dist/specs/commodity/commodity-time-series.yaml +14 -0
- package/dist/specs/commodity/historical-commodity-prices.yaml +14 -0
- package/dist/specs/currency/currency-converter.yaml +14 -0
- package/dist/specs/currency/currency-fluctuation.yaml +14 -0
- package/dist/specs/currency/currency-historical-data-limit.yaml +11 -0
- package/dist/specs/currency/currency-rate.yaml +14 -0
- package/dist/specs/currency/currency-supported.yaml +11 -0
- package/dist/specs/currency/currency-symbols.yaml +11 -0
- package/dist/specs/currency/currency-time-series.yaml +14 -0
- package/dist/specs/currency/geolocalized-currency-conversion.yaml +14 -0
- package/dist/specs/currency/historical-currency-converter.yaml +14 -0
- package/dist/specs/currency/historical-currency-rate.yaml +14 -0
- package/dist/specs/dns/bulk-dns-lookup.yaml +14 -0
- package/dist/specs/dns/dns-history-lookup.yaml +14 -0
- package/dist/specs/dns/dns-lookup.yaml +11 -0
- package/dist/specs/dns/reverse-dns-lookup.yaml +34 -0
- package/dist/specs/domain/bulk-domain-checker.yaml +17 -0
- package/dist/specs/domain/domain-search-with-suggestions.yaml +14 -0
- package/dist/specs/domain/domain-search.yaml +14 -0
- package/dist/specs/domain/subdomain-lookup.yaml +14 -0
- package/dist/specs/email-validation/bulk-email-validation.yaml +17 -0
- package/dist/specs/email-validation/email-checker.yaml +41 -0
- package/dist/specs/financial/bulk-vat-rates-country.yaml +14 -0
- package/dist/specs/financial/financial-apis-supported-countries.yaml +8 -0
- package/dist/specs/financial/iban-validation.yaml +11 -0
- package/dist/specs/financial/swift-code-finder.yaml +11 -0
- package/dist/specs/financial/swift-code-lookup.yaml +14 -0
- package/dist/specs/financial/vat-number-validation.yaml +14 -0
- package/dist/specs/financial/vat-rates-by-ip.yaml +14 -0
- package/dist/specs/financial/vat-rates-country.yaml +14 -0
- package/dist/specs/general/usage-credits.yaml +11 -0
- package/dist/specs/geocoding/forward-geocoding.yaml +14 -0
- package/dist/specs/geocoding/reverse-geocoding.yaml +11 -0
- package/dist/specs/geodb/administrative-units-details.yaml +14 -0
- package/dist/specs/geodb/administrative-units-levels.yaml +14 -0
- package/dist/specs/geodb/administrative-units.yaml +14 -0
- package/dist/specs/geodb/cities.yaml +14 -0
- package/dist/specs/geodb/countries-details.yaml +11 -0
- package/dist/specs/geodb/countries.yaml +11 -0
- package/dist/specs/geodb/flags-supported.yaml +8 -0
- package/dist/specs/geodb/flags.yaml +14 -0
- package/dist/specs/geodb/regions.yaml +8 -0
- package/dist/specs/geodb/subregions.yaml +14 -0
- package/dist/specs/ip-intelligence/bulk-ip-lookup.yaml +14 -0
- package/dist/specs/ip-intelligence/bulk-ip-threat-intelligence.yaml +11 -0
- package/dist/specs/ip-intelligence/ip-locator.yaml +17 -0
- package/dist/specs/ip-intelligence/ip-threat-intelligence.yaml +14 -0
- package/dist/specs/other/astronomy-data.yaml +14 -0
- package/dist/specs/pdf/bulk-pdf-generator.yaml +32 -0
- package/dist/specs/pdf/delete-pdf-page.yaml +14 -0
- package/dist/specs/pdf/linearize-pdf.yaml +14 -0
- package/dist/specs/pdf/merge-pdf.yaml +14 -0
- package/dist/specs/pdf/pdf-compress.yaml +14 -0
- package/dist/specs/pdf/pdf-decrypt.yaml +14 -0
- package/dist/specs/pdf/pdf-encrypt.yaml +14 -0
- package/dist/specs/pdf/pdf-extract-pages.yaml +14 -0
- package/dist/specs/pdf/pdf-file-status.yaml +14 -0
- package/dist/specs/pdf/pdf-file.yaml +14 -0
- package/dist/specs/pdf/pdf-files.yaml +8 -0
- package/dist/specs/pdf/pdf-generator.yaml +32 -0
- package/dist/specs/pdf/pdf-resource-download.yaml +14 -0
- package/dist/specs/pdf/pdf-resource-upload-binary.yaml +14 -0
- package/dist/specs/pdf/pdf-resource-upload.yaml +14 -0
- package/dist/specs/pdf/pdf-restrict.yaml +14 -0
- package/dist/specs/pdf/pdf-split-pages.yaml +14 -0
- package/dist/specs/pdf/pdf-task-status.yaml +14 -0
- package/dist/specs/pdf/pdf-to-image.yaml +35 -0
- package/dist/specs/pdf/pdf-unrestrict.yaml +14 -0
- package/dist/specs/pdf/rotate-pdf-pages.yaml +14 -0
- package/dist/specs/phone-validation/bulk-phone-number-validation.yaml +23 -0
- package/dist/specs/phone-validation/phone-number-validation.yaml +20 -0
- package/dist/specs/scraper/web-scraper.yaml +34 -0
- package/dist/specs/screenshot/bulk-screenshot.yaml +34 -0
- package/dist/specs/screenshot/website-screenshot.yaml +34 -0
- package/dist/specs/ssl/ssl-certificate-chain-lookup.yaml +17 -0
- package/dist/specs/ssl/ssl-certificate-lookup.yaml +17 -0
- package/dist/specs/timezone/timezone-converter.yaml +14 -0
- package/dist/specs/timezone/timezone-lookup.yaml +14 -0
- package/dist/specs/user-agent/bulk-user-agent-parser.yaml +11 -0
- package/dist/specs/user-agent/user-agent-parser.yaml +11 -0
- package/dist/specs/weather/air-quality.yaml +14 -0
- package/dist/specs/weather/bulk-live-weather.yaml +11 -0
- package/dist/specs/weather/flood-forecast.yaml +14 -0
- package/dist/specs/weather/historical-weather.yaml +14 -0
- package/dist/specs/weather/live-weather.yaml +14 -0
- package/dist/specs/weather/marine-weather.yaml +14 -0
- package/dist/specs/weather/time-series-weather.yaml +11 -0
- package/dist/specs/weather/weather-forecast.yaml +11 -0
- package/dist/specs/whois/asn-lookup.yaml +14 -0
- package/dist/specs/whois/bulk-whois-lookup.yaml +17 -0
- package/dist/specs/whois/domain-whois-history-lookup.yaml +14 -0
- package/dist/specs/whois/reverse-whois.yaml +34 -0
- package/dist/specs/whois/whois-domain-lookup.yaml +17 -0
- package/dist/specs/whois/whois-ip-lookup.yaml +14 -0
- package/dist/specs/zip-code/bulk-zip-code-lookup.yaml +14 -0
- package/dist/specs/zip-code/zip-code-api.yaml +14 -0
- package/dist/specs/zip-code/zip-code-distance-match.yaml +14 -0
- package/dist/specs/zip-code/zip-code-distance.yaml +14 -0
- package/dist/specs/zip-code/zip-codes-by-city.yaml +14 -0
- package/dist/specs/zip-code/zip-codes-by-region.yaml +14 -0
- package/dist/specs/zip-code/zip-codes-radius-search.yaml +34 -0
- package/package.json +1 -1
- package/specs/commodity/commodity-fluctuation.json +23 -0
- package/specs/commodity/commodity-prices.json +23 -0
- package/specs/commodity/commodity-symbols.json +13 -0
- package/specs/commodity/commodity-time-series.json +27 -13
- package/specs/commodity/historical-commodity-prices.json +23 -0
- package/specs/currency/currency-converter.json +23 -0
- package/specs/currency/currency-fluctuation.json +23 -0
- package/specs/currency/currency-historical-data-limit.json +18 -0
- package/specs/currency/currency-rate.json +23 -0
- package/specs/currency/currency-supported.json +18 -0
- package/specs/currency/currency-symbols.json +18 -0
- package/specs/currency/currency-time-series.json +23 -0
- package/specs/currency/geolocalized-currency-conversion.json +23 -0
- package/specs/currency/historical-currency-converter.json +23 -0
- package/specs/currency/historical-currency-rate.json +23 -0
- package/specs/dns/bulk-dns-lookup.json +23 -0
- package/specs/dns/dns-history-lookup.json +23 -0
- package/specs/dns/dns-lookup.json +18 -0
- package/specs/dns/reverse-dns-lookup.json +61 -1
- package/specs/domain/bulk-domain-checker.json +28 -0
- package/specs/domain/domain-search-with-suggestions.json +23 -0
- package/specs/domain/domain-search.json +23 -0
- package/specs/domain/subdomain-lookup.json +23 -0
- package/specs/email-validation/bulk-email-validation.json +28 -0
- package/specs/email-validation/email-checker.json +64 -0
- package/specs/financial/bulk-vat-rates-country.json +23 -0
- package/specs/financial/financial-apis-supported-countries.json +34 -5
- package/specs/financial/iban-validation.json +18 -0
- package/specs/financial/swift-code-finder.json +31 -2
- package/specs/financial/swift-code-lookup.json +23 -0
- package/specs/financial/vat-number-validation.json +23 -0
- package/specs/financial/vat-rates-by-ip.json +23 -0
- package/specs/financial/vat-rates-country.json +23 -0
- package/specs/general/usage-credits.json +18 -0
- package/specs/geocoding/forward-geocoding.json +23 -0
- package/specs/geocoding/reverse-geocoding.json +18 -0
- package/specs/geodb/administrative-units-details.json +23 -0
- package/specs/geodb/administrative-units-levels.json +23 -0
- package/specs/geodb/administrative-units.json +23 -0
- package/specs/geodb/cities.json +23 -0
- package/specs/geodb/countries-details.json +18 -0
- package/specs/geodb/countries.json +18 -0
- package/specs/geodb/flags-supported.json +13 -0
- package/specs/geodb/flags.json +23 -0
- package/specs/geodb/regions.json +13 -0
- package/specs/geodb/subregions.json +23 -0
- package/specs/ip-intelligence/bulk-ip-lookup.json +23 -0
- package/specs/ip-intelligence/bulk-ip-threat-intelligence.json +18 -0
- package/specs/ip-intelligence/ip-locator.json +33 -5
- package/specs/ip-intelligence/ip-threat-intelligence.json +23 -0
- package/specs/other/astronomy-data.json +24 -2
- package/specs/pdf/bulk-pdf-generator.json +61 -8
- package/specs/pdf/delete-pdf-page.json +33 -21
- package/specs/pdf/linearize-pdf.json +31 -19
- package/specs/pdf/merge-pdf.json +30 -18
- package/specs/pdf/pdf-compress.json +32 -25
- package/specs/pdf/pdf-decrypt.json +32 -21
- package/specs/pdf/pdf-encrypt.json +31 -19
- package/specs/pdf/pdf-extract-pages.json +33 -21
- package/specs/pdf/pdf-file-status.json +23 -0
- package/specs/pdf/pdf-file.json +23 -0
- package/specs/pdf/pdf-files.json +13 -0
- package/specs/pdf/pdf-generator.json +61 -8
- package/specs/pdf/pdf-resource-download.json +23 -0
- package/specs/pdf/pdf-resource-upload-binary.json +29 -16
- package/specs/pdf/pdf-resource-upload.json +30 -19
- package/specs/pdf/pdf-restrict.json +32 -20
- package/specs/pdf/pdf-split-pages.json +33 -21
- package/specs/pdf/pdf-task-status.json +23 -0
- package/specs/pdf/pdf-to-image.json +90 -101
- package/specs/pdf/pdf-unrestrict.json +32 -20
- package/specs/pdf/rotate-pdf-pages.json +32 -20
- package/specs/phone-validation/bulk-phone-number-validation.json +54 -16
- package/specs/phone-validation/phone-number-validation.json +33 -0
- package/specs/scraper/web-scraper.json +53 -0
- package/specs/screenshot/bulk-screenshot.json +53 -0
- package/specs/screenshot/website-screenshot.json +53 -0
- package/specs/ssl/ssl-certificate-chain-lookup.json +28 -0
- package/specs/ssl/ssl-certificate-lookup.json +28 -0
- package/specs/timezone/timezone-converter.json +23 -0
- package/specs/timezone/timezone-lookup.json +25 -2
- package/specs/user-agent/bulk-user-agent-parser.json +20 -2
- package/specs/user-agent/user-agent-parser.json +18 -0
- package/specs/weather/air-quality.json +23 -0
- package/specs/weather/bulk-live-weather.json +18 -0
- package/specs/weather/flood-forecast.json +23 -0
- package/specs/weather/historical-weather.json +23 -0
- package/specs/weather/live-weather.json +23 -0
- package/specs/weather/marine-weather.json +23 -0
- package/specs/weather/time-series-weather.json +18 -0
- package/specs/weather/weather-forecast.json +18 -0
- package/specs/whois/asn-lookup.json +23 -0
- package/specs/whois/bulk-whois-lookup.json +28 -0
- package/specs/whois/domain-whois-history-lookup.json +23 -0
- package/specs/whois/reverse-whois.json +53 -0
- package/specs/whois/whois-domain-lookup.json +28 -0
- package/specs/whois/whois-ip-lookup.json +23 -0
- package/specs/zip-code/bulk-zip-code-lookup.json +23 -0
- package/specs/zip-code/zip-code-api.json +23 -0
- package/specs/zip-code/zip-code-distance-match.json +23 -0
- package/specs/zip-code/zip-code-distance.json +23 -0
- package/specs/zip-code/zip-codes-by-city.json +23 -0
- package/specs/zip-code/zip-codes-by-region.json +24 -7
- package/specs/zip-code/zip-codes-radius-search.json +53 -0
package/README.md
CHANGED
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
SPEC_SLUGS,
|
|
20
20
|
SPEC_CATEGORIES,
|
|
21
21
|
SPECS_BY_CATEGORY,
|
|
22
|
-
} from
|
|
22
|
+
} from "@apifreaks/openapi-specs";
|
|
23
23
|
|
|
24
24
|
// Get a single spec by slug
|
|
25
|
-
const spec = getSpec(
|
|
25
|
+
const spec = getSpec("ip-locator");
|
|
26
26
|
|
|
27
27
|
// Get all slugs in a category
|
|
28
|
-
const ipSlugs = getSpecsByCategory(
|
|
28
|
+
const ipSlugs = getSpecsByCategory("ip-intelligence");
|
|
29
29
|
|
|
30
30
|
// All available slugs
|
|
31
31
|
console.log(SPEC_SLUGS); // ['ip-locator', 'dns-lookup', ...]
|
|
@@ -40,59 +40,59 @@ console.log(SPECS_BY_CATEGORY);
|
|
|
40
40
|
### Direct JSON import (tree-shakable)
|
|
41
41
|
|
|
42
42
|
```ts
|
|
43
|
-
import ipLocator from
|
|
43
|
+
import ipLocator from "@apifreaks/openapi-specs/specs/ip-intelligence/ip-locator.json";
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
### CommonJS
|
|
47
47
|
|
|
48
48
|
```js
|
|
49
|
-
const { getSpec, SPEC_SLUGS } = require(
|
|
49
|
+
const { getSpec, SPEC_SLUGS } = require("@apifreaks/openapi-specs");
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
## API
|
|
53
53
|
|
|
54
|
-
| Export
|
|
55
|
-
|
|
56
|
-
| `getSpec(slug)`
|
|
57
|
-
| `getSpecsByCategory(category)` | `(string) => string[]`
|
|
58
|
-
| `SPEC_SLUGS`
|
|
59
|
-
| `SPEC_CATEGORIES`
|
|
60
|
-
| `SPECS`
|
|
61
|
-
| `SPECS_BY_CATEGORY`
|
|
54
|
+
| Export | Type | Description |
|
|
55
|
+
| ------------------------------ | -------------------------------------- | --------------------------------------------------- |
|
|
56
|
+
| `getSpec(slug)` | `(string) => OpenAPISpec \| undefined` | Returns the full spec object for a given slug |
|
|
57
|
+
| `getSpecsByCategory(category)` | `(string) => string[]` | Returns all slugs in a category, or `[]` if unknown |
|
|
58
|
+
| `SPEC_SLUGS` | `string[]` | All 102 spec slugs |
|
|
59
|
+
| `SPEC_CATEGORIES` | `string[]` | All 21 category names |
|
|
60
|
+
| `SPECS` | `Record<string, OpenAPISpec>` | Full spec objects keyed by slug |
|
|
61
|
+
| `SPECS_BY_CATEGORY` | `Record<string, string[]>` | Slugs grouped by category |
|
|
62
62
|
|
|
63
63
|
### Types
|
|
64
64
|
|
|
65
65
|
```ts
|
|
66
|
-
import type { OpenAPISpec } from
|
|
66
|
+
import type { OpenAPISpec } from "@apifreaks/openapi-specs";
|
|
67
67
|
|
|
68
68
|
// OpenAPISpec has: openapi, info, servers?, paths?, components?, [key: string]
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
## Categories
|
|
72
72
|
|
|
73
|
-
| Category
|
|
74
|
-
|
|
75
|
-
| `commodity`
|
|
76
|
-
| `currency`
|
|
77
|
-
| `dns`
|
|
78
|
-
| `domain`
|
|
79
|
-
| `email-validation` | 2
|
|
80
|
-
| `financial`
|
|
81
|
-
| `general`
|
|
82
|
-
| `geocoding`
|
|
83
|
-
| `geodb`
|
|
84
|
-
| `ip-intelligence`
|
|
85
|
-
| `other`
|
|
86
|
-
| `pdf`
|
|
87
|
-
| `phone-validation` | 2
|
|
88
|
-
| `scraper`
|
|
89
|
-
| `screenshot`
|
|
90
|
-
| `ssl`
|
|
91
|
-
| `timezone`
|
|
92
|
-
| `user-agent`
|
|
93
|
-
| `weather`
|
|
94
|
-
| `whois`
|
|
95
|
-
| `zip-code`
|
|
73
|
+
| Category | Count | Description |
|
|
74
|
+
| ------------------ | ----- | ------------------------------------------------------- |
|
|
75
|
+
| `commodity` | 5 | Commodity prices, symbols, time series |
|
|
76
|
+
| `currency` | 10 | Exchange rates, conversion, historical data |
|
|
77
|
+
| `dns` | 4 | DNS lookup, reverse DNS, history |
|
|
78
|
+
| `domain` | 4 | Domain search, checker, subdomain lookup |
|
|
79
|
+
| `email-validation` | 2 | Email verification and bulk validation |
|
|
80
|
+
| `financial` | 8 | VAT rates, IBAN/SWIFT validation |
|
|
81
|
+
| `general` | 1 | Usage and credits |
|
|
82
|
+
| `geocoding` | 2 | Forward and reverse geocoding |
|
|
83
|
+
| `geodb` | 10 | Countries, cities, regions, flags, administrative units |
|
|
84
|
+
| `ip-intelligence` | 4 | IP geolocation, threat intelligence, bulk lookup |
|
|
85
|
+
| `other` | 1 | Astronomy data |
|
|
86
|
+
| `pdf` | 19 | PDF manipulation, conversion, encryption |
|
|
87
|
+
| `phone-validation` | 2 | Phone number validation |
|
|
88
|
+
| `scraper` | 1 | Web scraping |
|
|
89
|
+
| `screenshot` | 2 | Website screenshots |
|
|
90
|
+
| `ssl` | 2 | SSL certificate lookup |
|
|
91
|
+
| `timezone` | 2 | Timezone lookup and conversion |
|
|
92
|
+
| `user-agent` | 2 | User-agent parsing |
|
|
93
|
+
| `weather` | 8 | Current, forecast, historical, marine weather |
|
|
94
|
+
| `whois` | 6 | WHOIS lookup, ASN, reverse WHOIS |
|
|
95
|
+
| `zip-code` | 7 | Zip code lookup, distance, radius search |
|
|
96
96
|
|
|
97
97
|
## Development
|
|
98
98
|
|