@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
|
@@ -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": [
|
|
@@ -159,10 +159,15 @@
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
+
},
|
|
163
|
+
"headers": {
|
|
164
|
+
"X-AF-Credits-Cost": {
|
|
165
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
166
|
+
}
|
|
162
167
|
}
|
|
163
168
|
},
|
|
164
169
|
"400": {
|
|
165
|
-
"description": "Bad Request
|
|
170
|
+
"description": "Bad Request — Missing or malformed parameters, missing data, or an unreachable data_url.",
|
|
166
171
|
"content": {
|
|
167
172
|
"application/json": {
|
|
168
173
|
"schema": {
|
|
@@ -201,10 +206,15 @@
|
|
|
201
206
|
}
|
|
202
207
|
}
|
|
203
208
|
}
|
|
209
|
+
},
|
|
210
|
+
"headers": {
|
|
211
|
+
"X-AF-Credits-Cost": {
|
|
212
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
213
|
+
}
|
|
204
214
|
}
|
|
205
215
|
},
|
|
206
216
|
"401": {
|
|
207
|
-
"description": "Unauthorized
|
|
217
|
+
"description": "Unauthorized — The API key is missing or invalid.",
|
|
208
218
|
"content": {
|
|
209
219
|
"application/json": {
|
|
210
220
|
"schema": {
|
|
@@ -223,10 +233,15 @@
|
|
|
223
233
|
}
|
|
224
234
|
}
|
|
225
235
|
}
|
|
236
|
+
},
|
|
237
|
+
"headers": {
|
|
238
|
+
"X-AF-Credits-Cost": {
|
|
239
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
240
|
+
}
|
|
226
241
|
}
|
|
227
242
|
},
|
|
228
243
|
"403": {
|
|
229
|
-
"description": "Forbidden
|
|
244
|
+
"description": "Forbidden — The account does not have access to this template.",
|
|
230
245
|
"content": {
|
|
231
246
|
"application/json": {
|
|
232
247
|
"schema": {
|
|
@@ -245,10 +260,15 @@
|
|
|
245
260
|
}
|
|
246
261
|
}
|
|
247
262
|
}
|
|
263
|
+
},
|
|
264
|
+
"headers": {
|
|
265
|
+
"X-AF-Credits-Cost": {
|
|
266
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
267
|
+
}
|
|
248
268
|
}
|
|
249
269
|
},
|
|
250
270
|
"404": {
|
|
251
|
-
"description": "Not Found
|
|
271
|
+
"description": "Not Found — No template matches the template_id, or the requested version does not exist.",
|
|
252
272
|
"content": {
|
|
253
273
|
"application/json": {
|
|
254
274
|
"schema": {
|
|
@@ -267,10 +287,15 @@
|
|
|
267
287
|
}
|
|
268
288
|
}
|
|
269
289
|
}
|
|
290
|
+
},
|
|
291
|
+
"headers": {
|
|
292
|
+
"X-AF-Credits-Cost": {
|
|
293
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
294
|
+
}
|
|
270
295
|
}
|
|
271
296
|
},
|
|
272
297
|
"415": {
|
|
273
|
-
"description": "Unsupported Media Type
|
|
298
|
+
"description": "Unsupported Media Type — The request Content-Type is not supported for this endpoint.",
|
|
274
299
|
"content": {
|
|
275
300
|
"application/json": {
|
|
276
301
|
"schema": {
|
|
@@ -289,10 +314,15 @@
|
|
|
289
314
|
}
|
|
290
315
|
}
|
|
291
316
|
}
|
|
317
|
+
},
|
|
318
|
+
"headers": {
|
|
319
|
+
"X-AF-Credits-Cost": {
|
|
320
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
321
|
+
}
|
|
292
322
|
}
|
|
293
323
|
},
|
|
294
324
|
"422": {
|
|
295
|
-
"description": "Unprocessable Entity
|
|
325
|
+
"description": "Unprocessable Entity — The request contains invalid or missing data.",
|
|
296
326
|
"content": {
|
|
297
327
|
"application/json": {
|
|
298
328
|
"schema": {
|
|
@@ -311,10 +341,15 @@
|
|
|
311
341
|
}
|
|
312
342
|
}
|
|
313
343
|
}
|
|
344
|
+
},
|
|
345
|
+
"headers": {
|
|
346
|
+
"X-AF-Credits-Cost": {
|
|
347
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
348
|
+
}
|
|
314
349
|
}
|
|
315
350
|
},
|
|
316
351
|
"500": {
|
|
317
|
-
"description": "Internal Server Error
|
|
352
|
+
"description": "Internal Server Error — An unexpected error occurred, or the PDF could not be generated.",
|
|
318
353
|
"content": {
|
|
319
354
|
"application/json": {
|
|
320
355
|
"schema": {
|
|
@@ -333,10 +368,15 @@
|
|
|
333
368
|
}
|
|
334
369
|
}
|
|
335
370
|
}
|
|
371
|
+
},
|
|
372
|
+
"headers": {
|
|
373
|
+
"X-AF-Credits-Cost": {
|
|
374
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
375
|
+
}
|
|
336
376
|
}
|
|
337
377
|
},
|
|
338
378
|
"504": {
|
|
339
|
-
"description": "Gateway Timeout
|
|
379
|
+
"description": "Gateway Timeout — The request went past the 100 second processing limit.",
|
|
340
380
|
"content": {
|
|
341
381
|
"application/json": {
|
|
342
382
|
"schema": {
|
|
@@ -355,6 +395,11 @@
|
|
|
355
395
|
}
|
|
356
396
|
}
|
|
357
397
|
}
|
|
398
|
+
},
|
|
399
|
+
"headers": {
|
|
400
|
+
"X-AF-Credits-Cost": {
|
|
401
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
402
|
+
}
|
|
358
403
|
}
|
|
359
404
|
}
|
|
360
405
|
},
|
|
@@ -431,6 +476,14 @@
|
|
|
431
476
|
}
|
|
432
477
|
}
|
|
433
478
|
}
|
|
479
|
+
},
|
|
480
|
+
"headers": {
|
|
481
|
+
"X-AF-Credits-Cost": {
|
|
482
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
483
|
+
"schema": {
|
|
484
|
+
"type": "integer"
|
|
485
|
+
}
|
|
486
|
+
}
|
|
434
487
|
}
|
|
435
488
|
},
|
|
436
489
|
"security": [
|
|
@@ -60,6 +60,11 @@
|
|
|
60
60
|
"format": "binary"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
+
},
|
|
64
|
+
"headers": {
|
|
65
|
+
"X-AF-Credits-Cost": {
|
|
66
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
67
|
+
}
|
|
63
68
|
}
|
|
64
69
|
},
|
|
65
70
|
"400": {
|
|
@@ -82,6 +87,11 @@
|
|
|
82
87
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
83
88
|
}
|
|
84
89
|
}
|
|
90
|
+
},
|
|
91
|
+
"headers": {
|
|
92
|
+
"X-AF-Credits-Cost": {
|
|
93
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
94
|
+
}
|
|
85
95
|
}
|
|
86
96
|
},
|
|
87
97
|
"404": {
|
|
@@ -104,6 +114,11 @@
|
|
|
104
114
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
105
115
|
}
|
|
106
116
|
}
|
|
117
|
+
},
|
|
118
|
+
"headers": {
|
|
119
|
+
"X-AF-Credits-Cost": {
|
|
120
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
121
|
+
}
|
|
107
122
|
}
|
|
108
123
|
}
|
|
109
124
|
},
|
|
@@ -155,6 +170,14 @@
|
|
|
155
170
|
}
|
|
156
171
|
}
|
|
157
172
|
}
|
|
173
|
+
},
|
|
174
|
+
"headers": {
|
|
175
|
+
"X-AF-Credits-Cost": {
|
|
176
|
+
"description": "Specifies the number of credits consumed by the current request.",
|
|
177
|
+
"schema": {
|
|
178
|
+
"type": "integer"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
158
181
|
}
|
|
159
182
|
},
|
|
160
183
|
"security": [
|