@apifreaks/openapi-specs 0.4.21 → 0.4.23

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 (39) hide show
  1. package/dist/index.cjs +399 -325
  2. package/dist/index.js +399 -325
  3. package/dist/specs/dns/dns-lookup.yaml +4 -4
  4. package/dist/specs/pdf/delete-pdf-page.yaml +12 -4
  5. package/dist/specs/pdf/linearize-pdf.yaml +11 -3
  6. package/dist/specs/pdf/merge-pdf.yaml +11 -3
  7. package/dist/specs/pdf/pdf-compress.yaml +12 -4
  8. package/dist/specs/pdf/pdf-decrypt.yaml +13 -5
  9. package/dist/specs/pdf/pdf-encrypt.yaml +11 -3
  10. package/dist/specs/pdf/pdf-extract-pages.yaml +11 -3
  11. package/dist/specs/pdf/pdf-resource-upload-binary.yaml +1 -1
  12. package/dist/specs/pdf/pdf-resource-upload.yaml +3 -3
  13. package/dist/specs/pdf/pdf-restrict.yaml +13 -5
  14. package/dist/specs/pdf/pdf-to-image.yaml +130 -0
  15. package/dist/specs/pdf/pdf-unrestrict.yaml +13 -5
  16. package/dist/specs/pdf/rotate-pdf-pages.yaml +11 -3
  17. package/dist/specs/pdf/split-pdf.yaml +11 -3
  18. package/dist/specs/screenshot/bulk-screenshot.yaml +11 -10
  19. package/dist/specs/screenshot/website-screenshot.yaml +11 -10
  20. package/dist/specs/whois/whois-ip-lookup.yaml +0 -243
  21. package/package.json +1 -1
  22. package/specs/dns/dns-lookup.json +4 -4
  23. package/specs/pdf/delete-pdf-page.json +14 -4
  24. package/specs/pdf/linearize-pdf.json +13 -3
  25. package/specs/pdf/merge-pdf.json +13 -3
  26. package/specs/pdf/pdf-compress.json +14 -4
  27. package/specs/pdf/pdf-decrypt.json +16 -6
  28. package/specs/pdf/pdf-encrypt.json +13 -3
  29. package/specs/pdf/pdf-extract-pages.json +13 -3
  30. package/specs/pdf/pdf-resource-upload-binary.json +1 -1
  31. package/specs/pdf/pdf-resource-upload.json +4 -4
  32. package/specs/pdf/pdf-restrict.json +16 -6
  33. package/specs/pdf/pdf-to-image.json +185 -0
  34. package/specs/pdf/pdf-unrestrict.json +16 -6
  35. package/specs/pdf/rotate-pdf-pages.json +13 -3
  36. package/specs/pdf/split-pdf.json +13 -3
  37. package/specs/screenshot/bulk-screenshot.json +10 -10
  38. package/specs/screenshot/website-screenshot.json +10 -10
  39. package/specs/whois/whois-ip-lookup.json +3 -229
@@ -318,10 +318,10 @@
318
318
  "required": false,
319
319
  "schema": {
320
320
  "type": "string",
321
- "enum": ["load", "domcontentloaded", "networkidle"],
321
+ "enum": ["load", "domcontentloaded", "networkidle0", "networkidle2"],
322
322
  "default": "load"
323
323
  },
324
- "description": "Controls when rendering starts based on page load lifecycle. `load` (all resources), `domcontentloaded` (HTML parsed), `networkidle` (no network activity for 500ms)."
324
+ "description": "Controls when rendering starts based on the page load lifecycle. `load` waits for all resources, `domcontentloaded` waits for the HTML to be parsed, `networkidle0` waits until there are no network requests for 500ms, and `networkidle2` waits until no more than 2 requests are active for 500ms. Use `networkidle2` when a page keeps one or two long-running requests open, such as a polling call, that stop `networkidle0` from completing. Write the value in lowercase, exactly as listed."
325
325
  },
326
326
  {
327
327
  "name": "delay",
@@ -331,7 +331,7 @@
331
331
  "type": "integer",
332
332
  "default": 0
333
333
  },
334
- "description": "Wait period in milliseconds before capture. Allows animations, API responses, and dynamic elements to finish rendering."
334
+ "description": "Wait period in milliseconds before capture. Allows animations, API responses, and dynamic elements to finish rendering. A value above 30000 is cut to 30 seconds and the request still succeeds."
335
335
  },
336
336
  {
337
337
  "name": "lazy_load",
@@ -351,7 +351,7 @@
351
351
  "type": "integer",
352
352
  "default": 500
353
353
  },
354
- "description": "Delay in milliseconds between scroll steps when `lazy_load` is enabled. Use higher values for heavy pages."
354
+ "description": "Delay in milliseconds between scroll steps when `lazy_load` is enabled. Use higher values for heavy pages. On a long page, a very high value can push the total time past `timeout` and fail the request."
355
355
  },
356
356
  {
357
357
  "name": "timeout",
@@ -727,7 +727,7 @@
727
727
  "schema": {
728
728
  "type": "string"
729
729
  },
730
- "description": "Fine-grained blocking of specific URLs or patterns. Separate multiple rules by comma, space, or newline. Default: empty."
730
+ "description": "Blocks specific requests. Separate rules by comma, space, or newline. A rule without `*` must match the full request URL exactly, including the scheme and path; a bare domain or partial path does not match. A rule with `*` is a wildcard: each `*` matches any run of characters, including dots and slashes, the whole URL must match, and matching is not case-sensitive. Use wildcards for URLs that change on every load, such as a random subdomain or port, for example `https://*.example.com:*/*`. Default: empty."
731
731
  },
732
732
  {
733
733
  "name": "extract_text",
@@ -835,7 +835,7 @@
835
835
  "type": "boolean",
836
836
  "default": false
837
837
  },
838
- "description": "Solves a captcha made of text drawn in a picture, then takes the screenshot. Requires captcha_image and captcha_input. Adds 20 credits per request."
838
+ "description": "Solves a captcha made of text drawn in a picture, then takes the screenshot. Requires captcha_image and captcha_input. It reads text inside a picture only; checkbox challenges and challenges that ask you to select pictures are not supported. Adds 20 credits per request."
839
839
  },
840
840
  {
841
841
  "name": "captcha_image",
@@ -844,7 +844,7 @@
844
844
  "schema": {
845
845
  "type": "string"
846
846
  },
847
- "description": "CSS selector of the captcha picture. Required when solve_captcha is true."
847
+ "description": "CSS selector of the captcha picture, for example `#captcha-img`. Required when solve_captcha is true. The solver waits up to 30 seconds for it to appear."
848
848
  },
849
849
  {
850
850
  "name": "captcha_input",
@@ -862,7 +862,7 @@
862
862
  "schema": {
863
863
  "type": "string"
864
864
  },
865
- "description": "CSS selector of the button to click after the answer is typed."
865
+ "description": "CSS selector of the button to click after the answer is typed. Without it the answer is typed but no button is pressed, which works only when the page checks the answer as you type."
866
866
  },
867
867
  {
868
868
  "name": "captcha_error",
@@ -871,7 +871,7 @@
871
871
  "schema": {
872
872
  "type": "string"
873
873
  },
874
- "description": "CSS selector of the message shown for a wrong answer. While it is visible, the solver tries again."
874
+ "description": "CSS selector of the message shown for a wrong answer. While it is visible, the solver tries again. Without it the solver cannot tell that a guess was wrong and makes one try."
875
875
  },
876
876
  {
877
877
  "name": "captcha_refresh",
@@ -892,7 +892,7 @@
892
892
  "maximum": 5,
893
893
  "default": 3
894
894
  },
895
- "description": "Number of guesses the solver makes, from 1 to 5."
895
+ "description": "Number of guesses the solver makes, from 1 to 5. When every guess is rejected, the request fails."
896
896
  },
897
897
  {
898
898
  "name": "ocr_model",
@@ -717,11 +717,8 @@
717
717
  "whois_raw_response": {
718
718
  "type": "string",
719
719
  "description": "Unparsed WHOIS response from the WHOIS server."
720
- },
721
- "r_whois_raw_response": {
722
- "type": ["string", "null"],
723
- "description": "WHOIS response from the rwhois server, if available."
724
720
  }
721
+
725
722
  }
726
723
  },
727
724
  "InetNum": {
@@ -770,27 +767,6 @@
770
767
  "type": ["string", "null"],
771
768
  "description": "URL to the geofeed (RFC 8805) for this prefix."
772
769
  },
773
- "latitude": {
774
- "type": ["number", "null"],
775
- "format": "float",
776
- "description": "Latitude parsed from the geoloc field."
777
- },
778
- "longitude": {
779
- "type": ["number", "null"],
780
- "format": "float",
781
- "description": "Longitude parsed from the geoloc field."
782
- },
783
- "city": {
784
- "type": ["string", "null"],
785
- "description": "City of allocation, primarily from LACNIC responses."
786
- },
787
- "languages": {
788
- "type": ["array", "null"],
789
- "description": "Regional languages in countries of allocation.",
790
- "items": {
791
- "type": "string"
792
- }
793
- },
794
770
  "status": {
795
771
  "type": ["string", "null"],
796
772
  "description": "Allocation or assignment status (e.g., 'Direct Allocation')."
@@ -799,31 +775,6 @@
799
775
  "type": ["string", "null"],
800
776
  "description": "Handle (unique ID) of the organization managing this inetnum."
801
777
  },
802
- "sponsoring_organization": {
803
- "type": ["string", "null"],
804
- "description": "Handle of the sponsoring organization for this inetnum."
805
- },
806
- "admin_contacts": {
807
- "type": ["array", "null"],
808
- "description": "Handles of admin persons or roles in WHOIS data.",
809
- "items": {
810
- "type": "string"
811
- }
812
- },
813
- "tech_contacts": {
814
- "type": ["array", "null"],
815
- "description": "Handles of technical persons or roles in WHOIS data.",
816
- "items": {
817
- "type": "string"
818
- }
819
- },
820
- "abuse_contacts": {
821
- "type": ["array", "null"],
822
- "description": "Handles of abuse persons or roles in WHOIS data.",
823
- "items": {
824
- "type": "string"
825
- }
826
- },
827
778
  "remarks": {
828
779
  "type": ["array", "null"],
829
780
  "description": "Remarks from the inetnum object.",
@@ -932,10 +883,6 @@
932
883
  "type": ["string", "null"],
933
884
  "description": "Parsed city from the address field."
934
885
  },
935
- "district": {
936
- "type": ["string", "null"],
937
- "description": "Parsed district from the address field."
938
- },
939
886
  "state": {
940
887
  "type": ["string", "null"],
941
888
  "description": "Parsed state from the address field."
@@ -976,13 +923,6 @@
976
923
  "type": "string"
977
924
  }
978
925
  },
979
- "organizations": {
980
- "type": ["array", "null"],
981
- "description": "Handles of organization objects linked to this IRT.",
982
- "items": {
983
- "type": "string"
984
- }
985
- },
986
926
  "admin_contacts": {
987
927
  "type": "array",
988
928
  "description": "Handles of admin persons or roles linked to this IRT.",
@@ -1004,27 +944,6 @@
1004
944
  "type": "string"
1005
945
  }
1006
946
  },
1007
- "signature": {
1008
- "type": ["array", "null"],
1009
- "description": "Cryptographic signatures for this IRT object.",
1010
- "items": {
1011
- "type": "string"
1012
- }
1013
- },
1014
- "encryption": {
1015
- "type": ["array", "null"],
1016
- "description": "Encryption keys for this IRT object.",
1017
- "items": {
1018
- "type": "string"
1019
- }
1020
- },
1021
- "auth": {
1022
- "type": ["array", "null"],
1023
- "description": "Authentication methods for this IRT object.",
1024
- "items": {
1025
- "type": "string"
1026
- }
1027
- },
1028
947
  "notify": {
1029
948
  "type": ["array", "null"],
1030
949
  "description": "Notify email addresses for this IRT object.",
@@ -1046,18 +965,6 @@
1046
965
  "type": "string"
1047
966
  }
1048
967
  },
1049
- "mnt_ref": {
1050
- "type": ["array", "null"],
1051
- "description": "Referenced maintainer handles for this IRT object.",
1052
- "items": {
1053
- "type": "string"
1054
- }
1055
- },
1056
- "date_created": {
1057
- "type": ["string", "null"],
1058
- "format": "date",
1059
- "description": "Registration date of this IRT object (YYYY-MM-DD)."
1060
- },
1061
968
  "date_updated": {
1062
969
  "type": ["string", "null"],
1063
970
  "format": "date",
@@ -1066,31 +973,9 @@
1066
973
  "source": {
1067
974
  "type": "string",
1068
975
  "description": "WHOIS data source for this IRT object."
1069
- },
1070
- "organization": {
1071
- "$ref": "#/components/schemas/IpWhoisOrganization"
1072
- },
1073
- "administrative_contacts": {
1074
- "type": ["array", "null"],
1075
- "description": "Administrative contacts linked to this IRT.",
1076
- "items": {
1077
- "$ref": "#/components/schemas/WhoisContactRef"
1078
- }
1079
- },
1080
- "technical_contacts": {
1081
- "type": ["array", "null"],
1082
- "description": "Technical contacts linked to this IRT.",
1083
- "items": {
1084
- "$ref": "#/components/schemas/WhoisContactRef"
1085
- }
1086
- },
1087
- "abuse_contacts": {
1088
- "type": ["array", "null"],
1089
- "description": "Abuse contacts linked to this IRT.",
1090
- "items": {
1091
- "$ref": "#/components/schemas/WhoisContactRef"
1092
- }
1093
976
  }
977
+
978
+
1094
979
  }
1095
980
  },
1096
981
  "IpWhoisOrganization": {
@@ -1132,10 +1017,6 @@
1132
1017
  "type": ["string", "null"],
1133
1018
  "description": "Parsed city from the address field."
1134
1019
  },
1135
- "district": {
1136
- "type": ["string", "null"],
1137
- "description": "Parsed district from the address field."
1138
- },
1139
1020
  "state": {
1140
1021
  "type": ["string", "null"],
1141
1022
  "description": "Parsed state from the address field."
@@ -1151,16 +1032,6 @@
1151
1032
  "type": "string"
1152
1033
  }
1153
1034
  },
1154
- "latitude": {
1155
- "type": ["number", "null"],
1156
- "format": "float",
1157
- "description": "Latitude parsed from the geoloc field."
1158
- },
1159
- "longitude": {
1160
- "type": ["number", "null"],
1161
- "format": "float",
1162
- "description": "Longitude parsed from the geoloc field."
1163
- },
1164
1035
  "email": {
1165
1036
  "type": ["array", "null"],
1166
1037
  "description": "Email addresses for the organization.",
@@ -1168,13 +1039,6 @@
1168
1039
  "type": "string"
1169
1040
  }
1170
1041
  },
1171
- "abuse_mailbox": {
1172
- "type": ["array", "null"],
1173
- "description": "Abuse mailbox email addresses for the organization.",
1174
- "items": {
1175
- "type": "string"
1176
- }
1177
- },
1178
1042
  "phone": {
1179
1043
  "type": ["array", "null"],
1180
1044
  "description": "Phone numbers for the organization.",
@@ -1217,20 +1081,6 @@
1217
1081
  "type": "string"
1218
1082
  }
1219
1083
  },
1220
- "notify": {
1221
- "type": ["array", "null"],
1222
- "description": "Notify email addresses for this organization object.",
1223
- "items": {
1224
- "type": "string"
1225
- }
1226
- },
1227
- "ref_nfy": {
1228
- "type": ["array", "null"],
1229
- "description": "Reference notification email addresses for this organization object.",
1230
- "items": {
1231
- "type": "string"
1232
- }
1233
- },
1234
1084
  "mnt_by": {
1235
1085
  "type": ["array", "null"],
1236
1086
  "description": "Maintainer handles for this organization object.",
@@ -1289,10 +1139,6 @@
1289
1139
  "type": ["string", "null"],
1290
1140
  "description": "Parsed city from the address field."
1291
1141
  },
1292
- "district": {
1293
- "type": ["string", "null"],
1294
- "description": "Parsed district from the address field."
1295
- },
1296
1142
  "state": {
1297
1143
  "type": ["string", "null"],
1298
1144
  "description": "Parsed state from the address field."
@@ -1422,64 +1268,6 @@
1422
1268
  "type": ["string", "null"],
1423
1269
  "description": "Country of the organization managing this route."
1424
1270
  },
1425
- "pingable": {
1426
- "type": ["array", "null"],
1427
- "description": "Pingable IP addresses in this route.",
1428
- "items": {
1429
- "type": "string"
1430
- }
1431
- },
1432
- "ping_hdl": {
1433
- "type": ["array", "null"],
1434
- "description": "Handles of pingable contacts for this route.",
1435
- "items": {
1436
- "type": "string"
1437
- }
1438
- },
1439
- "holes": {
1440
- "type": ["array", "null"],
1441
- "description": "Sub-allocation holes (more specific routes) within this route.",
1442
- "items": {
1443
- "type": "string"
1444
- }
1445
- },
1446
- "member_of": {
1447
- "type": ["array", "null"],
1448
- "description": "Route sets this route is a member of.",
1449
- "items": {
1450
- "type": "string"
1451
- }
1452
- },
1453
- "inject": {
1454
- "type": ["array", "null"],
1455
- "description": "Injection details for this route.",
1456
- "items": {
1457
- "type": "string"
1458
- }
1459
- },
1460
- "aggr_mtd": {
1461
- "type": ["string", "null"],
1462
- "description": "Aggregation method for this route."
1463
- },
1464
- "aggr_bndry": {
1465
- "type": ["string", "null"],
1466
- "description": "Aggregation boundary for this route."
1467
- },
1468
- "export_comps": {
1469
- "type": ["string", "null"],
1470
- "description": "Export composition for this route."
1471
- },
1472
- "components": {
1473
- "type": ["string", "null"],
1474
- "description": "Route components."
1475
- },
1476
- "organizations": {
1477
- "type": ["array", "null"],
1478
- "description": "Handles of organization objects related to this route.",
1479
- "items": {
1480
- "type": "string"
1481
- }
1482
- },
1483
1271
  "remarks": {
1484
1272
  "type": ["array", "null"],
1485
1273
  "description": "Remarks for this route object.",
@@ -1487,20 +1275,6 @@
1487
1275
  "type": "string"
1488
1276
  }
1489
1277
  },
1490
- "notify": {
1491
- "type": ["array", "null"],
1492
- "description": "Notify email addresses for this route object.",
1493
- "items": {
1494
- "type": "string"
1495
- }
1496
- },
1497
- "mnt_lower": {
1498
- "type": ["array", "null"],
1499
- "description": "Lower-level maintainer handles for this route.",
1500
- "items": {
1501
- "type": "string"
1502
- }
1503
- },
1504
1278
  "mnt_by": {
1505
1279
  "type": ["array", "null"],
1506
1280
  "description": "Maintainer handles for this route object.",