@ai-matrx/api 0.0.0-stage → 0.1.1

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 (146) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/LICENSE +21 -0
  3. package/README.md +22 -2
  4. package/dist/account.cjs +670 -0
  5. package/dist/account.d.cts +3246 -0
  6. package/dist/account.d.ts +3246 -0
  7. package/dist/account.js +558 -0
  8. package/dist/agents.cjs +598 -0
  9. package/dist/agents.d.cts +3417 -0
  10. package/dist/agents.d.ts +3417 -0
  11. package/dist/agents.js +497 -0
  12. package/dist/ai.cjs +109 -0
  13. package/dist/ai.d.cts +493 -0
  14. package/dist/ai.d.ts +493 -0
  15. package/dist/ai.js +91 -0
  16. package/dist/apps.cjs +394 -0
  17. package/dist/apps.d.cts +1094 -0
  18. package/dist/apps.d.ts +1094 -0
  19. package/dist/apps.js +328 -0
  20. package/dist/architecture.cjs +1223 -0
  21. package/dist/architecture.d.cts +4701 -0
  22. package/dist/architecture.d.ts +4701 -0
  23. package/dist/architecture.js +1016 -0
  24. package/dist/audio.cjs +226 -0
  25. package/dist/audio.d.cts +723 -0
  26. package/dist/audio.d.ts +723 -0
  27. package/dist/audio.js +188 -0
  28. package/dist/chat.cjs +538 -0
  29. package/dist/chat.d.cts +2251 -0
  30. package/dist/chat.d.ts +2251 -0
  31. package/dist/chat.js +447 -0
  32. package/dist/chunk-2SXAAKGV.cjs +279 -0
  33. package/dist/chunk-5WJLKYH6.cjs +48 -0
  34. package/dist/chunk-FNIYADWI.cjs +59 -0
  35. package/dist/chunk-HER22VVH.cjs +1047 -0
  36. package/dist/chunk-KIEAFMKB.js +264 -0
  37. package/dist/chunk-TSHL7Z53.js +1012 -0
  38. package/dist/chunk-VTZKJMSY.js +43 -0
  39. package/dist/chunk-YTEOFGFC.js +57 -0
  40. package/dist/code.cjs +561 -0
  41. package/dist/code.d.cts +1976 -0
  42. package/dist/code.d.ts +1976 -0
  43. package/dist/code.js +467 -0
  44. package/dist/commerce.cjs +22 -0
  45. package/dist/commerce.d.cts +45 -0
  46. package/dist/commerce.d.ts +45 -0
  47. package/dist/commerce.js +18 -0
  48. package/dist/communications.cjs +215 -0
  49. package/dist/communications.d.cts +948 -0
  50. package/dist/communications.d.ts +948 -0
  51. package/dist/communications.js +179 -0
  52. package/dist/computer.cjs +330 -0
  53. package/dist/computer.d.cts +733 -0
  54. package/dist/computer.d.ts +733 -0
  55. package/dist/computer.js +275 -0
  56. package/dist/content.cjs +425 -0
  57. package/dist/content.d.cts +1796 -0
  58. package/dist/content.d.ts +1796 -0
  59. package/dist/content.js +354 -0
  60. package/dist/credentials.cjs +22 -0
  61. package/dist/credentials.d.cts +82 -0
  62. package/dist/credentials.d.ts +82 -0
  63. package/dist/credentials.js +1 -0
  64. package/dist/crm.cjs +271 -0
  65. package/dist/crm.d.cts +1731 -0
  66. package/dist/crm.d.ts +1731 -0
  67. package/dist/crm.js +226 -0
  68. package/dist/data.cjs +382 -0
  69. package/dist/data.d.cts +1860 -0
  70. package/dist/data.d.ts +1860 -0
  71. package/dist/data.js +318 -0
  72. package/dist/education.cjs +28 -0
  73. package/dist/education.d.cts +73 -0
  74. package/dist/education.d.ts +73 -0
  75. package/dist/education.js +23 -0
  76. package/dist/files.cjs +1330 -0
  77. package/dist/files.d.cts +4956 -0
  78. package/dist/files.d.ts +4956 -0
  79. package/dist/files.js +1104 -0
  80. package/dist/human-resources.cjs +178 -0
  81. package/dist/human-resources.d.cts +1208 -0
  82. package/dist/human-resources.d.ts +1208 -0
  83. package/dist/human-resources.js +148 -0
  84. package/dist/index-C2E-Cp19.d.ts +385 -0
  85. package/dist/index-wC2vtb70.d.cts +385 -0
  86. package/dist/index.cjs +2016 -0
  87. package/dist/index.d.cts +2069 -0
  88. package/dist/index.d.ts +2069 -0
  89. package/dist/index.js +1746 -0
  90. package/dist/integrations.cjs +5116 -0
  91. package/dist/integrations.d.cts +19213 -0
  92. package/dist/integrations.d.ts +19213 -0
  93. package/dist/integrations.js +4263 -0
  94. package/dist/intelligence.cjs +1305 -0
  95. package/dist/intelligence.d.cts +4658 -0
  96. package/dist/intelligence.d.ts +4658 -0
  97. package/dist/intelligence.js +1196 -0
  98. package/dist/knowledge.cjs +1113 -0
  99. package/dist/knowledge.d.cts +5427 -0
  100. package/dist/knowledge.d.ts +5427 -0
  101. package/dist/knowledge.js +921 -0
  102. package/dist/legal.cjs +225 -0
  103. package/dist/legal.d.cts +1038 -0
  104. package/dist/legal.d.ts +1038 -0
  105. package/dist/legal.js +187 -0
  106. package/dist/marketing.cjs +1155 -0
  107. package/dist/marketing.d.cts +7741 -0
  108. package/dist/marketing.d.ts +7741 -0
  109. package/dist/marketing.js +951 -0
  110. package/dist/masterwork.cjs +283 -0
  111. package/dist/masterwork.d.cts +1938 -0
  112. package/dist/masterwork.d.ts +1938 -0
  113. package/dist/masterwork.js +231 -0
  114. package/dist/media.cjs +610 -0
  115. package/dist/media.d.cts +2270 -0
  116. package/dist/media.d.ts +2270 -0
  117. package/dist/media.js +507 -0
  118. package/dist/net.cjs +67 -0
  119. package/dist/net.d.cts +204 -0
  120. package/dist/net.d.ts +204 -0
  121. package/dist/net.js +2 -0
  122. package/dist/platform.cjs +150 -0
  123. package/dist/platform.d.cts +572 -0
  124. package/dist/platform.d.ts +572 -0
  125. package/dist/platform.js +125 -0
  126. package/dist/publish.cjs +248 -0
  127. package/dist/publish.d.cts +1431 -0
  128. package/dist/publish.d.ts +1431 -0
  129. package/dist/publish.js +206 -0
  130. package/dist/schemas.cjs +2 -0
  131. package/dist/schemas.d.cts +1353 -0
  132. package/dist/schemas.d.ts +1353 -0
  133. package/dist/schemas.js +1 -0
  134. package/dist/stream.cjs +44 -0
  135. package/dist/stream.d.cts +2 -0
  136. package/dist/stream.d.ts +2 -0
  137. package/dist/stream.js +3 -0
  138. package/dist/web.cjs +1045 -0
  139. package/dist/web.d.cts +4186 -0
  140. package/dist/web.d.ts +4186 -0
  141. package/dist/web.js +867 -0
  142. package/dist/workflows.cjs +825 -0
  143. package/dist/workflows.d.cts +4699 -0
  144. package/dist/workflows.d.ts +4699 -0
  145. package/dist/workflows.js +686 -0
  146. package/package.json +419 -4
package/dist/web.d.cts ADDED
@@ -0,0 +1,4186 @@
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-wC2vtb70.cjs';
2
+ import { JsonValue } from './schemas.cjs';
3
+ import './credentials.cjs';
4
+
5
+ /**
6
+ * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
+ * CONTRACT_SHA256 50a790edb39e682b46e0fa9e674faf5ce2a0ba7de2cd01930a497fca4c47844a
8
+ */
9
+
10
+ /** ActionEventFacts */
11
+ type ActionEventFacts = {
12
+ actor: "agent" | "human" | "system";
13
+ action_kind: string;
14
+ target_description?: string | null;
15
+ safe_url?: string | null;
16
+ origin_host?: string | null;
17
+ started_at: string;
18
+ ended_at: string;
19
+ duration_ms: number;
20
+ result_class: "ok" | "not_found" | "timeout" | "navigation" | "browser" | "validation" | "blocked" | "conflict";
21
+ error_code?: string | null;
22
+ capture_suppressed_reason?: string | null;
23
+ chromium_version: string;
24
+ worker_version: string;
25
+ adapter_version?: string | null;
26
+ };
27
+ /** ActivatePageCommand */
28
+ type ActivatePageCommand = {
29
+ command?: "activate_page";
30
+ target_page_id: string;
31
+ };
32
+ /** ActivatePageResult */
33
+ type ActivatePageResult = {
34
+ success: boolean;
35
+ session_id?: string | null;
36
+ error_message?: string | null;
37
+ error_type?: string | null;
38
+ active_page_id?: string | null;
39
+ url?: string | null;
40
+ title?: string | null;
41
+ };
42
+ /** AuthenticatorFillRequest */
43
+ type AuthenticatorFillRequest = {
44
+ item_id: string;
45
+ page_url: string;
46
+ code_selector: string;
47
+ submit_selector?: string | null;
48
+ };
49
+ /** BatchScrapeRequest */
50
+ type BatchScrapeRequest = {
51
+ urls: string[];
52
+ use_proxy?: boolean;
53
+ fast?: boolean;
54
+ keep?: boolean;
55
+ attach_to?: {
56
+ [key: string]: unknown;
57
+ }[];
58
+ };
59
+ /** BatchScrapeResponse */
60
+ type BatchScrapeResponse = {
61
+ status: string;
62
+ execution_time_ms: number;
63
+ results: {
64
+ [key: string]: unknown;
65
+ }[];
66
+ };
67
+ /** BootstrapRequest */
68
+ type BootstrapRequest = {
69
+ run_id: string;
70
+ profile_id: string;
71
+ fencing_token: string;
72
+ fencing_revision: number;
73
+ sequence?: number | null;
74
+ idempotency_key?: string | null;
75
+ issued_at: string;
76
+ deadline_ms?: number;
77
+ mount: ProfileMount;
78
+ policy: LaunchPolicy;
79
+ activation_key: string;
80
+ initial_fencing_token: string;
81
+ sequence_base: number;
82
+ callback_url: string;
83
+ callback_token: string;
84
+ display?: DisplayConfig | null;
85
+ rtc_config?: RtcConfig | null;
86
+ };
87
+ /** BootstrapResponse */
88
+ type BootstrapResponse = {
89
+ ok: boolean;
90
+ error?: WorkerError | null;
91
+ run_id: string;
92
+ profile_id: string;
93
+ worker_id: string;
94
+ controller: ControllerState;
95
+ fencing_revision: number;
96
+ sequence_applied?: number | null;
97
+ replayed?: boolean;
98
+ queue_depth: number;
99
+ queue_state: "open" | "draining" | "closed";
100
+ run_mode: "handoff_capable" | "automation_only";
101
+ worker_health: "starting" | "healthy" | "degraded" | "browser_crashed" | "stopping" | "stopped";
102
+ chromium_version: string;
103
+ worker_version: string;
104
+ observed_at: string;
105
+ accepted: boolean;
106
+ host_lock_acquired: boolean;
107
+ display_ref?: string | null;
108
+ page_inventory?: PageInventory | null;
109
+ volatile_state_preserved?: boolean;
110
+ egress_guard_installed?: boolean;
111
+ };
112
+ /** BroadcastTestRequest */
113
+ type BroadcastTestRequest = {
114
+ user_id: string;
115
+ type?: string;
116
+ payload?: {
117
+ [key: string]: unknown;
118
+ };
119
+ };
120
+ /** One-shot browser-rendered fetch of a single URL. */
121
+ type BrowserFetchRequest = {
122
+ url: string;
123
+ timeout_ms?: number;
124
+ use_proxy?: boolean;
125
+ };
126
+ /** Typed OUT shape for /browser-fetch — one model, never a hand-built dict. */
127
+ type BrowserFetchResult = {
128
+ success: boolean;
129
+ status_code?: number;
130
+ final_url: string;
131
+ title?: string | null;
132
+ content_type?: string;
133
+ html?: string;
134
+ error?: string | null;
135
+ truncated?: boolean;
136
+ };
137
+ /** One-shot render CHECK of a single URL — errors, DOM probes, screenshots. */
138
+ type BrowserInspectRequest = {
139
+ url: string;
140
+ timeout_ms?: number;
141
+ kinds?: string[];
142
+ expect_text?: string | null;
143
+ expect_selector?: string | null;
144
+ user_agent_suffix?: string | null;
145
+ use_proxy?: boolean;
146
+ exact?: ExactCaptureRequest | null;
147
+ };
148
+ /** Typed OUT shape for /browser-inspect — one model, never a hand-built dict. */
149
+ type BrowserInspectResult = {
150
+ success: boolean;
151
+ http_status?: number | null;
152
+ final_url: string;
153
+ title?: string;
154
+ console_errors?: string[];
155
+ failed_requests?: string[];
156
+ expect_text_found?: boolean | null;
157
+ expect_selector_found?: boolean | null;
158
+ screenshots?: InspectedScreenshot[];
159
+ screenshot_failures?: ScreenshotFailure[];
160
+ error?: string | null;
161
+ retryable?: boolean;
162
+ };
163
+ /** What the person did with the D-11 credential-capture card. */
164
+ type CaptureOutcomeRequest = {
165
+ handoff_id: string;
166
+ status: "captured" | "cancelled" | "expired";
167
+ credential_item_id?: string | null;
168
+ };
169
+ /** CaptureOutcomeResponse */
170
+ type CaptureOutcomeResponse = {
171
+ handoff_id: string;
172
+ status: string;
173
+ };
174
+ /** CaptureRequest */
175
+ type CaptureRequest = {
176
+ run_id: string;
177
+ profile_id: string;
178
+ fencing_token: string;
179
+ fencing_revision: number;
180
+ sequence?: number | null;
181
+ idempotency_key?: string | null;
182
+ issued_at: string;
183
+ deadline_ms?: number;
184
+ kind: "screenshot" | "trace_start" | "trace_stop" | "video_start" | "video_stop";
185
+ reason: "run_start" | "run_stop" | "pre_navigation" | "post_navigation" | "pre_consequential_action" | "post_consequential_action" | "error" | "timeout" | "human_boundary_handoff_requested" | "human_boundary_claim" | "human_boundary_return" | "human_boundary_resume" | "post_login_verified" | "operator";
186
+ page_id?: string | null;
187
+ full_page?: boolean;
188
+ selector?: string | null;
189
+ mask_selectors?: string[];
190
+ redaction_policy_version: string;
191
+ upload_target?: PresignedUpload | null;
192
+ return_base64?: boolean;
193
+ };
194
+ /** CaptureResponse */
195
+ type CaptureResponse = {
196
+ ok: boolean;
197
+ error?: WorkerError | null;
198
+ run_id: string;
199
+ profile_id: string;
200
+ worker_id: string;
201
+ controller: ControllerState;
202
+ fencing_revision: number;
203
+ sequence_applied?: number | null;
204
+ replayed?: boolean;
205
+ queue_depth: number;
206
+ queue_state: "open" | "draining" | "closed";
207
+ run_mode: "handoff_capable" | "automation_only";
208
+ worker_health: "starting" | "healthy" | "degraded" | "browser_crashed" | "stopping" | "stopped";
209
+ chromium_version: string;
210
+ worker_version: string;
211
+ observed_at: string;
212
+ captured?: boolean;
213
+ suppressed_reason?: string | null;
214
+ artifact?: CapturedArtifact | null;
215
+ };
216
+ /** CapturedArtifact */
217
+ type CapturedArtifact = {
218
+ kind: "screenshot" | "trace" | "video";
219
+ media_type: string;
220
+ byte_count: number;
221
+ content_hash: string;
222
+ width?: number | null;
223
+ height?: number | null;
224
+ uploaded?: boolean;
225
+ image_base64?: string | null;
226
+ masked_selector_count?: number;
227
+ redaction_policy_version: string;
228
+ };
229
+ /** One anchor on the captured page pointing at the requested target. */
230
+ type CapturedLink = {
231
+ target_url: string;
232
+ anchor_text?: string;
233
+ text_source?: "anchor" | "image_alt" | "";
234
+ rel?: string | null;
235
+ nofollow?: boolean;
236
+ link_type?: "internal" | "subdomain" | "external";
237
+ region?: string;
238
+ };
239
+ /** A page present in both runs whose observed state differs. */
240
+ type ChangedPage = {
241
+ page_id: string;
242
+ url: string;
243
+ changed_fields?: string[];
244
+ http_status_before?: number | null;
245
+ http_status_after?: number | null;
246
+ title_before?: string | null;
247
+ title_after?: string | null;
248
+ meta_description_before?: string | null;
249
+ meta_description_after?: string | null;
250
+ content_hash_before?: string | null;
251
+ content_hash_after?: string | null;
252
+ word_count_before?: number | null;
253
+ word_count_after?: number | null;
254
+ };
255
+ /** CheckpointManifestFacts */
256
+ type CheckpointManifestFacts = {
257
+ checkpoint_id: string;
258
+ profile_format_version: number;
259
+ archive_format_version: number;
260
+ chromium_version: string;
261
+ key_version: string;
262
+ plaintext_hash: string;
263
+ ciphertext_hash: string;
264
+ byte_count: number;
265
+ };
266
+ /** CheckpointRequest */
267
+ type CheckpointRequest = {
268
+ run_id: string;
269
+ profile_id: string;
270
+ fencing_token: string;
271
+ fencing_revision: number;
272
+ sequence?: number | null;
273
+ idempotency_key?: string | null;
274
+ issued_at: string;
275
+ deadline_ms?: number;
276
+ checkpoint_id: string;
277
+ mode: "close_and_archive" | "archive_only_after_close";
278
+ reason: "stop" | "boundary" | "post_login" | "pre_move" | "operator" | "scheduled";
279
+ dek_plaintext_b64: string;
280
+ dek_wrapped_b64: string;
281
+ key_version: string;
282
+ nonce_b64: string;
283
+ archive_format_version: number;
284
+ upload_target: PresignedUpload;
285
+ drain_timeout_ms?: number;
286
+ zeroize_after?: boolean;
287
+ };
288
+ /** CheckpointResponse */
289
+ type CheckpointResponse = {
290
+ ok: boolean;
291
+ error?: WorkerError | null;
292
+ run_id: string;
293
+ profile_id: string;
294
+ worker_id: string;
295
+ controller: ControllerState;
296
+ fencing_revision: number;
297
+ sequence_applied?: number | null;
298
+ replayed?: boolean;
299
+ queue_depth: number;
300
+ queue_state: "open" | "draining" | "closed";
301
+ run_mode: "handoff_capable" | "automation_only";
302
+ worker_health: "starting" | "healthy" | "degraded" | "browser_crashed" | "stopping" | "stopped";
303
+ chromium_version: string;
304
+ worker_version: string;
305
+ observed_at: string;
306
+ checkpoint_id: string;
307
+ chromium_exited_cleanly?: boolean;
308
+ plaintext_hash?: string;
309
+ ciphertext_hash?: string;
310
+ byte_count?: number;
311
+ uploaded?: boolean;
312
+ manifest?: CheckpointManifestFacts | null;
313
+ zeroized?: boolean;
314
+ context_relaunched?: boolean;
315
+ };
316
+ /** Ephemeral material needed to restore one encrypted profile archive. */
317
+ type CheckpointRestore = {
318
+ download_url: string;
319
+ headers?: {
320
+ [key: string]: string;
321
+ };
322
+ expires_at: string;
323
+ dek_plaintext_b64: string;
324
+ nonce_b64: string;
325
+ ciphertext_hash: string;
326
+ plaintext_hash: string;
327
+ };
328
+ /** ClaimRequest */
329
+ type ClaimRequest = {
330
+ ticket: string;
331
+ };
332
+ /** ClickCommand */
333
+ type ClickCommand = {
334
+ command?: "click";
335
+ selector: string;
336
+ wait_after_ms?: number;
337
+ timeout_ms?: number;
338
+ };
339
+ /** ClickRequest */
340
+ type ClickRequest = {
341
+ /** Session id returned by /sessions or navigate */
342
+ session_id: string;
343
+ selector: string;
344
+ wait_after_ms?: number;
345
+ timeout_ms?: number;
346
+ };
347
+ /** ClickResult */
348
+ type ClickResult = {
349
+ success: boolean;
350
+ session_id?: string | null;
351
+ error_message?: string | null;
352
+ error_type?: string | null;
353
+ truncated?: boolean;
354
+ total_chars?: number;
355
+ selector?: string | null;
356
+ url?: string | null;
357
+ title?: string | null;
358
+ text_preview?: string | null;
359
+ };
360
+ /** ClosePageCommand */
361
+ type ClosePageCommand = {
362
+ command?: "close_page";
363
+ target_page_id: string;
364
+ };
365
+ /** ClosePageResult */
366
+ type ClosePageResult = {
367
+ success: boolean;
368
+ session_id?: string | null;
369
+ error_message?: string | null;
370
+ error_type?: string | null;
371
+ closed?: boolean;
372
+ active_page_id?: string | null;
373
+ };
374
+ /** How this command reached the internet — announced, never hidden. */
375
+ type CommandEgress = {
376
+ kind?: "residential";
377
+ device_name: string;
378
+ device_id?: string | null;
379
+ note?: string | null;
380
+ };
381
+ /** Why the blocked page could NOT be retried through a person's computer. */
382
+ type CommandEgressUnavailable = {
383
+ reason: string;
384
+ message: string;
385
+ };
386
+ /** CommandRequest */
387
+ type CommandRequest = {
388
+ run_id: string;
389
+ profile_id: string;
390
+ fencing_token: string;
391
+ fencing_revision: number;
392
+ sequence?: number | null;
393
+ idempotency_key?: string | null;
394
+ issued_at: string;
395
+ deadline_ms?: number;
396
+ origin: "agent" | "system" | "human_boundary";
397
+ execution_ref?: string | null;
398
+ tool_call_ref?: string | null;
399
+ page_id?: string | null;
400
+ command: NavigateCommand | ClickCommand | FillCommand | TypeTextCommand | SelectOptionCommand | WaitForCommand | GetElementCommand | QuerySelectorsCommand | EvalJsCommand | ScrollCommand | GetHtmlCommand | GetTextCommand | ActivatePageCommand | ClosePageCommand | HandleDialogCommand | WaitForDownloadCommand;
401
+ };
402
+ /** CommandResponse */
403
+ type CommandResponse = {
404
+ ok: boolean;
405
+ error?: WorkerError | null;
406
+ run_id: string;
407
+ profile_id: string;
408
+ worker_id: string;
409
+ controller: ControllerState;
410
+ fencing_revision: number;
411
+ sequence_applied?: number | null;
412
+ replayed?: boolean;
413
+ queue_depth: number;
414
+ queue_state: "open" | "draining" | "closed";
415
+ run_mode: "handoff_capable" | "automation_only";
416
+ worker_health: "starting" | "healthy" | "degraded" | "browser_crashed" | "stopping" | "stopped";
417
+ chromium_version: string;
418
+ worker_version: string;
419
+ observed_at: string;
420
+ result?: NavigateResult | ClickResult | FillResult | matrx_scraper__ai_browser__actions__TypeResult | SelectOptionResult | WaitForResult | GetElementResult | QuerySelectorsResult | EvalJsResult | ScrollResult | GetHtmlResult | GetTextResult | ActivatePageResult | ClosePageResult | HandleDialogResult | DownloadResult | null;
421
+ active_page_id?: string | null;
422
+ page_inventory_revision?: number;
423
+ human_required?: HumanRequiredSignal | null;
424
+ event_facts?: ActionEventFacts | null;
425
+ egress?: CommandEgress | null;
426
+ egress_unavailable?: CommandEgressUnavailable | null;
427
+ };
428
+ /** CommandResponse */
429
+ type CommandResponse_CloudBrowserWorker = {
430
+ ok: boolean;
431
+ error?: WorkerError | null;
432
+ run_id: string;
433
+ profile_id: string;
434
+ worker_id: string;
435
+ controller: ControllerState;
436
+ fencing_revision: number;
437
+ sequence_applied?: number | null;
438
+ replayed?: boolean;
439
+ queue_depth: number;
440
+ queue_state: "open" | "draining" | "closed";
441
+ run_mode: "handoff_capable" | "automation_only";
442
+ worker_health: "starting" | "healthy" | "degraded" | "browser_crashed" | "stopping" | "stopped";
443
+ chromium_version: string;
444
+ worker_version: string;
445
+ observed_at: string;
446
+ result?: NavigateResult | ClickResult | FillResult | TypeResult | SelectOptionResult | WaitForResult | GetElementResult | QuerySelectorsResult | EvalJsResult | ScrollResult | GetHtmlResult | GetTextResult | ActivatePageResult | ClosePageResult | HandleDialogResult | DownloadResult | null;
447
+ active_page_id?: string | null;
448
+ page_inventory_revision?: number;
449
+ human_required?: HumanRequiredSignal | null;
450
+ event_facts?: ActionEventFacts | null;
451
+ egress?: CommandEgress | null;
452
+ egress_unavailable?: CommandEgressUnavailable | null;
453
+ };
454
+ /** ContentSaveRequest */
455
+ type ContentSaveRequest = {
456
+ url: string;
457
+ page_name: string;
458
+ content: {
459
+ [key: string]: unknown;
460
+ };
461
+ content_type?: string;
462
+ char_count?: number;
463
+ origin_client?: "local" | "extension";
464
+ keep?: boolean;
465
+ attach_to?: {
466
+ [key: string]: unknown;
467
+ }[];
468
+ };
469
+ /** ContentSaveRequest */
470
+ type ContentSaveRequest_MatrxLocal = {
471
+ url: string;
472
+ content: {
473
+ [key: string]: unknown;
474
+ };
475
+ content_type?: string;
476
+ char_count?: number | null;
477
+ ttl_days?: number;
478
+ };
479
+ /** ContextBody */
480
+ type ContextBody = {
481
+ engine_boot_id: string;
482
+ expected_revision: number;
483
+ organization_id: string | null;
484
+ };
485
+ /** ControlBlock */
486
+ type ControlBlock = {
487
+ control_revision: number;
488
+ lease_expires_at: number;
489
+ renew_interval_seconds: number;
490
+ };
491
+ /** ControlRequestResponse */
492
+ type ControlRequestResponse = {
493
+ request_id: string;
494
+ state: string;
495
+ };
496
+ /** ControllerState */
497
+ type ControllerState = {
498
+ state: "provisioning" | "agent_control" | "handoff_requested" | "human_control" | "resume_pending" | "stopping" | "stopped" | "failed";
499
+ controller_kind: "agent" | "human" | "none";
500
+ controller_ref: string | null;
501
+ fencing_revision: number;
502
+ handoff_id: string | null;
503
+ since: string;
504
+ human_input_enabled: boolean;
505
+ };
506
+ /** ControllerTransitionRequest */
507
+ type ControllerTransitionRequest = {
508
+ run_id: string;
509
+ profile_id: string;
510
+ fencing_token: string;
511
+ fencing_revision: number;
512
+ sequence?: number | null;
513
+ idempotency_key?: string | null;
514
+ issued_at: string;
515
+ deadline_ms?: number;
516
+ to_state: "agent_control" | "handoff_requested" | "human_control" | "resume_pending";
517
+ reason: string;
518
+ new_fencing_token: string;
519
+ new_fencing_revision: number;
520
+ controller_ref?: string | null;
521
+ handoff_id?: string | null;
522
+ drain_timeout_ms?: number;
523
+ boundary_capture?: CaptureRequest | null;
524
+ enable_human_input: boolean;
525
+ rtc_config?: RtcConfig | null;
526
+ };
527
+ /** ControllerTransitionResponse */
528
+ type ControllerTransitionResponse = {
529
+ ok: boolean;
530
+ error?: WorkerError | null;
531
+ run_id: string;
532
+ profile_id: string;
533
+ worker_id: string;
534
+ controller: ControllerState;
535
+ fencing_revision: number;
536
+ sequence_applied?: number | null;
537
+ replayed?: boolean;
538
+ queue_depth: number;
539
+ queue_state: "open" | "draining" | "closed";
540
+ run_mode: "handoff_capable" | "automation_only";
541
+ worker_health: "starting" | "healthy" | "degraded" | "browser_crashed" | "stopping" | "stopped";
542
+ chromium_version: string;
543
+ worker_version: string;
544
+ observed_at: string;
545
+ from_state: "provisioning" | "agent_control" | "handoff_requested" | "human_control" | "resume_pending" | "stopping" | "stopped" | "failed";
546
+ to_state: "provisioning" | "agent_control" | "handoff_requested" | "human_control" | "resume_pending" | "stopping" | "stopped" | "failed";
547
+ queue_drained?: boolean;
548
+ drained_command_count?: number;
549
+ abandoned_command_count?: number;
550
+ human_input_enabled?: boolean;
551
+ boundary_artifact?: CapturedArtifact | null;
552
+ page_inventory?: PageInventory | null;
553
+ };
554
+ /** CrawlCancelResponse */
555
+ type CrawlCancelResponse = {
556
+ session_id: string;
557
+ accepted?: boolean;
558
+ action?: "cancel";
559
+ };
560
+ /** Page-level comparison of ``compare`` against ``base``. */
561
+ type CrawlDiff = {
562
+ site_id: string;
563
+ base?: CrawlSessionRef | null;
564
+ compare: CrawlSessionRef;
565
+ counts: CrawlDiffCounts;
566
+ added?: DiffPageRef[];
567
+ removed?: DiffPageRef[];
568
+ returned?: DiffPageRef[];
569
+ changed?: ChangedPage[];
570
+ truncated?: boolean;
571
+ computed_at: string;
572
+ };
573
+ /** Complete counts — never truncated, even when the arrays are. */
574
+ type CrawlDiffCounts = {
575
+ pages_added?: number;
576
+ pages_removed?: number;
577
+ pages_returned?: number;
578
+ pages_changed?: number;
579
+ pages_unchanged?: number;
580
+ pages_status_worse?: number;
581
+ pages_status_better?: number;
582
+ };
583
+ /** CrawlPresetDeleteResponse */
584
+ type CrawlPresetDeleteResponse = {
585
+ preset_id: string;
586
+ deleted?: boolean;
587
+ };
588
+ /** Presets for one site, most-recently-used first (never-used last). */
589
+ type CrawlPresetListResponse = {
590
+ site_id: string;
591
+ presets: CrawlPresetRecord[];
592
+ count: number;
593
+ default_preset_id?: string | null;
594
+ };
595
+ /** One stored preset as the browser sees it. */
596
+ type CrawlPresetRecord = {
597
+ id: string;
598
+ site_id: string;
599
+ name: string;
600
+ description?: string | null;
601
+ config?: CrawlStartRequest | null;
602
+ config_error?: string | null;
603
+ raw_config?: {
604
+ [key: string]: unknown;
605
+ } | null;
606
+ last_used_at?: string | null;
607
+ use_count?: number;
608
+ created_at?: string | null;
609
+ updated_at?: string | null;
610
+ };
611
+ /** Create-or-replace a preset by ``(site, name)``. */
612
+ type CrawlPresetSaveRequest = {
613
+ name: string;
614
+ description?: string | null;
615
+ config: CrawlStartRequest;
616
+ };
617
+ /** Identity of one crawl session inside a diff response. */
618
+ type CrawlSessionRef = {
619
+ session_id: string;
620
+ site_id: string;
621
+ status: string;
622
+ mode?: string | null;
623
+ started_at?: string | null;
624
+ finished_at?: string | null;
625
+ pages?: number | null;
626
+ pages_fetched?: number | null;
627
+ pages_failed?: number | null;
628
+ };
629
+ /** CrawlStartRequest */
630
+ type CrawlStartRequest = {
631
+ max_pages?: number;
632
+ max_depth?: number | null;
633
+ concurrency?: number;
634
+ follow_subdomains?: boolean;
635
+ respect_robots?: boolean;
636
+ seed_from_sitemap?: boolean;
637
+ include_patterns?: string[];
638
+ exclude_patterns?: string[];
639
+ politeness_delay_ms?: number;
640
+ render_mode?: string;
641
+ capture_screenshots?: boolean;
642
+ screenshot_kinds?: ("viewport_desktop" | "viewport_laptop" | "viewport_mobile" | "viewport_tablet" | "full_page" | "desktop_full" | "desktop_fold" | "laptop_full" | "tablet_full" | "mobile_full" | "mobile_fold")[];
643
+ seed_urls?: string[];
644
+ list_mode?: boolean;
645
+ host_rps?: number;
646
+ host_burst?: number;
647
+ user_agent?: string | null;
648
+ };
649
+ /** Start a NEW cloud browser (D-28, Arman 2026-08-23: *"they can have as many */
650
+ type CreateProfileRequest = {
651
+ display_name: string;
652
+ };
653
+ /** CreateSessionRequest */
654
+ type CreateSessionRequest_ScraperServer = {
655
+ user_agent?: string | null;
656
+ viewport?: {
657
+ [key: string]: number;
658
+ } | null;
659
+ proxy?: string | null;
660
+ headless?: boolean;
661
+ };
662
+ /** DesktopRpcRequest */
663
+ type DesktopRpcRequest = {
664
+ command: string;
665
+ args?: {
666
+ [key: string]: unknown;
667
+ } | null;
668
+ };
669
+ /** DesktopRpcResponse */
670
+ type DesktopRpcResponse = {
671
+ ok: boolean;
672
+ data?: unknown | null;
673
+ error?: string | null;
674
+ };
675
+ /** The helper's self-description. The desktop engine sends the same shape. */
676
+ type DeviceRegistration = {
677
+ instance_id: string;
678
+ instance_name: string;
679
+ platform?: string | null;
680
+ os_version?: string | null;
681
+ hostname?: string | null;
682
+ hardware_uuid?: string | null;
683
+ helper_version?: string | null;
684
+ client_kind?: string;
685
+ };
686
+ /** DialogRecord */
687
+ type DialogRecord = {
688
+ dialog_id: string;
689
+ page_id: string;
690
+ type: "alert" | "confirm" | "prompt" | "beforeunload";
691
+ opened_at: string;
692
+ message_present: boolean;
693
+ message?: string | null;
694
+ default_value_present: boolean;
695
+ handled: boolean;
696
+ };
697
+ /** A page that appeared, disappeared, or came back. */
698
+ type DiffPageRef = {
699
+ page_id: string;
700
+ url: string;
701
+ http_status?: number | null;
702
+ };
703
+ /** DisconnectRequest */
704
+ type DisconnectRequest = {
705
+ session_id: string;
706
+ reason?: string | null;
707
+ };
708
+ /** DisplayConfig */
709
+ type DisplayConfig = {
710
+ kind: "xvfb";
711
+ width: number;
712
+ height: number;
713
+ color_depth?: number;
714
+ dpi?: number;
715
+ };
716
+ /** DomainUpsertRequest */
717
+ type DomainUpsertRequest = {
718
+ url: string;
719
+ common_name?: string | null;
720
+ scrape_allowed?: boolean;
721
+ enabled?: boolean;
722
+ proxy_type?: string;
723
+ };
724
+ /** DownloadRecord */
725
+ type DownloadRecord = {
726
+ download_id: string;
727
+ page_id: string;
728
+ suggested_filename: string;
729
+ state: "pending" | "completed" | "failed" | "cancelled";
730
+ byte_count: number | null;
731
+ content_hash: string | null;
732
+ started_at: string;
733
+ completed_at: string | null;
734
+ uploaded: boolean;
735
+ failure_code: string | null;
736
+ };
737
+ /** DownloadResult */
738
+ type DownloadResult = {
739
+ success: boolean;
740
+ session_id?: string | null;
741
+ error_message?: string | null;
742
+ error_type?: string | null;
743
+ download_id?: string | null;
744
+ suggested_filename?: string | null;
745
+ state?: string | null;
746
+ byte_count?: number | null;
747
+ content_hash?: string | null;
748
+ uploaded?: boolean;
749
+ };
750
+ /** One set of pages whose visible text is byte-identical. */
751
+ type DuplicateCluster = {
752
+ fingerprint_version: number;
753
+ exact_sha256: string;
754
+ page_count: number;
755
+ pages_omitted?: number;
756
+ pages?: DuplicatePage[];
757
+ };
758
+ /** DuplicateClusterReport */
759
+ type DuplicateClusterReport = {
760
+ site_id: string;
761
+ pages_compared?: number;
762
+ pages_without_fingerprint?: number;
763
+ clusters_total?: number;
764
+ clusters_returned?: number;
765
+ clusters_omitted?: number;
766
+ duplicate_pages_total?: number;
767
+ max_clusters?: number;
768
+ max_pages_per_cluster?: number;
769
+ scan_truncated?: boolean;
770
+ clusters?: DuplicateCluster[];
771
+ };
772
+ /** DuplicatePage */
773
+ type DuplicatePage = {
774
+ page_id: string;
775
+ url: string;
776
+ title?: string | null;
777
+ word_count?: number | null;
778
+ };
779
+ /** Residential egress — this run leaves through the PERSON'S OWN computer. */
780
+ type EgressPolicy = {
781
+ ticket: string;
782
+ consume_url: string;
783
+ device_name: string;
784
+ };
785
+ /** The helper's own status JSON plus what only the engine knows. */
786
+ type EgressStatus = {
787
+ state: string;
788
+ installed: boolean;
789
+ enabled: boolean;
790
+ running: boolean;
791
+ remedy?: string | null;
792
+ last_error?: string | null;
793
+ device_id?: string | null;
794
+ device_name?: string | null;
795
+ server?: string | null;
796
+ since?: string | null;
797
+ helper_version?: string | null;
798
+ streams_active?: number;
799
+ streams_total?: number;
800
+ bytes_relayed?: number;
801
+ uptime_seconds?: number;
802
+ };
803
+ /** EvalJsCommand */
804
+ type EvalJsCommand = {
805
+ command?: "eval_js";
806
+ expression: string;
807
+ };
808
+ /** EvalJsRequest */
809
+ type EvalJsRequest = {
810
+ /** Session id returned by /sessions or navigate */
811
+ session_id: string;
812
+ expression: string;
813
+ allow_eval_js?: boolean;
814
+ };
815
+ /** EvalJsResult */
816
+ type EvalJsResult = {
817
+ success: boolean;
818
+ session_id?: string | null;
819
+ error_message?: string | null;
820
+ error_type?: string | null;
821
+ value?: unknown;
822
+ };
823
+ /** The viewer's render: their frame width, theme and pixel ratio, full page. */
824
+ type ExactCaptureRequest = {
825
+ width: number;
826
+ height?: number;
827
+ color_scheme?: "light" | "dark";
828
+ device_scale_factor?: number;
829
+ full_page?: boolean;
830
+ expand_scrollers?: boolean;
831
+ };
832
+ /** ExtractRequest */
833
+ type ExtractRequest = {
834
+ url: string;
835
+ include_html?: boolean;
836
+ };
837
+ /** ExtractResult */
838
+ type ExtractResult_MatrxLocal = {
839
+ url: string;
840
+ final_url: string;
841
+ status_code: number;
842
+ title: string;
843
+ text: string;
844
+ html?: string | null;
845
+ content_type: string;
846
+ byte_count: number;
847
+ };
848
+ /** FileChooserRecord */
849
+ type FileChooserRecord = {
850
+ chooser_id: string;
851
+ page_id: string;
852
+ is_multiple: boolean;
853
+ opened_at: string;
854
+ };
855
+ /** FillCommand */
856
+ type FillCommand = {
857
+ command?: "fill";
858
+ selector: string;
859
+ value: string;
860
+ timeout_ms?: number;
861
+ };
862
+ /** FillRequest */
863
+ type FillRequest = {
864
+ /** Session id returned by /sessions or navigate */
865
+ session_id: string;
866
+ selector: string;
867
+ value: string;
868
+ timeout_ms?: number;
869
+ };
870
+ /** FillResult */
871
+ type FillResult = {
872
+ success: boolean;
873
+ session_id?: string | null;
874
+ error_message?: string | null;
875
+ error_type?: string | null;
876
+ selector?: string | null;
877
+ value?: string | null;
878
+ };
879
+ /** GetElementCommand */
880
+ type GetElementCommand = {
881
+ command?: "get_element";
882
+ selector: string;
883
+ include_html?: boolean;
884
+ };
885
+ /** GetElementRequest */
886
+ type GetElementRequest = {
887
+ /** Session id returned by /sessions or navigate */
888
+ session_id: string;
889
+ selector: string;
890
+ include_html?: boolean;
891
+ };
892
+ /** GetElementResult */
893
+ type GetElementResult = {
894
+ success: boolean;
895
+ session_id?: string | null;
896
+ error_message?: string | null;
897
+ error_type?: string | null;
898
+ truncated?: boolean;
899
+ total_chars?: number;
900
+ selector?: string | null;
901
+ found?: boolean;
902
+ present?: boolean;
903
+ readiness?: string;
904
+ text?: string | null;
905
+ inner_html?: string | null;
906
+ outer_html?: string | null;
907
+ attributes?: {
908
+ [key: string]: string;
909
+ };
910
+ bounding_box?: {
911
+ [key: string]: number;
912
+ } | null;
913
+ };
914
+ /** GetHtmlCommand */
915
+ type GetHtmlCommand = {
916
+ command?: "get_html";
917
+ cap?: number;
918
+ };
919
+ /** GetHtmlRequest */
920
+ type GetHtmlRequest = {
921
+ /** Session id returned by /sessions or navigate */
922
+ session_id: string;
923
+ cap?: number;
924
+ };
925
+ /** GetHtmlResult */
926
+ type GetHtmlResult = {
927
+ success: boolean;
928
+ session_id?: string | null;
929
+ error_message?: string | null;
930
+ error_type?: string | null;
931
+ truncated?: boolean;
932
+ total_chars?: number;
933
+ url?: string | null;
934
+ html?: string | null;
935
+ };
936
+ /** GetTextCommand */
937
+ type GetTextCommand = {
938
+ command?: "get_text";
939
+ selector?: string;
940
+ cap?: number;
941
+ };
942
+ /** GetTextRequest */
943
+ type GetTextRequest = {
944
+ /** Session id returned by /sessions or navigate */
945
+ session_id: string;
946
+ selector?: string;
947
+ cap?: number;
948
+ };
949
+ /** GetTextResult */
950
+ type GetTextResult = {
951
+ success: boolean;
952
+ session_id?: string | null;
953
+ error_message?: string | null;
954
+ error_type?: string | null;
955
+ truncated?: boolean;
956
+ total_chars?: number;
957
+ url?: string | null;
958
+ text?: string | null;
959
+ };
960
+ /** HandleDialogCommand */
961
+ type HandleDialogCommand = {
962
+ command?: "handle_dialog";
963
+ dialog_id: string;
964
+ action: "accept" | "dismiss";
965
+ prompt_text?: string | null;
966
+ };
967
+ /** HandleDialogResult */
968
+ type HandleDialogResult = {
969
+ success: boolean;
970
+ session_id?: string | null;
971
+ error_message?: string | null;
972
+ error_type?: string | null;
973
+ dialog_id?: string | null;
974
+ handled?: boolean;
975
+ };
976
+ /** HeartbeatRequest */
977
+ type HeartbeatRequest = {
978
+ run_id: string;
979
+ profile_id: string;
980
+ fencing_token: string;
981
+ fencing_revision: number;
982
+ sequence?: number | null;
983
+ idempotency_key?: string | null;
984
+ issued_at: string;
985
+ deadline_ms?: number;
986
+ lease_expires_at: string;
987
+ rotate_callback_token?: boolean;
988
+ access_still_valid: boolean;
989
+ rtc_config?: RtcConfig | null;
990
+ };
991
+ /** HeartbeatResponse */
992
+ type HeartbeatResponse = {
993
+ ok: boolean;
994
+ error?: WorkerError | null;
995
+ run_id: string;
996
+ profile_id: string;
997
+ worker_id: string;
998
+ controller: ControllerState;
999
+ fencing_revision: number;
1000
+ sequence_applied?: number | null;
1001
+ replayed?: boolean;
1002
+ queue_depth: number;
1003
+ queue_state: "open" | "draining" | "closed";
1004
+ run_mode: "handoff_capable" | "automation_only";
1005
+ worker_health: "starting" | "healthy" | "degraded" | "browser_crashed" | "stopping" | "stopped";
1006
+ chromium_version: string;
1007
+ worker_version: string;
1008
+ observed_at: string;
1009
+ lease_acknowledged?: boolean;
1010
+ callback_token?: string | null;
1011
+ idle_ms?: number;
1012
+ last_sequence_applied?: number | null;
1013
+ page_count?: number;
1014
+ pending_events?: number;
1015
+ checkpoint_recommended?: boolean;
1016
+ };
1017
+ /** HumanEpisodeSummary */
1018
+ type HumanEpisodeSummary = {
1019
+ handoff_id: string;
1020
+ claimed_at: string;
1021
+ returned_at: string | null;
1022
+ navigation_count: number;
1023
+ pages_opened: number;
1024
+ pages_closed: number;
1025
+ dialogs_opened: number;
1026
+ downloads_started: number;
1027
+ pointer_activity_buckets: number;
1028
+ keyboard_activity_buckets: number;
1029
+ origins_visited?: string[];
1030
+ };
1031
+ /** HumanLoginField */
1032
+ type HumanLoginField = {
1033
+ selector: string;
1034
+ value: string;
1035
+ };
1036
+ /** HumanLoginRequest */
1037
+ type HumanLoginRequest = {
1038
+ fields: HumanLoginField[];
1039
+ submit_selector: string;
1040
+ };
1041
+ /** HumanRequiredSignal */
1042
+ type HumanRequiredSignal = {
1043
+ reason: "credentials_missing" | "credentials_rejected" | "mfa_required" | "totp_unavailable" | "push_approval_required" | "webauthn_required" | "captcha_required" | "provider_consent_required" | "account_selection_required" | "sensitive_action_approval" | "payment_approval" | "destructive_change_approval" | "unrecognized_page" | "session_revoked_by_provider" | "agent_requested" | "user_requested" | "operator_requested";
1044
+ detected_by: "adapter" | "heuristic" | "tool";
1045
+ safe_origin: string;
1046
+ safe_instructions?: string | null;
1047
+ page_id: string;
1048
+ detected_at: string;
1049
+ adapter_version?: string | null;
1050
+ };
1051
+ /** IceBlock */
1052
+ type IceBlock = {
1053
+ stun_urls: string[];
1054
+ turn_urls: string[];
1055
+ turn_username: string;
1056
+ turn_credential: string;
1057
+ turn_expires_at: number;
1058
+ };
1059
+ /** InspectedScreenshot */
1060
+ type InspectedScreenshot = {
1061
+ kind: string;
1062
+ width: number;
1063
+ height: number;
1064
+ image_base64: string;
1065
+ };
1066
+ /** InvokeRequest */
1067
+ type InvokeRequest = {
1068
+ session_id: string;
1069
+ tool_name: string;
1070
+ args?: {
1071
+ [key: string]: unknown;
1072
+ };
1073
+ timeout_seconds?: number;
1074
+ };
1075
+ /** InvokeResponse */
1076
+ type InvokeResponse = {
1077
+ ok: boolean;
1078
+ envelope?: {
1079
+ [key: string]: unknown;
1080
+ } | null;
1081
+ error?: string | null;
1082
+ error_type?: string | null;
1083
+ };
1084
+ /** LaunchPolicy */
1085
+ type LaunchPolicy = {
1086
+ run_mode: "handoff_capable" | "automation_only";
1087
+ reopened_for_handoff?: boolean;
1088
+ reopened_controller_state?: ("agent_control" | "handoff_requested" | "human_control" | "resume_pending") | null;
1089
+ reopened_handoff_id?: string | null;
1090
+ reopened_human_input_enabled?: boolean;
1091
+ viewport?: {
1092
+ [key: string]: number;
1093
+ } | null;
1094
+ user_agent?: string | null;
1095
+ locale?: string | null;
1096
+ timezone_id?: string | null;
1097
+ proxy?: string | null;
1098
+ proxy_username?: string | null;
1099
+ proxy_password?: string | null;
1100
+ egress?: EgressPolicy | null;
1101
+ humanize_input?: boolean;
1102
+ webgl_vendor?: string | null;
1103
+ webgl_renderer?: string | null;
1104
+ allow_eval_js?: boolean;
1105
+ allow_downloads?: boolean;
1106
+ trace_enabled?: boolean;
1107
+ video_enabled?: boolean;
1108
+ idle_stop_after_ms?: number;
1109
+ handoff_idle_keepalive_ms?: number;
1110
+ };
1111
+ /** LinkGraph */
1112
+ type LinkGraph = {
1113
+ site_id: string;
1114
+ ranking?: "link_score" | "inbound_internal_links";
1115
+ nodes_with_link_score?: number;
1116
+ nodes_total?: number;
1117
+ nodes_returned?: number;
1118
+ nodes_omitted?: number;
1119
+ edges_total?: number;
1120
+ edges_returned?: number;
1121
+ edges_omitted?: number;
1122
+ max_nodes?: number;
1123
+ max_edges?: number;
1124
+ scan_truncated?: boolean;
1125
+ nodes?: LinkGraphNode[];
1126
+ edges?: LinkGraphEdge[];
1127
+ };
1128
+ /** LinkGraphEdge */
1129
+ type LinkGraphEdge = {
1130
+ source: string;
1131
+ target: string;
1132
+ link_count?: number;
1133
+ };
1134
+ /** A page in the site's current internal link graph. */
1135
+ type LinkGraphNode = {
1136
+ page_id: string;
1137
+ url: string;
1138
+ link_score?: number | null;
1139
+ inbound_internal_links?: number;
1140
+ outbound_internal_links?: number;
1141
+ http_status?: number | null;
1142
+ status: string;
1143
+ };
1144
+ /** LinkPreview */
1145
+ type LinkPreview = {
1146
+ url: string;
1147
+ final_url?: string | null;
1148
+ available?: boolean;
1149
+ reason?: ("invalid_url" | "blocked_address" | "unreachable" | "not_html" | "http_error") | null;
1150
+ title?: string | null;
1151
+ description?: string | null;
1152
+ site_name?: string | null;
1153
+ favicon_url?: string | null;
1154
+ image_url?: string | null;
1155
+ fetched_at: string;
1156
+ };
1157
+ /** LocalApprovalResponse */
1158
+ type LocalApprovalResponse = {
1159
+ status: string;
1160
+ approval_id: string;
1161
+ command_id: string;
1162
+ claim_grant?: string | null;
1163
+ deadline_ms?: number | null;
1164
+ };
1165
+ /** LocalCommandClaimResponse */
1166
+ type LocalCommandClaimResponse = {
1167
+ status: string;
1168
+ command_id: string;
1169
+ deadline_ms?: number | null;
1170
+ completion_grant?: string | null;
1171
+ injection?: JsonValue | null;
1172
+ };
1173
+ /** LocalCommandCompleteResponse */
1174
+ type LocalCommandCompleteResponse = {
1175
+ status: "completed";
1176
+ result: {
1177
+ [key: string]: JsonValue;
1178
+ };
1179
+ };
1180
+ /** LocalTransportVerifyResponse */
1181
+ type LocalTransportVerifyResponse = {
1182
+ status: "accepted";
1183
+ operation: "discover" | "admit" | "approve" | "claim" | "complete" | "renew" | "cleanup";
1184
+ run_id: string;
1185
+ app_instance_id: string;
1186
+ controller_revision: number;
1187
+ jti: string;
1188
+ expires_at_ms: number;
1189
+ extension_generation?: string | null;
1190
+ connection_id?: string | null;
1191
+ actor_id?: string | null;
1192
+ organization_id?: string | null;
1193
+ profile_id?: string | null;
1194
+ admission_id?: string | null;
1195
+ command_id?: string | null;
1196
+ sequence?: number | null;
1197
+ command_digest?: string | null;
1198
+ approval_id?: string | null;
1199
+ deadline_ms?: number | null;
1200
+ };
1201
+ /** MediaBlock */
1202
+ type MediaBlock = {
1203
+ video: boolean;
1204
+ audio: boolean;
1205
+ clipboard: boolean;
1206
+ microphone: boolean;
1207
+ camera: boolean;
1208
+ file_transfer: boolean;
1209
+ };
1210
+ /** Body of POST /handoffs/{handoff_id}/stream-ticket. */
1211
+ type MintControlRequest = {
1212
+ mode?: "control";
1213
+ client_kind?: "web_panel" | "desktop" | "other";
1214
+ takeover?: boolean;
1215
+ };
1216
+ /** S4 §2.1 / §2.2. `endpoint` is DATA — the client never constructs it. */
1217
+ type MintResponse = {
1218
+ ticket: string;
1219
+ expires_at: number;
1220
+ endpoint: string;
1221
+ protocol?: "selkies_webrtc";
1222
+ stream_session_id: string;
1223
+ mode: "control" | "view";
1224
+ control: ControlBlock | null;
1225
+ media: MediaBlock;
1226
+ ice: IceBlock;
1227
+ viewport: ViewportBlock;
1228
+ };
1229
+ /** MintTicketRequest */
1230
+ type MintTicketRequest = {
1231
+ device_id?: string | null;
1232
+ purpose?: string;
1233
+ };
1234
+ /** Body of POST /runs/{run_id}/stream-ticket (S4 §2.2). */
1235
+ type MintViewRequest = {
1236
+ mode?: "view";
1237
+ client_kind?: "web_panel" | "desktop" | "other";
1238
+ };
1239
+ /** NavigateCommand */
1240
+ type NavigateCommand = {
1241
+ command?: "navigate";
1242
+ url: string;
1243
+ wait_until?: "load" | "domcontentloaded" | "networkidle";
1244
+ timeout_ms?: number;
1245
+ extract_text?: boolean;
1246
+ user_agent?: string | null;
1247
+ viewport?: {
1248
+ [key: string]: number;
1249
+ } | null;
1250
+ proxy?: string | null;
1251
+ };
1252
+ /** NavigateRequest */
1253
+ type NavigateRequest = {
1254
+ url: string;
1255
+ /** Reuse existing session; create new if omitted */
1256
+ session_id?: string | null;
1257
+ wait_until?: string;
1258
+ timeout_ms?: number;
1259
+ extract_text?: boolean;
1260
+ user_agent?: string | null;
1261
+ viewport?: {
1262
+ [key: string]: number;
1263
+ } | null;
1264
+ proxy?: string | null;
1265
+ };
1266
+ /** NavigateResult */
1267
+ type NavigateResult = {
1268
+ success: boolean;
1269
+ session_id?: string | null;
1270
+ error_message?: string | null;
1271
+ error_type?: string | null;
1272
+ truncated?: boolean;
1273
+ total_chars?: number;
1274
+ url?: string | null;
1275
+ title?: string | null;
1276
+ http_status?: number | null;
1277
+ text_preview?: string | null;
1278
+ };
1279
+ /** ObserveRequest */
1280
+ type ObserveRequest = {
1281
+ run_id: string;
1282
+ profile_id: string;
1283
+ fencing_token: string;
1284
+ fencing_revision: number;
1285
+ sequence?: number | null;
1286
+ idempotency_key?: string | null;
1287
+ issued_at: string;
1288
+ deadline_ms?: number;
1289
+ include?: ("pages" | "dialogs" | "downloads" | "file_choosers" | "permissions" | "human_episode")[];
1290
+ since_inventory_revision?: number | null;
1291
+ };
1292
+ /** ObserveResponse */
1293
+ type ObserveResponse = {
1294
+ ok: boolean;
1295
+ error?: WorkerError | null;
1296
+ run_id: string;
1297
+ profile_id: string;
1298
+ worker_id: string;
1299
+ controller: ControllerState;
1300
+ fencing_revision: number;
1301
+ sequence_applied?: number | null;
1302
+ replayed?: boolean;
1303
+ queue_depth: number;
1304
+ queue_state: "open" | "draining" | "closed";
1305
+ run_mode: "handoff_capable" | "automation_only";
1306
+ worker_health: "starting" | "healthy" | "degraded" | "browser_crashed" | "stopping" | "stopped";
1307
+ chromium_version: string;
1308
+ worker_version: string;
1309
+ observed_at: string;
1310
+ page_inventory?: PageInventory | null;
1311
+ human_episode?: HumanEpisodeSummary | null;
1312
+ };
1313
+ /** OpsAdmissionSnapshot */
1314
+ type OpsAdmissionSnapshot = {
1315
+ resident_by_class?: {
1316
+ [key: string]: number;
1317
+ };
1318
+ ceiling_by_class?: {
1319
+ [key: string]: number;
1320
+ };
1321
+ storm_window_count?: number;
1322
+ storm_window_max?: number;
1323
+ };
1324
+ /** Content-free ops dashboard data (D-9). Counts only — never a run's content. */
1325
+ type OpsSnapshotResponse = {
1326
+ live_run_count?: number;
1327
+ runs_by_execution_target?: {
1328
+ [key: string]: number;
1329
+ };
1330
+ runs_by_state?: {
1331
+ [key: string]: number;
1332
+ };
1333
+ admission?: OpsAdmissionSnapshot;
1334
+ };
1335
+ /** One cache-backed parsed page capture for server-side enrichment. */
1336
+ type PageCaptureRequest = {
1337
+ url: string;
1338
+ target_url?: string | null;
1339
+ use_cache?: boolean;
1340
+ capture_screenshot?: boolean;
1341
+ organization_id?: string | null;
1342
+ site_id?: string | null;
1343
+ backlink_id?: string | null;
1344
+ full_page?: boolean;
1345
+ };
1346
+ /** PageCaptureResult */
1347
+ type PageCaptureResult = {
1348
+ success: boolean;
1349
+ status_code?: number;
1350
+ final_url: string;
1351
+ title?: string | null;
1352
+ content_type?: string;
1353
+ scraped_at?: string | null;
1354
+ published_at?: string | null;
1355
+ modified_at?: string | null;
1356
+ cms?: string | null;
1357
+ cache_key: string;
1358
+ from_cache?: boolean;
1359
+ char_count?: number;
1360
+ content?: string;
1361
+ content_truncated?: boolean;
1362
+ content_scope?: "main" | "full";
1363
+ links_to_target?: CapturedLink[];
1364
+ screenshot_file_id?: string | null;
1365
+ screenshot_width?: number | null;
1366
+ screenshot_height?: number | null;
1367
+ screenshot_kind?: string | null;
1368
+ screenshot_highlighted?: boolean;
1369
+ screenshot_failure_reason?: string | null;
1370
+ failure_reason?: string | null;
1371
+ failure_details?: {
1372
+ [key: string]: string;
1373
+ }[];
1374
+ processed_document_id?: string | null;
1375
+ source_id?: string | null;
1376
+ notices?: {
1377
+ [key: string]: string;
1378
+ }[];
1379
+ };
1380
+ /** Direct on-demand capture of ONE canonical page (or brand-new URL). */
1381
+ type PageFetchRequest = {
1382
+ url: string;
1383
+ capture_screenshot?: boolean;
1384
+ };
1385
+ /** PageInventory */
1386
+ type PageInventory = {
1387
+ revision: number;
1388
+ active_page_id: string | null;
1389
+ pages?: PageRecord[];
1390
+ dialogs?: DialogRecord[];
1391
+ downloads?: DownloadRecord[];
1392
+ file_choosers?: FileChooserRecord[];
1393
+ permission_prompts?: PermissionPromptRecord[];
1394
+ captured_at: string;
1395
+ truncated?: boolean;
1396
+ total_page_count?: number;
1397
+ };
1398
+ /** PageRecord */
1399
+ type PageRecord = {
1400
+ page_id: string;
1401
+ opener_page_id: string | null;
1402
+ kind: "page" | "popup" | "pdf_viewer";
1403
+ is_active: boolean;
1404
+ is_closed: boolean;
1405
+ safe_url: string | null;
1406
+ origin: string | null;
1407
+ title: string | null;
1408
+ opened_at: string;
1409
+ closed_at: string | null;
1410
+ opened_by: "agent" | "human" | "page" | "unknown";
1411
+ last_focused_at: string | null;
1412
+ load_state: "loading" | "loaded" | "crashed";
1413
+ };
1414
+ /** PairResponse */
1415
+ type PairResponse = {
1416
+ pair_token: string;
1417
+ engine_version: string;
1418
+ service?: string;
1419
+ };
1420
+ /** PermissionPromptRecord */
1421
+ type PermissionPromptRecord = {
1422
+ prompt_id: string;
1423
+ page_id: string;
1424
+ permission: "geolocation" | "notifications" | "camera" | "microphone" | "clipboard" | "midi" | "other";
1425
+ opened_at: string;
1426
+ };
1427
+ /** PresignedUpload */
1428
+ type PresignedUpload = {
1429
+ method: "PUT";
1430
+ url: string;
1431
+ headers?: {
1432
+ [key: string]: string;
1433
+ };
1434
+ expires_at: string;
1435
+ };
1436
+ /** PressClipRenderRequest */
1437
+ type PressClipRenderRequest = {
1438
+ url: string;
1439
+ client_name?: string;
1440
+ scope?: "whole" | "section";
1441
+ section_heading?: string | null;
1442
+ drop?: string[];
1443
+ keep?: string[];
1444
+ root?: string | null;
1445
+ logo_url?: string | null;
1446
+ };
1447
+ /** PreviewRequest */
1448
+ type PreviewRequest_ScraperServer = {
1449
+ /** URL to preview; will be normalised (so 'abc.com' → 'https://abc.com/') */
1450
+ url: string;
1451
+ };
1452
+ /** The baseline a session's 'what changed' widget should diff against. */
1453
+ type PreviousSessionResponse = {
1454
+ session_id: string;
1455
+ site_id: string;
1456
+ previous?: CrawlSessionRef | null;
1457
+ };
1458
+ /** ProfileMount */
1459
+ type ProfileMount = {
1460
+ user_data_dir: string;
1461
+ source: "active_volume" | "restored_checkpoint";
1462
+ checkpoint_id?: string | null;
1463
+ expected_content_hash?: string | null;
1464
+ profile_format_version: number;
1465
+ expected_chromium_version?: string | null;
1466
+ restore?: CheckpointRestore | null;
1467
+ };
1468
+ /** The safe profile facts a caller receives after creating one — and the */
1469
+ type ProfileView = {
1470
+ profile_id: string;
1471
+ display_name: string;
1472
+ is_default: boolean;
1473
+ owner_type: "user" | "organization";
1474
+ organization_id: string;
1475
+ status: string;
1476
+ last_started_at?: string | null;
1477
+ checkpoint_status?: string;
1478
+ live?: boolean;
1479
+ };
1480
+ /** One sampled `crawl_progress` event. */
1481
+ type ProgressPoint = {
1482
+ occurred_at: string;
1483
+ sequence: number;
1484
+ elapsed_ms?: number;
1485
+ pages_discovered?: number;
1486
+ pages_fetched?: number;
1487
+ pages_failed?: number;
1488
+ pages_in_flight?: number;
1489
+ queue_depth?: number;
1490
+ bytes_downloaded?: number;
1491
+ pages_per_second?: number | null;
1492
+ };
1493
+ /** ProgressSeries */
1494
+ type ProgressSeries = {
1495
+ session_id: string;
1496
+ points_total?: number;
1497
+ points_returned?: number;
1498
+ points_omitted?: number;
1499
+ max_points?: number;
1500
+ sample_stride?: number;
1501
+ scan_truncated?: boolean;
1502
+ points?: ProgressPoint[];
1503
+ };
1504
+ /** QuerySelectorsCommand */
1505
+ type QuerySelectorsCommand = {
1506
+ command?: "query_selectors";
1507
+ selectors: string[];
1508
+ attributes?: string[] | null;
1509
+ limit_per_selector?: number;
1510
+ };
1511
+ /** QuerySelectorsRequest */
1512
+ type QuerySelectorsRequest = {
1513
+ /** Session id returned by /sessions or navigate */
1514
+ session_id: string;
1515
+ selectors: string[];
1516
+ attributes?: string[] | null;
1517
+ limit_per_selector?: number;
1518
+ };
1519
+ /** QuerySelectorsResult */
1520
+ type QuerySelectorsResult = {
1521
+ success: boolean;
1522
+ session_id?: string | null;
1523
+ error_message?: string | null;
1524
+ error_type?: string | null;
1525
+ truncated?: boolean;
1526
+ total_chars?: number;
1527
+ results?: {
1528
+ [key: string]: {
1529
+ [key: string]: unknown;
1530
+ }[];
1531
+ };
1532
+ match_counts?: {
1533
+ [key: string]: number;
1534
+ };
1535
+ };
1536
+ /** QuickScrapeRequest */
1537
+ type QuickScrapeRequest = {
1538
+ get_organized_data?: boolean;
1539
+ get_structured_data?: boolean;
1540
+ get_overview?: boolean;
1541
+ get_text_data?: boolean;
1542
+ get_main_image?: boolean;
1543
+ get_links?: boolean;
1544
+ get_content_filter_removal_details?: boolean;
1545
+ include_highlighting_markers?: boolean;
1546
+ include_media?: boolean;
1547
+ include_media_links?: boolean;
1548
+ include_media_description?: boolean;
1549
+ include_anchors?: boolean;
1550
+ anchor_size?: number;
1551
+ urls: string[];
1552
+ use_cache?: boolean;
1553
+ stream?: boolean;
1554
+ };
1555
+ /** What a rescrape WOULD run, and where the config came from. */
1556
+ type RecrawlConfigResponse = {
1557
+ site_id: string;
1558
+ source: "preset" | "site_default_preset" | "last_session" | "defaults";
1559
+ preset_id?: string | null;
1560
+ preset_name?: string | null;
1561
+ session_id?: string | null;
1562
+ config: CrawlStartRequest;
1563
+ };
1564
+ /** Body for the one-click rescrape command. */
1565
+ type RecrawlRequest = {
1566
+ preset_id?: string | null;
1567
+ };
1568
+ /** RegisterDeviceRequest */
1569
+ type RegisterDeviceRequest = {
1570
+ registration: DeviceRegistration;
1571
+ };
1572
+ /** ReleaseControlResponse */
1573
+ type ReleaseControlResponse = {
1574
+ run_id: string;
1575
+ controller_kind: string;
1576
+ };
1577
+ /** ReleaseRequest */
1578
+ type ReleaseRequest = {
1579
+ control_revision: number;
1580
+ reason?: string;
1581
+ };
1582
+ /** RenewRequest */
1583
+ type RenewRequest = {
1584
+ control_revision?: number | null;
1585
+ };
1586
+ /** ResearchRequest */
1587
+ type ResearchRequest = {
1588
+ query: string;
1589
+ effort?: string;
1590
+ country?: string;
1591
+ };
1592
+ /** RetryClaimRequest */
1593
+ type RetryClaimRequest = {
1594
+ item_ids: string[];
1595
+ client_id: string;
1596
+ claim_ttl_minutes?: number;
1597
+ };
1598
+ /** RetryFailRequest */
1599
+ type RetryFailRequest = {
1600
+ queue_item_id: string;
1601
+ error: string;
1602
+ promote_to_extension?: boolean;
1603
+ };
1604
+ /** RetrySubmitRequest */
1605
+ type RetrySubmitRequest = {
1606
+ queue_item_id: string;
1607
+ };
1608
+ /** What happened when a run was moved onto the person's own computer. */
1609
+ type RetryThroughHomeComputerResponse = {
1610
+ run_id: string;
1611
+ state: string;
1612
+ device_name: string;
1613
+ note: string;
1614
+ };
1615
+ /** RevokeRequest */
1616
+ type RevokeRequest = {
1617
+ control_revision: number;
1618
+ reason?: string;
1619
+ confirm?: boolean;
1620
+ };
1621
+ /** RtcConfig */
1622
+ type RtcConfig = {
1623
+ iceServers: RtcIceServer[];
1624
+ expires_at: string;
1625
+ };
1626
+ /** Ephemeral ICE material issued by the control plane, never persisted. */
1627
+ type RtcIceServer = {
1628
+ urls: string[];
1629
+ username?: string | null;
1630
+ credential?: string | null;
1631
+ };
1632
+ /** The safe run facts a caller receives. No worker address, no token. */
1633
+ type RunView = {
1634
+ run_id: string;
1635
+ profile_id: string;
1636
+ state: "provisioning" | "agent_control" | "handoff_requested" | "human_control" | "resume_pending" | "stopping" | "stopped" | "failed" | "failed_persistence";
1637
+ mode: "handoff_capable" | "automation_only";
1638
+ execution_target: "browser_fleet" | "sandbox" | "local_surface";
1639
+ controller_kind: "none" | "agent" | "human" | "system";
1640
+ controller_user_id: string | null;
1641
+ reconnected?: boolean;
1642
+ current_url?: string | null;
1643
+ started_at?: string | null;
1644
+ };
1645
+ /** A canonical worker command from one approved sandbox server. */
1646
+ type SandboxCommandRequest = {
1647
+ command: NavigateCommand | ClickCommand | FillCommand | TypeTextCommand | SelectOptionCommand | WaitForCommand | GetElementCommand | QuerySelectorsCommand | EvalJsCommand | ScrollCommand | GetHtmlCommand | GetTextCommand | ActivatePageCommand | ClosePageCommand | HandleDialogCommand | WaitForDownloadCommand;
1648
+ };
1649
+ /** SavedLoginRequest */
1650
+ type SavedLoginRequest = {
1651
+ item_id: string;
1652
+ page_url: string;
1653
+ };
1654
+ /** ScrapeRequest */
1655
+ type ScrapeRequest = {
1656
+ urls: string[];
1657
+ options?: {
1658
+ [key: string]: unknown;
1659
+ } | null;
1660
+ };
1661
+ /** ScreenshotFailure */
1662
+ type ScreenshotFailure = {
1663
+ kind: string;
1664
+ error_class: string;
1665
+ error_message: string;
1666
+ };
1667
+ /** ScreenshotRequest */
1668
+ type ScreenshotRequest = {
1669
+ /** Session id returned by /sessions or navigate */
1670
+ session_id: string;
1671
+ selector?: string | null;
1672
+ full_page?: boolean;
1673
+ width?: number | null;
1674
+ height?: number | null;
1675
+ return_base64?: boolean;
1676
+ };
1677
+ /** ScreenshotResponse */
1678
+ type ScreenshotResponse = {
1679
+ id: string;
1680
+ captured_at: string;
1681
+ file_id: string;
1682
+ preview_url: string;
1683
+ };
1684
+ /** ScrollCommand */
1685
+ type ScrollCommand = {
1686
+ command?: "scroll";
1687
+ direction?: "up" | "down" | "top" | "bottom";
1688
+ pixels?: number;
1689
+ selector?: string | null;
1690
+ };
1691
+ /** ScrollRequest */
1692
+ type ScrollRequest = {
1693
+ /** Session id returned by /sessions or navigate */
1694
+ session_id: string;
1695
+ direction?: string;
1696
+ pixels?: number;
1697
+ selector?: string | null;
1698
+ };
1699
+ /** A scroll reports the position it started from, not just where it ended. */
1700
+ type ScrollResult = {
1701
+ success: boolean;
1702
+ session_id?: string | null;
1703
+ error_message?: string | null;
1704
+ error_type?: string | null;
1705
+ direction?: string | null;
1706
+ pixels?: number | null;
1707
+ scroll_y?: number | null;
1708
+ scroll_y_before?: number | null;
1709
+ moved?: boolean;
1710
+ at_end?: boolean;
1711
+ no_effect_reason?: string | null;
1712
+ };
1713
+ /** SearchAndScrapeLimitedRequest */
1714
+ type SearchAndScrapeLimitedRequest = {
1715
+ get_organized_data?: boolean;
1716
+ get_structured_data?: boolean;
1717
+ get_overview?: boolean;
1718
+ get_text_data?: boolean;
1719
+ get_main_image?: boolean;
1720
+ get_links?: boolean;
1721
+ get_content_filter_removal_details?: boolean;
1722
+ include_highlighting_markers?: boolean;
1723
+ include_media?: boolean;
1724
+ include_media_links?: boolean;
1725
+ include_media_description?: boolean;
1726
+ include_anchors?: boolean;
1727
+ anchor_size?: number;
1728
+ keyword: string;
1729
+ country_code?: string;
1730
+ max_page_read?: number;
1731
+ search_type?: string;
1732
+ };
1733
+ /** SearchAndScrapeRequest */
1734
+ type SearchAndScrapeRequest = {
1735
+ get_organized_data?: boolean;
1736
+ get_structured_data?: boolean;
1737
+ get_overview?: boolean;
1738
+ get_text_data?: boolean;
1739
+ get_main_image?: boolean;
1740
+ get_links?: boolean;
1741
+ get_content_filter_removal_details?: boolean;
1742
+ include_highlighting_markers?: boolean;
1743
+ include_media?: boolean;
1744
+ include_media_links?: boolean;
1745
+ include_media_description?: boolean;
1746
+ include_anchors?: boolean;
1747
+ anchor_size?: number;
1748
+ keywords: string[];
1749
+ country_code?: string;
1750
+ total_results_per_keyword?: number;
1751
+ search_type?: string;
1752
+ };
1753
+ /** SearchAndScrapeRequest */
1754
+ type SearchAndScrapeRequest_MatrxLocal = {
1755
+ keywords: string[];
1756
+ total_results_per_keyword?: number;
1757
+ options?: {
1758
+ [key: string]: unknown;
1759
+ } | null;
1760
+ };
1761
+ /** SearchKeywordsRequest */
1762
+ type SearchKeywordsRequest = {
1763
+ keywords: string[];
1764
+ country_code?: string;
1765
+ total_results_per_keyword?: number;
1766
+ search_type?: string;
1767
+ };
1768
+ /** SearchRequest */
1769
+ type SearchRequest = {
1770
+ keywords: string[];
1771
+ count?: number;
1772
+ country?: string;
1773
+ };
1774
+ /** SelectOptionCommand */
1775
+ type SelectOptionCommand = {
1776
+ command?: "select_option";
1777
+ selector: string;
1778
+ value?: string | null;
1779
+ label?: string | null;
1780
+ timeout_ms?: number;
1781
+ };
1782
+ /** SelectOptionRequest */
1783
+ type SelectOptionRequest = {
1784
+ /** Session id returned by /sessions or navigate */
1785
+ session_id: string;
1786
+ selector: string;
1787
+ value?: string | null;
1788
+ label?: string | null;
1789
+ timeout_ms?: number;
1790
+ };
1791
+ /** SelectOptionResult */
1792
+ type SelectOptionResult = {
1793
+ success: boolean;
1794
+ session_id?: string | null;
1795
+ error_message?: string | null;
1796
+ error_type?: string | null;
1797
+ selector?: string | null;
1798
+ selected_values?: string[] | null;
1799
+ };
1800
+ /** ShutdownRequest */
1801
+ type ShutdownRequest = {
1802
+ run_id: string;
1803
+ profile_id: string;
1804
+ fencing_token: string;
1805
+ fencing_revision: number;
1806
+ sequence?: number | null;
1807
+ idempotency_key?: string | null;
1808
+ issued_at: string;
1809
+ deadline_ms?: number;
1810
+ reason: "normal_stop" | "idle" | "expired" | "moved" | "revoked" | "operator" | "reopen_for_handoff" | "emergency_fence";
1811
+ drain_timeout_ms?: number;
1812
+ final_checkpoint?: CheckpointRequest | null;
1813
+ };
1814
+ /** ShutdownResponse */
1815
+ type ShutdownResponse = {
1816
+ ok: boolean;
1817
+ error?: WorkerError | null;
1818
+ run_id: string;
1819
+ profile_id: string;
1820
+ worker_id: string;
1821
+ controller: ControllerState;
1822
+ fencing_revision: number;
1823
+ sequence_applied?: number | null;
1824
+ replayed?: boolean;
1825
+ queue_depth: number;
1826
+ queue_state: "open" | "draining" | "closed";
1827
+ run_mode: "handoff_capable" | "automation_only";
1828
+ worker_health: "starting" | "healthy" | "degraded" | "browser_crashed" | "stopping" | "stopped";
1829
+ chromium_version: string;
1830
+ worker_version: string;
1831
+ observed_at: string;
1832
+ stopped?: boolean;
1833
+ queue_drained?: boolean;
1834
+ abandoned_command_count?: number;
1835
+ checkpoint?: CheckpointResponse | null;
1836
+ uncheckpointed_state?: boolean;
1837
+ host_lock_released?: boolean;
1838
+ zeroized?: boolean;
1839
+ };
1840
+ /** SiteDiffList */
1841
+ type SiteDiffList = {
1842
+ site_id: string;
1843
+ diffs?: SiteDiffSummary[];
1844
+ };
1845
+ /** Counts-only diff of one session against its predecessor. */
1846
+ type SiteDiffSummary = {
1847
+ site_id: string;
1848
+ session: CrawlSessionRef;
1849
+ previous_session?: CrawlSessionRef | null;
1850
+ counts: CrawlDiffCounts;
1851
+ truncated?: boolean;
1852
+ computed_at: string;
1853
+ };
1854
+ /** StartRunRequest */
1855
+ type StartRunRequest = {
1856
+ profile_id?: string | null;
1857
+ mode?: "handoff_capable" | "automation_only";
1858
+ execution_target?: "browser_fleet" | "sandbox" | "local_surface";
1859
+ activation_key: string;
1860
+ runtime_execution_id?: string | null;
1861
+ egress?: "auto" | "never" | "always";
1862
+ };
1863
+ /** StartRunResponse */
1864
+ type StartRunResponse = {
1865
+ run: RunView;
1866
+ reconnected: boolean;
1867
+ };
1868
+ /** StopRunResponse */
1869
+ type StopRunResponse = {
1870
+ run_id: string;
1871
+ state: string;
1872
+ };
1873
+ /** Optional body. ``immediate`` is the panel's "Take over immediately": */
1874
+ type TakeoverRequest = {
1875
+ immediate?: boolean;
1876
+ };
1877
+ /** TakeoverResponse */
1878
+ type TakeoverResponse = {
1879
+ run_id: string;
1880
+ controller_kind: string;
1881
+ controller_revision: number;
1882
+ };
1883
+ /** One URL Google is showing that our own fetch could not load. */
1884
+ type TrafficAtRiskPage = {
1885
+ page_id: string;
1886
+ url: string;
1887
+ http_status: number;
1888
+ content_type?: string | null;
1889
+ impressions?: number;
1890
+ clicks?: number;
1891
+ in_sitemap?: boolean;
1892
+ evidence_source?: string;
1893
+ last_seen?: string | null;
1894
+ };
1895
+ /** Pages with Google impressions whose last recorded status was not a */
1896
+ type TrafficAtRiskReport = {
1897
+ site_id: string;
1898
+ pages_with_impressions?: number;
1899
+ pages_at_risk_total?: number;
1900
+ pages_returned?: number;
1901
+ pages_omitted?: number;
1902
+ impressions_at_risk?: number;
1903
+ clicks_at_risk?: number;
1904
+ share_of_impressions_at_risk?: number;
1905
+ unverified_with_impressions?: number;
1906
+ throttled_not_assessed?: number;
1907
+ max_pages?: number;
1908
+ scan_truncated?: boolean;
1909
+ pages?: TrafficAtRiskPage[];
1910
+ };
1911
+ /** TypeRequest */
1912
+ type TypeRequest = {
1913
+ /** Session id returned by /sessions or navigate */
1914
+ session_id: string;
1915
+ selector: string;
1916
+ text: string;
1917
+ clear_first?: boolean;
1918
+ press_enter?: boolean;
1919
+ timeout_ms?: number;
1920
+ };
1921
+ /** TypeResult */
1922
+ type TypeResult = {
1923
+ success: boolean;
1924
+ session_id?: string | null;
1925
+ error_message?: string | null;
1926
+ error_type?: string | null;
1927
+ truncated?: boolean;
1928
+ total_chars?: number;
1929
+ selector?: string | null;
1930
+ typed?: string | null;
1931
+ url?: string | null;
1932
+ text_preview?: string | null;
1933
+ };
1934
+ /** TypeTextCommand */
1935
+ type TypeTextCommand = {
1936
+ command?: "type_text";
1937
+ selector: string;
1938
+ text: string;
1939
+ clear_first?: boolean;
1940
+ press_enter?: boolean;
1941
+ timeout_ms?: number;
1942
+ };
1943
+ /** UpdateDeviceRequest */
1944
+ type UpdateDeviceRequest = {
1945
+ enabled?: boolean | null;
1946
+ display_name?: string | null;
1947
+ };
1948
+ /** One named UA choice as a client renders it. */
1949
+ type UserAgentPresetRecord = {
1950
+ key: string;
1951
+ label: string;
1952
+ description: string;
1953
+ value?: string | null;
1954
+ };
1955
+ /** UserAgentPresetsResponse */
1956
+ type UserAgentPresetsResponse = {
1957
+ presets: UserAgentPresetRecord[];
1958
+ max_length?: number;
1959
+ };
1960
+ /** ViewportBlock */
1961
+ type ViewportBlock = {
1962
+ width: number;
1963
+ height: number;
1964
+ resize_negotiation?: "disabled";
1965
+ };
1966
+ /** WaitForCommand */
1967
+ type WaitForCommand = {
1968
+ command?: "wait_for";
1969
+ selector?: string | null;
1970
+ text?: string | null;
1971
+ state?: "visible" | "attached" | "detached" | "hidden";
1972
+ timeout_ms?: number;
1973
+ };
1974
+ /** WaitForDownloadCommand */
1975
+ type WaitForDownloadCommand = {
1976
+ command?: "wait_for_download";
1977
+ download_id: string;
1978
+ timeout_ms?: number;
1979
+ };
1980
+ /** WaitForRequest */
1981
+ type WaitForRequest = {
1982
+ /** Session id returned by /sessions or navigate */
1983
+ session_id: string;
1984
+ selector?: string | null;
1985
+ text?: string | null;
1986
+ state?: string;
1987
+ timeout_ms?: number;
1988
+ };
1989
+ /** WaitForResult */
1990
+ type WaitForResult = {
1991
+ success: boolean;
1992
+ session_id?: string | null;
1993
+ error_message?: string | null;
1994
+ error_type?: string | null;
1995
+ waited_for?: string | null;
1996
+ url?: string | null;
1997
+ };
1998
+ /** S2 §9.1. Carries NO resolver detail and NO page content — the same rule the */
1999
+ type WorkerError = {
2000
+ code: "browser_controlled_by_human" | "stale_fencing_token" | "unknown_fencing_revision" | "queue_draining" | "worker_shutting_down" | "not_bootstrapped" | "bootstrap_in_progress" | "already_bootstrapped" | "run_mismatch" | "profile_mismatch" | "lease_expired" | "access_revoked" | "sequence_out_of_order" | "sequence_conflict" | "sequence_too_old" | "sequence_required" | "sequence_not_permitted" | "illegal_controller_transition" | "controller_transition_conflict" | "command_not_supported" | "invalid_command_arguments" | "parameter_not_available_on_persistent_run" | "eval_js_not_permitted" | "unknown_page" | "unknown_dialog" | "command_deadline_exceeded" | "capture_target_missing" | "capture_upload_failed" | "checkpoint_in_progress" | "checkpoint_failed" | "chromium_unclean_exit" | "profile_locked_locally" | "browser_crashed" | "worker_degraded" | "reopen_required" | "unauthorized_worker_call" | "audience_mismatch" | "credential_expired" | "credential_replayed";
2001
+ message: string;
2002
+ retryable: boolean;
2003
+ stage?: string | null;
2004
+ retry_after_ms?: number | null;
2005
+ current_fencing_revision?: number | null;
2006
+ current_controller?: string | null;
2007
+ last_sequence_applied?: number | null;
2008
+ conflicting_handoff_id?: string | null;
2009
+ };
2010
+ /** TypeResult */
2011
+ type aidream__services__authenticator__seams__TypeResult = {
2012
+ status: string;
2013
+ confidence?: number;
2014
+ detail?: string | null;
2015
+ };
2016
+ /** TypeResult */
2017
+ type matrx_scraper__ai_browser__actions__TypeResult = {
2018
+ success: boolean;
2019
+ session_id?: string | null;
2020
+ error_message?: string | null;
2021
+ error_type?: string | null;
2022
+ truncated?: boolean;
2023
+ total_chars?: number;
2024
+ selector?: string | null;
2025
+ typed?: string | null;
2026
+ url?: string | null;
2027
+ text_preview?: string | null;
2028
+ };
2029
+ type LinkPreviewArgs = {
2030
+ query: {
2031
+ url: string;
2032
+ };
2033
+ };
2034
+ type LinkPreviewResult = LinkPreview;
2035
+ /** Link Preview */
2036
+ /** `GET /web/link-preview` · aidream · auth guest · org required */
2037
+ declare function linkPreview(api: Api, args: LinkPreviewArgs, options?: CallOptions): Promise<LinkPreviewResult>;
2038
+ type ListDevicesArgs = {
2039
+ [key: string]: never;
2040
+ };
2041
+ type ListDevicesResult = {
2042
+ [key: string]: JsonValue;
2043
+ };
2044
+ /** List Devices */
2045
+ /** `GET /egress/devices` · aidream · auth user · org required */
2046
+ declare function listDevices(api: Api, args?: ListDevicesArgs, options?: CallOptions): Promise<ListDevicesResult>;
2047
+ type RegisterDeviceArgs = {
2048
+ body: RegisterDeviceRequest;
2049
+ };
2050
+ type RegisterDeviceResult = {
2051
+ [key: string]: JsonValue;
2052
+ };
2053
+ /** Register Device */
2054
+ /** `POST /egress/devices` · aidream · auth user · org required */
2055
+ declare function registerDevice(api: Api, args: RegisterDeviceArgs, options?: CallOptions): Promise<RegisterDeviceResult>;
2056
+ type PatchDeviceArgs = {
2057
+ path: {
2058
+ device_id: string;
2059
+ };
2060
+ body: UpdateDeviceRequest;
2061
+ };
2062
+ type PatchDeviceResult = {
2063
+ [key: string]: JsonValue;
2064
+ };
2065
+ /** Patch Device */
2066
+ /** `PATCH /egress/devices/{device_id}` · aidream · auth user · org required */
2067
+ declare function patchDevice(api: Api, args: PatchDeviceArgs, options?: CallOptions): Promise<PatchDeviceResult>;
2068
+ type RemoveDeviceArgs = {
2069
+ path: {
2070
+ device_id: string;
2071
+ };
2072
+ };
2073
+ type RemoveDeviceResult = {
2074
+ [key: string]: JsonValue;
2075
+ };
2076
+ /** Remove Device */
2077
+ /** `DELETE /egress/devices/{device_id}` · aidream · auth user · org required */
2078
+ declare function removeDevice(api: Api, args: RemoveDeviceArgs, options?: CallOptions): Promise<RemoveDeviceResult>;
2079
+ type CreatePairingArgs = {
2080
+ body: RegisterDeviceRequest;
2081
+ };
2082
+ type CreatePairingResult = {
2083
+ [key: string]: JsonValue;
2084
+ };
2085
+ /** Create Pairing */
2086
+ /** `POST /egress/pairings` · aidream · auth public · org required */
2087
+ declare function createPairing(api: Api, args: CreatePairingArgs, options?: CallOptions): Promise<CreatePairingResult>;
2088
+ type PollPairingArgs = {
2089
+ path: {
2090
+ pairing_id: string;
2091
+ };
2092
+ };
2093
+ type PollPairingResult = {
2094
+ [key: string]: JsonValue;
2095
+ };
2096
+ /** Poll Pairing */
2097
+ /** `GET /egress/pairings/{pairing_id}` · aidream · auth public · org required */
2098
+ declare function pollPairing(api: Api, args: PollPairingArgs, options?: CallOptions): Promise<PollPairingResult>;
2099
+ type DescribePairingArgs = {
2100
+ path: {
2101
+ user_code: string;
2102
+ };
2103
+ };
2104
+ type DescribePairingResult = {
2105
+ [key: string]: JsonValue;
2106
+ };
2107
+ /** Describe Pairing */
2108
+ /** `GET /egress/pairings/by-code/{user_code}` · aidream · auth user · org required */
2109
+ declare function describePairing(api: Api, args: DescribePairingArgs, options?: CallOptions): Promise<DescribePairingResult>;
2110
+ type ApprovePairingArgs = {
2111
+ path: {
2112
+ user_code: string;
2113
+ };
2114
+ };
2115
+ type ApprovePairingResult = {
2116
+ [key: string]: JsonValue;
2117
+ };
2118
+ /** Approve Pairing */
2119
+ /** `POST /egress/pairings/by-code/{user_code}/approve` · aidream · auth user · org required */
2120
+ declare function approvePairing(api: Api, args: ApprovePairingArgs, options?: CallOptions): Promise<ApprovePairingResult>;
2121
+ type DenyPairingArgs = {
2122
+ path: {
2123
+ user_code: string;
2124
+ };
2125
+ };
2126
+ type DenyPairingResult = {
2127
+ [key: string]: JsonValue;
2128
+ };
2129
+ /** Deny Pairing */
2130
+ /** `POST /egress/pairings/by-code/{user_code}/deny` · aidream · auth user · org required */
2131
+ declare function denyPairing(api: Api, args: DenyPairingArgs, options?: CallOptions): Promise<DenyPairingResult>;
2132
+ type MintTicketArgs = {
2133
+ body: MintTicketRequest;
2134
+ };
2135
+ type MintTicketResult = {
2136
+ [key: string]: JsonValue;
2137
+ };
2138
+ /** Mint Ticket */
2139
+ /** `POST /egress/tickets` · aidream · auth user · org required */
2140
+ declare function mintTicket(api: Api, args: MintTicketArgs, options?: CallOptions): Promise<MintTicketResult>;
2141
+ type EgressStatusArgs = {
2142
+ [key: string]: never;
2143
+ };
2144
+ type EgressStatusResult = {
2145
+ [key: string]: JsonValue;
2146
+ };
2147
+ /** Egress Status */
2148
+ /** `GET /egress/status` · aidream · auth user · org required */
2149
+ declare function egressStatus(api: Api, args?: EgressStatusArgs, options?: CallOptions): Promise<EgressStatusResult>;
2150
+ type PageCaptureOpArgs = {
2151
+ body: PageCaptureRequest;
2152
+ };
2153
+ type PageCaptureOpResult = PageCaptureResult;
2154
+ /** Capture and parse one public page into the durable scrape cache */
2155
+ /** `POST /scraper/page-capture` · aidream · auth guest · org required */
2156
+ declare function pageCapture(api: Api, args: PageCaptureOpArgs, options?: CallOptions): Promise<PageCaptureOpResult>;
2157
+ type BrowserFetchOpArgs = {
2158
+ body: BrowserFetchRequest;
2159
+ };
2160
+ type BrowserFetchOpResult = BrowserFetchResult;
2161
+ /** Render ONE URL in the pooled browser and return its HTML */
2162
+ /** `POST /scraper/browser-fetch` · aidream · auth guest · org required */
2163
+ declare function browserFetch(api: Api, args: BrowserFetchOpArgs, options?: CallOptions): Promise<BrowserFetchOpResult>;
2164
+ type BrowserInspectOpArgs = {
2165
+ body: BrowserInspectRequest;
2166
+ };
2167
+ type BrowserInspectOpResult = BrowserInspectResult;
2168
+ /** Navigate ONE URL in the pooled browser and report render evidence */
2169
+ /** `POST /scraper/browser-inspect` · aidream · auth guest · org required */
2170
+ declare function browserInspect(api: Api, args: BrowserInspectOpArgs, options?: CallOptions): Promise<BrowserInspectOpResult>;
2171
+ type QuickScrapeArgs = {
2172
+ body: QuickScrapeRequest;
2173
+ };
2174
+ type QuickScrapeResult = unknown;
2175
+ /** Quick Scrape */
2176
+ /** `POST /scraper/quick-scrape` · aidream · auth guest · org required · ndjson */
2177
+ declare function quickScrape(api: Api, args: QuickScrapeArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
2178
+ type SearchKeywordsArgs = {
2179
+ body: SearchKeywordsRequest;
2180
+ };
2181
+ type SearchKeywordsResult = unknown;
2182
+ /** Search Keywords */
2183
+ /** `POST /scraper/search` · aidream · auth guest · org required · ndjson */
2184
+ declare function searchKeywords(api: Api, args: SearchKeywordsArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
2185
+ type SearchAndScrapeArgs = {
2186
+ body: SearchAndScrapeRequest;
2187
+ };
2188
+ type SearchAndScrapeResult = unknown;
2189
+ /** Search And Scrape */
2190
+ /** `POST /scraper/search-and-scrape` · aidream · auth guest · org required · ndjson */
2191
+ declare function searchAndScrape(api: Api, args: SearchAndScrapeArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
2192
+ type SearchAndScrapeLimitedArgs = {
2193
+ body: SearchAndScrapeLimitedRequest;
2194
+ };
2195
+ type SearchAndScrapeLimitedResult = unknown;
2196
+ /** Search And Scrape Limited */
2197
+ /** `POST /scraper/search-and-scrape-limited` · aidream · auth guest · org required · ndjson */
2198
+ declare function searchAndScrapeLimited(api: Api, args: SearchAndScrapeLimitedArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
2199
+ type BatchScrapeArgs = {
2200
+ body: BatchScrapeRequest;
2201
+ };
2202
+ type BatchScrapeResult = BatchScrapeResponse;
2203
+ /** Batch Scrape */
2204
+ /** `POST /scraper/batch` · aidream · auth guest · org required */
2205
+ declare function batchScrape(api: Api, args: BatchScrapeArgs, options?: CallOptions): Promise<BatchScrapeResult>;
2206
+ type ContentSaveArgs = {
2207
+ body: ContentSaveRequest;
2208
+ };
2209
+ type ContentSaveResult = {
2210
+ [key: string]: unknown;
2211
+ };
2212
+ /** Content Save */
2213
+ /** `POST /scraper/content/save` · aidream · auth guest · org required */
2214
+ declare function contentSave(api: Api, args: ContentSaveArgs, options?: CallOptions): Promise<ContentSaveResult>;
2215
+ type QueuePendingArgs = {
2216
+ query?: {
2217
+ tier?: string;
2218
+ limit?: number;
2219
+ domain?: string | null;
2220
+ };
2221
+ };
2222
+ type QueuePendingResult = {
2223
+ [key: string]: unknown;
2224
+ };
2225
+ /** Queue Pending */
2226
+ /** `GET /scraper/queue/pending` · aidream · auth guest · org required */
2227
+ declare function queuePending(api: Api, args?: QueuePendingArgs, options?: CallOptions): Promise<QueuePendingResult>;
2228
+ type QueueClaimArgs = {
2229
+ body: RetryClaimRequest;
2230
+ };
2231
+ type QueueClaimResult = {
2232
+ [key: string]: string[];
2233
+ };
2234
+ /** Queue Claim */
2235
+ /** `POST /scraper/queue/claim` · aidream · auth guest · org required */
2236
+ declare function queueClaim(api: Api, args: QueueClaimArgs, options?: CallOptions): Promise<QueueClaimResult>;
2237
+ type QueueSubmitArgs = {
2238
+ body: RetrySubmitRequest;
2239
+ };
2240
+ type QueueSubmitResult = {
2241
+ [key: string]: boolean;
2242
+ };
2243
+ /** Queue Submit */
2244
+ /** `POST /scraper/queue/submit` · aidream · auth guest · org required */
2245
+ declare function queueSubmit(api: Api, args: QueueSubmitArgs, options?: CallOptions): Promise<QueueSubmitResult>;
2246
+ type QueueFailArgs = {
2247
+ body: RetryFailRequest;
2248
+ };
2249
+ type QueueFailResult = {
2250
+ [key: string]: boolean;
2251
+ };
2252
+ /** Queue Fail */
2253
+ /** `POST /scraper/queue/fail` · aidream · auth guest · org required */
2254
+ declare function queueFail(api: Api, args: QueueFailArgs, options?: CallOptions): Promise<QueueFailResult>;
2255
+ type QueueStatsArgs = {
2256
+ [key: string]: never;
2257
+ };
2258
+ type QueueStatsResult = {
2259
+ [key: string]: unknown;
2260
+ };
2261
+ /** Queue Stats */
2262
+ /** `GET /scraper/queue/stats` · aidream · auth guest · org required */
2263
+ declare function queueStats(api: Api, args?: QueueStatsArgs, options?: CallOptions): Promise<QueueStatsResult>;
2264
+ type ListDomainsArgs = {
2265
+ [key: string]: never;
2266
+ };
2267
+ type ListDomainsResult = {
2268
+ [key: string]: unknown;
2269
+ };
2270
+ /** List Domains */
2271
+ /** `GET /scraper/config/domains` · aidream · auth guest · org required */
2272
+ declare function listDomains(api: Api, args?: ListDomainsArgs, options?: CallOptions): Promise<ListDomainsResult>;
2273
+ type UpsertDomainArgs = {
2274
+ body: DomainUpsertRequest;
2275
+ };
2276
+ type UpsertDomainResult = {
2277
+ [key: string]: unknown;
2278
+ };
2279
+ /** Upsert Domain */
2280
+ /** `POST /scraper/config/domains` · aidream · auth guest · org required */
2281
+ declare function upsertDomain(api: Api, args: UpsertDomainArgs, options?: CallOptions): Promise<UpsertDomainResult>;
2282
+ type VerifyLocalLifecycleArgs = {
2283
+ [key: string]: never;
2284
+ };
2285
+ type VerifyLocalLifecycleResult = unknown;
2286
+ /** Verify Local Lifecycle */
2287
+ /** `POST /browser-manager/local/verify` · aidream · auth guest · org required */
2288
+ declare function verifyLocalLifecycle(api: Api, args?: VerifyLocalLifecycleArgs, options?: CallOptions): Promise<VerifyLocalLifecycleResult>;
2289
+ type AcknowledgeLocalLifecycleArgs = {
2290
+ [key: string]: never;
2291
+ };
2292
+ type AcknowledgeLocalLifecycleResult = unknown;
2293
+ /** Acknowledge Local Lifecycle */
2294
+ /** `POST /browser-manager/local/ack` · aidream · auth guest · org required */
2295
+ declare function acknowledgeLocalLifecycle(api: Api, args?: AcknowledgeLocalLifecycleArgs, options?: CallOptions): Promise<AcknowledgeLocalLifecycleResult>;
2296
+ type VerifyLocalTransportArgs = {
2297
+ [key: string]: never;
2298
+ };
2299
+ type VerifyLocalTransportResult = LocalTransportVerifyResponse;
2300
+ /** Verify Local Transport */
2301
+ /** `POST /browser-manager/local/transport/verify` · aidream · auth guest · org required */
2302
+ declare function verifyLocalTransport(api: Api, args?: VerifyLocalTransportArgs, options?: CallOptions): Promise<VerifyLocalTransportResult>;
2303
+ type LocalCommandApprovalArgs = {
2304
+ [key: string]: never;
2305
+ };
2306
+ type LocalCommandApprovalResult = LocalApprovalResponse;
2307
+ /** Local Command Approval */
2308
+ /** `POST /browser-manager/local/approval` · aidream · auth guest · org required */
2309
+ declare function localCommandApproval(api: Api, args?: LocalCommandApprovalArgs, options?: CallOptions): Promise<LocalCommandApprovalResult>;
2310
+ type ClaimLocalCommandArgs = {
2311
+ [key: string]: never;
2312
+ };
2313
+ type ClaimLocalCommandResult = LocalCommandClaimResponse;
2314
+ /** Claim Local Command */
2315
+ /** `POST /browser-manager/local/commands/claim` · aidream · auth guest · org required */
2316
+ declare function claimLocalCommand(api: Api, args?: ClaimLocalCommandArgs, options?: CallOptions): Promise<ClaimLocalCommandResult>;
2317
+ type CompleteLocalCommandArgs = {
2318
+ [key: string]: never;
2319
+ };
2320
+ type CompleteLocalCommandResult = LocalCommandCompleteResponse;
2321
+ /** Complete Local Command */
2322
+ /** `POST /browser-manager/local/commands/complete` · aidream · auth guest · org required */
2323
+ declare function completeLocalCommand(api: Api, args?: CompleteLocalCommandArgs, options?: CallOptions): Promise<CompleteLocalCommandResult>;
2324
+ type CreateProfileArgs = {
2325
+ body: CreateProfileRequest;
2326
+ };
2327
+ type CreateProfileResult = ProfileView;
2328
+ /** Create Profile */
2329
+ /** `POST /browser-manager/profiles` · aidream · auth guest · org required */
2330
+ declare function createProfile(api: Api, args: CreateProfileArgs, options?: CallOptions): Promise<CreateProfileResult>;
2331
+ type StartRunArgs = {
2332
+ body: StartRunRequest;
2333
+ };
2334
+ type StartRunResult = StartRunResponse;
2335
+ /** Start Run */
2336
+ /** `POST /browser-manager/runs` · aidream · auth guest · org required */
2337
+ declare function startRun(api: Api, args: StartRunArgs, options?: CallOptions): Promise<StartRunResult>;
2338
+ type StopRunArgs = {
2339
+ path: {
2340
+ run_id: string;
2341
+ };
2342
+ };
2343
+ type StopRunResult = StopRunResponse;
2344
+ /** Stop Run */
2345
+ /** `POST /browser-manager/runs/{run_id}/stop` · aidream · auth guest · org required */
2346
+ declare function stopRun(api: Api, args: StopRunArgs, options?: CallOptions): Promise<StopRunResult>;
2347
+ type RetryThroughHomeComputerArgs = {
2348
+ path: {
2349
+ run_id: string;
2350
+ };
2351
+ };
2352
+ type RetryThroughHomeComputerResult = RetryThroughHomeComputerResponse;
2353
+ /** Retry Through Home Computer */
2354
+ /** `POST /browser-manager/runs/{run_id}/retry-through-home-computer` · aidream · auth guest · org required */
2355
+ declare function retryThroughHomeComputer(api: Api, args: RetryThroughHomeComputerArgs, options?: CallOptions): Promise<RetryThroughHomeComputerResult>;
2356
+ type RequestControlArgs = {
2357
+ path: {
2358
+ run_id: string;
2359
+ };
2360
+ };
2361
+ type RequestControlResult = ControlRequestResponse;
2362
+ /** Request Control */
2363
+ /** `POST /browser-manager/runs/{run_id}/control-requests` · aidream · auth guest · org required */
2364
+ declare function requestControl(api: Api, args: RequestControlArgs, options?: CallOptions): Promise<RequestControlResult>;
2365
+ type TakeOverArgs = {
2366
+ path: {
2367
+ run_id: string;
2368
+ };
2369
+ body?: TakeoverRequest | null;
2370
+ };
2371
+ type TakeOverResult = TakeoverResponse;
2372
+ /** Take Over */
2373
+ /** `POST /browser-manager/runs/{run_id}/takeover` · aidream · auth guest · org required */
2374
+ declare function takeOver(api: Api, args: TakeOverArgs, options?: CallOptions): Promise<TakeOverResult>;
2375
+ type ReleaseControlArgs = {
2376
+ path: {
2377
+ run_id: string;
2378
+ };
2379
+ };
2380
+ type ReleaseControlResult = ReleaseControlResponse;
2381
+ /** Release Control */
2382
+ /** `POST /browser-manager/runs/{run_id}/release-control` · aidream · auth guest · org required */
2383
+ declare function releaseControl(api: Api, args: ReleaseControlArgs, options?: CallOptions): Promise<ReleaseControlResult>;
2384
+ type DismissHandoffArgs = {
2385
+ path: {
2386
+ run_id: string;
2387
+ };
2388
+ };
2389
+ type DismissHandoffResult = ReleaseControlResponse;
2390
+ /** Dismiss Handoff */
2391
+ /** `POST /browser-manager/runs/{run_id}/dismiss-handoff` · aidream · auth guest · org required */
2392
+ declare function dismissHandoff(api: Api, args: DismissHandoffArgs, options?: CallOptions): Promise<DismissHandoffResult>;
2393
+ type OpsSnapshotArgs = {
2394
+ [key: string]: never;
2395
+ };
2396
+ type OpsSnapshotResult = OpsSnapshotResponse;
2397
+ /** Ops Snapshot */
2398
+ /** `GET /browser-manager/ops/snapshot` · aidream · auth guest · org required */
2399
+ declare function opsSnapshot(api: Api, args?: OpsSnapshotArgs, options?: CallOptions): Promise<OpsSnapshotResult>;
2400
+ type CaptureScreenshotArgs = {
2401
+ path: {
2402
+ run_id: string;
2403
+ };
2404
+ };
2405
+ type CaptureScreenshotResult = ScreenshotResponse;
2406
+ /** Capture Screenshot */
2407
+ /** `POST /browser-manager/runs/{run_id}/screenshot` · aidream · auth guest · org required */
2408
+ declare function captureScreenshot(api: Api, args: CaptureScreenshotArgs, options?: CallOptions): Promise<CaptureScreenshotResult>;
2409
+ type FillHumanLoginArgs = {
2410
+ path: {
2411
+ run_id: string;
2412
+ };
2413
+ body: HumanLoginRequest;
2414
+ };
2415
+ type FillHumanLoginResult = void;
2416
+ /** Fill Human Login */
2417
+ /** `POST /browser-manager/runs/{run_id}/human-login` · aidream · auth guest · org required */
2418
+ declare function fillHumanLogin(api: Api, args: FillHumanLoginArgs, options?: CallOptions): Promise<FillHumanLoginResult>;
2419
+ type FillSavedLoginArgs = {
2420
+ path: {
2421
+ run_id: string;
2422
+ };
2423
+ body: SavedLoginRequest;
2424
+ };
2425
+ type FillSavedLoginResult = void;
2426
+ /** Fill Saved Login */
2427
+ /** `POST /browser-manager/runs/{run_id}/saved-login` · aidream · auth guest · org required */
2428
+ declare function fillSavedLogin(api: Api, args: FillSavedLoginArgs, options?: CallOptions): Promise<FillSavedLoginResult>;
2429
+ type RecordCaptureOutcomeArgs = {
2430
+ path: {
2431
+ run_id: string;
2432
+ };
2433
+ body: CaptureOutcomeRequest;
2434
+ };
2435
+ type RecordCaptureOutcomeResult = CaptureOutcomeResponse;
2436
+ /** Record Capture Outcome */
2437
+ /** `POST /browser-manager/runs/{run_id}/capture-result` · aidream · auth guest · org required */
2438
+ declare function recordCaptureOutcome(api: Api, args: RecordCaptureOutcomeArgs, options?: CallOptions): Promise<RecordCaptureOutcomeResult>;
2439
+ type FillAuthenticatorCodeArgs = {
2440
+ path: {
2441
+ run_id: string;
2442
+ };
2443
+ body: AuthenticatorFillRequest;
2444
+ };
2445
+ type FillAuthenticatorCodeResult = aidream__services__authenticator__seams__TypeResult;
2446
+ /** Fill Authenticator Code */
2447
+ /** `POST /browser-manager/runs/{run_id}/authenticator` · aidream · auth guest · org required */
2448
+ declare function fillAuthenticatorCode(api: Api, args: FillAuthenticatorCodeArgs, options?: CallOptions): Promise<FillAuthenticatorCodeResult>;
2449
+ type MintStreamTicketArgs = {
2450
+ path: {
2451
+ run_id: string;
2452
+ };
2453
+ body: MintControlRequest;
2454
+ };
2455
+ type MintStreamTicketResult = MintResponse;
2456
+ /** Mint Stream Ticket */
2457
+ /** `POST /browser-manager/runs/{run_id}/stream-ticket` · aidream · auth guest · org required */
2458
+ declare function mintStreamTicket(api: Api, args: MintStreamTicketArgs, options?: CallOptions): Promise<MintStreamTicketResult>;
2459
+ type SandboxStartRunArgs = {
2460
+ body: StartRunRequest;
2461
+ };
2462
+ type SandboxStartRunResult = StartRunResponse;
2463
+ /** Sandbox Start Run */
2464
+ /** `POST /browser-manager/internal/sandbox/runs` · aidream · auth service · org required */
2465
+ declare function sandboxStartRun(api: Api, args: SandboxStartRunArgs, options?: CallOptions): Promise<SandboxStartRunResult>;
2466
+ type SandboxCommandArgs = {
2467
+ path: {
2468
+ run_id: string;
2469
+ };
2470
+ body: SandboxCommandRequest;
2471
+ };
2472
+ type SandboxCommandResult = CommandResponse;
2473
+ /** Sandbox Command */
2474
+ /** `POST /browser-manager/internal/sandbox/runs/{run_id}/command` · aidream · auth service · org required */
2475
+ declare function sandboxCommand(api: Api, args: SandboxCommandArgs, options?: CallOptions): Promise<SandboxCommandResult>;
2476
+ type SandboxCaptureArgs = {
2477
+ path: {
2478
+ run_id: string;
2479
+ };
2480
+ };
2481
+ type SandboxCaptureResult = CaptureResponse;
2482
+ /** Sandbox Capture */
2483
+ /** `POST /browser-manager/internal/sandbox/runs/{run_id}/capture` · aidream · auth service · org required */
2484
+ declare function sandboxCapture(api: Api, args: SandboxCaptureArgs, options?: CallOptions): Promise<SandboxCaptureResult>;
2485
+ type SandboxStopRunArgs = {
2486
+ path: {
2487
+ run_id: string;
2488
+ };
2489
+ };
2490
+ type SandboxStopRunResult = StopRunResponse;
2491
+ /** Sandbox Stop Run */
2492
+ /** `POST /browser-manager/internal/sandbox/runs/{run_id}/stop` · aidream · auth service · org required */
2493
+ declare function sandboxStopRun(api: Api, args: SandboxStopRunArgs, options?: CallOptions): Promise<SandboxStopRunResult>;
2494
+ type ClaimStreamArgs = {
2495
+ path: {
2496
+ stream_session_id: string;
2497
+ };
2498
+ body: ClaimRequest;
2499
+ };
2500
+ type ClaimStreamResult = void;
2501
+ /** Claim Stream */
2502
+ /** `POST /cb-{stream_session_id}/claim` · aidream · auth user · org required */
2503
+ declare function claimStream(api: Api, args: ClaimStreamArgs, options?: CallOptions): Promise<ClaimStreamResult>;
2504
+ type RenewStreamArgs = {
2505
+ path: {
2506
+ stream_session_id: string;
2507
+ };
2508
+ };
2509
+ type RenewStreamResult = void;
2510
+ /** Renew Stream */
2511
+ /** `POST /cb-{stream_session_id}/renew` · aidream · auth user · org required */
2512
+ declare function renewStream(api: Api, args: RenewStreamArgs, options?: CallOptions): Promise<RenewStreamResult>;
2513
+ type MintControlArgs = {
2514
+ path: {
2515
+ handoff_id: string;
2516
+ };
2517
+ body: MintControlRequest;
2518
+ };
2519
+ type MintControlResult = unknown;
2520
+ /** Mint Control */
2521
+ /** `POST /browser-manager/handoffs/{handoff_id}/stream-ticket` · cloud-browser-streaming · auth user · org exempt */
2522
+ declare function mintControl(api: Api, args: MintControlArgs, options?: CallOptions): Promise<MintControlResult>;
2523
+ type MintViewArgs = {
2524
+ path: {
2525
+ run_id: string;
2526
+ };
2527
+ body: MintViewRequest;
2528
+ };
2529
+ type MintViewResult = unknown;
2530
+ /** Mint View */
2531
+ /** `POST /browser-manager/runs/{run_id}/stream-ticket` · cloud-browser-streaming · auth user · org exempt */
2532
+ declare function mintView(api: Api, args: MintViewArgs, options?: CallOptions): Promise<MintViewResult>;
2533
+ type ReleaseArgs = {
2534
+ path: {
2535
+ run_id: string;
2536
+ };
2537
+ body: ReleaseRequest;
2538
+ };
2539
+ type ReleaseResult = unknown;
2540
+ /** Release */
2541
+ /** `POST /browser-manager/runs/{run_id}/release-control` · cloud-browser-streaming · auth user · org exempt */
2542
+ declare function release(api: Api, args: ReleaseArgs, options?: CallOptions): Promise<ReleaseResult>;
2543
+ type RevokeArgs = {
2544
+ path: {
2545
+ run_id: string;
2546
+ };
2547
+ body: RevokeRequest;
2548
+ };
2549
+ type RevokeResult = unknown;
2550
+ /** Revoke */
2551
+ /** `POST /browser-manager/runs/{run_id}/revoke-control` · cloud-browser-streaming · auth user · org exempt */
2552
+ declare function revoke(api: Api, args: RevokeArgs, options?: CallOptions): Promise<RevokeResult>;
2553
+ type ClaimArgs = {
2554
+ path: {
2555
+ stream_session_id: string;
2556
+ };
2557
+ body: ClaimRequest;
2558
+ };
2559
+ type ClaimResult = unknown;
2560
+ /** Claim */
2561
+ /** `POST /stream/{stream_session_id}/claim` · cloud-browser-streaming · auth user · org exempt */
2562
+ declare function claim(api: Api, args: ClaimArgs, options?: CallOptions): Promise<ClaimResult>;
2563
+ type RenewArgs = {
2564
+ path: {
2565
+ stream_session_id: string;
2566
+ };
2567
+ body: RenewRequest;
2568
+ };
2569
+ type RenewResult = unknown;
2570
+ /** Renew */
2571
+ /** `POST /stream/{stream_session_id}/renew` · cloud-browser-streaming · auth user · org exempt */
2572
+ declare function renew(api: Api, args: RenewArgs, options?: CallOptions): Promise<RenewResult>;
2573
+ type HealthArgs = {
2574
+ [key: string]: never;
2575
+ };
2576
+ type HealthResult = {
2577
+ [key: string]: unknown;
2578
+ };
2579
+ /** Health */
2580
+ /** `GET /health` · cloud-browser-worker · auth public · org exempt */
2581
+ declare function health(api: Api, args?: HealthArgs, options?: CallOptions): Promise<HealthResult>;
2582
+ type BootstrapArgs = {
2583
+ body: BootstrapRequest;
2584
+ };
2585
+ type BootstrapResult = BootstrapResponse;
2586
+ /** Bootstrap */
2587
+ /** `POST /bootstrap` · cloud-browser-worker · auth service · org exempt */
2588
+ declare function bootstrap(api: Api, args: BootstrapArgs, options?: CallOptions): Promise<BootstrapResult>;
2589
+ type HeartbeatArgs = {
2590
+ body: HeartbeatRequest;
2591
+ };
2592
+ type HeartbeatResult = HeartbeatResponse;
2593
+ /** Heartbeat */
2594
+ /** `POST /heartbeat` · cloud-browser-worker · auth service · org exempt */
2595
+ declare function heartbeat(api: Api, args: HeartbeatArgs, options?: CallOptions): Promise<HeartbeatResult>;
2596
+ type CommandArgs = {
2597
+ body: CommandRequest;
2598
+ };
2599
+ type CommandResult = CommandResponse_CloudBrowserWorker;
2600
+ /** Command */
2601
+ /** `POST /command` · cloud-browser-worker · auth service · org exempt */
2602
+ declare function command(api: Api, args: CommandArgs, options?: CallOptions): Promise<CommandResult>;
2603
+ type ObserveArgs = {
2604
+ body: ObserveRequest;
2605
+ };
2606
+ type ObserveResult = ObserveResponse;
2607
+ /** Observe */
2608
+ /** `POST /observe` · cloud-browser-worker · auth service · org exempt */
2609
+ declare function observe(api: Api, args: ObserveArgs, options?: CallOptions): Promise<ObserveResult>;
2610
+ type CaptureArgs = {
2611
+ body: CaptureRequest;
2612
+ };
2613
+ type CaptureResult = CaptureResponse;
2614
+ /** Capture */
2615
+ /** `POST /capture` · cloud-browser-worker · auth service · org exempt */
2616
+ declare function capture(api: Api, args: CaptureArgs, options?: CallOptions): Promise<CaptureResult>;
2617
+ type ControllerTransitionArgs = {
2618
+ body: ControllerTransitionRequest;
2619
+ };
2620
+ type ControllerTransitionResult = ControllerTransitionResponse;
2621
+ /** Controller Transition */
2622
+ /** `POST /controller-transition` · cloud-browser-worker · auth service · org exempt */
2623
+ declare function controllerTransition(api: Api, args: ControllerTransitionArgs, options?: CallOptions): Promise<ControllerTransitionResult>;
2624
+ type CheckpointArgs = {
2625
+ body: CheckpointRequest;
2626
+ };
2627
+ type CheckpointResult = CheckpointResponse;
2628
+ /** Checkpoint */
2629
+ /** `POST /checkpoint` · cloud-browser-worker · auth service · org exempt */
2630
+ declare function checkpoint(api: Api, args: CheckpointArgs, options?: CallOptions): Promise<CheckpointResult>;
2631
+ type ShutdownArgs = {
2632
+ body: ShutdownRequest;
2633
+ };
2634
+ type ShutdownResult = ShutdownResponse;
2635
+ /** Shutdown */
2636
+ /** `POST /shutdown` · cloud-browser-worker · auth service · org exempt */
2637
+ declare function shutdown(api: Api, args: ShutdownArgs, options?: CallOptions): Promise<ShutdownResult>;
2638
+ type BrowserRuntimeStatusArgs = {
2639
+ [key: string]: never;
2640
+ };
2641
+ type BrowserRuntimeStatusResult = {
2642
+ [key: string]: unknown;
2643
+ };
2644
+ /** Browser Runtime Status */
2645
+ /** `GET /browser-runtime/status` · matrx-local · auth loopback_open · org exempt */
2646
+ declare function browserRuntimeStatus(api: Api, args?: BrowserRuntimeStatusArgs, options?: CallOptions): Promise<BrowserRuntimeStatusResult>;
2647
+ type InstallBrowserRuntimeArgs = {
2648
+ [key: string]: never;
2649
+ };
2650
+ type InstallBrowserRuntimeResult = unknown;
2651
+ /** Install Browser Runtime */
2652
+ /** `POST /browser-runtime/install` · matrx-local · auth loopback_open · org exempt · sse */
2653
+ declare function installBrowserRuntime(api: Api, args?: InstallBrowserRuntimeArgs, options?: CallOptions): Promise<ApiStream<SseEvent>>;
2654
+ type RemoteScraperStatusArgs = {
2655
+ [key: string]: never;
2656
+ };
2657
+ type RemoteScraperStatusResult = unknown;
2658
+ /** Remote Scraper Status */
2659
+ /** `GET /remote-scraper/status` · matrx-local · auth public · org exempt */
2660
+ declare function remoteScraperStatus(api: Api, args?: RemoteScraperStatusArgs, options?: CallOptions): Promise<RemoteScraperStatusResult>;
2661
+ type RemoteScrapeArgs = {
2662
+ body: ScrapeRequest;
2663
+ };
2664
+ type RemoteScrapeResult = unknown;
2665
+ /** Remote Scrape */
2666
+ /** `POST /remote-scraper/scrape` · matrx-local · auth loopback_token · org exempt */
2667
+ declare function remoteScrape(api: Api, args: RemoteScrapeArgs, options?: CallOptions): Promise<RemoteScrapeResult>;
2668
+ type RemoteScrapeStreamArgs = {
2669
+ body: ScrapeRequest;
2670
+ };
2671
+ type RemoteScrapeStreamResult = unknown;
2672
+ /** Remote Scrape Stream */
2673
+ /** `POST /remote-scraper/scrape/stream` · matrx-local · auth loopback_token · org exempt · sse */
2674
+ declare function remoteScrapeStream(api: Api, args: RemoteScrapeStreamArgs, options?: CallOptions): Promise<ApiStream<SseEvent>>;
2675
+ type RemoteSearchArgs = {
2676
+ body: SearchRequest;
2677
+ };
2678
+ type RemoteSearchResult = unknown;
2679
+ /** Remote Search */
2680
+ /** `POST /remote-scraper/search` · matrx-local · auth loopback_token · org exempt */
2681
+ declare function remoteSearch(api: Api, args: RemoteSearchArgs, options?: CallOptions): Promise<RemoteSearchResult>;
2682
+ type RemoteSearchAndScrapeArgs = {
2683
+ body: SearchAndScrapeRequest_MatrxLocal;
2684
+ };
2685
+ type RemoteSearchAndScrapeResult = unknown;
2686
+ /** Remote Search And Scrape */
2687
+ /** `POST /remote-scraper/search-and-scrape` · matrx-local · auth loopback_token · org exempt */
2688
+ declare function remoteSearchAndScrape(api: Api, args: RemoteSearchAndScrapeArgs, options?: CallOptions): Promise<RemoteSearchAndScrapeResult>;
2689
+ type RemoteSearchAndScrapeStreamArgs = {
2690
+ body: SearchAndScrapeRequest_MatrxLocal;
2691
+ };
2692
+ type RemoteSearchAndScrapeStreamResult = unknown;
2693
+ /** Remote Search And Scrape Stream */
2694
+ /** `POST /remote-scraper/search-and-scrape/stream` · matrx-local · auth loopback_token · org exempt · sse */
2695
+ declare function remoteSearchAndScrapeStream(api: Api, args: RemoteSearchAndScrapeStreamArgs, options?: CallOptions): Promise<ApiStream<SseEvent>>;
2696
+ type RemoteResearchArgs = {
2697
+ body: ResearchRequest;
2698
+ };
2699
+ type RemoteResearchResult = unknown;
2700
+ /** Remote Research */
2701
+ /** `POST /remote-scraper/research` · matrx-local · auth loopback_token · org exempt */
2702
+ declare function remoteResearch(api: Api, args: RemoteResearchArgs, options?: CallOptions): Promise<RemoteResearchResult>;
2703
+ type RemoteResearchStreamArgs = {
2704
+ body: ResearchRequest;
2705
+ };
2706
+ type RemoteResearchStreamResult = unknown;
2707
+ /** Remote Research Stream */
2708
+ /** `POST /remote-scraper/research/stream` · matrx-local · auth loopback_token · org exempt · sse */
2709
+ declare function remoteResearchStream(api: Api, args: RemoteResearchStreamArgs, options?: CallOptions): Promise<ApiStream<SseEvent>>;
2710
+ type SaveContentArgs = {
2711
+ body: ContentSaveRequest_MatrxLocal;
2712
+ };
2713
+ type SaveContentResult = unknown;
2714
+ /** Save Content */
2715
+ /** `POST /remote-scraper/content/save` · matrx-local · auth loopback_token · org exempt */
2716
+ declare function saveContent(api: Api, args: SaveContentArgs, options?: CallOptions): Promise<SaveContentResult>;
2717
+ type QueuePendingOnMatrxLocalArgs = {
2718
+ query?: {
2719
+ tier?: string;
2720
+ limit?: number;
2721
+ };
2722
+ };
2723
+ type QueuePendingOnMatrxLocalResult = unknown;
2724
+ /** Queue Pending */
2725
+ /** `GET /remote-scraper/queue/pending` · matrx-local · auth loopback_token · org exempt */
2726
+ declare function queuePendingOnMatrxLocal(api: Api, args?: QueuePendingOnMatrxLocalArgs, options?: CallOptions): Promise<QueuePendingOnMatrxLocalResult>;
2727
+ type QueueStatsOnMatrxLocalArgs = {
2728
+ [key: string]: never;
2729
+ };
2730
+ type QueueStatsOnMatrxLocalResult = unknown;
2731
+ /** Queue Stats */
2732
+ /** `GET /remote-scraper/queue/stats` · matrx-local · auth loopback_token · org exempt */
2733
+ declare function queueStatsOnMatrxLocal(api: Api, args?: QueueStatsOnMatrxLocalArgs, options?: CallOptions): Promise<QueueStatsOnMatrxLocalResult>;
2734
+ type QueuePollerStatsArgs = {
2735
+ [key: string]: never;
2736
+ };
2737
+ type QueuePollerStatsResult = unknown;
2738
+ /** Queue Poller Stats */
2739
+ /** `GET /remote-scraper/queue/poller-stats` · matrx-local · auth public · org exempt */
2740
+ declare function queuePollerStats(api: Api, args?: QueuePollerStatsArgs, options?: CallOptions): Promise<QueuePollerStatsResult>;
2741
+ type GetDomainConfigsArgs = {
2742
+ [key: string]: never;
2743
+ };
2744
+ type GetDomainConfigsResult = unknown;
2745
+ /** Get Domain Configs */
2746
+ /** `GET /remote-scraper/config/domains` · matrx-local · auth loopback_token · org exempt */
2747
+ declare function getDomainConfigs(api: Api, args?: GetDomainConfigsArgs, options?: CallOptions): Promise<GetDomainConfigsResult>;
2748
+ type EgressStatusOnMatrxLocalArgs = {
2749
+ [key: string]: never;
2750
+ };
2751
+ type EgressStatusOnMatrxLocalResult = EgressStatus;
2752
+ /** Egress Status */
2753
+ /** `GET /egress/status` · matrx-local · auth loopback_token · org exempt */
2754
+ declare function egressStatusOnMatrxLocal(api: Api, args?: EgressStatusOnMatrxLocalArgs, options?: CallOptions): Promise<EgressStatusOnMatrxLocalResult>;
2755
+ type EgressEnableArgs = {
2756
+ [key: string]: never;
2757
+ };
2758
+ type EgressEnableResult = EgressStatus;
2759
+ /** Egress Enable */
2760
+ /** `POST /egress/enable` · matrx-local · auth loopback_token · org exempt */
2761
+ declare function egressEnable(api: Api, args?: EgressEnableArgs, options?: CallOptions): Promise<EgressEnableResult>;
2762
+ type EgressDisableArgs = {
2763
+ [key: string]: never;
2764
+ };
2765
+ type EgressDisableResult = EgressStatus;
2766
+ /** Egress Disable */
2767
+ /** `POST /egress/disable` · matrx-local · auth loopback_token · org exempt */
2768
+ declare function egressDisable(api: Api, args?: EgressDisableArgs, options?: CallOptions): Promise<EgressDisableResult>;
2769
+ type GetContextArgs = {
2770
+ [key: string]: never;
2771
+ };
2772
+ type GetContextResult = {
2773
+ [key: string]: string | number | null;
2774
+ };
2775
+ /** Get Context */
2776
+ /** `GET /local-browser/context` · matrx-local · auth loopback_token · org exempt */
2777
+ declare function getContext(api: Api, args?: GetContextArgs, options?: CallOptions): Promise<GetContextResult>;
2778
+ type SetContextArgs = {
2779
+ body: ContextBody;
2780
+ };
2781
+ type SetContextResult = {
2782
+ [key: string]: string | number | null;
2783
+ };
2784
+ /** Set Context */
2785
+ /** `POST /local-browser/context` · matrx-local · auth loopback_token · org exempt */
2786
+ declare function setContext(api: Api, args: SetContextArgs, options?: CallOptions): Promise<SetContextResult>;
2787
+ type ExecuteArgs = {
2788
+ [key: string]: never;
2789
+ };
2790
+ type ExecuteResult = unknown;
2791
+ /** Execute */
2792
+ /** `POST /local-browser/execute` · matrx-local · auth scoped · org exempt */
2793
+ declare function execute(api: Api, args?: ExecuteArgs, options?: CallOptions): Promise<ExecuteResult>;
2794
+ type ProxyPageArgs = {
2795
+ query: {
2796
+ url: string;
2797
+ };
2798
+ };
2799
+ type ProxyPageResult = unknown;
2800
+ /** Proxy Page */
2801
+ /** `GET /fetch-proxy/page` · matrx-local · auth loopback_open · org exempt */
2802
+ declare function proxyPage(api: Api, args: ProxyPageArgs, options?: CallOptions): Promise<ProxyPageResult>;
2803
+ type ExtractPageArgs = {
2804
+ body: ExtractRequest;
2805
+ };
2806
+ type ExtractPageResult = ExtractResult_MatrxLocal;
2807
+ /** Extract Page */
2808
+ /** `POST /fetch-proxy/extract` · matrx-local · auth loopback_open · org exempt */
2809
+ declare function extractPage(api: Api, args: ExtractPageArgs, options?: CallOptions): Promise<ExtractPageResult>;
2810
+ type ListScrapesArgs = {
2811
+ query?: {
2812
+ user_id?: string;
2813
+ include_deleted?: boolean;
2814
+ limit?: number;
2815
+ offset?: number;
2816
+ };
2817
+ };
2818
+ type ListScrapesResult = {
2819
+ [key: string]: unknown;
2820
+ };
2821
+ /** List Scrapes */
2822
+ /** `GET /scrapes` · matrx-local · auth loopback_token · org exempt */
2823
+ declare function listScrapes(api: Api, args?: ListScrapesArgs, options?: CallOptions): Promise<ListScrapesResult>;
2824
+ type SyncStatusArgs = {
2825
+ [key: string]: never;
2826
+ };
2827
+ type SyncStatusResult = {
2828
+ [key: string]: unknown;
2829
+ };
2830
+ /** Sync Status */
2831
+ /** `GET /scrapes/sync-status` · matrx-local · auth loopback_token · org exempt */
2832
+ declare function syncStatus(api: Api, args?: SyncStatusArgs, options?: CallOptions): Promise<SyncStatusResult>;
2833
+ type TriggerSyncArgs = {
2834
+ query?: {
2835
+ include_terminal?: boolean;
2836
+ };
2837
+ };
2838
+ type TriggerSyncResult = {
2839
+ [key: string]: unknown;
2840
+ };
2841
+ /** Trigger Sync */
2842
+ /** `POST /scrapes/sync` · matrx-local · auth loopback_token · org exempt */
2843
+ declare function triggerSync(api: Api, args?: TriggerSyncArgs, options?: CallOptions): Promise<TriggerSyncResult>;
2844
+ type GetScrapeArgs = {
2845
+ path: {
2846
+ scrape_id: string;
2847
+ };
2848
+ };
2849
+ type GetScrapeResult = {
2850
+ [key: string]: unknown;
2851
+ };
2852
+ /** Get Scrape */
2853
+ /** `GET /scrapes/{scrape_id}` · matrx-local · auth loopback_token · org exempt */
2854
+ declare function getScrape(api: Api, args: GetScrapeArgs, options?: CallOptions): Promise<GetScrapeResult>;
2855
+ type DeleteScrapeArgs = {
2856
+ path: {
2857
+ scrape_id: string;
2858
+ };
2859
+ query?: {
2860
+ confirmed?: boolean;
2861
+ };
2862
+ };
2863
+ type DeleteScrapeResult = {
2864
+ [key: string]: unknown;
2865
+ };
2866
+ /** Delete Scrape */
2867
+ /** `DELETE /scrapes/{scrape_id}` · matrx-local · auth loopback_token · org exempt */
2868
+ declare function deleteScrape(api: Api, args: DeleteScrapeArgs, options?: CallOptions): Promise<DeleteScrapeResult>;
2869
+ type RestoreScrapeArgs = {
2870
+ path: {
2871
+ scrape_id: string;
2872
+ };
2873
+ };
2874
+ type RestoreScrapeResult = {
2875
+ [key: string]: unknown;
2876
+ };
2877
+ /** Restore Scrape */
2878
+ /** `POST /scrapes/{scrape_id}/restore` · matrx-local · auth loopback_token · org exempt */
2879
+ declare function restoreScrape(api: Api, args: RestoreScrapeArgs, options?: CallOptions): Promise<RestoreScrapeResult>;
2880
+ type HandleRpcArgs = {
2881
+ body: DesktopRpcRequest;
2882
+ };
2883
+ type HandleRpcResult = DesktopRpcResponse;
2884
+ /** Handle Rpc */
2885
+ /** `POST /extension/rpc` · matrx-local · auth loopback_token · org exempt */
2886
+ declare function handleRpc(api: Api, args: HandleRpcArgs, options?: CallOptions): Promise<HandleRpcResult>;
2887
+ type AppExtensionPairArgs = {
2888
+ [key: string]: never;
2889
+ };
2890
+ type AppExtensionPairResult = PairResponse;
2891
+ /** Extension Pair */
2892
+ /** `GET /extension/pair` · matrx-local · auth public · org exempt */
2893
+ declare function appExtensionPair(api: Api, args?: AppExtensionPairArgs, options?: CallOptions): Promise<AppExtensionPairResult>;
2894
+ type AppExtensionPairPostArgs = {
2895
+ [key: string]: never;
2896
+ };
2897
+ type AppExtensionPairPostResult = PairResponse;
2898
+ /** Extension Pair */
2899
+ /** `POST /extension/pair` · matrx-local · auth public · org exempt */
2900
+ declare function appExtensionPairPost(api: Api, args?: AppExtensionPairPostArgs, options?: CallOptions): Promise<AppExtensionPairPostResult>;
2901
+ type GetSessionsArgs = {
2902
+ [key: string]: never;
2903
+ };
2904
+ type GetSessionsResult = {
2905
+ [key: string]: unknown;
2906
+ };
2907
+ /** Get Sessions */
2908
+ /** `GET /extension/sessions` · matrx-local · auth loopback_token · org exempt */
2909
+ declare function getSessions(api: Api, args?: GetSessionsArgs, options?: CallOptions): Promise<GetSessionsResult>;
2910
+ type PostDisconnectArgs = {
2911
+ body: DisconnectRequest;
2912
+ };
2913
+ type PostDisconnectResult = {
2914
+ [key: string]: unknown;
2915
+ };
2916
+ /** Post Disconnect */
2917
+ /** `POST /extension/sessions/disconnect` · matrx-local · auth loopback_token · org exempt */
2918
+ declare function postDisconnect(api: Api, args: PostDisconnectArgs, options?: CallOptions): Promise<PostDisconnectResult>;
2919
+ type PostInvokeArgs = {
2920
+ body: InvokeRequest;
2921
+ };
2922
+ type PostInvokeResult = InvokeResponse;
2923
+ /** Post Invoke */
2924
+ /** `POST /extension/invoke` · matrx-local · auth loopback_token · org exempt */
2925
+ declare function postInvoke(api: Api, args: PostInvokeArgs, options?: CallOptions): Promise<PostInvokeResult>;
2926
+ type GetBroadcastStatusArgs = {
2927
+ [key: string]: never;
2928
+ };
2929
+ type GetBroadcastStatusResult = {
2930
+ [key: string]: unknown;
2931
+ };
2932
+ /** Get Broadcast Status */
2933
+ /** `GET /extension/broadcast/status` · matrx-local · auth loopback_token · org exempt */
2934
+ declare function getBroadcastStatus(api: Api, args?: GetBroadcastStatusArgs, options?: CallOptions): Promise<GetBroadcastStatusResult>;
2935
+ type PostBroadcastTestArgs = {
2936
+ body: BroadcastTestRequest;
2937
+ };
2938
+ type PostBroadcastTestResult = {
2939
+ [key: string]: unknown;
2940
+ };
2941
+ /** Post Broadcast Test */
2942
+ /** `POST /extension/broadcast/test` · matrx-local · auth loopback_token · org exempt */
2943
+ declare function postBroadcastTest(api: Api, args: PostBroadcastTestArgs, options?: CallOptions): Promise<PostBroadcastTestResult>;
2944
+ type GetTunnelStatusEndpointArgs = {
2945
+ [key: string]: never;
2946
+ };
2947
+ type GetTunnelStatusEndpointResult = {
2948
+ [key: string]: unknown;
2949
+ };
2950
+ /** Get Tunnel Status Endpoint */
2951
+ /** `GET /extension/tunnel/status` · matrx-local · auth loopback_token · org exempt */
2952
+ declare function getTunnelStatusEndpoint(api: Api, args?: GetTunnelStatusEndpointArgs, options?: CallOptions): Promise<GetTunnelStatusEndpointResult>;
2953
+ type GetMetricsArgs = {
2954
+ [key: string]: never;
2955
+ };
2956
+ type GetMetricsResult = {
2957
+ [key: string]: {
2958
+ [key: string]: unknown;
2959
+ };
2960
+ };
2961
+ /** Get Metrics */
2962
+ /** `GET /extension/metrics` · matrx-local · auth loopback_token · org exempt */
2963
+ declare function getMetrics(api: Api, args?: GetMetricsArgs, options?: CallOptions): Promise<GetMetricsResult>;
2964
+ type PostResetMetricsArgs = {
2965
+ [key: string]: never;
2966
+ };
2967
+ type PostResetMetricsResult = {
2968
+ [key: string]: boolean;
2969
+ };
2970
+ /** Post Reset Metrics */
2971
+ /** `POST /extension/metrics/reset` · matrx-local · auth loopback_token · org exempt */
2972
+ declare function postResetMetrics(api: Api, args?: PostResetMetricsArgs, options?: CallOptions): Promise<PostResetMetricsResult>;
2973
+ type GetBootCheckArgs = {
2974
+ [key: string]: never;
2975
+ };
2976
+ type GetBootCheckResult = {
2977
+ [key: string]: unknown;
2978
+ };
2979
+ /** Get Boot Check */
2980
+ /** `GET /extension/boot-check` · matrx-local · auth loopback_token · org exempt */
2981
+ declare function getBootCheck(api: Api, args?: GetBootCheckArgs, options?: CallOptions): Promise<GetBootCheckResult>;
2982
+ type PostBootCheckRunArgs = {
2983
+ [key: string]: never;
2984
+ };
2985
+ type PostBootCheckRunResult = {
2986
+ [key: string]: unknown;
2987
+ };
2988
+ /** Post Boot Check Run */
2989
+ /** `POST /extension/boot-check/run` · matrx-local · auth loopback_token · org exempt */
2990
+ declare function postBootCheckRun(api: Api, args?: PostBootCheckRunArgs, options?: CallOptions): Promise<PostBootCheckRunResult>;
2991
+ type PageCaptureOnScraperArgs = {
2992
+ body: PageCaptureRequest;
2993
+ };
2994
+ type PageCaptureOnScraperResult = PageCaptureResult;
2995
+ /** Capture and parse one public page into the durable scrape cache */
2996
+ /** `POST /api/scraper/page-capture` · scraper · auth user · org required */
2997
+ declare function pageCaptureOnScraper(api: Api, args: PageCaptureOnScraperArgs, options?: CallOptions): Promise<PageCaptureOnScraperResult>;
2998
+ type BrowserFetchOnScraperArgs = {
2999
+ body: BrowserFetchRequest;
3000
+ };
3001
+ type BrowserFetchOnScraperResult = BrowserFetchResult;
3002
+ /** Render ONE URL in the pooled browser and return its HTML */
3003
+ /** `POST /api/scraper/browser-fetch` · scraper · auth user · org required */
3004
+ declare function browserFetchOnScraper(api: Api, args: BrowserFetchOnScraperArgs, options?: CallOptions): Promise<BrowserFetchOnScraperResult>;
3005
+ type BrowserInspectOnScraperArgs = {
3006
+ body: BrowserInspectRequest;
3007
+ };
3008
+ type BrowserInspectOnScraperResult = BrowserInspectResult;
3009
+ /** Navigate ONE URL in the pooled browser and report render evidence */
3010
+ /** `POST /api/scraper/browser-inspect` · scraper · auth user · org required */
3011
+ declare function browserInspectOnScraper(api: Api, args: BrowserInspectOnScraperArgs, options?: CallOptions): Promise<BrowserInspectOnScraperResult>;
3012
+ type QuickScrapeOnScraperArgs = {
3013
+ body: QuickScrapeRequest;
3014
+ };
3015
+ type QuickScrapeOnScraperResult = unknown;
3016
+ /** Quick Scrape */
3017
+ /** `POST /api/scraper/quick-scrape` · scraper · auth user · org required · ndjson */
3018
+ declare function quickScrapeOnScraper(api: Api, args: QuickScrapeOnScraperArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3019
+ type SearchKeywordsOnScraperArgs = {
3020
+ body: SearchKeywordsRequest;
3021
+ };
3022
+ type SearchKeywordsOnScraperResult = unknown;
3023
+ /** Search Keywords */
3024
+ /** `POST /api/scraper/search` · scraper · auth user · org required · ndjson */
3025
+ declare function searchKeywordsOnScraper(api: Api, args: SearchKeywordsOnScraperArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3026
+ type SearchAndScrapeOnScraperArgs = {
3027
+ body: SearchAndScrapeRequest;
3028
+ };
3029
+ type SearchAndScrapeOnScraperResult = unknown;
3030
+ /** Search And Scrape */
3031
+ /** `POST /api/scraper/search-and-scrape` · scraper · auth user · org required · ndjson */
3032
+ declare function searchAndScrapeOnScraper(api: Api, args: SearchAndScrapeOnScraperArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3033
+ type SearchAndScrapeLimitedOnScraperArgs = {
3034
+ body: SearchAndScrapeLimitedRequest;
3035
+ };
3036
+ type SearchAndScrapeLimitedOnScraperResult = unknown;
3037
+ /** Search And Scrape Limited */
3038
+ /** `POST /api/scraper/search-and-scrape-limited` · scraper · auth user · org required · ndjson */
3039
+ declare function searchAndScrapeLimitedOnScraper(api: Api, args: SearchAndScrapeLimitedOnScraperArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3040
+ type BatchScrapeOnScraperArgs = {
3041
+ body: BatchScrapeRequest;
3042
+ };
3043
+ type BatchScrapeOnScraperResult = BatchScrapeResponse;
3044
+ /** Batch Scrape */
3045
+ /** `POST /api/scraper/batch` · scraper · auth user · org required */
3046
+ declare function batchScrapeOnScraper(api: Api, args: BatchScrapeOnScraperArgs, options?: CallOptions): Promise<BatchScrapeOnScraperResult>;
3047
+ type ContentSaveOnScraperArgs = {
3048
+ body: ContentSaveRequest;
3049
+ };
3050
+ type ContentSaveOnScraperResult = {
3051
+ [key: string]: unknown;
3052
+ };
3053
+ /** Content Save */
3054
+ /** `POST /api/scraper/content/save` · scraper · auth user · org required */
3055
+ declare function contentSaveOnScraper(api: Api, args: ContentSaveOnScraperArgs, options?: CallOptions): Promise<ContentSaveOnScraperResult>;
3056
+ type QueuePendingOnScraperArgs = {
3057
+ query?: {
3058
+ tier?: string;
3059
+ limit?: number;
3060
+ domain?: string | null;
3061
+ };
3062
+ };
3063
+ type QueuePendingOnScraperResult = {
3064
+ [key: string]: unknown;
3065
+ };
3066
+ /** Queue Pending */
3067
+ /** `GET /api/scraper/queue/pending` · scraper · auth user · org required */
3068
+ declare function queuePendingOnScraper(api: Api, args?: QueuePendingOnScraperArgs, options?: CallOptions): Promise<QueuePendingOnScraperResult>;
3069
+ type QueueClaimOnScraperArgs = {
3070
+ body: RetryClaimRequest;
3071
+ };
3072
+ type QueueClaimOnScraperResult = {
3073
+ [key: string]: string[];
3074
+ };
3075
+ /** Queue Claim */
3076
+ /** `POST /api/scraper/queue/claim` · scraper · auth user · org required */
3077
+ declare function queueClaimOnScraper(api: Api, args: QueueClaimOnScraperArgs, options?: CallOptions): Promise<QueueClaimOnScraperResult>;
3078
+ type QueueSubmitOnScraperArgs = {
3079
+ body: RetrySubmitRequest;
3080
+ };
3081
+ type QueueSubmitOnScraperResult = {
3082
+ [key: string]: boolean;
3083
+ };
3084
+ /** Queue Submit */
3085
+ /** `POST /api/scraper/queue/submit` · scraper · auth user · org required */
3086
+ declare function queueSubmitOnScraper(api: Api, args: QueueSubmitOnScraperArgs, options?: CallOptions): Promise<QueueSubmitOnScraperResult>;
3087
+ type QueueFailOnScraperArgs = {
3088
+ body: RetryFailRequest;
3089
+ };
3090
+ type QueueFailOnScraperResult = {
3091
+ [key: string]: boolean;
3092
+ };
3093
+ /** Queue Fail */
3094
+ /** `POST /api/scraper/queue/fail` · scraper · auth user · org required */
3095
+ declare function queueFailOnScraper(api: Api, args: QueueFailOnScraperArgs, options?: CallOptions): Promise<QueueFailOnScraperResult>;
3096
+ type QueueStatsOnScraperArgs = {
3097
+ [key: string]: never;
3098
+ };
3099
+ type QueueStatsOnScraperResult = {
3100
+ [key: string]: unknown;
3101
+ };
3102
+ /** Queue Stats */
3103
+ /** `GET /api/scraper/queue/stats` · scraper · auth user · org required */
3104
+ declare function queueStatsOnScraper(api: Api, args?: QueueStatsOnScraperArgs, options?: CallOptions): Promise<QueueStatsOnScraperResult>;
3105
+ type ListDomainsOnScraperArgs = {
3106
+ [key: string]: never;
3107
+ };
3108
+ type ListDomainsOnScraperResult = {
3109
+ [key: string]: unknown;
3110
+ };
3111
+ /** List Domains */
3112
+ /** `GET /api/scraper/config/domains` · scraper · auth user · org required */
3113
+ declare function listDomainsOnScraper(api: Api, args?: ListDomainsOnScraperArgs, options?: CallOptions): Promise<ListDomainsOnScraperResult>;
3114
+ type UpsertDomainOnScraperArgs = {
3115
+ body: DomainUpsertRequest;
3116
+ };
3117
+ type UpsertDomainOnScraperResult = {
3118
+ [key: string]: unknown;
3119
+ };
3120
+ /** Upsert Domain */
3121
+ /** `POST /api/scraper/config/domains` · scraper · auth user · org required */
3122
+ declare function upsertDomainOnScraper(api: Api, args: UpsertDomainOnScraperArgs, options?: CallOptions): Promise<UpsertDomainOnScraperResult>;
3123
+ type ListSessionsArgs = {
3124
+ [key: string]: never;
3125
+ };
3126
+ type ListSessionsResult = {
3127
+ [key: string]: unknown;
3128
+ };
3129
+ /** List active browser sessions */
3130
+ /** `GET /api/scraper/browser/sessions` · scraper · auth user · org required */
3131
+ declare function listSessions(api: Api, args?: ListSessionsArgs, options?: CallOptions): Promise<ListSessionsResult>;
3132
+ type CreateSessionArgs = {
3133
+ body: CreateSessionRequest_ScraperServer;
3134
+ };
3135
+ type CreateSessionResult = {
3136
+ [key: string]: unknown;
3137
+ };
3138
+ /** Create a new browser session */
3139
+ /** `POST /api/scraper/browser/sessions` · scraper · auth user · org required */
3140
+ declare function createSession(api: Api, args: CreateSessionArgs, options?: CallOptions): Promise<CreateSessionResult>;
3141
+ type CloseSessionArgs = {
3142
+ path: {
3143
+ session_id: string;
3144
+ };
3145
+ };
3146
+ type CloseSessionResult = {
3147
+ [key: string]: unknown;
3148
+ };
3149
+ /** Close a browser session */
3150
+ /** `DELETE /api/scraper/browser/sessions/{session_id}` · scraper · auth user · org required */
3151
+ declare function closeSession(api: Api, args: CloseSessionArgs, options?: CallOptions): Promise<CloseSessionResult>;
3152
+ type NavigateOpArgs = {
3153
+ body: NavigateRequest;
3154
+ };
3155
+ type NavigateOpResult = {
3156
+ [key: string]: unknown;
3157
+ };
3158
+ /** Navigate a session to a URL (creates a session if none provided) */
3159
+ /** `POST /api/scraper/browser/navigate` · scraper · auth user · org required */
3160
+ declare function navigate(api: Api, args: NavigateOpArgs, options?: CallOptions): Promise<NavigateOpResult>;
3161
+ type ClickOpArgs = {
3162
+ body: ClickRequest;
3163
+ };
3164
+ type ClickOpResult = {
3165
+ [key: string]: unknown;
3166
+ };
3167
+ /** Click a CSS selector */
3168
+ /** `POST /api/scraper/browser/click` · scraper · auth user · org required */
3169
+ declare function click(api: Api, args: ClickOpArgs, options?: CallOptions): Promise<ClickOpResult>;
3170
+ type FillOpArgs = {
3171
+ body: FillRequest;
3172
+ };
3173
+ type FillOpResult = {
3174
+ [key: string]: unknown;
3175
+ };
3176
+ /** Set the value of an input/textarea */
3177
+ /** `POST /api/scraper/browser/fill` · scraper · auth user · org required */
3178
+ declare function fill(api: Api, args: FillOpArgs, options?: CallOptions): Promise<FillOpResult>;
3179
+ type TypeTextArgs = {
3180
+ body: TypeRequest;
3181
+ };
3182
+ type TypeTextResult = {
3183
+ [key: string]: unknown;
3184
+ };
3185
+ /** Type text into a focused element */
3186
+ /** `POST /api/scraper/browser/type` · scraper · auth user · org required */
3187
+ declare function typeText(api: Api, args: TypeTextArgs, options?: CallOptions): Promise<TypeTextResult>;
3188
+ type SelectOptionOpArgs = {
3189
+ body: SelectOptionRequest;
3190
+ };
3191
+ type SelectOptionOpResult = {
3192
+ [key: string]: unknown;
3193
+ };
3194
+ /** Select an option in a <select> */
3195
+ /** `POST /api/scraper/browser/select_option` · scraper · auth user · org required */
3196
+ declare function selectOption(api: Api, args: SelectOptionOpArgs, options?: CallOptions): Promise<SelectOptionOpResult>;
3197
+ type ScreenshotArgs = {
3198
+ body: ScreenshotRequest;
3199
+ };
3200
+ type ScreenshotResult = {
3201
+ [key: string]: unknown;
3202
+ };
3203
+ /** Capture a PNG screenshot */
3204
+ /** `POST /api/scraper/browser/screenshot` · scraper · auth user · org required */
3205
+ declare function screenshot(api: Api, args: ScreenshotArgs, options?: CallOptions): Promise<ScreenshotResult>;
3206
+ type WaitForOpArgs = {
3207
+ body: WaitForRequest;
3208
+ };
3209
+ type WaitForOpResult = {
3210
+ [key: string]: unknown;
3211
+ };
3212
+ /** Wait for a selector or visible text */
3213
+ /** `POST /api/scraper/browser/wait_for` · scraper · auth user · org required */
3214
+ declare function waitFor(api: Api, args: WaitForOpArgs, options?: CallOptions): Promise<WaitForOpResult>;
3215
+ type GetElementOpArgs = {
3216
+ body: GetElementRequest;
3217
+ };
3218
+ type GetElementOpResult = {
3219
+ [key: string]: unknown;
3220
+ };
3221
+ /** Inspect a DOM element */
3222
+ /** `POST /api/scraper/browser/get_element` · scraper · auth user · org required */
3223
+ declare function getElement(api: Api, args: GetElementOpArgs, options?: CallOptions): Promise<GetElementOpResult>;
3224
+ type QuerySelectorsOpArgs = {
3225
+ body: QuerySelectorsRequest;
3226
+ };
3227
+ type QuerySelectorsOpResult = {
3228
+ [key: string]: unknown;
3229
+ };
3230
+ /** Bulk pull text/attrs across many selectors */
3231
+ /** `POST /api/scraper/browser/query_selectors` · scraper · auth user · org required */
3232
+ declare function querySelectors(api: Api, args: QuerySelectorsOpArgs, options?: CallOptions): Promise<QuerySelectorsOpResult>;
3233
+ type EvalJsOpArgs = {
3234
+ body: EvalJsRequest;
3235
+ };
3236
+ type EvalJsOpResult = {
3237
+ [key: string]: unknown;
3238
+ };
3239
+ /** Evaluate a JS expression (opt-in) */
3240
+ /** `POST /api/scraper/browser/eval_js` · scraper · auth user · org required */
3241
+ declare function evalJs(api: Api, args: EvalJsOpArgs, options?: CallOptions): Promise<EvalJsOpResult>;
3242
+ type ScrollOpArgs = {
3243
+ body: ScrollRequest;
3244
+ };
3245
+ type ScrollOpResult = {
3246
+ [key: string]: unknown;
3247
+ };
3248
+ /** Scroll the page or a container */
3249
+ /** `POST /api/scraper/browser/scroll` · scraper · auth user · org required */
3250
+ declare function scroll(api: Api, args: ScrollOpArgs, options?: CallOptions): Promise<ScrollOpResult>;
3251
+ type GetHtmlOpArgs = {
3252
+ body: GetHtmlRequest;
3253
+ };
3254
+ type GetHtmlOpResult = {
3255
+ [key: string]: unknown;
3256
+ };
3257
+ /** Get the page HTML (post-JS, post-recipe) */
3258
+ /** `POST /api/scraper/browser/get_html` · scraper · auth user · org required */
3259
+ declare function getHtml(api: Api, args: GetHtmlOpArgs, options?: CallOptions): Promise<GetHtmlOpResult>;
3260
+ type GetTextOpArgs = {
3261
+ body: GetTextRequest;
3262
+ };
3263
+ type GetTextOpResult = {
3264
+ [key: string]: unknown;
3265
+ };
3266
+ /** Get the visible text of an element (default body) */
3267
+ /** `POST /api/scraper/browser/get_text` · scraper · auth user · org required */
3268
+ declare function getText(api: Api, args: GetTextOpArgs, options?: CallOptions): Promise<GetTextOpResult>;
3269
+ type RenderPressClipArgs = {
3270
+ body: PressClipRenderRequest;
3271
+ };
3272
+ type RenderPressClipResult = {
3273
+ [key: string]: unknown;
3274
+ };
3275
+ /** Render a cookie-free press clip */
3276
+ /** `POST /api/scraper/press-clips/render` · scraper · auth user · org required */
3277
+ declare function renderPressClip(api: Api, args: RenderPressClipArgs, options?: CallOptions): Promise<RenderPressClipResult>;
3278
+ type PreviewArgs = {
3279
+ body: PreviewRequest_ScraperServer;
3280
+ };
3281
+ type PreviewResult = {
3282
+ [key: string]: unknown;
3283
+ };
3284
+ /** Quick site preview: robots + homepage SEO audit + desktop screenshot */
3285
+ /** `POST /api/scraper/preview` · scraper · auth user · org required */
3286
+ declare function preview(api: Api, args: PreviewArgs, options?: CallOptions): Promise<PreviewResult>;
3287
+ type StartCrawlArgs = {
3288
+ path: {
3289
+ site_id: string;
3290
+ };
3291
+ body: CrawlStartRequest;
3292
+ };
3293
+ type StartCrawlResult = unknown;
3294
+ /** Start Crawl */
3295
+ /** `POST /api/scraper/crawler/sites/{site_id}/sessions` · scraper · auth user · org required · ndjson */
3296
+ declare function startCrawl(api: Api, args: StartCrawlArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3297
+ type ResumeCrawlArgs = {
3298
+ path: {
3299
+ session_id: string;
3300
+ };
3301
+ };
3302
+ type ResumeCrawlResult = unknown;
3303
+ /** Resume Crawl */
3304
+ /** `POST /api/scraper/crawler/sessions/{session_id}/resume` · scraper · auth user · org required · ndjson */
3305
+ declare function resumeCrawl(api: Api, args: ResumeCrawlArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3306
+ type BootstrapSiteArgs = {
3307
+ path: {
3308
+ site_id: string;
3309
+ };
3310
+ };
3311
+ type BootstrapSiteResult = unknown;
3312
+ /** Bootstrap Site */
3313
+ /** `POST /api/scraper/crawler/sites/{site_id}/bootstrap` · scraper · auth user · org required · ndjson */
3314
+ declare function bootstrapSite(api: Api, args: BootstrapSiteArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3315
+ type FetchPageArgs = {
3316
+ path: {
3317
+ site_id: string;
3318
+ };
3319
+ body: PageFetchRequest;
3320
+ };
3321
+ type FetchPageResult = unknown;
3322
+ /** Fetch Page */
3323
+ /** `POST /api/scraper/crawler/sites/{site_id}/pages/fetch` · scraper · auth user · org required · ndjson */
3324
+ declare function fetchPage(api: Api, args: FetchPageArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3325
+ type InitializeSiteArgs = {
3326
+ path: {
3327
+ site_id: string;
3328
+ };
3329
+ };
3330
+ type InitializeSiteResult = unknown;
3331
+ /** Initialize Site */
3332
+ /** `POST /api/scraper/crawler/sites/{site_id}/initialize` · scraper · auth user · org required · ndjson */
3333
+ declare function initializeSite(api: Api, args: InitializeSiteArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3334
+ type SyncSitemapsArgs = {
3335
+ path: {
3336
+ site_id: string;
3337
+ };
3338
+ };
3339
+ type SyncSitemapsResult = unknown;
3340
+ /** Sync Sitemaps */
3341
+ /** `POST /api/scraper/crawler/sites/{site_id}/sitemaps/sync` · scraper · auth user · org required · ndjson */
3342
+ declare function syncSitemaps(api: Api, args: SyncSitemapsArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3343
+ type SyncGscArgs = {
3344
+ path: {
3345
+ site_id: string;
3346
+ };
3347
+ };
3348
+ type SyncGscResult = unknown;
3349
+ /** Sync Gsc */
3350
+ /** `POST /api/scraper/crawler/sites/{site_id}/gsc/sync` · scraper · auth user · org required · ndjson */
3351
+ declare function syncGsc(api: Api, args: SyncGscArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3352
+ type ResolveLinksArgs = {
3353
+ path: {
3354
+ site_id: string;
3355
+ };
3356
+ };
3357
+ type ResolveLinksResult = unknown;
3358
+ /** Resolve Links */
3359
+ /** `POST /api/scraper/crawler/sites/{site_id}/links/resolve` · scraper · auth user · org required · ndjson */
3360
+ declare function resolveLinks(api: Api, args: ResolveLinksArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3361
+ type ScoreLinksArgs = {
3362
+ path: {
3363
+ site_id: string;
3364
+ };
3365
+ };
3366
+ type ScoreLinksResult = unknown;
3367
+ /** Score Links */
3368
+ /** `POST /api/scraper/crawler/sites/{site_id}/links/score` · scraper · auth user · org required · ndjson */
3369
+ declare function scoreLinks(api: Api, args: ScoreLinksArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3370
+ type ReconcileUrlsArgs = {
3371
+ path: {
3372
+ site_id: string;
3373
+ };
3374
+ };
3375
+ type ReconcileUrlsResult = unknown;
3376
+ /** Reconcile Urls */
3377
+ /** `POST /api/scraper/crawler/sites/{site_id}/urls/reconcile` · scraper · auth user · org required · ndjson */
3378
+ declare function reconcileUrls(api: Api, args: ReconcileUrlsArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3379
+ type CheckLinksArgs = {
3380
+ path: {
3381
+ site_id: string;
3382
+ };
3383
+ };
3384
+ type CheckLinksResult = unknown;
3385
+ /** Check Links */
3386
+ /** `POST /api/scraper/crawler/sites/{site_id}/links/check` · scraper · auth user · org required · ndjson */
3387
+ declare function checkLinks(api: Api, args: CheckLinksArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3388
+ type AnalyzeSiteArgs = {
3389
+ path: {
3390
+ site_id: string;
3391
+ };
3392
+ };
3393
+ type AnalyzeSiteResult = unknown;
3394
+ /** Analyze Site */
3395
+ /** `POST /api/scraper/crawler/sites/{site_id}/analyze` · scraper · auth user · org required · ndjson */
3396
+ declare function analyzeSite(api: Api, args: AnalyzeSiteArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3397
+ type CancelCrawlArgs = {
3398
+ path: {
3399
+ session_id: string;
3400
+ };
3401
+ };
3402
+ type CancelCrawlResult = CrawlCancelResponse;
3403
+ /** Cancel Crawl */
3404
+ /** `POST /api/scraper/crawler/sessions/{session_id}/cancel` · scraper · auth user · org required */
3405
+ declare function cancelCrawl(api: Api, args: CancelCrawlArgs, options?: CallOptions): Promise<CancelCrawlResult>;
3406
+ type DuplicateClustersArgs = {
3407
+ path: {
3408
+ site_id: string;
3409
+ };
3410
+ query?: {
3411
+ max_clusters?: number;
3412
+ max_pages_per_cluster?: number;
3413
+ };
3414
+ };
3415
+ type DuplicateClustersResult = DuplicateClusterReport;
3416
+ /** Duplicate Clusters */
3417
+ /** `GET /api/scraper/crawler/sites/{site_id}/duplicate-clusters` · scraper · auth user · org required */
3418
+ declare function duplicateClusters(api: Api, args: DuplicateClustersArgs, options?: CallOptions): Promise<DuplicateClustersResult>;
3419
+ type TrafficAtRiskArgs = {
3420
+ path: {
3421
+ site_id: string;
3422
+ };
3423
+ query?: {
3424
+ max_pages?: number;
3425
+ };
3426
+ };
3427
+ type TrafficAtRiskResult = TrafficAtRiskReport;
3428
+ /** Traffic At Risk */
3429
+ /** `GET /api/scraper/crawler/sites/{site_id}/traffic-at-risk` · scraper · auth user · org required */
3430
+ declare function trafficAtRisk(api: Api, args: TrafficAtRiskArgs, options?: CallOptions): Promise<TrafficAtRiskResult>;
3431
+ type LinkGraphArgs = {
3432
+ path: {
3433
+ site_id: string;
3434
+ };
3435
+ query?: {
3436
+ max_nodes?: number;
3437
+ max_edges?: number;
3438
+ };
3439
+ };
3440
+ type LinkGraphResult = LinkGraph;
3441
+ /** Link Graph */
3442
+ /** `GET /api/scraper/crawler/sites/{site_id}/link-graph` · scraper · auth user · org required */
3443
+ declare function linkGraph(api: Api, args: LinkGraphArgs, options?: CallOptions): Promise<LinkGraphResult>;
3444
+ type ProgressSeriesArgs = {
3445
+ path: {
3446
+ session_id: string;
3447
+ };
3448
+ query?: {
3449
+ max_points?: number;
3450
+ };
3451
+ };
3452
+ type ProgressSeriesResult = ProgressSeries;
3453
+ /** Progress Series */
3454
+ /** `GET /api/scraper/crawler/sessions/{session_id}/progress-series` · scraper · auth user · org required */
3455
+ declare function progressSeries(api: Api, args: ProgressSeriesArgs, options?: CallOptions): Promise<ProgressSeriesResult>;
3456
+ type PreviousSessionArgs = {
3457
+ path: {
3458
+ session_id: string;
3459
+ };
3460
+ };
3461
+ type PreviousSessionResult = PreviousSessionResponse;
3462
+ /** Previous Session */
3463
+ /** `GET /api/scraper/crawler/sessions/{session_id}/previous` · scraper · auth user · org required */
3464
+ declare function previousSession(api: Api, args: PreviousSessionArgs, options?: CallOptions): Promise<PreviousSessionResult>;
3465
+ type SessionDiffArgs = {
3466
+ path: {
3467
+ base_session_id: string;
3468
+ compare_session_id: string;
3469
+ };
3470
+ };
3471
+ type SessionDiffResult = CrawlDiff;
3472
+ /** Session Diff */
3473
+ /** `GET /api/scraper/crawler/sessions/{base_session_id}/diff/{compare_session_id}` · scraper · auth user · org required */
3474
+ declare function sessionDiff(api: Api, args: SessionDiffArgs, options?: CallOptions): Promise<SessionDiffResult>;
3475
+ type SiteDiffsArgs = {
3476
+ path: {
3477
+ site_id: string;
3478
+ };
3479
+ query?: {
3480
+ limit?: number;
3481
+ };
3482
+ };
3483
+ type SiteDiffsResult = SiteDiffList;
3484
+ /** Site Diffs */
3485
+ /** `GET /api/scraper/crawler/sites/{site_id}/diffs` · scraper · auth user · org required */
3486
+ declare function siteDiffs(api: Api, args: SiteDiffsArgs, options?: CallOptions): Promise<SiteDiffsResult>;
3487
+ type SiteSessionDiffArgs = {
3488
+ path: {
3489
+ site_id: string;
3490
+ session_id: string;
3491
+ };
3492
+ };
3493
+ type SiteSessionDiffResult = CrawlDiff;
3494
+ /** Site Session Diff */
3495
+ /** `GET /api/scraper/crawler/sites/{site_id}/diffs/{session_id}` · scraper · auth user · org required */
3496
+ declare function siteSessionDiff(api: Api, args: SiteSessionDiffArgs, options?: CallOptions): Promise<SiteSessionDiffResult>;
3497
+ type ListUserAgentPresetsArgs = {
3498
+ [key: string]: never;
3499
+ };
3500
+ type ListUserAgentPresetsResult = UserAgentPresetsResponse;
3501
+ /** List User Agent Presets */
3502
+ /** `GET /api/scraper/crawler/user-agents` · scraper · auth user · org required */
3503
+ declare function listUserAgentPresets(api: Api, args?: ListUserAgentPresetsArgs, options?: CallOptions): Promise<ListUserAgentPresetsResult>;
3504
+ type ListCrawlPresetsArgs = {
3505
+ path: {
3506
+ site_id: string;
3507
+ };
3508
+ };
3509
+ type ListCrawlPresetsResult = CrawlPresetListResponse;
3510
+ /** List Crawl Presets */
3511
+ /** `GET /api/scraper/crawler/sites/{site_id}/presets` · scraper · auth user · org required */
3512
+ declare function listCrawlPresets(api: Api, args: ListCrawlPresetsArgs, options?: CallOptions): Promise<ListCrawlPresetsResult>;
3513
+ type SaveCrawlPresetArgs = {
3514
+ path: {
3515
+ site_id: string;
3516
+ };
3517
+ body: CrawlPresetSaveRequest;
3518
+ };
3519
+ type SaveCrawlPresetResult = CrawlPresetRecord;
3520
+ /** Save Crawl Preset */
3521
+ /** `POST /api/scraper/crawler/sites/{site_id}/presets` · scraper · auth user · org required */
3522
+ declare function saveCrawlPreset(api: Api, args: SaveCrawlPresetArgs, options?: CallOptions): Promise<SaveCrawlPresetResult>;
3523
+ type DeleteCrawlPresetArgs = {
3524
+ path: {
3525
+ site_id: string;
3526
+ preset_id: string;
3527
+ };
3528
+ };
3529
+ type DeleteCrawlPresetResult = CrawlPresetDeleteResponse;
3530
+ /** Delete Crawl Preset */
3531
+ /** `DELETE /api/scraper/crawler/sites/{site_id}/presets/{preset_id}` · scraper · auth user · org required */
3532
+ declare function deleteCrawlPreset(api: Api, args: DeleteCrawlPresetArgs, options?: CallOptions): Promise<DeleteCrawlPresetResult>;
3533
+ type PreviewRecrawlConfigArgs = {
3534
+ path: {
3535
+ site_id: string;
3536
+ };
3537
+ query?: {
3538
+ preset_id?: string | null;
3539
+ };
3540
+ };
3541
+ type PreviewRecrawlConfigResult = RecrawlConfigResponse;
3542
+ /** Preview Recrawl Config */
3543
+ /** `GET /api/scraper/crawler/sites/{site_id}/recrawl-config` · scraper · auth user · org required */
3544
+ declare function previewRecrawlConfig(api: Api, args: PreviewRecrawlConfigArgs, options?: CallOptions): Promise<PreviewRecrawlConfigResult>;
3545
+ type RescrapeSiteArgs = {
3546
+ path: {
3547
+ site_id: string;
3548
+ };
3549
+ body?: RecrawlRequest | null;
3550
+ };
3551
+ type RescrapeSiteResult = unknown;
3552
+ /** Rescrape Site */
3553
+ /** `POST /api/scraper/crawler/sites/{site_id}/rescrape` · scraper · auth user · org required · ndjson */
3554
+ declare function rescrapeSite(api: Api, args: RescrapeSiteArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
3555
+ type HealthOnScraperArgs = {
3556
+ [key: string]: never;
3557
+ };
3558
+ type HealthOnScraperResult = unknown;
3559
+ /** Health */
3560
+ /** `GET /health` · scraper · auth public · org exempt */
3561
+ declare function healthOnScraper(api: Api, args?: HealthOnScraperArgs, options?: CallOptions): Promise<HealthOnScraperResult>;
3562
+ type HealthReadyArgs = {
3563
+ [key: string]: never;
3564
+ };
3565
+ type HealthReadyResult = unknown;
3566
+ /** Health Ready */
3567
+ /** `GET /health/ready` · scraper · auth public · org exempt */
3568
+ declare function healthReady(api: Api, args?: HealthReadyArgs, options?: CallOptions): Promise<HealthReadyResult>;
3569
+ type HealthVersionArgs = {
3570
+ [key: string]: never;
3571
+ };
3572
+ type HealthVersionResult = unknown;
3573
+ /** Health Version */
3574
+ /** `GET /health/version` · scraper · auth public · org exempt */
3575
+ declare function healthVersion(api: Api, args?: HealthVersionArgs, options?: CallOptions): Promise<HealthVersionResult>;
3576
+ /** Every JSON operation of this domain by `METHOD path` — for path-keyed calls. */
3577
+ interface Operations {
3578
+ "GET /web/link-preview": {
3579
+ args: LinkPreviewArgs;
3580
+ result: LinkPreviewResult;
3581
+ };
3582
+ "GET /egress/devices": {
3583
+ args: ListDevicesArgs;
3584
+ result: ListDevicesResult;
3585
+ };
3586
+ "POST /egress/devices": {
3587
+ args: RegisterDeviceArgs;
3588
+ result: RegisterDeviceResult;
3589
+ };
3590
+ "PATCH /egress/devices/{device_id}": {
3591
+ args: PatchDeviceArgs;
3592
+ result: PatchDeviceResult;
3593
+ };
3594
+ "DELETE /egress/devices/{device_id}": {
3595
+ args: RemoveDeviceArgs;
3596
+ result: RemoveDeviceResult;
3597
+ };
3598
+ "POST /egress/pairings": {
3599
+ args: CreatePairingArgs;
3600
+ result: CreatePairingResult;
3601
+ };
3602
+ "GET /egress/pairings/{pairing_id}": {
3603
+ args: PollPairingArgs;
3604
+ result: PollPairingResult;
3605
+ };
3606
+ "GET /egress/pairings/by-code/{user_code}": {
3607
+ args: DescribePairingArgs;
3608
+ result: DescribePairingResult;
3609
+ };
3610
+ "POST /egress/pairings/by-code/{user_code}/approve": {
3611
+ args: ApprovePairingArgs;
3612
+ result: ApprovePairingResult;
3613
+ };
3614
+ "POST /egress/pairings/by-code/{user_code}/deny": {
3615
+ args: DenyPairingArgs;
3616
+ result: DenyPairingResult;
3617
+ };
3618
+ "POST /egress/tickets": {
3619
+ args: MintTicketArgs;
3620
+ result: MintTicketResult;
3621
+ };
3622
+ "GET /egress/status": {
3623
+ args: EgressStatusArgs;
3624
+ result: EgressStatusResult;
3625
+ };
3626
+ "POST /scraper/page-capture": {
3627
+ args: PageCaptureOpArgs;
3628
+ result: PageCaptureOpResult;
3629
+ };
3630
+ "POST /scraper/browser-fetch": {
3631
+ args: BrowserFetchOpArgs;
3632
+ result: BrowserFetchOpResult;
3633
+ };
3634
+ "POST /scraper/browser-inspect": {
3635
+ args: BrowserInspectOpArgs;
3636
+ result: BrowserInspectOpResult;
3637
+ };
3638
+ "POST /scraper/batch": {
3639
+ args: BatchScrapeArgs;
3640
+ result: BatchScrapeResult;
3641
+ };
3642
+ "POST /scraper/content/save": {
3643
+ args: ContentSaveArgs;
3644
+ result: ContentSaveResult;
3645
+ };
3646
+ "GET /scraper/queue/pending": {
3647
+ args: QueuePendingArgs;
3648
+ result: QueuePendingResult;
3649
+ };
3650
+ "POST /scraper/queue/claim": {
3651
+ args: QueueClaimArgs;
3652
+ result: QueueClaimResult;
3653
+ };
3654
+ "POST /scraper/queue/submit": {
3655
+ args: QueueSubmitArgs;
3656
+ result: QueueSubmitResult;
3657
+ };
3658
+ "POST /scraper/queue/fail": {
3659
+ args: QueueFailArgs;
3660
+ result: QueueFailResult;
3661
+ };
3662
+ "GET /scraper/queue/stats": {
3663
+ args: QueueStatsArgs;
3664
+ result: QueueStatsResult;
3665
+ };
3666
+ "GET /scraper/config/domains": {
3667
+ args: ListDomainsArgs;
3668
+ result: ListDomainsResult;
3669
+ };
3670
+ "POST /scraper/config/domains": {
3671
+ args: UpsertDomainArgs;
3672
+ result: UpsertDomainResult;
3673
+ };
3674
+ "POST /browser-manager/local/verify": {
3675
+ args: VerifyLocalLifecycleArgs;
3676
+ result: VerifyLocalLifecycleResult;
3677
+ };
3678
+ "POST /browser-manager/local/ack": {
3679
+ args: AcknowledgeLocalLifecycleArgs;
3680
+ result: AcknowledgeLocalLifecycleResult;
3681
+ };
3682
+ "POST /browser-manager/local/transport/verify": {
3683
+ args: VerifyLocalTransportArgs;
3684
+ result: VerifyLocalTransportResult;
3685
+ };
3686
+ "POST /browser-manager/local/approval": {
3687
+ args: LocalCommandApprovalArgs;
3688
+ result: LocalCommandApprovalResult;
3689
+ };
3690
+ "POST /browser-manager/local/commands/claim": {
3691
+ args: ClaimLocalCommandArgs;
3692
+ result: ClaimLocalCommandResult;
3693
+ };
3694
+ "POST /browser-manager/local/commands/complete": {
3695
+ args: CompleteLocalCommandArgs;
3696
+ result: CompleteLocalCommandResult;
3697
+ };
3698
+ "POST /browser-manager/profiles": {
3699
+ args: CreateProfileArgs;
3700
+ result: CreateProfileResult;
3701
+ };
3702
+ "POST /browser-manager/runs": {
3703
+ args: StartRunArgs;
3704
+ result: StartRunResult;
3705
+ };
3706
+ "POST /browser-manager/runs/{run_id}/stop": {
3707
+ args: StopRunArgs;
3708
+ result: StopRunResult;
3709
+ };
3710
+ "POST /browser-manager/runs/{run_id}/retry-through-home-computer": {
3711
+ args: RetryThroughHomeComputerArgs;
3712
+ result: RetryThroughHomeComputerResult;
3713
+ };
3714
+ "POST /browser-manager/runs/{run_id}/control-requests": {
3715
+ args: RequestControlArgs;
3716
+ result: RequestControlResult;
3717
+ };
3718
+ "POST /browser-manager/runs/{run_id}/takeover": {
3719
+ args: TakeOverArgs;
3720
+ result: TakeOverResult;
3721
+ };
3722
+ "POST /browser-manager/runs/{run_id}/release-control": {
3723
+ args: ReleaseControlArgs;
3724
+ result: ReleaseControlResult;
3725
+ };
3726
+ "POST /browser-manager/runs/{run_id}/dismiss-handoff": {
3727
+ args: DismissHandoffArgs;
3728
+ result: DismissHandoffResult;
3729
+ };
3730
+ "GET /browser-manager/ops/snapshot": {
3731
+ args: OpsSnapshotArgs;
3732
+ result: OpsSnapshotResult;
3733
+ };
3734
+ "POST /browser-manager/runs/{run_id}/screenshot": {
3735
+ args: CaptureScreenshotArgs;
3736
+ result: CaptureScreenshotResult;
3737
+ };
3738
+ "POST /browser-manager/runs/{run_id}/human-login": {
3739
+ args: FillHumanLoginArgs;
3740
+ result: FillHumanLoginResult;
3741
+ };
3742
+ "POST /browser-manager/runs/{run_id}/saved-login": {
3743
+ args: FillSavedLoginArgs;
3744
+ result: FillSavedLoginResult;
3745
+ };
3746
+ "POST /browser-manager/runs/{run_id}/capture-result": {
3747
+ args: RecordCaptureOutcomeArgs;
3748
+ result: RecordCaptureOutcomeResult;
3749
+ };
3750
+ "POST /browser-manager/runs/{run_id}/authenticator": {
3751
+ args: FillAuthenticatorCodeArgs;
3752
+ result: FillAuthenticatorCodeResult;
3753
+ };
3754
+ "POST /browser-manager/runs/{run_id}/stream-ticket": {
3755
+ args: MintStreamTicketArgs;
3756
+ result: MintStreamTicketResult;
3757
+ };
3758
+ "POST /browser-manager/internal/sandbox/runs": {
3759
+ args: SandboxStartRunArgs;
3760
+ result: SandboxStartRunResult;
3761
+ };
3762
+ "POST /browser-manager/internal/sandbox/runs/{run_id}/command": {
3763
+ args: SandboxCommandArgs;
3764
+ result: SandboxCommandResult;
3765
+ };
3766
+ "POST /browser-manager/internal/sandbox/runs/{run_id}/capture": {
3767
+ args: SandboxCaptureArgs;
3768
+ result: SandboxCaptureResult;
3769
+ };
3770
+ "POST /browser-manager/internal/sandbox/runs/{run_id}/stop": {
3771
+ args: SandboxStopRunArgs;
3772
+ result: SandboxStopRunResult;
3773
+ };
3774
+ "POST /cb-{stream_session_id}/claim": {
3775
+ args: ClaimStreamArgs;
3776
+ result: ClaimStreamResult;
3777
+ };
3778
+ "POST /cb-{stream_session_id}/renew": {
3779
+ args: RenewStreamArgs;
3780
+ result: RenewStreamResult;
3781
+ };
3782
+ "POST /browser-manager/handoffs/{handoff_id}/stream-ticket": {
3783
+ args: MintControlArgs;
3784
+ result: MintControlResult;
3785
+ };
3786
+ "POST /browser-manager/runs/{run_id}/stream-ticket @cloud-browser-streaming": {
3787
+ args: MintViewArgs;
3788
+ result: MintViewResult;
3789
+ };
3790
+ "POST /browser-manager/runs/{run_id}/release-control @cloud-browser-streaming": {
3791
+ args: ReleaseArgs;
3792
+ result: ReleaseResult;
3793
+ };
3794
+ "POST /browser-manager/runs/{run_id}/revoke-control": {
3795
+ args: RevokeArgs;
3796
+ result: RevokeResult;
3797
+ };
3798
+ "POST /stream/{stream_session_id}/claim": {
3799
+ args: ClaimArgs;
3800
+ result: ClaimResult;
3801
+ };
3802
+ "POST /stream/{stream_session_id}/renew": {
3803
+ args: RenewArgs;
3804
+ result: RenewResult;
3805
+ };
3806
+ "GET /health": {
3807
+ args: HealthArgs;
3808
+ result: HealthResult;
3809
+ };
3810
+ "POST /bootstrap": {
3811
+ args: BootstrapArgs;
3812
+ result: BootstrapResult;
3813
+ };
3814
+ "POST /heartbeat": {
3815
+ args: HeartbeatArgs;
3816
+ result: HeartbeatResult;
3817
+ };
3818
+ "POST /command": {
3819
+ args: CommandArgs;
3820
+ result: CommandResult;
3821
+ };
3822
+ "POST /observe": {
3823
+ args: ObserveArgs;
3824
+ result: ObserveResult;
3825
+ };
3826
+ "POST /capture": {
3827
+ args: CaptureArgs;
3828
+ result: CaptureResult;
3829
+ };
3830
+ "POST /controller-transition": {
3831
+ args: ControllerTransitionArgs;
3832
+ result: ControllerTransitionResult;
3833
+ };
3834
+ "POST /checkpoint": {
3835
+ args: CheckpointArgs;
3836
+ result: CheckpointResult;
3837
+ };
3838
+ "POST /shutdown": {
3839
+ args: ShutdownArgs;
3840
+ result: ShutdownResult;
3841
+ };
3842
+ "GET /browser-runtime/status": {
3843
+ args: BrowserRuntimeStatusArgs;
3844
+ result: BrowserRuntimeStatusResult;
3845
+ };
3846
+ "GET /remote-scraper/status": {
3847
+ args: RemoteScraperStatusArgs;
3848
+ result: RemoteScraperStatusResult;
3849
+ };
3850
+ "POST /remote-scraper/scrape": {
3851
+ args: RemoteScrapeArgs;
3852
+ result: RemoteScrapeResult;
3853
+ };
3854
+ "POST /remote-scraper/search": {
3855
+ args: RemoteSearchArgs;
3856
+ result: RemoteSearchResult;
3857
+ };
3858
+ "POST /remote-scraper/search-and-scrape": {
3859
+ args: RemoteSearchAndScrapeArgs;
3860
+ result: RemoteSearchAndScrapeResult;
3861
+ };
3862
+ "POST /remote-scraper/research": {
3863
+ args: RemoteResearchArgs;
3864
+ result: RemoteResearchResult;
3865
+ };
3866
+ "POST /remote-scraper/content/save": {
3867
+ args: SaveContentArgs;
3868
+ result: SaveContentResult;
3869
+ };
3870
+ "GET /remote-scraper/queue/pending": {
3871
+ args: QueuePendingOnMatrxLocalArgs;
3872
+ result: QueuePendingOnMatrxLocalResult;
3873
+ };
3874
+ "GET /remote-scraper/queue/stats": {
3875
+ args: QueueStatsOnMatrxLocalArgs;
3876
+ result: QueueStatsOnMatrxLocalResult;
3877
+ };
3878
+ "GET /remote-scraper/queue/poller-stats": {
3879
+ args: QueuePollerStatsArgs;
3880
+ result: QueuePollerStatsResult;
3881
+ };
3882
+ "GET /remote-scraper/config/domains": {
3883
+ args: GetDomainConfigsArgs;
3884
+ result: GetDomainConfigsResult;
3885
+ };
3886
+ "GET /egress/status @matrx-local": {
3887
+ args: EgressStatusOnMatrxLocalArgs;
3888
+ result: EgressStatusOnMatrxLocalResult;
3889
+ };
3890
+ "POST /egress/enable": {
3891
+ args: EgressEnableArgs;
3892
+ result: EgressEnableResult;
3893
+ };
3894
+ "POST /egress/disable": {
3895
+ args: EgressDisableArgs;
3896
+ result: EgressDisableResult;
3897
+ };
3898
+ "GET /local-browser/context": {
3899
+ args: GetContextArgs;
3900
+ result: GetContextResult;
3901
+ };
3902
+ "POST /local-browser/context": {
3903
+ args: SetContextArgs;
3904
+ result: SetContextResult;
3905
+ };
3906
+ "POST /local-browser/execute": {
3907
+ args: ExecuteArgs;
3908
+ result: ExecuteResult;
3909
+ };
3910
+ "GET /fetch-proxy/page": {
3911
+ args: ProxyPageArgs;
3912
+ result: ProxyPageResult;
3913
+ };
3914
+ "POST /fetch-proxy/extract": {
3915
+ args: ExtractPageArgs;
3916
+ result: ExtractPageResult;
3917
+ };
3918
+ "GET /scrapes": {
3919
+ args: ListScrapesArgs;
3920
+ result: ListScrapesResult;
3921
+ };
3922
+ "GET /scrapes/sync-status": {
3923
+ args: SyncStatusArgs;
3924
+ result: SyncStatusResult;
3925
+ };
3926
+ "POST /scrapes/sync": {
3927
+ args: TriggerSyncArgs;
3928
+ result: TriggerSyncResult;
3929
+ };
3930
+ "GET /scrapes/{scrape_id}": {
3931
+ args: GetScrapeArgs;
3932
+ result: GetScrapeResult;
3933
+ };
3934
+ "DELETE /scrapes/{scrape_id}": {
3935
+ args: DeleteScrapeArgs;
3936
+ result: DeleteScrapeResult;
3937
+ };
3938
+ "POST /scrapes/{scrape_id}/restore": {
3939
+ args: RestoreScrapeArgs;
3940
+ result: RestoreScrapeResult;
3941
+ };
3942
+ "POST /extension/rpc": {
3943
+ args: HandleRpcArgs;
3944
+ result: HandleRpcResult;
3945
+ };
3946
+ "GET /extension/pair": {
3947
+ args: AppExtensionPairArgs;
3948
+ result: AppExtensionPairResult;
3949
+ };
3950
+ "POST /extension/pair": {
3951
+ args: AppExtensionPairPostArgs;
3952
+ result: AppExtensionPairPostResult;
3953
+ };
3954
+ "GET /extension/sessions": {
3955
+ args: GetSessionsArgs;
3956
+ result: GetSessionsResult;
3957
+ };
3958
+ "POST /extension/sessions/disconnect": {
3959
+ args: PostDisconnectArgs;
3960
+ result: PostDisconnectResult;
3961
+ };
3962
+ "POST /extension/invoke": {
3963
+ args: PostInvokeArgs;
3964
+ result: PostInvokeResult;
3965
+ };
3966
+ "GET /extension/broadcast/status": {
3967
+ args: GetBroadcastStatusArgs;
3968
+ result: GetBroadcastStatusResult;
3969
+ };
3970
+ "POST /extension/broadcast/test": {
3971
+ args: PostBroadcastTestArgs;
3972
+ result: PostBroadcastTestResult;
3973
+ };
3974
+ "GET /extension/tunnel/status": {
3975
+ args: GetTunnelStatusEndpointArgs;
3976
+ result: GetTunnelStatusEndpointResult;
3977
+ };
3978
+ "GET /extension/metrics": {
3979
+ args: GetMetricsArgs;
3980
+ result: GetMetricsResult;
3981
+ };
3982
+ "POST /extension/metrics/reset": {
3983
+ args: PostResetMetricsArgs;
3984
+ result: PostResetMetricsResult;
3985
+ };
3986
+ "GET /extension/boot-check": {
3987
+ args: GetBootCheckArgs;
3988
+ result: GetBootCheckResult;
3989
+ };
3990
+ "POST /extension/boot-check/run": {
3991
+ args: PostBootCheckRunArgs;
3992
+ result: PostBootCheckRunResult;
3993
+ };
3994
+ "POST /api/scraper/page-capture": {
3995
+ args: PageCaptureOnScraperArgs;
3996
+ result: PageCaptureOnScraperResult;
3997
+ };
3998
+ "POST /api/scraper/browser-fetch": {
3999
+ args: BrowserFetchOnScraperArgs;
4000
+ result: BrowserFetchOnScraperResult;
4001
+ };
4002
+ "POST /api/scraper/browser-inspect": {
4003
+ args: BrowserInspectOnScraperArgs;
4004
+ result: BrowserInspectOnScraperResult;
4005
+ };
4006
+ "POST /api/scraper/batch": {
4007
+ args: BatchScrapeOnScraperArgs;
4008
+ result: BatchScrapeOnScraperResult;
4009
+ };
4010
+ "POST /api/scraper/content/save": {
4011
+ args: ContentSaveOnScraperArgs;
4012
+ result: ContentSaveOnScraperResult;
4013
+ };
4014
+ "GET /api/scraper/queue/pending": {
4015
+ args: QueuePendingOnScraperArgs;
4016
+ result: QueuePendingOnScraperResult;
4017
+ };
4018
+ "POST /api/scraper/queue/claim": {
4019
+ args: QueueClaimOnScraperArgs;
4020
+ result: QueueClaimOnScraperResult;
4021
+ };
4022
+ "POST /api/scraper/queue/submit": {
4023
+ args: QueueSubmitOnScraperArgs;
4024
+ result: QueueSubmitOnScraperResult;
4025
+ };
4026
+ "POST /api/scraper/queue/fail": {
4027
+ args: QueueFailOnScraperArgs;
4028
+ result: QueueFailOnScraperResult;
4029
+ };
4030
+ "GET /api/scraper/queue/stats": {
4031
+ args: QueueStatsOnScraperArgs;
4032
+ result: QueueStatsOnScraperResult;
4033
+ };
4034
+ "GET /api/scraper/config/domains": {
4035
+ args: ListDomainsOnScraperArgs;
4036
+ result: ListDomainsOnScraperResult;
4037
+ };
4038
+ "POST /api/scraper/config/domains": {
4039
+ args: UpsertDomainOnScraperArgs;
4040
+ result: UpsertDomainOnScraperResult;
4041
+ };
4042
+ "GET /api/scraper/browser/sessions": {
4043
+ args: ListSessionsArgs;
4044
+ result: ListSessionsResult;
4045
+ };
4046
+ "POST /api/scraper/browser/sessions": {
4047
+ args: CreateSessionArgs;
4048
+ result: CreateSessionResult;
4049
+ };
4050
+ "DELETE /api/scraper/browser/sessions/{session_id}": {
4051
+ args: CloseSessionArgs;
4052
+ result: CloseSessionResult;
4053
+ };
4054
+ "POST /api/scraper/browser/navigate": {
4055
+ args: NavigateOpArgs;
4056
+ result: NavigateOpResult;
4057
+ };
4058
+ "POST /api/scraper/browser/click": {
4059
+ args: ClickOpArgs;
4060
+ result: ClickOpResult;
4061
+ };
4062
+ "POST /api/scraper/browser/fill": {
4063
+ args: FillOpArgs;
4064
+ result: FillOpResult;
4065
+ };
4066
+ "POST /api/scraper/browser/type": {
4067
+ args: TypeTextArgs;
4068
+ result: TypeTextResult;
4069
+ };
4070
+ "POST /api/scraper/browser/select_option": {
4071
+ args: SelectOptionOpArgs;
4072
+ result: SelectOptionOpResult;
4073
+ };
4074
+ "POST /api/scraper/browser/screenshot": {
4075
+ args: ScreenshotArgs;
4076
+ result: ScreenshotResult;
4077
+ };
4078
+ "POST /api/scraper/browser/wait_for": {
4079
+ args: WaitForOpArgs;
4080
+ result: WaitForOpResult;
4081
+ };
4082
+ "POST /api/scraper/browser/get_element": {
4083
+ args: GetElementOpArgs;
4084
+ result: GetElementOpResult;
4085
+ };
4086
+ "POST /api/scraper/browser/query_selectors": {
4087
+ args: QuerySelectorsOpArgs;
4088
+ result: QuerySelectorsOpResult;
4089
+ };
4090
+ "POST /api/scraper/browser/eval_js": {
4091
+ args: EvalJsOpArgs;
4092
+ result: EvalJsOpResult;
4093
+ };
4094
+ "POST /api/scraper/browser/scroll": {
4095
+ args: ScrollOpArgs;
4096
+ result: ScrollOpResult;
4097
+ };
4098
+ "POST /api/scraper/browser/get_html": {
4099
+ args: GetHtmlOpArgs;
4100
+ result: GetHtmlOpResult;
4101
+ };
4102
+ "POST /api/scraper/browser/get_text": {
4103
+ args: GetTextOpArgs;
4104
+ result: GetTextOpResult;
4105
+ };
4106
+ "POST /api/scraper/press-clips/render": {
4107
+ args: RenderPressClipArgs;
4108
+ result: RenderPressClipResult;
4109
+ };
4110
+ "POST /api/scraper/preview": {
4111
+ args: PreviewArgs;
4112
+ result: PreviewResult;
4113
+ };
4114
+ "POST /api/scraper/crawler/sessions/{session_id}/cancel": {
4115
+ args: CancelCrawlArgs;
4116
+ result: CancelCrawlResult;
4117
+ };
4118
+ "GET /api/scraper/crawler/sites/{site_id}/duplicate-clusters": {
4119
+ args: DuplicateClustersArgs;
4120
+ result: DuplicateClustersResult;
4121
+ };
4122
+ "GET /api/scraper/crawler/sites/{site_id}/traffic-at-risk": {
4123
+ args: TrafficAtRiskArgs;
4124
+ result: TrafficAtRiskResult;
4125
+ };
4126
+ "GET /api/scraper/crawler/sites/{site_id}/link-graph": {
4127
+ args: LinkGraphArgs;
4128
+ result: LinkGraphResult;
4129
+ };
4130
+ "GET /api/scraper/crawler/sessions/{session_id}/progress-series": {
4131
+ args: ProgressSeriesArgs;
4132
+ result: ProgressSeriesResult;
4133
+ };
4134
+ "GET /api/scraper/crawler/sessions/{session_id}/previous": {
4135
+ args: PreviousSessionArgs;
4136
+ result: PreviousSessionResult;
4137
+ };
4138
+ "GET /api/scraper/crawler/sessions/{base_session_id}/diff/{compare_session_id}": {
4139
+ args: SessionDiffArgs;
4140
+ result: SessionDiffResult;
4141
+ };
4142
+ "GET /api/scraper/crawler/sites/{site_id}/diffs": {
4143
+ args: SiteDiffsArgs;
4144
+ result: SiteDiffsResult;
4145
+ };
4146
+ "GET /api/scraper/crawler/sites/{site_id}/diffs/{session_id}": {
4147
+ args: SiteSessionDiffArgs;
4148
+ result: SiteSessionDiffResult;
4149
+ };
4150
+ "GET /api/scraper/crawler/user-agents": {
4151
+ args: ListUserAgentPresetsArgs;
4152
+ result: ListUserAgentPresetsResult;
4153
+ };
4154
+ "GET /api/scraper/crawler/sites/{site_id}/presets": {
4155
+ args: ListCrawlPresetsArgs;
4156
+ result: ListCrawlPresetsResult;
4157
+ };
4158
+ "POST /api/scraper/crawler/sites/{site_id}/presets": {
4159
+ args: SaveCrawlPresetArgs;
4160
+ result: SaveCrawlPresetResult;
4161
+ };
4162
+ "DELETE /api/scraper/crawler/sites/{site_id}/presets/{preset_id}": {
4163
+ args: DeleteCrawlPresetArgs;
4164
+ result: DeleteCrawlPresetResult;
4165
+ };
4166
+ "GET /api/scraper/crawler/sites/{site_id}/recrawl-config": {
4167
+ args: PreviewRecrawlConfigArgs;
4168
+ result: PreviewRecrawlConfigResult;
4169
+ };
4170
+ "GET /health @scraper": {
4171
+ args: HealthOnScraperArgs;
4172
+ result: HealthOnScraperResult;
4173
+ };
4174
+ "GET /health/ready": {
4175
+ args: HealthReadyArgs;
4176
+ result: HealthReadyResult;
4177
+ };
4178
+ "GET /health/version": {
4179
+ args: HealthVersionArgs;
4180
+ result: HealthVersionResult;
4181
+ };
4182
+ }
4183
+ /** Path-keyed call, scoped to this domain only (never a global path map). */
4184
+ declare function call<K extends keyof Operations>(api: Api, key: K, args?: Operations[K]["args"], options?: CallOptions): Promise<Operations[K]["result"]>;
4185
+
4186
+ export { type AcknowledgeLocalLifecycleArgs, type AcknowledgeLocalLifecycleResult, type ActionEventFacts, type ActivatePageCommand, type ActivatePageResult, type AnalyzeSiteArgs, type AnalyzeSiteResult, type AppExtensionPairArgs, type AppExtensionPairPostArgs, type AppExtensionPairPostResult, type AppExtensionPairResult, type ApprovePairingArgs, type ApprovePairingResult, type AuthenticatorFillRequest, type BatchScrapeArgs, type BatchScrapeOnScraperArgs, type BatchScrapeOnScraperResult, type BatchScrapeRequest, type BatchScrapeResponse, type BatchScrapeResult, type BootstrapArgs, type BootstrapRequest, type BootstrapResponse, type BootstrapResult, type BootstrapSiteArgs, type BootstrapSiteResult, type BroadcastTestRequest, type BrowserFetchOnScraperArgs, type BrowserFetchOnScraperResult, type BrowserFetchOpArgs, type BrowserFetchOpResult, type BrowserFetchRequest, type BrowserFetchResult, type BrowserInspectOnScraperArgs, type BrowserInspectOnScraperResult, type BrowserInspectOpArgs, type BrowserInspectOpResult, type BrowserInspectRequest, type BrowserInspectResult, type BrowserRuntimeStatusArgs, type BrowserRuntimeStatusResult, type CancelCrawlArgs, type CancelCrawlResult, type CaptureArgs, type CaptureOutcomeRequest, type CaptureOutcomeResponse, type CaptureRequest, type CaptureResponse, type CaptureResult, type CaptureScreenshotArgs, type CaptureScreenshotResult, type CapturedArtifact, type CapturedLink, type ChangedPage, type CheckLinksArgs, type CheckLinksResult, type CheckpointArgs, type CheckpointManifestFacts, type CheckpointRequest, type CheckpointResponse, type CheckpointRestore, type CheckpointResult, type ClaimArgs, type ClaimLocalCommandArgs, type ClaimLocalCommandResult, type ClaimRequest, type ClaimResult, type ClaimStreamArgs, type ClaimStreamResult, type ClickCommand, type ClickOpArgs, type ClickOpResult, type ClickRequest, type ClickResult, type ClosePageCommand, type ClosePageResult, type CloseSessionArgs, type CloseSessionResult, type CommandArgs, type CommandEgress, type CommandEgressUnavailable, type CommandRequest, type CommandResponse, type CommandResponse_CloudBrowserWorker, type CommandResult, type CompleteLocalCommandArgs, type CompleteLocalCommandResult, type ContentSaveArgs, type ContentSaveOnScraperArgs, type ContentSaveOnScraperResult, type ContentSaveRequest, type ContentSaveRequest_MatrxLocal, type ContentSaveResult, type ContextBody, type ControlBlock, type ControlRequestResponse, type ControllerState, type ControllerTransitionArgs, type ControllerTransitionRequest, type ControllerTransitionResponse, type ControllerTransitionResult, type CrawlCancelResponse, type CrawlDiff, type CrawlDiffCounts, type CrawlPresetDeleteResponse, type CrawlPresetListResponse, type CrawlPresetRecord, type CrawlPresetSaveRequest, type CrawlSessionRef, type CrawlStartRequest, type CreatePairingArgs, type CreatePairingResult, type CreateProfileArgs, type CreateProfileRequest, type CreateProfileResult, type CreateSessionArgs, type CreateSessionRequest_ScraperServer, type CreateSessionResult, type DeleteCrawlPresetArgs, type DeleteCrawlPresetResult, type DeleteScrapeArgs, type DeleteScrapeResult, type DenyPairingArgs, type DenyPairingResult, type DescribePairingArgs, type DescribePairingResult, type DesktopRpcRequest, type DesktopRpcResponse, type DeviceRegistration, type DialogRecord, type DiffPageRef, type DisconnectRequest, type DismissHandoffArgs, type DismissHandoffResult, type DisplayConfig, type DomainUpsertRequest, type DownloadRecord, type DownloadResult, type DuplicateCluster, type DuplicateClusterReport, type DuplicateClustersArgs, type DuplicateClustersResult, type DuplicatePage, type EgressDisableArgs, type EgressDisableResult, type EgressEnableArgs, type EgressEnableResult, type EgressPolicy, type EgressStatus, type EgressStatusArgs, type EgressStatusOnMatrxLocalArgs, type EgressStatusOnMatrxLocalResult, type EgressStatusResult, type EvalJsCommand, type EvalJsOpArgs, type EvalJsOpResult, type EvalJsRequest, type EvalJsResult, type ExactCaptureRequest, type ExecuteArgs, type ExecuteResult, type ExtractPageArgs, type ExtractPageResult, type ExtractRequest, type ExtractResult_MatrxLocal, type FetchPageArgs, type FetchPageResult, type FileChooserRecord, type FillAuthenticatorCodeArgs, type FillAuthenticatorCodeResult, type FillCommand, type FillHumanLoginArgs, type FillHumanLoginResult, type FillOpArgs, type FillOpResult, type FillRequest, type FillResult, type FillSavedLoginArgs, type FillSavedLoginResult, type GetBootCheckArgs, type GetBootCheckResult, type GetBroadcastStatusArgs, type GetBroadcastStatusResult, type GetContextArgs, type GetContextResult, type GetDomainConfigsArgs, type GetDomainConfigsResult, type GetElementCommand, type GetElementOpArgs, type GetElementOpResult, type GetElementRequest, type GetElementResult, type GetHtmlCommand, type GetHtmlOpArgs, type GetHtmlOpResult, type GetHtmlRequest, type GetHtmlResult, type GetMetricsArgs, type GetMetricsResult, type GetScrapeArgs, type GetScrapeResult, type GetSessionsArgs, type GetSessionsResult, type GetTextCommand, type GetTextOpArgs, type GetTextOpResult, type GetTextRequest, type GetTextResult, type GetTunnelStatusEndpointArgs, type GetTunnelStatusEndpointResult, type HandleDialogCommand, type HandleDialogResult, type HandleRpcArgs, type HandleRpcResult, type HealthArgs, type HealthOnScraperArgs, type HealthOnScraperResult, type HealthReadyArgs, type HealthReadyResult, type HealthResult, type HealthVersionArgs, type HealthVersionResult, type HeartbeatArgs, type HeartbeatRequest, type HeartbeatResponse, type HeartbeatResult, type HumanEpisodeSummary, type HumanLoginField, type HumanLoginRequest, type HumanRequiredSignal, type IceBlock, type InitializeSiteArgs, type InitializeSiteResult, type InspectedScreenshot, type InstallBrowserRuntimeArgs, type InstallBrowserRuntimeResult, type InvokeRequest, type InvokeResponse, type LaunchPolicy, type LinkGraph, type LinkGraphArgs, type LinkGraphEdge, type LinkGraphNode, type LinkGraphResult, type LinkPreview, type LinkPreviewArgs, type LinkPreviewResult, type ListCrawlPresetsArgs, type ListCrawlPresetsResult, type ListDevicesArgs, type ListDevicesResult, type ListDomainsArgs, type ListDomainsOnScraperArgs, type ListDomainsOnScraperResult, type ListDomainsResult, type ListScrapesArgs, type ListScrapesResult, type ListSessionsArgs, type ListSessionsResult, type ListUserAgentPresetsArgs, type ListUserAgentPresetsResult, type LocalApprovalResponse, type LocalCommandApprovalArgs, type LocalCommandApprovalResult, type LocalCommandClaimResponse, type LocalCommandCompleteResponse, type LocalTransportVerifyResponse, type MediaBlock, type MintControlArgs, type MintControlRequest, type MintControlResult, type MintResponse, type MintStreamTicketArgs, type MintStreamTicketResult, type MintTicketArgs, type MintTicketRequest, type MintTicketResult, type MintViewArgs, type MintViewRequest, type MintViewResult, type NavigateCommand, type NavigateOpArgs, type NavigateOpResult, type NavigateRequest, type NavigateResult, type ObserveArgs, type ObserveRequest, type ObserveResponse, type ObserveResult, type Operations, type OpsAdmissionSnapshot, type OpsSnapshotArgs, type OpsSnapshotResponse, type OpsSnapshotResult, type PageCaptureOnScraperArgs, type PageCaptureOnScraperResult, type PageCaptureOpArgs, type PageCaptureOpResult, type PageCaptureRequest, type PageCaptureResult, type PageFetchRequest, type PageInventory, type PageRecord, type PairResponse, type PatchDeviceArgs, type PatchDeviceResult, type PermissionPromptRecord, type PollPairingArgs, type PollPairingResult, type PostBootCheckRunArgs, type PostBootCheckRunResult, type PostBroadcastTestArgs, type PostBroadcastTestResult, type PostDisconnectArgs, type PostDisconnectResult, type PostInvokeArgs, type PostInvokeResult, type PostResetMetricsArgs, type PostResetMetricsResult, type PresignedUpload, type PressClipRenderRequest, type PreviewArgs, type PreviewRecrawlConfigArgs, type PreviewRecrawlConfigResult, type PreviewRequest_ScraperServer, type PreviewResult, type PreviousSessionArgs, type PreviousSessionResponse, type PreviousSessionResult, type ProfileMount, type ProfileView, type ProgressPoint, type ProgressSeries, type ProgressSeriesArgs, type ProgressSeriesResult, type ProxyPageArgs, type ProxyPageResult, type QuerySelectorsCommand, type QuerySelectorsOpArgs, type QuerySelectorsOpResult, type QuerySelectorsRequest, type QuerySelectorsResult, type QueueClaimArgs, type QueueClaimOnScraperArgs, type QueueClaimOnScraperResult, type QueueClaimResult, type QueueFailArgs, type QueueFailOnScraperArgs, type QueueFailOnScraperResult, type QueueFailResult, type QueuePendingArgs, type QueuePendingOnMatrxLocalArgs, type QueuePendingOnMatrxLocalResult, type QueuePendingOnScraperArgs, type QueuePendingOnScraperResult, type QueuePendingResult, type QueuePollerStatsArgs, type QueuePollerStatsResult, type QueueStatsArgs, type QueueStatsOnMatrxLocalArgs, type QueueStatsOnMatrxLocalResult, type QueueStatsOnScraperArgs, type QueueStatsOnScraperResult, type QueueStatsResult, type QueueSubmitArgs, type QueueSubmitOnScraperArgs, type QueueSubmitOnScraperResult, type QueueSubmitResult, type QuickScrapeArgs, type QuickScrapeOnScraperArgs, type QuickScrapeOnScraperResult, type QuickScrapeRequest, type QuickScrapeResult, type ReconcileUrlsArgs, type ReconcileUrlsResult, type RecordCaptureOutcomeArgs, type RecordCaptureOutcomeResult, type RecrawlConfigResponse, type RecrawlRequest, type RegisterDeviceArgs, type RegisterDeviceRequest, type RegisterDeviceResult, type ReleaseArgs, type ReleaseControlArgs, type ReleaseControlResponse, type ReleaseControlResult, type ReleaseRequest, type ReleaseResult, type RemoteResearchArgs, type RemoteResearchResult, type RemoteResearchStreamArgs, type RemoteResearchStreamResult, type RemoteScrapeArgs, type RemoteScrapeResult, type RemoteScrapeStreamArgs, type RemoteScrapeStreamResult, type RemoteScraperStatusArgs, type RemoteScraperStatusResult, type RemoteSearchAndScrapeArgs, type RemoteSearchAndScrapeResult, type RemoteSearchAndScrapeStreamArgs, type RemoteSearchAndScrapeStreamResult, type RemoteSearchArgs, type RemoteSearchResult, type RemoveDeviceArgs, type RemoveDeviceResult, type RenderPressClipArgs, type RenderPressClipResult, type RenewArgs, type RenewRequest, type RenewResult, type RenewStreamArgs, type RenewStreamResult, type RequestControlArgs, type RequestControlResult, type RescrapeSiteArgs, type RescrapeSiteResult, type ResearchRequest, type ResolveLinksArgs, type ResolveLinksResult, type RestoreScrapeArgs, type RestoreScrapeResult, type ResumeCrawlArgs, type ResumeCrawlResult, type RetryClaimRequest, type RetryFailRequest, type RetrySubmitRequest, type RetryThroughHomeComputerArgs, type RetryThroughHomeComputerResponse, type RetryThroughHomeComputerResult, type RevokeArgs, type RevokeRequest, type RevokeResult, type RtcConfig, type RtcIceServer, type RunView, type SandboxCaptureArgs, type SandboxCaptureResult, type SandboxCommandArgs, type SandboxCommandRequest, type SandboxCommandResult, type SandboxStartRunArgs, type SandboxStartRunResult, type SandboxStopRunArgs, type SandboxStopRunResult, type SaveContentArgs, type SaveContentResult, type SaveCrawlPresetArgs, type SaveCrawlPresetResult, type SavedLoginRequest, type ScoreLinksArgs, type ScoreLinksResult, type ScrapeRequest, type ScreenshotArgs, type ScreenshotFailure, type ScreenshotRequest, type ScreenshotResponse, type ScreenshotResult, type ScrollCommand, type ScrollOpArgs, type ScrollOpResult, type ScrollRequest, type ScrollResult, type SearchAndScrapeArgs, type SearchAndScrapeLimitedArgs, type SearchAndScrapeLimitedOnScraperArgs, type SearchAndScrapeLimitedOnScraperResult, type SearchAndScrapeLimitedRequest, type SearchAndScrapeLimitedResult, type SearchAndScrapeOnScraperArgs, type SearchAndScrapeOnScraperResult, type SearchAndScrapeRequest, type SearchAndScrapeRequest_MatrxLocal, type SearchAndScrapeResult, type SearchKeywordsArgs, type SearchKeywordsOnScraperArgs, type SearchKeywordsOnScraperResult, type SearchKeywordsRequest, type SearchKeywordsResult, type SearchRequest, type SelectOptionCommand, type SelectOptionOpArgs, type SelectOptionOpResult, type SelectOptionRequest, type SelectOptionResult, type SessionDiffArgs, type SessionDiffResult, type SetContextArgs, type SetContextResult, type ShutdownArgs, type ShutdownRequest, type ShutdownResponse, type ShutdownResult, type SiteDiffList, type SiteDiffSummary, type SiteDiffsArgs, type SiteDiffsResult, type SiteSessionDiffArgs, type SiteSessionDiffResult, type StartCrawlArgs, type StartCrawlResult, type StartRunArgs, type StartRunRequest, type StartRunResponse, type StartRunResult, type StopRunArgs, type StopRunResponse, type StopRunResult, type SyncGscArgs, type SyncGscResult, type SyncSitemapsArgs, type SyncSitemapsResult, type SyncStatusArgs, type SyncStatusResult, type TakeOverArgs, type TakeOverResult, type TakeoverRequest, type TakeoverResponse, type TrafficAtRiskArgs, type TrafficAtRiskPage, type TrafficAtRiskReport, type TrafficAtRiskResult, type TriggerSyncArgs, type TriggerSyncResult, type TypeRequest, type TypeResult, type TypeTextArgs, type TypeTextCommand, type TypeTextResult, type UpdateDeviceRequest, type UpsertDomainArgs, type UpsertDomainOnScraperArgs, type UpsertDomainOnScraperResult, type UpsertDomainResult, type UserAgentPresetRecord, type UserAgentPresetsResponse, type VerifyLocalLifecycleArgs, type VerifyLocalLifecycleResult, type VerifyLocalTransportArgs, type VerifyLocalTransportResult, type ViewportBlock, type WaitForCommand, type WaitForDownloadCommand, type WaitForOpArgs, type WaitForOpResult, type WaitForRequest, type WaitForResult, type WorkerError, acknowledgeLocalLifecycle, type aidream__services__authenticator__seams__TypeResult, analyzeSite, appExtensionPair, appExtensionPairPost, approvePairing, batchScrape, batchScrapeOnScraper, bootstrap, bootstrapSite, browserFetch, browserFetchOnScraper, browserInspect, browserInspectOnScraper, browserRuntimeStatus, call, cancelCrawl, capture, captureScreenshot, checkLinks, checkpoint, claim, claimLocalCommand, claimStream, click, closeSession, command, completeLocalCommand, contentSave, contentSaveOnScraper, controllerTransition, createPairing, createProfile, createSession, deleteCrawlPreset, deleteScrape, denyPairing, describePairing, dismissHandoff, duplicateClusters, egressDisable, egressEnable, egressStatus, egressStatusOnMatrxLocal, evalJs, execute, extractPage, fetchPage, fill, fillAuthenticatorCode, fillHumanLogin, fillSavedLogin, getBootCheck, getBroadcastStatus, getContext, getDomainConfigs, getElement, getHtml, getMetrics, getScrape, getSessions, getText, getTunnelStatusEndpoint, handleRpc, health, healthOnScraper, healthReady, healthVersion, heartbeat, initializeSite, installBrowserRuntime, linkGraph, linkPreview, listCrawlPresets, listDevices, listDomains, listDomainsOnScraper, listScrapes, listSessions, listUserAgentPresets, localCommandApproval, type matrx_scraper__ai_browser__actions__TypeResult, mintControl, mintStreamTicket, mintTicket, mintView, navigate, observe, opsSnapshot, pageCapture, pageCaptureOnScraper, patchDevice, pollPairing, postBootCheckRun, postBroadcastTest, postDisconnect, postInvoke, postResetMetrics, preview, previewRecrawlConfig, previousSession, progressSeries, proxyPage, querySelectors, queueClaim, queueClaimOnScraper, queueFail, queueFailOnScraper, queuePending, queuePendingOnMatrxLocal, queuePendingOnScraper, queuePollerStats, queueStats, queueStatsOnMatrxLocal, queueStatsOnScraper, queueSubmit, queueSubmitOnScraper, quickScrape, quickScrapeOnScraper, reconcileUrls, recordCaptureOutcome, registerDevice, release, releaseControl, remoteResearch, remoteResearchStream, remoteScrape, remoteScrapeStream, remoteScraperStatus, remoteSearch, remoteSearchAndScrape, remoteSearchAndScrapeStream, removeDevice, renderPressClip, renew, renewStream, requestControl, rescrapeSite, resolveLinks, restoreScrape, resumeCrawl, retryThroughHomeComputer, revoke, sandboxCapture, sandboxCommand, sandboxStartRun, sandboxStopRun, saveContent, saveCrawlPreset, scoreLinks, screenshot, scroll, searchAndScrape, searchAndScrapeLimited, searchAndScrapeLimitedOnScraper, searchAndScrapeOnScraper, searchKeywords, searchKeywordsOnScraper, selectOption, sessionDiff, setContext, shutdown, siteDiffs, siteSessionDiff, startCrawl, startRun, stopRun, syncGsc, syncSitemaps, syncStatus, takeOver, trafficAtRisk, triggerSync, typeText, upsertDomain, upsertDomainOnScraper, verifyLocalLifecycle, verifyLocalTransport, waitFor };