@nimble-way/nimble-js 0.17.0 → 0.19.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/CHANGELOG.md +22 -0
- package/package.json +1 -1
- package/resources/agent.d.mts +17 -13
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +17 -13
- package/resources/agent.d.ts.map +1 -1
- package/resources/batches.d.mts +11 -7
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts +11 -7
- package/resources/batches.d.ts.map +1 -1
- package/resources/crawl.d.mts +11 -1
- package/resources/crawl.d.mts.map +1 -1
- package/resources/crawl.d.ts +11 -1
- package/resources/crawl.d.ts.map +1 -1
- package/resources/jobs/jobs.d.mts +447 -0
- package/resources/jobs/jobs.d.mts.map +1 -1
- package/resources/jobs/jobs.d.ts +447 -0
- package/resources/jobs/jobs.d.ts.map +1 -1
- package/resources/jobs/jobs.js.map +1 -1
- package/resources/jobs/jobs.mjs.map +1 -1
- package/resources/jobs/runs/artifacts.d.mts +67 -0
- package/resources/jobs/runs/artifacts.d.mts.map +1 -1
- package/resources/jobs/runs/artifacts.d.ts +67 -0
- package/resources/jobs/runs/artifacts.d.ts.map +1 -1
- package/resources/jobs/runs/runs.d.mts +139 -0
- package/resources/jobs/runs/runs.d.mts.map +1 -1
- package/resources/jobs/runs/runs.d.ts +139 -0
- package/resources/jobs/runs/runs.d.ts.map +1 -1
- package/resources/jobs/runs/runs.js.map +1 -1
- package/resources/jobs/runs/runs.mjs.map +1 -1
- package/resources/media.d.mts +11 -7
- package/resources/media.d.mts.map +1 -1
- package/resources/media.d.ts +11 -7
- package/resources/media.d.ts.map +1 -1
- package/resources/serp.d.mts +22 -14
- package/resources/serp.d.mts.map +1 -1
- package/resources/serp.d.ts +22 -14
- package/resources/serp.d.ts.map +1 -1
- package/resources/task-agent/runs.d.mts +332 -69
- package/resources/task-agent/runs.d.mts.map +1 -1
- package/resources/task-agent/runs.d.ts +332 -69
- package/resources/task-agent/runs.d.ts.map +1 -1
- package/resources/task-agent/runs.js +21 -6
- package/resources/task-agent/runs.js.map +1 -1
- package/resources/task-agent/runs.mjs +21 -6
- package/resources/task-agent/runs.mjs.map +1 -1
- package/resources/task-agent/task-agent.d.mts +131 -33
- package/resources/task-agent/task-agent.d.mts.map +1 -1
- package/resources/task-agent/task-agent.d.ts +131 -33
- package/resources/task-agent/task-agent.d.ts.map +1 -1
- package/resources/task-agent/task-agent.js +12 -14
- package/resources/task-agent/task-agent.js.map +1 -1
- package/resources/task-agent/task-agent.mjs +12 -14
- package/resources/task-agent/task-agent.mjs.map +1 -1
- package/resources/task-agent/templates.d.mts +15 -6
- package/resources/task-agent/templates.d.mts.map +1 -1
- package/resources/task-agent/templates.d.ts +15 -6
- package/resources/task-agent/templates.d.ts.map +1 -1
- package/resources/task-agent/templates.js +2 -2
- package/resources/task-agent/templates.mjs +2 -2
- package/resources/tasks.d.mts +22 -14
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +22 -14
- package/resources/tasks.d.ts.map +1 -1
- package/resources/top-level.d.mts +77 -20
- package/resources/top-level.d.mts.map +1 -1
- package/resources/top-level.d.ts +77 -20
- package/resources/top-level.d.ts.map +1 -1
- package/src/resources/agent.ts +20 -15
- package/src/resources/batches.ts +12 -7
- package/src/resources/crawl.ts +21 -1
- package/src/resources/jobs/jobs.ts +447 -0
- package/src/resources/jobs/runs/artifacts.ts +67 -0
- package/src/resources/jobs/runs/runs.ts +139 -0
- package/src/resources/media.ts +12 -7
- package/src/resources/serp.ts +24 -14
- package/src/resources/task-agent/runs.ts +370 -78
- package/src/resources/task-agent/task-agent.ts +141 -47
- package/src/resources/task-agent/templates.ts +16 -7
- package/src/resources/tasks.ts +24 -14
- package/src/resources/top-level.ts +118 -20
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- 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,27 +420,27 @@ 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.
|
|
427
427
|
*/
|
|
428
|
-
batch_id?: string;
|
|
428
|
+
batch_id?: string | null;
|
|
429
429
|
|
|
430
430
|
/**
|
|
431
431
|
* URL for downloading the task results.
|
|
432
432
|
*/
|
|
433
|
-
download_url?: string;
|
|
433
|
+
download_url?: string | null;
|
|
434
434
|
|
|
435
435
|
/**
|
|
436
436
|
* Error message if the task failed.
|
|
437
437
|
*/
|
|
438
|
-
error?: string;
|
|
438
|
+
error?: string | null;
|
|
439
439
|
|
|
440
440
|
/**
|
|
441
441
|
* Classification of the error type.
|
|
442
442
|
*/
|
|
443
|
-
error_type?: string;
|
|
443
|
+
error_type?: string | null;
|
|
444
444
|
|
|
445
445
|
/**
|
|
446
446
|
* Timestamp when the task was last modified.
|
|
@@ -450,7 +450,12 @@ export namespace ExtractAsyncResponse {
|
|
|
450
450
|
/**
|
|
451
451
|
* Storage location of the output data.
|
|
452
452
|
*/
|
|
453
|
-
output_url?: string;
|
|
453
|
+
output_url?: string | null;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Queue name the task was submitted to.
|
|
457
|
+
*/
|
|
458
|
+
queue?: string;
|
|
454
459
|
|
|
455
460
|
/**
|
|
456
461
|
* HTTP status code from the task execution.
|
|
@@ -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,27 +518,27 @@ 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.
|
|
520
525
|
*/
|
|
521
|
-
batch_id?: string;
|
|
526
|
+
batch_id?: string | null;
|
|
522
527
|
|
|
523
528
|
/**
|
|
524
529
|
* URL for downloading the task results.
|
|
525
530
|
*/
|
|
526
|
-
download_url?: string;
|
|
531
|
+
download_url?: string | null;
|
|
527
532
|
|
|
528
533
|
/**
|
|
529
534
|
* Error message if the task failed.
|
|
530
535
|
*/
|
|
531
|
-
error?: string;
|
|
536
|
+
error?: string | null;
|
|
532
537
|
|
|
533
538
|
/**
|
|
534
539
|
* Classification of the error type.
|
|
535
540
|
*/
|
|
536
|
-
error_type?: string;
|
|
541
|
+
error_type?: string | null;
|
|
537
542
|
|
|
538
543
|
/**
|
|
539
544
|
* Timestamp when the task was last modified.
|
|
@@ -543,7 +548,12 @@ export namespace ExtractBatchResponse {
|
|
|
543
548
|
/**
|
|
544
549
|
* Storage location of the output data.
|
|
545
550
|
*/
|
|
546
|
-
output_url?: string;
|
|
551
|
+
output_url?: string | null;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Queue name the task was submitted to.
|
|
555
|
+
*/
|
|
556
|
+
queue?: string;
|
|
547
557
|
|
|
548
558
|
/**
|
|
549
559
|
* HTTP status code from the task execution.
|
|
@@ -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?:
|
|
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
|
|
@@ -1759,6 +1793,8 @@ export namespace ExtractParams {
|
|
|
1759
1793
|
|
|
1760
1794
|
prefetch_userbrowser?: boolean;
|
|
1761
1795
|
|
|
1796
|
+
renew_on_blocked?: boolean;
|
|
1797
|
+
|
|
1762
1798
|
retry?: boolean;
|
|
1763
1799
|
|
|
1764
1800
|
timeout?: number;
|
|
@@ -1771,6 +1807,14 @@ export interface ExtractAsyncParams {
|
|
|
1771
1807
|
*/
|
|
1772
1808
|
url: string;
|
|
1773
1809
|
|
|
1810
|
+
/**
|
|
1811
|
+
* Custom flow for the optimization engine: maps candidate names to the number of
|
|
1812
|
+
* attempts to spend on each candidate before advancing (0 skips it). Key order
|
|
1813
|
+
* defines the flow order. Providing it opts the request into 'auto' driver
|
|
1814
|
+
* selection.
|
|
1815
|
+
*/
|
|
1816
|
+
auto_driver_configuration?: { [key: string]: number };
|
|
1817
|
+
|
|
1774
1818
|
/**
|
|
1775
1819
|
* Request body for POST, PUT, PATCH methods
|
|
1776
1820
|
*/
|
|
@@ -2084,7 +2128,17 @@ export interface ExtractAsyncParams {
|
|
|
2084
2128
|
/**
|
|
2085
2129
|
* Browser driver to use
|
|
2086
2130
|
*/
|
|
2087
|
-
driver?:
|
|
2131
|
+
driver?:
|
|
2132
|
+
| 'auto'
|
|
2133
|
+
| 'vx6'
|
|
2134
|
+
| 'vx8'
|
|
2135
|
+
| 'vx8-pro'
|
|
2136
|
+
| 'vx10'
|
|
2137
|
+
| 'vx10-pro'
|
|
2138
|
+
| 'vx12'
|
|
2139
|
+
| 'vx12-pro'
|
|
2140
|
+
| 'media-vx6'
|
|
2141
|
+
| 'fast-vx6';
|
|
2088
2142
|
|
|
2089
2143
|
/**
|
|
2090
2144
|
* Expected HTTP status codes for successful requests
|
|
@@ -2872,6 +2926,8 @@ export namespace ExtractAsyncParams {
|
|
|
2872
2926
|
|
|
2873
2927
|
prefetch_userbrowser?: boolean;
|
|
2874
2928
|
|
|
2929
|
+
renew_on_blocked?: boolean;
|
|
2930
|
+
|
|
2875
2931
|
retry?: boolean;
|
|
2876
2932
|
|
|
2877
2933
|
timeout?: number;
|
|
@@ -2894,6 +2950,14 @@ export interface ExtractBatchParams {
|
|
|
2894
2950
|
|
|
2895
2951
|
export namespace ExtractBatchParams {
|
|
2896
2952
|
export interface Input {
|
|
2953
|
+
/**
|
|
2954
|
+
* Custom flow for the optimization engine: maps candidate names to the number of
|
|
2955
|
+
* attempts to spend on each candidate before advancing (0 skips it). Key order
|
|
2956
|
+
* defines the flow order. Providing it opts the request into 'auto' driver
|
|
2957
|
+
* selection.
|
|
2958
|
+
*/
|
|
2959
|
+
auto_driver_configuration?: { [key: string]: number };
|
|
2960
|
+
|
|
2897
2961
|
/**
|
|
2898
2962
|
* Request body for POST, PUT, PATCH methods
|
|
2899
2963
|
*/
|
|
@@ -3205,9 +3269,20 @@ export namespace ExtractBatchParams {
|
|
|
3205
3269
|
device?: 'desktop' | 'mobile' | 'tablet';
|
|
3206
3270
|
|
|
3207
3271
|
/**
|
|
3208
|
-
* Browser driver to use
|
|
3272
|
+
* Browser driver to use. Use 'auto' to let the engine select the candidate config
|
|
3273
|
+
* per domain.
|
|
3209
3274
|
*/
|
|
3210
|
-
driver?:
|
|
3275
|
+
driver?:
|
|
3276
|
+
| 'auto'
|
|
3277
|
+
| 'vx6'
|
|
3278
|
+
| 'vx8'
|
|
3279
|
+
| 'vx8-pro'
|
|
3280
|
+
| 'vx10'
|
|
3281
|
+
| 'vx10-pro'
|
|
3282
|
+
| 'vx12'
|
|
3283
|
+
| 'vx12-pro'
|
|
3284
|
+
| 'media-vx6'
|
|
3285
|
+
| 'fast-vx6';
|
|
3211
3286
|
|
|
3212
3287
|
/**
|
|
3213
3288
|
* Expected HTTP status codes for successful requests
|
|
@@ -4001,6 +4076,8 @@ export namespace ExtractBatchParams {
|
|
|
4001
4076
|
|
|
4002
4077
|
prefetch_userbrowser?: boolean;
|
|
4003
4078
|
|
|
4079
|
+
renew_on_blocked?: boolean;
|
|
4080
|
+
|
|
4004
4081
|
retry?: boolean;
|
|
4005
4082
|
|
|
4006
4083
|
timeout?: number;
|
|
@@ -4012,6 +4089,14 @@ export namespace ExtractBatchParams {
|
|
|
4012
4089
|
* and async/storage settings.
|
|
4013
4090
|
*/
|
|
4014
4091
|
export interface SharedInputs {
|
|
4092
|
+
/**
|
|
4093
|
+
* Custom flow for the optimization engine: maps candidate names to the number of
|
|
4094
|
+
* attempts to spend on each candidate before advancing (0 skips it). Key order
|
|
4095
|
+
* defines the flow order. Providing it opts the request into 'auto' driver
|
|
4096
|
+
* selection.
|
|
4097
|
+
*/
|
|
4098
|
+
auto_driver_configuration?: { [key: string]: number };
|
|
4099
|
+
|
|
4015
4100
|
/**
|
|
4016
4101
|
* Request body for POST, PUT, PATCH methods
|
|
4017
4102
|
*/
|
|
@@ -4323,9 +4408,20 @@ export namespace ExtractBatchParams {
|
|
|
4323
4408
|
device?: 'desktop' | 'mobile' | 'tablet';
|
|
4324
4409
|
|
|
4325
4410
|
/**
|
|
4326
|
-
* Browser driver to use
|
|
4411
|
+
* Browser driver to use. Use 'auto' to let the engine select the candidate config
|
|
4412
|
+
* per domain.
|
|
4327
4413
|
*/
|
|
4328
|
-
driver?:
|
|
4414
|
+
driver?:
|
|
4415
|
+
| 'auto'
|
|
4416
|
+
| 'vx6'
|
|
4417
|
+
| 'vx8'
|
|
4418
|
+
| 'vx8-pro'
|
|
4419
|
+
| 'vx10'
|
|
4420
|
+
| 'vx10-pro'
|
|
4421
|
+
| 'vx12'
|
|
4422
|
+
| 'vx12-pro'
|
|
4423
|
+
| 'media-vx6'
|
|
4424
|
+
| 'fast-vx6';
|
|
4329
4425
|
|
|
4330
4426
|
/**
|
|
4331
4427
|
* Expected HTTP status codes for successful requests
|
|
@@ -5119,6 +5215,8 @@ export namespace ExtractBatchParams {
|
|
|
5119
5215
|
|
|
5120
5216
|
prefetch_userbrowser?: boolean;
|
|
5121
5217
|
|
|
5218
|
+
renew_on_blocked?: boolean;
|
|
5219
|
+
|
|
5122
5220
|
retry?: boolean;
|
|
5123
5221
|
|
|
5124
5222
|
timeout?: number;
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.19.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.19.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.19.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.19.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|