@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.
Files changed (212) hide show
  1. package/README.md +37 -37
  2. package/dist/index.cjs +2787 -348
  3. package/dist/index.js +2787 -348
  4. package/dist/specs/commodity/commodity-fluctuation.yaml +14 -0
  5. package/dist/specs/commodity/commodity-prices.yaml +14 -0
  6. package/dist/specs/commodity/commodity-symbols.yaml +8 -0
  7. package/dist/specs/commodity/commodity-time-series.yaml +14 -0
  8. package/dist/specs/commodity/historical-commodity-prices.yaml +14 -0
  9. package/dist/specs/currency/currency-converter.yaml +14 -0
  10. package/dist/specs/currency/currency-fluctuation.yaml +14 -0
  11. package/dist/specs/currency/currency-historical-data-limit.yaml +11 -0
  12. package/dist/specs/currency/currency-rate.yaml +14 -0
  13. package/dist/specs/currency/currency-supported.yaml +11 -0
  14. package/dist/specs/currency/currency-symbols.yaml +11 -0
  15. package/dist/specs/currency/currency-time-series.yaml +14 -0
  16. package/dist/specs/currency/geolocalized-currency-conversion.yaml +14 -0
  17. package/dist/specs/currency/historical-currency-converter.yaml +14 -0
  18. package/dist/specs/currency/historical-currency-rate.yaml +14 -0
  19. package/dist/specs/dns/bulk-dns-lookup.yaml +14 -0
  20. package/dist/specs/dns/dns-history-lookup.yaml +14 -0
  21. package/dist/specs/dns/dns-lookup.yaml +11 -0
  22. package/dist/specs/dns/reverse-dns-lookup.yaml +34 -0
  23. package/dist/specs/domain/bulk-domain-checker.yaml +17 -0
  24. package/dist/specs/domain/domain-search-with-suggestions.yaml +14 -0
  25. package/dist/specs/domain/domain-search.yaml +14 -0
  26. package/dist/specs/domain/subdomain-lookup.yaml +14 -0
  27. package/dist/specs/email-validation/bulk-email-validation.yaml +17 -0
  28. package/dist/specs/email-validation/email-checker.yaml +41 -0
  29. package/dist/specs/financial/bulk-vat-rates-country.yaml +14 -0
  30. package/dist/specs/financial/financial-apis-supported-countries.yaml +8 -0
  31. package/dist/specs/financial/iban-validation.yaml +11 -0
  32. package/dist/specs/financial/swift-code-finder.yaml +11 -0
  33. package/dist/specs/financial/swift-code-lookup.yaml +14 -0
  34. package/dist/specs/financial/vat-number-validation.yaml +14 -0
  35. package/dist/specs/financial/vat-rates-by-ip.yaml +14 -0
  36. package/dist/specs/financial/vat-rates-country.yaml +14 -0
  37. package/dist/specs/general/usage-credits.yaml +11 -0
  38. package/dist/specs/geocoding/forward-geocoding.yaml +14 -0
  39. package/dist/specs/geocoding/reverse-geocoding.yaml +11 -0
  40. package/dist/specs/geodb/administrative-units-details.yaml +14 -0
  41. package/dist/specs/geodb/administrative-units-levels.yaml +14 -0
  42. package/dist/specs/geodb/administrative-units.yaml +14 -0
  43. package/dist/specs/geodb/cities.yaml +14 -0
  44. package/dist/specs/geodb/countries-details.yaml +11 -0
  45. package/dist/specs/geodb/countries.yaml +11 -0
  46. package/dist/specs/geodb/flags-supported.yaml +8 -0
  47. package/dist/specs/geodb/flags.yaml +14 -0
  48. package/dist/specs/geodb/regions.yaml +8 -0
  49. package/dist/specs/geodb/subregions.yaml +14 -0
  50. package/dist/specs/ip-intelligence/bulk-ip-lookup.yaml +14 -0
  51. package/dist/specs/ip-intelligence/bulk-ip-threat-intelligence.yaml +11 -0
  52. package/dist/specs/ip-intelligence/ip-locator.yaml +17 -0
  53. package/dist/specs/ip-intelligence/ip-threat-intelligence.yaml +14 -0
  54. package/dist/specs/other/astronomy-data.yaml +14 -0
  55. package/dist/specs/pdf/bulk-pdf-generator.yaml +32 -0
  56. package/dist/specs/pdf/delete-pdf-page.yaml +14 -0
  57. package/dist/specs/pdf/linearize-pdf.yaml +14 -0
  58. package/dist/specs/pdf/merge-pdf.yaml +14 -0
  59. package/dist/specs/pdf/pdf-compress.yaml +14 -0
  60. package/dist/specs/pdf/pdf-decrypt.yaml +14 -0
  61. package/dist/specs/pdf/pdf-encrypt.yaml +14 -0
  62. package/dist/specs/pdf/pdf-extract-pages.yaml +14 -0
  63. package/dist/specs/pdf/pdf-file-status.yaml +14 -0
  64. package/dist/specs/pdf/pdf-file.yaml +14 -0
  65. package/dist/specs/pdf/pdf-files.yaml +8 -0
  66. package/dist/specs/pdf/pdf-generator.yaml +32 -0
  67. package/dist/specs/pdf/pdf-resource-download.yaml +14 -0
  68. package/dist/specs/pdf/pdf-resource-upload-binary.yaml +14 -0
  69. package/dist/specs/pdf/pdf-resource-upload.yaml +14 -0
  70. package/dist/specs/pdf/pdf-restrict.yaml +14 -0
  71. package/dist/specs/pdf/pdf-split-pages.yaml +14 -0
  72. package/dist/specs/pdf/pdf-task-status.yaml +14 -0
  73. package/dist/specs/pdf/pdf-to-image.yaml +35 -0
  74. package/dist/specs/pdf/pdf-unrestrict.yaml +14 -0
  75. package/dist/specs/pdf/rotate-pdf-pages.yaml +14 -0
  76. package/dist/specs/phone-validation/bulk-phone-number-validation.yaml +23 -0
  77. package/dist/specs/phone-validation/phone-number-validation.yaml +20 -0
  78. package/dist/specs/scraper/web-scraper.yaml +34 -0
  79. package/dist/specs/screenshot/bulk-screenshot.yaml +34 -0
  80. package/dist/specs/screenshot/website-screenshot.yaml +34 -0
  81. package/dist/specs/ssl/ssl-certificate-chain-lookup.yaml +17 -0
  82. package/dist/specs/ssl/ssl-certificate-lookup.yaml +17 -0
  83. package/dist/specs/timezone/timezone-converter.yaml +14 -0
  84. package/dist/specs/timezone/timezone-lookup.yaml +14 -0
  85. package/dist/specs/user-agent/bulk-user-agent-parser.yaml +11 -0
  86. package/dist/specs/user-agent/user-agent-parser.yaml +11 -0
  87. package/dist/specs/weather/air-quality.yaml +14 -0
  88. package/dist/specs/weather/bulk-live-weather.yaml +11 -0
  89. package/dist/specs/weather/flood-forecast.yaml +14 -0
  90. package/dist/specs/weather/historical-weather.yaml +14 -0
  91. package/dist/specs/weather/live-weather.yaml +14 -0
  92. package/dist/specs/weather/marine-weather.yaml +14 -0
  93. package/dist/specs/weather/time-series-weather.yaml +11 -0
  94. package/dist/specs/weather/weather-forecast.yaml +11 -0
  95. package/dist/specs/whois/asn-lookup.yaml +14 -0
  96. package/dist/specs/whois/bulk-whois-lookup.yaml +17 -0
  97. package/dist/specs/whois/domain-whois-history-lookup.yaml +14 -0
  98. package/dist/specs/whois/reverse-whois.yaml +34 -0
  99. package/dist/specs/whois/whois-domain-lookup.yaml +17 -0
  100. package/dist/specs/whois/whois-ip-lookup.yaml +14 -0
  101. package/dist/specs/zip-code/bulk-zip-code-lookup.yaml +14 -0
  102. package/dist/specs/zip-code/zip-code-api.yaml +14 -0
  103. package/dist/specs/zip-code/zip-code-distance-match.yaml +14 -0
  104. package/dist/specs/zip-code/zip-code-distance.yaml +14 -0
  105. package/dist/specs/zip-code/zip-codes-by-city.yaml +14 -0
  106. package/dist/specs/zip-code/zip-codes-by-region.yaml +14 -0
  107. package/dist/specs/zip-code/zip-codes-radius-search.yaml +34 -0
  108. package/package.json +1 -1
  109. package/specs/commodity/commodity-fluctuation.json +23 -0
  110. package/specs/commodity/commodity-prices.json +23 -0
  111. package/specs/commodity/commodity-symbols.json +13 -0
  112. package/specs/commodity/commodity-time-series.json +27 -13
  113. package/specs/commodity/historical-commodity-prices.json +23 -0
  114. package/specs/currency/currency-converter.json +23 -0
  115. package/specs/currency/currency-fluctuation.json +23 -0
  116. package/specs/currency/currency-historical-data-limit.json +18 -0
  117. package/specs/currency/currency-rate.json +23 -0
  118. package/specs/currency/currency-supported.json +18 -0
  119. package/specs/currency/currency-symbols.json +18 -0
  120. package/specs/currency/currency-time-series.json +23 -0
  121. package/specs/currency/geolocalized-currency-conversion.json +23 -0
  122. package/specs/currency/historical-currency-converter.json +23 -0
  123. package/specs/currency/historical-currency-rate.json +23 -0
  124. package/specs/dns/bulk-dns-lookup.json +23 -0
  125. package/specs/dns/dns-history-lookup.json +23 -0
  126. package/specs/dns/dns-lookup.json +18 -0
  127. package/specs/dns/reverse-dns-lookup.json +61 -1
  128. package/specs/domain/bulk-domain-checker.json +28 -0
  129. package/specs/domain/domain-search-with-suggestions.json +23 -0
  130. package/specs/domain/domain-search.json +23 -0
  131. package/specs/domain/subdomain-lookup.json +23 -0
  132. package/specs/email-validation/bulk-email-validation.json +28 -0
  133. package/specs/email-validation/email-checker.json +64 -0
  134. package/specs/financial/bulk-vat-rates-country.json +23 -0
  135. package/specs/financial/financial-apis-supported-countries.json +34 -5
  136. package/specs/financial/iban-validation.json +18 -0
  137. package/specs/financial/swift-code-finder.json +31 -2
  138. package/specs/financial/swift-code-lookup.json +23 -0
  139. package/specs/financial/vat-number-validation.json +23 -0
  140. package/specs/financial/vat-rates-by-ip.json +23 -0
  141. package/specs/financial/vat-rates-country.json +23 -0
  142. package/specs/general/usage-credits.json +18 -0
  143. package/specs/geocoding/forward-geocoding.json +23 -0
  144. package/specs/geocoding/reverse-geocoding.json +18 -0
  145. package/specs/geodb/administrative-units-details.json +23 -0
  146. package/specs/geodb/administrative-units-levels.json +23 -0
  147. package/specs/geodb/administrative-units.json +23 -0
  148. package/specs/geodb/cities.json +23 -0
  149. package/specs/geodb/countries-details.json +18 -0
  150. package/specs/geodb/countries.json +18 -0
  151. package/specs/geodb/flags-supported.json +13 -0
  152. package/specs/geodb/flags.json +23 -0
  153. package/specs/geodb/regions.json +13 -0
  154. package/specs/geodb/subregions.json +23 -0
  155. package/specs/ip-intelligence/bulk-ip-lookup.json +23 -0
  156. package/specs/ip-intelligence/bulk-ip-threat-intelligence.json +18 -0
  157. package/specs/ip-intelligence/ip-locator.json +33 -5
  158. package/specs/ip-intelligence/ip-threat-intelligence.json +23 -0
  159. package/specs/other/astronomy-data.json +24 -2
  160. package/specs/pdf/bulk-pdf-generator.json +61 -8
  161. package/specs/pdf/delete-pdf-page.json +33 -21
  162. package/specs/pdf/linearize-pdf.json +31 -19
  163. package/specs/pdf/merge-pdf.json +30 -18
  164. package/specs/pdf/pdf-compress.json +32 -25
  165. package/specs/pdf/pdf-decrypt.json +32 -21
  166. package/specs/pdf/pdf-encrypt.json +31 -19
  167. package/specs/pdf/pdf-extract-pages.json +33 -21
  168. package/specs/pdf/pdf-file-status.json +23 -0
  169. package/specs/pdf/pdf-file.json +23 -0
  170. package/specs/pdf/pdf-files.json +13 -0
  171. package/specs/pdf/pdf-generator.json +61 -8
  172. package/specs/pdf/pdf-resource-download.json +23 -0
  173. package/specs/pdf/pdf-resource-upload-binary.json +29 -16
  174. package/specs/pdf/pdf-resource-upload.json +30 -19
  175. package/specs/pdf/pdf-restrict.json +32 -20
  176. package/specs/pdf/pdf-split-pages.json +33 -21
  177. package/specs/pdf/pdf-task-status.json +23 -0
  178. package/specs/pdf/pdf-to-image.json +90 -101
  179. package/specs/pdf/pdf-unrestrict.json +32 -20
  180. package/specs/pdf/rotate-pdf-pages.json +32 -20
  181. package/specs/phone-validation/bulk-phone-number-validation.json +54 -16
  182. package/specs/phone-validation/phone-number-validation.json +33 -0
  183. package/specs/scraper/web-scraper.json +53 -0
  184. package/specs/screenshot/bulk-screenshot.json +53 -0
  185. package/specs/screenshot/website-screenshot.json +53 -0
  186. package/specs/ssl/ssl-certificate-chain-lookup.json +28 -0
  187. package/specs/ssl/ssl-certificate-lookup.json +28 -0
  188. package/specs/timezone/timezone-converter.json +23 -0
  189. package/specs/timezone/timezone-lookup.json +25 -2
  190. package/specs/user-agent/bulk-user-agent-parser.json +20 -2
  191. package/specs/user-agent/user-agent-parser.json +18 -0
  192. package/specs/weather/air-quality.json +23 -0
  193. package/specs/weather/bulk-live-weather.json +18 -0
  194. package/specs/weather/flood-forecast.json +23 -0
  195. package/specs/weather/historical-weather.json +23 -0
  196. package/specs/weather/live-weather.json +23 -0
  197. package/specs/weather/marine-weather.json +23 -0
  198. package/specs/weather/time-series-weather.json +18 -0
  199. package/specs/weather/weather-forecast.json +18 -0
  200. package/specs/whois/asn-lookup.json +23 -0
  201. package/specs/whois/bulk-whois-lookup.json +28 -0
  202. package/specs/whois/domain-whois-history-lookup.json +23 -0
  203. package/specs/whois/reverse-whois.json +53 -0
  204. package/specs/whois/whois-domain-lookup.json +28 -0
  205. package/specs/whois/whois-ip-lookup.json +23 -0
  206. package/specs/zip-code/bulk-zip-code-lookup.json +23 -0
  207. package/specs/zip-code/zip-code-api.json +23 -0
  208. package/specs/zip-code/zip-code-distance-match.json +23 -0
  209. package/specs/zip-code/zip-code-distance.json +23 -0
  210. package/specs/zip-code/zip-codes-by-city.json +23 -0
  211. package/specs/zip-code/zip-codes-by-region.json +24 -7
  212. package/specs/zip-code/zip-codes-radius-search.json +53 -0
@@ -19,9 +19,7 @@
19
19
  "paths": {
20
20
  "/pdf/png": {
21
21
  "post": {
22
- "tags": [
23
- "PDF To Image APIs"
24
- ],
22
+ "tags": ["PDF To Image APIs"],
25
23
  "summary": "Convert PDF to PNG",
26
24
  "description": "This API converts a given PDF file into a sequence of PNG images.",
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."
@@ -99,14 +94,7 @@
99
94
  "required": false,
100
95
  "schema": {
101
96
  "type": "string",
102
- "enum": [
103
- "bw",
104
- "gray",
105
- "rgb",
106
- "rgba",
107
- "4-bit",
108
- "8-bit"
109
- ]
97
+ "enum": ["bw", "gray", "rgb", "rgba", "4-bit", "8-bit"]
110
98
  },
111
99
  "description": "Specifies the color profile for the output PNG images. Acceptable values: bw (1-bit black & white, smallest size, no grayscale or color), gray (8-bit grayscale), rgb (24-bit RGB color, default), rgba (32-bit RGB color with alpha channel for transparency), 4-bit (4-bit indexed color, up to 16 colors, smaller size), or 8-bit (8-bit indexed color, up to 256 colors)."
112
100
  },
@@ -126,7 +114,7 @@
126
114
  "schema": {
127
115
  "type": "boolean"
128
116
  },
129
- "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\u2019s admin if part of one."
117
+ "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."
130
118
  },
131
119
  {
132
120
  "name": "X-Webhook-Authorization",
@@ -162,17 +150,20 @@
162
150
  "summary": "Task created",
163
151
  "value": {
164
152
  "taskId": "b48e5ed0-e5ce-41bd-953c-6c590ded4b20",
165
- "inputIds": [
166
- "6d994947-3909-46cf-91fe-24316c457e2a"
167
- ]
153
+ "inputIds": ["6d994947-3909-46cf-91fe-24316c457e2a"]
168
154
  }
169
155
  }
170
156
  }
171
157
  }
158
+ },
159
+ "headers": {
160
+ "X-AF-Credits-Cost": {
161
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
162
+ }
172
163
  }
173
164
  },
174
165
  "400": {
175
- "description": "Bad Request \u2014 Missing/invalid parameters or file ID",
166
+ "description": "Bad Request Missing/invalid parameters or file ID",
176
167
  "content": {
177
168
  "application/json": {
178
169
  "examples": {
@@ -231,6 +222,11 @@
231
222
  "$ref": "#/components/schemas/ErrorResponse"
232
223
  }
233
224
  }
225
+ },
226
+ "headers": {
227
+ "X-AF-Credits-Cost": {
228
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
229
+ }
234
230
  }
235
231
  }
236
232
  },
@@ -239,9 +235,7 @@
239
235
  },
240
236
  "/pdf/jpg": {
241
237
  "post": {
242
- "tags": [
243
- "PDF To Image APIs"
244
- ],
238
+ "tags": ["PDF To Image APIs"],
245
239
  "summary": "Convert PDF to JPG",
246
240
  "description": "This API converts a given PDF file into a sequence of JPG images.",
247
241
  "parameters": [
@@ -251,10 +245,7 @@
251
245
  "required": false,
252
246
  "schema": {
253
247
  "type": "string",
254
- "enum": [
255
- "json",
256
- "xml"
257
- ],
248
+ "enum": ["json", "xml"],
258
249
  "default": "json"
259
250
  },
260
251
  "description": "Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure."
@@ -328,11 +319,7 @@
328
319
  "required": false,
329
320
  "schema": {
330
321
  "type": "string",
331
- "enum": [
332
- "gray",
333
- "rgb",
334
- "cmyk"
335
- ]
322
+ "enum": ["gray", "rgb", "cmyk"]
336
323
  },
337
324
  "description": "Specifies the color profile for the output JPG images. Acceptable values: bw (1-bit black & white, smallest size, no grayscale or color), gray (8-bit grayscale), rgb (24-bit RGB color, default), rgba (32-bit RGB color with alpha channel for transparency), 4-bit (4-bit indexed color, up to 16 colors, smaller size), or 8-bit (8-bit indexed color, up to 256 colors)."
338
325
  },
@@ -352,7 +339,7 @@
352
339
  "schema": {
353
340
  "type": "boolean"
354
341
  },
355
- "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\u2019s admin if part of one."
342
+ "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."
356
343
  },
357
344
  {
358
345
  "name": "X-Webhook-Authorization",
@@ -388,17 +375,20 @@
388
375
  "summary": "Task created",
389
376
  "value": {
390
377
  "taskId": "04a06cd5-158d-4191-a45b-6f58249c599d",
391
- "inputIds": [
392
- "7a9e4b12-f3c8-4d56-b7e1-8c2f9d0a3e6f"
393
- ]
378
+ "inputIds": ["7a9e4b12-f3c8-4d56-b7e1-8c2f9d0a3e6f"]
394
379
  }
395
380
  }
396
381
  }
397
382
  }
383
+ },
384
+ "headers": {
385
+ "X-AF-Credits-Cost": {
386
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
387
+ }
398
388
  }
399
389
  },
400
390
  "400": {
401
- "description": "Bad Request \u2014 Missing/invalid parameters or file ID",
391
+ "description": "Bad Request Missing/invalid parameters or file ID",
402
392
  "content": {
403
393
  "application/json": {
404
394
  "examples": {
@@ -467,6 +457,11 @@
467
457
  "$ref": "#/components/schemas/ErrorResponse"
468
458
  }
469
459
  }
460
+ },
461
+ "headers": {
462
+ "X-AF-Credits-Cost": {
463
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
464
+ }
470
465
  }
471
466
  }
472
467
  }
@@ -474,9 +469,7 @@
474
469
  },
475
470
  "/pdf/tif": {
476
471
  "post": {
477
- "tags": [
478
- "PDF To Image APIs"
479
- ],
472
+ "tags": ["PDF To Image APIs"],
480
473
  "summary": "Convert a PDF file into a sequence of TIFF images.",
481
474
  "description": "This API converts a given PDF file into a sequence of TIFF images. The output images can be saved as a single TIFF file, or as a sequence of TIFF files.",
482
475
  "parameters": [
@@ -486,10 +479,7 @@
486
479
  "required": false,
487
480
  "schema": {
488
481
  "type": "string",
489
- "enum": [
490
- "json",
491
- "xml"
492
- ],
482
+ "enum": ["json", "xml"],
493
483
  "default": "json"
494
484
  },
495
485
  "description": "Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure."
@@ -554,13 +544,7 @@
554
544
  "required": false,
555
545
  "schema": {
556
546
  "type": "string",
557
- "enum": [
558
- "bw",
559
- "gray",
560
- "rgb",
561
- "rgba",
562
- "cmyk"
563
- ]
547
+ "enum": ["bw", "gray", "rgb", "rgba", "cmyk"]
564
548
  },
565
549
  "description": "Specifies the color profile for the output TIF images. Acceptable values: bw (1-bit black & white, smallest size, no grayscale or color), gray (8-bit grayscale), rgb (24-bit RGB color, default), rgba (32-bit RGB color with alpha channel for transparency), 4-bit (4-bit indexed color, up to 16 colors, smaller size), or 8-bit (8-bit indexed color, up to 256 colors)."
566
550
  },
@@ -580,7 +564,7 @@
580
564
  "schema": {
581
565
  "type": "boolean"
582
566
  },
583
- "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\u2019s admin if part of one."
567
+ "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."
584
568
  },
585
569
  {
586
570
  "name": "X-Webhook-Authorization",
@@ -616,17 +600,20 @@
616
600
  "summary": "Task created",
617
601
  "value": {
618
602
  "taskId": "04a06cd5-158d-4191-a45b-6f58249c599d",
619
- "inputIds": [
620
- "7a9e4b12-f3c8-4d56-b7e1-8c2f9d0a3e6f"
621
- ]
603
+ "inputIds": ["7a9e4b12-f3c8-4d56-b7e1-8c2f9d0a3e6f"]
622
604
  }
623
605
  }
624
606
  }
625
607
  }
608
+ },
609
+ "headers": {
610
+ "X-AF-Credits-Cost": {
611
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
612
+ }
626
613
  }
627
614
  },
628
615
  "400": {
629
- "description": "Bad Request \u2014 Missing/invalid parameters or file ID",
616
+ "description": "Bad Request Missing/invalid parameters or file ID",
630
617
  "content": {
631
618
  "application/json": {
632
619
  "examples": {
@@ -685,6 +672,11 @@
685
672
  "$ref": "#/components/schemas/ErrorResponse"
686
673
  }
687
674
  }
675
+ },
676
+ "headers": {
677
+ "X-AF-Credits-Cost": {
678
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
679
+ }
688
680
  }
689
681
  }
690
682
  }
@@ -692,9 +684,7 @@
692
684
  },
693
685
  "/pdf/bmp": {
694
686
  "post": {
695
- "tags": [
696
- "PDF To Image APIs"
697
- ],
687
+ "tags": ["PDF To Image APIs"],
698
688
  "summary": "Convert PDF to BMP",
699
689
  "description": "Converts a PDF file to a BMP image.",
700
690
  "parameters": [
@@ -704,10 +694,7 @@
704
694
  "required": false,
705
695
  "schema": {
706
696
  "type": "string",
707
- "enum": [
708
- "json",
709
- "xml"
710
- ],
697
+ "enum": ["json", "xml"],
711
698
  "default": "json"
712
699
  },
713
700
  "description": "Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure."
@@ -772,13 +759,7 @@
772
759
  "required": false,
773
760
  "schema": {
774
761
  "type": "string",
775
- "enum": [
776
- "bw",
777
- "gray",
778
- "rgb",
779
- "4-bit",
780
- "8-bit"
781
- ]
762
+ "enum": ["bw", "gray", "rgb", "4-bit", "8-bit"]
782
763
  },
783
764
  "description": "Specifies the color profile for the output BMP images. Acceptable values: bw (1-bit black & white, smallest size, no grayscale or color), gray (8-bit grayscale), rgb (24-bit RGB color, default), rgba (32-bit RGB color with alpha channel for transparency), 4-bit (4-bit indexed color, up to 16 colors, smaller size), or 8-bit (8-bit indexed color, up to 256 colors)."
784
765
  },
@@ -798,7 +779,7 @@
798
779
  "schema": {
799
780
  "type": "boolean"
800
781
  },
801
- "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\u2019s admin if part of one."
782
+ "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."
802
783
  },
803
784
  {
804
785
  "name": "X-Webhook-Authorization",
@@ -834,17 +815,20 @@
834
815
  "summary": "Task created",
835
816
  "value": {
836
817
  "taskId": "04a06cd5-158d-4191-a45b-6f58249c599d",
837
- "inputIds": [
838
- "7a9e4b12-f3c8-4d56-b7e1-8c2f9d0a3e6f"
839
- ]
818
+ "inputIds": ["7a9e4b12-f3c8-4d56-b7e1-8c2f9d0a3e6f"]
840
819
  }
841
820
  }
842
821
  }
843
822
  }
823
+ },
824
+ "headers": {
825
+ "X-AF-Credits-Cost": {
826
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
827
+ }
844
828
  }
845
829
  },
846
830
  "400": {
847
- "description": "Bad Request \u2014 Missing/invalid parameters or file ID",
831
+ "description": "Bad Request Missing/invalid parameters or file ID",
848
832
  "content": {
849
833
  "application/json": {
850
834
  "examples": {
@@ -903,6 +887,11 @@
903
887
  "$ref": "#/components/schemas/ErrorResponse"
904
888
  }
905
889
  }
890
+ },
891
+ "headers": {
892
+ "X-AF-Credits-Cost": {
893
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
894
+ }
906
895
  }
907
896
  }
908
897
  }
@@ -910,9 +899,7 @@
910
899
  },
911
900
  "/pdf/gif": {
912
901
  "post": {
913
- "tags": [
914
- "PDF To Image APIs"
915
- ],
902
+ "tags": ["PDF To Image APIs"],
916
903
  "summary": "Convert PDF to GIF",
917
904
  "description": "This API converts a given PDF file into a sequence of GIF images.",
918
905
  "parameters": [
@@ -922,10 +909,7 @@
922
909
  "required": false,
923
910
  "schema": {
924
911
  "type": "string",
925
- "enum": [
926
- "json",
927
- "xml"
928
- ],
912
+ "enum": ["json", "xml"],
929
913
  "default": "json"
930
914
  },
931
915
  "description": "Specifies the desired format for the API response. Choose 'json' for a JSON object or 'xml' for an XML structure."
@@ -990,14 +974,7 @@
990
974
  "required": false,
991
975
  "schema": {
992
976
  "type": "string",
993
- "enum": [
994
- "bw",
995
- "gray",
996
- "rgb",
997
- "rgba",
998
- "4-bit",
999
- "8-bit"
1000
- ]
977
+ "enum": ["bw", "gray", "rgb", "rgba", "4-bit", "8-bit"]
1001
978
  },
1002
979
  "description": "Specifies the color profile for the output GIF images. Acceptable values: bw (1-bit black & white, smallest size, no grayscale or color), gray (8-bit grayscale), rgb (24-bit RGB color, default), rgba (32-bit RGB color with alpha channel for transparency), 4-bit (4-bit indexed color, up to 16 colors, smaller size), or 8-bit (8-bit indexed color, up to 256 colors)."
1003
980
  },
@@ -1017,7 +994,7 @@
1017
994
  "schema": {
1018
995
  "type": "boolean"
1019
996
  },
1020
- "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\u2019s admin if part of one."
997
+ "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."
1021
998
  },
1022
999
  {
1023
1000
  "name": "X-Webhook-Authorization",
@@ -1053,17 +1030,20 @@
1053
1030
  "summary": "Task created",
1054
1031
  "value": {
1055
1032
  "taskId": "04a06cd5-158d-4191-a45b-6f58249c599d",
1056
- "inputIds": [
1057
- "7a9e4b12-f3c8-4d56-b7e1-8c2f9d0a3e6f"
1058
- ]
1033
+ "inputIds": ["7a9e4b12-f3c8-4d56-b7e1-8c2f9d0a3e6f"]
1059
1034
  }
1060
1035
  }
1061
1036
  }
1062
1037
  }
1038
+ },
1039
+ "headers": {
1040
+ "X-AF-Credits-Cost": {
1041
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
1042
+ }
1063
1043
  }
1064
1044
  },
1065
1045
  "400": {
1066
- "description": "Bad Request \u2014 Missing/invalid parameters or file ID",
1046
+ "description": "Bad Request Missing/invalid parameters or file ID",
1067
1047
  "content": {
1068
1048
  "application/json": {
1069
1049
  "examples": {
@@ -1122,6 +1102,11 @@
1122
1102
  "$ref": "#/components/schemas/ErrorResponse"
1123
1103
  }
1124
1104
  }
1105
+ },
1106
+ "headers": {
1107
+ "X-AF-Credits-Cost": {
1108
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
1109
+ }
1125
1110
  }
1126
1111
  }
1127
1112
  }
@@ -1147,9 +1132,7 @@
1147
1132
  "PDFResponse": {
1148
1133
  "type": "object",
1149
1134
  "description": "Response containing the task ID and input file IDs for a PDF processing task.",
1150
- "required": [
1151
- "taskId"
1152
- ],
1135
+ "required": ["taskId"],
1153
1136
  "properties": {
1154
1137
  "taskId": {
1155
1138
  "type": "string",
@@ -1179,9 +1162,7 @@
1179
1162
  "ErrorResponse": {
1180
1163
  "type": "object",
1181
1164
  "description": "Standard error envelope returned by the API on failed requests.",
1182
- "required": [
1183
- "message"
1184
- ],
1165
+ "required": ["message"],
1185
1166
  "properties": {
1186
1167
  "error": {
1187
1168
  "type": "string",
@@ -1206,6 +1187,14 @@
1206
1187
  }
1207
1188
  }
1208
1189
  }
1190
+ },
1191
+ "headers": {
1192
+ "X-AF-Credits-Cost": {
1193
+ "description": "Specifies the number of credits consumed by the current request.",
1194
+ "schema": {
1195
+ "type": "integer"
1196
+ }
1197
+ }
1209
1198
  }
1210
1199
  },
1211
1200
  "security": [
@@ -19,9 +19,7 @@
19
19
  "paths": {
20
20
  "/pdf/unrestrict": {
21
21
  "post": {
22
- "tags": [
23
- "PDF Security APIs"
24
- ],
22
+ "tags": ["PDF Security APIs"],
25
23
  "summary": "Remove permission restrictions from a PDF while keeping it encrypted.",
26
24
  "description": "This API removes permission restrictions from a PDF while keeping it encrypted. If you want to remove all security (including encryption), use the `/pdf/decrypt` endpoint instead.",
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."
@@ -82,7 +77,7 @@
82
77
  "schema": {
83
78
  "type": "string"
84
79
  },
85
- "description": "Sets the user password for the PDF file. Required \u2014 providing only owner_password without user_password is rejected. Password Length should be between 6 and 128 characters."
80
+ "description": "Sets the user password for the PDF file. Required providing only owner_password without user_password is rejected. Password Length should be between 6 and 128 characters."
86
81
  },
87
82
  {
88
83
  "name": "owner_password",
@@ -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\u2019s admin if part of one."
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": "16cc979a-55b9-476c-bfef-0977314478ec",
148
- "inputIds": [
149
- "9c809ef8-583a-40f1-afe2-424d1d953b69"
150
- ]
143
+ "inputIds": ["9c809ef8-583a-40f1-afe2-424d1d953b69"]
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 \u2014 Missing/invalid parameters, file ID, or password",
156
+ "description": "Bad Request Missing/invalid parameters, file ID, or password",
159
157
  "content": {
160
158
  "application/json": {
161
159
  "examples": {
@@ -204,10 +202,15 @@
204
202
  "$ref": "#/components/schemas/ErrorResponse"
205
203
  }
206
204
  }
205
+ },
206
+ "headers": {
207
+ "X-AF-Credits-Cost": {
208
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
209
+ }
207
210
  }
208
211
  },
209
212
  "415": {
210
- "description": "Unsupported Media Type \u2014 File type not supported",
213
+ "description": "Unsupported Media Type File type not supported",
211
214
  "content": {
212
215
  "application/json": {
213
216
  "schema": {
@@ -226,6 +229,11 @@
226
229
  }
227
230
  }
228
231
  }
232
+ },
233
+ "headers": {
234
+ "X-AF-Credits-Cost": {
235
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
236
+ }
229
237
  }
230
238
  }
231
239
  },
@@ -252,9 +260,7 @@
252
260
  "PDFResponse": {
253
261
  "type": "object",
254
262
  "description": "Response containing the task ID and input file IDs for a PDF processing task.",
255
- "required": [
256
- "taskId"
257
- ],
263
+ "required": ["taskId"],
258
264
  "properties": {
259
265
  "taskId": {
260
266
  "type": "string",
@@ -284,9 +290,7 @@
284
290
  "ErrorResponse": {
285
291
  "type": "object",
286
292
  "description": "Standard error envelope returned by the API on failed requests.",
287
- "required": [
288
- "message"
289
- ],
293
+ "required": ["message"],
290
294
  "properties": {
291
295
  "error": {
292
296
  "type": "string",
@@ -311,6 +315,14 @@
311
315
  }
312
316
  }
313
317
  }
318
+ },
319
+ "headers": {
320
+ "X-AF-Credits-Cost": {
321
+ "description": "Specifies the number of credits consumed by the current request.",
322
+ "schema": {
323
+ "type": "integer"
324
+ }
325
+ }
314
326
  }
315
327
  },
316
328
  "security": [