anchorbrowser 1.0.0-dev.0 → 1.0.0-dev.2

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 (89) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/client.d.mts +3 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.mts +1 -1
  12. package/resources/index.d.mts.map +1 -1
  13. package/resources/index.d.ts +1 -1
  14. package/resources/index.d.ts.map +1 -1
  15. package/resources/index.js +3 -3
  16. package/resources/index.js.map +1 -1
  17. package/resources/index.mjs +1 -1
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/sessions/sessions.d.mts +2 -2
  20. package/resources/sessions/sessions.d.mts.map +1 -1
  21. package/resources/sessions/sessions.d.ts +2 -2
  22. package/resources/sessions/sessions.d.ts.map +1 -1
  23. package/resources/tasks/generations.d.mts +42 -0
  24. package/resources/tasks/generations.d.mts.map +1 -0
  25. package/resources/tasks/generations.d.ts +42 -0
  26. package/resources/tasks/generations.d.ts.map +1 -0
  27. package/resources/tasks/generations.js +24 -0
  28. package/resources/tasks/generations.js.map +1 -0
  29. package/resources/tasks/generations.mjs +20 -0
  30. package/resources/tasks/generations.mjs.map +1 -0
  31. package/resources/tasks/index.d.mts +4 -0
  32. package/resources/tasks/index.d.mts.map +1 -0
  33. package/resources/tasks/index.d.ts +4 -0
  34. package/resources/tasks/index.d.ts.map +1 -0
  35. package/resources/tasks/index.js +11 -0
  36. package/resources/tasks/index.js.map +1 -0
  37. package/resources/tasks/index.mjs +5 -0
  38. package/resources/tasks/index.mjs.map +1 -0
  39. package/resources/tasks/runs.d.mts +42 -0
  40. package/resources/tasks/runs.d.mts.map +1 -0
  41. package/resources/tasks/runs.d.ts +42 -0
  42. package/resources/tasks/runs.d.ts.map +1 -0
  43. package/resources/tasks/runs.js +21 -0
  44. package/resources/tasks/runs.js.map +1 -0
  45. package/resources/tasks/runs.mjs +17 -0
  46. package/resources/tasks/runs.mjs.map +1 -0
  47. package/resources/tasks/tasks.d.mts +310 -0
  48. package/resources/tasks/tasks.d.mts.map +1 -0
  49. package/resources/tasks/tasks.d.ts +310 -0
  50. package/resources/tasks/tasks.d.ts.map +1 -0
  51. package/resources/tasks/tasks.js +80 -0
  52. package/resources/tasks/tasks.js.map +1 -0
  53. package/resources/tasks/tasks.mjs +75 -0
  54. package/resources/tasks/tasks.mjs.map +1 -0
  55. package/resources/tasks.d.mts +2 -0
  56. package/resources/tasks.d.mts.map +1 -0
  57. package/resources/tasks.d.ts +2 -0
  58. package/resources/tasks.d.ts.map +1 -0
  59. package/resources/tasks.js +6 -0
  60. package/resources/tasks.js.map +1 -0
  61. package/resources/tasks.mjs +3 -0
  62. package/resources/tasks.mjs.map +1 -0
  63. package/resources/tools.d.mts +1 -1
  64. package/resources/tools.d.mts.map +1 -1
  65. package/resources/tools.d.ts +1 -1
  66. package/resources/tools.d.ts.map +1 -1
  67. package/src/client.ts +16 -4
  68. package/src/resources/index.ts +7 -1
  69. package/src/resources/sessions/sessions.ts +2 -2
  70. package/src/resources/tasks/generations.ts +52 -0
  71. package/src/resources/tasks/index.ts +11 -0
  72. package/src/resources/tasks/runs.ts +51 -0
  73. package/src/resources/tasks/tasks.ts +518 -0
  74. package/src/resources/tasks.ts +3 -0
  75. package/src/resources/tools.ts +1 -1
  76. package/src/version.ts +1 -1
  77. package/version.d.mts +1 -1
  78. package/version.d.ts +1 -1
  79. package/version.js +1 -1
  80. package/version.mjs +1 -1
  81. package/resources/task.d.mts +0 -4
  82. package/resources/task.d.mts.map +0 -1
  83. package/resources/task.d.ts +0 -4
  84. package/resources/task.d.ts.map +0 -1
  85. package/resources/task.js +0 -9
  86. package/resources/task.js.map +0 -1
  87. package/resources/task.mjs +0 -5
  88. package/resources/task.mjs.map +0 -1
  89. package/src/resources/task.ts +0 -5
@@ -0,0 +1,310 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as GenerationsAPI from "./generations.mjs";
3
+ import { GenerationGetStatusResponse, Generations } from "./generations.mjs";
4
+ import * as RunsAPI from "./runs.mjs";
5
+ import { RunGetStatusResponse, Runs } from "./runs.mjs";
6
+ import { APIPromise } from "../../core/api-promise.mjs";
7
+ import { RequestOptions } from "../../internal/request-options.mjs";
8
+ export declare class Tasks extends APIResource {
9
+ runs: RunsAPI.Runs;
10
+ generations: GenerationsAPI.Generations;
11
+ /**
12
+ * Initiates asynchronous task generation. Use the returned task ID to poll for
13
+ * completion, then execute the task.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const response = await client.tasks.generate({
18
+ * description: 'Download a specific file from a URL',
19
+ * name: 'file-downloader',
20
+ * user_task: 'Create a task that downloads a specific file from a given URL.',
21
+ * input_schema: [
22
+ * {
23
+ * display_name: 'URL',
24
+ * type: 'string',
25
+ * required: true,
26
+ * description: 'URL of the file to download',
27
+ * },
28
+ * {
29
+ * display_name: 'File Name',
30
+ * type: 'string',
31
+ * required: true,
32
+ * description: 'Name of the file to download',
33
+ * },
34
+ * ],
35
+ * output_schema: [
36
+ * {
37
+ * display_name: 'Success',
38
+ * type: 'boolean',
39
+ * description: 'Whether the download succeeded',
40
+ * },
41
+ * {
42
+ * display_name: 'Message',
43
+ * type: 'string',
44
+ * description: 'Status or error message',
45
+ * },
46
+ * ],
47
+ * });
48
+ * ```
49
+ */
50
+ generate(body: TaskGenerateParams, options?: RequestOptions): APIPromise<TaskGenerateResponse>;
51
+ /**
52
+ * Triggers execution of a task by ID using the V2 tasks API.
53
+ *
54
+ * @example
55
+ * ```ts
56
+ * const response = await client.tasks.run('taskId', {
57
+ * input_params: {
58
+ * 'File Name': 'invoice-2026-02.pdf',
59
+ * Operation: 'extract_text',
60
+ * },
61
+ * });
62
+ * ```
63
+ */
64
+ run(taskID: string, body: TaskRunParams, options?: RequestOptions): APIPromise<TaskRunResponse>;
65
+ }
66
+ /**
67
+ * Response when task generation has been started (generation is asynchronous).
68
+ */
69
+ export interface TaskGenerateResponse {
70
+ /**
71
+ * The ID of the created task (use with generation-status and run endpoints)
72
+ */
73
+ id: string;
74
+ /**
75
+ * Whether the task is still generating, ready to run, or failed.
76
+ */
77
+ status: 'generating';
78
+ }
79
+ export interface TaskRunResponse {
80
+ /**
81
+ * The ID of the task run
82
+ */
83
+ run_id: string;
84
+ /**
85
+ * Current task run status
86
+ */
87
+ status: 'queued' | 'running' | 'success' | 'failure' | 'timeout' | 'cancelled';
88
+ /**
89
+ * Error message when the run fails
90
+ */
91
+ error?: string;
92
+ /**
93
+ * Task output when available
94
+ */
95
+ result?: {
96
+ [key: string]: unknown;
97
+ };
98
+ /**
99
+ * Session ID used for this task run
100
+ */
101
+ session_id?: string;
102
+ }
103
+ export interface TaskGenerateParams {
104
+ /**
105
+ * Description of the task
106
+ */
107
+ description: string;
108
+ /**
109
+ * Name of the task
110
+ */
111
+ name: string;
112
+ /**
113
+ * Natural language description of what the task should do (used for AI generation)
114
+ */
115
+ user_task: string;
116
+ /**
117
+ * Optional application (connection) ID to associate with the task
118
+ */
119
+ application_id?: string;
120
+ /**
121
+ * Optional list of input parameters for the task. Defaults to empty array.
122
+ */
123
+ input_schema?: Array<TaskGenerateParams.InputSchema>;
124
+ /**
125
+ * Optional list of output parameters for the task. Defaults to empty array.
126
+ */
127
+ output_schema?: Array<TaskGenerateParams.OutputSchema>;
128
+ /**
129
+ * Optional default browser/session configuration when running this task
130
+ */
131
+ task_browser_default_configuration?: TaskGenerateParams.TaskBrowserDefaultConfiguration;
132
+ }
133
+ export declare namespace TaskGenerateParams {
134
+ /**
135
+ * A single input or output parameter for a generated task.
136
+ */
137
+ interface InputSchema {
138
+ /**
139
+ * Human-readable name for the parameter
140
+ */
141
+ display_name: string;
142
+ /**
143
+ * Data type of the parameter
144
+ */
145
+ type: 'string' | 'number' | 'boolean' | 'date';
146
+ /**
147
+ * Optional default value as a string
148
+ */
149
+ default_value?: string;
150
+ /**
151
+ * Optional description of the parameter
152
+ */
153
+ description?: string;
154
+ /**
155
+ * Whether the parameter is required
156
+ */
157
+ required?: boolean;
158
+ }
159
+ /**
160
+ * A single input or output parameter for a generated task.
161
+ */
162
+ interface OutputSchema {
163
+ /**
164
+ * Human-readable name for the parameter
165
+ */
166
+ display_name: string;
167
+ /**
168
+ * Data type of the parameter
169
+ */
170
+ type: 'string' | 'number' | 'boolean' | 'date';
171
+ /**
172
+ * Optional default value as a string
173
+ */
174
+ default_value?: string;
175
+ /**
176
+ * Optional description of the parameter
177
+ */
178
+ description?: string;
179
+ /**
180
+ * Whether the parameter is required
181
+ */
182
+ required?: boolean;
183
+ }
184
+ /**
185
+ * Optional default browser/session configuration when running this task
186
+ */
187
+ interface TaskBrowserDefaultConfiguration {
188
+ /**
189
+ * The URL to navigate to when the browser session starts. If not provided, the
190
+ * browser will load an empty page.
191
+ */
192
+ initial_url?: string;
193
+ /**
194
+ * Configuration for live viewing the browser session.
195
+ */
196
+ live_view?: TaskBrowserDefaultConfiguration.LiveView;
197
+ /**
198
+ * Proxy Documentation available at [Proxy Documentation](/advanced/proxy)
199
+ */
200
+ proxy?: TaskBrowserDefaultConfiguration.AnchorProxy | TaskBrowserDefaultConfiguration.CustomProxy;
201
+ /**
202
+ * Configuration for session recording.
203
+ */
204
+ recording?: TaskBrowserDefaultConfiguration.Recording;
205
+ /**
206
+ * Timeout configurations for the browser session.
207
+ */
208
+ timeout?: TaskBrowserDefaultConfiguration.Timeout;
209
+ }
210
+ namespace TaskBrowserDefaultConfiguration {
211
+ /**
212
+ * Configuration for live viewing the browser session.
213
+ */
214
+ interface LiveView {
215
+ /**
216
+ * Enable or disable read-only mode for live viewing. Defaults to `false`.
217
+ */
218
+ read_only?: boolean;
219
+ }
220
+ interface AnchorProxy {
221
+ active: boolean;
222
+ /**
223
+ * City name for precise geographic targeting. Supported for anchor_proxy only. Can
224
+ * only be used when region is also provided.
225
+ */
226
+ city?: string;
227
+ /**
228
+ * Supported country codes ISO 2 lowercase
229
+ */
230
+ country_code?: 'af' | 'al' | 'dz' | 'ad' | 'ao' | 'as' | 'ag' | 'ar' | 'am' | 'aw' | 'au' | 'at' | 'az' | 'bs' | 'bh' | 'bb' | 'by' | 'be' | 'bz' | 'bj' | 'bm' | 'bo' | 'ba' | 'br' | 'bg' | 'bf' | 'cm' | 'ca' | 'cv' | 'td' | 'cl' | 'co' | 'cg' | 'cr' | 'ci' | 'hr' | 'cu' | 'cy' | 'cz' | 'dk' | 'dm' | 'do' | 'ec' | 'eg' | 'sv' | 'ee' | 'et' | 'fo' | 'fi' | 'fr' | 'gf' | 'pf' | 'ga' | 'gm' | 'ge' | 'de' | 'gh' | 'gi' | 'gr' | 'gd' | 'gp' | 'gt' | 'gg' | 'gn' | 'gw' | 'gy' | 'ht' | 'hn' | 'hu' | 'is' | 'in' | 'ir' | 'iq' | 'ie' | 'il' | 'it' | 'jm' | 'jp' | 'jo' | 'kz' | 'kw' | 'kg' | 'lv' | 'lb' | 'ly' | 'li' | 'lt' | 'lu' | 'mk' | 'ml' | 'mt' | 'mq' | 'mr' | 'mx' | 'md' | 'mc' | 'me' | 'ma' | 'nl' | 'nz' | 'ni' | 'ng' | 'no' | 'pk' | 'pa' | 'py' | 'pe' | 'ph' | 'pl' | 'pt' | 'pr' | 'qa' | 'ro' | 'lc' | 'sm' | 'sa' | 'sn' | 'rs' | 'sc' | 'sl' | 'sk' | 'si' | 'so' | 'za' | 'kr' | 'es' | 'sr' | 'se' | 'ch' | 'sy' | 'st' | 'tw' | 'tj' | 'tg' | 'tt' | 'tn' | 'tr' | 'tc' | 'ua' | 'ae' | 'us' | 'uy' | 'uz' | 've' | 'ye';
231
+ /**
232
+ * Region code for more specific geographic targeting. The city parameter can only
233
+ * be used when region is also provided.
234
+ */
235
+ region?: string;
236
+ /**
237
+ * Create a session with a proxy to access websites as if you're browsing from a
238
+ * computer in that country.
239
+ */
240
+ type?: 'anchor_proxy';
241
+ }
242
+ interface CustomProxy {
243
+ active: boolean;
244
+ /**
245
+ * Proxy password
246
+ */
247
+ password: string;
248
+ /**
249
+ * Proxy address in **PROTOCOL://HOST:PORT** format (e.g.,
250
+ * https://proxy.example.com:443). See [proxy page](/advanced/proxy#custom-proxy).
251
+ */
252
+ server: string;
253
+ type: 'custom';
254
+ /**
255
+ * Proxy username
256
+ */
257
+ username: string;
258
+ }
259
+ /**
260
+ * Configuration for session recording.
261
+ */
262
+ interface Recording {
263
+ /**
264
+ * Enable or disable video recording of the browser session. Defaults to `true`.
265
+ */
266
+ active?: boolean;
267
+ }
268
+ /**
269
+ * Timeout configurations for the browser session.
270
+ */
271
+ interface Timeout {
272
+ /**
273
+ * The amount of time (in minutes) the browser session waits for new connections
274
+ * after all others are closed before stopping. Defaults to `5`.
275
+ */
276
+ idle_timeout?: number;
277
+ /**
278
+ * Maximum amount of time (in minutes) for the browser to run before terminating.
279
+ * Defaults to `20`.
280
+ */
281
+ max_duration?: number;
282
+ }
283
+ }
284
+ }
285
+ export interface TaskRunParams {
286
+ /**
287
+ * Key-value pairs of input parameters for the task
288
+ */
289
+ input_params: {
290
+ [key: string]: string;
291
+ };
292
+ /**
293
+ * Whether to clean up sessions after execution
294
+ */
295
+ cleanup_sessions?: boolean;
296
+ /**
297
+ * Optional identity ID to use for the task
298
+ */
299
+ identity_id?: string;
300
+ /**
301
+ * Optional session ID to run the task in
302
+ */
303
+ session_id?: string;
304
+ }
305
+ export declare namespace Tasks {
306
+ export { type TaskGenerateResponse as TaskGenerateResponse, type TaskRunResponse as TaskRunResponse, type TaskGenerateParams as TaskGenerateParams, type TaskRunParams as TaskRunParams, };
307
+ export { Runs as Runs, type RunGetStatusResponse as RunGetStatusResponse };
308
+ export { Generations as Generations, type GenerationGetStatusResponse as GenerationGetStatusResponse };
309
+ }
310
+ //# sourceMappingURL=tasks.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tasks.d.mts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C;SAClB;QAED;;WAEG;QACH,UAAiB,SAAS;YACxB;;eAEG;YACH,MAAM,CAAC,EAAE,OAAO,CAAC;SAClB;QAED;;WAEG;QACH,UAAiB,OAAO;YACtB;;;eAGG;YACH,YAAY,CAAC,EAAE,MAAM,CAAC;YAEtB;;;eAGG;YACH,YAAY,CAAC,EAAE,MAAM,CAAC;SACvB;KACF;CACF;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAExC;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAKD,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;IAEF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;IAE3E,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CACxG"}
@@ -0,0 +1,310 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as GenerationsAPI from "./generations.js";
3
+ import { GenerationGetStatusResponse, Generations } from "./generations.js";
4
+ import * as RunsAPI from "./runs.js";
5
+ import { RunGetStatusResponse, Runs } from "./runs.js";
6
+ import { APIPromise } from "../../core/api-promise.js";
7
+ import { RequestOptions } from "../../internal/request-options.js";
8
+ export declare class Tasks extends APIResource {
9
+ runs: RunsAPI.Runs;
10
+ generations: GenerationsAPI.Generations;
11
+ /**
12
+ * Initiates asynchronous task generation. Use the returned task ID to poll for
13
+ * completion, then execute the task.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const response = await client.tasks.generate({
18
+ * description: 'Download a specific file from a URL',
19
+ * name: 'file-downloader',
20
+ * user_task: 'Create a task that downloads a specific file from a given URL.',
21
+ * input_schema: [
22
+ * {
23
+ * display_name: 'URL',
24
+ * type: 'string',
25
+ * required: true,
26
+ * description: 'URL of the file to download',
27
+ * },
28
+ * {
29
+ * display_name: 'File Name',
30
+ * type: 'string',
31
+ * required: true,
32
+ * description: 'Name of the file to download',
33
+ * },
34
+ * ],
35
+ * output_schema: [
36
+ * {
37
+ * display_name: 'Success',
38
+ * type: 'boolean',
39
+ * description: 'Whether the download succeeded',
40
+ * },
41
+ * {
42
+ * display_name: 'Message',
43
+ * type: 'string',
44
+ * description: 'Status or error message',
45
+ * },
46
+ * ],
47
+ * });
48
+ * ```
49
+ */
50
+ generate(body: TaskGenerateParams, options?: RequestOptions): APIPromise<TaskGenerateResponse>;
51
+ /**
52
+ * Triggers execution of a task by ID using the V2 tasks API.
53
+ *
54
+ * @example
55
+ * ```ts
56
+ * const response = await client.tasks.run('taskId', {
57
+ * input_params: {
58
+ * 'File Name': 'invoice-2026-02.pdf',
59
+ * Operation: 'extract_text',
60
+ * },
61
+ * });
62
+ * ```
63
+ */
64
+ run(taskID: string, body: TaskRunParams, options?: RequestOptions): APIPromise<TaskRunResponse>;
65
+ }
66
+ /**
67
+ * Response when task generation has been started (generation is asynchronous).
68
+ */
69
+ export interface TaskGenerateResponse {
70
+ /**
71
+ * The ID of the created task (use with generation-status and run endpoints)
72
+ */
73
+ id: string;
74
+ /**
75
+ * Whether the task is still generating, ready to run, or failed.
76
+ */
77
+ status: 'generating';
78
+ }
79
+ export interface TaskRunResponse {
80
+ /**
81
+ * The ID of the task run
82
+ */
83
+ run_id: string;
84
+ /**
85
+ * Current task run status
86
+ */
87
+ status: 'queued' | 'running' | 'success' | 'failure' | 'timeout' | 'cancelled';
88
+ /**
89
+ * Error message when the run fails
90
+ */
91
+ error?: string;
92
+ /**
93
+ * Task output when available
94
+ */
95
+ result?: {
96
+ [key: string]: unknown;
97
+ };
98
+ /**
99
+ * Session ID used for this task run
100
+ */
101
+ session_id?: string;
102
+ }
103
+ export interface TaskGenerateParams {
104
+ /**
105
+ * Description of the task
106
+ */
107
+ description: string;
108
+ /**
109
+ * Name of the task
110
+ */
111
+ name: string;
112
+ /**
113
+ * Natural language description of what the task should do (used for AI generation)
114
+ */
115
+ user_task: string;
116
+ /**
117
+ * Optional application (connection) ID to associate with the task
118
+ */
119
+ application_id?: string;
120
+ /**
121
+ * Optional list of input parameters for the task. Defaults to empty array.
122
+ */
123
+ input_schema?: Array<TaskGenerateParams.InputSchema>;
124
+ /**
125
+ * Optional list of output parameters for the task. Defaults to empty array.
126
+ */
127
+ output_schema?: Array<TaskGenerateParams.OutputSchema>;
128
+ /**
129
+ * Optional default browser/session configuration when running this task
130
+ */
131
+ task_browser_default_configuration?: TaskGenerateParams.TaskBrowserDefaultConfiguration;
132
+ }
133
+ export declare namespace TaskGenerateParams {
134
+ /**
135
+ * A single input or output parameter for a generated task.
136
+ */
137
+ interface InputSchema {
138
+ /**
139
+ * Human-readable name for the parameter
140
+ */
141
+ display_name: string;
142
+ /**
143
+ * Data type of the parameter
144
+ */
145
+ type: 'string' | 'number' | 'boolean' | 'date';
146
+ /**
147
+ * Optional default value as a string
148
+ */
149
+ default_value?: string;
150
+ /**
151
+ * Optional description of the parameter
152
+ */
153
+ description?: string;
154
+ /**
155
+ * Whether the parameter is required
156
+ */
157
+ required?: boolean;
158
+ }
159
+ /**
160
+ * A single input or output parameter for a generated task.
161
+ */
162
+ interface OutputSchema {
163
+ /**
164
+ * Human-readable name for the parameter
165
+ */
166
+ display_name: string;
167
+ /**
168
+ * Data type of the parameter
169
+ */
170
+ type: 'string' | 'number' | 'boolean' | 'date';
171
+ /**
172
+ * Optional default value as a string
173
+ */
174
+ default_value?: string;
175
+ /**
176
+ * Optional description of the parameter
177
+ */
178
+ description?: string;
179
+ /**
180
+ * Whether the parameter is required
181
+ */
182
+ required?: boolean;
183
+ }
184
+ /**
185
+ * Optional default browser/session configuration when running this task
186
+ */
187
+ interface TaskBrowserDefaultConfiguration {
188
+ /**
189
+ * The URL to navigate to when the browser session starts. If not provided, the
190
+ * browser will load an empty page.
191
+ */
192
+ initial_url?: string;
193
+ /**
194
+ * Configuration for live viewing the browser session.
195
+ */
196
+ live_view?: TaskBrowserDefaultConfiguration.LiveView;
197
+ /**
198
+ * Proxy Documentation available at [Proxy Documentation](/advanced/proxy)
199
+ */
200
+ proxy?: TaskBrowserDefaultConfiguration.AnchorProxy | TaskBrowserDefaultConfiguration.CustomProxy;
201
+ /**
202
+ * Configuration for session recording.
203
+ */
204
+ recording?: TaskBrowserDefaultConfiguration.Recording;
205
+ /**
206
+ * Timeout configurations for the browser session.
207
+ */
208
+ timeout?: TaskBrowserDefaultConfiguration.Timeout;
209
+ }
210
+ namespace TaskBrowserDefaultConfiguration {
211
+ /**
212
+ * Configuration for live viewing the browser session.
213
+ */
214
+ interface LiveView {
215
+ /**
216
+ * Enable or disable read-only mode for live viewing. Defaults to `false`.
217
+ */
218
+ read_only?: boolean;
219
+ }
220
+ interface AnchorProxy {
221
+ active: boolean;
222
+ /**
223
+ * City name for precise geographic targeting. Supported for anchor_proxy only. Can
224
+ * only be used when region is also provided.
225
+ */
226
+ city?: string;
227
+ /**
228
+ * Supported country codes ISO 2 lowercase
229
+ */
230
+ country_code?: 'af' | 'al' | 'dz' | 'ad' | 'ao' | 'as' | 'ag' | 'ar' | 'am' | 'aw' | 'au' | 'at' | 'az' | 'bs' | 'bh' | 'bb' | 'by' | 'be' | 'bz' | 'bj' | 'bm' | 'bo' | 'ba' | 'br' | 'bg' | 'bf' | 'cm' | 'ca' | 'cv' | 'td' | 'cl' | 'co' | 'cg' | 'cr' | 'ci' | 'hr' | 'cu' | 'cy' | 'cz' | 'dk' | 'dm' | 'do' | 'ec' | 'eg' | 'sv' | 'ee' | 'et' | 'fo' | 'fi' | 'fr' | 'gf' | 'pf' | 'ga' | 'gm' | 'ge' | 'de' | 'gh' | 'gi' | 'gr' | 'gd' | 'gp' | 'gt' | 'gg' | 'gn' | 'gw' | 'gy' | 'ht' | 'hn' | 'hu' | 'is' | 'in' | 'ir' | 'iq' | 'ie' | 'il' | 'it' | 'jm' | 'jp' | 'jo' | 'kz' | 'kw' | 'kg' | 'lv' | 'lb' | 'ly' | 'li' | 'lt' | 'lu' | 'mk' | 'ml' | 'mt' | 'mq' | 'mr' | 'mx' | 'md' | 'mc' | 'me' | 'ma' | 'nl' | 'nz' | 'ni' | 'ng' | 'no' | 'pk' | 'pa' | 'py' | 'pe' | 'ph' | 'pl' | 'pt' | 'pr' | 'qa' | 'ro' | 'lc' | 'sm' | 'sa' | 'sn' | 'rs' | 'sc' | 'sl' | 'sk' | 'si' | 'so' | 'za' | 'kr' | 'es' | 'sr' | 'se' | 'ch' | 'sy' | 'st' | 'tw' | 'tj' | 'tg' | 'tt' | 'tn' | 'tr' | 'tc' | 'ua' | 'ae' | 'us' | 'uy' | 'uz' | 've' | 'ye';
231
+ /**
232
+ * Region code for more specific geographic targeting. The city parameter can only
233
+ * be used when region is also provided.
234
+ */
235
+ region?: string;
236
+ /**
237
+ * Create a session with a proxy to access websites as if you're browsing from a
238
+ * computer in that country.
239
+ */
240
+ type?: 'anchor_proxy';
241
+ }
242
+ interface CustomProxy {
243
+ active: boolean;
244
+ /**
245
+ * Proxy password
246
+ */
247
+ password: string;
248
+ /**
249
+ * Proxy address in **PROTOCOL://HOST:PORT** format (e.g.,
250
+ * https://proxy.example.com:443). See [proxy page](/advanced/proxy#custom-proxy).
251
+ */
252
+ server: string;
253
+ type: 'custom';
254
+ /**
255
+ * Proxy username
256
+ */
257
+ username: string;
258
+ }
259
+ /**
260
+ * Configuration for session recording.
261
+ */
262
+ interface Recording {
263
+ /**
264
+ * Enable or disable video recording of the browser session. Defaults to `true`.
265
+ */
266
+ active?: boolean;
267
+ }
268
+ /**
269
+ * Timeout configurations for the browser session.
270
+ */
271
+ interface Timeout {
272
+ /**
273
+ * The amount of time (in minutes) the browser session waits for new connections
274
+ * after all others are closed before stopping. Defaults to `5`.
275
+ */
276
+ idle_timeout?: number;
277
+ /**
278
+ * Maximum amount of time (in minutes) for the browser to run before terminating.
279
+ * Defaults to `20`.
280
+ */
281
+ max_duration?: number;
282
+ }
283
+ }
284
+ }
285
+ export interface TaskRunParams {
286
+ /**
287
+ * Key-value pairs of input parameters for the task
288
+ */
289
+ input_params: {
290
+ [key: string]: string;
291
+ };
292
+ /**
293
+ * Whether to clean up sessions after execution
294
+ */
295
+ cleanup_sessions?: boolean;
296
+ /**
297
+ * Optional identity ID to use for the task
298
+ */
299
+ identity_id?: string;
300
+ /**
301
+ * Optional session ID to run the task in
302
+ */
303
+ session_id?: string;
304
+ }
305
+ export declare namespace Tasks {
306
+ export { type TaskGenerateResponse as TaskGenerateResponse, type TaskRunResponse as TaskRunResponse, type TaskGenerateParams as TaskGenerateParams, type TaskRunParams as TaskRunParams, };
307
+ export { Runs as Runs, type RunGetStatusResponse as RunGetStatusResponse };
308
+ export { Generations as Generations, type GenerationGetStatusResponse as GenerationGetStatusResponse };
309
+ }
310
+ //# sourceMappingURL=tasks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/resources/tasks/tasks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,2BAA2B,EAAE,WAAW,EAAE;OAC5C,KAAK,OAAO;OACZ,EAAE,oBAAoB,EAAE,IAAI,EAAE;OAC9B,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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