@distilled.cloud/steel 0.0.0 → 1.0.0-rc.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +66 -4
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +24 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +42 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +26 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +7 -0
- package/lib/index.lazy.js +7 -0
- package/lib/index.lazy.js.map +1 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +19 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +50 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/api_keys.d.ts +63 -0
- package/lib/services/api_keys.d.ts.map +1 -0
- package/lib/services/api_keys.js +2 -0
- package/lib/services/api_keys.js.map +1 -0
- package/lib/services/auth.d.ts +32 -0
- package/lib/services/auth.d.ts.map +1 -0
- package/lib/services/auth.js +2 -0
- package/lib/services/auth.js.map +1 -0
- package/lib/services/browser_tools.d.ts +166 -0
- package/lib/services/browser_tools.d.ts.map +1 -0
- package/lib/services/browser_tools.js +2 -0
- package/lib/services/browser_tools.js.map +1 -0
- package/lib/services/captchas.d.ts +72 -0
- package/lib/services/captchas.d.ts.map +1 -0
- package/lib/services/captchas.js +2 -0
- package/lib/services/captchas.js.map +1 -0
- package/lib/services/credentials.d.ts +127 -0
- package/lib/services/credentials.d.ts.map +1 -0
- package/lib/services/credentials.js +2 -0
- package/lib/services/credentials.js.map +1 -0
- package/lib/services/extensions.d.ts +122 -0
- package/lib/services/extensions.d.ts.map +1 -0
- package/lib/services/extensions.js +2 -0
- package/lib/services/extensions.js.map +1 -0
- package/lib/services/files.d.ts +144 -0
- package/lib/services/files.d.ts.map +1 -0
- package/lib/services/files.js +2 -0
- package/lib/services/files.js.map +1 -0
- package/lib/services/index.d.ts +11 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +10 -0
- package/lib/services/profiles.d.ts +422 -0
- package/lib/services/profiles.d.ts.map +1 -0
- package/lib/services/profiles.js +2 -0
- package/lib/services/profiles.js.map +1 -0
- package/lib/services/projects.d.ts +50 -0
- package/lib/services/projects.d.ts.map +1 -0
- package/lib/services/projects.js +2 -0
- package/lib/services/projects.js.map +1 -0
- package/lib/services/sessions.d.ts +1977 -0
- package/lib/services/sessions.d.ts.map +1 -0
- package/lib/services/sessions.js +44 -0
- package/lib/services/sessions.js.map +1 -0
- package/lib/services.lazy/api_keys.js +1 -0
- package/lib/services.lazy/auth.js +1 -0
- package/lib/services.lazy/browser_tools.js +1 -0
- package/lib/services.lazy/captchas.js +1 -0
- package/lib/services.lazy/credentials.js +1 -0
- package/lib/services.lazy/extensions.js +1 -0
- package/lib/services.lazy/files.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/profiles.js +1 -0
- package/lib/services.lazy/projects.js +1 -0
- package/lib/services.lazy/sessions.js +4 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/package.json +82 -2
- package/src/credentials.ts +63 -0
- package/src/errors.ts +51 -0
- package/src/index.ts +25 -0
- package/src/pagination.ts +9 -0
- package/src/protocol.ts +77 -0
- package/src/retry.ts +69 -0
- package/src/services/api_keys.ts +124 -0
- package/src/services/auth.ts +101 -0
- package/src/services/browser_tools.ts +338 -0
- package/src/services/captchas.ts +216 -0
- package/src/services/credentials.ts +292 -0
- package/src/services/extensions.ts +338 -0
- package/src/services/files.ts +456 -0
- package/src/services/index.ts +11 -0
- package/src/services/profiles.ts +871 -0
- package/src/services/projects.ts +146 -0
- package/src/services/sessions.ts +4515 -0
- package/src/traits.ts +46 -0
|
@@ -0,0 +1,1977 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
|
+
import type * as Redacted from "effect/Redacted";
|
|
4
|
+
import { type SteelOpError, type SteelOpContext } from "../protocol.ts";
|
|
5
|
+
export type { SteelOpError, SteelOpContext };
|
|
6
|
+
declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
|
|
7
|
+
readonly code: any;
|
|
8
|
+
readonly message: any;
|
|
9
|
+
}> & (new (...args: any[]) => {
|
|
10
|
+
"@distilled.cloud/error/categories": {
|
|
11
|
+
BadRequestError: true;
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
15
|
+
}
|
|
16
|
+
declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
|
|
17
|
+
readonly code: any;
|
|
18
|
+
readonly message: any;
|
|
19
|
+
}> & (new (...args: any[]) => {
|
|
20
|
+
"@distilled.cloud/error/categories": {
|
|
21
|
+
ConflictError: true;
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
export declare class Conflict extends /*@__PURE__*/ Conflict_base {
|
|
25
|
+
}
|
|
26
|
+
declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
|
|
27
|
+
readonly code: any;
|
|
28
|
+
readonly message: any;
|
|
29
|
+
}> & (new (...args: any[]) => {
|
|
30
|
+
"@distilled.cloud/error/categories": {
|
|
31
|
+
AuthError: true;
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
|
|
35
|
+
}
|
|
36
|
+
declare const Gone_base: S.TaggedErrorClass<"Gone", {
|
|
37
|
+
readonly code: any;
|
|
38
|
+
readonly message: any;
|
|
39
|
+
}> & (new (...args: any[]) => {
|
|
40
|
+
"@distilled.cloud/error/categories": {
|
|
41
|
+
BadRequestError: true;
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
export declare class Gone extends /*@__PURE__*/ Gone_base {
|
|
45
|
+
}
|
|
46
|
+
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
47
|
+
readonly code: any;
|
|
48
|
+
readonly message: any;
|
|
49
|
+
}> & (new (...args: any[]) => {
|
|
50
|
+
"@distilled.cloud/error/categories": {
|
|
51
|
+
BadRequestError: true;
|
|
52
|
+
};
|
|
53
|
+
});
|
|
54
|
+
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
55
|
+
}
|
|
56
|
+
declare const ProfileNotFound_base: S.TaggedErrorClass<"ProfileNotFound", {
|
|
57
|
+
readonly message: any;
|
|
58
|
+
}> & (new (...args: any[]) => {
|
|
59
|
+
"@distilled.cloud/error/categories": {
|
|
60
|
+
BadRequestError: true;
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
/** The `profileId` names no profile in this organization (`profile_not_found`); profiles expire after a TTL. */
|
|
64
|
+
export declare class ProfileNotFound extends /*@__PURE__*/ ProfileNotFound_base {
|
|
65
|
+
}
|
|
66
|
+
declare const SessionEnded_base: S.TaggedErrorClass<"SessionEnded", {
|
|
67
|
+
readonly message: any;
|
|
68
|
+
}> & (new (...args: any[]) => {
|
|
69
|
+
"@distilled.cloud/error/categories": {
|
|
70
|
+
BadRequestError: true;
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
/** The session has ended (`session_ended`): it was released or timed out. Create a new session to keep going. */
|
|
74
|
+
export declare class SessionEnded extends /*@__PURE__*/ SessionEnded_base {
|
|
75
|
+
}
|
|
76
|
+
declare const UnprocessableEntity_base: S.TaggedErrorClass<"UnprocessableEntity", {
|
|
77
|
+
readonly code: any;
|
|
78
|
+
readonly message: any;
|
|
79
|
+
}> & (new (...args: any[]) => {
|
|
80
|
+
"@distilled.cloud/error/categories": {
|
|
81
|
+
BadRequestError: true;
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
|
|
85
|
+
}
|
|
86
|
+
export interface CancelCommandExecutionRequest {
|
|
87
|
+
/** Session ID */
|
|
88
|
+
sessionId: string;
|
|
89
|
+
/** Execution ID, such as x-1, from the id of a run */
|
|
90
|
+
executionId: string;
|
|
91
|
+
}
|
|
92
|
+
export type CommandDialogType = "alert" | "confirm" | "prompt" | "beforeunload";
|
|
93
|
+
/** A JavaScript dialog: alert, confirm, prompt, or beforeunload. */
|
|
94
|
+
export interface CommandDialog {
|
|
95
|
+
defaultPrompt?: string | undefined;
|
|
96
|
+
id: string;
|
|
97
|
+
message: string;
|
|
98
|
+
tab: string;
|
|
99
|
+
type: CommandDialogType;
|
|
100
|
+
}
|
|
101
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
102
|
+
export type RunCommandsResponseExecutionEffect = "none" | "applied" | "unknown";
|
|
103
|
+
export interface CommandErrorInfo {
|
|
104
|
+
/** Error code, such as stale_ref or not_actionable. */
|
|
105
|
+
code: string;
|
|
106
|
+
message: string;
|
|
107
|
+
/** More detail, such as covered or detached. */
|
|
108
|
+
reason?: string | undefined;
|
|
109
|
+
}
|
|
110
|
+
export type RunCommandsResponseExecutionState = "queued" | "running" | "completed" | "failed" | "cancelled" | "timeout" | "expired";
|
|
111
|
+
export interface RunCommandsResponseExecution {
|
|
112
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
113
|
+
effect: RunCommandsResponseExecutionEffect;
|
|
114
|
+
error?: CommandErrorInfo | undefined;
|
|
115
|
+
id: string;
|
|
116
|
+
/** Commands started. */
|
|
117
|
+
ran: number;
|
|
118
|
+
replayed: boolean;
|
|
119
|
+
state: RunCommandsResponseExecutionState;
|
|
120
|
+
}
|
|
121
|
+
export interface RunCommandsResponseObserve {
|
|
122
|
+
additions?: number | undefined;
|
|
123
|
+
base?: string | undefined;
|
|
124
|
+
diff?: string | undefined;
|
|
125
|
+
error?: CommandErrorInfo | undefined;
|
|
126
|
+
full?: boolean | undefined;
|
|
127
|
+
removals?: number | undefined;
|
|
128
|
+
snapshot?: string | undefined;
|
|
129
|
+
snapshotId?: string | undefined;
|
|
130
|
+
}
|
|
131
|
+
/** The tab the execution used. */
|
|
132
|
+
export interface RunCommandsResponsePage {
|
|
133
|
+
tab: string;
|
|
134
|
+
title: string;
|
|
135
|
+
url: string;
|
|
136
|
+
}
|
|
137
|
+
export type CommandResultCase0Command = "navigate";
|
|
138
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
139
|
+
export type CommandResultCase0Effect = "none" | "applied" | "unknown";
|
|
140
|
+
/** Result of a navigate command. */
|
|
141
|
+
export interface CommandResultCase0 {
|
|
142
|
+
command: CommandResultCase0Command;
|
|
143
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
144
|
+
effect: CommandResultCase0Effect;
|
|
145
|
+
error?: CommandErrorInfo | undefined;
|
|
146
|
+
ok: boolean;
|
|
147
|
+
url?: string | undefined;
|
|
148
|
+
}
|
|
149
|
+
export type CommandResultCase1Command = "back";
|
|
150
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
151
|
+
export type CommandResultCase1Effect = "none" | "applied" | "unknown";
|
|
152
|
+
/** Result of a back command. */
|
|
153
|
+
export interface CommandResultCase1 {
|
|
154
|
+
command: CommandResultCase1Command;
|
|
155
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
156
|
+
effect: CommandResultCase1Effect;
|
|
157
|
+
error?: CommandErrorInfo | undefined;
|
|
158
|
+
/** False when there was no history entry. */
|
|
159
|
+
navigated?: boolean | undefined;
|
|
160
|
+
ok: boolean;
|
|
161
|
+
url?: string | undefined;
|
|
162
|
+
}
|
|
163
|
+
export type CommandResultCase2Command = "forward";
|
|
164
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
165
|
+
export type CommandResultCase2Effect = "none" | "applied" | "unknown";
|
|
166
|
+
/** Result of a forward command. */
|
|
167
|
+
export interface CommandResultCase2 {
|
|
168
|
+
command: CommandResultCase2Command;
|
|
169
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
170
|
+
effect: CommandResultCase2Effect;
|
|
171
|
+
error?: CommandErrorInfo | undefined;
|
|
172
|
+
/** False when there was no history entry. */
|
|
173
|
+
navigated?: boolean | undefined;
|
|
174
|
+
ok: boolean;
|
|
175
|
+
url?: string | undefined;
|
|
176
|
+
}
|
|
177
|
+
export type CommandResultCase3Command = "reload";
|
|
178
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
179
|
+
export type CommandResultCase3Effect = "none" | "applied" | "unknown";
|
|
180
|
+
/** Result of a reload command. */
|
|
181
|
+
export interface CommandResultCase3 {
|
|
182
|
+
command: CommandResultCase3Command;
|
|
183
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
184
|
+
effect: CommandResultCase3Effect;
|
|
185
|
+
error?: CommandErrorInfo | undefined;
|
|
186
|
+
ok: boolean;
|
|
187
|
+
url?: string | undefined;
|
|
188
|
+
}
|
|
189
|
+
export type CommandResultCase4Command = "snapshot";
|
|
190
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
191
|
+
export type CommandResultCase4Effect = "none" | "applied" | "unknown";
|
|
192
|
+
/** Result of a snapshot command. */
|
|
193
|
+
export interface CommandResultCase4 {
|
|
194
|
+
command: CommandResultCase4Command;
|
|
195
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
196
|
+
effect: CommandResultCase4Effect;
|
|
197
|
+
error?: CommandErrorInfo | undefined;
|
|
198
|
+
ok: boolean;
|
|
199
|
+
snapshot?: string | undefined;
|
|
200
|
+
snapshotId?: string | undefined;
|
|
201
|
+
}
|
|
202
|
+
export type CommandResultCase5Command = "click";
|
|
203
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
204
|
+
export type CommandResultCase5Effect = "none" | "applied" | "unknown";
|
|
205
|
+
/** Result of a click command. */
|
|
206
|
+
export interface CommandResultCase5 {
|
|
207
|
+
command: CommandResultCase5Command;
|
|
208
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
209
|
+
dialog?: CommandDialog | undefined;
|
|
210
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
211
|
+
effect: CommandResultCase5Effect;
|
|
212
|
+
error?: CommandErrorInfo | undefined;
|
|
213
|
+
/** The command started a navigation that was still loading when it returned. */
|
|
214
|
+
loading?: boolean | undefined;
|
|
215
|
+
ok: boolean;
|
|
216
|
+
}
|
|
217
|
+
export type CommandResultCase6Command = "dblclick";
|
|
218
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
219
|
+
export type CommandResultCase6Effect = "none" | "applied" | "unknown";
|
|
220
|
+
/** Result of a dblclick command. */
|
|
221
|
+
export interface CommandResultCase6 {
|
|
222
|
+
command: CommandResultCase6Command;
|
|
223
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
224
|
+
dialog?: CommandDialog | undefined;
|
|
225
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
226
|
+
effect: CommandResultCase6Effect;
|
|
227
|
+
error?: CommandErrorInfo | undefined;
|
|
228
|
+
/** The command started a navigation that was still loading when it returned. */
|
|
229
|
+
loading?: boolean | undefined;
|
|
230
|
+
ok: boolean;
|
|
231
|
+
}
|
|
232
|
+
export type CommandResultCase7Command = "hover";
|
|
233
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
234
|
+
export type CommandResultCase7Effect = "none" | "applied" | "unknown";
|
|
235
|
+
/** Result of a hover command. */
|
|
236
|
+
export interface CommandResultCase7 {
|
|
237
|
+
command: CommandResultCase7Command;
|
|
238
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
239
|
+
dialog?: CommandDialog | undefined;
|
|
240
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
241
|
+
effect: CommandResultCase7Effect;
|
|
242
|
+
error?: CommandErrorInfo | undefined;
|
|
243
|
+
ok: boolean;
|
|
244
|
+
}
|
|
245
|
+
export type CommandResultCase8Command = "focus";
|
|
246
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
247
|
+
export type CommandResultCase8Effect = "none" | "applied" | "unknown";
|
|
248
|
+
/** Result of a focus command. */
|
|
249
|
+
export interface CommandResultCase8 {
|
|
250
|
+
command: CommandResultCase8Command;
|
|
251
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
252
|
+
effect: CommandResultCase8Effect;
|
|
253
|
+
error?: CommandErrorInfo | undefined;
|
|
254
|
+
ok: boolean;
|
|
255
|
+
}
|
|
256
|
+
export type CommandResultCase9Command = "type";
|
|
257
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
258
|
+
export type CommandResultCase9Effect = "none" | "applied" | "unknown";
|
|
259
|
+
/** Result of a type command. */
|
|
260
|
+
export interface CommandResultCase9 {
|
|
261
|
+
command: CommandResultCase9Command;
|
|
262
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
263
|
+
dialog?: CommandDialog | undefined;
|
|
264
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
265
|
+
effect: CommandResultCase9Effect;
|
|
266
|
+
error?: CommandErrorInfo | undefined;
|
|
267
|
+
/** The command started a navigation that was still loading when it returned. */
|
|
268
|
+
loading?: boolean | undefined;
|
|
269
|
+
ok: boolean;
|
|
270
|
+
}
|
|
271
|
+
export type CommandResultCase10Command = "fill";
|
|
272
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
273
|
+
export type CommandResultCase10Effect = "none" | "applied" | "unknown";
|
|
274
|
+
/** Result of a fill command. */
|
|
275
|
+
export interface CommandResultCase10 {
|
|
276
|
+
command: CommandResultCase10Command;
|
|
277
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
278
|
+
dialog?: CommandDialog | undefined;
|
|
279
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
280
|
+
effect: CommandResultCase10Effect;
|
|
281
|
+
error?: CommandErrorInfo | undefined;
|
|
282
|
+
/** The command started a navigation that was still loading when it returned. */
|
|
283
|
+
loading?: boolean | undefined;
|
|
284
|
+
ok: boolean;
|
|
285
|
+
}
|
|
286
|
+
export type CommandResultCase11Command = "press";
|
|
287
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
288
|
+
export type CommandResultCase11Effect = "none" | "applied" | "unknown";
|
|
289
|
+
/** Result of a press command. */
|
|
290
|
+
export interface CommandResultCase11 {
|
|
291
|
+
command: CommandResultCase11Command;
|
|
292
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
293
|
+
dialog?: CommandDialog | undefined;
|
|
294
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
295
|
+
effect: CommandResultCase11Effect;
|
|
296
|
+
error?: CommandErrorInfo | undefined;
|
|
297
|
+
/** The command started a navigation that was still loading when it returned. */
|
|
298
|
+
loading?: boolean | undefined;
|
|
299
|
+
ok: boolean;
|
|
300
|
+
}
|
|
301
|
+
export type CommandResultCase12Command = "keydown";
|
|
302
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
303
|
+
export type CommandResultCase12Effect = "none" | "applied" | "unknown";
|
|
304
|
+
/** Result of a keydown command. */
|
|
305
|
+
export interface CommandResultCase12 {
|
|
306
|
+
command: CommandResultCase12Command;
|
|
307
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
308
|
+
dialog?: CommandDialog | undefined;
|
|
309
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
310
|
+
effect: CommandResultCase12Effect;
|
|
311
|
+
error?: CommandErrorInfo | undefined;
|
|
312
|
+
/** The command started a navigation that was still loading when it returned. */
|
|
313
|
+
loading?: boolean | undefined;
|
|
314
|
+
ok: boolean;
|
|
315
|
+
}
|
|
316
|
+
export type CommandResultCase13Command = "keyup";
|
|
317
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
318
|
+
export type CommandResultCase13Effect = "none" | "applied" | "unknown";
|
|
319
|
+
/** Result of a keyup command. */
|
|
320
|
+
export interface CommandResultCase13 {
|
|
321
|
+
command: CommandResultCase13Command;
|
|
322
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
323
|
+
dialog?: CommandDialog | undefined;
|
|
324
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
325
|
+
effect: CommandResultCase13Effect;
|
|
326
|
+
error?: CommandErrorInfo | undefined;
|
|
327
|
+
/** The command started a navigation that was still loading when it returned. */
|
|
328
|
+
loading?: boolean | undefined;
|
|
329
|
+
ok: boolean;
|
|
330
|
+
}
|
|
331
|
+
export type CommandResultCase14Command = "mouse";
|
|
332
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
333
|
+
export type CommandResultCase14Effect = "none" | "applied" | "unknown";
|
|
334
|
+
/** Result of a mouse command. */
|
|
335
|
+
export interface CommandResultCase14 {
|
|
336
|
+
command: CommandResultCase14Command;
|
|
337
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
338
|
+
dialog?: CommandDialog | undefined;
|
|
339
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
340
|
+
effect: CommandResultCase14Effect;
|
|
341
|
+
error?: CommandErrorInfo | undefined;
|
|
342
|
+
/** The command started a navigation that was still loading when it returned. */
|
|
343
|
+
loading?: boolean | undefined;
|
|
344
|
+
ok: boolean;
|
|
345
|
+
}
|
|
346
|
+
export type CommandResultCase15Command = "select";
|
|
347
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
348
|
+
export type CommandResultCase15Effect = "none" | "applied" | "unknown";
|
|
349
|
+
/** The values of the selected options. */
|
|
350
|
+
export type CommandResultCase15SelectedList = Array<string>;
|
|
351
|
+
/** Result of a select command. */
|
|
352
|
+
export interface CommandResultCase15 {
|
|
353
|
+
command: CommandResultCase15Command;
|
|
354
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
355
|
+
dialog?: CommandDialog | undefined;
|
|
356
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
357
|
+
effect: CommandResultCase15Effect;
|
|
358
|
+
error?: CommandErrorInfo | undefined;
|
|
359
|
+
/** The command started a navigation that was still loading when it returned. */
|
|
360
|
+
loading?: boolean | undefined;
|
|
361
|
+
ok: boolean;
|
|
362
|
+
/** The values of the selected options. */
|
|
363
|
+
selected?: CommandResultCase15SelectedList | undefined;
|
|
364
|
+
}
|
|
365
|
+
export type CommandResultCase16Command = "check";
|
|
366
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
367
|
+
export type CommandResultCase16Effect = "none" | "applied" | "unknown";
|
|
368
|
+
/** Result of a check command. */
|
|
369
|
+
export interface CommandResultCase16 {
|
|
370
|
+
checked?: boolean | undefined;
|
|
371
|
+
command: CommandResultCase16Command;
|
|
372
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
373
|
+
dialog?: CommandDialog | undefined;
|
|
374
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
375
|
+
effect: CommandResultCase16Effect;
|
|
376
|
+
error?: CommandErrorInfo | undefined;
|
|
377
|
+
/** The command started a navigation that was still loading when it returned. */
|
|
378
|
+
loading?: boolean | undefined;
|
|
379
|
+
ok: boolean;
|
|
380
|
+
}
|
|
381
|
+
export type CommandResultCase17Command = "uncheck";
|
|
382
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
383
|
+
export type CommandResultCase17Effect = "none" | "applied" | "unknown";
|
|
384
|
+
/** Result of a uncheck command. */
|
|
385
|
+
export interface CommandResultCase17 {
|
|
386
|
+
checked?: boolean | undefined;
|
|
387
|
+
command: CommandResultCase17Command;
|
|
388
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
389
|
+
dialog?: CommandDialog | undefined;
|
|
390
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
391
|
+
effect: CommandResultCase17Effect;
|
|
392
|
+
error?: CommandErrorInfo | undefined;
|
|
393
|
+
/** The command started a navigation that was still loading when it returned. */
|
|
394
|
+
loading?: boolean | undefined;
|
|
395
|
+
ok: boolean;
|
|
396
|
+
}
|
|
397
|
+
export type CommandResultCase18Command = "upload";
|
|
398
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
399
|
+
export type CommandResultCase18Effect = "none" | "applied" | "unknown";
|
|
400
|
+
export type CommandResultCase18FilesList = Array<string>;
|
|
401
|
+
/** Result of a upload command. */
|
|
402
|
+
export interface CommandResultCase18 {
|
|
403
|
+
command: CommandResultCase18Command;
|
|
404
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
405
|
+
dialog?: CommandDialog | undefined;
|
|
406
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
407
|
+
effect: CommandResultCase18Effect;
|
|
408
|
+
error?: CommandErrorInfo | undefined;
|
|
409
|
+
files?: CommandResultCase18FilesList | undefined;
|
|
410
|
+
/** The command started a navigation that was still loading when it returned. */
|
|
411
|
+
loading?: boolean | undefined;
|
|
412
|
+
ok: boolean;
|
|
413
|
+
}
|
|
414
|
+
export type CommandResultCase19Command = "drag";
|
|
415
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
416
|
+
export type CommandResultCase19Effect = "none" | "applied" | "unknown";
|
|
417
|
+
/** Result of a drag command. */
|
|
418
|
+
export interface CommandResultCase19 {
|
|
419
|
+
command: CommandResultCase19Command;
|
|
420
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
421
|
+
dialog?: CommandDialog | undefined;
|
|
422
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
423
|
+
effect: CommandResultCase19Effect;
|
|
424
|
+
error?: CommandErrorInfo | undefined;
|
|
425
|
+
/** The command started a navigation that was still loading when it returned. */
|
|
426
|
+
loading?: boolean | undefined;
|
|
427
|
+
ok: boolean;
|
|
428
|
+
}
|
|
429
|
+
export type CommandResultCase20Command = "get";
|
|
430
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
431
|
+
export type CommandResultCase20Effect = "none" | "applied" | "unknown";
|
|
432
|
+
/** Result of a get command. */
|
|
433
|
+
export interface CommandResultCase20 {
|
|
434
|
+
command: CommandResultCase20Command;
|
|
435
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
436
|
+
effect: CommandResultCase20Effect;
|
|
437
|
+
error?: CommandErrorInfo | undefined;
|
|
438
|
+
/** The value is a secret, so it is left out. */
|
|
439
|
+
masked?: boolean | undefined;
|
|
440
|
+
ok: boolean;
|
|
441
|
+
/** A string for text, html, markdown, value, attr, title, and url. A number for count. { x, y, width, height } or null for box. A list of locators for locator. */
|
|
442
|
+
value?: unknown | undefined;
|
|
443
|
+
}
|
|
444
|
+
export type CommandResultCase21Command = "is";
|
|
445
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
446
|
+
export type CommandResultCase21Effect = "none" | "applied" | "unknown";
|
|
447
|
+
/** Result of a is command. */
|
|
448
|
+
export interface CommandResultCase21 {
|
|
449
|
+
command: CommandResultCase21Command;
|
|
450
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
451
|
+
effect: CommandResultCase21Effect;
|
|
452
|
+
error?: CommandErrorInfo | undefined;
|
|
453
|
+
ok: boolean;
|
|
454
|
+
value?: boolean | undefined;
|
|
455
|
+
}
|
|
456
|
+
export type CommandResultCase22Command = "wait";
|
|
457
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
458
|
+
export type CommandResultCase22Effect = "none" | "applied" | "unknown";
|
|
459
|
+
export type CommandResultCase22Waited = "ms" | "target" | "text" | "url" | "load" | "download";
|
|
460
|
+
/** Result of a wait command. */
|
|
461
|
+
export interface CommandResultCase22 {
|
|
462
|
+
bytes?: number | undefined;
|
|
463
|
+
command: CommandResultCase22Command;
|
|
464
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
465
|
+
effect: CommandResultCase22Effect;
|
|
466
|
+
error?: CommandErrorInfo | undefined;
|
|
467
|
+
/** The downloaded file, for download. */
|
|
468
|
+
file?: string | undefined;
|
|
469
|
+
ok: boolean;
|
|
470
|
+
waited?: CommandResultCase22Waited | undefined;
|
|
471
|
+
}
|
|
472
|
+
export type CommandResultCase23Command = "screenshot";
|
|
473
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
474
|
+
export type CommandResultCase23Effect = "none" | "applied" | "unknown";
|
|
475
|
+
export type CommandResultCase23Format = "png" | "jpeg" | "webp";
|
|
476
|
+
/** Result of a screenshot command. */
|
|
477
|
+
export interface CommandResultCase23 {
|
|
478
|
+
command: CommandResultCase23Command;
|
|
479
|
+
data?: string | undefined;
|
|
480
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
481
|
+
effect: CommandResultCase23Effect;
|
|
482
|
+
error?: CommandErrorInfo | undefined;
|
|
483
|
+
format?: CommandResultCase23Format | undefined;
|
|
484
|
+
ok: boolean;
|
|
485
|
+
}
|
|
486
|
+
export type CommandResultCase24Command = "eval";
|
|
487
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
488
|
+
export type CommandResultCase24Effect = "none" | "applied" | "unknown";
|
|
489
|
+
/** Result of a eval command. */
|
|
490
|
+
export interface CommandResultCase24 {
|
|
491
|
+
command: CommandResultCase24Command;
|
|
492
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
493
|
+
dialog?: CommandDialog | undefined;
|
|
494
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
495
|
+
effect: CommandResultCase24Effect;
|
|
496
|
+
error?: CommandErrorInfo | undefined;
|
|
497
|
+
/** The command started a navigation that was still loading when it returned. */
|
|
498
|
+
loading?: boolean | undefined;
|
|
499
|
+
ok: boolean;
|
|
500
|
+
/** The result of the script as JSON. */
|
|
501
|
+
value?: unknown | undefined;
|
|
502
|
+
}
|
|
503
|
+
export type CommandResultCase25Command = "pdf";
|
|
504
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
505
|
+
export type CommandResultCase25Effect = "none" | "applied" | "unknown";
|
|
506
|
+
export type CommandResultCase25Format = "pdf";
|
|
507
|
+
/** Result of a pdf command. */
|
|
508
|
+
export interface CommandResultCase25 {
|
|
509
|
+
command: CommandResultCase25Command;
|
|
510
|
+
data?: string | undefined;
|
|
511
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
512
|
+
effect: CommandResultCase25Effect;
|
|
513
|
+
error?: CommandErrorInfo | undefined;
|
|
514
|
+
format?: CommandResultCase25Format | undefined;
|
|
515
|
+
ok: boolean;
|
|
516
|
+
}
|
|
517
|
+
export type CommandResultCase26Command = "scroll";
|
|
518
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
519
|
+
export type CommandResultCase26Effect = "none" | "applied" | "unknown";
|
|
520
|
+
/** Result of a scroll command. */
|
|
521
|
+
export interface CommandResultCase26 {
|
|
522
|
+
command: CommandResultCase26Command;
|
|
523
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
524
|
+
effect: CommandResultCase26Effect;
|
|
525
|
+
error?: CommandErrorInfo | undefined;
|
|
526
|
+
moved?: boolean | undefined;
|
|
527
|
+
ok: boolean;
|
|
528
|
+
x?: number | undefined;
|
|
529
|
+
y?: number | undefined;
|
|
530
|
+
}
|
|
531
|
+
export type CommandResultCase27Command = "find";
|
|
532
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
533
|
+
export type CommandResultCase27Effect = "none" | "applied" | "unknown";
|
|
534
|
+
export interface CommandResultCase27MatchesItem {
|
|
535
|
+
name: string;
|
|
536
|
+
ref: string;
|
|
537
|
+
role: string;
|
|
538
|
+
}
|
|
539
|
+
export type CommandResultCase27MatchesList = Array<CommandResultCase27MatchesItem>;
|
|
540
|
+
/** Result of a find command. */
|
|
541
|
+
export interface CommandResultCase27 {
|
|
542
|
+
command: CommandResultCase27Command;
|
|
543
|
+
count?: number | undefined;
|
|
544
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
545
|
+
effect: CommandResultCase27Effect;
|
|
546
|
+
error?: CommandErrorInfo | undefined;
|
|
547
|
+
matches?: CommandResultCase27MatchesList | undefined;
|
|
548
|
+
ok: boolean;
|
|
549
|
+
}
|
|
550
|
+
export type CommandResultCase28Command = "tab";
|
|
551
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
552
|
+
export type CommandResultCase28Effect = "none" | "applied" | "unknown";
|
|
553
|
+
export type CommandResultCase28TabsItem = RunCommandsResponsePage;
|
|
554
|
+
export type CommandResultCase28TabsList = Array<RunCommandsResponsePage>;
|
|
555
|
+
/** Result of a tab command. */
|
|
556
|
+
export interface CommandResultCase28 {
|
|
557
|
+
command: CommandResultCase28Command;
|
|
558
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
559
|
+
effect: CommandResultCase28Effect;
|
|
560
|
+
error?: CommandErrorInfo | undefined;
|
|
561
|
+
ok: boolean;
|
|
562
|
+
tab?: string | undefined;
|
|
563
|
+
tabs?: CommandResultCase28TabsList | undefined;
|
|
564
|
+
}
|
|
565
|
+
/** Result of one command, with the fields of that command. */
|
|
566
|
+
export type CommandResult = CommandResultCase0 | CommandResultCase1 | CommandResultCase2 | CommandResultCase3 | CommandResultCase4 | CommandResultCase5 | CommandResultCase6 | CommandResultCase7 | CommandResultCase8 | CommandResultCase9 | CommandResultCase10 | CommandResultCase11 | CommandResultCase12 | CommandResultCase13 | CommandResultCase14 | CommandResultCase15 | CommandResultCase16 | CommandResultCase17 | CommandResultCase18 | CommandResultCase19 | CommandResultCase20 | CommandResultCase21 | CommandResultCase22 | CommandResultCase23 | CommandResultCase24 | CommandResultCase25 | CommandResultCase26 | CommandResultCase27 | CommandResultCase28;
|
|
567
|
+
export type RunCommandsResponseResultsList = Array<CommandResult>;
|
|
568
|
+
export interface RunCommandsResponse {
|
|
569
|
+
bodyExpired?: boolean | undefined;
|
|
570
|
+
/** A dialog that is open on the tab and blocks it until it closes. */
|
|
571
|
+
dialog?: CommandDialog | undefined;
|
|
572
|
+
/** Set when the execution ran with after. Whether another execution, a quick action, or a browser restart changed the session since then. Input from CDP clients or the live view does not count. */
|
|
573
|
+
epochChanged?: boolean | undefined;
|
|
574
|
+
execution: RunCommandsResponseExecution;
|
|
575
|
+
/** The id of this execution, the same as execution.id. Use it to get or cancel the execution. */
|
|
576
|
+
id: string;
|
|
577
|
+
/** Send it as after in the next request. */
|
|
578
|
+
next?: string | undefined;
|
|
579
|
+
observe?: RunCommandsResponseObserve | undefined;
|
|
580
|
+
/** The tab the execution used. */
|
|
581
|
+
page: RunCommandsResponsePage | null;
|
|
582
|
+
results: RunCommandsResponseResultsList;
|
|
583
|
+
}
|
|
584
|
+
/** PEM-encoded root CA certificates to trust in this session. THIS IS CURRENTLY AN EXPERIMENTAL FEATURE. */
|
|
585
|
+
export type CreateSessionRequestCaCertificatesList = Array<string>;
|
|
586
|
+
/** Optional allowlist of credential origins to inject into this session. */
|
|
587
|
+
export type CreateSessionRequestCredentialsOriginsList = Array<string>;
|
|
588
|
+
/** Configuration for session credentials */
|
|
589
|
+
export interface CreateSessionRequestCredentials {
|
|
590
|
+
autoSubmit?: boolean | undefined;
|
|
591
|
+
blurFields?: boolean | undefined;
|
|
592
|
+
/** Credential provider to use for runtime credential resolution. Defaults to "steel". */
|
|
593
|
+
credentialProvider?: string | undefined;
|
|
594
|
+
exactOrigin?: boolean | undefined;
|
|
595
|
+
/** Optional allowlist of credential origins to inject into this session. */
|
|
596
|
+
origins?: CreateSessionRequestCredentialsOriginsList | undefined;
|
|
597
|
+
}
|
|
598
|
+
/** Configuration for the debug URL and session viewer. Controls interaction capabilities, cursor visibility, and other debug-related settings. */
|
|
599
|
+
export interface CreateSessionRequestDebugConfig {
|
|
600
|
+
/** Allow interaction with the browser session via the debug URL viewer. When false, the session viewer will be view-only. Default is true. */
|
|
601
|
+
interactive?: boolean | undefined;
|
|
602
|
+
/** Show the OS-level mouse cursor in the WebRTC stream (headful mode only). When false, the system cursor will not be rendered in the stream. Default is true. */
|
|
603
|
+
systemCursor?: boolean | undefined;
|
|
604
|
+
}
|
|
605
|
+
export type CreateSessionRequestDeviceConfigDevice = "desktop" | "mobile";
|
|
606
|
+
/** Device configuration for the session. Specify 'mobile' for mobile device fingerprints and configurations. */
|
|
607
|
+
export interface CreateSessionRequestDeviceConfig {
|
|
608
|
+
device?: CreateSessionRequestDeviceConfigDevice | (string & {}) | undefined;
|
|
609
|
+
}
|
|
610
|
+
/** Viewport and browser window dimensions for the session. Mobile sessions require dimensions of at least 508x1074; smaller mobile dimensions are rejected with a 400 response. */
|
|
611
|
+
export interface CreateSessionRequestDimensions {
|
|
612
|
+
/** Height of the session */
|
|
613
|
+
height: number;
|
|
614
|
+
/** Width of the session */
|
|
615
|
+
width: number;
|
|
616
|
+
}
|
|
617
|
+
/** Enable experimental features for the session. */
|
|
618
|
+
export type CreateSessionRequestExperimentalFeaturesList = Array<string>;
|
|
619
|
+
/** Array of extension IDs to install in the session. Use ['all_ext'] to install all uploaded extensions. */
|
|
620
|
+
export type CreateSessionRequestExtensionIdsList = Array<string>;
|
|
621
|
+
export type CreateSessionRequestMetadataValue = string | number | boolean;
|
|
622
|
+
/** Customer-defined flat metadata: up to 50 keys and 8192 UTF-8 JSON bytes. Keys must start with a letter, use only letters, digits, underscores, dots or hyphens, and be at most 64 characters; steel_ is reserved. Values are strings (up to 1024 characters, valid Unicode without NUL), finite numbers or booleans. Numbers and booleans are stored as strings, so 3 and "3" are the same value. */
|
|
623
|
+
export type CreateSessionRequestMetadataMap = {
|
|
624
|
+
[key: string]: CreateSessionRequestMetadataValue | undefined;
|
|
625
|
+
};
|
|
626
|
+
export type CreateSessionRequestOptimizeBandwidthCase1BlockHostsList = Array<string>;
|
|
627
|
+
export type CreateSessionRequestOptimizeBandwidthCase1BlockUrlPatternsList = Array<string>;
|
|
628
|
+
export interface CreateSessionRequestOptimizeBandwidthCase1 {
|
|
629
|
+
blockHosts?: CreateSessionRequestOptimizeBandwidthCase1BlockHostsList | undefined;
|
|
630
|
+
blockImages?: boolean | undefined;
|
|
631
|
+
blockMedia?: boolean | undefined;
|
|
632
|
+
blockStylesheets?: boolean | undefined;
|
|
633
|
+
blockUrlPatterns?: CreateSessionRequestOptimizeBandwidthCase1BlockUrlPatternsList | undefined;
|
|
634
|
+
}
|
|
635
|
+
/** Enable bandwidth optimizations. Passing true enables all flags (except hosts/patterns). Object allows granular control. */
|
|
636
|
+
export type CreateSessionRequestOptimizeBandwidth = boolean | CreateSessionRequestOptimizeBandwidthCase1;
|
|
637
|
+
/** The partition key of the cookie */
|
|
638
|
+
export interface CreateSessionRequestSessionContextCookiesItemPartitionKey {
|
|
639
|
+
/** Indicates if the cookie has any ancestors that are cross-site to the topLevelSite. */
|
|
640
|
+
hasCrossSiteAncestor: boolean;
|
|
641
|
+
/** The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie. */
|
|
642
|
+
topLevelSite: string;
|
|
643
|
+
}
|
|
644
|
+
/** The priority of the cookie */
|
|
645
|
+
export type CreateSessionRequestSessionContextCookiesItemPriority = "Low" | "Medium" | "High";
|
|
646
|
+
/** The same site attribute of the cookie */
|
|
647
|
+
export type CreateSessionRequestSessionContextCookiesItemSameSite = "Strict" | "Lax" | "None";
|
|
648
|
+
/** The source scheme of the cookie */
|
|
649
|
+
export type CreateSessionRequestSessionContextCookiesItemSourceScheme = "Unset" | "NonSecure" | "Secure";
|
|
650
|
+
export interface CreateSessionRequestSessionContextCookiesItem {
|
|
651
|
+
/** The domain of the cookie */
|
|
652
|
+
domain?: string | undefined;
|
|
653
|
+
/** The expiration date of the cookie */
|
|
654
|
+
expires?: number | undefined;
|
|
655
|
+
/** Whether the cookie is HTTP only */
|
|
656
|
+
httpOnly?: boolean | undefined;
|
|
657
|
+
/** The name of the cookie */
|
|
658
|
+
name: string;
|
|
659
|
+
/** The partition key of the cookie */
|
|
660
|
+
partitionKey?: CreateSessionRequestSessionContextCookiesItemPartitionKey | undefined;
|
|
661
|
+
/** The path of the cookie */
|
|
662
|
+
path?: string | undefined;
|
|
663
|
+
/** The priority of the cookie */
|
|
664
|
+
priority?: CreateSessionRequestSessionContextCookiesItemPriority | (string & {}) | undefined;
|
|
665
|
+
/** Whether the cookie is a same party cookie */
|
|
666
|
+
sameParty?: boolean | undefined;
|
|
667
|
+
/** The same site attribute of the cookie */
|
|
668
|
+
sameSite?: CreateSessionRequestSessionContextCookiesItemSameSite | (string & {}) | undefined;
|
|
669
|
+
/** Whether the cookie is secure */
|
|
670
|
+
secure?: boolean | undefined;
|
|
671
|
+
/** Whether the cookie is a session cookie */
|
|
672
|
+
session?: boolean | undefined;
|
|
673
|
+
/** The size of the cookie */
|
|
674
|
+
size?: number | undefined;
|
|
675
|
+
/** The source port of the cookie */
|
|
676
|
+
sourcePort?: number | undefined;
|
|
677
|
+
/** The source scheme of the cookie */
|
|
678
|
+
sourceScheme?: CreateSessionRequestSessionContextCookiesItemSourceScheme | (string & {}) | undefined;
|
|
679
|
+
/** The URL of the cookie */
|
|
680
|
+
url?: string | undefined;
|
|
681
|
+
/** The value of the cookie */
|
|
682
|
+
value: string;
|
|
683
|
+
}
|
|
684
|
+
/** Cookies to initialize in the session */
|
|
685
|
+
export type CreateSessionRequestSessionContextCookiesList = Array<CreateSessionRequestSessionContextCookiesItem>;
|
|
686
|
+
export interface CreateSessionRequestSessionContextIndexedDBValueItemDataItemRecordsItemBlobFilesItem {
|
|
687
|
+
blobNumber: number;
|
|
688
|
+
filename?: string | undefined;
|
|
689
|
+
lastModified?: string | undefined;
|
|
690
|
+
mimeType: string;
|
|
691
|
+
path?: string | undefined;
|
|
692
|
+
size: number;
|
|
693
|
+
}
|
|
694
|
+
export type CreateSessionRequestSessionContextIndexedDBValueItemDataItemRecordsItemBlobFilesList = Array<CreateSessionRequestSessionContextIndexedDBValueItemDataItemRecordsItemBlobFilesItem>;
|
|
695
|
+
export interface CreateSessionRequestSessionContextIndexedDBValueItemDataItemRecordsItem {
|
|
696
|
+
blobFiles?: CreateSessionRequestSessionContextIndexedDBValueItemDataItemRecordsItemBlobFilesList | undefined;
|
|
697
|
+
key: unknown;
|
|
698
|
+
value: unknown;
|
|
699
|
+
}
|
|
700
|
+
export type CreateSessionRequestSessionContextIndexedDBValueItemDataItemRecordsList = Array<CreateSessionRequestSessionContextIndexedDBValueItemDataItemRecordsItem>;
|
|
701
|
+
export interface CreateSessionRequestSessionContextIndexedDBValueItemDataItem {
|
|
702
|
+
id: number;
|
|
703
|
+
name: string;
|
|
704
|
+
records: CreateSessionRequestSessionContextIndexedDBValueItemDataItemRecordsList;
|
|
705
|
+
}
|
|
706
|
+
export type CreateSessionRequestSessionContextIndexedDBValueItemDataList = Array<CreateSessionRequestSessionContextIndexedDBValueItemDataItem>;
|
|
707
|
+
export interface CreateSessionRequestSessionContextIndexedDBValueItem {
|
|
708
|
+
data: CreateSessionRequestSessionContextIndexedDBValueItemDataList;
|
|
709
|
+
id: number;
|
|
710
|
+
name: string;
|
|
711
|
+
}
|
|
712
|
+
export type CreateSessionRequestSessionContextIndexedDBValueList = Array<CreateSessionRequestSessionContextIndexedDBValueItem>;
|
|
713
|
+
/** Domain-specific indexedDB items to initialize in the session */
|
|
714
|
+
export type CreateSessionRequestSessionContextIndexedDBMap = {
|
|
715
|
+
[key: string]: CreateSessionRequestSessionContextIndexedDBValueList | undefined;
|
|
716
|
+
};
|
|
717
|
+
export type CreateSessionRequestSessionContextLocalStorageValueMap = {
|
|
718
|
+
[key: string]: string | undefined;
|
|
719
|
+
};
|
|
720
|
+
/** Domain-specific localStorage items to initialize in the session */
|
|
721
|
+
export type CreateSessionRequestSessionContextLocalStorageMap = {
|
|
722
|
+
[key: string]: CreateSessionRequestSessionContextLocalStorageValueMap | undefined;
|
|
723
|
+
};
|
|
724
|
+
export type CreateSessionRequestSessionContextSessionStorageValueMap = {
|
|
725
|
+
[key: string]: string | undefined;
|
|
726
|
+
};
|
|
727
|
+
/** Domain-specific sessionStorage items to initialize in the session */
|
|
728
|
+
export type CreateSessionRequestSessionContextSessionStorageMap = {
|
|
729
|
+
[key: string]: CreateSessionRequestSessionContextSessionStorageValueMap | undefined;
|
|
730
|
+
};
|
|
731
|
+
/** Session context data to be used in the created session. Sessions will start with an empty context by default. */
|
|
732
|
+
export interface CreateSessionRequestSessionContext {
|
|
733
|
+
/** Cookies to initialize in the session */
|
|
734
|
+
cookies?: CreateSessionRequestSessionContextCookiesList | undefined;
|
|
735
|
+
/** Domain-specific indexedDB items to initialize in the session */
|
|
736
|
+
indexedDB?: CreateSessionRequestSessionContextIndexedDBMap | undefined;
|
|
737
|
+
/** Domain-specific localStorage items to initialize in the session */
|
|
738
|
+
localStorage?: CreateSessionRequestSessionContextLocalStorageMap | undefined;
|
|
739
|
+
/** Domain-specific sessionStorage items to initialize in the session */
|
|
740
|
+
sessionStorage?: CreateSessionRequestSessionContextSessionStorageMap | undefined;
|
|
741
|
+
}
|
|
742
|
+
/** Stealth configuration for the session */
|
|
743
|
+
export interface CreateSessionRequestStealthConfig {
|
|
744
|
+
/** When true, captchas will be automatically solved when detected. When false, use the solve endpoints to manually initiate solving. */
|
|
745
|
+
autoCaptchaSolving?: boolean | undefined;
|
|
746
|
+
/** This flag will make the browser act more human-like by moving the mouse in a more natural way. */
|
|
747
|
+
humanizeInteractions?: boolean | undefined;
|
|
748
|
+
/** This flag will skip the fingerprint generation for the session. */
|
|
749
|
+
skipFingerprintInjection?: boolean | undefined;
|
|
750
|
+
}
|
|
751
|
+
/** City name (e.g., 'NEW_YORK', 'LOS_ANGELES') */
|
|
752
|
+
export type CreateSessionRequestUseProxyCase0Case1Case0GeolocationCity = "A_CORUNA" | "ABIDJAN" | "ABU_DHABI" | "ABUJA" | "ACAPULCO_DE JUAREZ" | "ACCRA" | "ADANA" | "ADAPAZARI" | "ADDIS_ABABA" | "ADELAIDE" | "AFYONKARAHISAR" | "AGADIR" | "AGUAS_LINDAS DE GOIAS" | "AGUASCALIENTES" | "AHMEDABAD" | "AIZAWL" | "AJMAN" | "AKRON" | "AKSARAY" | "AL_AIN CITY" | "AL_MANSURAH" | "AL_QATIF" | "ALAJUELA" | "ALBANY" | "ALBUQUERQUE" | "ALEXANDRIA" | "ALGIERS" | "ALICANTE" | "ALMADA" | "ALMATY" | "ALMERE_STAD" | "ALVORADA" | "AMADORA" | "AMASYA" | "AMBATO" | "AMERICANA" | "AMMAN" | "AMSTERDAM" | "ANANINDEUA" | "ANAPOLIS" | "ANGELES_CITY" | "ANGERS" | "ANGRA_DOS REIS" | "ANKARA" | "ANTAKYA" | "ANTALYA" | "ANTANANARIVO" | "ANTIPOLO_CITY" | "ANTOFAGASTA" | "ANTWERP" | "APARECIDA_DE GOIANIA" | "APODACA" | "ARACAJU" | "ARACATUBA" | "ARAD" | "ARAGUAINA" | "ARAPIRACA" | "ARARAQUARA" | "AREQUIPA" | "ARICA" | "ARLINGTON" | "ARYANAH" | "ASTANA" | "ASUNCION" | "ASYUT" | "ATAKUM" | "ATHENS" | "ATIBAIA" | "ATLANTA" | "AUBURN" | "AUCKLAND" | "AURORA" | "AUSTIN" | "AVELLANEDA" | "AYDIN" | "AZCAPOTZALCO" | "BACOLOD_CITY" | "BACOOR" | "BAGHDAD" | "BAGUIO_CITY" | "BAHIA_BLANCA" | "BAKERSFIELD" | "BAKU" | "BALIKESIR" | "BALIKPAPAN" | "BALNEARIO_CAMBORIU" | "BALTIMORE" | "BANDAR_LAMPUNG" | "BANDAR_SERI BEGAWAN" | "BANDUNG" | "BANGKOK" | "BANJA_LUKA" | "BANJARMASIN" | "BARCELONA" | "BARI" | "BARQUISIMETO" | "BARRA_MANSA" | "BARRANQUILLA" | "BARUERI" | "BATAM" | "BATANGAS" | "BATMAN" | "BATNA_CITY" | "BATON_ROUGE" | "BATUMI" | "BAURU" | "BEIRUT" | "BEJAIA" | "BEKASI" | "BELEM" | "BELFAST" | "BELFORD_ROXO" | "BELGRADE" | "BELO_HORIZONTE" | "BENGALURU" | "BENI_MELLAL" | "BERAZATEGUI" | "BERN" | "BETIM" | "BHARATPUR" | "BHOPAL" | "BHUBANESWAR" | "BIALYSTOK" | "BIEN_HOA" | "BILBAO" | "BILECIK" | "BIRATNAGAR" | "BIRMINGHAM" | "BISHKEK" | "BIZERTE" | "BLIDA" | "BLOEMFONTEIN" | "BLOOMINGTON" | "BLUMENAU" | "BOA_VISTA" | "BOCHUM" | "BOGOR" | "BOGOTA" | "BOISE" | "BOKSBURG" | "BOLOGNA" | "BOLU" | "BORDEAUX" | "BOSTON" | "BOTUCATU" | "BRADFORD" | "BRAGA" | "BRAGANCA_PAULISTA" | "BRAMPTON" | "BRASILIA" | "BRASOV" | "BRATISLAVA" | "BREMEN" | "BRESCIA" | "BREST" | "BRIDGETOWN" | "BRISBANE" | "BRISTOL" | "BRNO" | "BROOKLYN" | "BRUSSELS" | "BUCARAMANGA" | "BUCHAREST" | "BUDAPEST" | "BUENOS_AIRES" | "BUFFALO" | "BUK_GU" | "BUKHARA" | "BURGAS" | "BURNABY" | "BURSA" | "BUTUAN" | "BYDGOSZCZ" | "CABANATUAN_CITY" | "CABO_FRIO" | "CABUYAO" | "CACHOEIRO_DE ITAPEMIRIM" | "CAGAYAN_DE ORO" | "CAGLIARI" | "CAIRO" | "CALAMBA" | "CALGARY" | "CALOOCAN_CITY" | "CAMACARI" | "CAMARAGIBE" | "CAMPECHE" | "CAMPINA_GRANDE" | "CAMPINAS" | "CAMPO_GRANDE" | "CAMPO_LARGO" | "CAMPOS_DOS GOYTACAZES" | "CAN_THO" | "CANOAS" | "CANTON" | "CAPE_TOWN" | "CARACAS" | "CARAGUATATUBA" | "CARAPICUIBA" | "CARDIFF" | "CARIACICA" | "CARMONA" | "CARTAGENA" | "CARUARU" | "CASABLANCA" | "CASCAVEL" | "CASEROS" | "CASTANHAL" | "CASTRIES" | "CATALAO" | "CATAMARCA" | "CATANDUVA" | "CATANIA" | "CAUCAIA" | "CAXIAS_DO SUL" | "CEBU_CITY" | "CENTRAL" | "CENTRO" | "CENTURION" | "CHAGUANAS" | "CHANDIGARH" | "CHANDLER" | "CHANG_HUA" | "CHAPECO" | "CHARLESTON" | "CHARLOTTE" | "CHELYABINSK" | "CHENNAI" | "CHERKASY" | "CHERNIVTSI" | "CHIA" | "CHIANG_MAI" | "CHICLAYO" | "CHIHUAHUA_CITY" | "CHIMBOTE" | "CHISINAU" | "CHITTAGONG" | "CHRISTCHURCH" | "CINCINNATI" | "CIREBON" | "CITY_OF MUNTINLUPA" | "CIUDAD_DEL ESTE" | "CIUDAD_GUAYANA" | "CIUDAD_JUAREZ" | "CIUDAD_NEZAHUALCOYOTL" | "CIUDAD_OBREGON" | "CLEVELAND" | "CLUJ_NAPOCA" | "COCHABAMBA" | "COIMBATORE" | "COIMBRA" | "COLOGNE" | "COLOMBO" | "COLORADO_SPRINGS" | "COLUMBIA" | "COLUMBUS" | "COMODORO_RIVADAVIA" | "CONCEPCION" | "CONCORD" | "CONSTANTA" | "CONSTANTINE" | "CONTAGEM" | "COPENHAGEN" | "CORDOBA" | "CORRIENTES" | "CORUM" | "COTIA" | "COVENTRY" | "CRAIOVA" | "CRICIUMA" | "CROYDON" | "CUAUTITLAN_IZCALLI" | "CUCUTA" | "CUENCA" | "CUERNAVACA" | "CUIABA" | "CULIACAN" | "CURITIBA" | "CUSCO" | "DA_NANG" | "DAGUPAN" | "DAKAR" | "DALLAS" | "DAMIETTA" | "DAMMAM" | "DAR_ES SALAAM" | "DASMARINAS" | "DAVAO_CITY" | "DAYTON" | "DEBRECEN" | "DECATUR" | "DEHRADUN" | "DELHI" | "DENIZLI" | "DENPASAR" | "DENVER" | "DEPOK" | "DERBY" | "DETROIT" | "DHAKA" | "DIADEMA" | "DIVINOPOLIS" | "DIYARBAKIR" | "DJELFA" | "DNIPRO" | "DOHA" | "DORTMUND" | "DOURADOS" | "DRESDEN" | "DUBAI" | "DUBLIN" | "DUEZCE" | "DUISBURG" | "DUQUE_DE CAXIAS" | "DURANGO" | "DURBAN" | "DUSSELDORF" | "ECATEPEC" | "EDINBURGH" | "EDIRNE" | "EDMONTON" | "EL_JADIDA" | "EL_PASO" | "ELAZIG" | "EMBU" | "ENSENADA" | "ERBIL" | "ERZURUM" | "ESKISEHIR" | "ESPOO" | "ESSEN" | "FAISALABAD" | "FAYETTEVILLE" | "FAZENDA_RIO GRANDE" | "FEIRA_DE SANTANA" | "FES" | "FLORENCE" | "FLORENCIO_VARELA" | "FLORIANOPOLIS" | "FONTANA" | "FORMOSA" | "FORT_LAUDERDALE" | "FORT_WAYNE" | "FORT_WORTH" | "FORTALEZA" | "FOZ_DO IGUACU" | "FRANCA" | "FRANCISCO_MORATO" | "FRANCO_DA ROCHA" | "FRANKFURT_AM MAIN" | "FREDERICKSBURG" | "FRESNO" | "FUNCHAL" | "GABORONE" | "GAINESVILLE" | "GALATI" | "GANGNAM_GU" | "GARANHUNS" | "GATINEAU" | "GAZIANTEP" | "GDANSK" | "GDYNIA" | "GENERAL_TRIAS" | "GENEVA" | "GENOA" | "GEORGE_TOWN" | "GEORGETOWN" | "GHAZIABAD" | "GHENT" | "GIJON" | "GIRESUN" | "GIZA" | "GLASGOW" | "GLENDALE" | "GLIWICE" | "GOIANIA" | "GOMEL" | "GOTHENBURG" | "GOVERNADOR_VALADARES" | "GOYANG_SI" | "GRANADA" | "GRAND_RAPIDS" | "GRAVATAI" | "GRAZ" | "GREENSBORO" | "GREENVILLE" | "GUADALAJARA" | "GUADALUPE" | "GUANGZHOU" | "GUARAPUAVA" | "GUARATINGUETA" | "GUARUJA" | "GUARULHOS" | "GUATEMALA_CITY" | "GUAYAQUIL" | "GUJRANWALA" | "GURUGRAM" | "GUSTAVO_ADOLFO MADERO" | "GUWAHATI" | "GWANAK_GU" | "HACKNEY" | "HAIFA" | "HAIPHONG" | "HAMBURG" | "HAMILTON" | "HANOI" | "HANOVER" | "HARARE" | "HAVANA" | "HELSINKI" | "HENDERSON" | "HEREDIA" | "HERMOSILLO" | "HIALEAH" | "HO_CHI MINH CITY" | "HOLLYWOOD" | "HOLON" | "HONOLULU" | "HORTOLANDIA" | "HRODNA" | "HSINCHU" | "HUANCAYO" | "HUANUCO" | "HULL" | "HURLINGHAM" | "HYDERABAD" | "IASI" | "IBAGUE" | "ICA" | "ILAM" | "ILFORD" | "ILIGAN" | "ILOILO_CITY" | "IMPERATRIZ" | "IMUS" | "INCHEON" | "INDAIATUBA" | "INDIANAPOLIS" | "INDORE" | "IPATINGA" | "IPOH" | "IQUIQUE" | "IRVINE" | "ISIDRO_CASANOVA" | "ISLAMABAD" | "ISLINGTON" | "ISMAILIA" | "ISPARTA" | "ISTANBUL" | "ITABORAI" | "ITABUNA" | "ITAJAI" | "ITANHAEM" | "ITAPEVI" | "ITAQUAQUECETUBA" | "ITUZAINGO" | "IZMIR" | "IZTAPALAPA" | "JABOATAO_DOS GUARARAPES" | "JACAREI" | "JACKSON" | "JACKSONVILLE" | "JAIPUR" | "JAKARTA" | "JARAGUA_DO SUL" | "JAU" | "JEDDAH" | "JEMBER" | "JERUSALEM" | "JOAO_MONLEVADE" | "JOAO_PESSOA" | "JODHPUR" | "JOHANNESBURG" | "JOHOR_BAHRU" | "JOINVILLE" | "JOSE_C PAZ" | "JOSE_MARIA EZEIZA" | "JUAREZ" | "JUAZEIRO_DO NORTE" | "JUIZ_DE FORA" | "JUNDIAI" | "KAHRAMANMARAS" | "KAMPALA" | "KANPUR" | "KANSAS_CITY" | "KAOHSIUNG_CITY" | "KARABUK" | "KARACHI" | "KARLSRUHE" | "KARNAL" | "KASKI" | "KASTAMONU" | "KATHMANDU" | "KATOWICE" | "KATSINA" | "KATY" | "KAUNAS" | "KAYSERI" | "KAZAN" | "KECSKEMET" | "KEDIRI" | "KENITRA" | "KHARKIV" | "KHMELNYTSKYI" | "KHON_KAEN" | "KIELCE" | "KIGALI" | "KINGSTON" | "KIRKLARELI" | "KISSIMMEE" | "KITCHENER" | "KLAIPEDA" | "KNOXVILLE" | "KOCHI" | "KOLKATA" | "KOLLAM" | "KONYA" | "KOSEKOY" | "KOSICE" | "KOTA_KINABALU" | "KOZHIKODE" | "KRAKOW" | "KRASNODAR" | "KRYVYI_RIH" | "KUALA_LUMPUR" | "KUCHING" | "KUTAHYA" | "KUTAISI" | "KUWAIT_CITY" | "KYIV" | "LA_PAZ" | "LA_PLATA" | "LA_RIOJA" | "LA_SERENA" | "LAFAYETTE" | "LAFERRERE" | "LAGES" | "LAGOS" | "LAHORE" | "LAHUG" | "LAKE_WORTH" | "LAKELAND" | "LANCASTER" | "LANUS" | "LAS_PALMAS DE GRAN CANARIA" | "LAS_PINAS" | "LAS_VEGAS" | "LAUSANNE" | "LAVAL" | "LAWRENCEVILLE" | "LE_MANS" | "LEEDS" | "LEICESTER" | "LEIPZIG" | "LEON" | "LEXINGTON" | "LIBREVILLE" | "LIEGE" | "LILLE" | "LIMA" | "LIMASSOL" | "LIMEIRA" | "LINCOLN" | "LINHARES" | "LIPA_CITY" | "LISBON" | "LIVERPOOL" | "LJUBLJANA" | "LODZ" | "LOJA" | "LOMAS_DE ZAMORA" | "LOME" | "LONDRINA" | "LONG_BEACH" | "LONGUEUIL" | "LOUISVILLE" | "LUANDA" | "LUBLIN" | "LUCENA_CITY" | "LUCKNOW" | "LUDHIANA" | "LUSAKA" | "LUXEMBOURG" | "LUZIANIA" | "LVIV" | "LYON" | "MABALACAT" | "MACAE" | "MACAO" | "MACAPA" | "MACEIO" | "MACHALA" | "MADISON" | "MADRID" | "MAGE" | "MAGELANG" | "MAGNESIA_AD SIPYLUM" | "MAKASSAR" | "MAKATI_CITY" | "MALABON" | "MALAGA" | "MALANG" | "MALAPPURAM" | "MALDONADO" | "MALE" | "MALMO" | "MANADO" | "MANAGUA" | "MANAMA" | "MANAUS" | "MANCHESTER" | "MANDALUYONG_CITY" | "MANILA" | "MANIZALES" | "MANNHEIM" | "MAPUTO" | "MAR_DEL PLATA" | "MARABA" | "MARACAIBO" | "MARACANAU" | "MARACAY" | "MARDIN" | "MARIBOR" | "MARICA" | "MARIETTA" | "MARIKINA_CITY" | "MARILIA" | "MARINGA" | "MARRAKESH" | "MARSEILLE" | "MAUA" | "MAZATLAN" | "MEDAN" | "MEDELLIN" | "MEDINA" | "MEERUT" | "MEKNES" | "MELBOURNE" | "MEMPHIS" | "MENDOZA" | "MERIDA" | "MERKEZ" | "MERLO" | "MERSIN" | "MESA" | "MEXICALI" | "MEXICO_CITY" | "MILAN" | "MILTON_KEYNES" | "MILWAUKEE" | "MINNEAPOLIS" | "MINSK" | "MISKOLC" | "MISSISSAUGA" | "MOGI_DAS CRUZES" | "MOHALI" | "MONROE" | "MONTE_GRANDE" | "MONTEGO_BAY" | "MONTERREY" | "MONTES_CLAROS" | "MONTEVIDEO" | "MONTGOMERY" | "MONTPELLIER" | "MONTREAL" | "MORELIA" | "MORENO" | "MORON" | "MOSSORO" | "MUGLA" | "MULTAN" | "MUMBAI" | "MUNICH" | "MURCIA" | "MUSCAT" | "MUZAFFARGARH" | "MYKOLAYIV" | "NAALDWIJK" | "NAGA" | "NAGPUR" | "NAIROBI" | "NANTES" | "NAPLES" | "NASHVILLE" | "NASSAU" | "NASUGBU" | "NATAL" | "NAUCALPAN" | "NAVI_MUMBAI" | "NEIVA" | "NEUQUEN" | "NEVSEHIR" | "NEW_DELHI" | "NEW_ORLEANS" | "NEW_TAIPEI" | "NEWARK" | "NEWCASTLE_UPON TYNE" | "NHA_TRANG" | "NICE" | "NICOSIA" | "NILOPOLIS" | "NIS" | "NITEROI" | "NITRA" | "NIZHNIY_NOVGOROD" | "NOGALES" | "NOIDA" | "NORTHAMPTON" | "NORWICH" | "NOTTINGHAM" | "NOVA_FRIBURGO" | "NOVA_IGUACU" | "NOVI_SAD" | "NOVO_HAMBURGO" | "NOVOSIBIRSK" | "NUREMBERG" | "OAKLAND" | "OAXACA_CITY" | "ODESA" | "OKLAHOMA_CITY" | "OLINDA" | "OLOMOUC" | "OLONGAPO_CITY" | "OLSZTYN" | "OMAHA" | "ORADEA" | "ORAN" | "ORDU" | "ORLANDO" | "OSASCO" | "OSLO" | "OSMANIYE" | "OSTRAVA" | "OTTAWA" | "OUJDA" | "OURINHOS" | "PACHUCA" | "PADOVA" | "PALAKKAD" | "PALEMBANG" | "PALERMO" | "PALHOCA" | "PALMA" | "PALMAS" | "PANAMA_CITY" | "PARAMARIBO" | "PARANA" | "PARANAGUA" | "PARANAQUE_CITY" | "PARAUAPEBAS" | "PARIS" | "PARNAIBA" | "PARNAMIRIM" | "PASSO_FUNDO" | "PASTO" | "PATAN" | "PATNA" | "PATOS_DE MINAS" | "PAULISTA" | "PECS" | "PEKANBARU" | "PELOTAS" | "PEORIA" | "PEREIRA" | "PERM" | "PERTH" | "PESCARA" | "PESHAWAR" | "PETAH_TIKVA" | "PETALING_JAYA" | "PETROLINA" | "PETROPOLIS" | "PHILADELPHIA" | "PHNOM_PENH" | "PHOENIX" | "PILAR" | "PINDAMONHANGABA" | "PIRACICABA" | "PITESTI" | "PITTSBURGH" | "PIURA" | "PLANO" | "PLOIESTI" | "PLOVDIV" | "PLYMOUTH" | "POCOS_DE CALDAS" | "PODGORICA" | "POLTAVA" | "PONTA_GROSSA" | "PONTIANAK" | "POPAYAN" | "PORT_AU PRINCE" | "PORT_ELIZABETH" | "PORT_HARCOURT" | "PORT_LOUIS" | "PORT_MONTT" | "PORT_OF SPAIN" | "PORT_SAID" | "PORTLAND" | "PORTO" | "PORTO_ALEGRE" | "PORTO_SEGURO" | "PORTO_VELHO" | "PORTOVIEJO" | "POSADAS" | "POUSO_ALEGRE" | "POZNAN" | "PRAGUE" | "PRAIA_GRANDE" | "PRESIDENTE_PRUDENTE" | "PRETORIA" | "PRISTINA" | "PROVIDENCE" | "PUCALLPA" | "PUCHONG_BATU DUA BELAS" | "PUEBLA_CITY" | "PUNE" | "QUEBEC" | "QUEENS" | "QUEIMADOS" | "QUERETARO_CITY" | "QUEZON_CITY" | "QUILMES" | "QUITO" | "RABAT" | "RAIPUR" | "RAJKOT" | "RAJSHAHI" | "RALEIGH" | "RAMAT_GAN" | "RANCAGUA" | "RANCHI" | "RAS_AL KHAIMAH" | "RAWALPINDI" | "READING" | "RECIFE" | "REGINA" | "RENNES" | "RENO" | "RESISTENCIA" | "REYKJAVIK" | "REYNOSA" | "RIBEIRAO_DAS NEVES" | "RIBEIRAO_PRETO" | "RICHMOND" | "RIGA" | "RIO_BRANCO" | "RIO_CLARO" | "RIO_CUARTO" | "RIO_DE JANEIRO" | "RIO_DO SUL" | "RIO_GALLEGOS" | "RIO_GRANDE" | "RISHON_LETSIYYON" | "RIVERSIDE" | "RIYADH" | "RIZE" | "ROCHESTER" | "ROME" | "RONDONOPOLIS" | "ROSARIO" | "ROSEAU" | "ROSTOV_ON DON" | "ROTTERDAM" | "ROUEN" | "ROUSSE" | "RZESZOW" | "SACRAMENTO" | "SAGAR" | "SAINT_PAUL" | "SALE" | "SALT_LAKE CITY" | "SALTA" | "SALTILLO" | "SALVADOR" | "SAMARA" | "SAMARINDA" | "SAMARKAND" | "SAMSUN" | "SAN_ANTONIO" | "SAN_DIEGO" | "SAN_FERNANDO" | "SAN_FRANCISCO" | "SAN_JOSE" | "SAN_JOSE DEL MONTE" | "SAN_JUAN" | "SAN_JUSTO" | "SAN_LUIS" | "SAN_LUIS POTOSI CITY" | "SAN_MIGUEL" | "SAN_MIGUEL DE TUCUMAN" | "SAN_PABLO CITY" | "SAN_PEDRO" | "SAN_PEDRO SULA" | "SAN_SALVADOR" | "SAN_SALVADOR DE JUJUY" | "SANAA" | "SANLIURFA" | "SANTA_CRUZ" | "SANTA_CRUZ DE TENERIFE" | "SANTA_CRUZ DO SUL" | "SANTA_FE" | "SANTA_LUZIA" | "SANTA_MARIA" | "SANTA_MARTA" | "SANTA_ROSA" | "SANTAREM" | "SANTIAGO" | "SANTIAGO_DE CALI" | "SANTIAGO_DE LOS CABALLEROS" | "SANTO_ANDRE" | "SANTO_DOMINGO" | "SANTO_DOMINGO ESTE" | "SANTOS" | "SAO_BERNARDO DO CAMPO" | "SAO_CARLOS" | "SAO_GONCALO" | "SAO_JOAO DE MERITI" | "SAO_JOSE" | "SAO_JOSE DO RIO PRETO" | "SAO_JOSE DOS CAMPOS" | "SAO_JOSE DOS PINHAIS" | "SAO_LEOPOLDO" | "SAO_LUIS" | "SAO_PAULO" | "SAO_VICENTE" | "SARAJEVO" | "SASKATOON" | "SCARBOROUGH" | "SEATTLE" | "SEMARANG" | "SEO_GU" | "SEONGNAM_SI" | "SEOUL" | "SERRA" | "SETE_LAGOAS" | "SETIF" | "SETUBAL" | "SEVILLE" | "SFAX" | "SHAH_ALAM" | "SHANGHAI" | "SHARJAH" | "SHEFFIELD" | "SHENZHEN" | "SHIMLA" | "SIAULIAI" | "SIBIU" | "SIDOARJO" | "SIKAR" | "SILVER_SPRING" | "SINOP" | "SIVAS" | "SKIKDA" | "SKOPJE" | "SLOUGH" | "SOBRAL" | "SOFIA" | "SOROCABA" | "SOUSSE" | "SOUTH_TANGERANG" | "SOUTHAMPTON" | "SOUTHWARK" | "SPLIT" | "SPOKANE" | "SPRING" | "SPRINGFIELD" | "ST_LOUIS" | "ST_PETERSBURG" | "STARA_ZAGORA" | "STATEN_ISLAND" | "STOCKHOLM" | "STOCKTON" | "STOKE_ON TRENT" | "STRASBOURG" | "STUTTGART" | "SUMARE" | "SURABAYA" | "SURAKARTA" | "SURAT" | "SURREY" | "SUWON" | "SUZANO" | "SYDNEY" | "SZCZECIN" | "SZEGED" | "SZEKESFEHERVAR" | "TABOAO_DA SERRA" | "TACNA" | "TACOMA" | "TAGUIG" | "TAICHUNG" | "TAINAN_CITY" | "TAIPEI" | "TALAVERA" | "TALCA" | "TALLAHASSEE" | "TALLINN" | "TAMPA" | "TAMPERE" | "TAMPICO" | "TANGERANG" | "TANGIER" | "TANTA" | "TANZA" | "TAOYUAN_DISTRICT" | "TAPPAHANNOCK" | "TARLAC_CITY" | "TASHKENT" | "TASIKMALAYA" | "TATUI" | "TAUBATE" | "TBILISI" | "TEGUCIGALPA" | "TEHRAN" | "TEIXEIRA_DE FREITAS" | "TEKIRDAG" | "TEL_AVIV" | "TEMUCO" | "TEPIC" | "TERESINA" | "TERNOPIL" | "TERRASSA" | "TETOUAN" | "THANE" | "THE_BRONX" | "THE_HAGUE" | "THESSALONIKI" | "THIRUVANANTHAPURAM" | "THRISSUR" | "TIJUANA" | "TIMISOARA" | "TIRANA" | "TLALNEPANTLA" | "TLAXCALA_CITY" | "TLEMCEN" | "TOKAT_PROVINCE" | "TOKYO" | "TOLUCA" | "TORONTO" | "TORREON" | "TOULOUSE" | "TRABZON" | "TRUJILLO" | "TUBARAO" | "TUCSON" | "TUGUEGARAO_CITY" | "TULSA" | "TUNIS" | "TUNJA" | "TURIN" | "TUXTLA_GUTIERREZ" | "TUZLA" | "UBERABA" | "UBERLANDIA" | "UFA" | "ULAN_BATOR" | "UMEDA" | "URDANETA" | "USAK" | "VADODARA" | "VALENCIA" | "VALINHOS" | "VALLADOLID" | "VALLEDUPAR" | "VALPARAISO" | "VALPARAISO_DE GOIAS" | "VAN" | "VANCOUVER" | "VARANASI" | "VARGINHA" | "VARNA" | "VARZEA_PAULISTA" | "VENUSTIANO_CARRANZA" | "VERACRUZ" | "VERONA" | "VIAMAO" | "VICTORIA" | "VIENNA" | "VIENTIANE" | "VIGO" | "VIJAYAWADA" | "VILA_NOVA DE GAIA" | "VILA_VELHA" | "VILLA_BALLESTER" | "VILLAVICENCIO" | "VILNIUS" | "VINA_DEL MAR" | "VINNYTSIA" | "VIRGINIA_BEACH" | "VISAKHAPATNAM" | "VITORIA" | "VITORIA_DA CONQUISTA" | "VITORIA_DE SANTO ANTAO" | "VOLTA_REDONDA" | "VORONEZH" | "WARSAW" | "WASHINGTON" | "WELLINGTON" | "WEST_PALM BEACH" | "WICHITA" | "WILLEMSTAD" | "WILMINGTON" | "WINDHOEK" | "WINDSOR" | "WINNIPEG" | "WOLVERHAMPTON" | "WOODBRIDGE" | "WROCLAW" | "WUPPERTAL" | "XALAPA" | "YALOVA" | "YANGON" | "YEKATERINBURG" | "YEREVAN" | "YOGYAKARTA" | "YOKOHAMA" | "YONGIN_SI" | "ZABRZE" | "ZAGAZIG" | "ZAGREB" | "ZAMBOANGA_CITY" | "ZAPOPAN" | "ZAPORIZHZHYA" | "ZARAGOZA" | "ZHONGLI_DISTRICT" | "ZIELONA_GORA" | "ZONGULDAK" | "ZURICH";
|
|
753
|
+
/** Country code (e.g., 'US', 'GB', 'DE') - ISO 3166-1 alpha-2 */
|
|
754
|
+
export type CreateSessionRequestUseProxyCase0Case1Case0GeolocationCountry = "US" | "CA" | "MX" | "GB" | "DE" | "FR" | "IT" | "ES" | "PL" | "NL" | "SE" | "NO" | "DK" | "FI" | "CH" | "AT" | "BE" | "IE" | "PT" | "GR" | "CZ" | "HU" | "RO" | "BG" | "SK" | "SI" | "HR" | "EE" | "LV" | "LT" | "LU" | "MT" | "CY" | "IS" | "LI" | "MC" | "SM" | "VA" | "JP" | "KR" | "CN" | "HK" | "TW" | "SG" | "AU" | "NZ" | "IN" | "TH" | "MY" | "PH" | "ID" | "VN" | "AF" | "BD" | "BN" | "KH" | "LA" | "LK" | "MM" | "NP" | "PK" | "FJ" | "PG" | "AE" | "SA" | "IL" | "TR" | "IR" | "IQ" | "JO" | "KW" | "LB" | "OM" | "QA" | "BH" | "YE" | "SY" | "ZA" | "EG" | "MA" | "NG" | "KE" | "DZ" | "AO" | "BW" | "ET" | "GH" | "CI" | "LY" | "MZ" | "RW" | "SN" | "TN" | "UG" | "ZM" | "ZW" | "TZ" | "MU" | "SC" | "BR" | "AR" | "CL" | "CO" | "PE" | "VE" | "EC" | "UY" | "PY" | "BO" | "CR" | "CU" | "DO" | "GT" | "HN" | "JM" | "NI" | "PA" | "SV" | "TT" | "BB" | "BZ" | "GY" | "SR" | "RU" | "UA" | "BY" | "KZ" | "UZ" | "AZ" | "GE" | "AM" | "MD" | "MK" | "AL" | "BA" | "RS" | "ME" | "XK" | "MN" | "KG" | "TJ" | "TM";
|
|
755
|
+
/** State code (e.g., 'NY', 'CA') - US states only */
|
|
756
|
+
export type CreateSessionRequestUseProxyCase0Case1Case0GeolocationState = "AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" | "FL" | "GA" | "HI" | "ID" | "IL" | "IN" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VA" | "WA" | "WV" | "WI" | "WY" | "DC" | "PR" | "GU" | "VI";
|
|
757
|
+
/** Geographic location for the proxy */
|
|
758
|
+
export interface CreateSessionRequestUseProxyCase0Case1Case0Geolocation {
|
|
759
|
+
/** City name (e.g., 'NEW_YORK', 'LOS_ANGELES') */
|
|
760
|
+
city?: CreateSessionRequestUseProxyCase0Case1Case0GeolocationCity | (string & {}) | undefined;
|
|
761
|
+
/** Country code (e.g., 'US', 'GB', 'DE') - ISO 3166-1 alpha-2 */
|
|
762
|
+
country: CreateSessionRequestUseProxyCase0Case1Case0GeolocationCountry | (string & {});
|
|
763
|
+
/** State code (e.g., 'NY', 'CA') - US states only */
|
|
764
|
+
state?: CreateSessionRequestUseProxyCase0Case1Case0GeolocationState | (string & {}) | undefined;
|
|
765
|
+
}
|
|
766
|
+
export interface CreateSessionRequestUseProxyCase0Case1Case0 {
|
|
767
|
+
/** Geographic location for the proxy */
|
|
768
|
+
geolocation: CreateSessionRequestUseProxyCase0Case1Case0Geolocation;
|
|
769
|
+
}
|
|
770
|
+
export interface CreateSessionRequestUseProxyCase0Case1Case1 {
|
|
771
|
+
/** Proxy server URL */
|
|
772
|
+
server: string;
|
|
773
|
+
}
|
|
774
|
+
/** Use Steel fixed IP proxies */
|
|
775
|
+
export type CreateSessionRequestUseProxyCase0Case1Case2Type = "fixed";
|
|
776
|
+
export interface CreateSessionRequestUseProxyCase0Case1Case2 {
|
|
777
|
+
/** Specific fixed IP identifier. Omit to use any active fixed IP owned by the org. */
|
|
778
|
+
id?: string | undefined;
|
|
779
|
+
/** Use Steel fixed IP proxies */
|
|
780
|
+
type: CreateSessionRequestUseProxyCase0Case1Case2Type;
|
|
781
|
+
}
|
|
782
|
+
/** Array of proxy configurations with routing */
|
|
783
|
+
export type CreateSessionRequestUseProxyCase0Case1 = CreateSessionRequestUseProxyCase0Case1Case0 | CreateSessionRequestUseProxyCase0Case1Case1 | CreateSessionRequestUseProxyCase0Case1Case2;
|
|
784
|
+
/** Proxy configuration for the session. Can be a boolean or array of proxy configurations */
|
|
785
|
+
export type CreateSessionRequestUseProxyCase0 = boolean | CreateSessionRequestUseProxyCase0Case1;
|
|
786
|
+
export type CreateSessionRequestUseProxy = CreateSessionRequestUseProxyCase0 | unknown;
|
|
787
|
+
export interface CreateSessionRequest {
|
|
788
|
+
/** Block ads in the browser session. Default is false. */
|
|
789
|
+
blockAds?: boolean | undefined;
|
|
790
|
+
/** PEM-encoded root CA certificates to trust in this session. THIS IS CURRENTLY AN EXPERIMENTAL FEATURE. */
|
|
791
|
+
caCertificates?: CreateSessionRequestCaCertificatesList | undefined;
|
|
792
|
+
/** Number of sessions to create concurrently (check your plan limit) */
|
|
793
|
+
concurrency?: number | undefined;
|
|
794
|
+
/** Configuration for session credentials */
|
|
795
|
+
credentials?: CreateSessionRequestCredentials | undefined;
|
|
796
|
+
/** Configuration for the debug URL and session viewer. Controls interaction capabilities, cursor visibility, and other debug-related settings. */
|
|
797
|
+
debugConfig?: CreateSessionRequestDebugConfig | undefined;
|
|
798
|
+
/** Device configuration for the session. Specify 'mobile' for mobile device fingerprints and configurations. */
|
|
799
|
+
deviceConfig?: CreateSessionRequestDeviceConfig | undefined;
|
|
800
|
+
/** Viewport and browser window dimensions for the session. Mobile sessions require dimensions of at least 508x1074; smaller mobile dimensions are rejected with a 400 response. */
|
|
801
|
+
dimensions?: CreateSessionRequestDimensions | undefined;
|
|
802
|
+
/** Enable experimental features for the session. */
|
|
803
|
+
experimentalFeatures?: CreateSessionRequestExperimentalFeaturesList | undefined;
|
|
804
|
+
/** Array of extension IDs to install in the session. Use ['all_ext'] to install all uploaded extensions. */
|
|
805
|
+
extensionIds?: CreateSessionRequestExtensionIdsList | undefined;
|
|
806
|
+
/** Launch the browser in fullscreen mode, covering the full screen with no Chrome UI. Default is false. */
|
|
807
|
+
fullscreen?: boolean | undefined;
|
|
808
|
+
/** Enable headless browser mode (disable Headful mode) */
|
|
809
|
+
headless?: boolean | undefined;
|
|
810
|
+
/** Inactivity timeout in milliseconds. When set, the session is released if no CDP command or remote input is received for this duration, even if `timeout` has not yet elapsed. Note that `timeout` remains the hard cap on session lifetime: if `inactivityTimeout` is greater than or equal to the effective `timeout`, it has no effect since `timeout` always elapses first. Omit to disable. */
|
|
811
|
+
inactivityTimeout?: number | undefined;
|
|
812
|
+
/** Deprecated. Selenium sessions are no longer supported, and a request that sets this to true is rejected with 400. Connect over CDP with Playwright or Puppeteer instead. */
|
|
813
|
+
isSelenium?: boolean | undefined;
|
|
814
|
+
/** Customer-defined flat metadata: up to 50 keys and 8192 UTF-8 JSON bytes. Keys must start with a letter, use only letters, digits, underscores, dots or hyphens, and be at most 64 characters; steel_ is reserved. Values are strings (up to 1024 characters, valid Unicode without NUL), finite numbers or booleans. Numbers and booleans are stored as strings, so 3 and "3" are the same value. */
|
|
815
|
+
metadata?: CreateSessionRequestMetadataMap | undefined;
|
|
816
|
+
/** The namespace the session should be created against. Defaults to "default". */
|
|
817
|
+
namespace?: string | undefined;
|
|
818
|
+
/** Enable bandwidth optimizations. Passing true enables all flags (except hosts/patterns). Object allows granular control. */
|
|
819
|
+
optimizeBandwidth?: CreateSessionRequestOptimizeBandwidth | undefined;
|
|
820
|
+
/** This flag will persist the user profile for the session. */
|
|
821
|
+
persistProfile?: boolean | undefined;
|
|
822
|
+
/** This flag will set the profile for the session. */
|
|
823
|
+
profileId?: string | undefined;
|
|
824
|
+
/** The project to create the session in. When provided, the session namespace is resolved from the project. */
|
|
825
|
+
projectId?: string | undefined;
|
|
826
|
+
/** Custom proxy URL for the browser session. Overrides useProxy, disabling Steel-provided proxies in favor of your specified proxy. Format: http(s)://username:password@hostname:port */
|
|
827
|
+
proxyUrl?: string | undefined;
|
|
828
|
+
/** Record the headful session for playback after it ends. Default is true. Disabling recording does not affect live WHEP viewing. */
|
|
829
|
+
recording?: boolean | undefined;
|
|
830
|
+
/** The desired region for the session. Available: us-east, us-west, us-central, eu-west, eu-central, ap-northeast, ap-southeast, sa-east. Legacy codes (iad, lax, ord) are also accepted. */
|
|
831
|
+
region?: unknown | undefined;
|
|
832
|
+
/** Session context data to be used in the created session. Sessions will start with an empty context by default. */
|
|
833
|
+
sessionContext?: CreateSessionRequestSessionContext | undefined;
|
|
834
|
+
/** Optional custom UUID for the session */
|
|
835
|
+
sessionId?: string | undefined;
|
|
836
|
+
/** Enable automatic captcha solving. Default is false. */
|
|
837
|
+
solveCaptcha?: boolean | undefined;
|
|
838
|
+
/** Stealth configuration for the session */
|
|
839
|
+
stealthConfig?: CreateSessionRequestStealthConfig | undefined;
|
|
840
|
+
/** Session timeout duration in milliseconds. Default is 300000 (5 minutes). */
|
|
841
|
+
timeout?: number | undefined;
|
|
842
|
+
useProxy?: CreateSessionRequestUseProxy | undefined;
|
|
843
|
+
/** Custom user agent string for the browser session */
|
|
844
|
+
userAgent?: string | undefined;
|
|
845
|
+
}
|
|
846
|
+
/** Browser mode used for this session. */
|
|
847
|
+
export type SessionResponseBrowserMode = "stealth" | "standard" | "unknown";
|
|
848
|
+
/** Configuration for the debug URL and session viewer. Controls interaction capabilities and cursor visibility. */
|
|
849
|
+
export interface SessionResponseDebugConfig {
|
|
850
|
+
/** Whether interaction is allowed via the debug URL viewer. When false, the session viewer is view-only. */
|
|
851
|
+
interactive?: boolean | undefined;
|
|
852
|
+
/** Whether the OS-level mouse cursor is shown in the WebRTC stream (headful mode only). */
|
|
853
|
+
systemCursor?: boolean | undefined;
|
|
854
|
+
}
|
|
855
|
+
export type SessionResponseDeviceConfigDevice = "desktop" | "mobile";
|
|
856
|
+
/** Device configuration for the session */
|
|
857
|
+
export interface SessionResponseDeviceConfig {
|
|
858
|
+
device?: SessionResponseDeviceConfigDevice | undefined;
|
|
859
|
+
}
|
|
860
|
+
/** Viewport and browser window dimensions for the session */
|
|
861
|
+
export interface SessionResponseDimensions {
|
|
862
|
+
/** Height of the browser window */
|
|
863
|
+
height: number;
|
|
864
|
+
/** Width of the browser window */
|
|
865
|
+
width: number;
|
|
866
|
+
}
|
|
867
|
+
/** Customer-defined flat metadata. Values are always strings: numbers and booleans sent on write come back in their string form. */
|
|
868
|
+
export type SessionResponseMetadataMap = {
|
|
869
|
+
[key: string]: string | undefined;
|
|
870
|
+
};
|
|
871
|
+
export type SessionResponseOptimizeBandwidthBlockHostsList = Array<string>;
|
|
872
|
+
export type SessionResponseOptimizeBandwidthBlockUrlPatternsList = Array<string>;
|
|
873
|
+
/** Bandwidth optimizations that were applied to the session. */
|
|
874
|
+
export interface SessionResponseOptimizeBandwidth {
|
|
875
|
+
blockHosts?: SessionResponseOptimizeBandwidthBlockHostsList | undefined;
|
|
876
|
+
blockImages?: boolean | undefined;
|
|
877
|
+
blockMedia?: boolean | undefined;
|
|
878
|
+
blockStylesheets?: boolean | undefined;
|
|
879
|
+
blockUrlPatterns?: SessionResponseOptimizeBandwidthBlockUrlPatternsList | undefined;
|
|
880
|
+
}
|
|
881
|
+
/** Source of the proxy used for the session */
|
|
882
|
+
export type SessionResponseProxySource = "steel" | "external";
|
|
883
|
+
/** Why the session reached a terminal state. Null while the session is live, or when the reason is unknown (e.g. sessions created before this was tracked). One of: user_requested (released via the API/SDK), timeout (hard `timeout` elapsed), inactivity_timeout (no activity for the configured window), creation_timeout (never started in time), startup_failed (could not be dispatched), browser_closed (the browser or agent closed itself -- not a crash), browser_crashed (the browser crashed or its machine became unresponsive). */
|
|
884
|
+
export type SessionResponseReleaseReason = "user_requested" | "timeout" | "inactivity_timeout" | "creation_timeout" | "startup_failed" | "browser_closed" | "browser_crashed";
|
|
885
|
+
export type SessionResponseSignalsItem = "captcha_encountered" | "proxy_connection_failed" | "session_timeout_exceeded" | "bot_detection_triggered" | "context_restored";
|
|
886
|
+
/** Signals observed during the session. Filled in within a few seconds after the session ends, and empty until then. An empty list does not mean nothing happened: detection is heuristic and coverage is incomplete. */
|
|
887
|
+
export type SessionResponseSignalsList = Array<SessionResponseSignalsItem>;
|
|
888
|
+
/** Status of the session */
|
|
889
|
+
export type SessionResponseStatus = "live" | "released" | "failed";
|
|
890
|
+
/** Stealth configuration for the session */
|
|
891
|
+
export interface SessionResponseStealthConfig {
|
|
892
|
+
/** When true, captchas will be automatically solved when detected. When false, use the solve endpoints to manually initiate solving. */
|
|
893
|
+
autoCaptchaSolving?: boolean | undefined;
|
|
894
|
+
/** This flag will make the browser act more human-like by moving the mouse in a more natural way */
|
|
895
|
+
humanizeInteractions?: boolean | undefined;
|
|
896
|
+
/** This flag will skip the fingerprint generation for the session. */
|
|
897
|
+
skipFingerprintInjection?: boolean | undefined;
|
|
898
|
+
}
|
|
899
|
+
/** Represents the data structure for a browser session, including its configuration and status. */
|
|
900
|
+
export interface SessionResponse {
|
|
901
|
+
/** Browser mode used for this session. */
|
|
902
|
+
browserMode: SessionResponseBrowserMode;
|
|
903
|
+
/** Timestamp when the session started */
|
|
904
|
+
createdAt: string;
|
|
905
|
+
/** Amount of credits consumed by the session */
|
|
906
|
+
creditsUsed: number;
|
|
907
|
+
/** Configuration for the debug URL and session viewer. Controls interaction capabilities and cursor visibility. */
|
|
908
|
+
debugConfig?: SessionResponseDebugConfig | undefined;
|
|
909
|
+
/** URL for debugging the session */
|
|
910
|
+
debugUrl: string | Redacted.Redacted<string>;
|
|
911
|
+
/** Device configuration for the session */
|
|
912
|
+
deviceConfig?: SessionResponseDeviceConfig | undefined;
|
|
913
|
+
/** Viewport and browser window dimensions for the session */
|
|
914
|
+
dimensions: SessionResponseDimensions;
|
|
915
|
+
/** Duration of the session in milliseconds */
|
|
916
|
+
duration: number;
|
|
917
|
+
/** Number of events processed in the session */
|
|
918
|
+
eventCount: number;
|
|
919
|
+
/** Launch the browser in fullscreen mode, covering the full screen with no Chrome UI. */
|
|
920
|
+
fullscreen?: boolean | undefined;
|
|
921
|
+
/** Indicates if the session is headless or headful */
|
|
922
|
+
headless?: boolean | undefined;
|
|
923
|
+
/** Unique identifier for the session */
|
|
924
|
+
id: string;
|
|
925
|
+
/** Inactivity timeout in milliseconds, if one was set when the session was created */
|
|
926
|
+
inactivityTimeout?: number | undefined;
|
|
927
|
+
/** Indicates if Selenium is used in the session */
|
|
928
|
+
isSelenium?: boolean | undefined;
|
|
929
|
+
/** Customer-defined flat metadata. Values are always strings: numbers and booleans sent on write come back in their string form. */
|
|
930
|
+
metadata?: SessionResponseMetadataMap | undefined;
|
|
931
|
+
/** Bandwidth optimizations that were applied to the session. */
|
|
932
|
+
optimizeBandwidth: SessionResponseOptimizeBandwidth;
|
|
933
|
+
/** This flag will persist the profile for the session. */
|
|
934
|
+
persistProfile?: boolean | undefined;
|
|
935
|
+
/** The ID of the profile associated with the session */
|
|
936
|
+
profileId?: string | undefined;
|
|
937
|
+
/** The project associated with the session */
|
|
938
|
+
projectId?: string | null | undefined;
|
|
939
|
+
/** Amount of data transmitted through the proxy */
|
|
940
|
+
proxyBytesUsed: number;
|
|
941
|
+
/** Source of the proxy used for the session */
|
|
942
|
+
proxySource: SessionResponseProxySource | null;
|
|
943
|
+
/** The region where the session was created. */
|
|
944
|
+
region?: string | undefined;
|
|
945
|
+
/** Why the session reached a terminal state. Null while the session is live, or when the reason is unknown (e.g. sessions created before this was tracked). One of: user_requested (released via the API/SDK), timeout (hard `timeout` elapsed), inactivity_timeout (no activity for the configured window), creation_timeout (never started in time), startup_failed (could not be dispatched), browser_closed (the browser or agent closed itself -- not a crash), browser_crashed (the browser crashed or its machine became unresponsive). */
|
|
946
|
+
releaseReason?: SessionResponseReleaseReason | null | undefined;
|
|
947
|
+
/** URL to view session details */
|
|
948
|
+
sessionViewerUrl: string;
|
|
949
|
+
/** Signals observed during the session. Filled in within a few seconds after the session ends, and empty until then. An empty list does not mean nothing happened: detection is heuristic and coverage is incomplete. */
|
|
950
|
+
signals: SessionResponseSignalsList;
|
|
951
|
+
/** Indicates if captcha solving is enabled */
|
|
952
|
+
solveCaptcha?: boolean | undefined;
|
|
953
|
+
/** Status of the session */
|
|
954
|
+
status: SessionResponseStatus;
|
|
955
|
+
/** Stealth configuration for the session */
|
|
956
|
+
stealthConfig?: SessionResponseStealthConfig | undefined;
|
|
957
|
+
/** Session timeout duration in milliseconds */
|
|
958
|
+
timeout: number;
|
|
959
|
+
/** User agent string used in the session */
|
|
960
|
+
userAgent?: string | undefined;
|
|
961
|
+
/** URL for the session's WebSocket connection */
|
|
962
|
+
websocketUrl: string | Redacted.Redacted<string>;
|
|
963
|
+
}
|
|
964
|
+
export type ComputerActionRequestCase0Action = "move_mouse";
|
|
965
|
+
/** X and Y coordinates [x, y] */
|
|
966
|
+
export type ComputerActionRequestCase0CoordinatesList = Array<number>;
|
|
967
|
+
/** Keys to hold while moving */
|
|
968
|
+
export type ComputerActionRequestCase0HoldKeysList = Array<string>;
|
|
969
|
+
export interface ComputerActionRequestCase0 {
|
|
970
|
+
action: ComputerActionRequestCase0Action;
|
|
971
|
+
/** X and Y coordinates [x, y] */
|
|
972
|
+
coordinates: ComputerActionRequestCase0CoordinatesList;
|
|
973
|
+
/** Keys to hold while moving */
|
|
974
|
+
hold_keys?: ComputerActionRequestCase0HoldKeysList | undefined;
|
|
975
|
+
/** Whether to take a screenshot after the action */
|
|
976
|
+
screenshot?: boolean | undefined;
|
|
977
|
+
}
|
|
978
|
+
export type ComputerActionRequestCase1Action = "click_mouse";
|
|
979
|
+
/** Mouse button to click. Defaults to 'left' */
|
|
980
|
+
export type ComputerActionRequestCase1Button = "left" | "right" | "middle" | "back" | "forward";
|
|
981
|
+
/** Type of click (down, up, or click). Defaults to 'click' */
|
|
982
|
+
export type ComputerActionRequestCase1ClickType = "down" | "up" | "click";
|
|
983
|
+
/** X and Y coordinates [x, y] */
|
|
984
|
+
export type ComputerActionRequestCase1CoordinatesList = Array<number>;
|
|
985
|
+
/** Keys to hold while clicking */
|
|
986
|
+
export type ComputerActionRequestCase1HoldKeysList = Array<string>;
|
|
987
|
+
export interface ComputerActionRequestCase1 {
|
|
988
|
+
action: ComputerActionRequestCase1Action;
|
|
989
|
+
/** Mouse button to click. Defaults to 'left' */
|
|
990
|
+
button?: ComputerActionRequestCase1Button | (string & {}) | undefined;
|
|
991
|
+
/** Type of click (down, up, or click). Defaults to 'click' */
|
|
992
|
+
click_type?: ComputerActionRequestCase1ClickType | (string & {}) | undefined;
|
|
993
|
+
/** X and Y coordinates [x, y] */
|
|
994
|
+
coordinates?: ComputerActionRequestCase1CoordinatesList | undefined;
|
|
995
|
+
/** Keys to hold while clicking */
|
|
996
|
+
hold_keys?: ComputerActionRequestCase1HoldKeysList | undefined;
|
|
997
|
+
/** Number of clicks. Defaults to 1 */
|
|
998
|
+
num_clicks?: number | undefined;
|
|
999
|
+
/** Whether to take a screenshot after the action */
|
|
1000
|
+
screenshot?: boolean | undefined;
|
|
1001
|
+
}
|
|
1002
|
+
export type ComputerActionRequestCase2Action = "drag_mouse";
|
|
1003
|
+
/** Keys to hold while dragging */
|
|
1004
|
+
export type ComputerActionRequestCase2HoldKeysList = Array<string>;
|
|
1005
|
+
export type ComputerActionRequestCase2PathItemList = Array<number>;
|
|
1006
|
+
/** Array of [x, y] coordinate pairs */
|
|
1007
|
+
export type ComputerActionRequestCase2PathList = Array<ComputerActionRequestCase2PathItemList>;
|
|
1008
|
+
export interface ComputerActionRequestCase2 {
|
|
1009
|
+
action: ComputerActionRequestCase2Action;
|
|
1010
|
+
/** Keys to hold while dragging */
|
|
1011
|
+
hold_keys?: ComputerActionRequestCase2HoldKeysList | undefined;
|
|
1012
|
+
/** Array of [x, y] coordinate pairs */
|
|
1013
|
+
path: ComputerActionRequestCase2PathList;
|
|
1014
|
+
/** Whether to take a screenshot after the action */
|
|
1015
|
+
screenshot?: boolean | undefined;
|
|
1016
|
+
}
|
|
1017
|
+
export type ComputerActionRequestCase3Action = "scroll";
|
|
1018
|
+
/** X and Y coordinates [x, y] */
|
|
1019
|
+
export type ComputerActionRequestCase3CoordinatesList = Array<number>;
|
|
1020
|
+
/** Keys to hold while scrolling */
|
|
1021
|
+
export type ComputerActionRequestCase3HoldKeysList = Array<string>;
|
|
1022
|
+
export interface ComputerActionRequestCase3 {
|
|
1023
|
+
action: ComputerActionRequestCase3Action;
|
|
1024
|
+
/** X and Y coordinates [x, y] */
|
|
1025
|
+
coordinates?: ComputerActionRequestCase3CoordinatesList | undefined;
|
|
1026
|
+
/** Horizontal scroll amount. Defaults to 0 */
|
|
1027
|
+
delta_x?: number | undefined;
|
|
1028
|
+
/** Vertical scroll amount. Defaults to 0 */
|
|
1029
|
+
delta_y?: number | undefined;
|
|
1030
|
+
/** Keys to hold while scrolling */
|
|
1031
|
+
hold_keys?: ComputerActionRequestCase3HoldKeysList | undefined;
|
|
1032
|
+
/** Whether to take a screenshot after the action */
|
|
1033
|
+
screenshot?: boolean | undefined;
|
|
1034
|
+
}
|
|
1035
|
+
export type ComputerActionRequestCase4Action = "press_key";
|
|
1036
|
+
/** Keys to press */
|
|
1037
|
+
export type ComputerActionRequestCase4KeysList = Array<string>;
|
|
1038
|
+
export interface ComputerActionRequestCase4 {
|
|
1039
|
+
action: ComputerActionRequestCase4Action;
|
|
1040
|
+
/** Duration to hold keys in seconds */
|
|
1041
|
+
duration?: number | undefined;
|
|
1042
|
+
/** Keys to press */
|
|
1043
|
+
keys: ComputerActionRequestCase4KeysList;
|
|
1044
|
+
/** Whether to take a screenshot after the action */
|
|
1045
|
+
screenshot?: boolean | undefined;
|
|
1046
|
+
}
|
|
1047
|
+
export type ComputerActionRequestCase5Action = "type_text";
|
|
1048
|
+
/** Keys to hold while typing */
|
|
1049
|
+
export type ComputerActionRequestCase5HoldKeysList = Array<string>;
|
|
1050
|
+
export interface ComputerActionRequestCase5 {
|
|
1051
|
+
action: ComputerActionRequestCase5Action;
|
|
1052
|
+
/** Keys to hold while typing */
|
|
1053
|
+
hold_keys?: ComputerActionRequestCase5HoldKeysList | undefined;
|
|
1054
|
+
/** Whether to take a screenshot after the action */
|
|
1055
|
+
screenshot?: boolean | undefined;
|
|
1056
|
+
/** Text to type */
|
|
1057
|
+
text: string;
|
|
1058
|
+
}
|
|
1059
|
+
export type ComputerActionRequestCase6Action = "wait";
|
|
1060
|
+
export interface ComputerActionRequestCase6 {
|
|
1061
|
+
action: ComputerActionRequestCase6Action;
|
|
1062
|
+
/** Duration to wait in seconds */
|
|
1063
|
+
duration: number;
|
|
1064
|
+
/** Whether to take a screenshot after the action */
|
|
1065
|
+
screenshot?: boolean | undefined;
|
|
1066
|
+
}
|
|
1067
|
+
export type ComputerActionRequestCase7Action = "take_screenshot";
|
|
1068
|
+
export interface ComputerActionRequestCase7 {
|
|
1069
|
+
action: ComputerActionRequestCase7Action;
|
|
1070
|
+
}
|
|
1071
|
+
export type ComputerActionRequestCase8Action = "get_cursor_position";
|
|
1072
|
+
export interface ComputerActionRequestCase8 {
|
|
1073
|
+
action: ComputerActionRequestCase8Action;
|
|
1074
|
+
}
|
|
1075
|
+
export type ComputerActionRequest = ComputerActionRequestCase0 | ComputerActionRequestCase1 | ComputerActionRequestCase2 | ComputerActionRequestCase3 | ComputerActionRequestCase4 | ComputerActionRequestCase5 | ComputerActionRequestCase6 | ComputerActionRequestCase7 | ComputerActionRequestCase8;
|
|
1076
|
+
export interface ExecuteComputerActionRequest {
|
|
1077
|
+
/** Session ID */
|
|
1078
|
+
sessionId: string;
|
|
1079
|
+
body: ComputerActionRequest;
|
|
1080
|
+
}
|
|
1081
|
+
export interface ComputerActionResponse {
|
|
1082
|
+
/** Base64 encoded screenshot if requested */
|
|
1083
|
+
base64_image?: string | undefined;
|
|
1084
|
+
/** Error message if action failed */
|
|
1085
|
+
error?: string | undefined;
|
|
1086
|
+
/** Output message from the action */
|
|
1087
|
+
output?: string | undefined;
|
|
1088
|
+
/** System information */
|
|
1089
|
+
system?: string | undefined;
|
|
1090
|
+
}
|
|
1091
|
+
export interface GetCommandExecutionRequest {
|
|
1092
|
+
/** Session ID */
|
|
1093
|
+
sessionId: string;
|
|
1094
|
+
/** Execution ID, such as x-1, from the id of a run */
|
|
1095
|
+
executionId: string;
|
|
1096
|
+
}
|
|
1097
|
+
export interface GetSessionRequest {
|
|
1098
|
+
id: string;
|
|
1099
|
+
}
|
|
1100
|
+
export type GetSessionAgentLogsRequestEventTypesList = Array<string>;
|
|
1101
|
+
export interface GetSessionAgentLogsRequest {
|
|
1102
|
+
id: string;
|
|
1103
|
+
namespace?: string | undefined;
|
|
1104
|
+
startTime?: string | undefined;
|
|
1105
|
+
endTime?: string | undefined;
|
|
1106
|
+
eventTypes?: GetSessionAgentLogsRequestEventTypesList | undefined;
|
|
1107
|
+
limit?: number | undefined;
|
|
1108
|
+
offset?: number | undefined;
|
|
1109
|
+
}
|
|
1110
|
+
export type GetSessionAgentLogsResponseEventsItemMap = {
|
|
1111
|
+
[key: string]: unknown | undefined;
|
|
1112
|
+
};
|
|
1113
|
+
export type GetSessionAgentLogsResponseEventsList = Array<GetSessionAgentLogsResponseEventsItemMap>;
|
|
1114
|
+
export interface GetSessionAgentLogsResponse {
|
|
1115
|
+
events: GetSessionAgentLogsResponseEventsList;
|
|
1116
|
+
hasMore: boolean;
|
|
1117
|
+
total: number;
|
|
1118
|
+
}
|
|
1119
|
+
export type GetSessionAgentTracesRequestEventTypesList = Array<string>;
|
|
1120
|
+
export interface GetSessionAgentTracesRequest {
|
|
1121
|
+
id: string;
|
|
1122
|
+
namespace?: string | undefined;
|
|
1123
|
+
startTime?: string | undefined;
|
|
1124
|
+
endTime?: string | undefined;
|
|
1125
|
+
eventTypes?: GetSessionAgentTracesRequestEventTypesList | undefined;
|
|
1126
|
+
limit?: number | undefined;
|
|
1127
|
+
offset?: number | undefined;
|
|
1128
|
+
}
|
|
1129
|
+
export type GetSessionAgentTracesResponseEventsItemMap = {
|
|
1130
|
+
[key: string]: unknown | undefined;
|
|
1131
|
+
};
|
|
1132
|
+
export type GetSessionAgentTracesResponseEventsList = Array<GetSessionAgentTracesResponseEventsItemMap>;
|
|
1133
|
+
export interface GetSessionAgentTracesResponse {
|
|
1134
|
+
events: GetSessionAgentTracesResponseEventsList;
|
|
1135
|
+
hasMore: boolean;
|
|
1136
|
+
total: number;
|
|
1137
|
+
}
|
|
1138
|
+
export interface GetSessionContextRequest {
|
|
1139
|
+
id: string;
|
|
1140
|
+
}
|
|
1141
|
+
/** The partition key of the cookie */
|
|
1142
|
+
export type SessionContextResponseCookiesItemPartitionKey = CreateSessionRequestSessionContextCookiesItemPartitionKey;
|
|
1143
|
+
/** The priority of the cookie */
|
|
1144
|
+
export type SessionContextResponseCookiesItemPriority = "Low" | "Medium" | "High";
|
|
1145
|
+
/** The same site attribute of the cookie */
|
|
1146
|
+
export type SessionContextResponseCookiesItemSameSite = "Strict" | "Lax" | "None";
|
|
1147
|
+
/** The source scheme of the cookie */
|
|
1148
|
+
export type SessionContextResponseCookiesItemSourceScheme = "Unset" | "NonSecure" | "Secure";
|
|
1149
|
+
export interface SessionContextResponseCookiesItem {
|
|
1150
|
+
/** The domain of the cookie */
|
|
1151
|
+
domain?: string | undefined;
|
|
1152
|
+
/** The expiration date of the cookie */
|
|
1153
|
+
expires?: number | undefined;
|
|
1154
|
+
/** Whether the cookie is HTTP only */
|
|
1155
|
+
httpOnly?: boolean | undefined;
|
|
1156
|
+
/** The name of the cookie */
|
|
1157
|
+
name: string;
|
|
1158
|
+
/** The partition key of the cookie */
|
|
1159
|
+
partitionKey?: CreateSessionRequestSessionContextCookiesItemPartitionKey | undefined;
|
|
1160
|
+
/** The path of the cookie */
|
|
1161
|
+
path?: string | undefined;
|
|
1162
|
+
/** The priority of the cookie */
|
|
1163
|
+
priority?: SessionContextResponseCookiesItemPriority | undefined;
|
|
1164
|
+
/** Whether the cookie is a same party cookie */
|
|
1165
|
+
sameParty?: boolean | undefined;
|
|
1166
|
+
/** The same site attribute of the cookie */
|
|
1167
|
+
sameSite?: SessionContextResponseCookiesItemSameSite | undefined;
|
|
1168
|
+
/** Whether the cookie is secure */
|
|
1169
|
+
secure?: boolean | undefined;
|
|
1170
|
+
/** Whether the cookie is a session cookie */
|
|
1171
|
+
session?: boolean | undefined;
|
|
1172
|
+
/** The size of the cookie */
|
|
1173
|
+
size?: number | undefined;
|
|
1174
|
+
/** The source port of the cookie */
|
|
1175
|
+
sourcePort?: number | undefined;
|
|
1176
|
+
/** The source scheme of the cookie */
|
|
1177
|
+
sourceScheme?: SessionContextResponseCookiesItemSourceScheme | undefined;
|
|
1178
|
+
/** The URL of the cookie */
|
|
1179
|
+
url?: string | undefined;
|
|
1180
|
+
/** The value of the cookie */
|
|
1181
|
+
value: string;
|
|
1182
|
+
}
|
|
1183
|
+
/** Cookies to initialize in the session */
|
|
1184
|
+
export type SessionContextResponseCookiesList = Array<SessionContextResponseCookiesItem>;
|
|
1185
|
+
export type SessionContextResponseIndexedDBValueItemDataItemRecordsItemBlobFilesItem = CreateSessionRequestSessionContextIndexedDBValueItemDataItemRecordsItemBlobFilesItem;
|
|
1186
|
+
export type SessionContextResponseIndexedDBValueItemDataItemRecordsItemBlobFilesList = Array<CreateSessionRequestSessionContextIndexedDBValueItemDataItemRecordsItemBlobFilesItem>;
|
|
1187
|
+
export interface SessionContextResponseIndexedDBValueItemDataItemRecordsItem {
|
|
1188
|
+
blobFiles?: SessionContextResponseIndexedDBValueItemDataItemRecordsItemBlobFilesList | undefined;
|
|
1189
|
+
key: unknown;
|
|
1190
|
+
value: unknown;
|
|
1191
|
+
}
|
|
1192
|
+
export type SessionContextResponseIndexedDBValueItemDataItemRecordsList = Array<SessionContextResponseIndexedDBValueItemDataItemRecordsItem>;
|
|
1193
|
+
export interface SessionContextResponseIndexedDBValueItemDataItem {
|
|
1194
|
+
id: number;
|
|
1195
|
+
name: string;
|
|
1196
|
+
records: SessionContextResponseIndexedDBValueItemDataItemRecordsList;
|
|
1197
|
+
}
|
|
1198
|
+
export type SessionContextResponseIndexedDBValueItemDataList = Array<SessionContextResponseIndexedDBValueItemDataItem>;
|
|
1199
|
+
export interface SessionContextResponseIndexedDBValueItem {
|
|
1200
|
+
data: SessionContextResponseIndexedDBValueItemDataList;
|
|
1201
|
+
id: number;
|
|
1202
|
+
name: string;
|
|
1203
|
+
}
|
|
1204
|
+
export type SessionContextResponseIndexedDBValueList = Array<SessionContextResponseIndexedDBValueItem>;
|
|
1205
|
+
/** Domain-specific indexedDB items to initialize in the session */
|
|
1206
|
+
export type SessionContextResponseIndexedDBMap = {
|
|
1207
|
+
[key: string]: SessionContextResponseIndexedDBValueList | undefined;
|
|
1208
|
+
};
|
|
1209
|
+
export type SessionContextResponseLocalStorageValueMap = {
|
|
1210
|
+
[key: string]: string | undefined;
|
|
1211
|
+
};
|
|
1212
|
+
/** Domain-specific localStorage items to initialize in the session */
|
|
1213
|
+
export type SessionContextResponseLocalStorageMap = {
|
|
1214
|
+
[key: string]: SessionContextResponseLocalStorageValueMap | undefined;
|
|
1215
|
+
};
|
|
1216
|
+
export type SessionContextResponseSessionStorageValueMap = {
|
|
1217
|
+
[key: string]: string | undefined;
|
|
1218
|
+
};
|
|
1219
|
+
/** Domain-specific sessionStorage items to initialize in the session */
|
|
1220
|
+
export type SessionContextResponseSessionStorageMap = {
|
|
1221
|
+
[key: string]: SessionContextResponseSessionStorageValueMap | undefined;
|
|
1222
|
+
};
|
|
1223
|
+
/** Session context data returned from a browser session. */
|
|
1224
|
+
export interface SessionContextResponse {
|
|
1225
|
+
/** Cookies to initialize in the session */
|
|
1226
|
+
cookies?: SessionContextResponseCookiesList | undefined;
|
|
1227
|
+
/** Domain-specific indexedDB items to initialize in the session */
|
|
1228
|
+
indexedDB?: SessionContextResponseIndexedDBMap | undefined;
|
|
1229
|
+
/** Domain-specific localStorage items to initialize in the session */
|
|
1230
|
+
localStorage?: SessionContextResponseLocalStorageMap | undefined;
|
|
1231
|
+
/** Domain-specific sessionStorage items to initialize in the session */
|
|
1232
|
+
sessionStorage?: SessionContextResponseSessionStorageMap | undefined;
|
|
1233
|
+
}
|
|
1234
|
+
export interface GetSessionCostRequest {
|
|
1235
|
+
id: string;
|
|
1236
|
+
}
|
|
1237
|
+
/** Currency used for the cost values */
|
|
1238
|
+
export type SessionCostResponseCurrency = "usd";
|
|
1239
|
+
/** Cost unit. Values are expressed in US dollars. */
|
|
1240
|
+
export type SessionCostResponseUnit = "dollar";
|
|
1241
|
+
/** Billing unit for browser usage */
|
|
1242
|
+
export type SessionCostResponseUsageBrowserUnit = "minute" | "second";
|
|
1243
|
+
export interface SessionCostResponseUsageBrowser {
|
|
1244
|
+
/** Billing unit for browser usage */
|
|
1245
|
+
unit: SessionCostResponseUsageBrowserUnit;
|
|
1246
|
+
/** Billable browser usage value */
|
|
1247
|
+
value: number;
|
|
1248
|
+
}
|
|
1249
|
+
export interface SessionCostResponseUsageCaptcha {
|
|
1250
|
+
/** Billable captcha solves */
|
|
1251
|
+
solves: number;
|
|
1252
|
+
}
|
|
1253
|
+
export interface SessionCostResponseUsageProxy {
|
|
1254
|
+
/** Billable Steel proxy bytes for the session */
|
|
1255
|
+
bytes: number;
|
|
1256
|
+
}
|
|
1257
|
+
/** Billable usage inputs used to calculate the costs */
|
|
1258
|
+
export interface SessionCostResponseUsage {
|
|
1259
|
+
browser: SessionCostResponseUsageBrowser;
|
|
1260
|
+
captcha: SessionCostResponseUsageCaptcha;
|
|
1261
|
+
proxy: SessionCostResponseUsageProxy;
|
|
1262
|
+
}
|
|
1263
|
+
/** Session cost breakdown in US dollars */
|
|
1264
|
+
export interface SessionCostResponse {
|
|
1265
|
+
/** Currency used for the cost values */
|
|
1266
|
+
currency: SessionCostResponseCurrency;
|
|
1267
|
+
/** Session ID */
|
|
1268
|
+
id: string;
|
|
1269
|
+
/** Exact total session cost in US dollars (e.g. 0.031905), with no rounding to whole cents. Rounded only to micro-dollar precision (6 decimal places) for precise billing passthrough. */
|
|
1270
|
+
totalCost: number;
|
|
1271
|
+
/** Cost unit. Values are expressed in US dollars. */
|
|
1272
|
+
unit: SessionCostResponseUnit;
|
|
1273
|
+
/** Billable usage inputs used to calculate the costs */
|
|
1274
|
+
usage: SessionCostResponseUsage;
|
|
1275
|
+
}
|
|
1276
|
+
export interface GetSessionEventsRequest {
|
|
1277
|
+
id: string;
|
|
1278
|
+
/** Compress the events */
|
|
1279
|
+
compressed?: boolean | undefined;
|
|
1280
|
+
/** Optional pagination limit */
|
|
1281
|
+
limit?: number | undefined;
|
|
1282
|
+
/** Opaque pagination token. Pass the Next-Cursor header value to get the next page. */
|
|
1283
|
+
pointer?: string | undefined;
|
|
1284
|
+
}
|
|
1285
|
+
/** Events for a browser session */
|
|
1286
|
+
export type GetSessionEventsResponse = Array<unknown>;
|
|
1287
|
+
export type GetSessionEventsResponse2 = GetSessionEventsResponse;
|
|
1288
|
+
export interface GetSessionHlsPlaylistRequest {
|
|
1289
|
+
id: string;
|
|
1290
|
+
}
|
|
1291
|
+
export type GetSessionHlsPlaylistResponse = Uint8Array;
|
|
1292
|
+
export interface GetSessionLiveDetailsRequest {
|
|
1293
|
+
id: string;
|
|
1294
|
+
}
|
|
1295
|
+
export interface SessionLiveDetailsResponsePagesItem {
|
|
1296
|
+
favicon: string | null;
|
|
1297
|
+
id: string;
|
|
1298
|
+
sessionViewerFullscreenUrl: string;
|
|
1299
|
+
sessionViewerUrl: string;
|
|
1300
|
+
title: string;
|
|
1301
|
+
url: string;
|
|
1302
|
+
}
|
|
1303
|
+
export type SessionLiveDetailsResponsePagesList = Array<SessionLiveDetailsResponsePagesItem>;
|
|
1304
|
+
export interface SessionLiveDetailsResponse {
|
|
1305
|
+
pages: SessionLiveDetailsResponsePagesList;
|
|
1306
|
+
sessionViewerFullscreenUrl: string;
|
|
1307
|
+
sessionViewerUrl: string;
|
|
1308
|
+
wsUrl: string;
|
|
1309
|
+
}
|
|
1310
|
+
export type GetSessionLogsRequestEventTypesList = Array<string>;
|
|
1311
|
+
export interface GetSessionLogsRequest {
|
|
1312
|
+
id: string;
|
|
1313
|
+
namespace?: string | undefined;
|
|
1314
|
+
startTime?: string | undefined;
|
|
1315
|
+
endTime?: string | undefined;
|
|
1316
|
+
eventTypes?: GetSessionLogsRequestEventTypesList | undefined;
|
|
1317
|
+
limit?: number | undefined;
|
|
1318
|
+
offset?: number | undefined;
|
|
1319
|
+
}
|
|
1320
|
+
export interface GetSessionLogsResponseEventsItem {
|
|
1321
|
+
id: string;
|
|
1322
|
+
log: string;
|
|
1323
|
+
timestamp: string;
|
|
1324
|
+
type: string;
|
|
1325
|
+
}
|
|
1326
|
+
export type GetSessionLogsResponseEventsList = Array<GetSessionLogsResponseEventsItem>;
|
|
1327
|
+
export interface GetSessionLogsResponse {
|
|
1328
|
+
events: GetSessionLogsResponseEventsList;
|
|
1329
|
+
hasMore: boolean;
|
|
1330
|
+
total: number;
|
|
1331
|
+
}
|
|
1332
|
+
export interface GetSessionSignalCatalogRequest {
|
|
1333
|
+
}
|
|
1334
|
+
export type SessionSignalCatalogResponseSignalsItemSeverity = "info" | "warning" | "danger" | "success";
|
|
1335
|
+
export type SessionSignalCatalogResponseSignalsItemSource = "manual" | "derived";
|
|
1336
|
+
export type SessionSignalCatalogResponseSignalsItemValue = "captcha_encountered" | "proxy_connection_failed" | "session_timeout_exceeded" | "bot_detection_triggered" | "context_restored";
|
|
1337
|
+
export interface SessionSignalCatalogResponseSignalsItem {
|
|
1338
|
+
description: string;
|
|
1339
|
+
label: string;
|
|
1340
|
+
severity: SessionSignalCatalogResponseSignalsItemSeverity;
|
|
1341
|
+
source: SessionSignalCatalogResponseSignalsItemSource;
|
|
1342
|
+
value: SessionSignalCatalogResponseSignalsItemValue;
|
|
1343
|
+
}
|
|
1344
|
+
export type SessionSignalCatalogResponseSignalsList = Array<SessionSignalCatalogResponseSignalsItem>;
|
|
1345
|
+
/** Current customer-visible signal definitions, not per-session detection evidence */
|
|
1346
|
+
export interface SessionSignalCatalogResponse {
|
|
1347
|
+
/** Interpretation and coverage limitations of session signals */
|
|
1348
|
+
semantics: string;
|
|
1349
|
+
signals: SessionSignalCatalogResponseSignalsList;
|
|
1350
|
+
}
|
|
1351
|
+
export type ListSessionsRequestStatus = "live" | "released" | "failed";
|
|
1352
|
+
export type ListSessionsRequestReleaseReason = "user_requested" | "timeout" | "inactivity_timeout" | "creation_timeout" | "startup_failed" | "browser_closed" | "browser_crashed";
|
|
1353
|
+
export type ListSessionsRequestSignalItem = "captcha_encountered" | "proxy_connection_failed" | "session_timeout_exceeded" | "bot_detection_triggered" | "context_restored";
|
|
1354
|
+
export type ListSessionsRequestSignalList = Array<ListSessionsRequestSignalItem | (string & {})>;
|
|
1355
|
+
export type ListSessionsRequestMetadataMap = {
|
|
1356
|
+
[key: string]: string | undefined;
|
|
1357
|
+
};
|
|
1358
|
+
export interface ListSessionsRequest {
|
|
1359
|
+
/** Cursor ID for pagination */
|
|
1360
|
+
cursorId?: string | undefined;
|
|
1361
|
+
/** Number of sessions to return. Default is 50, max is 100. */
|
|
1362
|
+
limit?: number | undefined;
|
|
1363
|
+
/** Filter sessions by current status */
|
|
1364
|
+
status?: ListSessionsRequestStatus | (string & {}) | undefined;
|
|
1365
|
+
/** Filter released sessions by why they ended. Live sessions have no release reason and are excluded whenever this is set. Without an explicit status, matching failed sessions are included. */
|
|
1366
|
+
releaseReason?: ListSessionsRequestReleaseReason | (string & {}) | undefined;
|
|
1367
|
+
/** Filter sessions by project */
|
|
1368
|
+
projectId?: string | undefined;
|
|
1369
|
+
/** Only sessions created at or after this ISO 8601 timestamp, e.g. 2026-10-01T00:00:00Z. */
|
|
1370
|
+
createdAfter?: string | undefined;
|
|
1371
|
+
/** Only sessions created before this ISO 8601 timestamp. */
|
|
1372
|
+
createdBefore?: string | undefined;
|
|
1373
|
+
/** Signals the session must carry; repeat the parameter to require several. All must match. Derived signals are finalized at release. */
|
|
1374
|
+
signal?: ListSessionsRequestSignalList | undefined;
|
|
1375
|
+
/** Exact-match metadata filters, e.g. metadata[environment]=production. All entries must match. Values match the stored string exactly; numbers and booleans are stored as strings, so metadata[attempt]=3 matches attempt sent as 3 or "3". */
|
|
1376
|
+
metadata?: ListSessionsRequestMetadataMap | undefined;
|
|
1377
|
+
}
|
|
1378
|
+
/** Browser mode used for this session. */
|
|
1379
|
+
export type SessionsResponseSessionsItemBrowserMode = "stealth" | "standard" | "unknown";
|
|
1380
|
+
/** Configuration for the debug URL and session viewer. Controls interaction capabilities and cursor visibility. */
|
|
1381
|
+
export type SessionsResponseSessionsItemDebugConfig = SessionResponseDebugConfig;
|
|
1382
|
+
export type SessionsResponseSessionsItemDeviceConfigDevice = "desktop" | "mobile";
|
|
1383
|
+
/** Device configuration for the session */
|
|
1384
|
+
export interface SessionsResponseSessionsItemDeviceConfig {
|
|
1385
|
+
device?: SessionsResponseSessionsItemDeviceConfigDevice | undefined;
|
|
1386
|
+
}
|
|
1387
|
+
/** Viewport and browser window dimensions for the session */
|
|
1388
|
+
export type SessionsResponseSessionsItemDimensions = SessionResponseDimensions;
|
|
1389
|
+
/** Customer-defined flat metadata. Values are always strings: numbers and booleans sent on write come back in their string form. */
|
|
1390
|
+
export type SessionsResponseSessionsItemMetadataMap = {
|
|
1391
|
+
[key: string]: string | undefined;
|
|
1392
|
+
};
|
|
1393
|
+
export type SessionsResponseSessionsItemOptimizeBandwidthBlockHostsList = Array<string>;
|
|
1394
|
+
export type SessionsResponseSessionsItemOptimizeBandwidthBlockUrlPatternsList = Array<string>;
|
|
1395
|
+
/** Bandwidth optimizations that were applied to the session. */
|
|
1396
|
+
export interface SessionsResponseSessionsItemOptimizeBandwidth {
|
|
1397
|
+
blockHosts?: SessionsResponseSessionsItemOptimizeBandwidthBlockHostsList | undefined;
|
|
1398
|
+
blockImages?: boolean | undefined;
|
|
1399
|
+
blockMedia?: boolean | undefined;
|
|
1400
|
+
blockStylesheets?: boolean | undefined;
|
|
1401
|
+
blockUrlPatterns?: SessionsResponseSessionsItemOptimizeBandwidthBlockUrlPatternsList | undefined;
|
|
1402
|
+
}
|
|
1403
|
+
/** Source of the proxy used for the session */
|
|
1404
|
+
export type SessionsResponseSessionsItemProxySource = "steel" | "external";
|
|
1405
|
+
/** Why the session reached a terminal state. Null while the session is live, or when the reason is unknown (e.g. sessions created before this was tracked). One of: user_requested (released via the API/SDK), timeout (hard `timeout` elapsed), inactivity_timeout (no activity for the configured window), creation_timeout (never started in time), startup_failed (could not be dispatched), browser_closed (the browser or agent closed itself -- not a crash), browser_crashed (the browser crashed or its machine became unresponsive). */
|
|
1406
|
+
export type SessionsResponseSessionsItemReleaseReason = "user_requested" | "timeout" | "inactivity_timeout" | "creation_timeout" | "startup_failed" | "browser_closed" | "browser_crashed";
|
|
1407
|
+
export type SessionsResponseSessionsItemSignalsItem = "captcha_encountered" | "proxy_connection_failed" | "session_timeout_exceeded" | "bot_detection_triggered" | "context_restored";
|
|
1408
|
+
/** Signals observed during the session. Filled in within a few seconds after the session ends, and empty until then. An empty list does not mean nothing happened: detection is heuristic and coverage is incomplete. */
|
|
1409
|
+
export type SessionsResponseSessionsItemSignalsList = Array<SessionsResponseSessionsItemSignalsItem>;
|
|
1410
|
+
/** Status of the session */
|
|
1411
|
+
export type SessionsResponseSessionsItemStatus = "live" | "released" | "failed";
|
|
1412
|
+
/** Stealth configuration for the session */
|
|
1413
|
+
export type SessionsResponseSessionsItemStealthConfig = SessionResponseStealthConfig;
|
|
1414
|
+
/** Represents the data structure for a browser session, including its configuration and status. */
|
|
1415
|
+
export interface SessionsResponseSessionsItem {
|
|
1416
|
+
/** Browser mode used for this session. */
|
|
1417
|
+
browserMode: SessionsResponseSessionsItemBrowserMode;
|
|
1418
|
+
/** Timestamp when the session started */
|
|
1419
|
+
createdAt: string;
|
|
1420
|
+
/** Amount of credits consumed by the session */
|
|
1421
|
+
creditsUsed: number;
|
|
1422
|
+
/** Configuration for the debug URL and session viewer. Controls interaction capabilities and cursor visibility. */
|
|
1423
|
+
debugConfig?: SessionResponseDebugConfig | undefined;
|
|
1424
|
+
/** URL for debugging the session */
|
|
1425
|
+
debugUrl: string | Redacted.Redacted<string>;
|
|
1426
|
+
/** Device configuration for the session */
|
|
1427
|
+
deviceConfig?: SessionsResponseSessionsItemDeviceConfig | undefined;
|
|
1428
|
+
/** Viewport and browser window dimensions for the session */
|
|
1429
|
+
dimensions: SessionResponseDimensions;
|
|
1430
|
+
/** Duration of the session in milliseconds */
|
|
1431
|
+
duration: number;
|
|
1432
|
+
/** Number of events processed in the session */
|
|
1433
|
+
eventCount: number;
|
|
1434
|
+
/** Launch the browser in fullscreen mode, covering the full screen with no Chrome UI. */
|
|
1435
|
+
fullscreen?: boolean | undefined;
|
|
1436
|
+
/** Indicates if the session is headless or headful */
|
|
1437
|
+
headless?: boolean | undefined;
|
|
1438
|
+
/** Unique identifier for the session */
|
|
1439
|
+
id: string;
|
|
1440
|
+
/** Inactivity timeout in milliseconds, if one was set when the session was created */
|
|
1441
|
+
inactivityTimeout?: number | undefined;
|
|
1442
|
+
/** Indicates if Selenium is used in the session */
|
|
1443
|
+
isSelenium?: boolean | undefined;
|
|
1444
|
+
/** Customer-defined flat metadata. Values are always strings: numbers and booleans sent on write come back in their string form. */
|
|
1445
|
+
metadata?: SessionsResponseSessionsItemMetadataMap | undefined;
|
|
1446
|
+
/** Bandwidth optimizations that were applied to the session. */
|
|
1447
|
+
optimizeBandwidth: SessionsResponseSessionsItemOptimizeBandwidth;
|
|
1448
|
+
/** This flag will persist the profile for the session. */
|
|
1449
|
+
persistProfile?: boolean | undefined;
|
|
1450
|
+
/** The ID of the profile associated with the session */
|
|
1451
|
+
profileId?: string | undefined;
|
|
1452
|
+
/** The project associated with the session */
|
|
1453
|
+
projectId?: string | null | undefined;
|
|
1454
|
+
/** Amount of data transmitted through the proxy */
|
|
1455
|
+
proxyBytesUsed: number;
|
|
1456
|
+
/** Source of the proxy used for the session */
|
|
1457
|
+
proxySource: SessionsResponseSessionsItemProxySource | null;
|
|
1458
|
+
/** The region where the session was created. */
|
|
1459
|
+
region?: string | undefined;
|
|
1460
|
+
/** Why the session reached a terminal state. Null while the session is live, or when the reason is unknown (e.g. sessions created before this was tracked). One of: user_requested (released via the API/SDK), timeout (hard `timeout` elapsed), inactivity_timeout (no activity for the configured window), creation_timeout (never started in time), startup_failed (could not be dispatched), browser_closed (the browser or agent closed itself -- not a crash), browser_crashed (the browser crashed or its machine became unresponsive). */
|
|
1461
|
+
releaseReason?: SessionsResponseSessionsItemReleaseReason | null | undefined;
|
|
1462
|
+
/** URL to view session details */
|
|
1463
|
+
sessionViewerUrl: string;
|
|
1464
|
+
/** Signals observed during the session. Filled in within a few seconds after the session ends, and empty until then. An empty list does not mean nothing happened: detection is heuristic and coverage is incomplete. */
|
|
1465
|
+
signals: SessionsResponseSessionsItemSignalsList;
|
|
1466
|
+
/** Indicates if captcha solving is enabled */
|
|
1467
|
+
solveCaptcha?: boolean | undefined;
|
|
1468
|
+
/** Status of the session */
|
|
1469
|
+
status: SessionsResponseSessionsItemStatus;
|
|
1470
|
+
/** Stealth configuration for the session */
|
|
1471
|
+
stealthConfig?: SessionResponseStealthConfig | undefined;
|
|
1472
|
+
/** Session timeout duration in milliseconds */
|
|
1473
|
+
timeout: number;
|
|
1474
|
+
/** User agent string used in the session */
|
|
1475
|
+
userAgent?: string | undefined;
|
|
1476
|
+
/** URL for the session's WebSocket connection */
|
|
1477
|
+
websocketUrl: string | Redacted.Redacted<string>;
|
|
1478
|
+
}
|
|
1479
|
+
/** List of browser sessions */
|
|
1480
|
+
export type SessionsResponseSessionsList = Array<SessionsResponseSessionsItem>;
|
|
1481
|
+
/** Response containing a list of browser sessions with pagination details. */
|
|
1482
|
+
export interface SessionsResponse {
|
|
1483
|
+
/** Cursor for the next page of results. Null if no more pages. */
|
|
1484
|
+
nextCursor: string | null;
|
|
1485
|
+
/** List of browser sessions */
|
|
1486
|
+
sessions: SessionsResponseSessionsList;
|
|
1487
|
+
/** Exact number of live sessions in the organization/project scope. Only included for status=live without metadata, signal, releaseReason, createdAfter or createdBefore filters. Other queries omit this field; use nextCursor to paginate until it is null. */
|
|
1488
|
+
totalCount?: number | undefined;
|
|
1489
|
+
}
|
|
1490
|
+
export interface ReleaseAllSessionsRequest {
|
|
1491
|
+
/** Release sessions only within this project */
|
|
1492
|
+
projectId?: string | undefined;
|
|
1493
|
+
}
|
|
1494
|
+
/** Response for releasing multiple sessions. */
|
|
1495
|
+
export interface ReleaseSessionsResponse {
|
|
1496
|
+
/** Details about the outcome of the release operation */
|
|
1497
|
+
message: string;
|
|
1498
|
+
/** Indicates if the sessions were successfully released */
|
|
1499
|
+
success: boolean;
|
|
1500
|
+
}
|
|
1501
|
+
export interface ReleaseSessionRequest {
|
|
1502
|
+
id: string;
|
|
1503
|
+
}
|
|
1504
|
+
/** Response for releasing a single session. */
|
|
1505
|
+
export interface ReleaseSessionResponse {
|
|
1506
|
+
/** Details about the outcome of the release operation */
|
|
1507
|
+
message: string;
|
|
1508
|
+
/** Indicates if the session was successfully released */
|
|
1509
|
+
success: boolean;
|
|
1510
|
+
}
|
|
1511
|
+
export type ReplaceSessionMetadataRequestMetadataValue = string | number | boolean;
|
|
1512
|
+
/** Customer-defined flat metadata: up to 50 keys and 8192 UTF-8 JSON bytes. Keys must start with a letter, use only letters, digits, underscores, dots or hyphens, and be at most 64 characters; steel_ is reserved. Values are strings (up to 1024 characters, valid Unicode without NUL), finite numbers or booleans. Numbers and booleans are stored as strings, so 3 and "3" are the same value. */
|
|
1513
|
+
export type ReplaceSessionMetadataRequestMetadataMap = {
|
|
1514
|
+
[key: string]: ReplaceSessionMetadataRequestMetadataValue | undefined;
|
|
1515
|
+
};
|
|
1516
|
+
export interface ReplaceSessionMetadataRequest {
|
|
1517
|
+
id: string;
|
|
1518
|
+
/** Customer-defined flat metadata: up to 50 keys and 8192 UTF-8 JSON bytes. Keys must start with a letter, use only letters, digits, underscores, dots or hyphens, and be at most 64 characters; steel_ is reserved. Values are strings (up to 1024 characters, valid Unicode without NUL), finite numbers or booleans. Numbers and booleans are stored as strings, so 3 and "3" are the same value. */
|
|
1519
|
+
metadata: ReplaceSessionMetadataRequestMetadataMap;
|
|
1520
|
+
}
|
|
1521
|
+
/** Customer-defined flat metadata. Values are always strings: numbers and booleans sent on write come back in their string form. */
|
|
1522
|
+
export type SessionMetadataResponseMetadataMap = {
|
|
1523
|
+
[key: string]: string | undefined;
|
|
1524
|
+
};
|
|
1525
|
+
export interface SessionMetadataResponse {
|
|
1526
|
+
/** Customer-defined flat metadata. Values are always strings: numbers and booleans sent on write come back in their string form. */
|
|
1527
|
+
metadata: SessionMetadataResponseMetadataMap;
|
|
1528
|
+
}
|
|
1529
|
+
export type CommandCase0Command = "navigate";
|
|
1530
|
+
/** Opens a URL in the tab. Only http, https, and about:blank. A URL without a scheme gets https://. */
|
|
1531
|
+
export interface CommandCase0 {
|
|
1532
|
+
command: CommandCase0Command;
|
|
1533
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1534
|
+
tab?: string | undefined;
|
|
1535
|
+
url: string;
|
|
1536
|
+
}
|
|
1537
|
+
export type CommandCase1Command = "back";
|
|
1538
|
+
/** Goes back one history entry. */
|
|
1539
|
+
export interface CommandCase1 {
|
|
1540
|
+
command: CommandCase1Command;
|
|
1541
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1542
|
+
tab?: string | undefined;
|
|
1543
|
+
}
|
|
1544
|
+
export type CommandCase2Command = "forward";
|
|
1545
|
+
/** Goes forward one history entry. */
|
|
1546
|
+
export interface CommandCase2 {
|
|
1547
|
+
command: CommandCase2Command;
|
|
1548
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1549
|
+
tab?: string | undefined;
|
|
1550
|
+
}
|
|
1551
|
+
export type CommandCase3Command = "reload";
|
|
1552
|
+
/** Reloads the tab. */
|
|
1553
|
+
export interface CommandCase3 {
|
|
1554
|
+
command: CommandCase3Command;
|
|
1555
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1556
|
+
tab?: string | undefined;
|
|
1557
|
+
}
|
|
1558
|
+
export type CommandCase4Command = "snapshot";
|
|
1559
|
+
/** Returns the accessibility tree of the page, with a ref for each element you can act on. */
|
|
1560
|
+
export interface CommandCase4 {
|
|
1561
|
+
command: CommandCase4Command;
|
|
1562
|
+
/** Only lines with refs or values, and their ancestors. */
|
|
1563
|
+
compact?: boolean | undefined;
|
|
1564
|
+
/** Only lines up to this depth. */
|
|
1565
|
+
depth?: number | undefined;
|
|
1566
|
+
/** Only lines with refs. */
|
|
1567
|
+
interactive?: boolean | undefined;
|
|
1568
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1569
|
+
tab?: string | undefined;
|
|
1570
|
+
}
|
|
1571
|
+
export type CommandCase5Command = "click";
|
|
1572
|
+
/** Fails the command when the element does not have this role or name. */
|
|
1573
|
+
export interface CommandExpectation {
|
|
1574
|
+
name?: string | undefined;
|
|
1575
|
+
role?: string | undefined;
|
|
1576
|
+
}
|
|
1577
|
+
/** Finds an element. Set exactly one of role, text, label, placeholder, alt, title, testid, css. */
|
|
1578
|
+
export interface CommandLocator {
|
|
1579
|
+
alt?: string | undefined;
|
|
1580
|
+
css?: string | undefined;
|
|
1581
|
+
/** Match the whole text. Text matches a case-insensitive substring by default. */
|
|
1582
|
+
exact?: boolean | undefined;
|
|
1583
|
+
label?: string | undefined;
|
|
1584
|
+
/** The accessible name. Works only with role. */
|
|
1585
|
+
name?: string | undefined;
|
|
1586
|
+
/** Picks one of several matches. Negative values count from the end. */
|
|
1587
|
+
nth?: number | undefined;
|
|
1588
|
+
placeholder?: string | undefined;
|
|
1589
|
+
role?: string | undefined;
|
|
1590
|
+
testid?: string | undefined;
|
|
1591
|
+
text?: string | undefined;
|
|
1592
|
+
title?: string | undefined;
|
|
1593
|
+
}
|
|
1594
|
+
/** A ref from a snapshot such as e12, a CSS selector, or a locator. */
|
|
1595
|
+
export type CommandTarget = string | CommandLocator;
|
|
1596
|
+
export type CommandFrameCase1List = Array<CommandTarget>;
|
|
1597
|
+
/** The iframe to look in. List nested iframes from the outside in. */
|
|
1598
|
+
export type CommandFrame = CommandTarget | CommandFrameCase1List;
|
|
1599
|
+
/** Clicks the element with the mouse. */
|
|
1600
|
+
export interface CommandCase5 {
|
|
1601
|
+
command: CommandCase5Command;
|
|
1602
|
+
expect?: CommandExpectation | undefined;
|
|
1603
|
+
frame?: CommandFrame | undefined;
|
|
1604
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1605
|
+
tab?: string | undefined;
|
|
1606
|
+
target: CommandTarget;
|
|
1607
|
+
}
|
|
1608
|
+
export type CommandCase6Command = "dblclick";
|
|
1609
|
+
/** Double-clicks the element with the mouse. */
|
|
1610
|
+
export interface CommandCase6 {
|
|
1611
|
+
command: CommandCase6Command;
|
|
1612
|
+
expect?: CommandExpectation | undefined;
|
|
1613
|
+
frame?: CommandFrame | undefined;
|
|
1614
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1615
|
+
tab?: string | undefined;
|
|
1616
|
+
target: CommandTarget;
|
|
1617
|
+
}
|
|
1618
|
+
export type CommandCase7Command = "hover";
|
|
1619
|
+
/** Moves the mouse onto the element. */
|
|
1620
|
+
export interface CommandCase7 {
|
|
1621
|
+
command: CommandCase7Command;
|
|
1622
|
+
expect?: CommandExpectation | undefined;
|
|
1623
|
+
frame?: CommandFrame | undefined;
|
|
1624
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1625
|
+
tab?: string | undefined;
|
|
1626
|
+
target: CommandTarget;
|
|
1627
|
+
}
|
|
1628
|
+
export type CommandCase8Command = "focus";
|
|
1629
|
+
/** Focuses the element. */
|
|
1630
|
+
export interface CommandCase8 {
|
|
1631
|
+
command: CommandCase8Command;
|
|
1632
|
+
expect?: CommandExpectation | undefined;
|
|
1633
|
+
frame?: CommandFrame | undefined;
|
|
1634
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1635
|
+
tab?: string | undefined;
|
|
1636
|
+
target: CommandTarget;
|
|
1637
|
+
}
|
|
1638
|
+
export type CommandCase9Command = "type";
|
|
1639
|
+
/** Types text one key press at a time, after the current content. */
|
|
1640
|
+
export interface CommandCase9 {
|
|
1641
|
+
/** Replace the current content. */
|
|
1642
|
+
clear?: boolean | undefined;
|
|
1643
|
+
command: CommandCase9Command;
|
|
1644
|
+
/** Milliseconds to wait between key presses. */
|
|
1645
|
+
delay?: number | undefined;
|
|
1646
|
+
expect?: CommandExpectation | undefined;
|
|
1647
|
+
frame?: CommandFrame | undefined;
|
|
1648
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1649
|
+
tab?: string | undefined;
|
|
1650
|
+
target: CommandTarget;
|
|
1651
|
+
text: string;
|
|
1652
|
+
}
|
|
1653
|
+
export type CommandCase10Command = "fill";
|
|
1654
|
+
/** Replaces the content of a field in one step, without key presses. */
|
|
1655
|
+
export interface CommandCase10 {
|
|
1656
|
+
command: CommandCase10Command;
|
|
1657
|
+
expect?: CommandExpectation | undefined;
|
|
1658
|
+
frame?: CommandFrame | undefined;
|
|
1659
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1660
|
+
tab?: string | undefined;
|
|
1661
|
+
target: CommandTarget;
|
|
1662
|
+
value: string;
|
|
1663
|
+
}
|
|
1664
|
+
export type CommandCase11Command = "press";
|
|
1665
|
+
/** Presses a key, such as Enter, or a combination such as Control+a. */
|
|
1666
|
+
export interface CommandCase11 {
|
|
1667
|
+
command: CommandCase11Command;
|
|
1668
|
+
expect?: CommandExpectation | undefined;
|
|
1669
|
+
frame?: CommandFrame | undefined;
|
|
1670
|
+
key: string;
|
|
1671
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1672
|
+
tab?: string | undefined;
|
|
1673
|
+
target?: CommandTarget | undefined;
|
|
1674
|
+
}
|
|
1675
|
+
export type CommandCase12Command = "keydown";
|
|
1676
|
+
/** Holds a key down until its keyup. */
|
|
1677
|
+
export interface CommandCase12 {
|
|
1678
|
+
command: CommandCase12Command;
|
|
1679
|
+
key: string;
|
|
1680
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1681
|
+
tab?: string | undefined;
|
|
1682
|
+
}
|
|
1683
|
+
export type CommandCase13Command = "keyup";
|
|
1684
|
+
/** Lets go of a key held with keydown. */
|
|
1685
|
+
export interface CommandCase13 {
|
|
1686
|
+
command: CommandCase13Command;
|
|
1687
|
+
key: string;
|
|
1688
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1689
|
+
tab?: string | undefined;
|
|
1690
|
+
}
|
|
1691
|
+
export type CommandCase14Action = "move" | "down" | "up" | "click" | "wheel";
|
|
1692
|
+
export type CommandCase14Button = "left" | "right" | "middle";
|
|
1693
|
+
export type CommandCase14Command = "mouse";
|
|
1694
|
+
/** Mouse input at a point in CSS pixels of the visible part of the page, for pages without useful elements such as a canvas. */
|
|
1695
|
+
export interface CommandCase14 {
|
|
1696
|
+
action: CommandCase14Action | (string & {});
|
|
1697
|
+
button?: CommandCase14Button | (string & {}) | undefined;
|
|
1698
|
+
clicks?: number | undefined;
|
|
1699
|
+
command: CommandCase14Command;
|
|
1700
|
+
deltaX?: number | undefined;
|
|
1701
|
+
deltaY?: number | undefined;
|
|
1702
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1703
|
+
tab?: string | undefined;
|
|
1704
|
+
x?: number | undefined;
|
|
1705
|
+
y?: number | undefined;
|
|
1706
|
+
}
|
|
1707
|
+
export type CommandCase15Command = "select";
|
|
1708
|
+
export type CommandCase15ValuesCase1List = Array<string>;
|
|
1709
|
+
export type CommandCase15Values = string | CommandCase15ValuesCase1List;
|
|
1710
|
+
/** Selects options. Matches by value, then by label. */
|
|
1711
|
+
export interface CommandCase15 {
|
|
1712
|
+
command: CommandCase15Command;
|
|
1713
|
+
expect?: CommandExpectation | undefined;
|
|
1714
|
+
frame?: CommandFrame | undefined;
|
|
1715
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1716
|
+
tab?: string | undefined;
|
|
1717
|
+
target: CommandTarget;
|
|
1718
|
+
values: CommandCase15Values;
|
|
1719
|
+
}
|
|
1720
|
+
export type CommandCase16Command = "check";
|
|
1721
|
+
/** Checks a checkbox, radio button, switch, or toggle button. */
|
|
1722
|
+
export interface CommandCase16 {
|
|
1723
|
+
command: CommandCase16Command;
|
|
1724
|
+
expect?: CommandExpectation | undefined;
|
|
1725
|
+
frame?: CommandFrame | undefined;
|
|
1726
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1727
|
+
tab?: string | undefined;
|
|
1728
|
+
target: CommandTarget;
|
|
1729
|
+
}
|
|
1730
|
+
export type CommandCase17Command = "upload";
|
|
1731
|
+
export type CommandCase17FilesCase1List = Array<string>;
|
|
1732
|
+
export type CommandCase17Files = string | CommandCase17FilesCase1List;
|
|
1733
|
+
/** Sets the files of a file input. Upload the files to the session first. */
|
|
1734
|
+
export interface CommandCase17 {
|
|
1735
|
+
command: CommandCase17Command;
|
|
1736
|
+
expect?: CommandExpectation | undefined;
|
|
1737
|
+
files: CommandCase17Files;
|
|
1738
|
+
frame?: CommandFrame | undefined;
|
|
1739
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1740
|
+
tab?: string | undefined;
|
|
1741
|
+
target: CommandTarget;
|
|
1742
|
+
}
|
|
1743
|
+
export type CommandCase18Command = "drag";
|
|
1744
|
+
/** Drags one element onto another with the mouse. */
|
|
1745
|
+
export interface CommandCase18 {
|
|
1746
|
+
command: CommandCase18Command;
|
|
1747
|
+
frame?: CommandFrame | undefined;
|
|
1748
|
+
source: CommandTarget;
|
|
1749
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1750
|
+
tab?: string | undefined;
|
|
1751
|
+
target: CommandTarget;
|
|
1752
|
+
}
|
|
1753
|
+
export type CommandCase19Command = "uncheck";
|
|
1754
|
+
/** Unchecks a checkbox, switch, or toggle button. */
|
|
1755
|
+
export interface CommandCase19 {
|
|
1756
|
+
command: CommandCase19Command;
|
|
1757
|
+
expect?: CommandExpectation | undefined;
|
|
1758
|
+
frame?: CommandFrame | undefined;
|
|
1759
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1760
|
+
tab?: string | undefined;
|
|
1761
|
+
target: CommandTarget;
|
|
1762
|
+
}
|
|
1763
|
+
export type CommandCase20Command = "get";
|
|
1764
|
+
export type CommandCase20What = "text" | "html" | "markdown" | "value" | "attr" | "title" | "url" | "count" | "box" | "locator";
|
|
1765
|
+
/** Reads something from the page or an element. */
|
|
1766
|
+
export interface CommandCase20 {
|
|
1767
|
+
/** The attribute to read with attr. */
|
|
1768
|
+
attribute?: string | undefined;
|
|
1769
|
+
command: CommandCase20Command;
|
|
1770
|
+
expect?: CommandExpectation | undefined;
|
|
1771
|
+
frame?: CommandFrame | undefined;
|
|
1772
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1773
|
+
tab?: string | undefined;
|
|
1774
|
+
target?: CommandTarget | undefined;
|
|
1775
|
+
what: CommandCase20What | (string & {});
|
|
1776
|
+
}
|
|
1777
|
+
export type CommandCase21Command = "is";
|
|
1778
|
+
export type CommandCase21What = "visible" | "enabled" | "checked";
|
|
1779
|
+
/** Checks the state of an element. */
|
|
1780
|
+
export interface CommandCase21 {
|
|
1781
|
+
command: CommandCase21Command;
|
|
1782
|
+
expect?: CommandExpectation | undefined;
|
|
1783
|
+
frame?: CommandFrame | undefined;
|
|
1784
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1785
|
+
tab?: string | undefined;
|
|
1786
|
+
target: CommandTarget;
|
|
1787
|
+
what: CommandCase21What | (string & {});
|
|
1788
|
+
}
|
|
1789
|
+
export type CommandCase22Command = "wait";
|
|
1790
|
+
export type CommandCase22Load = "load" | "domcontentloaded" | "networkidle";
|
|
1791
|
+
export type CommandCase22State = "visible" | "hidden" | "attached" | "detached";
|
|
1792
|
+
/** Waits for one of an element, text, a URL, a load state, a download, or a fixed time. */
|
|
1793
|
+
export interface CommandCase22 {
|
|
1794
|
+
command: CommandCase22Command;
|
|
1795
|
+
/** Waits for the next download to finish. */
|
|
1796
|
+
download?: boolean | undefined;
|
|
1797
|
+
expect?: CommandExpectation | undefined;
|
|
1798
|
+
frame?: CommandFrame | undefined;
|
|
1799
|
+
load?: CommandCase22Load | (string & {}) | undefined;
|
|
1800
|
+
ms?: number | undefined;
|
|
1801
|
+
state?: CommandCase22State | (string & {}) | undefined;
|
|
1802
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1803
|
+
tab?: string | undefined;
|
|
1804
|
+
target?: CommandTarget | undefined;
|
|
1805
|
+
text?: string | undefined;
|
|
1806
|
+
/** Milliseconds. 10000 by default. */
|
|
1807
|
+
timeout?: number | undefined;
|
|
1808
|
+
/** A URL pattern. * matches any characters. */
|
|
1809
|
+
url?: string | undefined;
|
|
1810
|
+
}
|
|
1811
|
+
export type CommandCase23Command = "screenshot";
|
|
1812
|
+
export type CommandCase23Format = "png" | "jpeg" | "webp";
|
|
1813
|
+
/** Captures the page or an element as base64 data. */
|
|
1814
|
+
export interface CommandCase23 {
|
|
1815
|
+
command: CommandCase23Command;
|
|
1816
|
+
expect?: CommandExpectation | undefined;
|
|
1817
|
+
format?: CommandCase23Format | (string & {}) | undefined;
|
|
1818
|
+
frame?: CommandFrame | undefined;
|
|
1819
|
+
fullPage?: boolean | undefined;
|
|
1820
|
+
quality?: number | undefined;
|
|
1821
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1822
|
+
tab?: string | undefined;
|
|
1823
|
+
target?: CommandTarget | undefined;
|
|
1824
|
+
}
|
|
1825
|
+
export type CommandCase24Command = "eval";
|
|
1826
|
+
/** Runs JavaScript in the page and returns the result as JSON. */
|
|
1827
|
+
export interface CommandCase24 {
|
|
1828
|
+
command: CommandCase24Command;
|
|
1829
|
+
script: string;
|
|
1830
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1831
|
+
tab?: string | undefined;
|
|
1832
|
+
/** Milliseconds. 10000 by default. */
|
|
1833
|
+
timeout?: number | undefined;
|
|
1834
|
+
}
|
|
1835
|
+
export type CommandCase25Command = "pdf";
|
|
1836
|
+
/** Prints the page to a PDF as base64 data. */
|
|
1837
|
+
export interface CommandCase25 {
|
|
1838
|
+
command: CommandCase25Command;
|
|
1839
|
+
landscape?: boolean | undefined;
|
|
1840
|
+
printBackground?: boolean | undefined;
|
|
1841
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1842
|
+
tab?: string | undefined;
|
|
1843
|
+
}
|
|
1844
|
+
export type CommandCase26Command = "scroll";
|
|
1845
|
+
export type CommandCase26Direction = "up" | "down" | "left" | "right";
|
|
1846
|
+
/** Scrolls the page, or an element when target is set. */
|
|
1847
|
+
export interface CommandCase26 {
|
|
1848
|
+
/** Pixels. 300 by default. */
|
|
1849
|
+
amount?: number | undefined;
|
|
1850
|
+
command: CommandCase26Command;
|
|
1851
|
+
direction?: CommandCase26Direction | (string & {}) | undefined;
|
|
1852
|
+
expect?: CommandExpectation | undefined;
|
|
1853
|
+
frame?: CommandFrame | undefined;
|
|
1854
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1855
|
+
tab?: string | undefined;
|
|
1856
|
+
target?: CommandTarget | undefined;
|
|
1857
|
+
}
|
|
1858
|
+
export type CommandCase27Command = "find";
|
|
1859
|
+
/** Finds elements and returns refs for up to 50 matches. With nth, it returns that one match. */
|
|
1860
|
+
export interface CommandCase27 {
|
|
1861
|
+
command: CommandCase27Command;
|
|
1862
|
+
frame?: CommandFrame | undefined;
|
|
1863
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1864
|
+
tab?: string | undefined;
|
|
1865
|
+
/** A CSS selector or a locator, not a ref. */
|
|
1866
|
+
target: CommandTarget;
|
|
1867
|
+
}
|
|
1868
|
+
export type CommandCase28Action = "list" | "new" | "close";
|
|
1869
|
+
export type CommandCase28Command = "tab";
|
|
1870
|
+
/** Lists, opens, or closes tabs. The last tab cannot be closed. */
|
|
1871
|
+
export interface CommandCase28 {
|
|
1872
|
+
action: CommandCase28Action | (string & {});
|
|
1873
|
+
command: CommandCase28Command;
|
|
1874
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1875
|
+
tab?: string | undefined;
|
|
1876
|
+
url?: string | undefined;
|
|
1877
|
+
}
|
|
1878
|
+
export type Command = CommandCase0 | CommandCase1 | CommandCase2 | CommandCase3 | CommandCase4 | CommandCase5 | CommandCase6 | CommandCase7 | CommandCase8 | CommandCase9 | CommandCase10 | CommandCase11 | CommandCase12 | CommandCase13 | CommandCase14 | CommandCase15 | CommandCase16 | CommandCase17 | CommandCase18 | CommandCase19 | CommandCase20 | CommandCase21 | CommandCase22 | CommandCase23 | CommandCase24 | CommandCase25 | CommandCase26 | CommandCase27 | CommandCase28;
|
|
1879
|
+
export type RunCommandsRequestCommandsCase1List = Array<Command>;
|
|
1880
|
+
/** One command, or an array of up to 50. They run in order and stop at the first failure. Commands that already ran are not undone. */
|
|
1881
|
+
export type RunCommandsRequestCommands = Command | RunCommandsRequestCommandsCase1List;
|
|
1882
|
+
export type RunCommandsRequestObserveMode = "none" | "snapshot" | "diff";
|
|
1883
|
+
/** Returns a snapshot, or a diff against the last one, after the commands. */
|
|
1884
|
+
export interface RunCommandsRequestObserve {
|
|
1885
|
+
/** A snapshot id to diff against. */
|
|
1886
|
+
base?: string | undefined;
|
|
1887
|
+
/** Only lines with refs or values, and their ancestors. */
|
|
1888
|
+
compact?: boolean | undefined;
|
|
1889
|
+
/** Only lines up to this depth. */
|
|
1890
|
+
depth?: number | undefined;
|
|
1891
|
+
/** Only lines with refs. */
|
|
1892
|
+
interactive?: boolean | undefined;
|
|
1893
|
+
mode: RunCommandsRequestObserveMode | (string & {});
|
|
1894
|
+
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1895
|
+
tab?: string | undefined;
|
|
1896
|
+
}
|
|
1897
|
+
export interface RunCommandsRequest {
|
|
1898
|
+
/** Session ID */
|
|
1899
|
+
sessionId: string;
|
|
1900
|
+
/** The next value from your last response. A retry with the same after and commands runs only once. */
|
|
1901
|
+
after?: string | undefined;
|
|
1902
|
+
/** One command, or an array of up to 50. They run in order and stop at the first failure. Commands that already ran are not undone. */
|
|
1903
|
+
commands: RunCommandsRequestCommands;
|
|
1904
|
+
/** Returns a snapshot, or a diff against the last one, after the commands. */
|
|
1905
|
+
observe?: RunCommandsRequestObserve | undefined;
|
|
1906
|
+
}
|
|
1907
|
+
export type UpdateSessionMetadataRequestMetadataValue = string | number | boolean;
|
|
1908
|
+
/** Metadata keys to change, up to 100 per update. Keys follow the same rules as metadata keys. Send a string, finite number or boolean to set a key, or null to remove it; keys you leave out are kept. The merged metadata must stay within 50 keys and 8192 UTF-8 JSON bytes. */
|
|
1909
|
+
export type UpdateSessionMetadataRequestMetadataMap = {
|
|
1910
|
+
[key: string]: UpdateSessionMetadataRequestMetadataValue | null | undefined;
|
|
1911
|
+
};
|
|
1912
|
+
export interface UpdateSessionMetadataRequest {
|
|
1913
|
+
id: string;
|
|
1914
|
+
/** Metadata keys to change, up to 100 per update. Keys follow the same rules as metadata keys. Send a string, finite number or boolean to set a key, or null to remove it; keys you leave out are kept. The merged metadata must stay within 50 keys and 8192 UTF-8 JSON bytes. */
|
|
1915
|
+
metadata: UpdateSessionMetadataRequestMetadataMap;
|
|
1916
|
+
}
|
|
1917
|
+
export type CancelCommandExecutionError = Forbidden | NotFound | Gone | UnprocessableEntity | SessionEnded | SteelOpError;
|
|
1918
|
+
/** Cancel a command execution Stops an execution. The running command stops before its next input, and commands that already ran are not undone. */
|
|
1919
|
+
export declare const cancelCommandExecution: API.OperationMethod<CancelCommandExecutionRequest, RunCommandsResponse, CancelCommandExecutionError, SteelOpContext>;
|
|
1920
|
+
export type CreateSessionError = BadRequest | Forbidden | Conflict | UnprocessableEntity | NotFound | ProfileNotFound | SteelOpError;
|
|
1921
|
+
/** Create a session Creates a new session with the provided configuration. */
|
|
1922
|
+
export declare const createSession: API.OperationMethod<CreateSessionRequest, SessionResponse, CreateSessionError, SteelOpContext>;
|
|
1923
|
+
export type ExecuteComputerActionError = BadRequest | SteelOpError;
|
|
1924
|
+
/** Execute computer action Execute computer actions like mouse movements, clicks, keyboard input, and more */
|
|
1925
|
+
export declare const executeComputerAction: API.OperationMethod<ExecuteComputerActionRequest, ComputerActionResponse, ExecuteComputerActionError, SteelOpContext>;
|
|
1926
|
+
export type GetCommandExecutionError = Forbidden | NotFound | Gone | UnprocessableEntity | SessionEnded | SteelOpError;
|
|
1927
|
+
/** Get a command execution Waits up to 20 seconds for an execution to finish and returns it. Use it when a run answered with state running. */
|
|
1928
|
+
export declare const getCommandExecution: API.OperationMethod<GetCommandExecutionRequest, RunCommandsResponse, GetCommandExecutionError, SteelOpContext>;
|
|
1929
|
+
export type GetSessionError = BadRequest | NotFound | SteelOpError;
|
|
1930
|
+
/** Get session details Retrieves details of a specific session by ID. */
|
|
1931
|
+
export declare const getSession: API.OperationMethod<GetSessionRequest, SessionResponse, GetSessionError, SteelOpContext>;
|
|
1932
|
+
export type GetSessionAgentLogsError = BadRequest | NotFound | SteelOpError;
|
|
1933
|
+
/** Get session agent logs Query raw CDP-derived agent events (Input.dispatchMouseEvent, Input.dispatchKeyEvent, Page.navigate, ...) for a session. For the semantic, replay-oriented interaction timeline use /sessions/:id/agent-traces instead. */
|
|
1934
|
+
export declare const getSessionAgentLogs: API.OperationMethod<GetSessionAgentLogsRequest, GetSessionAgentLogsResponse, GetSessionAgentLogsError, SteelOpContext>;
|
|
1935
|
+
export type GetSessionAgentTracesError = BadRequest | NotFound | SteelOpError;
|
|
1936
|
+
/** Get session agent traces Query the semantic agent trace timeline for a session: a coalesced, replay-oriented record of user/agent interactions (clicks, typing, scrolls, drags, navigations) with target metadata (role, accessible name, selectors). Returns an empty list for sessions that predate browser-interaction capture. */
|
|
1937
|
+
export declare const getSessionAgentTraces: API.OperationMethod<GetSessionAgentTracesRequest, GetSessionAgentTracesResponse, GetSessionAgentTracesError, SteelOpContext>;
|
|
1938
|
+
export type GetSessionContextError = NotFound | SteelOpError;
|
|
1939
|
+
/** Get session context Fetches the context data of a specific session. */
|
|
1940
|
+
export declare const getSessionContext: API.OperationMethod<GetSessionContextRequest, SessionContextResponse, GetSessionContextError, SteelOpContext>;
|
|
1941
|
+
export type GetSessionCostError = NotFound | Conflict | SteelOpError;
|
|
1942
|
+
/** Get session cost Returns the finalized cost of a released session as an exact amount in US dollars (e.g. 0.031905), suitable for precise billing passthrough. */
|
|
1943
|
+
export declare const getSessionCost: API.OperationMethod<GetSessionCostRequest, SessionCostResponse, GetSessionCostError, SteelOpContext>;
|
|
1944
|
+
export type GetSessionEventsError = BadRequest | NotFound | SteelOpError;
|
|
1945
|
+
/** Get recorded events This endpoint allows you to get the recorded session events in the RRWeb format */
|
|
1946
|
+
export declare const getSessionEvents: API.OperationMethod<GetSessionEventsRequest, GetSessionEventsResponse2, GetSessionEventsError, SteelOpContext>;
|
|
1947
|
+
export type GetSessionHlsPlaylistError = NotFound | SteelOpError;
|
|
1948
|
+
/** Get HLS playlist Get HLS playlist for a session recording using app auth or an RTC token */
|
|
1949
|
+
export declare const getSessionHlsPlaylist: API.OperationMethod<GetSessionHlsPlaylistRequest, GetSessionHlsPlaylistResponse, GetSessionHlsPlaylistError, SteelOpContext>;
|
|
1950
|
+
export type GetSessionLiveDetailsError = Forbidden | NotFound | SteelOpError;
|
|
1951
|
+
/** Get live session details Returns the live state of the session, including pages, tabs, and browser state */
|
|
1952
|
+
export declare const getSessionLiveDetails: API.OperationMethod<GetSessionLiveDetailsRequest, SessionLiveDetailsResponse, GetSessionLiveDetailsError, SteelOpContext>;
|
|
1953
|
+
export type GetSessionLogsError = BadRequest | NotFound | SteelOpError;
|
|
1954
|
+
/** Get session logs Query browser event logs for a session */
|
|
1955
|
+
export declare const getSessionLogs: API.OperationMethod<GetSessionLogsRequest, GetSessionLogsResponse, GetSessionLogsError, SteelOpContext>;
|
|
1956
|
+
export type GetSessionSignalCatalogError = SteelOpError;
|
|
1957
|
+
/** List public session signal definitions Returns current signal labels and meanings for customer integrations. Uses normal Steel API-key authentication. Includes no session data or administrative signals. Definitions do not establish that detection ran for a particular session. */
|
|
1958
|
+
export declare const getSessionSignalCatalog: API.OperationMethod<GetSessionSignalCatalogRequest, SessionSignalCatalogResponse, GetSessionSignalCatalogError, SteelOpContext>;
|
|
1959
|
+
export type ListSessionsError = SteelOpError;
|
|
1960
|
+
/** List all sessions Fetches all active sessions for the current organization. */
|
|
1961
|
+
export declare const listSessions: API.PaginatedOperationMethod<ListSessionsRequest, SessionsResponse, ListSessionsError, SteelOpContext, SessionsResponseSessionsItem>;
|
|
1962
|
+
export type ReleaseAllSessionsError = BadRequest | SteelOpError;
|
|
1963
|
+
/** Release all sessions Releases all active sessions for the current organization. */
|
|
1964
|
+
export declare const releaseAllSessions: API.OperationMethod<ReleaseAllSessionsRequest, ReleaseSessionsResponse, ReleaseAllSessionsError, SteelOpContext>;
|
|
1965
|
+
export type ReleaseSessionError = BadRequest | NotFound | SteelOpError;
|
|
1966
|
+
/** Release a session Releases a specific session by ID. */
|
|
1967
|
+
export declare const releaseSession: API.OperationMethod<ReleaseSessionRequest, ReleaseSessionResponse, ReleaseSessionError, SteelOpContext>;
|
|
1968
|
+
export type ReplaceSessionMetadataError = BadRequest | NotFound | SteelOpError;
|
|
1969
|
+
/** Replace session metadata Atomically replace customer metadata. Send an empty object to clear it. Last accepted write wins; use PATCH to change individual keys. Subject to session organization and project access. */
|
|
1970
|
+
export declare const replaceSessionMetadata: API.OperationMethod<ReplaceSessionMetadataRequest, SessionMetadataResponse, ReplaceSessionMetadataError, SteelOpContext>;
|
|
1971
|
+
export type RunCommandsError = BadRequest | Forbidden | NotFound | Gone | UnprocessableEntity | SessionEnded | SteelOpError;
|
|
1972
|
+
/** Run commands Drives the session's browser with high-level commands such as snapshot, click, and fill. Commands run in order and stop at the first failure. Send a random Idempotency-Key header to make retries safe. */
|
|
1973
|
+
export declare const runCommands: API.OperationMethod<RunCommandsRequest, RunCommandsResponse, RunCommandsError, SteelOpContext>;
|
|
1974
|
+
export type UpdateSessionMetadataError = BadRequest | NotFound | SteelOpError;
|
|
1975
|
+
/** Update session metadata Atomically merge keys into customer metadata. Set a key to null to remove it; keys you leave out are kept, so concurrent updates to different keys are all kept. Returns the merged metadata, which must stay within the metadata limits. Subject to session organization and project access. */
|
|
1976
|
+
export declare const updateSessionMetadata: API.OperationMethod<UpdateSessionMetadataRequest, SessionMetadataResponse, UpdateSessionMetadataError, SteelOpContext>;
|
|
1977
|
+
//# sourceMappingURL=sessions.d.ts.map
|