@nimble-way/nimble-js 0.16.0 → 0.18.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 (93) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent.d.mts +7 -3
  12. package/resources/agent.d.mts.map +1 -1
  13. package/resources/agent.d.ts +7 -3
  14. package/resources/agent.d.ts.map +1 -1
  15. package/resources/batches.d.mts +6 -2
  16. package/resources/batches.d.mts.map +1 -1
  17. package/resources/batches.d.ts +6 -2
  18. package/resources/batches.d.ts.map +1 -1
  19. package/resources/crawl.d.mts +10 -1
  20. package/resources/crawl.d.mts.map +1 -1
  21. package/resources/crawl.d.ts +10 -1
  22. package/resources/crawl.d.ts.map +1 -1
  23. package/resources/fast-serp.d.mts +4 -0
  24. package/resources/fast-serp.d.mts.map +1 -0
  25. package/resources/fast-serp.d.ts +4 -0
  26. package/resources/fast-serp.d.ts.map +1 -0
  27. package/resources/fast-serp.js +9 -0
  28. package/resources/fast-serp.js.map +1 -0
  29. package/resources/fast-serp.mjs +5 -0
  30. package/resources/fast-serp.mjs.map +1 -0
  31. package/resources/index.d.mts +1 -0
  32. package/resources/index.d.mts.map +1 -1
  33. package/resources/index.d.ts +1 -0
  34. package/resources/index.d.ts.map +1 -1
  35. package/resources/index.js +3 -1
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +1 -0
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/jobs/jobs.d.mts +429 -0
  40. package/resources/jobs/jobs.d.mts.map +1 -1
  41. package/resources/jobs/jobs.d.ts +429 -0
  42. package/resources/jobs/jobs.d.ts.map +1 -1
  43. package/resources/jobs/jobs.js.map +1 -1
  44. package/resources/jobs/jobs.mjs.map +1 -1
  45. package/resources/jobs/runs/artifacts.d.mts +61 -0
  46. package/resources/jobs/runs/artifacts.d.mts.map +1 -1
  47. package/resources/jobs/runs/artifacts.d.ts +61 -0
  48. package/resources/jobs/runs/artifacts.d.ts.map +1 -1
  49. package/resources/jobs/runs/runs.d.mts +139 -0
  50. package/resources/jobs/runs/runs.d.mts.map +1 -1
  51. package/resources/jobs/runs/runs.d.ts +139 -0
  52. package/resources/jobs/runs/runs.d.ts.map +1 -1
  53. package/resources/jobs/runs/runs.js.map +1 -1
  54. package/resources/jobs/runs/runs.mjs.map +1 -1
  55. package/resources/media.d.mts +6 -2
  56. package/resources/media.d.mts.map +1 -1
  57. package/resources/media.d.ts +6 -2
  58. package/resources/media.d.ts.map +1 -1
  59. package/resources/serp.d.mts +12 -4
  60. package/resources/serp.d.mts.map +1 -1
  61. package/resources/serp.d.ts +12 -4
  62. package/resources/serp.d.ts.map +1 -1
  63. package/resources/task-agent/runs.d.mts +62 -22
  64. package/resources/task-agent/runs.d.mts.map +1 -1
  65. package/resources/task-agent/runs.d.ts +62 -22
  66. package/resources/task-agent/runs.d.ts.map +1 -1
  67. package/resources/tasks.d.mts +12 -4
  68. package/resources/tasks.d.mts.map +1 -1
  69. package/resources/tasks.d.ts +12 -4
  70. package/resources/tasks.d.ts.map +1 -1
  71. package/resources/top-level.d.mts +63 -10
  72. package/resources/top-level.d.mts.map +1 -1
  73. package/resources/top-level.d.ts +63 -10
  74. package/resources/top-level.d.ts.map +1 -1
  75. package/src/client.ts +5 -0
  76. package/src/resources/agent.ts +9 -4
  77. package/src/resources/batches.ts +7 -2
  78. package/src/resources/crawl.ts +19 -1
  79. package/src/resources/fast-serp.ts +5 -0
  80. package/src/resources/index.ts +1 -0
  81. package/src/resources/jobs/jobs.ts +429 -0
  82. package/src/resources/jobs/runs/artifacts.ts +61 -0
  83. package/src/resources/jobs/runs/runs.ts +139 -0
  84. package/src/resources/media.ts +7 -2
  85. package/src/resources/serp.ts +14 -4
  86. package/src/resources/task-agent/runs.ts +90 -26
  87. package/src/resources/tasks.ts +14 -4
  88. package/src/resources/top-level.ts +100 -10
  89. package/src/version.ts +1 -1
  90. package/version.d.mts +1 -1
  91. package/version.d.ts +1 -1
  92. package/version.js +1 -1
  93. package/version.mjs +1 -1
@@ -408,7 +408,7 @@ export namespace ExtractAsyncResponse {
408
408
  /**
409
409
  * Current state of the task.
410
410
  */
411
- state: 'pending' | 'success' | 'error';
411
+ state: 'pending' | 'queued' | 'in_progress' | 'success' | 'error';
412
412
 
413
413
  /**
414
414
  * URL for checking the task status.
@@ -420,7 +420,7 @@ export namespace ExtractAsyncResponse {
420
420
  */
421
421
  account_name?: string;
422
422
 
423
- api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp';
423
+ api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp' | 'labs';
424
424
 
425
425
  /**
426
426
  * Batch ID if this task is part of a batch.
@@ -452,6 +452,11 @@ export namespace ExtractAsyncResponse {
452
452
  */
453
453
  output_url?: string;
454
454
 
455
+ /**
456
+ * Queue name the task was submitted to.
457
+ */
458
+ queue?: string;
459
+
455
460
  /**
456
461
  * HTTP status code from the task execution.
457
462
  */
@@ -501,7 +506,7 @@ export namespace ExtractBatchResponse {
501
506
  /**
502
507
  * Current state of the task.
503
508
  */
504
- state: 'pending' | 'success' | 'error';
509
+ state: 'pending' | 'queued' | 'in_progress' | 'success' | 'error';
505
510
 
506
511
  /**
507
512
  * URL for checking the task status.
@@ -513,7 +518,7 @@ export namespace ExtractBatchResponse {
513
518
  */
514
519
  account_name?: string;
515
520
 
516
- api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp';
521
+ api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp' | 'labs';
517
522
 
518
523
  /**
519
524
  * Batch ID if this task is part of a batch.
@@ -545,6 +550,11 @@ export namespace ExtractBatchResponse {
545
550
  */
546
551
  output_url?: string;
547
552
 
553
+ /**
554
+ * Queue name the task was submitted to.
555
+ */
556
+ queue?: string;
557
+
548
558
  /**
549
559
  * HTTP status code from the task execution.
550
560
  */
@@ -607,6 +617,12 @@ export interface SearchResponse {
607
617
  * Citations mapping citation markers to result indices
608
618
  */
609
619
  answer_citations?: Array<SearchResponse.AnswerCitation> | null;
620
+
621
+ /**
622
+ * Cleaned SERP entities (e.g. KnowledgeGraph, TopStory, RelatedSearch). Only
623
+ * present for focus='serp'.
624
+ */
625
+ serp_data?: { [key: string]: unknown } | null;
610
626
  }
611
627
 
612
628
  export namespace SearchResponse {
@@ -683,6 +699,14 @@ export interface ExtractParams {
683
699
  */
684
700
  url: string;
685
701
 
702
+ /**
703
+ * Custom flow for the optimization engine: maps candidate names to the number of
704
+ * attempts to spend on each candidate before advancing (0 skips it). Key order
705
+ * defines the flow order. Providing it opts the request into 'auto' driver
706
+ * selection.
707
+ */
708
+ auto_driver_configuration?: { [key: string]: number };
709
+
686
710
  /**
687
711
  * Request body for POST, PUT, PATCH methods
688
712
  */
@@ -991,7 +1015,17 @@ export interface ExtractParams {
991
1015
  /**
992
1016
  * Browser driver to use
993
1017
  */
994
- driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6';
1018
+ driver?:
1019
+ | 'auto'
1020
+ | 'vx6'
1021
+ | 'vx8'
1022
+ | 'vx8-pro'
1023
+ | 'vx10'
1024
+ | 'vx10-pro'
1025
+ | 'vx12'
1026
+ | 'vx12-pro'
1027
+ | 'media-vx6'
1028
+ | 'fast-vx6';
995
1029
 
996
1030
  /**
997
1031
  * Expected HTTP status codes for successful requests
@@ -1771,6 +1805,14 @@ export interface ExtractAsyncParams {
1771
1805
  */
1772
1806
  url: string;
1773
1807
 
1808
+ /**
1809
+ * Custom flow for the optimization engine: maps candidate names to the number of
1810
+ * attempts to spend on each candidate before advancing (0 skips it). Key order
1811
+ * defines the flow order. Providing it opts the request into 'auto' driver
1812
+ * selection.
1813
+ */
1814
+ auto_driver_configuration?: { [key: string]: number };
1815
+
1774
1816
  /**
1775
1817
  * Request body for POST, PUT, PATCH methods
1776
1818
  */
@@ -2084,7 +2126,17 @@ export interface ExtractAsyncParams {
2084
2126
  /**
2085
2127
  * Browser driver to use
2086
2128
  */
2087
- driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6';
2129
+ driver?:
2130
+ | 'auto'
2131
+ | 'vx6'
2132
+ | 'vx8'
2133
+ | 'vx8-pro'
2134
+ | 'vx10'
2135
+ | 'vx10-pro'
2136
+ | 'vx12'
2137
+ | 'vx12-pro'
2138
+ | 'media-vx6'
2139
+ | 'fast-vx6';
2088
2140
 
2089
2141
  /**
2090
2142
  * Expected HTTP status codes for successful requests
@@ -2894,6 +2946,14 @@ export interface ExtractBatchParams {
2894
2946
 
2895
2947
  export namespace ExtractBatchParams {
2896
2948
  export interface Input {
2949
+ /**
2950
+ * Custom flow for the optimization engine: maps candidate names to the number of
2951
+ * attempts to spend on each candidate before advancing (0 skips it). Key order
2952
+ * defines the flow order. Providing it opts the request into 'auto' driver
2953
+ * selection.
2954
+ */
2955
+ auto_driver_configuration?: { [key: string]: number };
2956
+
2897
2957
  /**
2898
2958
  * Request body for POST, PUT, PATCH methods
2899
2959
  */
@@ -3205,9 +3265,20 @@ export namespace ExtractBatchParams {
3205
3265
  device?: 'desktop' | 'mobile' | 'tablet';
3206
3266
 
3207
3267
  /**
3208
- * Browser driver to use
3268
+ * Browser driver to use. Use 'auto' to let the engine select the candidate config
3269
+ * per domain.
3209
3270
  */
3210
- driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6';
3271
+ driver?:
3272
+ | 'auto'
3273
+ | 'vx6'
3274
+ | 'vx8'
3275
+ | 'vx8-pro'
3276
+ | 'vx10'
3277
+ | 'vx10-pro'
3278
+ | 'vx12'
3279
+ | 'vx12-pro'
3280
+ | 'media-vx6'
3281
+ | 'fast-vx6';
3211
3282
 
3212
3283
  /**
3213
3284
  * Expected HTTP status codes for successful requests
@@ -4012,6 +4083,14 @@ export namespace ExtractBatchParams {
4012
4083
  * and async/storage settings.
4013
4084
  */
4014
4085
  export interface SharedInputs {
4086
+ /**
4087
+ * Custom flow for the optimization engine: maps candidate names to the number of
4088
+ * attempts to spend on each candidate before advancing (0 skips it). Key order
4089
+ * defines the flow order. Providing it opts the request into 'auto' driver
4090
+ * selection.
4091
+ */
4092
+ auto_driver_configuration?: { [key: string]: number };
4093
+
4015
4094
  /**
4016
4095
  * Request body for POST, PUT, PATCH methods
4017
4096
  */
@@ -4323,9 +4402,20 @@ export namespace ExtractBatchParams {
4323
4402
  device?: 'desktop' | 'mobile' | 'tablet';
4324
4403
 
4325
4404
  /**
4326
- * Browser driver to use
4405
+ * Browser driver to use. Use 'auto' to let the engine select the candidate config
4406
+ * per domain.
4327
4407
  */
4328
- driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6';
4408
+ driver?:
4409
+ | 'auto'
4410
+ | 'vx6'
4411
+ | 'vx8'
4412
+ | 'vx8-pro'
4413
+ | 'vx10'
4414
+ | 'vx10-pro'
4415
+ | 'vx12'
4416
+ | 'vx12-pro'
4417
+ | 'media-vx6'
4418
+ | 'fast-vx6';
4329
4419
 
4330
4420
  /**
4331
4421
  * Expected HTTP status codes for successful requests
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.16.0'; // x-release-please-version
1
+ export const VERSION = '0.18.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.16.0";
1
+ export declare const VERSION = "0.18.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.16.0";
1
+ export declare const VERSION = "0.18.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.16.0'; // x-release-please-version
4
+ exports.VERSION = '0.18.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.16.0'; // x-release-please-version
1
+ export const VERSION = '0.18.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map