@apifreaks/openapi-specs 0.1.2 → 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 +4288 -1107
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4288 -1107
- 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 +231 -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 +348 -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 +343 -0
- 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 +497 -0
- 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
|
@@ -19,9 +19,7 @@
|
|
|
19
19
|
"paths": {
|
|
20
20
|
"/pdf/encrypt": {
|
|
21
21
|
"post": {
|
|
22
|
-
"tags": [
|
|
23
|
-
"PDF Security APIs"
|
|
24
|
-
],
|
|
22
|
+
"tags": ["PDF Security APIs"],
|
|
25
23
|
"summary": "Add password protection to a PDF",
|
|
26
24
|
"description": "This API encrypts a PDF file by setting a password required to open it.",
|
|
27
25
|
"parameters": [
|
|
@@ -31,10 +29,7 @@
|
|
|
31
29
|
"required": false,
|
|
32
30
|
"schema": {
|
|
33
31
|
"type": "string",
|
|
34
|
-
"enum": [
|
|
35
|
-
"json",
|
|
36
|
-
"xml"
|
|
37
|
-
],
|
|
32
|
+
"enum": ["json", "xml"],
|
|
38
33
|
"default": "json"
|
|
39
34
|
},
|
|
40
35
|
"description": "Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure."
|
|
@@ -109,7 +104,7 @@
|
|
|
109
104
|
"schema": {
|
|
110
105
|
"type": "boolean"
|
|
111
106
|
},
|
|
112
|
-
"description": "If true, a notification will also be sent by email in case the webhook request fails all the retries. The email notification will be sent to the requesting user or their organization
|
|
107
|
+
"description": "If true, a notification will also be sent by email in case the webhook request fails all the retries. The email notification will be sent to the requesting user or their organization’s admin if part of one."
|
|
113
108
|
},
|
|
114
109
|
{
|
|
115
110
|
"name": "X-Webhook-Authorization",
|
|
@@ -145,17 +140,20 @@
|
|
|
145
140
|
"summary": "Task created",
|
|
146
141
|
"value": {
|
|
147
142
|
"taskId": "c11f7d84-33f5-46da-a64c-e70b3704284e",
|
|
148
|
-
"inputIds": [
|
|
149
|
-
"2d11e722-85cc-4105-b345-f395d48b326e"
|
|
150
|
-
]
|
|
143
|
+
"inputIds": ["2d11e722-85cc-4105-b345-f395d48b326e"]
|
|
151
144
|
}
|
|
152
145
|
}
|
|
153
146
|
}
|
|
154
147
|
}
|
|
148
|
+
},
|
|
149
|
+
"headers": {
|
|
150
|
+
"X-AF-Credits-Cost": {
|
|
151
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
152
|
+
}
|
|
155
153
|
}
|
|
156
154
|
},
|
|
157
155
|
"400": {
|
|
158
|
-
"description": "Bad Request
|
|
156
|
+
"description": "Bad Request — Missing/invalid parameters, file ID, or password",
|
|
159
157
|
"content": {
|
|
160
158
|
"application/json": {
|
|
161
159
|
"examples": {
|
|
@@ -194,10 +192,15 @@
|
|
|
194
192
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
195
193
|
}
|
|
196
194
|
}
|
|
195
|
+
},
|
|
196
|
+
"headers": {
|
|
197
|
+
"X-AF-Credits-Cost": {
|
|
198
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
199
|
+
}
|
|
197
200
|
}
|
|
198
201
|
},
|
|
199
202
|
"415": {
|
|
200
|
-
"description": "Unsupported Media Type
|
|
203
|
+
"description": "Unsupported Media Type — File type not supported",
|
|
201
204
|
"content": {
|
|
202
205
|
"application/json": {
|
|
203
206
|
"examples": {
|
|
@@ -216,6 +219,11 @@
|
|
|
216
219
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
217
220
|
}
|
|
218
221
|
}
|
|
222
|
+
},
|
|
223
|
+
"headers": {
|
|
224
|
+
"X-AF-Credits-Cost": {
|
|
225
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
226
|
+
}
|
|
219
227
|
}
|
|
220
228
|
}
|
|
221
229
|
},
|
|
@@ -242,9 +250,7 @@
|
|
|
242
250
|
"PDFResponse": {
|
|
243
251
|
"type": "object",
|
|
244
252
|
"description": "Response containing the task ID and input file IDs for a PDF processing task.",
|
|
245
|
-
"required": [
|
|
246
|
-
"taskId"
|
|
247
|
-
],
|
|
253
|
+
"required": ["taskId"],
|
|
248
254
|
"properties": {
|
|
249
255
|
"taskId": {
|
|
250
256
|
"type": "string",
|
|
@@ -274,9 +280,7 @@
|
|
|
274
280
|
"ErrorResponse": {
|
|
275
281
|
"type": "object",
|
|
276
282
|
"description": "Standard error envelope returned by the API on failed requests.",
|
|
277
|
-
"required": [
|
|
278
|
-
"message"
|
|
279
|
-
],
|
|
283
|
+
"required": ["message"],
|
|
280
284
|
"properties": {
|
|
281
285
|
"error": {
|
|
282
286
|
"type": "string",
|
|
@@ -301,6 +305,14 @@
|
|
|
301
305
|
}
|
|
302
306
|
}
|
|
303
307
|
}
|
|
308
|
+
},
|
|
309
|
+
"headers": {
|
|
310
|
+
"X-AF-Credits-Cost": {
|
|
311
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
312
|
+
"schema": {
|
|
313
|
+
"type": "integer"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
304
316
|
}
|
|
305
317
|
},
|
|
306
318
|
"security": [
|
|
@@ -19,9 +19,7 @@
|
|
|
19
19
|
"paths": {
|
|
20
20
|
"/pdf/extract-pages": {
|
|
21
21
|
"post": {
|
|
22
|
-
"tags": [
|
|
23
|
-
"PDF Operations APIs"
|
|
24
|
-
],
|
|
22
|
+
"tags": ["PDF Operations APIs"],
|
|
25
23
|
"summary": "Extract pages from a PDF",
|
|
26
24
|
"description": "This API extracts specific pages or page ranges from a PDF file and returns them as a new PDF.",
|
|
27
25
|
"parameters": [
|
|
@@ -31,10 +29,7 @@
|
|
|
31
29
|
"required": false,
|
|
32
30
|
"schema": {
|
|
33
31
|
"type": "string",
|
|
34
|
-
"enum": [
|
|
35
|
-
"json",
|
|
36
|
-
"xml"
|
|
37
|
-
],
|
|
32
|
+
"enum": ["json", "xml"],
|
|
38
33
|
"default": "json"
|
|
39
34
|
},
|
|
40
35
|
"description": "Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure."
|
|
@@ -73,7 +68,7 @@
|
|
|
73
68
|
"schema": {
|
|
74
69
|
"type": "string"
|
|
75
70
|
},
|
|
76
|
-
"description": "Specifies which pages to extract from the PDF. You can provide individual page numbers (e.g., '2') and/or page ranges in any order, including descending (e.g., '9-5', '16-last'). Use commas to separate entries and hyphens for ranges. You may alternatively pass only one of the special keywords: 'even' (extracts all even-numbered pages), 'odd' (extracts all odd-numbered pages), 'last' (extracts only the last page), or 'all' (extracts all pages into individual files). Examples: '2,6-3', 'even', 'all'. Mixing special keywords with specific pages/ranges is not allowed. Malformed values or page numbers exceeding the document's page count are not rejected on this call
|
|
71
|
+
"description": "Specifies which pages to extract from the PDF. You can provide individual page numbers (e.g., '2') and/or page ranges in any order, including descending (e.g., '9-5', '16-last'). Use commas to separate entries and hyphens for ranges. You may alternatively pass only one of the special keywords: 'even' (extracts all even-numbered pages), 'odd' (extracts all odd-numbered pages), 'last' (extracts only the last page), or 'all' (extracts all pages into individual files). Examples: '2,6-3', 'even', 'all'. Mixing special keywords with specific pages/ranges is not allowed. Malformed values or page numbers exceeding the document's page count are not rejected on this call — the resulting task fails asynchronously (check task status)."
|
|
77
72
|
},
|
|
78
73
|
{
|
|
79
74
|
"name": "separated",
|
|
@@ -100,7 +95,7 @@
|
|
|
100
95
|
"schema": {
|
|
101
96
|
"type": "boolean"
|
|
102
97
|
},
|
|
103
|
-
"description": "If true, a notification will also be sent by email in case the webhook request fails all the retries. The email notification will be sent to the requesting user or their organization
|
|
98
|
+
"description": "If true, a notification will also be sent by email in case the webhook request fails all the retries. The email notification will be sent to the requesting user or their organization’s admin if part of one."
|
|
104
99
|
},
|
|
105
100
|
{
|
|
106
101
|
"name": "X-Webhook-Authorization",
|
|
@@ -125,7 +120,7 @@
|
|
|
125
120
|
},
|
|
126
121
|
"responses": {
|
|
127
122
|
"200": {
|
|
128
|
-
"description": "Extract task created successfully. Malformed or out-of-range page specifications are not rejected synchronously
|
|
123
|
+
"description": "Extract task created successfully. Malformed or out-of-range page specifications are not rejected synchronously — the task is created, then fails asynchronously; poll the task status endpoint and check for status \"failed\" with an error/message pair.",
|
|
129
124
|
"content": {
|
|
130
125
|
"application/json": {
|
|
131
126
|
"schema": {
|
|
@@ -136,17 +131,20 @@
|
|
|
136
131
|
"summary": "Task created",
|
|
137
132
|
"value": {
|
|
138
133
|
"taskId": "dabcbcf5-d4ba-4143-bc34-3a8db6c8476e",
|
|
139
|
-
"inputIds": [
|
|
140
|
-
"01a77122-c457-475d-a6f2-f88cd4ad8924"
|
|
141
|
-
]
|
|
134
|
+
"inputIds": ["01a77122-c457-475d-a6f2-f88cd4ad8924"]
|
|
142
135
|
}
|
|
143
136
|
}
|
|
144
137
|
}
|
|
145
138
|
}
|
|
139
|
+
},
|
|
140
|
+
"headers": {
|
|
141
|
+
"X-AF-Credits-Cost": {
|
|
142
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
143
|
+
}
|
|
146
144
|
}
|
|
147
145
|
},
|
|
148
146
|
"400": {
|
|
149
|
-
"description": "Bad Request
|
|
147
|
+
"description": "Bad Request — Missing/invalid parameters or file ID",
|
|
150
148
|
"content": {
|
|
151
149
|
"application/json": {
|
|
152
150
|
"examples": {
|
|
@@ -175,10 +173,15 @@
|
|
|
175
173
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
176
174
|
}
|
|
177
175
|
}
|
|
176
|
+
},
|
|
177
|
+
"headers": {
|
|
178
|
+
"X-AF-Credits-Cost": {
|
|
179
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
180
|
+
}
|
|
178
181
|
}
|
|
179
182
|
},
|
|
180
183
|
"415": {
|
|
181
|
-
"description": "Unsupported Media Type
|
|
184
|
+
"description": "Unsupported Media Type — File type not supported",
|
|
182
185
|
"content": {
|
|
183
186
|
"application/json": {
|
|
184
187
|
"examples": {
|
|
@@ -197,6 +200,11 @@
|
|
|
197
200
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
198
201
|
}
|
|
199
202
|
}
|
|
203
|
+
},
|
|
204
|
+
"headers": {
|
|
205
|
+
"X-AF-Credits-Cost": {
|
|
206
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
207
|
+
}
|
|
200
208
|
}
|
|
201
209
|
}
|
|
202
210
|
},
|
|
@@ -223,9 +231,7 @@
|
|
|
223
231
|
"PDFResponse": {
|
|
224
232
|
"type": "object",
|
|
225
233
|
"description": "Response containing the task ID and input file IDs for a PDF processing task.",
|
|
226
|
-
"required": [
|
|
227
|
-
"taskId"
|
|
228
|
-
],
|
|
234
|
+
"required": ["taskId"],
|
|
229
235
|
"properties": {
|
|
230
236
|
"taskId": {
|
|
231
237
|
"type": "string",
|
|
@@ -255,9 +261,7 @@
|
|
|
255
261
|
"ErrorResponse": {
|
|
256
262
|
"type": "object",
|
|
257
263
|
"description": "Standard error envelope returned by the API on failed requests.",
|
|
258
|
-
"required": [
|
|
259
|
-
"message"
|
|
260
|
-
],
|
|
264
|
+
"required": ["message"],
|
|
261
265
|
"properties": {
|
|
262
266
|
"error": {
|
|
263
267
|
"type": "string",
|
|
@@ -282,6 +286,14 @@
|
|
|
282
286
|
}
|
|
283
287
|
}
|
|
284
288
|
}
|
|
289
|
+
},
|
|
290
|
+
"headers": {
|
|
291
|
+
"X-AF-Credits-Cost": {
|
|
292
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
293
|
+
"schema": {
|
|
294
|
+
"type": "integer"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
285
297
|
}
|
|
286
298
|
},
|
|
287
299
|
"security": [
|
|
@@ -65,6 +65,11 @@
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
+
},
|
|
69
|
+
"headers": {
|
|
70
|
+
"X-AF-Credits-Cost": {
|
|
71
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
72
|
+
}
|
|
68
73
|
}
|
|
69
74
|
},
|
|
70
75
|
"400": {
|
|
@@ -87,6 +92,11 @@
|
|
|
87
92
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
88
93
|
}
|
|
89
94
|
}
|
|
95
|
+
},
|
|
96
|
+
"headers": {
|
|
97
|
+
"X-AF-Credits-Cost": {
|
|
98
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
99
|
+
}
|
|
90
100
|
}
|
|
91
101
|
},
|
|
92
102
|
"404": {
|
|
@@ -109,6 +119,11 @@
|
|
|
109
119
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
110
120
|
}
|
|
111
121
|
}
|
|
122
|
+
},
|
|
123
|
+
"headers": {
|
|
124
|
+
"X-AF-Credits-Cost": {
|
|
125
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
126
|
+
}
|
|
112
127
|
}
|
|
113
128
|
}
|
|
114
129
|
},
|
|
@@ -195,6 +210,14 @@
|
|
|
195
210
|
}
|
|
196
211
|
}
|
|
197
212
|
}
|
|
213
|
+
},
|
|
214
|
+
"headers": {
|
|
215
|
+
"X-AF-Credits-Cost": {
|
|
216
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
217
|
+
"schema": {
|
|
218
|
+
"type": "integer"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
198
221
|
}
|
|
199
222
|
},
|
|
200
223
|
"security": [
|
package/specs/pdf/pdf-file.json
CHANGED
|
@@ -63,6 +63,11 @@
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
+
},
|
|
67
|
+
"headers": {
|
|
68
|
+
"X-AF-Credits-Cost": {
|
|
69
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
70
|
+
}
|
|
66
71
|
}
|
|
67
72
|
},
|
|
68
73
|
"400": {
|
|
@@ -85,6 +90,11 @@
|
|
|
85
90
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
86
91
|
}
|
|
87
92
|
}
|
|
93
|
+
},
|
|
94
|
+
"headers": {
|
|
95
|
+
"X-AF-Credits-Cost": {
|
|
96
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
97
|
+
}
|
|
88
98
|
}
|
|
89
99
|
},
|
|
90
100
|
"404": {
|
|
@@ -107,6 +117,11 @@
|
|
|
107
117
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
108
118
|
}
|
|
109
119
|
}
|
|
120
|
+
},
|
|
121
|
+
"headers": {
|
|
122
|
+
"X-AF-Credits-Cost": {
|
|
123
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
124
|
+
}
|
|
110
125
|
}
|
|
111
126
|
}
|
|
112
127
|
},
|
|
@@ -177,6 +192,14 @@
|
|
|
177
192
|
}
|
|
178
193
|
}
|
|
179
194
|
}
|
|
195
|
+
},
|
|
196
|
+
"headers": {
|
|
197
|
+
"X-AF-Credits-Cost": {
|
|
198
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
199
|
+
"schema": {
|
|
200
|
+
"type": "integer"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
180
203
|
}
|
|
181
204
|
},
|
|
182
205
|
"security": [
|
package/specs/pdf/pdf-files.json
CHANGED
|
@@ -61,6 +61,11 @@
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
+
},
|
|
65
|
+
"headers": {
|
|
66
|
+
"X-AF-Credits-Cost": {
|
|
67
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
68
|
+
}
|
|
64
69
|
}
|
|
65
70
|
}
|
|
66
71
|
},
|
|
@@ -113,6 +118,14 @@
|
|
|
113
118
|
},
|
|
114
119
|
"required": []
|
|
115
120
|
}
|
|
121
|
+
},
|
|
122
|
+
"headers": {
|
|
123
|
+
"X-AF-Credits-Cost": {
|
|
124
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
125
|
+
"schema": {
|
|
126
|
+
"type": "integer"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
116
129
|
}
|
|
117
130
|
},
|
|
118
131
|
"security": [
|