@nimble-way/nimble-js 0.11.0 → 0.13.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 (56) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/client.d.mts +9 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +9 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +17 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +17 -1
  9. package/client.mjs.map +1 -1
  10. package/internal/types.d.mts +6 -6
  11. package/internal/types.d.mts.map +1 -1
  12. package/internal/types.d.ts +6 -6
  13. package/internal/types.d.ts.map +1 -1
  14. package/internal/utils/env.js +2 -2
  15. package/internal/utils/env.js.map +1 -1
  16. package/internal/utils/env.mjs +2 -2
  17. package/internal/utils/env.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/agent.d.mts +180 -9
  20. package/resources/agent.d.mts.map +1 -1
  21. package/resources/agent.d.ts +180 -9
  22. package/resources/agent.d.ts.map +1 -1
  23. package/resources/agent.js +71 -2
  24. package/resources/agent.js.map +1 -1
  25. package/resources/agent.mjs +71 -2
  26. package/resources/agent.mjs.map +1 -1
  27. package/resources/crawl.d.mts +32 -2
  28. package/resources/crawl.d.mts.map +1 -1
  29. package/resources/crawl.d.ts +32 -2
  30. package/resources/crawl.d.ts.map +1 -1
  31. package/resources/crawl.js +24 -0
  32. package/resources/crawl.js.map +1 -1
  33. package/resources/crawl.mjs +24 -0
  34. package/resources/crawl.mjs.map +1 -1
  35. package/resources/index.d.mts +1 -1
  36. package/resources/index.d.mts.map +1 -1
  37. package/resources/index.d.ts +1 -1
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js.map +1 -1
  40. package/resources/index.mjs.map +1 -1
  41. package/resources/top-level.d.mts +36 -8
  42. package/resources/top-level.d.mts.map +1 -1
  43. package/resources/top-level.d.ts +36 -8
  44. package/resources/top-level.d.ts.map +1 -1
  45. package/src/client.ts +34 -0
  46. package/src/internal/types.ts +6 -8
  47. package/src/internal/utils/env.ts +2 -2
  48. package/src/resources/agent.ts +270 -8
  49. package/src/resources/crawl.ts +33 -2
  50. package/src/resources/index.ts +5 -0
  51. package/src/resources/top-level.ts +41 -8
  52. package/src/version.ts +1 -1
  53. package/version.d.mts +1 -1
  54. package/version.d.ts +1 -1
  55. package/version.js +1 -1
  56. package/version.mjs +1 -1
@@ -73,6 +73,11 @@ export namespace ExtractResponse {
73
73
  */
74
74
  html?: string;
75
75
 
76
+ /**
77
+ * List of all unique URLs found on the page.
78
+ */
79
+ links?: Array<string>;
80
+
76
81
  /**
77
82
  * The Markdown version of the HTML content.
78
83
  */
@@ -981,7 +986,7 @@ export interface ExtractParams {
981
986
  /**
982
987
  * Browser driver to use
983
988
  */
984
- driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro';
989
+ driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6';
985
990
 
986
991
  /**
987
992
  * Expected HTTP status codes for successful requests
@@ -991,7 +996,7 @@ export interface ExtractParams {
991
996
  /**
992
997
  * List of acceptable response formats in order of preference
993
998
  */
994
- formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers'>;
999
+ formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers' | 'links'>;
995
1000
 
996
1001
  /**
997
1002
  * Custom HTTP headers to include in the request
@@ -1546,6 +1551,13 @@ export interface ExtractParams {
1546
1551
  | 'zu-ZA'
1547
1552
  | 'auto';
1548
1553
 
1554
+ /**
1555
+ * Selects which markdown conversion strategy to use. "full_page" converts the
1556
+ * entire HTML page. "main_content" uses Mozilla Readability to extract the main
1557
+ * article content before converting.
1558
+ */
1559
+ markdown_backend?: 'full_page' | 'main_content';
1560
+
1549
1561
  /**
1550
1562
  * HTTP method for the request
1551
1563
  */
@@ -2062,7 +2074,7 @@ export interface ExtractAsyncParams {
2062
2074
  /**
2063
2075
  * Browser driver to use
2064
2076
  */
2065
- driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro';
2077
+ driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6';
2066
2078
 
2067
2079
  /**
2068
2080
  * Expected HTTP status codes for successful requests
@@ -2072,7 +2084,7 @@ export interface ExtractAsyncParams {
2072
2084
  /**
2073
2085
  * List of acceptable response formats in order of preference
2074
2086
  */
2075
- formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers'>;
2087
+ formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers' | 'links'>;
2076
2088
 
2077
2089
  /**
2078
2090
  * Custom HTTP headers to include in the request
@@ -2627,6 +2639,13 @@ export interface ExtractAsyncParams {
2627
2639
  | 'zu-ZA'
2628
2640
  | 'auto';
2629
2641
 
2642
+ /**
2643
+ * Selects which markdown conversion strategy to use. "full_page" converts the
2644
+ * entire HTML page. "main_content" uses Mozilla Readability to extract the main
2645
+ * article content before converting.
2646
+ */
2647
+ markdown_backend?: 'full_page' | 'main_content';
2648
+
2630
2649
  /**
2631
2650
  * HTTP method for the request
2632
2651
  */
@@ -3173,7 +3192,7 @@ export namespace ExtractBatchParams {
3173
3192
  /**
3174
3193
  * Browser driver to use
3175
3194
  */
3176
- driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro';
3195
+ driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6';
3177
3196
 
3178
3197
  /**
3179
3198
  * Expected HTTP status codes for successful requests
@@ -3183,7 +3202,7 @@ export namespace ExtractBatchParams {
3183
3202
  /**
3184
3203
  * List of acceptable response formats in order of preference
3185
3204
  */
3186
- formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers'>;
3205
+ formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers' | 'links'>;
3187
3206
 
3188
3207
  /**
3189
3208
  * Custom HTTP headers to include in the request
@@ -3738,6 +3757,13 @@ export namespace ExtractBatchParams {
3738
3757
  | 'zu-ZA'
3739
3758
  | 'auto';
3740
3759
 
3760
+ /**
3761
+ * Selects which markdown conversion strategy to use. "full_page" converts the
3762
+ * entire HTML page. "main_content" uses Mozilla Readability to extract the main
3763
+ * article content before converting.
3764
+ */
3765
+ markdown_backend?: 'full_page' | 'main_content';
3766
+
3741
3767
  /**
3742
3768
  * HTTP method for the request
3743
3769
  */
@@ -4278,7 +4304,7 @@ export namespace ExtractBatchParams {
4278
4304
  /**
4279
4305
  * Browser driver to use
4280
4306
  */
4281
- driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro';
4307
+ driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6';
4282
4308
 
4283
4309
  /**
4284
4310
  * Expected HTTP status codes for successful requests
@@ -4288,7 +4314,7 @@ export namespace ExtractBatchParams {
4288
4314
  /**
4289
4315
  * List of acceptable response formats in order of preference
4290
4316
  */
4291
- formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers'>;
4317
+ formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers' | 'links'>;
4292
4318
 
4293
4319
  /**
4294
4320
  * Custom HTTP headers to include in the request
@@ -4843,6 +4869,13 @@ export namespace ExtractBatchParams {
4843
4869
  | 'zu-ZA'
4844
4870
  | 'auto';
4845
4871
 
4872
+ /**
4873
+ * Selects which markdown conversion strategy to use. "full_page" converts the
4874
+ * entire HTML page. "main_content" uses Mozilla Readability to extract the main
4875
+ * article content before converting.
4876
+ */
4877
+ markdown_backend?: 'full_page' | 'main_content';
4878
+
4846
4879
  /**
4847
4880
  * HTTP method for the request
4848
4881
  */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.11.0'; // x-release-please-version
1
+ export const VERSION = '0.13.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.11.0";
1
+ export declare const VERSION = "0.13.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.11.0";
1
+ export declare const VERSION = "0.13.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.11.0'; // x-release-please-version
4
+ exports.VERSION = '0.13.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.11.0'; // x-release-please-version
1
+ export const VERSION = '0.13.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map