@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.mts","sourceRoot":"","sources":["../../src/resources/task-agent/templates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;OAEG;IACH,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGrF;AAED,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,oBAAoB,CAAC,wBAAwB,CAAC,CAAC;AAExF,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,wBAAwB;QACvC,EAAE,EAAE,MAAM,CAAC;QAEX,UAAU,EAAE,MAAM,CAAC;QAEnB,WAAW,EAAE,MAAM,CAAC;QAEpB,YAAY,EAAE,MAAM,CAAC;QAErB,gBAAgB,EAAE,MAAM,CAAC;QAEzB,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"templates.d.mts","sourceRoot":"","sources":["../../src/resources/task-agent/templates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;OAEG;IACH,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE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BAAkB;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,IAAI,CAAC;IAEpE,eAAe,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,kBAAkB,GAAG,IAAI,CAAC;IAExE,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -3,11 +3,11 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
export declare class Templates extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* List
|
|
6
|
+
* List Templates
|
|
7
7
|
*/
|
|
8
8
|
list(query?: TemplateListParams | null | undefined, options?: RequestOptions): APIPromise<TemplateListResponse>;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Get Template
|
|
11
11
|
*/
|
|
12
12
|
get(templateName: string, options?: RequestOptions): APIPromise<TemplateGetResponse>;
|
|
13
13
|
}
|
|
@@ -19,7 +19,10 @@ export declare namespace TemplateListResponse {
|
|
|
19
19
|
description: string;
|
|
20
20
|
display_name: string;
|
|
21
21
|
domain_expertise: string;
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Canonical effort tier names for the research graph.
|
|
24
|
+
*/
|
|
25
|
+
effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
|
|
23
26
|
goals: Array<TemplateListResponseItem.Goal>;
|
|
24
27
|
icon: string;
|
|
25
28
|
output_schema: {
|
|
@@ -56,7 +59,10 @@ export interface TemplateGetResponse {
|
|
|
56
59
|
description: string;
|
|
57
60
|
display_name: string;
|
|
58
61
|
domain_expertise: string;
|
|
59
|
-
|
|
62
|
+
/**
|
|
63
|
+
* Canonical effort tier names for the research graph.
|
|
64
|
+
*/
|
|
65
|
+
effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
|
|
60
66
|
goals: Array<TemplateGetResponse.Goal>;
|
|
61
67
|
icon: string;
|
|
62
68
|
output_schema: {
|
|
@@ -87,10 +93,13 @@ export declare namespace TemplateGetResponse {
|
|
|
87
93
|
}
|
|
88
94
|
}
|
|
89
95
|
export interface TemplateListParams {
|
|
90
|
-
|
|
96
|
+
/**
|
|
97
|
+
* Canonical effort tier names for the research graph.
|
|
98
|
+
*/
|
|
99
|
+
filter_effort?: 'low' | 'medium' | 'high' | 'x-high' | 'max' | null;
|
|
100
|
+
filter_use_case?: 'research' | 'enrichment' | 'dataset_building' | null;
|
|
91
101
|
limit?: number;
|
|
92
102
|
offset?: number;
|
|
93
|
-
use_case?: string | null;
|
|
94
103
|
}
|
|
95
104
|
export declare namespace Templates {
|
|
96
105
|
export { type TemplateListResponse as TemplateListResponse, type TemplateGetResponse as TemplateGetResponse, type TemplateListParams as TemplateListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/resources/task-agent/templates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;OAEG;IACH,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGrF;AAED,MAAM,MA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core/resource.js");
|
|
|
6
6
|
const path_1 = require("../../internal/utils/path.js");
|
|
7
7
|
class Templates extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* List
|
|
9
|
+
* List Templates
|
|
10
10
|
*/
|
|
11
11
|
list(query = {}, options) {
|
|
12
12
|
return this._client.get('/v1/task-agents/templates', { query, ...options });
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Get Template
|
|
16
16
|
*/
|
|
17
17
|
get(templateName, options) {
|
|
18
18
|
return this._client.get((0, path_1.path) `/v1/task-agents/templates/${templateName}`, options);
|
|
@@ -3,13 +3,13 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
3
3
|
import { path } from "../../internal/utils/path.mjs";
|
|
4
4
|
export class Templates extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* List
|
|
6
|
+
* List Templates
|
|
7
7
|
*/
|
|
8
8
|
list(query = {}, options) {
|
|
9
9
|
return this._client.get('/v1/task-agents/templates', { query, ...options });
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Get Template
|
|
13
13
|
*/
|
|
14
14
|
get(templateName, options) {
|
|
15
15
|
return this._client.get(path `/v1/task-agents/templates/${templateName}`, options);
|
package/resources/tasks.d.mts
CHANGED
|
@@ -43,7 +43,7 @@ export declare namespace TaskListResponse {
|
|
|
43
43
|
/**
|
|
44
44
|
* Current state of the task.
|
|
45
45
|
*/
|
|
46
|
-
state: 'pending' | 'success' | 'error';
|
|
46
|
+
state: 'pending' | 'queued' | 'in_progress' | 'success' | 'error';
|
|
47
47
|
/**
|
|
48
48
|
* URL for checking the task status.
|
|
49
49
|
*/
|
|
@@ -52,23 +52,23 @@ export declare namespace TaskListResponse {
|
|
|
52
52
|
* Account name that owns the task.
|
|
53
53
|
*/
|
|
54
54
|
account_name?: string;
|
|
55
|
-
api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp';
|
|
55
|
+
api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp' | 'labs';
|
|
56
56
|
/**
|
|
57
57
|
* Batch ID if this task is part of a batch.
|
|
58
58
|
*/
|
|
59
|
-
batch_id?: string;
|
|
59
|
+
batch_id?: string | null;
|
|
60
60
|
/**
|
|
61
61
|
* URL for downloading the task results.
|
|
62
62
|
*/
|
|
63
|
-
download_url?: string;
|
|
63
|
+
download_url?: string | null;
|
|
64
64
|
/**
|
|
65
65
|
* Error message if the task failed.
|
|
66
66
|
*/
|
|
67
|
-
error?: string;
|
|
67
|
+
error?: string | null;
|
|
68
68
|
/**
|
|
69
69
|
* Classification of the error type.
|
|
70
70
|
*/
|
|
71
|
-
error_type?: string;
|
|
71
|
+
error_type?: string | null;
|
|
72
72
|
/**
|
|
73
73
|
* Timestamp when the task was last modified.
|
|
74
74
|
*/
|
|
@@ -76,7 +76,11 @@ export declare namespace TaskListResponse {
|
|
|
76
76
|
/**
|
|
77
77
|
* Storage location of the output data.
|
|
78
78
|
*/
|
|
79
|
-
output_url?: string;
|
|
79
|
+
output_url?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Queue name the task was submitted to.
|
|
82
|
+
*/
|
|
83
|
+
queue?: string;
|
|
80
84
|
/**
|
|
81
85
|
* HTTP status code from the task execution.
|
|
82
86
|
*/
|
|
@@ -121,7 +125,7 @@ export declare namespace TaskGetResponse {
|
|
|
121
125
|
/**
|
|
122
126
|
* Current state of the task.
|
|
123
127
|
*/
|
|
124
|
-
state: 'pending' | 'success' | 'error';
|
|
128
|
+
state: 'pending' | 'queued' | 'in_progress' | 'success' | 'error';
|
|
125
129
|
/**
|
|
126
130
|
* URL for checking the task status.
|
|
127
131
|
*/
|
|
@@ -130,23 +134,23 @@ export declare namespace TaskGetResponse {
|
|
|
130
134
|
* Account name that owns the task.
|
|
131
135
|
*/
|
|
132
136
|
account_name?: string;
|
|
133
|
-
api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp';
|
|
137
|
+
api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp' | 'labs';
|
|
134
138
|
/**
|
|
135
139
|
* Batch ID if this task is part of a batch.
|
|
136
140
|
*/
|
|
137
|
-
batch_id?: string;
|
|
141
|
+
batch_id?: string | null;
|
|
138
142
|
/**
|
|
139
143
|
* URL for downloading the task results.
|
|
140
144
|
*/
|
|
141
|
-
download_url?: string;
|
|
145
|
+
download_url?: string | null;
|
|
142
146
|
/**
|
|
143
147
|
* Error message if the task failed.
|
|
144
148
|
*/
|
|
145
|
-
error?: string;
|
|
149
|
+
error?: string | null;
|
|
146
150
|
/**
|
|
147
151
|
* Classification of the error type.
|
|
148
152
|
*/
|
|
149
|
-
error_type?: string;
|
|
153
|
+
error_type?: string | null;
|
|
150
154
|
/**
|
|
151
155
|
* Timestamp when the task was last modified.
|
|
152
156
|
*/
|
|
@@ -154,7 +158,11 @@ export declare namespace TaskGetResponse {
|
|
|
154
158
|
/**
|
|
155
159
|
* Storage location of the output data.
|
|
156
160
|
*/
|
|
157
|
-
output_url?: string;
|
|
161
|
+
output_url?: string | null;
|
|
162
|
+
/**
|
|
163
|
+
* Queue name the task was submitted to.
|
|
164
|
+
*/
|
|
165
|
+
queue?: string;
|
|
158
166
|
/**
|
|
159
167
|
* HTTP status code from the task execution.
|
|
160
168
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.d.mts","sourceRoot":"","sources":["../src/resources/tasks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OA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ACtB;CACF;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAE7D,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
package/resources/tasks.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare namespace TaskListResponse {
|
|
|
43
43
|
/**
|
|
44
44
|
* Current state of the task.
|
|
45
45
|
*/
|
|
46
|
-
state: 'pending' | 'success' | 'error';
|
|
46
|
+
state: 'pending' | 'queued' | 'in_progress' | 'success' | 'error';
|
|
47
47
|
/**
|
|
48
48
|
* URL for checking the task status.
|
|
49
49
|
*/
|
|
@@ -52,23 +52,23 @@ export declare namespace TaskListResponse {
|
|
|
52
52
|
* Account name that owns the task.
|
|
53
53
|
*/
|
|
54
54
|
account_name?: string;
|
|
55
|
-
api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp';
|
|
55
|
+
api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp' | 'labs';
|
|
56
56
|
/**
|
|
57
57
|
* Batch ID if this task is part of a batch.
|
|
58
58
|
*/
|
|
59
|
-
batch_id?: string;
|
|
59
|
+
batch_id?: string | null;
|
|
60
60
|
/**
|
|
61
61
|
* URL for downloading the task results.
|
|
62
62
|
*/
|
|
63
|
-
download_url?: string;
|
|
63
|
+
download_url?: string | null;
|
|
64
64
|
/**
|
|
65
65
|
* Error message if the task failed.
|
|
66
66
|
*/
|
|
67
|
-
error?: string;
|
|
67
|
+
error?: string | null;
|
|
68
68
|
/**
|
|
69
69
|
* Classification of the error type.
|
|
70
70
|
*/
|
|
71
|
-
error_type?: string;
|
|
71
|
+
error_type?: string | null;
|
|
72
72
|
/**
|
|
73
73
|
* Timestamp when the task was last modified.
|
|
74
74
|
*/
|
|
@@ -76,7 +76,11 @@ export declare namespace TaskListResponse {
|
|
|
76
76
|
/**
|
|
77
77
|
* Storage location of the output data.
|
|
78
78
|
*/
|
|
79
|
-
output_url?: string;
|
|
79
|
+
output_url?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Queue name the task was submitted to.
|
|
82
|
+
*/
|
|
83
|
+
queue?: string;
|
|
80
84
|
/**
|
|
81
85
|
* HTTP status code from the task execution.
|
|
82
86
|
*/
|
|
@@ -121,7 +125,7 @@ export declare namespace TaskGetResponse {
|
|
|
121
125
|
/**
|
|
122
126
|
* Current state of the task.
|
|
123
127
|
*/
|
|
124
|
-
state: 'pending' | 'success' | 'error';
|
|
128
|
+
state: 'pending' | 'queued' | 'in_progress' | 'success' | 'error';
|
|
125
129
|
/**
|
|
126
130
|
* URL for checking the task status.
|
|
127
131
|
*/
|
|
@@ -130,23 +134,23 @@ export declare namespace TaskGetResponse {
|
|
|
130
134
|
* Account name that owns the task.
|
|
131
135
|
*/
|
|
132
136
|
account_name?: string;
|
|
133
|
-
api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp';
|
|
137
|
+
api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp' | 'labs';
|
|
134
138
|
/**
|
|
135
139
|
* Batch ID if this task is part of a batch.
|
|
136
140
|
*/
|
|
137
|
-
batch_id?: string;
|
|
141
|
+
batch_id?: string | null;
|
|
138
142
|
/**
|
|
139
143
|
* URL for downloading the task results.
|
|
140
144
|
*/
|
|
141
|
-
download_url?: string;
|
|
145
|
+
download_url?: string | null;
|
|
142
146
|
/**
|
|
143
147
|
* Error message if the task failed.
|
|
144
148
|
*/
|
|
145
|
-
error?: string;
|
|
149
|
+
error?: string | null;
|
|
146
150
|
/**
|
|
147
151
|
* Classification of the error type.
|
|
148
152
|
*/
|
|
149
|
-
error_type?: string;
|
|
153
|
+
error_type?: string | null;
|
|
150
154
|
/**
|
|
151
155
|
* Timestamp when the task was last modified.
|
|
152
156
|
*/
|
|
@@ -154,7 +158,11 @@ export declare namespace TaskGetResponse {
|
|
|
154
158
|
/**
|
|
155
159
|
* Storage location of the output data.
|
|
156
160
|
*/
|
|
157
|
-
output_url?: string;
|
|
161
|
+
output_url?: string | null;
|
|
162
|
+
/**
|
|
163
|
+
* Queue name the task was submitted to.
|
|
164
|
+
*/
|
|
165
|
+
queue?: string;
|
|
158
166
|
/**
|
|
159
167
|
* HTTP status code from the task execution.
|
|
160
168
|
*/
|
package/resources/tasks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../src/resources/tasks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;OAEG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAI1E;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGnF;AAED;;GAEG;AACH,MAAM,WAAW,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AgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
|
@@ -270,7 +270,7 @@ export declare namespace ExtractAsyncResponse {
|
|
|
270
270
|
/**
|
|
271
271
|
* Current state of the task.
|
|
272
272
|
*/
|
|
273
|
-
state: 'pending' | 'success' | 'error';
|
|
273
|
+
state: 'pending' | 'queued' | 'in_progress' | 'success' | 'error';
|
|
274
274
|
/**
|
|
275
275
|
* URL for checking the task status.
|
|
276
276
|
*/
|
|
@@ -279,23 +279,23 @@ export declare namespace ExtractAsyncResponse {
|
|
|
279
279
|
* Account name that owns the task.
|
|
280
280
|
*/
|
|
281
281
|
account_name?: string;
|
|
282
|
-
api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp';
|
|
282
|
+
api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp' | 'labs';
|
|
283
283
|
/**
|
|
284
284
|
* Batch ID if this task is part of a batch.
|
|
285
285
|
*/
|
|
286
|
-
batch_id?: string;
|
|
286
|
+
batch_id?: string | null;
|
|
287
287
|
/**
|
|
288
288
|
* URL for downloading the task results.
|
|
289
289
|
*/
|
|
290
|
-
download_url?: string;
|
|
290
|
+
download_url?: string | null;
|
|
291
291
|
/**
|
|
292
292
|
* Error message if the task failed.
|
|
293
293
|
*/
|
|
294
|
-
error?: string;
|
|
294
|
+
error?: string | null;
|
|
295
295
|
/**
|
|
296
296
|
* Classification of the error type.
|
|
297
297
|
*/
|
|
298
|
-
error_type?: string;
|
|
298
|
+
error_type?: string | null;
|
|
299
299
|
/**
|
|
300
300
|
* Timestamp when the task was last modified.
|
|
301
301
|
*/
|
|
@@ -303,7 +303,11 @@ export declare namespace ExtractAsyncResponse {
|
|
|
303
303
|
/**
|
|
304
304
|
* Storage location of the output data.
|
|
305
305
|
*/
|
|
306
|
-
output_url?: string;
|
|
306
|
+
output_url?: string | null;
|
|
307
|
+
/**
|
|
308
|
+
* Queue name the task was submitted to.
|
|
309
|
+
*/
|
|
310
|
+
queue?: string;
|
|
307
311
|
/**
|
|
308
312
|
* HTTP status code from the task execution.
|
|
309
313
|
*/
|
|
@@ -345,7 +349,7 @@ export declare namespace ExtractBatchResponse {
|
|
|
345
349
|
/**
|
|
346
350
|
* Current state of the task.
|
|
347
351
|
*/
|
|
348
|
-
state: 'pending' | 'success' | 'error';
|
|
352
|
+
state: 'pending' | 'queued' | 'in_progress' | 'success' | 'error';
|
|
349
353
|
/**
|
|
350
354
|
* URL for checking the task status.
|
|
351
355
|
*/
|
|
@@ -354,23 +358,23 @@ export declare namespace ExtractBatchResponse {
|
|
|
354
358
|
* Account name that owns the task.
|
|
355
359
|
*/
|
|
356
360
|
account_name?: string;
|
|
357
|
-
api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp';
|
|
361
|
+
api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp' | 'labs';
|
|
358
362
|
/**
|
|
359
363
|
* Batch ID if this task is part of a batch.
|
|
360
364
|
*/
|
|
361
|
-
batch_id?: string;
|
|
365
|
+
batch_id?: string | null;
|
|
362
366
|
/**
|
|
363
367
|
* URL for downloading the task results.
|
|
364
368
|
*/
|
|
365
|
-
download_url?: string;
|
|
369
|
+
download_url?: string | null;
|
|
366
370
|
/**
|
|
367
371
|
* Error message if the task failed.
|
|
368
372
|
*/
|
|
369
|
-
error?: string;
|
|
373
|
+
error?: string | null;
|
|
370
374
|
/**
|
|
371
375
|
* Classification of the error type.
|
|
372
376
|
*/
|
|
373
|
-
error_type?: string;
|
|
377
|
+
error_type?: string | null;
|
|
374
378
|
/**
|
|
375
379
|
* Timestamp when the task was last modified.
|
|
376
380
|
*/
|
|
@@ -378,7 +382,11 @@ export declare namespace ExtractBatchResponse {
|
|
|
378
382
|
/**
|
|
379
383
|
* Storage location of the output data.
|
|
380
384
|
*/
|
|
381
|
-
output_url?: string;
|
|
385
|
+
output_url?: string | null;
|
|
386
|
+
/**
|
|
387
|
+
* Queue name the task was submitted to.
|
|
388
|
+
*/
|
|
389
|
+
queue?: string;
|
|
382
390
|
/**
|
|
383
391
|
* HTTP status code from the task execution.
|
|
384
392
|
*/
|
|
@@ -430,6 +438,13 @@ export interface SearchResponse {
|
|
|
430
438
|
* Citations mapping citation markers to result indices
|
|
431
439
|
*/
|
|
432
440
|
answer_citations?: Array<SearchResponse.AnswerCitation> | null;
|
|
441
|
+
/**
|
|
442
|
+
* Cleaned SERP entities (e.g. KnowledgeGraph, TopStory, RelatedSearch). Only
|
|
443
|
+
* present for focus='serp'.
|
|
444
|
+
*/
|
|
445
|
+
serp_data?: {
|
|
446
|
+
[key: string]: unknown;
|
|
447
|
+
} | null;
|
|
433
448
|
}
|
|
434
449
|
export declare namespace SearchResponse {
|
|
435
450
|
/**
|
|
@@ -492,6 +507,15 @@ export interface ExtractParams {
|
|
|
492
507
|
* Target URL to scrape
|
|
493
508
|
*/
|
|
494
509
|
url: string;
|
|
510
|
+
/**
|
|
511
|
+
* Custom flow for the optimization engine: maps candidate names to the number of
|
|
512
|
+
* attempts to spend on each candidate before advancing (0 skips it). Key order
|
|
513
|
+
* defines the flow order. Providing it opts the request into 'auto' driver
|
|
514
|
+
* selection.
|
|
515
|
+
*/
|
|
516
|
+
auto_driver_configuration?: {
|
|
517
|
+
[key: string]: number;
|
|
518
|
+
};
|
|
495
519
|
/**
|
|
496
520
|
* Request body for POST, PUT, PATCH methods
|
|
497
521
|
*/
|
|
@@ -527,7 +551,7 @@ export interface ExtractParams {
|
|
|
527
551
|
/**
|
|
528
552
|
* Browser driver to use
|
|
529
553
|
*/
|
|
530
|
-
driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6';
|
|
554
|
+
driver?: 'auto' | 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6' | 'fast-vx6';
|
|
531
555
|
/**
|
|
532
556
|
* Expected HTTP status codes for successful requests
|
|
533
557
|
*/
|
|
@@ -654,6 +678,7 @@ export declare namespace ExtractParams {
|
|
|
654
678
|
interface Session {
|
|
655
679
|
id?: string;
|
|
656
680
|
prefetch_userbrowser?: boolean;
|
|
681
|
+
renew_on_blocked?: boolean;
|
|
657
682
|
retry?: boolean;
|
|
658
683
|
timeout?: number;
|
|
659
684
|
}
|
|
@@ -663,6 +688,15 @@ export interface ExtractAsyncParams {
|
|
|
663
688
|
* Target URL to scrape
|
|
664
689
|
*/
|
|
665
690
|
url: string;
|
|
691
|
+
/**
|
|
692
|
+
* Custom flow for the optimization engine: maps candidate names to the number of
|
|
693
|
+
* attempts to spend on each candidate before advancing (0 skips it). Key order
|
|
694
|
+
* defines the flow order. Providing it opts the request into 'auto' driver
|
|
695
|
+
* selection.
|
|
696
|
+
*/
|
|
697
|
+
auto_driver_configuration?: {
|
|
698
|
+
[key: string]: number;
|
|
699
|
+
};
|
|
666
700
|
/**
|
|
667
701
|
* Request body for POST, PUT, PATCH methods
|
|
668
702
|
*/
|
|
@@ -702,7 +736,7 @@ export interface ExtractAsyncParams {
|
|
|
702
736
|
/**
|
|
703
737
|
* Browser driver to use
|
|
704
738
|
*/
|
|
705
|
-
driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6';
|
|
739
|
+
driver?: 'auto' | 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6' | 'fast-vx6';
|
|
706
740
|
/**
|
|
707
741
|
* Expected HTTP status codes for successful requests
|
|
708
742
|
*/
|
|
@@ -845,6 +879,7 @@ export declare namespace ExtractAsyncParams {
|
|
|
845
879
|
interface Session {
|
|
846
880
|
id?: string;
|
|
847
881
|
prefetch_userbrowser?: boolean;
|
|
882
|
+
renew_on_blocked?: boolean;
|
|
848
883
|
retry?: boolean;
|
|
849
884
|
timeout?: number;
|
|
850
885
|
}
|
|
@@ -863,6 +898,15 @@ export interface ExtractBatchParams {
|
|
|
863
898
|
}
|
|
864
899
|
export declare namespace ExtractBatchParams {
|
|
865
900
|
interface Input {
|
|
901
|
+
/**
|
|
902
|
+
* Custom flow for the optimization engine: maps candidate names to the number of
|
|
903
|
+
* attempts to spend on each candidate before advancing (0 skips it). Key order
|
|
904
|
+
* defines the flow order. Providing it opts the request into 'auto' driver
|
|
905
|
+
* selection.
|
|
906
|
+
*/
|
|
907
|
+
auto_driver_configuration?: {
|
|
908
|
+
[key: string]: number;
|
|
909
|
+
};
|
|
866
910
|
/**
|
|
867
911
|
* Request body for POST, PUT, PATCH methods
|
|
868
912
|
*/
|
|
@@ -900,9 +944,10 @@ export declare namespace ExtractBatchParams {
|
|
|
900
944
|
*/
|
|
901
945
|
device?: 'desktop' | 'mobile' | 'tablet';
|
|
902
946
|
/**
|
|
903
|
-
* Browser driver to use
|
|
947
|
+
* Browser driver to use. Use 'auto' to let the engine select the candidate config
|
|
948
|
+
* per domain.
|
|
904
949
|
*/
|
|
905
|
-
driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6';
|
|
950
|
+
driver?: 'auto' | 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6' | 'fast-vx6';
|
|
906
951
|
/**
|
|
907
952
|
* Expected HTTP status codes for successful requests
|
|
908
953
|
*/
|
|
@@ -1050,6 +1095,7 @@ export declare namespace ExtractBatchParams {
|
|
|
1050
1095
|
interface Session {
|
|
1051
1096
|
id?: string;
|
|
1052
1097
|
prefetch_userbrowser?: boolean;
|
|
1098
|
+
renew_on_blocked?: boolean;
|
|
1053
1099
|
retry?: boolean;
|
|
1054
1100
|
timeout?: number;
|
|
1055
1101
|
}
|
|
@@ -1059,6 +1105,15 @@ export declare namespace ExtractBatchParams {
|
|
|
1059
1105
|
* and async/storage settings.
|
|
1060
1106
|
*/
|
|
1061
1107
|
interface SharedInputs {
|
|
1108
|
+
/**
|
|
1109
|
+
* Custom flow for the optimization engine: maps candidate names to the number of
|
|
1110
|
+
* attempts to spend on each candidate before advancing (0 skips it). Key order
|
|
1111
|
+
* defines the flow order. Providing it opts the request into 'auto' driver
|
|
1112
|
+
* selection.
|
|
1113
|
+
*/
|
|
1114
|
+
auto_driver_configuration?: {
|
|
1115
|
+
[key: string]: number;
|
|
1116
|
+
};
|
|
1062
1117
|
/**
|
|
1063
1118
|
* Request body for POST, PUT, PATCH methods
|
|
1064
1119
|
*/
|
|
@@ -1096,9 +1151,10 @@ export declare namespace ExtractBatchParams {
|
|
|
1096
1151
|
*/
|
|
1097
1152
|
device?: 'desktop' | 'mobile' | 'tablet';
|
|
1098
1153
|
/**
|
|
1099
|
-
* Browser driver to use
|
|
1154
|
+
* Browser driver to use. Use 'auto' to let the engine select the candidate config
|
|
1155
|
+
* per domain.
|
|
1100
1156
|
*/
|
|
1101
|
-
driver?: 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6';
|
|
1157
|
+
driver?: 'auto' | 'vx6' | 'vx8' | 'vx8-pro' | 'vx10' | 'vx10-pro' | 'vx12' | 'vx12-pro' | 'media-vx6' | 'fast-vx6';
|
|
1102
1158
|
/**
|
|
1103
1159
|
* Expected HTTP status codes for successful requests
|
|
1104
1160
|
*/
|
|
@@ -1246,6 +1302,7 @@ export declare namespace ExtractBatchParams {
|
|
|
1246
1302
|
interface Session {
|
|
1247
1303
|
id?: string;
|
|
1248
1304
|
prefetch_userbrowser?: boolean;
|
|
1305
|
+
renew_on_blocked?: boolean;
|
|
1249
1306
|
retry?: boolean;
|
|
1250
1307
|
timeout?: number;
|
|
1251
1308
|
}
|