@distilled.cloud/steel 1.0.0-rc.19 → 1.0.0-rc.21
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/README.md +9 -6
- package/lib/.lazy.json +1 -1
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +8 -3
- package/lib/credentials.d.ts.map +1 -1
- package/lib/errors.d.ts +12 -8
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/index.d.ts +2 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/protocol.d.ts +9 -12
- package/lib/protocol.d.ts.map +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/services/api_keys.d.ts +38 -0
- package/lib/services/api_keys.d.ts.map +1 -1
- package/lib/services/api_keys.js +1 -1
- package/lib/services/api_keys.js.map +1 -1
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +1 -1
- package/lib/services/auth.js.map +1 -1
- package/lib/services/browser_tools.d.ts +35 -0
- package/lib/services/browser_tools.d.ts.map +1 -1
- package/lib/services/browser_tools.js +1 -1
- package/lib/services/browser_tools.js.map +1 -1
- package/lib/services/captchas.d.ts +32 -0
- package/lib/services/captchas.d.ts.map +1 -1
- package/lib/services/captchas.js +1 -1
- package/lib/services/captchas.js.map +1 -1
- package/lib/services/credentials.d.ts +54 -0
- package/lib/services/credentials.d.ts.map +1 -1
- package/lib/services/credentials.js +1 -1
- package/lib/services/credentials.js.map +1 -1
- package/lib/services/extensions.d.ts +47 -1
- package/lib/services/extensions.d.ts.map +1 -1
- package/lib/services/extensions.js +1 -1
- package/lib/services/extensions.js.map +1 -1
- package/lib/services/files.d.ts +57 -3
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +1 -1
- package/lib/services/files.js.map +1 -1
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +2 -0
- package/lib/services/profiles.d.ts +64 -5
- package/lib/services/profiles.d.ts.map +1 -1
- package/lib/services/profiles.js +1 -1
- package/lib/services/profiles.js.map +1 -1
- package/lib/services/projects.d.ts +32 -0
- package/lib/services/projects.d.ts.map +1 -1
- package/lib/services/projects.js +1 -1
- package/lib/services/projects.js.map +1 -1
- package/lib/services/secret_connections.d.ts +233 -0
- package/lib/services/secret_connections.d.ts.map +1 -0
- package/lib/services/secret_connections.js +2 -0
- package/lib/services/secret_connections.js.map +1 -0
- package/lib/services/sessions.d.ts +526 -233
- package/lib/services/sessions.d.ts.map +1 -1
- package/lib/services/sessions.js +50 -41
- package/lib/services/sessions.js.map +1 -1
- package/lib/services/vaults.d.ts +149 -0
- package/lib/services/vaults.d.ts.map +1 -0
- package/lib/services/vaults.js +2 -0
- package/lib/services/vaults.js.map +1 -0
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/secret_connections.js +1 -0
- package/lib/services.lazy/sessions.js +2 -2
- package/lib/services.lazy/vaults.js +1 -0
- package/lib/traits.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/credentials.ts +18 -12
- package/src/errors.ts +13 -5
- package/src/index.ts +2 -3
- package/src/protocol.ts +18 -30
- package/src/services/api_keys.ts +87 -7
- package/src/services/auth.ts +3 -2
- package/src/services/browser_tools.ts +101 -28
- package/src/services/captchas.ts +85 -17
- package/src/services/credentials.ts +129 -25
- package/src/services/extensions.ts +136 -34
- package/src/services/files.ts +172 -58
- package/src/services/index.ts +2 -0
- package/src/services/profiles.ts +198 -60
- package/src/services/projects.ts +79 -12
- package/src/services/secret_connections.ts +538 -0
- package/src/services/sessions.ts +1384 -794
- package/src/services/vaults.ts +369 -0
- package/lib/index.lazy.js +0 -7
- package/lib/index.lazy.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import { BinaryStream } from "@distilled.cloud/core/protocol-rest";
|
|
2
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
4
|
import type * as Redacted from "effect/Redacted";
|
|
4
5
|
import { type SteelOpError, type SteelOpContext } from "../protocol.ts";
|
|
@@ -6,55 +7,72 @@ export type { SteelOpError, SteelOpContext };
|
|
|
6
7
|
declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
|
|
7
8
|
readonly code: any;
|
|
8
9
|
readonly message: any;
|
|
10
|
+
readonly body: any;
|
|
11
|
+
readonly headers: any;
|
|
9
12
|
}> & (new (...args: any[]) => {
|
|
10
13
|
"@distilled.cloud/error/categories": {
|
|
11
14
|
BadRequestError: true;
|
|
12
15
|
};
|
|
13
16
|
});
|
|
14
17
|
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
18
|
+
readonly body?: ErrorResponse | ReleaseSessionsResponse | RunCommandsErrorResponse | string;
|
|
15
19
|
}
|
|
16
20
|
declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
|
|
17
21
|
readonly code: any;
|
|
18
22
|
readonly message: any;
|
|
23
|
+
readonly body: any;
|
|
24
|
+
readonly headers: any;
|
|
19
25
|
}> & (new (...args: any[]) => {
|
|
20
26
|
"@distilled.cloud/error/categories": {
|
|
21
27
|
ConflictError: true;
|
|
22
28
|
};
|
|
23
29
|
});
|
|
24
30
|
export declare class Conflict extends /*@__PURE__*/ Conflict_base {
|
|
31
|
+
readonly body?: ErrorResponse | string;
|
|
25
32
|
}
|
|
26
33
|
declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
|
|
27
34
|
readonly code: any;
|
|
28
35
|
readonly message: any;
|
|
36
|
+
readonly body: any;
|
|
37
|
+
readonly headers: any;
|
|
29
38
|
}> & (new (...args: any[]) => {
|
|
30
39
|
"@distilled.cloud/error/categories": {
|
|
31
40
|
AuthError: true;
|
|
32
41
|
};
|
|
33
42
|
});
|
|
34
43
|
export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
|
|
44
|
+
readonly body?: ErrorResponse | string;
|
|
35
45
|
}
|
|
36
46
|
declare const Gone_base: S.TaggedErrorClass<"Gone", {
|
|
37
47
|
readonly code: any;
|
|
38
48
|
readonly message: any;
|
|
49
|
+
readonly body: any;
|
|
50
|
+
readonly headers: any;
|
|
39
51
|
}> & (new (...args: any[]) => {
|
|
40
52
|
"@distilled.cloud/error/categories": {
|
|
41
53
|
BadRequestError: true;
|
|
42
54
|
};
|
|
43
55
|
});
|
|
44
56
|
export declare class Gone extends /*@__PURE__*/ Gone_base {
|
|
57
|
+
readonly body?: RunCommandsErrorResponse | string;
|
|
45
58
|
}
|
|
46
59
|
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
47
60
|
readonly code: any;
|
|
48
61
|
readonly message: any;
|
|
62
|
+
readonly body: any;
|
|
63
|
+
readonly headers: any;
|
|
49
64
|
}> & (new (...args: any[]) => {
|
|
50
65
|
"@distilled.cloud/error/categories": {
|
|
51
66
|
BadRequestError: true;
|
|
52
67
|
};
|
|
53
68
|
});
|
|
54
69
|
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
70
|
+
readonly body?: ErrorResponse | RunCommandsErrorResponse | string;
|
|
55
71
|
}
|
|
56
72
|
declare const ProfileNotFound_base: S.TaggedErrorClass<"ProfileNotFound", {
|
|
57
73
|
readonly message: any;
|
|
74
|
+
readonly body: any;
|
|
75
|
+
readonly headers: any;
|
|
58
76
|
}> & (new (...args: any[]) => {
|
|
59
77
|
"@distilled.cloud/error/categories": {
|
|
60
78
|
BadRequestError: true;
|
|
@@ -65,6 +83,8 @@ export declare class ProfileNotFound extends /*@__PURE__*/ ProfileNotFound_base
|
|
|
65
83
|
}
|
|
66
84
|
declare const SessionEnded_base: S.TaggedErrorClass<"SessionEnded", {
|
|
67
85
|
readonly message: any;
|
|
86
|
+
readonly body: any;
|
|
87
|
+
readonly headers: any;
|
|
68
88
|
}> & (new (...args: any[]) => {
|
|
69
89
|
"@distilled.cloud/error/categories": {
|
|
70
90
|
BadRequestError: true;
|
|
@@ -72,16 +92,74 @@ declare const SessionEnded_base: S.TaggedErrorClass<"SessionEnded", {
|
|
|
72
92
|
});
|
|
73
93
|
/** The session has ended (`session_ended`): it was released or timed out. Create a new session to keep going. */
|
|
74
94
|
export declare class SessionEnded extends /*@__PURE__*/ SessionEnded_base {
|
|
95
|
+
readonly body?: RunCommandsErrorResponse | string;
|
|
75
96
|
}
|
|
76
97
|
declare const UnprocessableEntity_base: S.TaggedErrorClass<"UnprocessableEntity", {
|
|
77
98
|
readonly code: any;
|
|
78
99
|
readonly message: any;
|
|
100
|
+
readonly body: any;
|
|
101
|
+
readonly headers: any;
|
|
79
102
|
}> & (new (...args: any[]) => {
|
|
80
103
|
"@distilled.cloud/error/categories": {
|
|
81
104
|
BadRequestError: true;
|
|
82
105
|
};
|
|
83
106
|
});
|
|
84
107
|
export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
|
|
108
|
+
readonly body?: RunCommandsErrorResponse | ErrorResponse | string;
|
|
109
|
+
}
|
|
110
|
+
export type AttachSessionCredentialsRequestBindingsItemCase1AllowedOriginsList = Array<string>;
|
|
111
|
+
export interface AttachSessionCredentialsRequestBindingsItemCase1 {
|
|
112
|
+
allowedOrigins: AttachSessionCredentialsRequestBindingsItemCase1AllowedOriginsList;
|
|
113
|
+
reference: string;
|
|
114
|
+
}
|
|
115
|
+
export type AttachSessionCredentialsRequestBindingsItem = string | AttachSessionCredentialsRequestBindingsItemCase1;
|
|
116
|
+
/** At most 100 bindings; KV bindings may specify allowedOrigins. */
|
|
117
|
+
export type AttachSessionCredentialsRequestBindingsList = Array<AttachSessionCredentialsRequestBindingsItem>;
|
|
118
|
+
/** Ids of credentials (Secrets of kind `credential`) in the session's project. Binding makes the session's lookup `explicit` for good. */
|
|
119
|
+
export type AttachSessionCredentialsRequestCredentialIdsList = Array<string>;
|
|
120
|
+
export interface AttachSessionCredentialsRequest {
|
|
121
|
+
id: string;
|
|
122
|
+
/** At most 100 bindings; KV bindings may specify allowedOrigins. */
|
|
123
|
+
bindings?: AttachSessionCredentialsRequestBindingsList | undefined;
|
|
124
|
+
/** Ids of credentials (Secrets of kind `credential`) in the session's project. Binding makes the session's lookup `explicit` for good. */
|
|
125
|
+
credentialIds?: AttachSessionCredentialsRequestCredentialIdsList | undefined;
|
|
126
|
+
}
|
|
127
|
+
export type SessionCredentialsResponseBindingsItemCase1AllowedOriginsList = Array<string>;
|
|
128
|
+
export interface SessionCredentialsResponseBindingsItemCase1 {
|
|
129
|
+
allowedOrigins: SessionCredentialsResponseBindingsItemCase1AllowedOriginsList;
|
|
130
|
+
reference: string;
|
|
131
|
+
}
|
|
132
|
+
export type SessionCredentialsResponseBindingsItem = string | SessionCredentialsResponseBindingsItemCase1;
|
|
133
|
+
/** Bindings, including KV references with their allowed origins and soft-deleted targets. */
|
|
134
|
+
export type SessionCredentialsResponseBindingsList = Array<SessionCredentialsResponseBindingsItem>;
|
|
135
|
+
/** Other origins the credential may be filled on */
|
|
136
|
+
export type SessionCredentialsResponseCredentialsItemAdditionalOriginsList = Array<string>;
|
|
137
|
+
export interface SessionCredentialsResponseCredentialsItem {
|
|
138
|
+
/** Other origins the credential may be filled on */
|
|
139
|
+
additionalOrigins: SessionCredentialsResponseCredentialsItemAdditionalOriginsList;
|
|
140
|
+
/** The credential's id (a Secret of kind `credential`) */
|
|
141
|
+
id: string;
|
|
142
|
+
/** The credential's name */
|
|
143
|
+
name: string;
|
|
144
|
+
/** The credential's namespace */
|
|
145
|
+
namespace: string;
|
|
146
|
+
/** The website origin the credential is for */
|
|
147
|
+
origin: string;
|
|
148
|
+
}
|
|
149
|
+
/** Live credentials bound to the session, oldest binding first. No values. */
|
|
150
|
+
export type SessionCredentialsResponseCredentialsList = Array<SessionCredentialsResponseCredentialsItem>;
|
|
151
|
+
/** `explicit`: the session fills only the credentials listed here. `implicit`: it fills credentials stored for its namespace and the page origin. */
|
|
152
|
+
export type SessionCredentialsResponseLookup = "implicit" | "explicit";
|
|
153
|
+
/** The credentials a session is bound to */
|
|
154
|
+
export interface SessionCredentialsResponse {
|
|
155
|
+
/** Bindings, including KV references with their allowed origins and soft-deleted targets. */
|
|
156
|
+
bindings: SessionCredentialsResponseBindingsList;
|
|
157
|
+
/** Live credentials bound to the session, oldest binding first. No values. */
|
|
158
|
+
credentials: SessionCredentialsResponseCredentialsList;
|
|
159
|
+
/** Whether the session was created with a `credentials` configuration. Only then can credentials be attached; otherwise attach and replace answer 409 `credentials_not_enabled`. */
|
|
160
|
+
credentialsEnabled: boolean;
|
|
161
|
+
/** `explicit`: the session fills only the credentials listed here. `implicit`: it fills credentials stored for its namespace and the page origin. */
|
|
162
|
+
lookup: SessionCredentialsResponseLookup;
|
|
85
163
|
}
|
|
86
164
|
export interface CancelCommandExecutionRequest {
|
|
87
165
|
/** Session ID */
|
|
@@ -99,7 +177,21 @@ export interface CommandDialog {
|
|
|
99
177
|
type: CommandDialogType;
|
|
100
178
|
}
|
|
101
179
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
102
|
-
export type
|
|
180
|
+
export type RunCommandsResponseEffect = "none" | "applied" | "unknown";
|
|
181
|
+
/** A mouse button held down with mouse down. */
|
|
182
|
+
export type CommandHeldButton = "left" | "right" | "middle";
|
|
183
|
+
/** Keys still held down, for example with keyboard down. */
|
|
184
|
+
export type CommandHeldKeysList = Array<string>;
|
|
185
|
+
/** Input still held down on a tab. It applies to later input until released. */
|
|
186
|
+
export interface CommandHeld {
|
|
187
|
+
/** A mouse button held down with mouse down. */
|
|
188
|
+
button?: CommandHeldButton | undefined;
|
|
189
|
+
/** Keys still held down, for example with keyboard down. */
|
|
190
|
+
keys: CommandHeldKeysList;
|
|
191
|
+
tab: string;
|
|
192
|
+
}
|
|
193
|
+
/** Tabs with keys or a mouse button still held down. Left out when nothing is held. */
|
|
194
|
+
export type RunCommandsResponseHeldList = Array<CommandHeld>;
|
|
103
195
|
export interface CommandErrorInfo {
|
|
104
196
|
/** Error code, such as stale_ref or not_actionable. */
|
|
105
197
|
code: string;
|
|
@@ -107,17 +199,6 @@ export interface CommandErrorInfo {
|
|
|
107
199
|
/** More detail, such as covered or detached. */
|
|
108
200
|
reason?: string | undefined;
|
|
109
201
|
}
|
|
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
202
|
export interface RunCommandsResponseObserve {
|
|
122
203
|
additions?: number | undefined;
|
|
123
204
|
base?: string | undefined;
|
|
@@ -143,6 +224,8 @@ export interface CommandResultCase0 {
|
|
|
143
224
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
144
225
|
effect: CommandResultCase0Effect;
|
|
145
226
|
error?: CommandErrorInfo | undefined;
|
|
227
|
+
/** The page was still loading when the command returned. */
|
|
228
|
+
loading?: boolean | undefined;
|
|
146
229
|
ok: boolean;
|
|
147
230
|
url?: string | undefined;
|
|
148
231
|
}
|
|
@@ -155,6 +238,8 @@ export interface CommandResultCase1 {
|
|
|
155
238
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
156
239
|
effect: CommandResultCase1Effect;
|
|
157
240
|
error?: CommandErrorInfo | undefined;
|
|
241
|
+
/** The page was still loading when the command returned. */
|
|
242
|
+
loading?: boolean | undefined;
|
|
158
243
|
/** False when there was no history entry. */
|
|
159
244
|
navigated?: boolean | undefined;
|
|
160
245
|
ok: boolean;
|
|
@@ -169,6 +254,8 @@ export interface CommandResultCase2 {
|
|
|
169
254
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
170
255
|
effect: CommandResultCase2Effect;
|
|
171
256
|
error?: CommandErrorInfo | undefined;
|
|
257
|
+
/** The page was still loading when the command returned. */
|
|
258
|
+
loading?: boolean | undefined;
|
|
172
259
|
/** False when there was no history entry. */
|
|
173
260
|
navigated?: boolean | undefined;
|
|
174
261
|
ok: boolean;
|
|
@@ -183,6 +270,8 @@ export interface CommandResultCase3 {
|
|
|
183
270
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
184
271
|
effect: CommandResultCase3Effect;
|
|
185
272
|
error?: CommandErrorInfo | undefined;
|
|
273
|
+
/** The page was still loading when the command returned. */
|
|
274
|
+
loading?: boolean | undefined;
|
|
186
275
|
ok: boolean;
|
|
187
276
|
url?: string | undefined;
|
|
188
277
|
}
|
|
@@ -202,6 +291,8 @@ export interface CommandResultCase4 {
|
|
|
202
291
|
export type CommandResultCase5Command = "click";
|
|
203
292
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
204
293
|
export type CommandResultCase5Effect = "none" | "applied" | "unknown";
|
|
294
|
+
/** The ids of tabs that opened while the command ran. */
|
|
295
|
+
export type CommandResultCase5OpenedList = Array<string>;
|
|
205
296
|
/** Result of a click command. */
|
|
206
297
|
export interface CommandResultCase5 {
|
|
207
298
|
command: CommandResultCase5Command;
|
|
@@ -210,14 +301,16 @@ export interface CommandResultCase5 {
|
|
|
210
301
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
211
302
|
effect: CommandResultCase5Effect;
|
|
212
303
|
error?: CommandErrorInfo | undefined;
|
|
213
|
-
/** The
|
|
304
|
+
/** The page was still loading when the command returned. */
|
|
214
305
|
loading?: boolean | undefined;
|
|
215
306
|
ok: boolean;
|
|
307
|
+
/** The ids of tabs that opened while the command ran. */
|
|
308
|
+
opened?: CommandResultCase5OpenedList | undefined;
|
|
216
309
|
}
|
|
217
|
-
export type CommandResultCase6Command = "
|
|
310
|
+
export type CommandResultCase6Command = "hover";
|
|
218
311
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
219
312
|
export type CommandResultCase6Effect = "none" | "applied" | "unknown";
|
|
220
|
-
/** Result of a
|
|
313
|
+
/** Result of a hover command. */
|
|
221
314
|
export interface CommandResultCase6 {
|
|
222
315
|
command: CommandResultCase6Command;
|
|
223
316
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
@@ -225,38 +318,44 @@ export interface CommandResultCase6 {
|
|
|
225
318
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
226
319
|
effect: CommandResultCase6Effect;
|
|
227
320
|
error?: CommandErrorInfo | undefined;
|
|
228
|
-
/** The command started a navigation that was still loading when it returned. */
|
|
229
|
-
loading?: boolean | undefined;
|
|
230
321
|
ok: boolean;
|
|
231
322
|
}
|
|
232
|
-
export type CommandResultCase7Command = "
|
|
323
|
+
export type CommandResultCase7Command = "focus";
|
|
233
324
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
234
325
|
export type CommandResultCase7Effect = "none" | "applied" | "unknown";
|
|
235
|
-
/** Result of a
|
|
326
|
+
/** Result of a focus command. */
|
|
236
327
|
export interface CommandResultCase7 {
|
|
237
328
|
command: CommandResultCase7Command;
|
|
238
|
-
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
239
|
-
dialog?: CommandDialog | undefined;
|
|
240
329
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
241
330
|
effect: CommandResultCase7Effect;
|
|
242
331
|
error?: CommandErrorInfo | undefined;
|
|
243
332
|
ok: boolean;
|
|
244
333
|
}
|
|
245
|
-
export type CommandResultCase8Command = "
|
|
334
|
+
export type CommandResultCase8Command = "type";
|
|
246
335
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
247
336
|
export type CommandResultCase8Effect = "none" | "applied" | "unknown";
|
|
248
|
-
/**
|
|
337
|
+
/** The ids of tabs that opened while the command ran. */
|
|
338
|
+
export type CommandResultCase8OpenedList = Array<string>;
|
|
339
|
+
/** Result of a type command. */
|
|
249
340
|
export interface CommandResultCase8 {
|
|
250
341
|
command: CommandResultCase8Command;
|
|
342
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
343
|
+
dialog?: CommandDialog | undefined;
|
|
251
344
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
252
345
|
effect: CommandResultCase8Effect;
|
|
253
346
|
error?: CommandErrorInfo | undefined;
|
|
347
|
+
/** The page was still loading when the command returned. */
|
|
348
|
+
loading?: boolean | undefined;
|
|
254
349
|
ok: boolean;
|
|
350
|
+
/** The ids of tabs that opened while the command ran. */
|
|
351
|
+
opened?: CommandResultCase8OpenedList | undefined;
|
|
255
352
|
}
|
|
256
|
-
export type CommandResultCase9Command = "
|
|
353
|
+
export type CommandResultCase9Command = "fill";
|
|
257
354
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
258
355
|
export type CommandResultCase9Effect = "none" | "applied" | "unknown";
|
|
259
|
-
/**
|
|
356
|
+
/** The ids of tabs that opened while the command ran. */
|
|
357
|
+
export type CommandResultCase9OpenedList = Array<string>;
|
|
358
|
+
/** Result of a fill command. */
|
|
260
359
|
export interface CommandResultCase9 {
|
|
261
360
|
command: CommandResultCase9Command;
|
|
262
361
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
@@ -264,29 +363,39 @@ export interface CommandResultCase9 {
|
|
|
264
363
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
265
364
|
effect: CommandResultCase9Effect;
|
|
266
365
|
error?: CommandErrorInfo | undefined;
|
|
267
|
-
/** The
|
|
366
|
+
/** The page was still loading when the command returned. */
|
|
268
367
|
loading?: boolean | undefined;
|
|
269
368
|
ok: boolean;
|
|
369
|
+
/** The ids of tabs that opened while the command ran. */
|
|
370
|
+
opened?: CommandResultCase9OpenedList | undefined;
|
|
270
371
|
}
|
|
271
|
-
export type CommandResultCase10Command = "
|
|
372
|
+
export type CommandResultCase10Command = "press";
|
|
272
373
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
273
374
|
export type CommandResultCase10Effect = "none" | "applied" | "unknown";
|
|
274
|
-
/**
|
|
375
|
+
/** The ids of tabs that opened while the command ran. */
|
|
376
|
+
export type CommandResultCase10OpenedList = Array<string>;
|
|
377
|
+
/** Result of a press command. */
|
|
275
378
|
export interface CommandResultCase10 {
|
|
379
|
+
/** The id of the dialog that the key answered. Absent when the key went to the page. */
|
|
380
|
+
answered?: string | undefined;
|
|
276
381
|
command: CommandResultCase10Command;
|
|
277
382
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
278
383
|
dialog?: CommandDialog | undefined;
|
|
279
384
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
280
385
|
effect: CommandResultCase10Effect;
|
|
281
386
|
error?: CommandErrorInfo | undefined;
|
|
282
|
-
/** The
|
|
387
|
+
/** The page was still loading when the command returned. */
|
|
283
388
|
loading?: boolean | undefined;
|
|
284
389
|
ok: boolean;
|
|
390
|
+
/** The ids of tabs that opened while the command ran. */
|
|
391
|
+
opened?: CommandResultCase10OpenedList | undefined;
|
|
285
392
|
}
|
|
286
|
-
export type CommandResultCase11Command = "
|
|
393
|
+
export type CommandResultCase11Command = "keyboard";
|
|
287
394
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
288
395
|
export type CommandResultCase11Effect = "none" | "applied" | "unknown";
|
|
289
|
-
/**
|
|
396
|
+
/** The ids of tabs that opened while the command ran. */
|
|
397
|
+
export type CommandResultCase11OpenedList = Array<string>;
|
|
398
|
+
/** Result of a keyboard command. */
|
|
290
399
|
export interface CommandResultCase11 {
|
|
291
400
|
command: CommandResultCase11Command;
|
|
292
401
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
@@ -294,14 +403,18 @@ export interface CommandResultCase11 {
|
|
|
294
403
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
295
404
|
effect: CommandResultCase11Effect;
|
|
296
405
|
error?: CommandErrorInfo | undefined;
|
|
297
|
-
/** The
|
|
406
|
+
/** The page was still loading when the command returned. */
|
|
298
407
|
loading?: boolean | undefined;
|
|
299
408
|
ok: boolean;
|
|
409
|
+
/** The ids of tabs that opened while the command ran. */
|
|
410
|
+
opened?: CommandResultCase11OpenedList | undefined;
|
|
300
411
|
}
|
|
301
|
-
export type CommandResultCase12Command = "
|
|
412
|
+
export type CommandResultCase12Command = "mouse";
|
|
302
413
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
303
414
|
export type CommandResultCase12Effect = "none" | "applied" | "unknown";
|
|
304
|
-
/**
|
|
415
|
+
/** The ids of tabs that opened while the command ran. */
|
|
416
|
+
export type CommandResultCase12OpenedList = Array<string>;
|
|
417
|
+
/** Result of a mouse command. */
|
|
305
418
|
export interface CommandResultCase12 {
|
|
306
419
|
command: CommandResultCase12Command;
|
|
307
420
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
@@ -309,29 +422,47 @@ export interface CommandResultCase12 {
|
|
|
309
422
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
310
423
|
effect: CommandResultCase12Effect;
|
|
311
424
|
error?: CommandErrorInfo | undefined;
|
|
312
|
-
/** The
|
|
425
|
+
/** The page was still loading when the command returned. */
|
|
313
426
|
loading?: boolean | undefined;
|
|
314
427
|
ok: boolean;
|
|
428
|
+
/** The ids of tabs that opened while the command ran. */
|
|
429
|
+
opened?: CommandResultCase12OpenedList | undefined;
|
|
315
430
|
}
|
|
316
|
-
|
|
431
|
+
/** The mouse button that was let go. */
|
|
432
|
+
export type CommandResultCase13Button = "left" | "right" | "middle";
|
|
433
|
+
export type CommandResultCase13Command = "release";
|
|
317
434
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
318
435
|
export type CommandResultCase13Effect = "none" | "applied" | "unknown";
|
|
319
|
-
/**
|
|
436
|
+
/** The keys that were let go. */
|
|
437
|
+
export type CommandResultCase13KeysList = Array<string>;
|
|
438
|
+
/** The ids of tabs that opened while the command ran. */
|
|
439
|
+
export type CommandResultCase13OpenedList = Array<string>;
|
|
440
|
+
/** Result of a release command. */
|
|
320
441
|
export interface CommandResultCase13 {
|
|
442
|
+
/** The mouse button that was let go. */
|
|
443
|
+
button?: CommandResultCase13Button | undefined;
|
|
321
444
|
command: CommandResultCase13Command;
|
|
322
445
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
323
446
|
dialog?: CommandDialog | undefined;
|
|
324
447
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
325
448
|
effect: CommandResultCase13Effect;
|
|
326
449
|
error?: CommandErrorInfo | undefined;
|
|
327
|
-
/** The
|
|
450
|
+
/** The keys that were let go. */
|
|
451
|
+
keys?: CommandResultCase13KeysList | undefined;
|
|
452
|
+
/** The page was still loading when the command returned. */
|
|
328
453
|
loading?: boolean | undefined;
|
|
329
454
|
ok: boolean;
|
|
455
|
+
/** The ids of tabs that opened while the command ran. */
|
|
456
|
+
opened?: CommandResultCase13OpenedList | undefined;
|
|
330
457
|
}
|
|
331
|
-
export type CommandResultCase14Command = "
|
|
458
|
+
export type CommandResultCase14Command = "select";
|
|
332
459
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
333
460
|
export type CommandResultCase14Effect = "none" | "applied" | "unknown";
|
|
334
|
-
/**
|
|
461
|
+
/** The ids of tabs that opened while the command ran. */
|
|
462
|
+
export type CommandResultCase14OpenedList = Array<string>;
|
|
463
|
+
/** The values of the selected options. */
|
|
464
|
+
export type CommandResultCase14SelectedList = Array<string>;
|
|
465
|
+
/** Result of a select command. */
|
|
335
466
|
export interface CommandResultCase14 {
|
|
336
467
|
command: CommandResultCase14Command;
|
|
337
468
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
@@ -339,33 +470,40 @@ export interface CommandResultCase14 {
|
|
|
339
470
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
340
471
|
effect: CommandResultCase14Effect;
|
|
341
472
|
error?: CommandErrorInfo | undefined;
|
|
342
|
-
/** The
|
|
473
|
+
/** The page was still loading when the command returned. */
|
|
343
474
|
loading?: boolean | undefined;
|
|
344
475
|
ok: boolean;
|
|
476
|
+
/** The ids of tabs that opened while the command ran. */
|
|
477
|
+
opened?: CommandResultCase14OpenedList | undefined;
|
|
478
|
+
/** The values of the selected options. */
|
|
479
|
+
selected?: CommandResultCase14SelectedList | undefined;
|
|
345
480
|
}
|
|
346
|
-
export type CommandResultCase15Command = "
|
|
481
|
+
export type CommandResultCase15Command = "check";
|
|
347
482
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
348
483
|
export type CommandResultCase15Effect = "none" | "applied" | "unknown";
|
|
349
|
-
/** The
|
|
350
|
-
export type
|
|
351
|
-
/** Result of a
|
|
484
|
+
/** The ids of tabs that opened while the command ran. */
|
|
485
|
+
export type CommandResultCase15OpenedList = Array<string>;
|
|
486
|
+
/** Result of a check command. */
|
|
352
487
|
export interface CommandResultCase15 {
|
|
488
|
+
checked?: boolean | undefined;
|
|
353
489
|
command: CommandResultCase15Command;
|
|
354
490
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
355
491
|
dialog?: CommandDialog | undefined;
|
|
356
492
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
357
493
|
effect: CommandResultCase15Effect;
|
|
358
494
|
error?: CommandErrorInfo | undefined;
|
|
359
|
-
/** The
|
|
495
|
+
/** The page was still loading when the command returned. */
|
|
360
496
|
loading?: boolean | undefined;
|
|
361
497
|
ok: boolean;
|
|
362
|
-
/** The
|
|
363
|
-
|
|
498
|
+
/** The ids of tabs that opened while the command ran. */
|
|
499
|
+
opened?: CommandResultCase15OpenedList | undefined;
|
|
364
500
|
}
|
|
365
|
-
export type CommandResultCase16Command = "
|
|
501
|
+
export type CommandResultCase16Command = "uncheck";
|
|
366
502
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
367
503
|
export type CommandResultCase16Effect = "none" | "applied" | "unknown";
|
|
368
|
-
/**
|
|
504
|
+
/** The ids of tabs that opened while the command ran. */
|
|
505
|
+
export type CommandResultCase16OpenedList = Array<string>;
|
|
506
|
+
/** Result of a uncheck command. */
|
|
369
507
|
export interface CommandResultCase16 {
|
|
370
508
|
checked?: boolean | undefined;
|
|
371
509
|
command: CommandResultCase16Command;
|
|
@@ -374,31 +512,39 @@ export interface CommandResultCase16 {
|
|
|
374
512
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
375
513
|
effect: CommandResultCase16Effect;
|
|
376
514
|
error?: CommandErrorInfo | undefined;
|
|
377
|
-
/** The
|
|
515
|
+
/** The page was still loading when the command returned. */
|
|
378
516
|
loading?: boolean | undefined;
|
|
379
517
|
ok: boolean;
|
|
518
|
+
/** The ids of tabs that opened while the command ran. */
|
|
519
|
+
opened?: CommandResultCase16OpenedList | undefined;
|
|
380
520
|
}
|
|
381
|
-
export type CommandResultCase17Command = "
|
|
521
|
+
export type CommandResultCase17Command = "upload";
|
|
382
522
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
383
523
|
export type CommandResultCase17Effect = "none" | "applied" | "unknown";
|
|
384
|
-
|
|
524
|
+
export type CommandResultCase17FilesList = Array<string>;
|
|
525
|
+
/** The ids of tabs that opened while the command ran. */
|
|
526
|
+
export type CommandResultCase17OpenedList = Array<string>;
|
|
527
|
+
/** Result of a upload command. */
|
|
385
528
|
export interface CommandResultCase17 {
|
|
386
|
-
checked?: boolean | undefined;
|
|
387
529
|
command: CommandResultCase17Command;
|
|
388
530
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
389
531
|
dialog?: CommandDialog | undefined;
|
|
390
532
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
391
533
|
effect: CommandResultCase17Effect;
|
|
392
534
|
error?: CommandErrorInfo | undefined;
|
|
393
|
-
|
|
535
|
+
files?: CommandResultCase17FilesList | undefined;
|
|
536
|
+
/** The page was still loading when the command returned. */
|
|
394
537
|
loading?: boolean | undefined;
|
|
395
538
|
ok: boolean;
|
|
539
|
+
/** The ids of tabs that opened while the command ran. */
|
|
540
|
+
opened?: CommandResultCase17OpenedList | undefined;
|
|
396
541
|
}
|
|
397
|
-
export type CommandResultCase18Command = "
|
|
542
|
+
export type CommandResultCase18Command = "drag";
|
|
398
543
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
399
544
|
export type CommandResultCase18Effect = "none" | "applied" | "unknown";
|
|
400
|
-
|
|
401
|
-
|
|
545
|
+
/** The ids of tabs that opened while the command ran. */
|
|
546
|
+
export type CommandResultCase18OpenedList = Array<string>;
|
|
547
|
+
/** Result of a drag command. */
|
|
402
548
|
export interface CommandResultCase18 {
|
|
403
549
|
command: CommandResultCase18Command;
|
|
404
550
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
@@ -406,192 +552,241 @@ export interface CommandResultCase18 {
|
|
|
406
552
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
407
553
|
effect: CommandResultCase18Effect;
|
|
408
554
|
error?: CommandErrorInfo | undefined;
|
|
409
|
-
|
|
410
|
-
/** The command started a navigation that was still loading when it returned. */
|
|
555
|
+
/** The page was still loading when the command returned. */
|
|
411
556
|
loading?: boolean | undefined;
|
|
412
557
|
ok: boolean;
|
|
558
|
+
/** The ids of tabs that opened while the command ran. */
|
|
559
|
+
opened?: CommandResultCase18OpenedList | undefined;
|
|
413
560
|
}
|
|
414
|
-
export type CommandResultCase19Command = "
|
|
561
|
+
export type CommandResultCase19Command = "get";
|
|
415
562
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
416
563
|
export type CommandResultCase19Effect = "none" | "applied" | "unknown";
|
|
417
|
-
/**
|
|
564
|
+
/** What was read. It tells the type of value. */
|
|
565
|
+
export type CommandResultCase19What = "text" | "html" | "markdown" | "value" | "attr" | "title" | "url" | "count" | "box" | "locator";
|
|
566
|
+
/** Result of a get command. */
|
|
418
567
|
export interface CommandResultCase19 {
|
|
419
568
|
command: CommandResultCase19Command;
|
|
420
|
-
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
421
|
-
dialog?: CommandDialog | undefined;
|
|
422
569
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
423
570
|
effect: CommandResultCase19Effect;
|
|
424
571
|
error?: CommandErrorInfo | undefined;
|
|
425
|
-
/** The
|
|
426
|
-
|
|
572
|
+
/** The value is a secret, so it is left out. */
|
|
573
|
+
masked?: boolean | undefined;
|
|
427
574
|
ok: boolean;
|
|
575
|
+
/** 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. */
|
|
576
|
+
value?: unknown | undefined;
|
|
577
|
+
/** What was read. It tells the type of value. */
|
|
578
|
+
what?: CommandResultCase19What | undefined;
|
|
428
579
|
}
|
|
429
|
-
export type CommandResultCase20Command = "
|
|
580
|
+
export type CommandResultCase20Command = "is";
|
|
430
581
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
431
582
|
export type CommandResultCase20Effect = "none" | "applied" | "unknown";
|
|
432
|
-
/** Result of a
|
|
583
|
+
/** Result of a is command. */
|
|
433
584
|
export interface CommandResultCase20 {
|
|
434
585
|
command: CommandResultCase20Command;
|
|
435
586
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
436
587
|
effect: CommandResultCase20Effect;
|
|
437
588
|
error?: CommandErrorInfo | undefined;
|
|
438
|
-
/** The value is a secret, so it is left out. */
|
|
439
|
-
masked?: boolean | undefined;
|
|
440
589
|
ok: boolean;
|
|
441
|
-
|
|
442
|
-
value?: unknown | undefined;
|
|
590
|
+
value?: boolean | undefined;
|
|
443
591
|
}
|
|
444
|
-
export type CommandResultCase21Command = "
|
|
592
|
+
export type CommandResultCase21Command = "wait";
|
|
445
593
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
446
594
|
export type CommandResultCase21Effect = "none" | "applied" | "unknown";
|
|
447
|
-
|
|
595
|
+
export type CommandResultCase21Waited = "ms" | "target" | "text" | "url" | "load" | "download";
|
|
596
|
+
/** Result of a wait command. */
|
|
448
597
|
export interface CommandResultCase21 {
|
|
598
|
+
bytes?: number | undefined;
|
|
449
599
|
command: CommandResultCase21Command;
|
|
450
600
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
451
601
|
effect: CommandResultCase21Effect;
|
|
452
602
|
error?: CommandErrorInfo | undefined;
|
|
603
|
+
/** The downloaded file, for download. */
|
|
604
|
+
file?: string | undefined;
|
|
453
605
|
ok: boolean;
|
|
454
|
-
|
|
606
|
+
waited?: CommandResultCase21Waited | undefined;
|
|
455
607
|
}
|
|
456
|
-
export type CommandResultCase22Command = "
|
|
608
|
+
export type CommandResultCase22Command = "screenshot";
|
|
457
609
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
458
610
|
export type CommandResultCase22Effect = "none" | "applied" | "unknown";
|
|
459
|
-
export type
|
|
460
|
-
/** Result of a
|
|
611
|
+
export type CommandResultCase22Format = "png" | "jpeg" | "webp";
|
|
612
|
+
/** Result of a screenshot command. */
|
|
461
613
|
export interface CommandResultCase22 {
|
|
462
|
-
bytes?: number | undefined;
|
|
463
614
|
command: CommandResultCase22Command;
|
|
615
|
+
data?: string | undefined;
|
|
464
616
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
465
617
|
effect: CommandResultCase22Effect;
|
|
466
618
|
error?: CommandErrorInfo | undefined;
|
|
467
|
-
|
|
468
|
-
file?: string | undefined;
|
|
619
|
+
format?: CommandResultCase22Format | undefined;
|
|
469
620
|
ok: boolean;
|
|
470
|
-
waited?: CommandResultCase22Waited | undefined;
|
|
471
621
|
}
|
|
472
|
-
export type CommandResultCase23Command = "
|
|
622
|
+
export type CommandResultCase23Command = "eval";
|
|
473
623
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
474
624
|
export type CommandResultCase23Effect = "none" | "applied" | "unknown";
|
|
475
|
-
|
|
476
|
-
|
|
625
|
+
/** The ids of tabs that opened while the command ran. */
|
|
626
|
+
export type CommandResultCase23OpenedList = Array<string>;
|
|
627
|
+
/** Result of a eval command. */
|
|
477
628
|
export interface CommandResultCase23 {
|
|
478
629
|
command: CommandResultCase23Command;
|
|
479
|
-
|
|
630
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
631
|
+
dialog?: CommandDialog | undefined;
|
|
480
632
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
481
633
|
effect: CommandResultCase23Effect;
|
|
482
634
|
error?: CommandErrorInfo | undefined;
|
|
483
|
-
|
|
635
|
+
/** The page was still loading when the command returned. */
|
|
636
|
+
loading?: boolean | undefined;
|
|
484
637
|
ok: boolean;
|
|
638
|
+
/** The ids of tabs that opened while the command ran. */
|
|
639
|
+
opened?: CommandResultCase23OpenedList | undefined;
|
|
640
|
+
/** The result of the script as JSON. */
|
|
641
|
+
value?: unknown | undefined;
|
|
485
642
|
}
|
|
486
|
-
export type CommandResultCase24Command = "
|
|
643
|
+
export type CommandResultCase24Command = "pdf";
|
|
487
644
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
488
645
|
export type CommandResultCase24Effect = "none" | "applied" | "unknown";
|
|
489
|
-
|
|
646
|
+
export type CommandResultCase24Format = "pdf";
|
|
647
|
+
/** Result of a pdf command. */
|
|
490
648
|
export interface CommandResultCase24 {
|
|
491
649
|
command: CommandResultCase24Command;
|
|
492
|
-
|
|
493
|
-
dialog?: CommandDialog | undefined;
|
|
650
|
+
data?: string | undefined;
|
|
494
651
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
495
652
|
effect: CommandResultCase24Effect;
|
|
496
653
|
error?: CommandErrorInfo | undefined;
|
|
497
|
-
|
|
498
|
-
loading?: boolean | undefined;
|
|
654
|
+
format?: CommandResultCase24Format | undefined;
|
|
499
655
|
ok: boolean;
|
|
500
|
-
/** The result of the script as JSON. */
|
|
501
|
-
value?: unknown | undefined;
|
|
502
656
|
}
|
|
503
|
-
export type CommandResultCase25Command = "
|
|
657
|
+
export type CommandResultCase25Command = "scroll";
|
|
504
658
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
505
659
|
export type CommandResultCase25Effect = "none" | "applied" | "unknown";
|
|
506
|
-
|
|
507
|
-
/** Result of a pdf command. */
|
|
660
|
+
/** Result of a scroll command. */
|
|
508
661
|
export interface CommandResultCase25 {
|
|
509
662
|
command: CommandResultCase25Command;
|
|
510
|
-
data?: string | undefined;
|
|
511
663
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
512
664
|
effect: CommandResultCase25Effect;
|
|
513
665
|
error?: CommandErrorInfo | undefined;
|
|
514
|
-
|
|
666
|
+
moved?: boolean | undefined;
|
|
515
667
|
ok: boolean;
|
|
668
|
+
x?: number | undefined;
|
|
669
|
+
y?: number | undefined;
|
|
516
670
|
}
|
|
517
|
-
export type CommandResultCase26Command = "
|
|
671
|
+
export type CommandResultCase26Command = "find";
|
|
518
672
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
519
673
|
export type CommandResultCase26Effect = "none" | "applied" | "unknown";
|
|
520
|
-
|
|
674
|
+
export interface CommandResultCase26MatchesItem {
|
|
675
|
+
name: string;
|
|
676
|
+
ref: string;
|
|
677
|
+
role: string;
|
|
678
|
+
}
|
|
679
|
+
export type CommandResultCase26MatchesList = Array<CommandResultCase26MatchesItem>;
|
|
680
|
+
/** Result of a find command. */
|
|
521
681
|
export interface CommandResultCase26 {
|
|
522
682
|
command: CommandResultCase26Command;
|
|
683
|
+
count?: number | undefined;
|
|
523
684
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
524
685
|
effect: CommandResultCase26Effect;
|
|
525
686
|
error?: CommandErrorInfo | undefined;
|
|
526
|
-
|
|
687
|
+
matches?: CommandResultCase26MatchesList | undefined;
|
|
527
688
|
ok: boolean;
|
|
528
|
-
x?: number | undefined;
|
|
529
|
-
y?: number | undefined;
|
|
530
689
|
}
|
|
531
|
-
export type CommandResultCase27Command = "
|
|
690
|
+
export type CommandResultCase27Command = "tab";
|
|
532
691
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
533
692
|
export type CommandResultCase27Effect = "none" | "applied" | "unknown";
|
|
534
|
-
export
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
role: string;
|
|
538
|
-
}
|
|
539
|
-
export type CommandResultCase27MatchesList = Array<CommandResultCase27MatchesItem>;
|
|
540
|
-
/** Result of a find command. */
|
|
693
|
+
export type CommandResultCase27TabsItem = RunCommandsResponsePage;
|
|
694
|
+
export type CommandResultCase27TabsList = Array<RunCommandsResponsePage>;
|
|
695
|
+
/** Result of a tab command. */
|
|
541
696
|
export interface CommandResultCase27 {
|
|
542
697
|
command: CommandResultCase27Command;
|
|
543
|
-
count?: number | undefined;
|
|
544
698
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
545
699
|
effect: CommandResultCase27Effect;
|
|
546
700
|
error?: CommandErrorInfo | undefined;
|
|
547
|
-
|
|
701
|
+
/** The page was still loading when the command returned. */
|
|
702
|
+
loading?: boolean | undefined;
|
|
548
703
|
ok: boolean;
|
|
704
|
+
tab?: string | undefined;
|
|
705
|
+
tabs?: CommandResultCase27TabsList | undefined;
|
|
549
706
|
}
|
|
550
|
-
export type CommandResultCase28Command = "
|
|
707
|
+
export type CommandResultCase28Command = "dialog";
|
|
551
708
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
552
709
|
export type CommandResultCase28Effect = "none" | "applied" | "unknown";
|
|
553
|
-
|
|
554
|
-
export type
|
|
555
|
-
/** Result of a
|
|
710
|
+
/** The ids of tabs that opened while the command ran. */
|
|
711
|
+
export type CommandResultCase28OpenedList = Array<string>;
|
|
712
|
+
/** Result of a dialog command. */
|
|
556
713
|
export interface CommandResultCase28 {
|
|
557
714
|
command: CommandResultCase28Command;
|
|
715
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
716
|
+
dialog?: CommandDialog | undefined;
|
|
558
717
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
559
718
|
effect: CommandResultCase28Effect;
|
|
560
719
|
error?: CommandErrorInfo | undefined;
|
|
720
|
+
/** The page was still loading when the command returned. */
|
|
721
|
+
loading?: boolean | undefined;
|
|
561
722
|
ok: boolean;
|
|
562
|
-
|
|
563
|
-
|
|
723
|
+
/** The ids of tabs that opened while the command ran. */
|
|
724
|
+
opened?: CommandResultCase28OpenedList | undefined;
|
|
564
725
|
}
|
|
565
726
|
/** Result of one command, with the fields of that command. */
|
|
566
727
|
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
728
|
export type RunCommandsResponseResultsList = Array<CommandResult>;
|
|
729
|
+
export type RunCommandsResponseState = "running" | "completed" | "failed" | "cancelled" | "timeout";
|
|
568
730
|
export interface RunCommandsResponse {
|
|
569
731
|
bodyExpired?: boolean | undefined;
|
|
570
732
|
/** A dialog that is open on the tab and blocks it until it closes. */
|
|
571
733
|
dialog?: CommandDialog | undefined;
|
|
734
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
735
|
+
effect: RunCommandsResponseEffect;
|
|
572
736
|
/** 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
737
|
epochChanged?: boolean | undefined;
|
|
574
|
-
|
|
575
|
-
|
|
738
|
+
/** Tabs with keys or a mouse button still held down. Left out when nothing is held. */
|
|
739
|
+
held?: RunCommandsResponseHeldList | undefined;
|
|
740
|
+
/** The id of this execution. Use it to get or cancel the execution. */
|
|
576
741
|
id: string;
|
|
577
742
|
/** Send it as after in the next request. */
|
|
578
743
|
next?: string | undefined;
|
|
579
744
|
observe?: RunCommandsResponseObserve | undefined;
|
|
580
745
|
/** The tab the execution used. */
|
|
581
746
|
page: RunCommandsResponsePage | null;
|
|
747
|
+
/** Commands started. */
|
|
748
|
+
ran: number;
|
|
749
|
+
/** This is the stored result of an earlier request. Nothing ran again. */
|
|
750
|
+
replayed: boolean;
|
|
582
751
|
results: RunCommandsResponseResultsList;
|
|
752
|
+
state: RunCommandsResponseState;
|
|
753
|
+
/** Why the execution stopped early, such as a cancel, a timeout, or a browser restart. A failed command has its error in results instead. */
|
|
754
|
+
stopped?: CommandErrorInfo | undefined;
|
|
583
755
|
}
|
|
584
756
|
/** PEM-encoded root CA certificates to trust in this session. THIS IS CURRENTLY AN EXPERIMENTAL FEATURE. */
|
|
585
757
|
export type CreateSessionRequestCaCertificatesList = Array<string>;
|
|
758
|
+
export type CreateSessionRequestCredentialsBindingsItemCase1AllowedOriginsList = Array<string>;
|
|
759
|
+
export interface CreateSessionRequestCredentialsBindingsItemCase1 {
|
|
760
|
+
allowedOrigins: CreateSessionRequestCredentialsBindingsItemCase1AllowedOriginsList;
|
|
761
|
+
reference: string;
|
|
762
|
+
}
|
|
763
|
+
export type CreateSessionRequestCredentialsBindingsItem = string | CreateSessionRequestCredentialsBindingsItemCase1;
|
|
764
|
+
/** At most 100 bindings. KV references may use { reference, allowedOrigins }, with at most 20 canonical HTTP(S) origins; omitted or empty origins match nothing. */
|
|
765
|
+
export type CreateSessionRequestCredentialsBindingsList = Array<CreateSessionRequestCredentialsBindingsItem>;
|
|
766
|
+
/** Bind the session to these credentials (ids of Secrets of kind `credential` in the session's project). A bound session only ever fills these, never others by namespace and origin. Implies `lookup: "explicit"`. Change them later with /v1/sessions/{id}/credentials. Errors: 400 `credential_not_bindable` (param `credentials.credentialIds`), 400 `too_many_credentials`, 409 `session_id_taken` (a custom sessionId that already has a session or credential bindings). */
|
|
767
|
+
export type CreateSessionRequestCredentialsCredentialIdsList = Array<string>;
|
|
768
|
+
/** `implicit` (default without credentialIds or bindings): fill credentials stored for the session's namespace and the page origin. `explicit` (default when credentialIds or bindings is supplied): fill only direct credentials and credentials in bound Vaults, including future members; with none bound, nothing is filled until some are attached. */
|
|
769
|
+
export type CreateSessionRequestCredentialsLookup = "implicit" | "explicit";
|
|
586
770
|
/** Optional allowlist of credential origins to inject into this session. */
|
|
587
771
|
export type CreateSessionRequestCredentialsOriginsList = Array<string>;
|
|
588
|
-
/** Configuration for session credentials */
|
|
772
|
+
/** Configuration for session credentials. Set enabled to false to disable credentials, including those inherited from a profile. Credentials are opt-in at creation; only credentials-enabled sessions can have credentials attached later (otherwise 409 `credentials_not_enabled`). */
|
|
589
773
|
export interface CreateSessionRequestCredentials {
|
|
590
774
|
autoSubmit?: boolean | undefined;
|
|
775
|
+
/** At most 100 bindings. KV references may use { reference, allowedOrigins }, with at most 20 canonical HTTP(S) origins; omitted or empty origins match nothing. */
|
|
776
|
+
bindings?: CreateSessionRequestCredentialsBindingsList | undefined;
|
|
591
777
|
blurFields?: boolean | undefined;
|
|
778
|
+
/** Bind the session to these credentials (ids of Secrets of kind `credential` in the session's project). A bound session only ever fills these, never others by namespace and origin. Implies `lookup: "explicit"`. Change them later with /v1/sessions/{id}/credentials. Errors: 400 `credential_not_bindable` (param `credentials.credentialIds`), 400 `too_many_credentials`, 409 `session_id_taken` (a custom sessionId that already has a session or credential bindings). */
|
|
779
|
+
credentialIds?: CreateSessionRequestCredentialsCredentialIdsList | undefined;
|
|
592
780
|
/** Credential provider to use for runtime credential resolution. Defaults to "steel". */
|
|
593
781
|
credentialProvider?: string | undefined;
|
|
782
|
+
/** Allow any script on the page, including third-party scripts, to request credential form operations through DOM events. Disabled by default. */
|
|
783
|
+
domTrigger?: boolean | undefined;
|
|
784
|
+
/** Set to false to disable credential injection for this session. */
|
|
785
|
+
enabled?: boolean | undefined;
|
|
786
|
+
/** Deprecated and ignored: credentials only ever match their own origin or their additionalOrigins. */
|
|
594
787
|
exactOrigin?: boolean | undefined;
|
|
788
|
+
/** `implicit` (default without credentialIds or bindings): fill credentials stored for the session's namespace and the page origin. `explicit` (default when credentialIds or bindings is supplied): fill only direct credentials and credentials in bound Vaults, including future members; with none bound, nothing is filled until some are attached. */
|
|
789
|
+
lookup?: CreateSessionRequestCredentialsLookup | (string & {}) | undefined;
|
|
595
790
|
/** Optional allowlist of credential origins to inject into this session. */
|
|
596
791
|
origins?: CreateSessionRequestCredentialsOriginsList | undefined;
|
|
597
792
|
}
|
|
@@ -785,13 +980,13 @@ export type CreateSessionRequestUseProxyCase0Case1 = CreateSessionRequestUseProx
|
|
|
785
980
|
export type CreateSessionRequestUseProxyCase0 = boolean | CreateSessionRequestUseProxyCase0Case1;
|
|
786
981
|
export type CreateSessionRequestUseProxy = CreateSessionRequestUseProxyCase0 | unknown;
|
|
787
982
|
export interface CreateSessionRequest {
|
|
788
|
-
/** Block ads in the browser session. Default is
|
|
983
|
+
/** Block ads in the browser session. Default is true. */
|
|
789
984
|
blockAds?: boolean | undefined;
|
|
790
985
|
/** PEM-encoded root CA certificates to trust in this session. THIS IS CURRENTLY AN EXPERIMENTAL FEATURE. */
|
|
791
986
|
caCertificates?: CreateSessionRequestCaCertificatesList | undefined;
|
|
792
987
|
/** Number of sessions to create concurrently (check your plan limit) */
|
|
793
988
|
concurrency?: number | undefined;
|
|
794
|
-
/** Configuration for session credentials */
|
|
989
|
+
/** Configuration for session credentials. Set enabled to false to disable credentials, including those inherited from a profile. Credentials are opt-in at creation; only credentials-enabled sessions can have credentials attached later (otherwise 409 `credentials_not_enabled`). */
|
|
795
990
|
credentials?: CreateSessionRequestCredentials | undefined;
|
|
796
991
|
/** Configuration for the debug URL and session viewer. Controls interaction capabilities, cursor visibility, and other debug-related settings. */
|
|
797
992
|
debugConfig?: CreateSessionRequestDebugConfig | undefined;
|
|
@@ -823,7 +1018,7 @@ export interface CreateSessionRequest {
|
|
|
823
1018
|
profileId?: string | undefined;
|
|
824
1019
|
/** The project to create the session in. When provided, the session namespace is resolved from the project. */
|
|
825
1020
|
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 */
|
|
1021
|
+
/** 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 or socks5://username:password@hostname:port */
|
|
827
1022
|
proxyUrl?: string | undefined;
|
|
828
1023
|
/** Record the headful session for playback after it ends. Default is true. Disabling recording does not affect live WHEP viewing. */
|
|
829
1024
|
recording?: boolean | undefined;
|
|
@@ -831,13 +1026,13 @@ export interface CreateSessionRequest {
|
|
|
831
1026
|
region?: unknown | undefined;
|
|
832
1027
|
/** Session context data to be used in the created session. Sessions will start with an empty context by default. */
|
|
833
1028
|
sessionContext?: CreateSessionRequestSessionContext | undefined;
|
|
834
|
-
/**
|
|
1029
|
+
/** Deprecated. A session ID of your choice. Steel will reject it in a future release, because the ID that Steel generates records where the session runs. Omit it, use the `id` in the response, and put your own ID in `metadata`. */
|
|
835
1030
|
sessionId?: string | undefined;
|
|
836
1031
|
/** Enable automatic captcha solving. Default is false. */
|
|
837
1032
|
solveCaptcha?: boolean | undefined;
|
|
838
1033
|
/** Stealth configuration for the session */
|
|
839
1034
|
stealthConfig?: CreateSessionRequestStealthConfig | undefined;
|
|
840
|
-
/** Session timeout duration in milliseconds. Default is 300000 (5 minutes). */
|
|
1035
|
+
/** Session timeout duration in milliseconds. Default is 300000 (5 minutes). On Launch and Scale, a value over the plan's maximum runs at the maximum; the response's `timeout` shows the value used. */
|
|
841
1036
|
timeout?: number | undefined;
|
|
842
1037
|
useProxy?: CreateSessionRequestUseProxy | undefined;
|
|
843
1038
|
/** Custom user agent string for the browser session */
|
|
@@ -961,6 +1156,17 @@ export interface SessionResponse {
|
|
|
961
1156
|
/** URL for the session's WebSocket connection */
|
|
962
1157
|
websocketUrl: string | Redacted.Redacted<string>;
|
|
963
1158
|
}
|
|
1159
|
+
export interface DetachSessionCredentialRequest {
|
|
1160
|
+
/** The session id */
|
|
1161
|
+
id: string;
|
|
1162
|
+
/** The credential id to detach */
|
|
1163
|
+
credentialId: string;
|
|
1164
|
+
}
|
|
1165
|
+
export interface DetachSessionVaultBindingRequest {
|
|
1166
|
+
id: string;
|
|
1167
|
+
/** Vault or item reference to detach */
|
|
1168
|
+
reference: string;
|
|
1169
|
+
}
|
|
964
1170
|
export type ComputerActionRequestCase0Action = "move_mouse";
|
|
965
1171
|
/** X and Y coordinates [x, y] */
|
|
966
1172
|
export type ComputerActionRequestCase0CoordinatesList = Array<number>;
|
|
@@ -1288,7 +1494,11 @@ export type GetSessionEventsResponse2 = GetSessionEventsResponse;
|
|
|
1288
1494
|
export interface GetSessionHlsPlaylistRequest {
|
|
1289
1495
|
id: string;
|
|
1290
1496
|
}
|
|
1291
|
-
export
|
|
1497
|
+
export interface GetSessionHlsPlaylistResponse {
|
|
1498
|
+
body: BinaryStream;
|
|
1499
|
+
/** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
|
|
1500
|
+
contentType?: string | undefined;
|
|
1501
|
+
}
|
|
1292
1502
|
export interface GetSessionLiveDetailsRequest {
|
|
1293
1503
|
id: string;
|
|
1294
1504
|
}
|
|
@@ -1348,6 +1558,9 @@ export interface SessionSignalCatalogResponse {
|
|
|
1348
1558
|
semantics: string;
|
|
1349
1559
|
signals: SessionSignalCatalogResponseSignalsList;
|
|
1350
1560
|
}
|
|
1561
|
+
export interface ListSessionCredentialsRequest {
|
|
1562
|
+
id: string;
|
|
1563
|
+
}
|
|
1351
1564
|
export type ListSessionsRequestStatus = "live" | "released" | "failed";
|
|
1352
1565
|
export type ListSessionsRequestReleaseReason = "user_requested" | "timeout" | "inactivity_timeout" | "creation_timeout" | "startup_failed" | "browser_closed" | "browser_crashed";
|
|
1353
1566
|
export type ListSessionsRequestSignalItem = "captcha_encountered" | "proxy_connection_failed" | "session_timeout_exceeded" | "bot_detection_triggered" | "context_restored";
|
|
@@ -1508,6 +1721,23 @@ export interface ReleaseSessionResponse {
|
|
|
1508
1721
|
/** Indicates if the session was successfully released */
|
|
1509
1722
|
success: boolean;
|
|
1510
1723
|
}
|
|
1724
|
+
export type ReplaceSessionCredentialsRequestBindingsItemCase1AllowedOriginsList = Array<string>;
|
|
1725
|
+
export interface ReplaceSessionCredentialsRequestBindingsItemCase1 {
|
|
1726
|
+
allowedOrigins: ReplaceSessionCredentialsRequestBindingsItemCase1AllowedOriginsList;
|
|
1727
|
+
reference: string;
|
|
1728
|
+
}
|
|
1729
|
+
export type ReplaceSessionCredentialsRequestBindingsItem = string | ReplaceSessionCredentialsRequestBindingsItemCase1;
|
|
1730
|
+
/** At most 100 bindings; KV bindings may specify allowedOrigins. */
|
|
1731
|
+
export type ReplaceSessionCredentialsRequestBindingsList = Array<ReplaceSessionCredentialsRequestBindingsItem>;
|
|
1732
|
+
/** Ids of credentials (Secrets of kind `credential`) in the session's project. Binding makes the session's lookup `explicit` for good. */
|
|
1733
|
+
export type ReplaceSessionCredentialsRequestCredentialIdsList = Array<string>;
|
|
1734
|
+
export interface ReplaceSessionCredentialsRequest {
|
|
1735
|
+
id: string;
|
|
1736
|
+
/** At most 100 bindings; KV bindings may specify allowedOrigins. */
|
|
1737
|
+
bindings?: ReplaceSessionCredentialsRequestBindingsList | undefined;
|
|
1738
|
+
/** Ids of credentials (Secrets of kind `credential`) in the session's project. Binding makes the session's lookup `explicit` for good. */
|
|
1739
|
+
credentialIds?: ReplaceSessionCredentialsRequestCredentialIdsList | undefined;
|
|
1740
|
+
}
|
|
1511
1741
|
export type ReplaceSessionMetadataRequestMetadataValue = string | number | boolean;
|
|
1512
1742
|
/** 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
1743
|
export type ReplaceSessionMetadataRequestMetadataMap = {
|
|
@@ -1568,6 +1798,8 @@ export interface CommandCase4 {
|
|
|
1568
1798
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1569
1799
|
tab?: string | undefined;
|
|
1570
1800
|
}
|
|
1801
|
+
/** left by default. */
|
|
1802
|
+
export type CommandCase5Button = "left" | "right" | "middle";
|
|
1571
1803
|
export type CommandCase5Command = "click";
|
|
1572
1804
|
/** Fails the command when the element does not have this role or name. */
|
|
1573
1805
|
export interface CommandExpectation {
|
|
@@ -1598,6 +1830,10 @@ export type CommandFrameCase1List = Array<CommandTarget>;
|
|
|
1598
1830
|
export type CommandFrame = CommandTarget | CommandFrameCase1List;
|
|
1599
1831
|
/** Clicks the element with the mouse. */
|
|
1600
1832
|
export interface CommandCase5 {
|
|
1833
|
+
/** left by default. */
|
|
1834
|
+
button?: CommandCase5Button | (string & {}) | undefined;
|
|
1835
|
+
/** 2 makes a double click and 3 a triple click. 1 by default. */
|
|
1836
|
+
clicks?: number | undefined;
|
|
1601
1837
|
command: CommandCase5Command;
|
|
1602
1838
|
expect?: CommandExpectation | undefined;
|
|
1603
1839
|
frame?: CommandFrame | undefined;
|
|
@@ -1605,8 +1841,8 @@ export interface CommandCase5 {
|
|
|
1605
1841
|
tab?: string | undefined;
|
|
1606
1842
|
target: CommandTarget;
|
|
1607
1843
|
}
|
|
1608
|
-
export type CommandCase6Command = "
|
|
1609
|
-
/**
|
|
1844
|
+
export type CommandCase6Command = "hover";
|
|
1845
|
+
/** Moves the mouse onto the element. */
|
|
1610
1846
|
export interface CommandCase6 {
|
|
1611
1847
|
command: CommandCase6Command;
|
|
1612
1848
|
expect?: CommandExpectation | undefined;
|
|
@@ -1615,8 +1851,8 @@ export interface CommandCase6 {
|
|
|
1615
1851
|
tab?: string | undefined;
|
|
1616
1852
|
target: CommandTarget;
|
|
1617
1853
|
}
|
|
1618
|
-
export type CommandCase7Command = "
|
|
1619
|
-
/**
|
|
1854
|
+
export type CommandCase7Command = "focus";
|
|
1855
|
+
/** Focuses the element. */
|
|
1620
1856
|
export interface CommandCase7 {
|
|
1621
1857
|
command: CommandCase7Command;
|
|
1622
1858
|
expect?: CommandExpectation | undefined;
|
|
@@ -1625,22 +1861,12 @@ export interface CommandCase7 {
|
|
|
1625
1861
|
tab?: string | undefined;
|
|
1626
1862
|
target: CommandTarget;
|
|
1627
1863
|
}
|
|
1628
|
-
export type CommandCase8Command = "
|
|
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";
|
|
1864
|
+
export type CommandCase8Command = "type";
|
|
1639
1865
|
/** Types text one key press at a time, after the current content. */
|
|
1640
|
-
export interface
|
|
1866
|
+
export interface CommandCase8 {
|
|
1641
1867
|
/** Replace the current content. */
|
|
1642
1868
|
clear?: boolean | undefined;
|
|
1643
|
-
command:
|
|
1869
|
+
command: CommandCase8Command;
|
|
1644
1870
|
/** Milliseconds to wait between key presses. */
|
|
1645
1871
|
delay?: number | undefined;
|
|
1646
1872
|
expect?: CommandExpectation | undefined;
|
|
@@ -1650,10 +1876,10 @@ export interface CommandCase9 {
|
|
|
1650
1876
|
target: CommandTarget;
|
|
1651
1877
|
text: string;
|
|
1652
1878
|
}
|
|
1653
|
-
export type
|
|
1879
|
+
export type CommandCase9Command = "fill";
|
|
1654
1880
|
/** Replaces the content of a field in one step, without key presses. */
|
|
1655
|
-
export interface
|
|
1656
|
-
command:
|
|
1881
|
+
export interface CommandCase9 {
|
|
1882
|
+
command: CommandCase9Command;
|
|
1657
1883
|
expect?: CommandExpectation | undefined;
|
|
1658
1884
|
frame?: CommandFrame | undefined;
|
|
1659
1885
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
@@ -1661,10 +1887,10 @@ export interface CommandCase10 {
|
|
|
1661
1887
|
target: CommandTarget;
|
|
1662
1888
|
value: string;
|
|
1663
1889
|
}
|
|
1664
|
-
export type
|
|
1665
|
-
/** Presses a key, such as Enter, or a combination such as Control+a. */
|
|
1666
|
-
export interface
|
|
1667
|
-
command:
|
|
1890
|
+
export type CommandCase10Command = "press";
|
|
1891
|
+
/** Presses a key, such as Enter, or a combination such as Control+a. On a tab with an open dialog, Enter without a target accepts the dialog and Escape dismisses it. */
|
|
1892
|
+
export interface CommandCase10 {
|
|
1893
|
+
command: CommandCase10Command;
|
|
1668
1894
|
expect?: CommandExpectation | undefined;
|
|
1669
1895
|
frame?: CommandFrame | undefined;
|
|
1670
1896
|
key: string;
|
|
@@ -1672,31 +1898,33 @@ export interface CommandCase11 {
|
|
|
1672
1898
|
tab?: string | undefined;
|
|
1673
1899
|
target?: CommandTarget | undefined;
|
|
1674
1900
|
}
|
|
1675
|
-
export type
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1901
|
+
export type CommandCase11Action = "down" | "up";
|
|
1902
|
+
export type CommandCase11Command = "keyboard";
|
|
1903
|
+
/** Holds a key down, or lets go of a key held down. */
|
|
1904
|
+
export interface CommandCase11 {
|
|
1905
|
+
action: CommandCase11Action | (string & {});
|
|
1906
|
+
command: CommandCase11Command;
|
|
1907
|
+
/** One key, not a combination such as Control+a. */
|
|
1679
1908
|
key: string;
|
|
1680
1909
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1681
1910
|
tab?: string | undefined;
|
|
1682
1911
|
}
|
|
1683
|
-
export type
|
|
1684
|
-
/** Lets go of
|
|
1685
|
-
export interface
|
|
1686
|
-
command:
|
|
1687
|
-
key: string;
|
|
1912
|
+
export type CommandCase12Command = "release";
|
|
1913
|
+
/** Lets go of every key and mouse button held on the tab. */
|
|
1914
|
+
export interface CommandCase12 {
|
|
1915
|
+
command: CommandCase12Command;
|
|
1688
1916
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1689
1917
|
tab?: string | undefined;
|
|
1690
1918
|
}
|
|
1691
|
-
export type
|
|
1692
|
-
export type
|
|
1693
|
-
export type
|
|
1919
|
+
export type CommandCase13Action = "move" | "down" | "up" | "click" | "wheel";
|
|
1920
|
+
export type CommandCase13Button = "left" | "right" | "middle";
|
|
1921
|
+
export type CommandCase13Command = "mouse";
|
|
1694
1922
|
/** 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
|
|
1696
|
-
action:
|
|
1697
|
-
button?:
|
|
1923
|
+
export interface CommandCase13 {
|
|
1924
|
+
action: CommandCase13Action | (string & {});
|
|
1925
|
+
button?: CommandCase13Button | (string & {}) | undefined;
|
|
1698
1926
|
clicks?: number | undefined;
|
|
1699
|
-
command:
|
|
1927
|
+
command: CommandCase13Command;
|
|
1700
1928
|
deltaX?: number | undefined;
|
|
1701
1929
|
deltaY?: number | undefined;
|
|
1702
1930
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
@@ -1704,101 +1932,101 @@ export interface CommandCase14 {
|
|
|
1704
1932
|
x?: number | undefined;
|
|
1705
1933
|
y?: number | undefined;
|
|
1706
1934
|
}
|
|
1707
|
-
export type
|
|
1708
|
-
export type
|
|
1709
|
-
export type
|
|
1935
|
+
export type CommandCase14Command = "select";
|
|
1936
|
+
export type CommandCase14ValuesCase1List = Array<string>;
|
|
1937
|
+
export type CommandCase14Values = string | CommandCase14ValuesCase1List;
|
|
1710
1938
|
/** Selects options. Matches by value, then by label. */
|
|
1711
|
-
export interface
|
|
1712
|
-
command:
|
|
1939
|
+
export interface CommandCase14 {
|
|
1940
|
+
command: CommandCase14Command;
|
|
1713
1941
|
expect?: CommandExpectation | undefined;
|
|
1714
1942
|
frame?: CommandFrame | undefined;
|
|
1715
1943
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1716
1944
|
tab?: string | undefined;
|
|
1717
1945
|
target: CommandTarget;
|
|
1718
|
-
values:
|
|
1946
|
+
values: CommandCase14Values;
|
|
1719
1947
|
}
|
|
1720
|
-
export type
|
|
1948
|
+
export type CommandCase15Command = "check";
|
|
1721
1949
|
/** Checks a checkbox, radio button, switch, or toggle button. */
|
|
1722
|
-
export interface
|
|
1723
|
-
command:
|
|
1950
|
+
export interface CommandCase15 {
|
|
1951
|
+
command: CommandCase15Command;
|
|
1724
1952
|
expect?: CommandExpectation | undefined;
|
|
1725
1953
|
frame?: CommandFrame | undefined;
|
|
1726
1954
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1727
1955
|
tab?: string | undefined;
|
|
1728
1956
|
target: CommandTarget;
|
|
1729
1957
|
}
|
|
1730
|
-
export type
|
|
1731
|
-
export type
|
|
1732
|
-
export type
|
|
1958
|
+
export type CommandCase16Command = "upload";
|
|
1959
|
+
export type CommandCase16FilesCase1List = Array<string>;
|
|
1960
|
+
export type CommandCase16Files = string | CommandCase16FilesCase1List;
|
|
1733
1961
|
/** Sets the files of a file input. Upload the files to the session first. */
|
|
1734
|
-
export interface
|
|
1735
|
-
command:
|
|
1962
|
+
export interface CommandCase16 {
|
|
1963
|
+
command: CommandCase16Command;
|
|
1736
1964
|
expect?: CommandExpectation | undefined;
|
|
1737
|
-
files:
|
|
1965
|
+
files: CommandCase16Files;
|
|
1738
1966
|
frame?: CommandFrame | undefined;
|
|
1739
1967
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1740
1968
|
tab?: string | undefined;
|
|
1741
1969
|
target: CommandTarget;
|
|
1742
1970
|
}
|
|
1743
|
-
export type
|
|
1971
|
+
export type CommandCase17Command = "drag";
|
|
1744
1972
|
/** Drags one element onto another with the mouse. */
|
|
1745
|
-
export interface
|
|
1746
|
-
command:
|
|
1973
|
+
export interface CommandCase17 {
|
|
1974
|
+
command: CommandCase17Command;
|
|
1747
1975
|
frame?: CommandFrame | undefined;
|
|
1748
1976
|
source: CommandTarget;
|
|
1749
1977
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1750
1978
|
tab?: string | undefined;
|
|
1751
1979
|
target: CommandTarget;
|
|
1752
1980
|
}
|
|
1753
|
-
export type
|
|
1981
|
+
export type CommandCase18Command = "uncheck";
|
|
1754
1982
|
/** Unchecks a checkbox, switch, or toggle button. */
|
|
1755
|
-
export interface
|
|
1756
|
-
command:
|
|
1983
|
+
export interface CommandCase18 {
|
|
1984
|
+
command: CommandCase18Command;
|
|
1757
1985
|
expect?: CommandExpectation | undefined;
|
|
1758
1986
|
frame?: CommandFrame | undefined;
|
|
1759
1987
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1760
1988
|
tab?: string | undefined;
|
|
1761
1989
|
target: CommandTarget;
|
|
1762
1990
|
}
|
|
1763
|
-
export type
|
|
1764
|
-
export type
|
|
1991
|
+
export type CommandCase19Command = "get";
|
|
1992
|
+
export type CommandCase19What = "text" | "html" | "markdown" | "value" | "attr" | "title" | "url" | "count" | "box" | "locator";
|
|
1765
1993
|
/** Reads something from the page or an element. */
|
|
1766
|
-
export interface
|
|
1994
|
+
export interface CommandCase19 {
|
|
1767
1995
|
/** The attribute to read with attr. */
|
|
1768
1996
|
attribute?: string | undefined;
|
|
1769
|
-
command:
|
|
1997
|
+
command: CommandCase19Command;
|
|
1770
1998
|
expect?: CommandExpectation | undefined;
|
|
1771
1999
|
frame?: CommandFrame | undefined;
|
|
1772
2000
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1773
2001
|
tab?: string | undefined;
|
|
1774
2002
|
target?: CommandTarget | undefined;
|
|
1775
|
-
what:
|
|
2003
|
+
what: CommandCase19What | (string & {});
|
|
1776
2004
|
}
|
|
1777
|
-
export type
|
|
1778
|
-
export type
|
|
2005
|
+
export type CommandCase20Command = "is";
|
|
2006
|
+
export type CommandCase20What = "visible" | "enabled" | "checked";
|
|
1779
2007
|
/** Checks the state of an element. */
|
|
1780
|
-
export interface
|
|
1781
|
-
command:
|
|
2008
|
+
export interface CommandCase20 {
|
|
2009
|
+
command: CommandCase20Command;
|
|
1782
2010
|
expect?: CommandExpectation | undefined;
|
|
1783
2011
|
frame?: CommandFrame | undefined;
|
|
1784
2012
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1785
2013
|
tab?: string | undefined;
|
|
1786
2014
|
target: CommandTarget;
|
|
1787
|
-
what:
|
|
2015
|
+
what: CommandCase20What | (string & {});
|
|
1788
2016
|
}
|
|
1789
|
-
export type
|
|
1790
|
-
export type
|
|
1791
|
-
export type
|
|
2017
|
+
export type CommandCase21Command = "wait";
|
|
2018
|
+
export type CommandCase21Load = "load" | "domcontentloaded" | "networkidle";
|
|
2019
|
+
export type CommandCase21State = "visible" | "hidden" | "attached" | "detached";
|
|
1792
2020
|
/** Waits for one of an element, text, a URL, a load state, a download, or a fixed time. */
|
|
1793
|
-
export interface
|
|
1794
|
-
command:
|
|
2021
|
+
export interface CommandCase21 {
|
|
2022
|
+
command: CommandCase21Command;
|
|
1795
2023
|
/** Waits for the next download to finish. */
|
|
1796
2024
|
download?: boolean | undefined;
|
|
1797
2025
|
expect?: CommandExpectation | undefined;
|
|
1798
2026
|
frame?: CommandFrame | undefined;
|
|
1799
|
-
load?:
|
|
2027
|
+
load?: CommandCase21Load | (string & {}) | undefined;
|
|
1800
2028
|
ms?: number | undefined;
|
|
1801
|
-
state?:
|
|
2029
|
+
state?: CommandCase21State | (string & {}) | undefined;
|
|
1802
2030
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1803
2031
|
tab?: string | undefined;
|
|
1804
2032
|
target?: CommandTarget | undefined;
|
|
@@ -1808,13 +2036,13 @@ export interface CommandCase22 {
|
|
|
1808
2036
|
/** A URL pattern. * matches any characters. */
|
|
1809
2037
|
url?: string | undefined;
|
|
1810
2038
|
}
|
|
1811
|
-
export type
|
|
1812
|
-
export type
|
|
2039
|
+
export type CommandCase22Command = "screenshot";
|
|
2040
|
+
export type CommandCase22Format = "png" | "jpeg" | "webp";
|
|
1813
2041
|
/** Captures the page or an element as base64 data. */
|
|
1814
|
-
export interface
|
|
1815
|
-
command:
|
|
2042
|
+
export interface CommandCase22 {
|
|
2043
|
+
command: CommandCase22Command;
|
|
1816
2044
|
expect?: CommandExpectation | undefined;
|
|
1817
|
-
format?:
|
|
2045
|
+
format?: CommandCase22Format | (string & {}) | undefined;
|
|
1818
2046
|
frame?: CommandFrame | undefined;
|
|
1819
2047
|
fullPage?: boolean | undefined;
|
|
1820
2048
|
quality?: number | undefined;
|
|
@@ -1822,64 +2050,76 @@ export interface CommandCase23 {
|
|
|
1822
2050
|
tab?: string | undefined;
|
|
1823
2051
|
target?: CommandTarget | undefined;
|
|
1824
2052
|
}
|
|
1825
|
-
export type
|
|
2053
|
+
export type CommandCase23Command = "eval";
|
|
1826
2054
|
/** Runs JavaScript in the page and returns the result as JSON. */
|
|
1827
|
-
export interface
|
|
1828
|
-
command:
|
|
2055
|
+
export interface CommandCase23 {
|
|
2056
|
+
command: CommandCase23Command;
|
|
2057
|
+
/** An expression, or an async function body that gives its value with return. A promise result is awaited. */
|
|
1829
2058
|
script: string;
|
|
1830
2059
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1831
2060
|
tab?: string | undefined;
|
|
1832
2061
|
/** Milliseconds. 10000 by default. */
|
|
1833
2062
|
timeout?: number | undefined;
|
|
1834
2063
|
}
|
|
1835
|
-
export type
|
|
2064
|
+
export type CommandCase24Command = "pdf";
|
|
1836
2065
|
/** Prints the page to a PDF as base64 data. */
|
|
1837
|
-
export interface
|
|
1838
|
-
command:
|
|
2066
|
+
export interface CommandCase24 {
|
|
2067
|
+
command: CommandCase24Command;
|
|
1839
2068
|
landscape?: boolean | undefined;
|
|
1840
2069
|
printBackground?: boolean | undefined;
|
|
1841
2070
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1842
2071
|
tab?: string | undefined;
|
|
1843
2072
|
}
|
|
1844
|
-
export type
|
|
1845
|
-
export type
|
|
2073
|
+
export type CommandCase25Command = "scroll";
|
|
2074
|
+
export type CommandCase25Direction = "up" | "down" | "left" | "right";
|
|
1846
2075
|
/** Scrolls the page, or an element when target is set. */
|
|
1847
|
-
export interface
|
|
2076
|
+
export interface CommandCase25 {
|
|
1848
2077
|
/** Pixels. 300 by default. */
|
|
1849
2078
|
amount?: number | undefined;
|
|
1850
|
-
command:
|
|
1851
|
-
direction?:
|
|
2079
|
+
command: CommandCase25Command;
|
|
2080
|
+
direction?: CommandCase25Direction | (string & {}) | undefined;
|
|
1852
2081
|
expect?: CommandExpectation | undefined;
|
|
1853
2082
|
frame?: CommandFrame | undefined;
|
|
1854
2083
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1855
2084
|
tab?: string | undefined;
|
|
1856
2085
|
target?: CommandTarget | undefined;
|
|
1857
2086
|
}
|
|
1858
|
-
export type
|
|
2087
|
+
export type CommandCase26Command = "find";
|
|
1859
2088
|
/** Finds elements and returns refs for up to 50 matches. With nth, it returns that one match. */
|
|
1860
|
-
export interface
|
|
1861
|
-
command:
|
|
2089
|
+
export interface CommandCase26 {
|
|
2090
|
+
command: CommandCase26Command;
|
|
1862
2091
|
frame?: CommandFrame | undefined;
|
|
1863
2092
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1864
2093
|
tab?: string | undefined;
|
|
1865
2094
|
/** A CSS selector or a locator, not a ref. */
|
|
1866
2095
|
target: CommandTarget;
|
|
1867
2096
|
}
|
|
1868
|
-
export type
|
|
1869
|
-
export type
|
|
2097
|
+
export type CommandCase27Action = "list" | "new" | "close";
|
|
2098
|
+
export type CommandCase27Command = "tab";
|
|
1870
2099
|
/** Lists, opens, or closes tabs. The last tab cannot be closed. */
|
|
1871
|
-
export interface
|
|
1872
|
-
action:
|
|
1873
|
-
command:
|
|
2100
|
+
export interface CommandCase27 {
|
|
2101
|
+
action: CommandCase27Action | (string & {});
|
|
2102
|
+
command: CommandCase27Command;
|
|
1874
2103
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
1875
2104
|
tab?: string | undefined;
|
|
1876
2105
|
url?: string | undefined;
|
|
1877
2106
|
}
|
|
2107
|
+
export type CommandCase28Action = "accept" | "dismiss";
|
|
2108
|
+
export type CommandCase28Command = "dialog";
|
|
2109
|
+
/** Answers an open dialog. It never sends a key to the page, and fails if the dialog is not open. */
|
|
2110
|
+
export interface CommandCase28 {
|
|
2111
|
+
action: CommandCase28Action | (string & {});
|
|
2112
|
+
command: CommandCase28Command;
|
|
2113
|
+
/** The id of the dialog, such as d-3, from dialog in a response. */
|
|
2114
|
+
dialog: string;
|
|
2115
|
+
/** The answer to a prompt. Works only with accept. A prompt gets its default text without it. */
|
|
2116
|
+
text?: string | undefined;
|
|
2117
|
+
}
|
|
1878
2118
|
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
2119
|
export type RunCommandsRequestCommandsCase1List = Array<Command>;
|
|
1880
2120
|
/** 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
2121
|
export type RunCommandsRequestCommands = Command | RunCommandsRequestCommandsCase1List;
|
|
1882
|
-
export type RunCommandsRequestObserveMode = "
|
|
2122
|
+
export type RunCommandsRequestObserveMode = "snapshot" | "diff";
|
|
1883
2123
|
/** Returns a snapshot, or a diff against the last one, after the commands. */
|
|
1884
2124
|
export interface RunCommandsRequestObserve {
|
|
1885
2125
|
/** A snapshot id to diff against. */
|
|
@@ -1914,12 +2154,59 @@ export interface UpdateSessionMetadataRequest {
|
|
|
1914
2154
|
/** 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
2155
|
metadata: UpdateSessionMetadataRequestMetadataMap;
|
|
1916
2156
|
}
|
|
2157
|
+
export interface ErrorResponseContextItem {
|
|
2158
|
+
keyword: string;
|
|
2159
|
+
message: string;
|
|
2160
|
+
params: unknown;
|
|
2161
|
+
}
|
|
2162
|
+
export type ErrorResponseContextList = Array<ErrorResponseContextItem>;
|
|
2163
|
+
/** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
|
|
2164
|
+
export type ErrorResponseDetailsMap = {
|
|
2165
|
+
[key: string]: unknown | undefined;
|
|
2166
|
+
};
|
|
2167
|
+
/** An error response from the API */
|
|
2168
|
+
export interface ErrorResponse {
|
|
2169
|
+
/** Stable machine-readable reason, e.g. 'budget_exceeded' or 'profile_not_ready'. Branch on this instead of parsing the message. */
|
|
2170
|
+
code?: string | undefined;
|
|
2171
|
+
context?: ErrorResponseContextList | undefined;
|
|
2172
|
+
/** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
|
|
2173
|
+
details?: ErrorResponseDetailsMap | undefined;
|
|
2174
|
+
error?: string | undefined;
|
|
2175
|
+
linkToDocs?: string | undefined;
|
|
2176
|
+
message: string;
|
|
2177
|
+
/** The request field that caused the error, if any. */
|
|
2178
|
+
param?: string | undefined;
|
|
2179
|
+
/** Seconds to wait before retrying. Also sent as the Retry-After header. */
|
|
2180
|
+
retryAfterSeconds?: number | undefined;
|
|
2181
|
+
/** Whether the same request can succeed later without changes. False means fix the request or the account first. */
|
|
2182
|
+
retryable?: boolean | undefined;
|
|
2183
|
+
/** Where a person turns on the refused feature, e.g. verifying the account. Pass it to your user. */
|
|
2184
|
+
unlockUrl?: string | undefined;
|
|
2185
|
+
}
|
|
2186
|
+
export interface RunCommandsErrorResponseError {
|
|
2187
|
+
/** Error code, such as session_ended or queue_full. */
|
|
2188
|
+
code: string;
|
|
2189
|
+
message: string;
|
|
2190
|
+
}
|
|
2191
|
+
export interface RunCommandsErrorResponse {
|
|
2192
|
+
error: RunCommandsErrorResponseError;
|
|
2193
|
+
[key: string]: unknown;
|
|
2194
|
+
}
|
|
2195
|
+
export type AttachSessionCredentialsError = BadRequest | NotFound | Conflict | SteelOpError;
|
|
2196
|
+
/** Attach session credentials Attach credentialIds and/or Vault or item references in bindings. Each array accepts at most 100 entries; at most 100 distinct direct items and whole Vaults may be bound. Only credentials can be autofilled. Lookup becomes explicit and remains so. Errors: 400 `invalid_reference`, `reference_not_found`, `reference_ambiguous`, `reference_not_supported`, `credential_not_bindable`, or `too_many_credentials`; 409 `credentials_not_enabled` or `session_not_running`; 503 `credential_bindings_busy` (retryable). */
|
|
2197
|
+
export declare const attachSessionCredentials: API.OperationMethod<AttachSessionCredentialsRequest, SessionCredentialsResponse, AttachSessionCredentialsError, SteelOpContext>;
|
|
1917
2198
|
export type CancelCommandExecutionError = Forbidden | NotFound | Gone | UnprocessableEntity | SessionEnded | SteelOpError;
|
|
1918
2199
|
/** Cancel a command execution Stops an execution. The running command stops before its next input, and commands that already ran are not undone. */
|
|
1919
2200
|
export declare const cancelCommandExecution: API.OperationMethod<CancelCommandExecutionRequest, RunCommandsResponse, CancelCommandExecutionError, SteelOpContext>;
|
|
1920
2201
|
export type CreateSessionError = BadRequest | Forbidden | Conflict | UnprocessableEntity | NotFound | ProfileNotFound | SteelOpError;
|
|
1921
2202
|
/** Create a session Creates a new session with the provided configuration. */
|
|
1922
2203
|
export declare const createSession: API.OperationMethod<CreateSessionRequest, SessionResponse, CreateSessionError, SteelOpContext>;
|
|
2204
|
+
export type DetachSessionCredentialError = BadRequest | NotFound | Conflict | SteelOpError;
|
|
2205
|
+
/** Detach a session credential Unbind a credential from a running session. The lookup stays `explicit`: with nothing bound, the session fills nothing. Errors: 404 `credential_not_attached`, 409 `session_not_running`, 503 `credential_bindings_busy` (retryable). */
|
|
2206
|
+
export declare const detachSessionCredential: API.OperationMethod<DetachSessionCredentialRequest, SessionCredentialsResponse, DetachSessionCredentialError, SteelOpContext>;
|
|
2207
|
+
export type DetachSessionVaultBindingError = BadRequest | NotFound | Conflict | SteelOpError;
|
|
2208
|
+
/** Detach a session Vault binding Pass reference as a query parameter to detach one Vault or item binding, including steel://connections/<connection>/vaults/<vault>[/<item>]. Does not detach items covered by a whole Vault binding. Errors: 400 `invalid_reference` or `reference_ambiguous`; 404 `credential_not_attached`; 409 `session_not_running`; 503 `credential_bindings_busy` (retryable). */
|
|
2209
|
+
export declare const detachSessionVaultBinding: API.OperationMethod<DetachSessionVaultBindingRequest, SessionCredentialsResponse, DetachSessionVaultBindingError, SteelOpContext>;
|
|
1923
2210
|
export type ExecuteComputerActionError = BadRequest | SteelOpError;
|
|
1924
2211
|
/** Execute computer action Execute computer actions like mouse movements, clicks, keyboard input, and more */
|
|
1925
2212
|
export declare const executeComputerAction: API.OperationMethod<ExecuteComputerActionRequest, ComputerActionResponse, ExecuteComputerActionError, SteelOpContext>;
|
|
@@ -1956,6 +2243,9 @@ export declare const getSessionLogs: API.OperationMethod<GetSessionLogsRequest,
|
|
|
1956
2243
|
export type GetSessionSignalCatalogError = SteelOpError;
|
|
1957
2244
|
/** 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
2245
|
export declare const getSessionSignalCatalog: API.OperationMethod<GetSessionSignalCatalogRequest, SessionSignalCatalogResponse, GetSessionSignalCatalogError, SteelOpContext>;
|
|
2246
|
+
export type ListSessionCredentialsError = BadRequest | NotFound | Conflict | SteelOpError;
|
|
2247
|
+
/** List session credentials The session's credential lookup and the live credentials bound to it (no values). Subject to session organization and project access. */
|
|
2248
|
+
export declare const listSessionCredentials: API.OperationMethod<ListSessionCredentialsRequest, SessionCredentialsResponse, ListSessionCredentialsError, SteelOpContext>;
|
|
1959
2249
|
export type ListSessionsError = SteelOpError;
|
|
1960
2250
|
/** List all sessions Fetches all active sessions for the current organization. */
|
|
1961
2251
|
export declare const listSessions: API.PaginatedOperationMethod<ListSessionsRequest, SessionsResponse, ListSessionsError, SteelOpContext, SessionsResponseSessionsItem>;
|
|
@@ -1965,6 +2255,9 @@ export declare const releaseAllSessions: API.OperationMethod<ReleaseAllSessionsR
|
|
|
1965
2255
|
export type ReleaseSessionError = BadRequest | NotFound | SteelOpError;
|
|
1966
2256
|
/** Release a session Releases a specific session by ID. */
|
|
1967
2257
|
export declare const releaseSession: API.OperationMethod<ReleaseSessionRequest, ReleaseSessionResponse, ReleaseSessionError, SteelOpContext>;
|
|
2258
|
+
export type ReplaceSessionCredentialsError = BadRequest | NotFound | Conflict | SteelOpError;
|
|
2259
|
+
/** Replace session credentials Replace all direct item and Vault bindings, including provider references steel://connections/<connection>/vaults/<vault>[/<item>]. Supply credentialIds and/or bindings; empty arrays detach all. At most 100 distinct bindings may be stored. Only credentials can be autofilled. Lookup becomes explicit and remains so. */
|
|
2260
|
+
export declare const replaceSessionCredentials: API.OperationMethod<ReplaceSessionCredentialsRequest, SessionCredentialsResponse, ReplaceSessionCredentialsError, SteelOpContext>;
|
|
1968
2261
|
export type ReplaceSessionMetadataError = BadRequest | NotFound | SteelOpError;
|
|
1969
2262
|
/** 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
2263
|
export declare const replaceSessionMetadata: API.OperationMethod<ReplaceSessionMetadataRequest, SessionMetadataResponse, ReplaceSessionMetadataError, SteelOpContext>;
|