@nimble-way/nimble-js 0.18.0 → 0.20.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 (130) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/agent.d.mts +14 -31
  10. package/resources/agent.d.mts.map +1 -1
  11. package/resources/agent.d.ts +14 -31
  12. package/resources/agent.d.ts.map +1 -1
  13. package/resources/agent.js +4 -21
  14. package/resources/agent.js.map +1 -1
  15. package/resources/agent.mjs +4 -21
  16. package/resources/agent.mjs.map +1 -1
  17. package/resources/batches.d.mts +5 -5
  18. package/resources/batches.d.mts.map +1 -1
  19. package/resources/batches.d.ts +5 -5
  20. package/resources/batches.d.ts.map +1 -1
  21. package/resources/crawl.d.mts +1 -0
  22. package/resources/crawl.d.mts.map +1 -1
  23. package/resources/crawl.d.ts +1 -0
  24. package/resources/crawl.d.ts.map +1 -1
  25. package/resources/fast-serp.d.mts +305 -0
  26. package/resources/fast-serp.d.mts.map +1 -1
  27. package/resources/fast-serp.d.ts +305 -0
  28. package/resources/fast-serp.d.ts.map +1 -1
  29. package/resources/fast-serp.js +13 -0
  30. package/resources/fast-serp.js.map +1 -1
  31. package/resources/fast-serp.mjs +13 -0
  32. package/resources/fast-serp.mjs.map +1 -1
  33. package/resources/index.d.mts +1 -1
  34. package/resources/index.d.mts.map +1 -1
  35. package/resources/index.d.ts +1 -1
  36. package/resources/index.d.ts.map +1 -1
  37. package/resources/index.js.map +1 -1
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/jobs/jobs.d.mts +36 -6
  40. package/resources/jobs/jobs.d.mts.map +1 -1
  41. package/resources/jobs/jobs.d.ts +36 -6
  42. package/resources/jobs/jobs.d.ts.map +1 -1
  43. package/resources/jobs/jobs.js +12 -0
  44. package/resources/jobs/jobs.js.map +1 -1
  45. package/resources/jobs/jobs.mjs +12 -0
  46. package/resources/jobs/jobs.mjs.map +1 -1
  47. package/resources/jobs/runs/artifacts.d.mts +17 -13
  48. package/resources/jobs/runs/artifacts.d.mts.map +1 -1
  49. package/resources/jobs/runs/artifacts.d.ts +17 -13
  50. package/resources/jobs/runs/artifacts.d.ts.map +1 -1
  51. package/resources/jobs/runs/artifacts.js +8 -0
  52. package/resources/jobs/runs/artifacts.js.map +1 -1
  53. package/resources/jobs/runs/artifacts.mjs +8 -0
  54. package/resources/jobs/runs/artifacts.mjs.map +1 -1
  55. package/resources/jobs/runs/runs.d.mts +12 -6
  56. package/resources/jobs/runs/runs.d.mts.map +1 -1
  57. package/resources/jobs/runs/runs.d.ts +12 -6
  58. package/resources/jobs/runs/runs.d.ts.map +1 -1
  59. package/resources/jobs/runs/runs.js +6 -0
  60. package/resources/jobs/runs/runs.js.map +1 -1
  61. package/resources/jobs/runs/runs.mjs +6 -0
  62. package/resources/jobs/runs/runs.mjs.map +1 -1
  63. package/resources/media.d.mts +5 -5
  64. package/resources/media.d.mts.map +1 -1
  65. package/resources/media.d.ts +5 -5
  66. package/resources/media.d.ts.map +1 -1
  67. package/resources/serp.d.mts +10 -10
  68. package/resources/serp.d.mts.map +1 -1
  69. package/resources/serp.d.ts +10 -10
  70. package/resources/serp.d.ts.map +1 -1
  71. package/resources/task-agent/index.d.mts +1 -1
  72. package/resources/task-agent/index.d.mts.map +1 -1
  73. package/resources/task-agent/index.d.ts +1 -1
  74. package/resources/task-agent/index.d.ts.map +1 -1
  75. package/resources/task-agent/index.js.map +1 -1
  76. package/resources/task-agent/index.mjs.map +1 -1
  77. package/resources/task-agent/runs.d.mts +440 -81
  78. package/resources/task-agent/runs.d.mts.map +1 -1
  79. package/resources/task-agent/runs.d.ts +440 -81
  80. package/resources/task-agent/runs.d.ts.map +1 -1
  81. package/resources/task-agent/runs.js +30 -17
  82. package/resources/task-agent/runs.js.map +1 -1
  83. package/resources/task-agent/runs.mjs +30 -17
  84. package/resources/task-agent/runs.mjs.map +1 -1
  85. package/resources/task-agent/task-agent.d.mts +641 -51
  86. package/resources/task-agent/task-agent.d.mts.map +1 -1
  87. package/resources/task-agent/task-agent.d.ts +641 -51
  88. package/resources/task-agent/task-agent.d.ts.map +1 -1
  89. package/resources/task-agent/task-agent.js +24 -14
  90. package/resources/task-agent/task-agent.js.map +1 -1
  91. package/resources/task-agent/task-agent.mjs +24 -14
  92. package/resources/task-agent/task-agent.mjs.map +1 -1
  93. package/resources/task-agent/templates.d.mts +175 -12
  94. package/resources/task-agent/templates.d.mts.map +1 -1
  95. package/resources/task-agent/templates.d.ts +175 -12
  96. package/resources/task-agent/templates.d.ts.map +1 -1
  97. package/resources/task-agent/templates.js +6 -2
  98. package/resources/task-agent/templates.js.map +1 -1
  99. package/resources/task-agent/templates.mjs +6 -2
  100. package/resources/task-agent/templates.mjs.map +1 -1
  101. package/resources/tasks.d.mts +10 -10
  102. package/resources/tasks.d.mts.map +1 -1
  103. package/resources/tasks.d.ts +10 -10
  104. package/resources/tasks.d.ts.map +1 -1
  105. package/resources/top-level.d.mts +14 -16
  106. package/resources/top-level.d.mts.map +1 -1
  107. package/resources/top-level.d.ts +14 -16
  108. package/resources/top-level.d.ts.map +1 -1
  109. package/src/client.ts +6 -2
  110. package/src/resources/agent.ts +15 -32
  111. package/src/resources/batches.ts +5 -5
  112. package/src/resources/crawl.ts +2 -0
  113. package/src/resources/fast-serp.ts +461 -1
  114. package/src/resources/index.ts +1 -1
  115. package/src/resources/jobs/jobs.ts +36 -6
  116. package/src/resources/jobs/runs/artifacts.ts +17 -13
  117. package/src/resources/jobs/runs/runs.ts +12 -6
  118. package/src/resources/media.ts +5 -5
  119. package/src/resources/serp.ts +10 -10
  120. package/src/resources/task-agent/index.ts +0 -2
  121. package/src/resources/task-agent/runs.ts +461 -111
  122. package/src/resources/task-agent/task-agent.ts +652 -78
  123. package/src/resources/task-agent/templates.ts +178 -14
  124. package/src/resources/tasks.ts +10 -10
  125. package/src/resources/top-level.ts +18 -15
  126. package/src/version.ts +1 -1
  127. package/version.d.mts +1 -1
  128. package/version.d.ts +1 -1
  129. package/version.js +1 -1
  130. package/version.mjs +1 -1
@@ -1,5 +1,465 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
4
6
 
5
- export class FastSerp extends APIResource {}
7
+ export class FastSerp extends APIResource {
8
+ /**
9
+ * Fast SERP
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const response = await client.fastSerp.run({
14
+ * search_engine: 'google_search',
15
+ * });
16
+ * ```
17
+ */
18
+ run(body: FastSerpRunParams, options?: RequestOptions): APIPromise<FastSerpRunResponse> {
19
+ return this._client.post('/v1/fast-serp', { body, ...options });
20
+ }
21
+ }
22
+
23
+ export interface FastSerpRunResponse {
24
+ data: FastSerpRunResponse.Data;
25
+
26
+ metadata: FastSerpRunResponse.Metadata;
27
+
28
+ /**
29
+ * The status of the task.
30
+ */
31
+ status: 'success' | 'skipped' | 'fatal' | 'error' | 'postponed' | 'ignored' | 'rejected' | 'blocked';
32
+
33
+ /**
34
+ * Unique identifier for the task.
35
+ */
36
+ task_id: string;
37
+
38
+ /**
39
+ * The final URL.
40
+ */
41
+ url: string;
42
+
43
+ debug?: FastSerpRunResponse.Debug;
44
+
45
+ /**
46
+ * Pagination information if applicable.
47
+ */
48
+ pagination?: FastSerpRunResponse.NextPageParams | Array<FastSerpRunResponse.UnionMember1>;
49
+
50
+ /**
51
+ * The HTTP status code of the task.
52
+ */
53
+ status_code?: number;
54
+
55
+ /**
56
+ * List of warnings generated during the task.
57
+ */
58
+ warnings?: Array<string>;
59
+ }
60
+
61
+ export namespace FastSerpRunResponse {
62
+ export interface Data {
63
+ /**
64
+ * Browser actions execution results. Present only when browser_actions were
65
+ * specified in the request.
66
+ */
67
+ browser_actions?: Data.BrowserActions;
68
+
69
+ /**
70
+ * The cookies collected from browser actions during the task.
71
+ */
72
+ cookies?: Array<unknown>;
73
+
74
+ /**
75
+ * The evaluation results from browser actions during the task.
76
+ */
77
+ eval?: Array<unknown>;
78
+
79
+ /**
80
+ * The http requests from browser actions made during the task.
81
+ */
82
+ fetch?: Array<unknown>;
83
+
84
+ /**
85
+ * The headers received during the task.
86
+ */
87
+ headers?: { [key: string]: string };
88
+
89
+ /**
90
+ * The HTML content of the page.
91
+ */
92
+ html?: string;
93
+
94
+ /**
95
+ * List of all unique URLs found on the page.
96
+ */
97
+ links?: Array<string>;
98
+
99
+ /**
100
+ * The Markdown version of the HTML content.
101
+ */
102
+ markdown?: string;
103
+
104
+ /**
105
+ * The network capture data collected during the task.
106
+ */
107
+ network_capture?: Array<Data.NetworkCapture>;
108
+
109
+ /**
110
+ * Individual HTML content of each pagination page, before merging.
111
+ */
112
+ pages_html?: Array<string>;
113
+
114
+ /**
115
+ * The parsing results extracted from the HTML & network content.
116
+ */
117
+ parsing?: Data.ParsingSuccessResult | Data.ParsingErrorResult | { [key: string]: unknown };
118
+
119
+ /**
120
+ * The list of redirects that occurred during the task.
121
+ */
122
+ redirects?: Array<Data.Redirect>;
123
+
124
+ /**
125
+ * Screenshots taken during the task, from browser actions, or the screenshot
126
+ * format.
127
+ */
128
+ screenshots?: Array<unknown>;
129
+ }
130
+
131
+ export namespace Data {
132
+ /**
133
+ * Browser actions execution results. Present only when browser_actions were
134
+ * specified in the request.
135
+ */
136
+ export interface BrowserActions {
137
+ results: Array<BrowserActions.Result>;
138
+
139
+ success: boolean;
140
+
141
+ total_duration: number;
142
+ }
143
+
144
+ export namespace BrowserActions {
145
+ export interface Result {
146
+ duration: number;
147
+
148
+ name:
149
+ | 'goto'
150
+ | 'wait'
151
+ | 'wait_for_element'
152
+ | 'wait_for_navigation'
153
+ | 'click'
154
+ | 'fill'
155
+ | 'press'
156
+ | 'scroll'
157
+ | 'auto_scroll'
158
+ | 'screenshot'
159
+ | 'get_cookies'
160
+ | 'eval'
161
+ | 'fetch';
162
+
163
+ status: 'no-run' | 'in-progress' | 'done' | 'error' | 'skipped';
164
+
165
+ error?: string;
166
+
167
+ result?: unknown;
168
+ }
169
+ }
170
+
171
+ export interface NetworkCapture {
172
+ filter: NetworkCapture.Filter;
173
+
174
+ results: Array<NetworkCapture.Result>;
175
+
176
+ errorMessage?: string;
177
+ }
178
+
179
+ export namespace NetworkCapture {
180
+ export interface Filter {
181
+ validation: boolean;
182
+
183
+ wait_for_requests_count: number;
184
+
185
+ method?: 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
186
+
187
+ /**
188
+ * Resource type for network capture filtering
189
+ */
190
+ resource_type?:
191
+ | 'document'
192
+ | 'stylesheet'
193
+ | 'image'
194
+ | 'media'
195
+ | 'font'
196
+ | 'script'
197
+ | 'texttrack'
198
+ | 'xhr'
199
+ | 'fetch'
200
+ | 'prefetch'
201
+ | 'eventsource'
202
+ | 'websocket'
203
+ | 'manifest'
204
+ | 'signedexchange'
205
+ | 'ping'
206
+ | 'cspviolationreport'
207
+ | 'preflight'
208
+ | 'other'
209
+ | 'fedcm'
210
+ | Array<
211
+ | 'document'
212
+ | 'stylesheet'
213
+ | 'image'
214
+ | 'media'
215
+ | 'font'
216
+ | 'script'
217
+ | 'texttrack'
218
+ | 'xhr'
219
+ | 'fetch'
220
+ | 'prefetch'
221
+ | 'eventsource'
222
+ | 'websocket'
223
+ | 'manifest'
224
+ | 'signedexchange'
225
+ | 'ping'
226
+ | 'cspviolationreport'
227
+ | 'preflight'
228
+ | 'other'
229
+ | 'fedcm'
230
+ >;
231
+
232
+ status_code?: number | Array<number>;
233
+
234
+ url?: Filter.URL;
235
+
236
+ wait_for_requests_count_timeout?: number;
237
+ }
238
+
239
+ export namespace Filter {
240
+ export interface URL {
241
+ type: 'exact' | 'contains';
242
+
243
+ value: string;
244
+ }
245
+ }
246
+
247
+ export interface Result {
248
+ request: Result.Request;
249
+
250
+ response: Result.Response;
251
+ }
252
+
253
+ export namespace Result {
254
+ export interface Request {
255
+ headers: { [key: string]: string };
256
+
257
+ method: string;
258
+
259
+ /**
260
+ * Resource type for network capture filtering
261
+ */
262
+ resource_type:
263
+ | 'document'
264
+ | 'stylesheet'
265
+ | 'image'
266
+ | 'media'
267
+ | 'font'
268
+ | 'script'
269
+ | 'texttrack'
270
+ | 'xhr'
271
+ | 'fetch'
272
+ | 'prefetch'
273
+ | 'eventsource'
274
+ | 'websocket'
275
+ | 'manifest'
276
+ | 'signedexchange'
277
+ | 'ping'
278
+ | 'cspviolationreport'
279
+ | 'preflight'
280
+ | 'other'
281
+ | 'fedcm';
282
+
283
+ url: string;
284
+
285
+ body?: string;
286
+ }
287
+
288
+ export interface Response {
289
+ body: string;
290
+
291
+ headers: { [key: string]: string };
292
+
293
+ serialization: 'none' | 'base64';
294
+
295
+ status: number;
296
+
297
+ status_text: string;
298
+ }
299
+ }
300
+ }
301
+
302
+ export interface ParsingSuccessResult {
303
+ entities: { [key: string]: unknown };
304
+
305
+ status: 'success';
306
+ }
307
+
308
+ export interface ParsingErrorResult {
309
+ error: string;
310
+
311
+ status: 'error';
312
+ }
313
+
314
+ export interface Redirect {
315
+ status_code: number;
316
+
317
+ url: string;
318
+ }
319
+ }
320
+
321
+ export interface Metadata {
322
+ /**
323
+ * The name of the agent used for the query.
324
+ */
325
+ agent?: string;
326
+
327
+ /**
328
+ * The driver used for the task.
329
+ */
330
+ driver?: string;
331
+
332
+ /**
333
+ * The localization identifier for the query.
334
+ */
335
+ localization_id?: string;
336
+
337
+ /**
338
+ * The duration in milliseconds of the query processing.
339
+ */
340
+ query_duration?: number;
341
+
342
+ /**
343
+ * The time when the query was received.
344
+ */
345
+ query_time?: string;
346
+
347
+ /**
348
+ * Additional response parameters.
349
+ */
350
+ response_parameters?: unknown;
351
+
352
+ /**
353
+ * A tag associated with the query.
354
+ */
355
+ tag?: string;
356
+ }
357
+
358
+ export interface Debug {
359
+ /**
360
+ * Performance metrics collected during the task.
361
+ */
362
+ performance_metrics?: { [key: string]: number };
363
+
364
+ /**
365
+ * Total bytes used by the proxy during the task.
366
+ */
367
+ proxy_total_bytes_usage?: number;
368
+
369
+ /**
370
+ * The transformed output after applying any transformations.
371
+ */
372
+ transformed_output?: unknown;
373
+
374
+ /**
375
+ * The userbrowser instance using during the task.
376
+ */
377
+ userbrowser?: unknown;
378
+ }
379
+
380
+ export interface NextPageParams {
381
+ next_page_params: { [key: string]: unknown };
382
+ }
383
+
384
+ export interface UnionMember1 {
385
+ next_page_params: { [key: string]: unknown };
386
+ }
387
+ }
388
+
389
+ export interface FastSerpRunParams {
390
+ /**
391
+ * The search engine to query.
392
+ */
393
+ search_engine:
394
+ | 'google_search'
395
+ | 'google_sge'
396
+ | 'google_aio'
397
+ | 'google_maps_search'
398
+ | 'google_maps_reviews'
399
+ | 'google_maps_place'
400
+ | 'google_news'
401
+ | 'google_images'
402
+ | 'bing_search'
403
+ | 'yandex_search';
404
+
405
+ /**
406
+ * ISO Alpha-2 country code used to access the target search engine (e.g. US, DE,
407
+ * GB).
408
+ */
409
+ country?: string;
410
+
411
+ /**
412
+ * Device type used for the search request.
413
+ */
414
+ device?: 'desktop' | 'mobile';
415
+
416
+ /**
417
+ * Top-level domain for the search engine (e.g. "com", "co.uk", "de").
418
+ */
419
+ domain?: string;
420
+
421
+ /**
422
+ * Locale used for the search request.
423
+ */
424
+ locale?: string;
425
+
426
+ /**
427
+ * Geo-location for the search (canonical Google location name).
428
+ */
429
+ location?: string;
430
+
431
+ /**
432
+ * Number of results to return (1–100).
433
+ */
434
+ num_results?: number;
435
+
436
+ /**
437
+ * The result page number for pagination.
438
+ */
439
+ page?: number;
440
+
441
+ /**
442
+ * When true, the SERP response is parsed into structured JSON.
443
+ */
444
+ parse?: boolean;
445
+
446
+ /**
447
+ * The search keyword or phrase to query.
448
+ */
449
+ query?: string;
450
+
451
+ /**
452
+ * Whether to render the page in a browser before extracting.
453
+ */
454
+ render?: boolean;
455
+
456
+ /**
457
+ * When true, disables Google result filtering (filter=0) so omitted/duplicate and
458
+ * highly similar pages are also returned. Applies to Google search engines.
459
+ */
460
+ show_hidden_results?: boolean;
461
+ }
462
+
463
+ export declare namespace FastSerp {
464
+ export { type FastSerpRunResponse as FastSerpRunResponse, type FastSerpRunParams as FastSerpRunParams };
465
+ }
@@ -31,7 +31,7 @@ export {
31
31
  type DomainKnowledgeGetDriverResponse,
32
32
  type DomainKnowledgeGetDriverParams,
33
33
  } from './domain-knowledge';
34
- export { FastSerp } from './fast-serp';
34
+ export { FastSerp, type FastSerpRunResponse, type FastSerpRunParams } from './fast-serp';
35
35
  export {
36
36
  Jobs,
37
37
  type JobCreateResponse,
@@ -13,6 +13,8 @@ export class Jobs extends APIResource {
13
13
 
14
14
  /**
15
15
  * Create Job
16
+ *
17
+ * @deprecated
16
18
  */
17
19
  create(body: JobCreateParams, options?: RequestOptions): APIPromise<JobCreateResponse> {
18
20
  return this._client.post('/v1/jobs', { body, ...options });
@@ -20,6 +22,8 @@ export class Jobs extends APIResource {
20
22
 
21
23
  /**
22
24
  * Update Job
25
+ *
26
+ * @deprecated
23
27
  */
24
28
  update(jobID: string, body: JobUpdateParams, options?: RequestOptions): APIPromise<JobUpdateResponse> {
25
29
  return this._client.patch(path`/v1/jobs/${jobID}`, { body, ...options });
@@ -27,6 +31,8 @@ export class Jobs extends APIResource {
27
31
 
28
32
  /**
29
33
  * List Jobs
34
+ *
35
+ * @deprecated
30
36
  */
31
37
  list(query: JobListParams | null | undefined = {}, options?: RequestOptions): APIPromise<JobListResponse> {
32
38
  return this._client.get('/v1/jobs', { query, ...options });
@@ -34,6 +40,8 @@ export class Jobs extends APIResource {
34
40
 
35
41
  /**
36
42
  * Delete Job
43
+ *
44
+ * @deprecated
37
45
  */
38
46
  delete(jobID: string, options?: RequestOptions): APIPromise<void> {
39
47
  return this._client.delete(path`/v1/jobs/${jobID}`, {
@@ -44,6 +52,8 @@ export class Jobs extends APIResource {
44
52
 
45
53
  /**
46
54
  * Get Job
55
+ *
56
+ * @deprecated
47
57
  */
48
58
  get(jobID: string, options?: RequestOptions): APIPromise<JobGetResponse> {
49
59
  return this._client.get(path`/v1/jobs/${jobID}`, options);
@@ -51,6 +61,8 @@ export class Jobs extends APIResource {
51
61
 
52
62
  /**
53
63
  * Trigger Run
64
+ *
65
+ * @deprecated
54
66
  */
55
67
  run(jobID: string, options?: RequestOptions): APIPromise<JobRunResponse> {
56
68
  return this._client.post(path`/v1/jobs/${jobID}/runs`, options);
@@ -81,6 +93,9 @@ export interface JobCreateResponse {
81
93
  */
82
94
  created_at?: string | null;
83
95
 
96
+ /**
97
+ * Free-text description of the job.
98
+ */
84
99
  description?: string | null;
85
100
 
86
101
  /**
@@ -202,6 +217,9 @@ export interface JobUpdateResponse {
202
217
  */
203
218
  created_at?: string | null;
204
219
 
220
+ /**
221
+ * Free-text description of the job.
222
+ */
205
223
  description?: string | null;
206
224
 
207
225
  /**
@@ -309,19 +327,19 @@ export interface JobListResponse {
309
327
  items: Array<JobListResponse.Item>;
310
328
 
311
329
  /**
312
- * Current page number.
330
+ * Total number of jobs matching the query.
313
331
  */
314
- page: number;
332
+ total: number;
315
333
 
316
334
  /**
317
- * Number of items per page.
335
+ * Current page number.
318
336
  */
319
- per_page: number;
337
+ page?: number;
320
338
 
321
339
  /**
322
- * Total number of jobs matching the query.
340
+ * Number of items per page.
323
341
  */
324
- total: number;
342
+ per_page?: number;
325
343
  }
326
344
 
327
345
  export namespace JobListResponse {
@@ -349,6 +367,9 @@ export namespace JobListResponse {
349
367
  */
350
368
  created_at?: string | null;
351
369
 
370
+ /**
371
+ * Free-text description of the job.
372
+ */
352
373
  description?: string | null;
353
374
 
354
375
  /**
@@ -479,6 +500,9 @@ export interface JobGetResponse {
479
500
  */
480
501
  created_at?: string | null;
481
502
 
503
+ /**
504
+ * Free-text description of the job.
505
+ */
482
506
  description?: string | null;
483
507
 
484
508
  /**
@@ -637,6 +661,9 @@ export interface JobCreateParams {
637
661
  */
638
662
  name: string;
639
663
 
664
+ /**
665
+ * Free-text description of the job.
666
+ */
640
667
  description?: string | null;
641
668
 
642
669
  /**
@@ -720,6 +747,9 @@ export namespace JobCreateParams {
720
747
  }
721
748
 
722
749
  export interface JobUpdateParams {
750
+ /**
751
+ * New description.
752
+ */
723
753
  description?: string | null;
724
754
 
725
755
  /**
@@ -8,6 +8,8 @@ import { path } from '../../../internal/utils/path';
8
8
  export class Artifacts extends APIResource {
9
9
  /**
10
10
  * List Run Artifacts
11
+ *
12
+ * @deprecated
11
13
  */
12
14
  list(runID: string, options?: RequestOptions): APIPromise<ArtifactListResponse> {
13
15
  return this._client.get(path`/v1/jobs/runs/${runID}/artifacts`, options);
@@ -15,9 +17,11 @@ export class Artifacts extends APIResource {
15
17
 
16
18
  /**
17
19
  * Get Run Artifact Download URL
20
+ *
21
+ * @deprecated
18
22
  */
19
23
  downloadURL(
20
- artifactID: string,
24
+ artifactID: number,
21
25
  params: ArtifactDownloadURLParams,
22
26
  options?: RequestOptions,
23
27
  ): APIPromise<ArtifactDownloadURLResponse> {
@@ -27,9 +31,11 @@ export class Artifacts extends APIResource {
27
31
 
28
32
  /**
29
33
  * Get Run Artifact
34
+ *
35
+ * @deprecated
30
36
  */
31
37
  get(
32
- artifactID: string,
38
+ artifactID: number,
33
39
  params: ArtifactGetParams,
34
40
  options?: RequestOptions,
35
41
  ): APIPromise<ArtifactGetResponse> {
@@ -39,9 +45,11 @@ export class Artifacts extends APIResource {
39
45
 
40
46
  /**
41
47
  * Preview Run Artifact
48
+ *
49
+ * @deprecated
42
50
  */
43
51
  preview(
44
- artifactID: string,
52
+ artifactID: number,
45
53
  params: ArtifactPreviewParams,
46
54
  options?: RequestOptions,
47
55
  ): APIPromise<ArtifactPreviewResponse> {
@@ -63,11 +71,6 @@ export interface ArtifactListResponse {
63
71
  export namespace ArtifactListResponse {
64
72
  /**
65
73
  * A file produced by a run.
66
- *
67
- * Intentional subset of the bakery Artifact: `data_format` and `s3_path` are
68
- * hidden from SDK consumers — internal storage details, not part of the public
69
- * contract. Use the download-url endpoint to fetch the file. Bakery emits `id` as
70
- * an int (crawlit native); the SDK contract is a string.
71
74
  */
72
75
  export interface Item {
73
76
  /**
@@ -80,6 +83,9 @@ export namespace ArtifactListResponse {
80
83
  */
81
84
  created_at: string;
82
85
 
86
+ /**
87
+ * Human-readable artifact description.
88
+ */
83
89
  description: string;
84
90
 
85
91
  /**
@@ -106,11 +112,6 @@ export interface ArtifactDownloadURLResponse {
106
112
 
107
113
  /**
108
114
  * A file produced by a run.
109
- *
110
- * Intentional subset of the bakery Artifact: `data_format` and `s3_path` are
111
- * hidden from SDK consumers — internal storage details, not part of the public
112
- * contract. Use the download-url endpoint to fetch the file. Bakery emits `id` as
113
- * an int (crawlit native); the SDK contract is a string.
114
115
  */
115
116
  export interface ArtifactGetResponse {
116
117
  /**
@@ -123,6 +124,9 @@ export interface ArtifactGetResponse {
123
124
  */
124
125
  created_at: string;
125
126
 
127
+ /**
128
+ * Human-readable artifact description.
129
+ */
126
130
  description: string;
127
131
 
128
132
  /**