@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
package/src/services/sessions.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
|
+
import { BinaryStream } from "@distilled.cloud/core/protocol-rest";
|
|
3
4
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-steel/specs/openapi.json). Do not edit.
|
|
4
5
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
6
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
7
|
import type * as Redacted from "effect/Redacted";
|
|
7
|
-
import {
|
|
8
|
+
import { SteelServiceErrors } from "../errors.ts";
|
|
8
9
|
import { paginateCursor } from "../pagination.ts";
|
|
9
10
|
import { SteelProtocol, type SteelOpError, type SteelOpContext } from "../protocol.ts";
|
|
10
11
|
import * as Retry from "../retry.ts";
|
|
@@ -32,51 +33,101 @@ export class BadRequest
|
|
|
32
33
|
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
33
34
|
code: S.Number,
|
|
34
35
|
message: S.String,
|
|
36
|
+
body: /*@__PURE__*/ S.optional(
|
|
37
|
+
/*@__PURE__*/ S.Union([
|
|
38
|
+
/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)),
|
|
39
|
+
/*@__PURE__*/ S.suspend(() => __S(32, __c2, 0)),
|
|
40
|
+
/*@__PURE__*/ S.suspend(() => __S(17, __c1, 1)),
|
|
41
|
+
S.String,
|
|
42
|
+
]),
|
|
43
|
+
),
|
|
44
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
35
45
|
}).pipe(C.withBadRequestError),
|
|
36
46
|
[{ status: 400 }],
|
|
37
|
-
)
|
|
47
|
+
)
|
|
48
|
+
{
|
|
49
|
+
declare readonly body?:
|
|
50
|
+
| ErrorResponse
|
|
51
|
+
| ReleaseSessionsResponse
|
|
52
|
+
| RunCommandsErrorResponse
|
|
53
|
+
| string;
|
|
54
|
+
}
|
|
38
55
|
|
|
39
56
|
export class Conflict
|
|
40
57
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
41
58
|
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
42
59
|
code: S.Number,
|
|
43
60
|
message: S.String,
|
|
61
|
+
body: /*@__PURE__*/ S.optional(
|
|
62
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
|
|
63
|
+
),
|
|
64
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
44
65
|
}).pipe(C.withConflictError),
|
|
45
66
|
[{ status: 409 }],
|
|
46
|
-
)
|
|
67
|
+
)
|
|
68
|
+
{
|
|
69
|
+
declare readonly body?: ErrorResponse | string;
|
|
70
|
+
}
|
|
47
71
|
|
|
48
72
|
export class Forbidden
|
|
49
73
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
50
74
|
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
51
75
|
code: S.Number,
|
|
52
76
|
message: S.String,
|
|
77
|
+
body: /*@__PURE__*/ S.optional(
|
|
78
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
|
|
79
|
+
),
|
|
80
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
53
81
|
}).pipe(C.withAuthError),
|
|
54
82
|
[{ status: 403 }],
|
|
55
|
-
)
|
|
83
|
+
)
|
|
84
|
+
{
|
|
85
|
+
declare readonly body?: ErrorResponse | string;
|
|
86
|
+
}
|
|
56
87
|
|
|
57
88
|
export class Gone
|
|
58
89
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
59
90
|
/*@__PURE__*/ S.TaggedError<Gone>()("Gone", {
|
|
60
91
|
code: S.Number,
|
|
61
92
|
message: S.String,
|
|
93
|
+
body: /*@__PURE__*/ S.optional(
|
|
94
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(17, __c1, 1)), S.String]),
|
|
95
|
+
),
|
|
96
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
62
97
|
}).pipe(C.withBadRequestError),
|
|
63
98
|
[{ status: 410 }],
|
|
64
|
-
)
|
|
99
|
+
)
|
|
100
|
+
{
|
|
101
|
+
declare readonly body?: RunCommandsErrorResponse | string;
|
|
102
|
+
}
|
|
65
103
|
|
|
66
104
|
export class NotFound
|
|
67
105
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
68
106
|
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
69
107
|
code: S.Number,
|
|
70
108
|
message: S.String,
|
|
109
|
+
body: /*@__PURE__*/ S.optional(
|
|
110
|
+
/*@__PURE__*/ S.Union([
|
|
111
|
+
/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)),
|
|
112
|
+
/*@__PURE__*/ S.suspend(() => __S(17, __c1, 1)),
|
|
113
|
+
S.String,
|
|
114
|
+
]),
|
|
115
|
+
),
|
|
116
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
71
117
|
}).pipe(C.withBadRequestError),
|
|
72
118
|
[{ status: 404 }],
|
|
73
|
-
)
|
|
119
|
+
)
|
|
120
|
+
{
|
|
121
|
+
declare readonly body?: ErrorResponse | RunCommandsErrorResponse | string;
|
|
122
|
+
}
|
|
74
123
|
|
|
75
124
|
/** The `profileId` names no profile in this organization (`profile_not_found`); profiles expire after a TTL. */
|
|
76
125
|
export class ProfileNotFound
|
|
77
126
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
78
127
|
/*@__PURE__*/ S.TaggedError<ProfileNotFound>()("ProfileNotFound", {
|
|
79
128
|
message: S.String,
|
|
129
|
+
body: /*@__PURE__*/ S.optional(S.Unknown),
|
|
130
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
80
131
|
}).pipe(C.withBadRequestError),
|
|
81
132
|
[{ status: 404, body: { "/code": "profile_not_found" } }],
|
|
82
133
|
) {}
|
|
@@ -86,19 +137,97 @@ export class SessionEnded
|
|
|
86
137
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
87
138
|
/*@__PURE__*/ S.TaggedError<SessionEnded>()("SessionEnded", {
|
|
88
139
|
message: S.String,
|
|
140
|
+
body: /*@__PURE__*/ S.optional(
|
|
141
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(17, __c1, 1)), S.String]),
|
|
142
|
+
),
|
|
143
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
89
144
|
}).pipe(C.withBadRequestError),
|
|
90
145
|
[{ status: 410, body: { "/error/code": "session_ended" } }],
|
|
91
|
-
)
|
|
146
|
+
)
|
|
147
|
+
{
|
|
148
|
+
declare readonly body?: RunCommandsErrorResponse | string;
|
|
149
|
+
}
|
|
92
150
|
|
|
93
151
|
export class UnprocessableEntity
|
|
94
152
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
95
153
|
/*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
|
|
96
154
|
code: S.Number,
|
|
97
155
|
message: S.String,
|
|
156
|
+
body: /*@__PURE__*/ S.optional(
|
|
157
|
+
/*@__PURE__*/ S.Union([
|
|
158
|
+
/*@__PURE__*/ S.suspend(() => __S(17, __c1, 1)),
|
|
159
|
+
/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)),
|
|
160
|
+
S.String,
|
|
161
|
+
]),
|
|
162
|
+
),
|
|
163
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
98
164
|
}).pipe(C.withBadRequestError),
|
|
99
165
|
[{ status: 422 }],
|
|
100
|
-
)
|
|
166
|
+
)
|
|
167
|
+
{
|
|
168
|
+
declare readonly body?: RunCommandsErrorResponse | ErrorResponse | string;
|
|
169
|
+
}
|
|
101
170
|
|
|
171
|
+
export type AttachSessionCredentialsRequestBindingsItemCase1AllowedOriginsList = Array<string>;
|
|
172
|
+
export interface AttachSessionCredentialsRequestBindingsItemCase1 {
|
|
173
|
+
allowedOrigins: AttachSessionCredentialsRequestBindingsItemCase1AllowedOriginsList;
|
|
174
|
+
reference: string;
|
|
175
|
+
}
|
|
176
|
+
export type AttachSessionCredentialsRequestBindingsItem =
|
|
177
|
+
| string
|
|
178
|
+
| AttachSessionCredentialsRequestBindingsItemCase1;
|
|
179
|
+
/** At most 100 bindings; KV bindings may specify allowedOrigins. */
|
|
180
|
+
export type AttachSessionCredentialsRequestBindingsList =
|
|
181
|
+
Array<AttachSessionCredentialsRequestBindingsItem>;
|
|
182
|
+
/** Ids of credentials (Secrets of kind `credential`) in the session's project. Binding makes the session's lookup `explicit` for good. */
|
|
183
|
+
export type AttachSessionCredentialsRequestCredentialIdsList = Array<string>;
|
|
184
|
+
export interface AttachSessionCredentialsRequest {
|
|
185
|
+
id: string;
|
|
186
|
+
/** At most 100 bindings; KV bindings may specify allowedOrigins. */
|
|
187
|
+
bindings?: AttachSessionCredentialsRequestBindingsList | undefined;
|
|
188
|
+
/** Ids of credentials (Secrets of kind `credential`) in the session's project. Binding makes the session's lookup `explicit` for good. */
|
|
189
|
+
credentialIds?: AttachSessionCredentialsRequestCredentialIdsList | undefined;
|
|
190
|
+
}
|
|
191
|
+
export type SessionCredentialsResponseBindingsItemCase1AllowedOriginsList = Array<string>;
|
|
192
|
+
export interface SessionCredentialsResponseBindingsItemCase1 {
|
|
193
|
+
allowedOrigins: SessionCredentialsResponseBindingsItemCase1AllowedOriginsList;
|
|
194
|
+
reference: string;
|
|
195
|
+
}
|
|
196
|
+
export type SessionCredentialsResponseBindingsItem =
|
|
197
|
+
| string
|
|
198
|
+
| SessionCredentialsResponseBindingsItemCase1;
|
|
199
|
+
/** Bindings, including KV references with their allowed origins and soft-deleted targets. */
|
|
200
|
+
export type SessionCredentialsResponseBindingsList = Array<SessionCredentialsResponseBindingsItem>;
|
|
201
|
+
/** Other origins the credential may be filled on */
|
|
202
|
+
export type SessionCredentialsResponseCredentialsItemAdditionalOriginsList = Array<string>;
|
|
203
|
+
export interface SessionCredentialsResponseCredentialsItem {
|
|
204
|
+
/** Other origins the credential may be filled on */
|
|
205
|
+
additionalOrigins: SessionCredentialsResponseCredentialsItemAdditionalOriginsList;
|
|
206
|
+
/** The credential's id (a Secret of kind `credential`) */
|
|
207
|
+
id: string;
|
|
208
|
+
/** The credential's name */
|
|
209
|
+
name: string;
|
|
210
|
+
/** The credential's namespace */
|
|
211
|
+
namespace: string;
|
|
212
|
+
/** The website origin the credential is for */
|
|
213
|
+
origin: string;
|
|
214
|
+
}
|
|
215
|
+
/** Live credentials bound to the session, oldest binding first. No values. */
|
|
216
|
+
export type SessionCredentialsResponseCredentialsList =
|
|
217
|
+
Array<SessionCredentialsResponseCredentialsItem>;
|
|
218
|
+
/** `explicit`: the session fills only the credentials listed here. `implicit`: it fills credentials stored for its namespace and the page origin. */
|
|
219
|
+
export type SessionCredentialsResponseLookup = "implicit" | "explicit";
|
|
220
|
+
/** The credentials a session is bound to */
|
|
221
|
+
export interface SessionCredentialsResponse {
|
|
222
|
+
/** Bindings, including KV references with their allowed origins and soft-deleted targets. */
|
|
223
|
+
bindings: SessionCredentialsResponseBindingsList;
|
|
224
|
+
/** Live credentials bound to the session, oldest binding first. No values. */
|
|
225
|
+
credentials: SessionCredentialsResponseCredentialsList;
|
|
226
|
+
/** Whether the session was created with a `credentials` configuration. Only then can credentials be attached; otherwise attach and replace answer 409 `credentials_not_enabled`. */
|
|
227
|
+
credentialsEnabled: boolean;
|
|
228
|
+
/** `explicit`: the session fills only the credentials listed here. `implicit`: it fills credentials stored for its namespace and the page origin. */
|
|
229
|
+
lookup: SessionCredentialsResponseLookup;
|
|
230
|
+
}
|
|
102
231
|
export interface CancelCommandExecutionRequest {
|
|
103
232
|
/** Session ID */
|
|
104
233
|
sessionId: string;
|
|
@@ -115,7 +244,21 @@ export interface CommandDialog {
|
|
|
115
244
|
type: CommandDialogType;
|
|
116
245
|
}
|
|
117
246
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
118
|
-
export type
|
|
247
|
+
export type RunCommandsResponseEffect = "none" | "applied" | "unknown";
|
|
248
|
+
/** A mouse button held down with mouse down. */
|
|
249
|
+
export type CommandHeldButton = "left" | "right" | "middle";
|
|
250
|
+
/** Keys still held down, for example with keyboard down. */
|
|
251
|
+
export type CommandHeldKeysList = Array<string>;
|
|
252
|
+
/** Input still held down on a tab. It applies to later input until released. */
|
|
253
|
+
export interface CommandHeld {
|
|
254
|
+
/** A mouse button held down with mouse down. */
|
|
255
|
+
button?: CommandHeldButton | undefined;
|
|
256
|
+
/** Keys still held down, for example with keyboard down. */
|
|
257
|
+
keys: CommandHeldKeysList;
|
|
258
|
+
tab: string;
|
|
259
|
+
}
|
|
260
|
+
/** Tabs with keys or a mouse button still held down. Left out when nothing is held. */
|
|
261
|
+
export type RunCommandsResponseHeldList = Array<CommandHeld>;
|
|
119
262
|
export interface CommandErrorInfo {
|
|
120
263
|
/** Error code, such as stale_ref or not_actionable. */
|
|
121
264
|
code: string;
|
|
@@ -123,24 +266,6 @@ export interface CommandErrorInfo {
|
|
|
123
266
|
/** More detail, such as covered or detached. */
|
|
124
267
|
reason?: string | undefined;
|
|
125
268
|
}
|
|
126
|
-
export type RunCommandsResponseExecutionState =
|
|
127
|
-
| "queued"
|
|
128
|
-
| "running"
|
|
129
|
-
| "completed"
|
|
130
|
-
| "failed"
|
|
131
|
-
| "cancelled"
|
|
132
|
-
| "timeout"
|
|
133
|
-
| "expired";
|
|
134
|
-
export interface RunCommandsResponseExecution {
|
|
135
|
-
/** What happened to the page: nothing, a change, or a possible change. */
|
|
136
|
-
effect: RunCommandsResponseExecutionEffect;
|
|
137
|
-
error?: CommandErrorInfo | undefined;
|
|
138
|
-
id: string;
|
|
139
|
-
/** Commands started. */
|
|
140
|
-
ran: number;
|
|
141
|
-
replayed: boolean;
|
|
142
|
-
state: RunCommandsResponseExecutionState;
|
|
143
|
-
}
|
|
144
269
|
export interface RunCommandsResponseObserve {
|
|
145
270
|
additions?: number | undefined;
|
|
146
271
|
base?: string | undefined;
|
|
@@ -166,6 +291,8 @@ export interface CommandResultCase0 {
|
|
|
166
291
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
167
292
|
effect: CommandResultCase0Effect;
|
|
168
293
|
error?: CommandErrorInfo | undefined;
|
|
294
|
+
/** The page was still loading when the command returned. */
|
|
295
|
+
loading?: boolean | undefined;
|
|
169
296
|
ok: boolean;
|
|
170
297
|
url?: string | undefined;
|
|
171
298
|
}
|
|
@@ -178,6 +305,8 @@ export interface CommandResultCase1 {
|
|
|
178
305
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
179
306
|
effect: CommandResultCase1Effect;
|
|
180
307
|
error?: CommandErrorInfo | undefined;
|
|
308
|
+
/** The page was still loading when the command returned. */
|
|
309
|
+
loading?: boolean | undefined;
|
|
181
310
|
/** False when there was no history entry. */
|
|
182
311
|
navigated?: boolean | undefined;
|
|
183
312
|
ok: boolean;
|
|
@@ -192,6 +321,8 @@ export interface CommandResultCase2 {
|
|
|
192
321
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
193
322
|
effect: CommandResultCase2Effect;
|
|
194
323
|
error?: CommandErrorInfo | undefined;
|
|
324
|
+
/** The page was still loading when the command returned. */
|
|
325
|
+
loading?: boolean | undefined;
|
|
195
326
|
/** False when there was no history entry. */
|
|
196
327
|
navigated?: boolean | undefined;
|
|
197
328
|
ok: boolean;
|
|
@@ -206,6 +337,8 @@ export interface CommandResultCase3 {
|
|
|
206
337
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
207
338
|
effect: CommandResultCase3Effect;
|
|
208
339
|
error?: CommandErrorInfo | undefined;
|
|
340
|
+
/** The page was still loading when the command returned. */
|
|
341
|
+
loading?: boolean | undefined;
|
|
209
342
|
ok: boolean;
|
|
210
343
|
url?: string | undefined;
|
|
211
344
|
}
|
|
@@ -225,6 +358,8 @@ export interface CommandResultCase4 {
|
|
|
225
358
|
export type CommandResultCase5Command = "click";
|
|
226
359
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
227
360
|
export type CommandResultCase5Effect = "none" | "applied" | "unknown";
|
|
361
|
+
/** The ids of tabs that opened while the command ran. */
|
|
362
|
+
export type CommandResultCase5OpenedList = Array<string>;
|
|
228
363
|
/** Result of a click command. */
|
|
229
364
|
export interface CommandResultCase5 {
|
|
230
365
|
command: CommandResultCase5Command;
|
|
@@ -233,14 +368,16 @@ export interface CommandResultCase5 {
|
|
|
233
368
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
234
369
|
effect: CommandResultCase5Effect;
|
|
235
370
|
error?: CommandErrorInfo | undefined;
|
|
236
|
-
/** The
|
|
371
|
+
/** The page was still loading when the command returned. */
|
|
237
372
|
loading?: boolean | undefined;
|
|
238
373
|
ok: boolean;
|
|
374
|
+
/** The ids of tabs that opened while the command ran. */
|
|
375
|
+
opened?: CommandResultCase5OpenedList | undefined;
|
|
239
376
|
}
|
|
240
|
-
export type CommandResultCase6Command = "
|
|
377
|
+
export type CommandResultCase6Command = "hover";
|
|
241
378
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
242
379
|
export type CommandResultCase6Effect = "none" | "applied" | "unknown";
|
|
243
|
-
/** Result of a
|
|
380
|
+
/** Result of a hover command. */
|
|
244
381
|
export interface CommandResultCase6 {
|
|
245
382
|
command: CommandResultCase6Command;
|
|
246
383
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
@@ -248,38 +385,44 @@ export interface CommandResultCase6 {
|
|
|
248
385
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
249
386
|
effect: CommandResultCase6Effect;
|
|
250
387
|
error?: CommandErrorInfo | undefined;
|
|
251
|
-
/** The command started a navigation that was still loading when it returned. */
|
|
252
|
-
loading?: boolean | undefined;
|
|
253
388
|
ok: boolean;
|
|
254
389
|
}
|
|
255
|
-
export type CommandResultCase7Command = "
|
|
390
|
+
export type CommandResultCase7Command = "focus";
|
|
256
391
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
257
392
|
export type CommandResultCase7Effect = "none" | "applied" | "unknown";
|
|
258
|
-
/** Result of a
|
|
393
|
+
/** Result of a focus command. */
|
|
259
394
|
export interface CommandResultCase7 {
|
|
260
395
|
command: CommandResultCase7Command;
|
|
261
|
-
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
262
|
-
dialog?: CommandDialog | undefined;
|
|
263
396
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
264
397
|
effect: CommandResultCase7Effect;
|
|
265
398
|
error?: CommandErrorInfo | undefined;
|
|
266
399
|
ok: boolean;
|
|
267
400
|
}
|
|
268
|
-
export type CommandResultCase8Command = "
|
|
401
|
+
export type CommandResultCase8Command = "type";
|
|
269
402
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
270
403
|
export type CommandResultCase8Effect = "none" | "applied" | "unknown";
|
|
271
|
-
/**
|
|
404
|
+
/** The ids of tabs that opened while the command ran. */
|
|
405
|
+
export type CommandResultCase8OpenedList = Array<string>;
|
|
406
|
+
/** Result of a type command. */
|
|
272
407
|
export interface CommandResultCase8 {
|
|
273
408
|
command: CommandResultCase8Command;
|
|
409
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
410
|
+
dialog?: CommandDialog | undefined;
|
|
274
411
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
275
412
|
effect: CommandResultCase8Effect;
|
|
276
413
|
error?: CommandErrorInfo | undefined;
|
|
414
|
+
/** The page was still loading when the command returned. */
|
|
415
|
+
loading?: boolean | undefined;
|
|
277
416
|
ok: boolean;
|
|
417
|
+
/** The ids of tabs that opened while the command ran. */
|
|
418
|
+
opened?: CommandResultCase8OpenedList | undefined;
|
|
278
419
|
}
|
|
279
|
-
export type CommandResultCase9Command = "
|
|
420
|
+
export type CommandResultCase9Command = "fill";
|
|
280
421
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
281
422
|
export type CommandResultCase9Effect = "none" | "applied" | "unknown";
|
|
282
|
-
/**
|
|
423
|
+
/** The ids of tabs that opened while the command ran. */
|
|
424
|
+
export type CommandResultCase9OpenedList = Array<string>;
|
|
425
|
+
/** Result of a fill command. */
|
|
283
426
|
export interface CommandResultCase9 {
|
|
284
427
|
command: CommandResultCase9Command;
|
|
285
428
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
@@ -287,29 +430,39 @@ export interface CommandResultCase9 {
|
|
|
287
430
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
288
431
|
effect: CommandResultCase9Effect;
|
|
289
432
|
error?: CommandErrorInfo | undefined;
|
|
290
|
-
/** The
|
|
433
|
+
/** The page was still loading when the command returned. */
|
|
291
434
|
loading?: boolean | undefined;
|
|
292
435
|
ok: boolean;
|
|
436
|
+
/** The ids of tabs that opened while the command ran. */
|
|
437
|
+
opened?: CommandResultCase9OpenedList | undefined;
|
|
293
438
|
}
|
|
294
|
-
export type CommandResultCase10Command = "
|
|
439
|
+
export type CommandResultCase10Command = "press";
|
|
295
440
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
296
441
|
export type CommandResultCase10Effect = "none" | "applied" | "unknown";
|
|
297
|
-
/**
|
|
442
|
+
/** The ids of tabs that opened while the command ran. */
|
|
443
|
+
export type CommandResultCase10OpenedList = Array<string>;
|
|
444
|
+
/** Result of a press command. */
|
|
298
445
|
export interface CommandResultCase10 {
|
|
446
|
+
/** The id of the dialog that the key answered. Absent when the key went to the page. */
|
|
447
|
+
answered?: string | undefined;
|
|
299
448
|
command: CommandResultCase10Command;
|
|
300
449
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
301
450
|
dialog?: CommandDialog | undefined;
|
|
302
451
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
303
452
|
effect: CommandResultCase10Effect;
|
|
304
453
|
error?: CommandErrorInfo | undefined;
|
|
305
|
-
/** The
|
|
454
|
+
/** The page was still loading when the command returned. */
|
|
306
455
|
loading?: boolean | undefined;
|
|
307
456
|
ok: boolean;
|
|
457
|
+
/** The ids of tabs that opened while the command ran. */
|
|
458
|
+
opened?: CommandResultCase10OpenedList | undefined;
|
|
308
459
|
}
|
|
309
|
-
export type CommandResultCase11Command = "
|
|
460
|
+
export type CommandResultCase11Command = "keyboard";
|
|
310
461
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
311
462
|
export type CommandResultCase11Effect = "none" | "applied" | "unknown";
|
|
312
|
-
/**
|
|
463
|
+
/** The ids of tabs that opened while the command ran. */
|
|
464
|
+
export type CommandResultCase11OpenedList = Array<string>;
|
|
465
|
+
/** Result of a keyboard command. */
|
|
313
466
|
export interface CommandResultCase11 {
|
|
314
467
|
command: CommandResultCase11Command;
|
|
315
468
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
@@ -317,14 +470,18 @@ export interface CommandResultCase11 {
|
|
|
317
470
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
318
471
|
effect: CommandResultCase11Effect;
|
|
319
472
|
error?: CommandErrorInfo | undefined;
|
|
320
|
-
/** The
|
|
473
|
+
/** The page was still loading when the command returned. */
|
|
321
474
|
loading?: boolean | undefined;
|
|
322
475
|
ok: boolean;
|
|
476
|
+
/** The ids of tabs that opened while the command ran. */
|
|
477
|
+
opened?: CommandResultCase11OpenedList | undefined;
|
|
323
478
|
}
|
|
324
|
-
export type CommandResultCase12Command = "
|
|
479
|
+
export type CommandResultCase12Command = "mouse";
|
|
325
480
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
326
481
|
export type CommandResultCase12Effect = "none" | "applied" | "unknown";
|
|
327
|
-
/**
|
|
482
|
+
/** The ids of tabs that opened while the command ran. */
|
|
483
|
+
export type CommandResultCase12OpenedList = Array<string>;
|
|
484
|
+
/** Result of a mouse command. */
|
|
328
485
|
export interface CommandResultCase12 {
|
|
329
486
|
command: CommandResultCase12Command;
|
|
330
487
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
@@ -332,29 +489,47 @@ export interface CommandResultCase12 {
|
|
|
332
489
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
333
490
|
effect: CommandResultCase12Effect;
|
|
334
491
|
error?: CommandErrorInfo | undefined;
|
|
335
|
-
/** The
|
|
492
|
+
/** The page was still loading when the command returned. */
|
|
336
493
|
loading?: boolean | undefined;
|
|
337
494
|
ok: boolean;
|
|
495
|
+
/** The ids of tabs that opened while the command ran. */
|
|
496
|
+
opened?: CommandResultCase12OpenedList | undefined;
|
|
338
497
|
}
|
|
339
|
-
|
|
498
|
+
/** The mouse button that was let go. */
|
|
499
|
+
export type CommandResultCase13Button = "left" | "right" | "middle";
|
|
500
|
+
export type CommandResultCase13Command = "release";
|
|
340
501
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
341
502
|
export type CommandResultCase13Effect = "none" | "applied" | "unknown";
|
|
342
|
-
/**
|
|
503
|
+
/** The keys that were let go. */
|
|
504
|
+
export type CommandResultCase13KeysList = Array<string>;
|
|
505
|
+
/** The ids of tabs that opened while the command ran. */
|
|
506
|
+
export type CommandResultCase13OpenedList = Array<string>;
|
|
507
|
+
/** Result of a release command. */
|
|
343
508
|
export interface CommandResultCase13 {
|
|
509
|
+
/** The mouse button that was let go. */
|
|
510
|
+
button?: CommandResultCase13Button | undefined;
|
|
344
511
|
command: CommandResultCase13Command;
|
|
345
512
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
346
513
|
dialog?: CommandDialog | undefined;
|
|
347
514
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
348
515
|
effect: CommandResultCase13Effect;
|
|
349
516
|
error?: CommandErrorInfo | undefined;
|
|
350
|
-
/** The
|
|
517
|
+
/** The keys that were let go. */
|
|
518
|
+
keys?: CommandResultCase13KeysList | undefined;
|
|
519
|
+
/** The page was still loading when the command returned. */
|
|
351
520
|
loading?: boolean | undefined;
|
|
352
521
|
ok: boolean;
|
|
522
|
+
/** The ids of tabs that opened while the command ran. */
|
|
523
|
+
opened?: CommandResultCase13OpenedList | undefined;
|
|
353
524
|
}
|
|
354
|
-
export type CommandResultCase14Command = "
|
|
525
|
+
export type CommandResultCase14Command = "select";
|
|
355
526
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
356
527
|
export type CommandResultCase14Effect = "none" | "applied" | "unknown";
|
|
357
|
-
/**
|
|
528
|
+
/** The ids of tabs that opened while the command ran. */
|
|
529
|
+
export type CommandResultCase14OpenedList = Array<string>;
|
|
530
|
+
/** The values of the selected options. */
|
|
531
|
+
export type CommandResultCase14SelectedList = Array<string>;
|
|
532
|
+
/** Result of a select command. */
|
|
358
533
|
export interface CommandResultCase14 {
|
|
359
534
|
command: CommandResultCase14Command;
|
|
360
535
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
@@ -362,33 +537,40 @@ export interface CommandResultCase14 {
|
|
|
362
537
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
363
538
|
effect: CommandResultCase14Effect;
|
|
364
539
|
error?: CommandErrorInfo | undefined;
|
|
365
|
-
/** The
|
|
540
|
+
/** The page was still loading when the command returned. */
|
|
366
541
|
loading?: boolean | undefined;
|
|
367
542
|
ok: boolean;
|
|
543
|
+
/** The ids of tabs that opened while the command ran. */
|
|
544
|
+
opened?: CommandResultCase14OpenedList | undefined;
|
|
545
|
+
/** The values of the selected options. */
|
|
546
|
+
selected?: CommandResultCase14SelectedList | undefined;
|
|
368
547
|
}
|
|
369
|
-
export type CommandResultCase15Command = "
|
|
548
|
+
export type CommandResultCase15Command = "check";
|
|
370
549
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
371
550
|
export type CommandResultCase15Effect = "none" | "applied" | "unknown";
|
|
372
|
-
/** The
|
|
373
|
-
export type
|
|
374
|
-
/** Result of a
|
|
551
|
+
/** The ids of tabs that opened while the command ran. */
|
|
552
|
+
export type CommandResultCase15OpenedList = Array<string>;
|
|
553
|
+
/** Result of a check command. */
|
|
375
554
|
export interface CommandResultCase15 {
|
|
555
|
+
checked?: boolean | undefined;
|
|
376
556
|
command: CommandResultCase15Command;
|
|
377
557
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
378
558
|
dialog?: CommandDialog | undefined;
|
|
379
559
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
380
560
|
effect: CommandResultCase15Effect;
|
|
381
561
|
error?: CommandErrorInfo | undefined;
|
|
382
|
-
/** The
|
|
562
|
+
/** The page was still loading when the command returned. */
|
|
383
563
|
loading?: boolean | undefined;
|
|
384
564
|
ok: boolean;
|
|
385
|
-
/** The
|
|
386
|
-
|
|
565
|
+
/** The ids of tabs that opened while the command ran. */
|
|
566
|
+
opened?: CommandResultCase15OpenedList | undefined;
|
|
387
567
|
}
|
|
388
|
-
export type CommandResultCase16Command = "
|
|
568
|
+
export type CommandResultCase16Command = "uncheck";
|
|
389
569
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
390
570
|
export type CommandResultCase16Effect = "none" | "applied" | "unknown";
|
|
391
|
-
/**
|
|
571
|
+
/** The ids of tabs that opened while the command ran. */
|
|
572
|
+
export type CommandResultCase16OpenedList = Array<string>;
|
|
573
|
+
/** Result of a uncheck command. */
|
|
392
574
|
export interface CommandResultCase16 {
|
|
393
575
|
checked?: boolean | undefined;
|
|
394
576
|
command: CommandResultCase16Command;
|
|
@@ -397,31 +579,39 @@ export interface CommandResultCase16 {
|
|
|
397
579
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
398
580
|
effect: CommandResultCase16Effect;
|
|
399
581
|
error?: CommandErrorInfo | undefined;
|
|
400
|
-
/** The
|
|
582
|
+
/** The page was still loading when the command returned. */
|
|
401
583
|
loading?: boolean | undefined;
|
|
402
584
|
ok: boolean;
|
|
585
|
+
/** The ids of tabs that opened while the command ran. */
|
|
586
|
+
opened?: CommandResultCase16OpenedList | undefined;
|
|
403
587
|
}
|
|
404
|
-
export type CommandResultCase17Command = "
|
|
588
|
+
export type CommandResultCase17Command = "upload";
|
|
405
589
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
406
590
|
export type CommandResultCase17Effect = "none" | "applied" | "unknown";
|
|
407
|
-
|
|
591
|
+
export type CommandResultCase17FilesList = Array<string>;
|
|
592
|
+
/** The ids of tabs that opened while the command ran. */
|
|
593
|
+
export type CommandResultCase17OpenedList = Array<string>;
|
|
594
|
+
/** Result of a upload command. */
|
|
408
595
|
export interface CommandResultCase17 {
|
|
409
|
-
checked?: boolean | undefined;
|
|
410
596
|
command: CommandResultCase17Command;
|
|
411
597
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
412
598
|
dialog?: CommandDialog | undefined;
|
|
413
599
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
414
600
|
effect: CommandResultCase17Effect;
|
|
415
601
|
error?: CommandErrorInfo | undefined;
|
|
416
|
-
|
|
602
|
+
files?: CommandResultCase17FilesList | undefined;
|
|
603
|
+
/** The page was still loading when the command returned. */
|
|
417
604
|
loading?: boolean | undefined;
|
|
418
605
|
ok: boolean;
|
|
606
|
+
/** The ids of tabs that opened while the command ran. */
|
|
607
|
+
opened?: CommandResultCase17OpenedList | undefined;
|
|
419
608
|
}
|
|
420
|
-
export type CommandResultCase18Command = "
|
|
609
|
+
export type CommandResultCase18Command = "drag";
|
|
421
610
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
422
611
|
export type CommandResultCase18Effect = "none" | "applied" | "unknown";
|
|
423
|
-
|
|
424
|
-
|
|
612
|
+
/** The ids of tabs that opened while the command ran. */
|
|
613
|
+
export type CommandResultCase18OpenedList = Array<string>;
|
|
614
|
+
/** Result of a drag command. */
|
|
425
615
|
export interface CommandResultCase18 {
|
|
426
616
|
command: CommandResultCase18Command;
|
|
427
617
|
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
@@ -429,161 +619,186 @@ export interface CommandResultCase18 {
|
|
|
429
619
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
430
620
|
effect: CommandResultCase18Effect;
|
|
431
621
|
error?: CommandErrorInfo | undefined;
|
|
432
|
-
|
|
433
|
-
/** The command started a navigation that was still loading when it returned. */
|
|
622
|
+
/** The page was still loading when the command returned. */
|
|
434
623
|
loading?: boolean | undefined;
|
|
435
624
|
ok: boolean;
|
|
625
|
+
/** The ids of tabs that opened while the command ran. */
|
|
626
|
+
opened?: CommandResultCase18OpenedList | undefined;
|
|
436
627
|
}
|
|
437
|
-
export type CommandResultCase19Command = "
|
|
628
|
+
export type CommandResultCase19Command = "get";
|
|
438
629
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
439
630
|
export type CommandResultCase19Effect = "none" | "applied" | "unknown";
|
|
440
|
-
/**
|
|
631
|
+
/** What was read. It tells the type of value. */
|
|
632
|
+
export type CommandResultCase19What =
|
|
633
|
+
| "text"
|
|
634
|
+
| "html"
|
|
635
|
+
| "markdown"
|
|
636
|
+
| "value"
|
|
637
|
+
| "attr"
|
|
638
|
+
| "title"
|
|
639
|
+
| "url"
|
|
640
|
+
| "count"
|
|
641
|
+
| "box"
|
|
642
|
+
| "locator";
|
|
643
|
+
/** Result of a get command. */
|
|
441
644
|
export interface CommandResultCase19 {
|
|
442
645
|
command: CommandResultCase19Command;
|
|
443
|
-
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
444
|
-
dialog?: CommandDialog | undefined;
|
|
445
646
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
446
647
|
effect: CommandResultCase19Effect;
|
|
447
648
|
error?: CommandErrorInfo | undefined;
|
|
448
|
-
/** The
|
|
449
|
-
|
|
649
|
+
/** The value is a secret, so it is left out. */
|
|
650
|
+
masked?: boolean | undefined;
|
|
450
651
|
ok: boolean;
|
|
652
|
+
/** 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. */
|
|
653
|
+
value?: unknown | undefined;
|
|
654
|
+
/** What was read. It tells the type of value. */
|
|
655
|
+
what?: CommandResultCase19What | undefined;
|
|
451
656
|
}
|
|
452
|
-
export type CommandResultCase20Command = "
|
|
657
|
+
export type CommandResultCase20Command = "is";
|
|
453
658
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
454
659
|
export type CommandResultCase20Effect = "none" | "applied" | "unknown";
|
|
455
|
-
/** Result of a
|
|
660
|
+
/** Result of a is command. */
|
|
456
661
|
export interface CommandResultCase20 {
|
|
457
662
|
command: CommandResultCase20Command;
|
|
458
663
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
459
664
|
effect: CommandResultCase20Effect;
|
|
460
665
|
error?: CommandErrorInfo | undefined;
|
|
461
|
-
/** The value is a secret, so it is left out. */
|
|
462
|
-
masked?: boolean | undefined;
|
|
463
666
|
ok: boolean;
|
|
464
|
-
|
|
465
|
-
value?: unknown | undefined;
|
|
667
|
+
value?: boolean | undefined;
|
|
466
668
|
}
|
|
467
|
-
export type CommandResultCase21Command = "
|
|
669
|
+
export type CommandResultCase21Command = "wait";
|
|
468
670
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
469
671
|
export type CommandResultCase21Effect = "none" | "applied" | "unknown";
|
|
470
|
-
|
|
672
|
+
export type CommandResultCase21Waited = "ms" | "target" | "text" | "url" | "load" | "download";
|
|
673
|
+
/** Result of a wait command. */
|
|
471
674
|
export interface CommandResultCase21 {
|
|
675
|
+
bytes?: number | undefined;
|
|
472
676
|
command: CommandResultCase21Command;
|
|
473
677
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
474
678
|
effect: CommandResultCase21Effect;
|
|
475
679
|
error?: CommandErrorInfo | undefined;
|
|
680
|
+
/** The downloaded file, for download. */
|
|
681
|
+
file?: string | undefined;
|
|
476
682
|
ok: boolean;
|
|
477
|
-
|
|
683
|
+
waited?: CommandResultCase21Waited | undefined;
|
|
478
684
|
}
|
|
479
|
-
export type CommandResultCase22Command = "
|
|
685
|
+
export type CommandResultCase22Command = "screenshot";
|
|
480
686
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
481
687
|
export type CommandResultCase22Effect = "none" | "applied" | "unknown";
|
|
482
|
-
export type
|
|
483
|
-
/** Result of a
|
|
688
|
+
export type CommandResultCase22Format = "png" | "jpeg" | "webp";
|
|
689
|
+
/** Result of a screenshot command. */
|
|
484
690
|
export interface CommandResultCase22 {
|
|
485
|
-
bytes?: number | undefined;
|
|
486
691
|
command: CommandResultCase22Command;
|
|
692
|
+
data?: string | undefined;
|
|
487
693
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
488
694
|
effect: CommandResultCase22Effect;
|
|
489
695
|
error?: CommandErrorInfo | undefined;
|
|
490
|
-
|
|
491
|
-
file?: string | undefined;
|
|
696
|
+
format?: CommandResultCase22Format | undefined;
|
|
492
697
|
ok: boolean;
|
|
493
|
-
waited?: CommandResultCase22Waited | undefined;
|
|
494
698
|
}
|
|
495
|
-
export type CommandResultCase23Command = "
|
|
699
|
+
export type CommandResultCase23Command = "eval";
|
|
496
700
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
497
701
|
export type CommandResultCase23Effect = "none" | "applied" | "unknown";
|
|
498
|
-
|
|
499
|
-
|
|
702
|
+
/** The ids of tabs that opened while the command ran. */
|
|
703
|
+
export type CommandResultCase23OpenedList = Array<string>;
|
|
704
|
+
/** Result of a eval command. */
|
|
500
705
|
export interface CommandResultCase23 {
|
|
501
706
|
command: CommandResultCase23Command;
|
|
502
|
-
|
|
707
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
708
|
+
dialog?: CommandDialog | undefined;
|
|
503
709
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
504
710
|
effect: CommandResultCase23Effect;
|
|
505
711
|
error?: CommandErrorInfo | undefined;
|
|
506
|
-
|
|
712
|
+
/** The page was still loading when the command returned. */
|
|
713
|
+
loading?: boolean | undefined;
|
|
507
714
|
ok: boolean;
|
|
715
|
+
/** The ids of tabs that opened while the command ran. */
|
|
716
|
+
opened?: CommandResultCase23OpenedList | undefined;
|
|
717
|
+
/** The result of the script as JSON. */
|
|
718
|
+
value?: unknown | undefined;
|
|
508
719
|
}
|
|
509
|
-
export type CommandResultCase24Command = "
|
|
720
|
+
export type CommandResultCase24Command = "pdf";
|
|
510
721
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
511
722
|
export type CommandResultCase24Effect = "none" | "applied" | "unknown";
|
|
512
|
-
|
|
723
|
+
export type CommandResultCase24Format = "pdf";
|
|
724
|
+
/** Result of a pdf command. */
|
|
513
725
|
export interface CommandResultCase24 {
|
|
514
726
|
command: CommandResultCase24Command;
|
|
515
|
-
|
|
516
|
-
dialog?: CommandDialog | undefined;
|
|
727
|
+
data?: string | undefined;
|
|
517
728
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
518
729
|
effect: CommandResultCase24Effect;
|
|
519
730
|
error?: CommandErrorInfo | undefined;
|
|
520
|
-
|
|
521
|
-
loading?: boolean | undefined;
|
|
731
|
+
format?: CommandResultCase24Format | undefined;
|
|
522
732
|
ok: boolean;
|
|
523
|
-
/** The result of the script as JSON. */
|
|
524
|
-
value?: unknown | undefined;
|
|
525
733
|
}
|
|
526
|
-
export type CommandResultCase25Command = "
|
|
734
|
+
export type CommandResultCase25Command = "scroll";
|
|
527
735
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
528
736
|
export type CommandResultCase25Effect = "none" | "applied" | "unknown";
|
|
529
|
-
|
|
530
|
-
/** Result of a pdf command. */
|
|
737
|
+
/** Result of a scroll command. */
|
|
531
738
|
export interface CommandResultCase25 {
|
|
532
739
|
command: CommandResultCase25Command;
|
|
533
|
-
data?: string | undefined;
|
|
534
740
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
535
741
|
effect: CommandResultCase25Effect;
|
|
536
742
|
error?: CommandErrorInfo | undefined;
|
|
537
|
-
|
|
743
|
+
moved?: boolean | undefined;
|
|
538
744
|
ok: boolean;
|
|
745
|
+
x?: number | undefined;
|
|
746
|
+
y?: number | undefined;
|
|
539
747
|
}
|
|
540
|
-
export type CommandResultCase26Command = "
|
|
748
|
+
export type CommandResultCase26Command = "find";
|
|
541
749
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
542
750
|
export type CommandResultCase26Effect = "none" | "applied" | "unknown";
|
|
543
|
-
|
|
751
|
+
export interface CommandResultCase26MatchesItem {
|
|
752
|
+
name: string;
|
|
753
|
+
ref: string;
|
|
754
|
+
role: string;
|
|
755
|
+
}
|
|
756
|
+
export type CommandResultCase26MatchesList = Array<CommandResultCase26MatchesItem>;
|
|
757
|
+
/** Result of a find command. */
|
|
544
758
|
export interface CommandResultCase26 {
|
|
545
759
|
command: CommandResultCase26Command;
|
|
760
|
+
count?: number | undefined;
|
|
546
761
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
547
762
|
effect: CommandResultCase26Effect;
|
|
548
763
|
error?: CommandErrorInfo | undefined;
|
|
549
|
-
|
|
764
|
+
matches?: CommandResultCase26MatchesList | undefined;
|
|
550
765
|
ok: boolean;
|
|
551
|
-
x?: number | undefined;
|
|
552
|
-
y?: number | undefined;
|
|
553
766
|
}
|
|
554
|
-
export type CommandResultCase27Command = "
|
|
767
|
+
export type CommandResultCase27Command = "tab";
|
|
555
768
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
556
769
|
export type CommandResultCase27Effect = "none" | "applied" | "unknown";
|
|
557
|
-
export
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
role: string;
|
|
561
|
-
}
|
|
562
|
-
export type CommandResultCase27MatchesList = Array<CommandResultCase27MatchesItem>;
|
|
563
|
-
/** Result of a find command. */
|
|
770
|
+
export type CommandResultCase27TabsItem = RunCommandsResponsePage;
|
|
771
|
+
export type CommandResultCase27TabsList = Array<RunCommandsResponsePage>;
|
|
772
|
+
/** Result of a tab command. */
|
|
564
773
|
export interface CommandResultCase27 {
|
|
565
774
|
command: CommandResultCase27Command;
|
|
566
|
-
count?: number | undefined;
|
|
567
775
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
568
776
|
effect: CommandResultCase27Effect;
|
|
569
777
|
error?: CommandErrorInfo | undefined;
|
|
570
|
-
|
|
778
|
+
/** The page was still loading when the command returned. */
|
|
779
|
+
loading?: boolean | undefined;
|
|
571
780
|
ok: boolean;
|
|
781
|
+
tab?: string | undefined;
|
|
782
|
+
tabs?: CommandResultCase27TabsList | undefined;
|
|
572
783
|
}
|
|
573
|
-
export type CommandResultCase28Command = "
|
|
784
|
+
export type CommandResultCase28Command = "dialog";
|
|
574
785
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
575
786
|
export type CommandResultCase28Effect = "none" | "applied" | "unknown";
|
|
576
|
-
|
|
577
|
-
export type
|
|
578
|
-
/** Result of a
|
|
787
|
+
/** The ids of tabs that opened while the command ran. */
|
|
788
|
+
export type CommandResultCase28OpenedList = Array<string>;
|
|
789
|
+
/** Result of a dialog command. */
|
|
579
790
|
export interface CommandResultCase28 {
|
|
580
791
|
command: CommandResultCase28Command;
|
|
792
|
+
/** A dialog that the command opened. It blocks the tab until it closes. */
|
|
793
|
+
dialog?: CommandDialog | undefined;
|
|
581
794
|
/** What happened to the page: nothing, a change, or a possible change. */
|
|
582
795
|
effect: CommandResultCase28Effect;
|
|
583
796
|
error?: CommandErrorInfo | undefined;
|
|
797
|
+
/** The page was still loading when the command returned. */
|
|
798
|
+
loading?: boolean | undefined;
|
|
584
799
|
ok: boolean;
|
|
585
|
-
|
|
586
|
-
|
|
800
|
+
/** The ids of tabs that opened while the command ran. */
|
|
801
|
+
opened?: CommandResultCase28OpenedList | undefined;
|
|
587
802
|
}
|
|
588
803
|
/** Result of one command, with the fields of that command. */
|
|
589
804
|
export type CommandResult =
|
|
@@ -617,33 +832,70 @@ export type CommandResult =
|
|
|
617
832
|
| CommandResultCase27
|
|
618
833
|
| CommandResultCase28;
|
|
619
834
|
export type RunCommandsResponseResultsList = Array<CommandResult>;
|
|
835
|
+
export type RunCommandsResponseState = "running" | "completed" | "failed" | "cancelled" | "timeout";
|
|
620
836
|
export interface RunCommandsResponse {
|
|
621
837
|
bodyExpired?: boolean | undefined;
|
|
622
838
|
/** A dialog that is open on the tab and blocks it until it closes. */
|
|
623
839
|
dialog?: CommandDialog | undefined;
|
|
840
|
+
/** What happened to the page: nothing, a change, or a possible change. */
|
|
841
|
+
effect: RunCommandsResponseEffect;
|
|
624
842
|
/** 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. */
|
|
625
843
|
epochChanged?: boolean | undefined;
|
|
626
|
-
|
|
627
|
-
|
|
844
|
+
/** Tabs with keys or a mouse button still held down. Left out when nothing is held. */
|
|
845
|
+
held?: RunCommandsResponseHeldList | undefined;
|
|
846
|
+
/** The id of this execution. Use it to get or cancel the execution. */
|
|
628
847
|
id: string;
|
|
629
848
|
/** Send it as after in the next request. */
|
|
630
849
|
next?: string | undefined;
|
|
631
850
|
observe?: RunCommandsResponseObserve | undefined;
|
|
632
851
|
/** The tab the execution used. */
|
|
633
852
|
page: RunCommandsResponsePage | null;
|
|
853
|
+
/** Commands started. */
|
|
854
|
+
ran: number;
|
|
855
|
+
/** This is the stored result of an earlier request. Nothing ran again. */
|
|
856
|
+
replayed: boolean;
|
|
634
857
|
results: RunCommandsResponseResultsList;
|
|
858
|
+
state: RunCommandsResponseState;
|
|
859
|
+
/** Why the execution stopped early, such as a cancel, a timeout, or a browser restart. A failed command has its error in results instead. */
|
|
860
|
+
stopped?: CommandErrorInfo | undefined;
|
|
635
861
|
}
|
|
636
862
|
/** PEM-encoded root CA certificates to trust in this session. THIS IS CURRENTLY AN EXPERIMENTAL FEATURE. */
|
|
637
863
|
export type CreateSessionRequestCaCertificatesList = Array<string>;
|
|
864
|
+
export type CreateSessionRequestCredentialsBindingsItemCase1AllowedOriginsList = Array<string>;
|
|
865
|
+
export interface CreateSessionRequestCredentialsBindingsItemCase1 {
|
|
866
|
+
allowedOrigins: CreateSessionRequestCredentialsBindingsItemCase1AllowedOriginsList;
|
|
867
|
+
reference: string;
|
|
868
|
+
}
|
|
869
|
+
export type CreateSessionRequestCredentialsBindingsItem =
|
|
870
|
+
| string
|
|
871
|
+
| CreateSessionRequestCredentialsBindingsItemCase1;
|
|
872
|
+
/** At most 100 bindings. KV references may use { reference, allowedOrigins }, with at most 20 canonical HTTP(S) origins; omitted or empty origins match nothing. */
|
|
873
|
+
export type CreateSessionRequestCredentialsBindingsList =
|
|
874
|
+
Array<CreateSessionRequestCredentialsBindingsItem>;
|
|
875
|
+
/** 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). */
|
|
876
|
+
export type CreateSessionRequestCredentialsCredentialIdsList = Array<string>;
|
|
877
|
+
/** `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. */
|
|
878
|
+
export type CreateSessionRequestCredentialsLookup = "implicit" | "explicit";
|
|
638
879
|
/** Optional allowlist of credential origins to inject into this session. */
|
|
639
880
|
export type CreateSessionRequestCredentialsOriginsList = Array<string>;
|
|
640
|
-
/** Configuration for session credentials */
|
|
881
|
+
/** 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`). */
|
|
641
882
|
export interface CreateSessionRequestCredentials {
|
|
642
883
|
autoSubmit?: boolean | undefined;
|
|
884
|
+
/** At most 100 bindings. KV references may use { reference, allowedOrigins }, with at most 20 canonical HTTP(S) origins; omitted or empty origins match nothing. */
|
|
885
|
+
bindings?: CreateSessionRequestCredentialsBindingsList | undefined;
|
|
643
886
|
blurFields?: boolean | undefined;
|
|
887
|
+
/** 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). */
|
|
888
|
+
credentialIds?: CreateSessionRequestCredentialsCredentialIdsList | undefined;
|
|
644
889
|
/** Credential provider to use for runtime credential resolution. Defaults to "steel". */
|
|
645
890
|
credentialProvider?: string | undefined;
|
|
891
|
+
/** Allow any script on the page, including third-party scripts, to request credential form operations through DOM events. Disabled by default. */
|
|
892
|
+
domTrigger?: boolean | undefined;
|
|
893
|
+
/** Set to false to disable credential injection for this session. */
|
|
894
|
+
enabled?: boolean | undefined;
|
|
895
|
+
/** Deprecated and ignored: credentials only ever match their own origin or their additionalOrigins. */
|
|
646
896
|
exactOrigin?: boolean | undefined;
|
|
897
|
+
/** `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. */
|
|
898
|
+
lookup?: CreateSessionRequestCredentialsLookup | (string & {}) | undefined;
|
|
647
899
|
/** Optional allowlist of credential origins to inject into this session. */
|
|
648
900
|
origins?: CreateSessionRequestCredentialsOriginsList | undefined;
|
|
649
901
|
}
|
|
@@ -2179,13 +2431,13 @@ export type CreateSessionRequestUseProxyCase0Case1 =
|
|
|
2179
2431
|
export type CreateSessionRequestUseProxyCase0 = boolean | CreateSessionRequestUseProxyCase0Case1;
|
|
2180
2432
|
export type CreateSessionRequestUseProxy = CreateSessionRequestUseProxyCase0 | unknown;
|
|
2181
2433
|
export interface CreateSessionRequest {
|
|
2182
|
-
/** Block ads in the browser session. Default is
|
|
2434
|
+
/** Block ads in the browser session. Default is true. */
|
|
2183
2435
|
blockAds?: boolean | undefined;
|
|
2184
2436
|
/** PEM-encoded root CA certificates to trust in this session. THIS IS CURRENTLY AN EXPERIMENTAL FEATURE. */
|
|
2185
2437
|
caCertificates?: CreateSessionRequestCaCertificatesList | undefined;
|
|
2186
2438
|
/** Number of sessions to create concurrently (check your plan limit) */
|
|
2187
2439
|
concurrency?: number | undefined;
|
|
2188
|
-
/** Configuration for session credentials */
|
|
2440
|
+
/** 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`). */
|
|
2189
2441
|
credentials?: CreateSessionRequestCredentials | undefined;
|
|
2190
2442
|
/** Configuration for the debug URL and session viewer. Controls interaction capabilities, cursor visibility, and other debug-related settings. */
|
|
2191
2443
|
debugConfig?: CreateSessionRequestDebugConfig | undefined;
|
|
@@ -2217,7 +2469,7 @@ export interface CreateSessionRequest {
|
|
|
2217
2469
|
profileId?: string | undefined;
|
|
2218
2470
|
/** The project to create the session in. When provided, the session namespace is resolved from the project. */
|
|
2219
2471
|
projectId?: string | undefined;
|
|
2220
|
-
/** 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 */
|
|
2472
|
+
/** 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 */
|
|
2221
2473
|
proxyUrl?: string | undefined;
|
|
2222
2474
|
/** Record the headful session for playback after it ends. Default is true. Disabling recording does not affect live WHEP viewing. */
|
|
2223
2475
|
recording?: boolean | undefined;
|
|
@@ -2225,13 +2477,13 @@ export interface CreateSessionRequest {
|
|
|
2225
2477
|
region?: unknown | undefined;
|
|
2226
2478
|
/** Session context data to be used in the created session. Sessions will start with an empty context by default. */
|
|
2227
2479
|
sessionContext?: CreateSessionRequestSessionContext | undefined;
|
|
2228
|
-
/**
|
|
2480
|
+
/** 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`. */
|
|
2229
2481
|
sessionId?: string | undefined;
|
|
2230
2482
|
/** Enable automatic captcha solving. Default is false. */
|
|
2231
2483
|
solveCaptcha?: boolean | undefined;
|
|
2232
2484
|
/** Stealth configuration for the session */
|
|
2233
2485
|
stealthConfig?: CreateSessionRequestStealthConfig | undefined;
|
|
2234
|
-
/** Session timeout duration in milliseconds. Default is 300000 (5 minutes). */
|
|
2486
|
+
/** 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. */
|
|
2235
2487
|
timeout?: number | undefined;
|
|
2236
2488
|
useProxy?: CreateSessionRequestUseProxy | undefined;
|
|
2237
2489
|
/** Custom user agent string for the browser session */
|
|
@@ -2365,6 +2617,17 @@ export interface SessionResponse {
|
|
|
2365
2617
|
/** URL for the session's WebSocket connection */
|
|
2366
2618
|
websocketUrl: string | Redacted.Redacted<string>;
|
|
2367
2619
|
}
|
|
2620
|
+
export interface DetachSessionCredentialRequest {
|
|
2621
|
+
/** The session id */
|
|
2622
|
+
id: string;
|
|
2623
|
+
/** The credential id to detach */
|
|
2624
|
+
credentialId: string;
|
|
2625
|
+
}
|
|
2626
|
+
export interface DetachSessionVaultBindingRequest {
|
|
2627
|
+
id: string;
|
|
2628
|
+
/** Vault or item reference to detach */
|
|
2629
|
+
reference: string;
|
|
2630
|
+
}
|
|
2368
2631
|
export type ComputerActionRequestCase0Action = "move_mouse";
|
|
2369
2632
|
/** X and Y coordinates [x, y] */
|
|
2370
2633
|
export type ComputerActionRequestCase0CoordinatesList = Array<number>;
|
|
@@ -2700,7 +2963,11 @@ export type GetSessionEventsResponse2 = GetSessionEventsResponse;
|
|
|
2700
2963
|
export interface GetSessionHlsPlaylistRequest {
|
|
2701
2964
|
id: string;
|
|
2702
2965
|
}
|
|
2703
|
-
export
|
|
2966
|
+
export interface GetSessionHlsPlaylistResponse {
|
|
2967
|
+
body: BinaryStream;
|
|
2968
|
+
/** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
|
|
2969
|
+
contentType?: string | undefined;
|
|
2970
|
+
}
|
|
2704
2971
|
export interface GetSessionLiveDetailsRequest {
|
|
2705
2972
|
id: string;
|
|
2706
2973
|
}
|
|
@@ -2769,6 +3036,9 @@ export interface SessionSignalCatalogResponse {
|
|
|
2769
3036
|
semantics: string;
|
|
2770
3037
|
signals: SessionSignalCatalogResponseSignalsList;
|
|
2771
3038
|
}
|
|
3039
|
+
export interface ListSessionCredentialsRequest {
|
|
3040
|
+
id: string;
|
|
3041
|
+
}
|
|
2772
3042
|
export type ListSessionsRequestStatus = "live" | "released" | "failed";
|
|
2773
3043
|
export type ListSessionsRequestReleaseReason =
|
|
2774
3044
|
| "user_requested"
|
|
@@ -2950,6 +3220,26 @@ export interface ReleaseSessionResponse {
|
|
|
2950
3220
|
/** Indicates if the session was successfully released */
|
|
2951
3221
|
success: boolean;
|
|
2952
3222
|
}
|
|
3223
|
+
export type ReplaceSessionCredentialsRequestBindingsItemCase1AllowedOriginsList = Array<string>;
|
|
3224
|
+
export interface ReplaceSessionCredentialsRequestBindingsItemCase1 {
|
|
3225
|
+
allowedOrigins: ReplaceSessionCredentialsRequestBindingsItemCase1AllowedOriginsList;
|
|
3226
|
+
reference: string;
|
|
3227
|
+
}
|
|
3228
|
+
export type ReplaceSessionCredentialsRequestBindingsItem =
|
|
3229
|
+
| string
|
|
3230
|
+
| ReplaceSessionCredentialsRequestBindingsItemCase1;
|
|
3231
|
+
/** At most 100 bindings; KV bindings may specify allowedOrigins. */
|
|
3232
|
+
export type ReplaceSessionCredentialsRequestBindingsList =
|
|
3233
|
+
Array<ReplaceSessionCredentialsRequestBindingsItem>;
|
|
3234
|
+
/** Ids of credentials (Secrets of kind `credential`) in the session's project. Binding makes the session's lookup `explicit` for good. */
|
|
3235
|
+
export type ReplaceSessionCredentialsRequestCredentialIdsList = Array<string>;
|
|
3236
|
+
export interface ReplaceSessionCredentialsRequest {
|
|
3237
|
+
id: string;
|
|
3238
|
+
/** At most 100 bindings; KV bindings may specify allowedOrigins. */
|
|
3239
|
+
bindings?: ReplaceSessionCredentialsRequestBindingsList | undefined;
|
|
3240
|
+
/** Ids of credentials (Secrets of kind `credential`) in the session's project. Binding makes the session's lookup `explicit` for good. */
|
|
3241
|
+
credentialIds?: ReplaceSessionCredentialsRequestCredentialIdsList | undefined;
|
|
3242
|
+
}
|
|
2953
3243
|
export type ReplaceSessionMetadataRequestMetadataValue = string | number | boolean;
|
|
2954
3244
|
/** 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. */
|
|
2955
3245
|
export type ReplaceSessionMetadataRequestMetadataMap = {
|
|
@@ -3008,6 +3298,8 @@ export interface CommandCase4 {
|
|
|
3008
3298
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3009
3299
|
tab?: string | undefined;
|
|
3010
3300
|
}
|
|
3301
|
+
/** left by default. */
|
|
3302
|
+
export type CommandCase5Button = "left" | "right" | "middle";
|
|
3011
3303
|
export type CommandCase5Command = "click";
|
|
3012
3304
|
/** Fails the command when the element does not have this role or name. */
|
|
3013
3305
|
export interface CommandExpectation {
|
|
@@ -3038,6 +3330,10 @@ export type CommandFrameCase1List = Array<CommandTarget>;
|
|
|
3038
3330
|
export type CommandFrame = CommandTarget | CommandFrameCase1List;
|
|
3039
3331
|
/** Clicks the element with the mouse. */
|
|
3040
3332
|
export interface CommandCase5 {
|
|
3333
|
+
/** left by default. */
|
|
3334
|
+
button?: CommandCase5Button | (string & {}) | undefined;
|
|
3335
|
+
/** 2 makes a double click and 3 a triple click. 1 by default. */
|
|
3336
|
+
clicks?: number | undefined;
|
|
3041
3337
|
command: CommandCase5Command;
|
|
3042
3338
|
expect?: CommandExpectation | undefined;
|
|
3043
3339
|
frame?: CommandFrame | undefined;
|
|
@@ -3045,8 +3341,8 @@ export interface CommandCase5 {
|
|
|
3045
3341
|
tab?: string | undefined;
|
|
3046
3342
|
target: CommandTarget;
|
|
3047
3343
|
}
|
|
3048
|
-
export type CommandCase6Command = "
|
|
3049
|
-
/**
|
|
3344
|
+
export type CommandCase6Command = "hover";
|
|
3345
|
+
/** Moves the mouse onto the element. */
|
|
3050
3346
|
export interface CommandCase6 {
|
|
3051
3347
|
command: CommandCase6Command;
|
|
3052
3348
|
expect?: CommandExpectation | undefined;
|
|
@@ -3055,8 +3351,8 @@ export interface CommandCase6 {
|
|
|
3055
3351
|
tab?: string | undefined;
|
|
3056
3352
|
target: CommandTarget;
|
|
3057
3353
|
}
|
|
3058
|
-
export type CommandCase7Command = "
|
|
3059
|
-
/**
|
|
3354
|
+
export type CommandCase7Command = "focus";
|
|
3355
|
+
/** Focuses the element. */
|
|
3060
3356
|
export interface CommandCase7 {
|
|
3061
3357
|
command: CommandCase7Command;
|
|
3062
3358
|
expect?: CommandExpectation | undefined;
|
|
@@ -3065,22 +3361,12 @@ export interface CommandCase7 {
|
|
|
3065
3361
|
tab?: string | undefined;
|
|
3066
3362
|
target: CommandTarget;
|
|
3067
3363
|
}
|
|
3068
|
-
export type CommandCase8Command = "
|
|
3069
|
-
/** Focuses the element. */
|
|
3070
|
-
export interface CommandCase8 {
|
|
3071
|
-
command: CommandCase8Command;
|
|
3072
|
-
expect?: CommandExpectation | undefined;
|
|
3073
|
-
frame?: CommandFrame | undefined;
|
|
3074
|
-
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3075
|
-
tab?: string | undefined;
|
|
3076
|
-
target: CommandTarget;
|
|
3077
|
-
}
|
|
3078
|
-
export type CommandCase9Command = "type";
|
|
3364
|
+
export type CommandCase8Command = "type";
|
|
3079
3365
|
/** Types text one key press at a time, after the current content. */
|
|
3080
|
-
export interface
|
|
3366
|
+
export interface CommandCase8 {
|
|
3081
3367
|
/** Replace the current content. */
|
|
3082
3368
|
clear?: boolean | undefined;
|
|
3083
|
-
command:
|
|
3369
|
+
command: CommandCase8Command;
|
|
3084
3370
|
/** Milliseconds to wait between key presses. */
|
|
3085
3371
|
delay?: number | undefined;
|
|
3086
3372
|
expect?: CommandExpectation | undefined;
|
|
@@ -3090,10 +3376,10 @@ export interface CommandCase9 {
|
|
|
3090
3376
|
target: CommandTarget;
|
|
3091
3377
|
text: string;
|
|
3092
3378
|
}
|
|
3093
|
-
export type
|
|
3379
|
+
export type CommandCase9Command = "fill";
|
|
3094
3380
|
/** Replaces the content of a field in one step, without key presses. */
|
|
3095
|
-
export interface
|
|
3096
|
-
command:
|
|
3381
|
+
export interface CommandCase9 {
|
|
3382
|
+
command: CommandCase9Command;
|
|
3097
3383
|
expect?: CommandExpectation | undefined;
|
|
3098
3384
|
frame?: CommandFrame | undefined;
|
|
3099
3385
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
@@ -3101,10 +3387,10 @@ export interface CommandCase10 {
|
|
|
3101
3387
|
target: CommandTarget;
|
|
3102
3388
|
value: string;
|
|
3103
3389
|
}
|
|
3104
|
-
export type
|
|
3105
|
-
/** Presses a key, such as Enter, or a combination such as Control+a. */
|
|
3106
|
-
export interface
|
|
3107
|
-
command:
|
|
3390
|
+
export type CommandCase10Command = "press";
|
|
3391
|
+
/** 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. */
|
|
3392
|
+
export interface CommandCase10 {
|
|
3393
|
+
command: CommandCase10Command;
|
|
3108
3394
|
expect?: CommandExpectation | undefined;
|
|
3109
3395
|
frame?: CommandFrame | undefined;
|
|
3110
3396
|
key: string;
|
|
@@ -3112,31 +3398,33 @@ export interface CommandCase11 {
|
|
|
3112
3398
|
tab?: string | undefined;
|
|
3113
3399
|
target?: CommandTarget | undefined;
|
|
3114
3400
|
}
|
|
3115
|
-
export type
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3401
|
+
export type CommandCase11Action = "down" | "up";
|
|
3402
|
+
export type CommandCase11Command = "keyboard";
|
|
3403
|
+
/** Holds a key down, or lets go of a key held down. */
|
|
3404
|
+
export interface CommandCase11 {
|
|
3405
|
+
action: CommandCase11Action | (string & {});
|
|
3406
|
+
command: CommandCase11Command;
|
|
3407
|
+
/** One key, not a combination such as Control+a. */
|
|
3119
3408
|
key: string;
|
|
3120
3409
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3121
3410
|
tab?: string | undefined;
|
|
3122
3411
|
}
|
|
3123
|
-
export type
|
|
3124
|
-
/** Lets go of
|
|
3125
|
-
export interface
|
|
3126
|
-
command:
|
|
3127
|
-
key: string;
|
|
3412
|
+
export type CommandCase12Command = "release";
|
|
3413
|
+
/** Lets go of every key and mouse button held on the tab. */
|
|
3414
|
+
export interface CommandCase12 {
|
|
3415
|
+
command: CommandCase12Command;
|
|
3128
3416
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3129
3417
|
tab?: string | undefined;
|
|
3130
3418
|
}
|
|
3131
|
-
export type
|
|
3132
|
-
export type
|
|
3133
|
-
export type
|
|
3419
|
+
export type CommandCase13Action = "move" | "down" | "up" | "click" | "wheel";
|
|
3420
|
+
export type CommandCase13Button = "left" | "right" | "middle";
|
|
3421
|
+
export type CommandCase13Command = "mouse";
|
|
3134
3422
|
/** Mouse input at a point in CSS pixels of the visible part of the page, for pages without useful elements such as a canvas. */
|
|
3135
|
-
export interface
|
|
3136
|
-
action:
|
|
3137
|
-
button?:
|
|
3423
|
+
export interface CommandCase13 {
|
|
3424
|
+
action: CommandCase13Action | (string & {});
|
|
3425
|
+
button?: CommandCase13Button | (string & {}) | undefined;
|
|
3138
3426
|
clicks?: number | undefined;
|
|
3139
|
-
command:
|
|
3427
|
+
command: CommandCase13Command;
|
|
3140
3428
|
deltaX?: number | undefined;
|
|
3141
3429
|
deltaY?: number | undefined;
|
|
3142
3430
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
@@ -3144,64 +3432,64 @@ export interface CommandCase14 {
|
|
|
3144
3432
|
x?: number | undefined;
|
|
3145
3433
|
y?: number | undefined;
|
|
3146
3434
|
}
|
|
3147
|
-
export type
|
|
3148
|
-
export type
|
|
3149
|
-
export type
|
|
3435
|
+
export type CommandCase14Command = "select";
|
|
3436
|
+
export type CommandCase14ValuesCase1List = Array<string>;
|
|
3437
|
+
export type CommandCase14Values = string | CommandCase14ValuesCase1List;
|
|
3150
3438
|
/** Selects options. Matches by value, then by label. */
|
|
3151
|
-
export interface
|
|
3152
|
-
command:
|
|
3439
|
+
export interface CommandCase14 {
|
|
3440
|
+
command: CommandCase14Command;
|
|
3153
3441
|
expect?: CommandExpectation | undefined;
|
|
3154
3442
|
frame?: CommandFrame | undefined;
|
|
3155
3443
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3156
3444
|
tab?: string | undefined;
|
|
3157
3445
|
target: CommandTarget;
|
|
3158
|
-
values:
|
|
3446
|
+
values: CommandCase14Values;
|
|
3159
3447
|
}
|
|
3160
|
-
export type
|
|
3448
|
+
export type CommandCase15Command = "check";
|
|
3161
3449
|
/** Checks a checkbox, radio button, switch, or toggle button. */
|
|
3162
|
-
export interface
|
|
3163
|
-
command:
|
|
3450
|
+
export interface CommandCase15 {
|
|
3451
|
+
command: CommandCase15Command;
|
|
3164
3452
|
expect?: CommandExpectation | undefined;
|
|
3165
3453
|
frame?: CommandFrame | undefined;
|
|
3166
3454
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3167
3455
|
tab?: string | undefined;
|
|
3168
3456
|
target: CommandTarget;
|
|
3169
3457
|
}
|
|
3170
|
-
export type
|
|
3171
|
-
export type
|
|
3172
|
-
export type
|
|
3458
|
+
export type CommandCase16Command = "upload";
|
|
3459
|
+
export type CommandCase16FilesCase1List = Array<string>;
|
|
3460
|
+
export type CommandCase16Files = string | CommandCase16FilesCase1List;
|
|
3173
3461
|
/** Sets the files of a file input. Upload the files to the session first. */
|
|
3174
|
-
export interface
|
|
3175
|
-
command:
|
|
3462
|
+
export interface CommandCase16 {
|
|
3463
|
+
command: CommandCase16Command;
|
|
3176
3464
|
expect?: CommandExpectation | undefined;
|
|
3177
|
-
files:
|
|
3465
|
+
files: CommandCase16Files;
|
|
3178
3466
|
frame?: CommandFrame | undefined;
|
|
3179
3467
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3180
3468
|
tab?: string | undefined;
|
|
3181
3469
|
target: CommandTarget;
|
|
3182
3470
|
}
|
|
3183
|
-
export type
|
|
3471
|
+
export type CommandCase17Command = "drag";
|
|
3184
3472
|
/** Drags one element onto another with the mouse. */
|
|
3185
|
-
export interface
|
|
3186
|
-
command:
|
|
3473
|
+
export interface CommandCase17 {
|
|
3474
|
+
command: CommandCase17Command;
|
|
3187
3475
|
frame?: CommandFrame | undefined;
|
|
3188
3476
|
source: CommandTarget;
|
|
3189
3477
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3190
3478
|
tab?: string | undefined;
|
|
3191
3479
|
target: CommandTarget;
|
|
3192
3480
|
}
|
|
3193
|
-
export type
|
|
3481
|
+
export type CommandCase18Command = "uncheck";
|
|
3194
3482
|
/** Unchecks a checkbox, switch, or toggle button. */
|
|
3195
|
-
export interface
|
|
3196
|
-
command:
|
|
3483
|
+
export interface CommandCase18 {
|
|
3484
|
+
command: CommandCase18Command;
|
|
3197
3485
|
expect?: CommandExpectation | undefined;
|
|
3198
3486
|
frame?: CommandFrame | undefined;
|
|
3199
3487
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3200
3488
|
tab?: string | undefined;
|
|
3201
3489
|
target: CommandTarget;
|
|
3202
3490
|
}
|
|
3203
|
-
export type
|
|
3204
|
-
export type
|
|
3491
|
+
export type CommandCase19Command = "get";
|
|
3492
|
+
export type CommandCase19What =
|
|
3205
3493
|
| "text"
|
|
3206
3494
|
| "html"
|
|
3207
3495
|
| "markdown"
|
|
@@ -3213,42 +3501,42 @@ export type CommandCase20What =
|
|
|
3213
3501
|
| "box"
|
|
3214
3502
|
| "locator";
|
|
3215
3503
|
/** Reads something from the page or an element. */
|
|
3216
|
-
export interface
|
|
3504
|
+
export interface CommandCase19 {
|
|
3217
3505
|
/** The attribute to read with attr. */
|
|
3218
3506
|
attribute?: string | undefined;
|
|
3219
|
-
command:
|
|
3507
|
+
command: CommandCase19Command;
|
|
3220
3508
|
expect?: CommandExpectation | undefined;
|
|
3221
3509
|
frame?: CommandFrame | undefined;
|
|
3222
3510
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3223
3511
|
tab?: string | undefined;
|
|
3224
3512
|
target?: CommandTarget | undefined;
|
|
3225
|
-
what:
|
|
3513
|
+
what: CommandCase19What | (string & {});
|
|
3226
3514
|
}
|
|
3227
|
-
export type
|
|
3228
|
-
export type
|
|
3515
|
+
export type CommandCase20Command = "is";
|
|
3516
|
+
export type CommandCase20What = "visible" | "enabled" | "checked";
|
|
3229
3517
|
/** Checks the state of an element. */
|
|
3230
|
-
export interface
|
|
3231
|
-
command:
|
|
3518
|
+
export interface CommandCase20 {
|
|
3519
|
+
command: CommandCase20Command;
|
|
3232
3520
|
expect?: CommandExpectation | undefined;
|
|
3233
3521
|
frame?: CommandFrame | undefined;
|
|
3234
3522
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3235
3523
|
tab?: string | undefined;
|
|
3236
3524
|
target: CommandTarget;
|
|
3237
|
-
what:
|
|
3525
|
+
what: CommandCase20What | (string & {});
|
|
3238
3526
|
}
|
|
3239
|
-
export type
|
|
3240
|
-
export type
|
|
3241
|
-
export type
|
|
3527
|
+
export type CommandCase21Command = "wait";
|
|
3528
|
+
export type CommandCase21Load = "load" | "domcontentloaded" | "networkidle";
|
|
3529
|
+
export type CommandCase21State = "visible" | "hidden" | "attached" | "detached";
|
|
3242
3530
|
/** Waits for one of an element, text, a URL, a load state, a download, or a fixed time. */
|
|
3243
|
-
export interface
|
|
3244
|
-
command:
|
|
3531
|
+
export interface CommandCase21 {
|
|
3532
|
+
command: CommandCase21Command;
|
|
3245
3533
|
/** Waits for the next download to finish. */
|
|
3246
3534
|
download?: boolean | undefined;
|
|
3247
3535
|
expect?: CommandExpectation | undefined;
|
|
3248
3536
|
frame?: CommandFrame | undefined;
|
|
3249
|
-
load?:
|
|
3537
|
+
load?: CommandCase21Load | (string & {}) | undefined;
|
|
3250
3538
|
ms?: number | undefined;
|
|
3251
|
-
state?:
|
|
3539
|
+
state?: CommandCase21State | (string & {}) | undefined;
|
|
3252
3540
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3253
3541
|
tab?: string | undefined;
|
|
3254
3542
|
target?: CommandTarget | undefined;
|
|
@@ -3258,13 +3546,13 @@ export interface CommandCase22 {
|
|
|
3258
3546
|
/** A URL pattern. * matches any characters. */
|
|
3259
3547
|
url?: string | undefined;
|
|
3260
3548
|
}
|
|
3261
|
-
export type
|
|
3262
|
-
export type
|
|
3549
|
+
export type CommandCase22Command = "screenshot";
|
|
3550
|
+
export type CommandCase22Format = "png" | "jpeg" | "webp";
|
|
3263
3551
|
/** Captures the page or an element as base64 data. */
|
|
3264
|
-
export interface
|
|
3265
|
-
command:
|
|
3552
|
+
export interface CommandCase22 {
|
|
3553
|
+
command: CommandCase22Command;
|
|
3266
3554
|
expect?: CommandExpectation | undefined;
|
|
3267
|
-
format?:
|
|
3555
|
+
format?: CommandCase22Format | (string & {}) | undefined;
|
|
3268
3556
|
frame?: CommandFrame | undefined;
|
|
3269
3557
|
fullPage?: boolean | undefined;
|
|
3270
3558
|
quality?: number | undefined;
|
|
@@ -3272,59 +3560,71 @@ export interface CommandCase23 {
|
|
|
3272
3560
|
tab?: string | undefined;
|
|
3273
3561
|
target?: CommandTarget | undefined;
|
|
3274
3562
|
}
|
|
3275
|
-
export type
|
|
3563
|
+
export type CommandCase23Command = "eval";
|
|
3276
3564
|
/** Runs JavaScript in the page and returns the result as JSON. */
|
|
3277
|
-
export interface
|
|
3278
|
-
command:
|
|
3565
|
+
export interface CommandCase23 {
|
|
3566
|
+
command: CommandCase23Command;
|
|
3567
|
+
/** An expression, or an async function body that gives its value with return. A promise result is awaited. */
|
|
3279
3568
|
script: string;
|
|
3280
3569
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3281
3570
|
tab?: string | undefined;
|
|
3282
3571
|
/** Milliseconds. 10000 by default. */
|
|
3283
3572
|
timeout?: number | undefined;
|
|
3284
3573
|
}
|
|
3285
|
-
export type
|
|
3574
|
+
export type CommandCase24Command = "pdf";
|
|
3286
3575
|
/** Prints the page to a PDF as base64 data. */
|
|
3287
|
-
export interface
|
|
3288
|
-
command:
|
|
3576
|
+
export interface CommandCase24 {
|
|
3577
|
+
command: CommandCase24Command;
|
|
3289
3578
|
landscape?: boolean | undefined;
|
|
3290
3579
|
printBackground?: boolean | undefined;
|
|
3291
3580
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3292
3581
|
tab?: string | undefined;
|
|
3293
3582
|
}
|
|
3294
|
-
export type
|
|
3295
|
-
export type
|
|
3583
|
+
export type CommandCase25Command = "scroll";
|
|
3584
|
+
export type CommandCase25Direction = "up" | "down" | "left" | "right";
|
|
3296
3585
|
/** Scrolls the page, or an element when target is set. */
|
|
3297
|
-
export interface
|
|
3586
|
+
export interface CommandCase25 {
|
|
3298
3587
|
/** Pixels. 300 by default. */
|
|
3299
3588
|
amount?: number | undefined;
|
|
3300
|
-
command:
|
|
3301
|
-
direction?:
|
|
3589
|
+
command: CommandCase25Command;
|
|
3590
|
+
direction?: CommandCase25Direction | (string & {}) | undefined;
|
|
3302
3591
|
expect?: CommandExpectation | undefined;
|
|
3303
3592
|
frame?: CommandFrame | undefined;
|
|
3304
3593
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3305
3594
|
tab?: string | undefined;
|
|
3306
3595
|
target?: CommandTarget | undefined;
|
|
3307
3596
|
}
|
|
3308
|
-
export type
|
|
3597
|
+
export type CommandCase26Command = "find";
|
|
3309
3598
|
/** Finds elements and returns refs for up to 50 matches. With nth, it returns that one match. */
|
|
3310
|
-
export interface
|
|
3311
|
-
command:
|
|
3599
|
+
export interface CommandCase26 {
|
|
3600
|
+
command: CommandCase26Command;
|
|
3312
3601
|
frame?: CommandFrame | undefined;
|
|
3313
3602
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3314
3603
|
tab?: string | undefined;
|
|
3315
3604
|
/** A CSS selector or a locator, not a ref. */
|
|
3316
3605
|
target: CommandTarget;
|
|
3317
3606
|
}
|
|
3318
|
-
export type
|
|
3319
|
-
export type
|
|
3607
|
+
export type CommandCase27Action = "list" | "new" | "close";
|
|
3608
|
+
export type CommandCase27Command = "tab";
|
|
3320
3609
|
/** Lists, opens, or closes tabs. The last tab cannot be closed. */
|
|
3321
|
-
export interface
|
|
3322
|
-
action:
|
|
3323
|
-
command:
|
|
3610
|
+
export interface CommandCase27 {
|
|
3611
|
+
action: CommandCase27Action | (string & {});
|
|
3612
|
+
command: CommandCase27Command;
|
|
3324
3613
|
/** A tab id such as t2. A command on a ref does not need it. */
|
|
3325
3614
|
tab?: string | undefined;
|
|
3326
3615
|
url?: string | undefined;
|
|
3327
3616
|
}
|
|
3617
|
+
export type CommandCase28Action = "accept" | "dismiss";
|
|
3618
|
+
export type CommandCase28Command = "dialog";
|
|
3619
|
+
/** Answers an open dialog. It never sends a key to the page, and fails if the dialog is not open. */
|
|
3620
|
+
export interface CommandCase28 {
|
|
3621
|
+
action: CommandCase28Action | (string & {});
|
|
3622
|
+
command: CommandCase28Command;
|
|
3623
|
+
/** The id of the dialog, such as d-3, from dialog in a response. */
|
|
3624
|
+
dialog: string;
|
|
3625
|
+
/** The answer to a prompt. Works only with accept. A prompt gets its default text without it. */
|
|
3626
|
+
text?: string | undefined;
|
|
3627
|
+
}
|
|
3328
3628
|
export type Command =
|
|
3329
3629
|
| CommandCase0
|
|
3330
3630
|
| CommandCase1
|
|
@@ -3358,7 +3658,7 @@ export type Command =
|
|
|
3358
3658
|
export type RunCommandsRequestCommandsCase1List = Array<Command>;
|
|
3359
3659
|
/** 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. */
|
|
3360
3660
|
export type RunCommandsRequestCommands = Command | RunCommandsRequestCommandsCase1List;
|
|
3361
|
-
export type RunCommandsRequestObserveMode = "
|
|
3661
|
+
export type RunCommandsRequestObserveMode = "snapshot" | "diff";
|
|
3362
3662
|
/** Returns a snapshot, or a diff against the last one, after the commands. */
|
|
3363
3663
|
export interface RunCommandsRequestObserve {
|
|
3364
3664
|
/** A snapshot id to diff against. */
|
|
@@ -3393,6 +3693,60 @@ export interface UpdateSessionMetadataRequest {
|
|
|
3393
3693
|
/** 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. */
|
|
3394
3694
|
metadata: UpdateSessionMetadataRequestMetadataMap;
|
|
3395
3695
|
}
|
|
3696
|
+
export interface ErrorResponseContextItem {
|
|
3697
|
+
keyword: string;
|
|
3698
|
+
message: string;
|
|
3699
|
+
params: unknown;
|
|
3700
|
+
}
|
|
3701
|
+
export type ErrorResponseContextList = Array<ErrorResponseContextItem>;
|
|
3702
|
+
/** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
|
|
3703
|
+
export type ErrorResponseDetailsMap = { [key: string]: unknown | undefined };
|
|
3704
|
+
/** An error response from the API */
|
|
3705
|
+
export interface ErrorResponse {
|
|
3706
|
+
/** Stable machine-readable reason, e.g. 'budget_exceeded' or 'profile_not_ready'. Branch on this instead of parsing the message. */
|
|
3707
|
+
code?: string | undefined;
|
|
3708
|
+
context?: ErrorResponseContextList | undefined;
|
|
3709
|
+
/** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
|
|
3710
|
+
details?: ErrorResponseDetailsMap | undefined;
|
|
3711
|
+
error?: string | undefined;
|
|
3712
|
+
linkToDocs?: string | undefined;
|
|
3713
|
+
message: string;
|
|
3714
|
+
/** The request field that caused the error, if any. */
|
|
3715
|
+
param?: string | undefined;
|
|
3716
|
+
/** Seconds to wait before retrying. Also sent as the Retry-After header. */
|
|
3717
|
+
retryAfterSeconds?: number | undefined;
|
|
3718
|
+
/** Whether the same request can succeed later without changes. False means fix the request or the account first. */
|
|
3719
|
+
retryable?: boolean | undefined;
|
|
3720
|
+
/** Where a person turns on the refused feature, e.g. verifying the account. Pass it to your user. */
|
|
3721
|
+
unlockUrl?: string | undefined;
|
|
3722
|
+
}
|
|
3723
|
+
export interface RunCommandsErrorResponseError {
|
|
3724
|
+
/** Error code, such as session_ended or queue_full. */
|
|
3725
|
+
code: string;
|
|
3726
|
+
message: string;
|
|
3727
|
+
}
|
|
3728
|
+
export interface RunCommandsErrorResponse {
|
|
3729
|
+
error: RunCommandsErrorResponseError;
|
|
3730
|
+
[key: string]: unknown;
|
|
3731
|
+
}
|
|
3732
|
+
export type AttachSessionCredentialsError = BadRequest | NotFound | Conflict | SteelOpError;
|
|
3733
|
+
/** 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). */
|
|
3734
|
+
export const attachSessionCredentials: API.OperationMethod<
|
|
3735
|
+
AttachSessionCredentialsRequest,
|
|
3736
|
+
SessionCredentialsResponse,
|
|
3737
|
+
AttachSessionCredentialsError,
|
|
3738
|
+
SteelOpContext
|
|
3739
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3740
|
+
input: __S(497, __c31, 1) as any as S.Schema<AttachSessionCredentialsRequest>,
|
|
3741
|
+
output: __S(515, __c32, 3) as any as S.Schema<SessionCredentialsResponse>,
|
|
3742
|
+
errors: [BadRequest, NotFound, Conflict],
|
|
3743
|
+
serviceErrors: SteelServiceErrors,
|
|
3744
|
+
protocol: SteelProtocol,
|
|
3745
|
+
retry: Retry.Retry,
|
|
3746
|
+
telemetry: TELEMETRY,
|
|
3747
|
+
span: "AttachSessionCredentials",
|
|
3748
|
+
}));
|
|
3749
|
+
|
|
3396
3750
|
export type CancelCommandExecutionError =
|
|
3397
3751
|
| Forbidden
|
|
3398
3752
|
| NotFound
|
|
@@ -3407,9 +3761,10 @@ export const cancelCommandExecution: API.OperationMethod<
|
|
|
3407
3761
|
CancelCommandExecutionError,
|
|
3408
3762
|
SteelOpContext
|
|
3409
3763
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3410
|
-
input: __S(
|
|
3411
|
-
output: __S(
|
|
3412
|
-
errors: [Forbidden, NotFound, Gone, UnprocessableEntity, SessionEnded
|
|
3764
|
+
input: __S(544, __c34, 0) as any as S.Schema<CancelCommandExecutionRequest>,
|
|
3765
|
+
output: __S(567, __c35, 7) as any as S.Schema<RunCommandsResponse>,
|
|
3766
|
+
errors: [Forbidden, NotFound, Gone, UnprocessableEntity, SessionEnded],
|
|
3767
|
+
serviceErrors: SteelServiceErrors,
|
|
3413
3768
|
protocol: SteelProtocol,
|
|
3414
3769
|
retry: Retry.Retry,
|
|
3415
3770
|
telemetry: TELEMETRY,
|
|
@@ -3431,23 +3786,52 @@ export const createSession: API.OperationMethod<
|
|
|
3431
3786
|
CreateSessionError,
|
|
3432
3787
|
SteelOpContext
|
|
3433
3788
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3434
|
-
input: __S(
|
|
3435
|
-
output: __S(
|
|
3436
|
-
errors: [
|
|
3437
|
-
|
|
3438
|
-
Forbidden,
|
|
3439
|
-
Conflict,
|
|
3440
|
-
UnprocessableEntity,
|
|
3441
|
-
NotFound,
|
|
3442
|
-
ProfileNotFound,
|
|
3443
|
-
UnknownSteelError,
|
|
3444
|
-
],
|
|
3789
|
+
input: __S(51, __c3, 3) as any as S.Schema<CreateSessionRequest>,
|
|
3790
|
+
output: __S(86, __c5, 6) as any as S.Schema<SessionResponse>,
|
|
3791
|
+
errors: [BadRequest, Forbidden, Conflict, UnprocessableEntity, NotFound, ProfileNotFound],
|
|
3792
|
+
serviceErrors: SteelServiceErrors,
|
|
3445
3793
|
protocol: SteelProtocol,
|
|
3446
3794
|
retry: Retry.Retry,
|
|
3447
3795
|
telemetry: TELEMETRY,
|
|
3448
3796
|
span: "CreateSession",
|
|
3449
3797
|
}));
|
|
3450
3798
|
|
|
3799
|
+
export type DetachSessionCredentialError = BadRequest | NotFound | Conflict | SteelOpError;
|
|
3800
|
+
/** 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). */
|
|
3801
|
+
export const detachSessionCredential: API.OperationMethod<
|
|
3802
|
+
DetachSessionCredentialRequest,
|
|
3803
|
+
SessionCredentialsResponse,
|
|
3804
|
+
DetachSessionCredentialError,
|
|
3805
|
+
SteelOpContext
|
|
3806
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3807
|
+
input: __S(112, __c7, 0) as any as S.Schema<DetachSessionCredentialRequest>,
|
|
3808
|
+
output: __S(515, __c32, 3) as any as S.Schema<SessionCredentialsResponse>,
|
|
3809
|
+
errors: [BadRequest, NotFound, Conflict],
|
|
3810
|
+
serviceErrors: SteelServiceErrors,
|
|
3811
|
+
protocol: SteelProtocol,
|
|
3812
|
+
retry: Retry.Retry,
|
|
3813
|
+
telemetry: TELEMETRY,
|
|
3814
|
+
span: "DetachSessionCredential",
|
|
3815
|
+
}));
|
|
3816
|
+
|
|
3817
|
+
export type DetachSessionVaultBindingError = BadRequest | NotFound | Conflict | SteelOpError;
|
|
3818
|
+
/** 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). */
|
|
3819
|
+
export const detachSessionVaultBinding: API.OperationMethod<
|
|
3820
|
+
DetachSessionVaultBindingRequest,
|
|
3821
|
+
SessionCredentialsResponse,
|
|
3822
|
+
DetachSessionVaultBindingError,
|
|
3823
|
+
SteelOpContext
|
|
3824
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3825
|
+
input: __S(128, __c8, 0) as any as S.Schema<DetachSessionVaultBindingRequest>,
|
|
3826
|
+
output: __S(515, __c32, 3) as any as S.Schema<SessionCredentialsResponse>,
|
|
3827
|
+
errors: [BadRequest, NotFound, Conflict],
|
|
3828
|
+
serviceErrors: SteelServiceErrors,
|
|
3829
|
+
protocol: SteelProtocol,
|
|
3830
|
+
retry: Retry.Retry,
|
|
3831
|
+
telemetry: TELEMETRY,
|
|
3832
|
+
span: "DetachSessionVaultBinding",
|
|
3833
|
+
}));
|
|
3834
|
+
|
|
3451
3835
|
export type ExecuteComputerActionError = BadRequest | SteelOpError;
|
|
3452
3836
|
/** Execute computer action Execute computer actions like mouse movements, clicks, keyboard input, and more */
|
|
3453
3837
|
export const executeComputerAction: API.OperationMethod<
|
|
@@ -3456,9 +3840,10 @@ export const executeComputerAction: API.OperationMethod<
|
|
|
3456
3840
|
ExecuteComputerActionError,
|
|
3457
3841
|
SteelOpContext
|
|
3458
3842
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3459
|
-
input: __S(
|
|
3460
|
-
output: __S(
|
|
3461
|
-
errors: [BadRequest
|
|
3843
|
+
input: __S(144, __c9, 0) as any as S.Schema<ExecuteComputerActionRequest>,
|
|
3844
|
+
output: __S(145, __c9, 1) as any as S.Schema<ComputerActionResponse>,
|
|
3845
|
+
errors: [BadRequest],
|
|
3846
|
+
serviceErrors: SteelServiceErrors,
|
|
3462
3847
|
protocol: SteelProtocol,
|
|
3463
3848
|
retry: Retry.Retry,
|
|
3464
3849
|
telemetry: TELEMETRY,
|
|
@@ -3479,9 +3864,10 @@ export const getCommandExecution: API.OperationMethod<
|
|
|
3479
3864
|
GetCommandExecutionError,
|
|
3480
3865
|
SteelOpContext
|
|
3481
3866
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3482
|
-
input: __S(
|
|
3483
|
-
output: __S(
|
|
3484
|
-
errors: [Forbidden, NotFound, Gone, UnprocessableEntity, SessionEnded
|
|
3867
|
+
input: __S(160, __c10, 0) as any as S.Schema<GetCommandExecutionRequest>,
|
|
3868
|
+
output: __S(567, __c35, 7) as any as S.Schema<RunCommandsResponse>,
|
|
3869
|
+
errors: [Forbidden, NotFound, Gone, UnprocessableEntity, SessionEnded],
|
|
3870
|
+
serviceErrors: SteelServiceErrors,
|
|
3485
3871
|
protocol: SteelProtocol,
|
|
3486
3872
|
retry: Retry.Retry,
|
|
3487
3873
|
telemetry: TELEMETRY,
|
|
@@ -3496,9 +3882,10 @@ export const getSession: API.OperationMethod<
|
|
|
3496
3882
|
GetSessionError,
|
|
3497
3883
|
SteelOpContext
|
|
3498
3884
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3499
|
-
input: __S(
|
|
3500
|
-
output: __S(
|
|
3501
|
-
errors: [BadRequest, NotFound
|
|
3885
|
+
input: __S(176, __c11, 0) as any as S.Schema<GetSessionRequest>,
|
|
3886
|
+
output: __S(86, __c5, 6) as any as S.Schema<SessionResponse>,
|
|
3887
|
+
errors: [BadRequest, NotFound],
|
|
3888
|
+
serviceErrors: SteelServiceErrors,
|
|
3502
3889
|
protocol: SteelProtocol,
|
|
3503
3890
|
retry: Retry.Retry,
|
|
3504
3891
|
telemetry: TELEMETRY,
|
|
@@ -3513,9 +3900,10 @@ export const getSessionAgentLogs: API.OperationMethod<
|
|
|
3513
3900
|
GetSessionAgentLogsError,
|
|
3514
3901
|
SteelOpContext
|
|
3515
3902
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3516
|
-
input: __S(
|
|
3517
|
-
output: __S(
|
|
3518
|
-
errors: [BadRequest, NotFound
|
|
3903
|
+
input: __S(192, __c12, 0) as any as S.Schema<GetSessionAgentLogsRequest>,
|
|
3904
|
+
output: __S(209, __c13, 1) as any as S.Schema<GetSessionAgentLogsResponse>,
|
|
3905
|
+
errors: [BadRequest, NotFound],
|
|
3906
|
+
serviceErrors: SteelServiceErrors,
|
|
3519
3907
|
protocol: SteelProtocol,
|
|
3520
3908
|
retry: Retry.Retry,
|
|
3521
3909
|
telemetry: TELEMETRY,
|
|
@@ -3530,9 +3918,10 @@ export const getSessionAgentTraces: API.OperationMethod<
|
|
|
3530
3918
|
GetSessionAgentTracesError,
|
|
3531
3919
|
SteelOpContext
|
|
3532
3920
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3533
|
-
input: __S(
|
|
3534
|
-
output: __S(
|
|
3535
|
-
errors: [BadRequest, NotFound
|
|
3921
|
+
input: __S(224, __c14, 0) as any as S.Schema<GetSessionAgentTracesRequest>,
|
|
3922
|
+
output: __S(209, __c13, 1) as any as S.Schema<GetSessionAgentTracesResponse>,
|
|
3923
|
+
errors: [BadRequest, NotFound],
|
|
3924
|
+
serviceErrors: SteelServiceErrors,
|
|
3536
3925
|
protocol: SteelProtocol,
|
|
3537
3926
|
retry: Retry.Retry,
|
|
3538
3927
|
telemetry: TELEMETRY,
|
|
@@ -3547,9 +3936,10 @@ export const getSessionContext: API.OperationMethod<
|
|
|
3547
3936
|
GetSessionContextError,
|
|
3548
3937
|
SteelOpContext
|
|
3549
3938
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3550
|
-
input: __S(
|
|
3551
|
-
output: __S(
|
|
3552
|
-
errors: [NotFound
|
|
3939
|
+
input: __S(240, __c15, 0) as any as S.Schema<GetSessionContextRequest>,
|
|
3940
|
+
output: __S(109, __c6, 13) as any as S.Schema<SessionContextResponse>,
|
|
3941
|
+
errors: [NotFound],
|
|
3942
|
+
serviceErrors: SteelServiceErrors,
|
|
3553
3943
|
protocol: SteelProtocol,
|
|
3554
3944
|
retry: Retry.Retry,
|
|
3555
3945
|
telemetry: TELEMETRY,
|
|
@@ -3564,9 +3954,10 @@ export const getSessionCost: API.OperationMethod<
|
|
|
3564
3954
|
GetSessionCostError,
|
|
3565
3955
|
SteelOpContext
|
|
3566
3956
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3567
|
-
input: __S(
|
|
3568
|
-
output: __S(
|
|
3569
|
-
errors: [NotFound, Conflict
|
|
3957
|
+
input: __S(256, __c16, 0) as any as S.Schema<GetSessionCostRequest>,
|
|
3958
|
+
output: __S(261, __c16, 5) as any as S.Schema<SessionCostResponse>,
|
|
3959
|
+
errors: [NotFound, Conflict],
|
|
3960
|
+
serviceErrors: SteelServiceErrors,
|
|
3570
3961
|
protocol: SteelProtocol,
|
|
3571
3962
|
retry: Retry.Retry,
|
|
3572
3963
|
telemetry: TELEMETRY,
|
|
@@ -3581,9 +3972,10 @@ export const getSessionEvents: API.OperationMethod<
|
|
|
3581
3972
|
GetSessionEventsError,
|
|
3582
3973
|
SteelOpContext
|
|
3583
3974
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3584
|
-
input: __S(
|
|
3585
|
-
output: __S(
|
|
3586
|
-
errors: [BadRequest, NotFound
|
|
3975
|
+
input: __S(272, __c17, 0) as any as S.Schema<GetSessionEventsRequest>,
|
|
3976
|
+
output: __S(274, __c17, 2) as any as S.Schema<GetSessionEventsResponse2>,
|
|
3977
|
+
errors: [BadRequest, NotFound],
|
|
3978
|
+
serviceErrors: SteelServiceErrors,
|
|
3587
3979
|
protocol: SteelProtocol,
|
|
3588
3980
|
retry: Retry.Retry,
|
|
3589
3981
|
telemetry: TELEMETRY,
|
|
@@ -3598,9 +3990,10 @@ export const getSessionHlsPlaylist: API.OperationMethod<
|
|
|
3598
3990
|
GetSessionHlsPlaylistError,
|
|
3599
3991
|
SteelOpContext
|
|
3600
3992
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3601
|
-
input: __S(
|
|
3602
|
-
output: __S(
|
|
3603
|
-
errors: [NotFound
|
|
3993
|
+
input: __S(288, __c18, 0) as any as S.Schema<GetSessionHlsPlaylistRequest>,
|
|
3994
|
+
output: __S(289, __c18, 1) as any as S.Schema<GetSessionHlsPlaylistResponse>,
|
|
3995
|
+
errors: [NotFound],
|
|
3996
|
+
serviceErrors: SteelServiceErrors,
|
|
3604
3997
|
protocol: SteelProtocol,
|
|
3605
3998
|
retry: Retry.Retry,
|
|
3606
3999
|
telemetry: TELEMETRY,
|
|
@@ -3615,9 +4008,10 @@ export const getSessionLiveDetails: API.OperationMethod<
|
|
|
3615
4008
|
GetSessionLiveDetailsError,
|
|
3616
4009
|
SteelOpContext
|
|
3617
4010
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3618
|
-
input: __S(
|
|
3619
|
-
output: __S(
|
|
3620
|
-
errors: [Forbidden, NotFound
|
|
4011
|
+
input: __S(304, __c19, 0) as any as S.Schema<GetSessionLiveDetailsRequest>,
|
|
4012
|
+
output: __S(307, __c19, 3) as any as S.Schema<SessionLiveDetailsResponse>,
|
|
4013
|
+
errors: [Forbidden, NotFound],
|
|
4014
|
+
serviceErrors: SteelServiceErrors,
|
|
3621
4015
|
protocol: SteelProtocol,
|
|
3622
4016
|
retry: Retry.Retry,
|
|
3623
4017
|
telemetry: TELEMETRY,
|
|
@@ -3632,9 +4026,10 @@ export const getSessionLogs: API.OperationMethod<
|
|
|
3632
4026
|
GetSessionLogsError,
|
|
3633
4027
|
SteelOpContext
|
|
3634
4028
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3635
|
-
input: __S(
|
|
3636
|
-
output: __S(
|
|
3637
|
-
errors: [BadRequest, NotFound
|
|
4029
|
+
input: __S(320, __c20, 0) as any as S.Schema<GetSessionLogsRequest>,
|
|
4030
|
+
output: __S(323, __c20, 3) as any as S.Schema<GetSessionLogsResponse>,
|
|
4031
|
+
errors: [BadRequest, NotFound],
|
|
4032
|
+
serviceErrors: SteelServiceErrors,
|
|
3638
4033
|
protocol: SteelProtocol,
|
|
3639
4034
|
retry: Retry.Retry,
|
|
3640
4035
|
telemetry: TELEMETRY,
|
|
@@ -3649,15 +4044,34 @@ export const getSessionSignalCatalog: API.OperationMethod<
|
|
|
3649
4044
|
GetSessionSignalCatalogError,
|
|
3650
4045
|
SteelOpContext
|
|
3651
4046
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3652
|
-
input: __S(
|
|
3653
|
-
output: __S(
|
|
3654
|
-
errors: [
|
|
4047
|
+
input: __S(336, __c21, 0) as any as S.Schema<GetSessionSignalCatalogRequest>,
|
|
4048
|
+
output: __S(339, __c21, 3) as any as S.Schema<SessionSignalCatalogResponse>,
|
|
4049
|
+
errors: [],
|
|
4050
|
+
serviceErrors: SteelServiceErrors,
|
|
3655
4051
|
protocol: SteelProtocol,
|
|
3656
4052
|
retry: Retry.Retry,
|
|
3657
4053
|
telemetry: TELEMETRY,
|
|
3658
4054
|
span: "GetSessionSignalCatalog",
|
|
3659
4055
|
}));
|
|
3660
4056
|
|
|
4057
|
+
export type ListSessionCredentialsError = BadRequest | NotFound | Conflict | SteelOpError;
|
|
4058
|
+
/** List session credentials The session's credential lookup and the live credentials bound to it (no values). Subject to session organization and project access. */
|
|
4059
|
+
export const listSessionCredentials: API.OperationMethod<
|
|
4060
|
+
ListSessionCredentialsRequest,
|
|
4061
|
+
SessionCredentialsResponse,
|
|
4062
|
+
ListSessionCredentialsError,
|
|
4063
|
+
SteelOpContext
|
|
4064
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4065
|
+
input: __S(352, __c22, 0) as any as S.Schema<ListSessionCredentialsRequest>,
|
|
4066
|
+
output: __S(515, __c32, 3) as any as S.Schema<SessionCredentialsResponse>,
|
|
4067
|
+
errors: [BadRequest, NotFound, Conflict],
|
|
4068
|
+
serviceErrors: SteelServiceErrors,
|
|
4069
|
+
protocol: SteelProtocol,
|
|
4070
|
+
retry: Retry.Retry,
|
|
4071
|
+
telemetry: TELEMETRY,
|
|
4072
|
+
span: "ListSessionCredentials",
|
|
4073
|
+
}));
|
|
4074
|
+
|
|
3661
4075
|
export type ListSessionsError = SteelOpError;
|
|
3662
4076
|
/** List all sessions Fetches all active sessions for the current organization. */
|
|
3663
4077
|
export const listSessions: API.PaginatedOperationMethod<
|
|
@@ -3668,9 +4082,10 @@ export const listSessions: API.PaginatedOperationMethod<
|
|
|
3668
4082
|
SessionsResponseSessionsItem
|
|
3669
4083
|
> = /*@__PURE__*/ API.makePaginated(
|
|
3670
4084
|
() => ({
|
|
3671
|
-
input: __S(
|
|
3672
|
-
output: __S(
|
|
3673
|
-
errors: [
|
|
4085
|
+
input: __S(368, __c23, 0) as any as S.Schema<ListSessionsRequest>,
|
|
4086
|
+
output: __S(370, __c23, 2) as any as S.Schema<SessionsResponse>,
|
|
4087
|
+
errors: [],
|
|
4088
|
+
serviceErrors: SteelServiceErrors,
|
|
3674
4089
|
protocol: SteelProtocol,
|
|
3675
4090
|
retry: Retry.Retry,
|
|
3676
4091
|
telemetry: TELEMETRY,
|
|
@@ -3694,9 +4109,10 @@ export const releaseAllSessions: API.OperationMethod<
|
|
|
3694
4109
|
ReleaseAllSessionsError,
|
|
3695
4110
|
SteelOpContext
|
|
3696
4111
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3697
|
-
input: __S(
|
|
3698
|
-
output: __S(
|
|
3699
|
-
errors: [BadRequest
|
|
4112
|
+
input: __S(384, __c24, 0) as any as S.Schema<ReleaseAllSessionsRequest>,
|
|
4113
|
+
output: __S(32, __c2, 0) as any as S.Schema<ReleaseSessionsResponse>,
|
|
4114
|
+
errors: [BadRequest],
|
|
4115
|
+
serviceErrors: SteelServiceErrors,
|
|
3700
4116
|
protocol: SteelProtocol,
|
|
3701
4117
|
retry: Retry.Retry,
|
|
3702
4118
|
telemetry: TELEMETRY,
|
|
@@ -3711,15 +4127,34 @@ export const releaseSession: API.OperationMethod<
|
|
|
3711
4127
|
ReleaseSessionError,
|
|
3712
4128
|
SteelOpContext
|
|
3713
4129
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3714
|
-
input: __S(
|
|
3715
|
-
output: __S(
|
|
3716
|
-
errors: [BadRequest, NotFound
|
|
4130
|
+
input: __S(400, __c25, 0) as any as S.Schema<ReleaseSessionRequest>,
|
|
4131
|
+
output: __S(32, __c2, 0) as any as S.Schema<ReleaseSessionResponse>,
|
|
4132
|
+
errors: [BadRequest, NotFound],
|
|
4133
|
+
serviceErrors: SteelServiceErrors,
|
|
3717
4134
|
protocol: SteelProtocol,
|
|
3718
4135
|
retry: Retry.Retry,
|
|
3719
4136
|
telemetry: TELEMETRY,
|
|
3720
4137
|
span: "ReleaseSession",
|
|
3721
4138
|
}));
|
|
3722
4139
|
|
|
4140
|
+
export type ReplaceSessionCredentialsError = BadRequest | NotFound | Conflict | SteelOpError;
|
|
4141
|
+
/** 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. */
|
|
4142
|
+
export const replaceSessionCredentials: API.OperationMethod<
|
|
4143
|
+
ReplaceSessionCredentialsRequest,
|
|
4144
|
+
SessionCredentialsResponse,
|
|
4145
|
+
ReplaceSessionCredentialsError,
|
|
4146
|
+
SteelOpContext
|
|
4147
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4148
|
+
input: __S(417, __c26, 1) as any as S.Schema<ReplaceSessionCredentialsRequest>,
|
|
4149
|
+
output: __S(515, __c32, 3) as any as S.Schema<SessionCredentialsResponse>,
|
|
4150
|
+
errors: [BadRequest, NotFound, Conflict],
|
|
4151
|
+
serviceErrors: SteelServiceErrors,
|
|
4152
|
+
protocol: SteelProtocol,
|
|
4153
|
+
retry: Retry.Retry,
|
|
4154
|
+
telemetry: TELEMETRY,
|
|
4155
|
+
span: "ReplaceSessionCredentials",
|
|
4156
|
+
}));
|
|
4157
|
+
|
|
3723
4158
|
export type ReplaceSessionMetadataError = BadRequest | NotFound | SteelOpError;
|
|
3724
4159
|
/** 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. */
|
|
3725
4160
|
export const replaceSessionMetadata: API.OperationMethod<
|
|
@@ -3728,9 +4163,10 @@ export const replaceSessionMetadata: API.OperationMethod<
|
|
|
3728
4163
|
ReplaceSessionMetadataError,
|
|
3729
4164
|
SteelOpContext
|
|
3730
4165
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3731
|
-
input: __S(
|
|
3732
|
-
output: __S(
|
|
3733
|
-
errors: [BadRequest, NotFound
|
|
4166
|
+
input: __S(433, __c27, 1) as any as S.Schema<ReplaceSessionMetadataRequest>,
|
|
4167
|
+
output: __S(448, __c28, 0) as any as S.Schema<SessionMetadataResponse>,
|
|
4168
|
+
errors: [BadRequest, NotFound],
|
|
4169
|
+
serviceErrors: SteelServiceErrors,
|
|
3734
4170
|
protocol: SteelProtocol,
|
|
3735
4171
|
retry: Retry.Retry,
|
|
3736
4172
|
telemetry: TELEMETRY,
|
|
@@ -3752,17 +4188,10 @@ export const runCommands: API.OperationMethod<
|
|
|
3752
4188
|
RunCommandsError,
|
|
3753
4189
|
SteelOpContext
|
|
3754
4190
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3755
|
-
input: __S(
|
|
3756
|
-
output: __S(
|
|
3757
|
-
errors: [
|
|
3758
|
-
|
|
3759
|
-
Forbidden,
|
|
3760
|
-
NotFound,
|
|
3761
|
-
Gone,
|
|
3762
|
-
UnprocessableEntity,
|
|
3763
|
-
SessionEnded,
|
|
3764
|
-
UnknownSteelError,
|
|
3765
|
-
],
|
|
4191
|
+
input: __S(465, __c29, 1) as any as S.Schema<RunCommandsRequest>,
|
|
4192
|
+
output: __S(567, __c35, 7) as any as S.Schema<RunCommandsResponse>,
|
|
4193
|
+
errors: [BadRequest, Forbidden, NotFound, Gone, UnprocessableEntity, SessionEnded],
|
|
4194
|
+
serviceErrors: SteelServiceErrors,
|
|
3766
4195
|
protocol: SteelProtocol,
|
|
3767
4196
|
retry: Retry.Retry,
|
|
3768
4197
|
telemetry: TELEMETRY,
|
|
@@ -3777,9 +4206,10 @@ export const updateSessionMetadata: API.OperationMethod<
|
|
|
3777
4206
|
UpdateSessionMetadataError,
|
|
3778
4207
|
SteelOpContext
|
|
3779
4208
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3780
|
-
input: __S(
|
|
3781
|
-
output: __S(
|
|
3782
|
-
errors: [BadRequest, NotFound
|
|
4209
|
+
input: __S(481, __c30, 1) as any as S.Schema<UpdateSessionMetadataRequest>,
|
|
4210
|
+
output: __S(448, __c28, 0) as any as S.Schema<SessionMetadataResponse>,
|
|
4211
|
+
errors: [BadRequest, NotFound],
|
|
4212
|
+
serviceErrors: SteelServiceErrors,
|
|
3783
4213
|
protocol: SteelProtocol,
|
|
3784
4214
|
retry: Retry.Retry,
|
|
3785
4215
|
telemetry: TELEMETRY,
|
|
@@ -3790,21 +4220,32 @@ export const updateSessionMetadata: API.OperationMethod<
|
|
|
3790
4220
|
function __c0(j: number): any {
|
|
3791
4221
|
switch (j) {
|
|
3792
4222
|
case 0:
|
|
4223
|
+
return S.Record(S.String, S.Unknown);
|
|
4224
|
+
case 1:
|
|
3793
4225
|
return S.suspend(() =>
|
|
3794
4226
|
S.Struct({
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
4227
|
+
keyword: S.String,
|
|
4228
|
+
message: S.String,
|
|
4229
|
+
params: S.Unknown,
|
|
4230
|
+
}),
|
|
4231
|
+
).annotate({ identifier: "ErrorResponseContextItem" });
|
|
4232
|
+
case 2:
|
|
4233
|
+
return S.Array(__S(1, __c0, 1));
|
|
4234
|
+
case 3:
|
|
3800
4235
|
return S.suspend(() =>
|
|
3801
4236
|
S.Struct({
|
|
3802
|
-
|
|
4237
|
+
code: S.optional(S.String),
|
|
4238
|
+
context: S.optional(__S(2, __c0, 2)),
|
|
4239
|
+
details: S.optional(__S(0, __c0, 0)),
|
|
3803
4240
|
error: S.optional(S.String),
|
|
3804
|
-
|
|
3805
|
-
|
|
4241
|
+
linkToDocs: S.optional(S.String),
|
|
4242
|
+
message: S.String,
|
|
4243
|
+
param: S.optional(S.String),
|
|
4244
|
+
retryAfterSeconds: S.optional(S.Number),
|
|
4245
|
+
retryable: S.optional(S.Boolean),
|
|
4246
|
+
unlockUrl: S.optional(S.String),
|
|
3806
4247
|
}),
|
|
3807
|
-
).annotate({ identifier: "
|
|
4248
|
+
).annotate({ identifier: "ErrorResponse" });
|
|
3808
4249
|
}
|
|
3809
4250
|
}
|
|
3810
4251
|
function __c1(j: number): any {
|
|
@@ -3812,16 +4253,19 @@ function __c1(j: number): any {
|
|
|
3812
4253
|
case 0:
|
|
3813
4254
|
return S.suspend(() =>
|
|
3814
4255
|
S.Struct({
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
})
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
4256
|
+
code: S.String,
|
|
4257
|
+
message: S.String,
|
|
4258
|
+
}),
|
|
4259
|
+
).annotate({ identifier: "RunCommandsErrorResponseError" });
|
|
4260
|
+
case 1:
|
|
4261
|
+
return S.suspend(() =>
|
|
4262
|
+
S.StructWithRest(
|
|
4263
|
+
S.Struct({
|
|
4264
|
+
error: __S(16, __c1, 0),
|
|
3822
4265
|
}),
|
|
4266
|
+
[S.Record(S.String, S.Unknown)],
|
|
3823
4267
|
),
|
|
3824
|
-
).annotate({ identifier: "
|
|
4268
|
+
).annotate({ identifier: "RunCommandsErrorResponse" });
|
|
3825
4269
|
}
|
|
3826
4270
|
}
|
|
3827
4271
|
function __c2(j: number): any {
|
|
@@ -3829,684 +4273,830 @@ function __c2(j: number): any {
|
|
|
3829
4273
|
case 0:
|
|
3830
4274
|
return S.suspend(() =>
|
|
3831
4275
|
S.Struct({
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
4276
|
+
message: S.String,
|
|
4277
|
+
success: S.Boolean,
|
|
4278
|
+
}),
|
|
4279
|
+
).annotate({ identifier: "ReleaseSessionsResponse" });
|
|
3835
4280
|
}
|
|
3836
4281
|
}
|
|
3837
4282
|
function __c3(j: number): any {
|
|
3838
4283
|
switch (j) {
|
|
3839
4284
|
case 0:
|
|
3840
|
-
return S.
|
|
3841
|
-
S.Struct({
|
|
3842
|
-
id: S.String.pipe(T.Label()),
|
|
3843
|
-
namespace: S.optional(S.String.pipe(T.Query())),
|
|
3844
|
-
startTime: S.optional(S.String.pipe(T.Query())),
|
|
3845
|
-
endTime: S.optional(S.String.pipe(T.Query())),
|
|
3846
|
-
eventTypes: S.optional(__S(384, __c24, 0).pipe(T.Query())),
|
|
3847
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
3848
|
-
offset: S.optional(S.Number.pipe(T.Query())),
|
|
3849
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{id}/agent-logs", code: 200 })),
|
|
3850
|
-
).annotate({ identifier: "GetSessionAgentLogsRequest" });
|
|
3851
|
-
}
|
|
3852
|
-
}
|
|
3853
|
-
function __c4(j: number): any {
|
|
3854
|
-
switch (j) {
|
|
3855
|
-
case 0:
|
|
3856
|
-
return S.Record(S.String, S.Unknown);
|
|
4285
|
+
return S.Array(S.Unknown);
|
|
3857
4286
|
case 1:
|
|
3858
|
-
return S.Array(__S(64, __c4, 0));
|
|
3859
|
-
case 2:
|
|
3860
4287
|
return S.suspend(() =>
|
|
3861
4288
|
S.Struct({
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
4289
|
+
autoSubmit: S.optional(S.Boolean),
|
|
4290
|
+
bindings: S.optional(__S(48, __c3, 0)),
|
|
4291
|
+
blurFields: S.optional(S.Boolean),
|
|
4292
|
+
credentialIds: S.optional(__S(528, __c33, 0)),
|
|
4293
|
+
credentialProvider: S.optional(S.String),
|
|
4294
|
+
domTrigger: S.optional(S.Boolean),
|
|
4295
|
+
enabled: S.optional(S.Boolean),
|
|
4296
|
+
exactOrigin: S.optional(S.Boolean),
|
|
4297
|
+
lookup: S.optional(S.String),
|
|
4298
|
+
origins: S.optional(__S(528, __c33, 0)),
|
|
3865
4299
|
}),
|
|
3866
|
-
).annotate({ identifier: "
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
switch (j) {
|
|
3871
|
-
case 0:
|
|
4300
|
+
).annotate({ identifier: "CreateSessionRequestCredentials" });
|
|
4301
|
+
case 2:
|
|
4302
|
+
return S.Record(S.String, S.Unknown);
|
|
4303
|
+
case 3:
|
|
3872
4304
|
return S.suspend(() =>
|
|
3873
4305
|
S.Struct({
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
4306
|
+
blockAds: S.optional(S.Boolean),
|
|
4307
|
+
caCertificates: S.optional(__S(528, __c33, 0)),
|
|
4308
|
+
concurrency: S.optional(S.Number),
|
|
4309
|
+
credentials: S.optional(__S(49, __c3, 1)),
|
|
4310
|
+
debugConfig: S.optional(__S(80, __c5, 0)),
|
|
4311
|
+
deviceConfig: S.optional(__S(81, __c5, 1)),
|
|
4312
|
+
dimensions: S.optional(__S(82, __c5, 2)),
|
|
4313
|
+
experimentalFeatures: S.optional(__S(528, __c33, 0)),
|
|
4314
|
+
extensionIds: S.optional(__S(528, __c33, 0)),
|
|
4315
|
+
fullscreen: S.optional(S.Boolean),
|
|
4316
|
+
headless: S.optional(S.Boolean),
|
|
4317
|
+
inactivityTimeout: S.optional(S.Number),
|
|
4318
|
+
isSelenium: S.optional(S.Boolean),
|
|
4319
|
+
metadata: S.optional(__S(50, __c3, 2)),
|
|
4320
|
+
namespace: S.optional(S.String),
|
|
4321
|
+
optimizeBandwidth: S.optional(S.Unknown),
|
|
4322
|
+
persistProfile: S.optional(S.Boolean),
|
|
4323
|
+
profileId: S.optional(S.String),
|
|
4324
|
+
projectId: S.optional(S.String),
|
|
4325
|
+
proxyUrl: S.optional(S.String),
|
|
4326
|
+
recording: S.optional(S.Boolean),
|
|
4327
|
+
region: S.optional(S.Unknown),
|
|
4328
|
+
sessionContext: S.optional(__S(109, __c6, 13)),
|
|
4329
|
+
sessionId: S.optional(S.String),
|
|
4330
|
+
solveCaptcha: S.optional(S.Boolean),
|
|
4331
|
+
stealthConfig: S.optional(__S(84, __c5, 4)),
|
|
4332
|
+
timeout: S.optional(S.Number),
|
|
4333
|
+
useProxy: S.optional(S.Unknown),
|
|
4334
|
+
userAgent: S.optional(S.String),
|
|
4335
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/sessions", code: 200 })),
|
|
4336
|
+
).annotate({ identifier: "CreateSessionRequest" });
|
|
3883
4337
|
}
|
|
3884
4338
|
}
|
|
3885
|
-
function
|
|
4339
|
+
function __c4(j: number): any {
|
|
3886
4340
|
switch (j) {
|
|
3887
4341
|
case 0:
|
|
3888
|
-
return S.
|
|
3889
|
-
S.Struct({
|
|
3890
|
-
id: S.String.pipe(T.Label()),
|
|
3891
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{id}/context", code: 200 })),
|
|
3892
|
-
).annotate({ identifier: "GetSessionContextRequest" });
|
|
4342
|
+
return S.Record(S.String, S.String);
|
|
3893
4343
|
}
|
|
3894
4344
|
}
|
|
3895
|
-
function
|
|
4345
|
+
function __c5(j: number): any {
|
|
3896
4346
|
switch (j) {
|
|
3897
4347
|
case 0:
|
|
3898
4348
|
return S.suspend(() =>
|
|
3899
4349
|
S.Struct({
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
4350
|
+
interactive: S.optional(S.Boolean),
|
|
4351
|
+
systemCursor: S.optional(S.Boolean),
|
|
4352
|
+
}),
|
|
4353
|
+
).annotate({ identifier: "CreateSessionRequestDebugConfig" });
|
|
3903
4354
|
case 1:
|
|
3904
4355
|
return S.suspend(() =>
|
|
3905
4356
|
S.Struct({
|
|
3906
|
-
|
|
3907
|
-
value: S.Number,
|
|
4357
|
+
device: S.optional(S.String),
|
|
3908
4358
|
}),
|
|
3909
|
-
).annotate({ identifier: "
|
|
4359
|
+
).annotate({ identifier: "CreateSessionRequestDeviceConfig" });
|
|
3910
4360
|
case 2:
|
|
3911
4361
|
return S.suspend(() =>
|
|
3912
4362
|
S.Struct({
|
|
3913
|
-
|
|
4363
|
+
height: S.Number,
|
|
4364
|
+
width: S.Number,
|
|
3914
4365
|
}),
|
|
3915
|
-
).annotate({ identifier: "
|
|
4366
|
+
).annotate({ identifier: "CreateSessionRequestDimensions" });
|
|
3916
4367
|
case 3:
|
|
3917
4368
|
return S.suspend(() =>
|
|
3918
4369
|
S.Struct({
|
|
3919
|
-
|
|
4370
|
+
blockHosts: S.optional(__S(528, __c33, 0)),
|
|
4371
|
+
blockImages: S.optional(S.Boolean),
|
|
4372
|
+
blockMedia: S.optional(S.Boolean),
|
|
4373
|
+
blockStylesheets: S.optional(S.Boolean),
|
|
4374
|
+
blockUrlPatterns: S.optional(__S(528, __c33, 0)),
|
|
3920
4375
|
}),
|
|
3921
|
-
).annotate({ identifier: "
|
|
4376
|
+
).annotate({ identifier: "CreateSessionRequestOptimizeBandwidthCase1" });
|
|
3922
4377
|
case 4:
|
|
3923
4378
|
return S.suspend(() =>
|
|
3924
4379
|
S.Struct({
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
4380
|
+
autoCaptchaSolving: S.optional(S.Boolean),
|
|
4381
|
+
humanizeInteractions: S.optional(S.Boolean),
|
|
4382
|
+
skipFingerprintInjection: S.optional(S.Boolean),
|
|
3928
4383
|
}),
|
|
3929
|
-
).annotate({ identifier: "
|
|
4384
|
+
).annotate({ identifier: "CreateSessionRequestStealthConfig" });
|
|
3930
4385
|
case 5:
|
|
4386
|
+
return S.Array(S.String);
|
|
4387
|
+
case 6:
|
|
3931
4388
|
return S.suspend(() =>
|
|
3932
4389
|
S.Struct({
|
|
3933
|
-
|
|
4390
|
+
browserMode: S.String,
|
|
4391
|
+
createdAt: S.String,
|
|
4392
|
+
creditsUsed: S.Number,
|
|
4393
|
+
debugConfig: S.optional(__S(80, __c5, 0)),
|
|
4394
|
+
debugUrl: S.String.pipe(T.SensitiveValue({})),
|
|
4395
|
+
deviceConfig: S.optional(__S(81, __c5, 1)),
|
|
4396
|
+
dimensions: __S(82, __c5, 2),
|
|
4397
|
+
duration: S.Number,
|
|
4398
|
+
eventCount: S.Number,
|
|
4399
|
+
fullscreen: S.optional(S.Boolean),
|
|
4400
|
+
headless: S.optional(S.Boolean),
|
|
3934
4401
|
id: S.String,
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
4402
|
+
inactivityTimeout: S.optional(S.Number),
|
|
4403
|
+
isSelenium: S.optional(S.Boolean),
|
|
4404
|
+
metadata: S.optional(__S(64, __c4, 0)),
|
|
4405
|
+
optimizeBandwidth: __S(83, __c5, 3),
|
|
4406
|
+
persistProfile: S.optional(S.Boolean),
|
|
4407
|
+
profileId: S.optional(S.String),
|
|
4408
|
+
projectId: S.optional(S.NullOr(S.String)),
|
|
4409
|
+
proxyBytesUsed: S.Number,
|
|
4410
|
+
proxySource: S.NullOr(S.String),
|
|
4411
|
+
region: S.optional(S.String),
|
|
4412
|
+
releaseReason: S.optional(S.NullOr(S.String)),
|
|
4413
|
+
sessionViewerUrl: S.String,
|
|
4414
|
+
signals: __S(85, __c5, 5),
|
|
4415
|
+
solveCaptcha: S.optional(S.Boolean),
|
|
4416
|
+
status: S.String,
|
|
4417
|
+
stealthConfig: S.optional(__S(84, __c5, 4)),
|
|
4418
|
+
timeout: S.Number,
|
|
4419
|
+
userAgent: S.optional(S.String),
|
|
4420
|
+
websocketUrl: S.String.pipe(T.SensitiveValue({})),
|
|
3938
4421
|
}),
|
|
3939
|
-
).annotate({ identifier: "
|
|
3940
|
-
}
|
|
3941
|
-
}
|
|
3942
|
-
function __c8(j: number): any {
|
|
3943
|
-
switch (j) {
|
|
3944
|
-
case 0:
|
|
3945
|
-
return S.suspend(() =>
|
|
3946
|
-
S.Struct({
|
|
3947
|
-
id: S.String.pipe(T.Label()),
|
|
3948
|
-
compressed: S.optional(S.Boolean.pipe(T.Query())),
|
|
3949
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
3950
|
-
pointer: S.optional(S.String.pipe(T.Query())),
|
|
3951
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{id}/events", code: 200 })),
|
|
3952
|
-
).annotate({ identifier: "GetSessionEventsRequest" });
|
|
3953
|
-
case 1:
|
|
3954
|
-
return S.Array(S.Unknown);
|
|
3955
|
-
case 2:
|
|
3956
|
-
return S.suspend(() => __S(129, __c8, 1).pipe(T.RawResponseRoot())).annotate({
|
|
3957
|
-
identifier: "GetSessionEventsResponse2",
|
|
3958
|
-
});
|
|
4422
|
+
).annotate({ identifier: "SessionResponse" });
|
|
3959
4423
|
}
|
|
3960
4424
|
}
|
|
3961
|
-
function
|
|
4425
|
+
function __c6(j: number): any {
|
|
3962
4426
|
switch (j) {
|
|
3963
4427
|
case 0:
|
|
3964
4428
|
return S.suspend(() =>
|
|
3965
4429
|
S.Struct({
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
4430
|
+
hasCrossSiteAncestor: S.Boolean,
|
|
4431
|
+
topLevelSite: S.String,
|
|
4432
|
+
}),
|
|
4433
|
+
).annotate({ identifier: "CreateSessionRequestSessionContextCookiesItemPartitionKey" });
|
|
3969
4434
|
case 1:
|
|
3970
|
-
return S.instanceOf(Uint8Array).pipe(/*@__PURE__*/ T.BinaryResponse());
|
|
3971
|
-
}
|
|
3972
|
-
}
|
|
3973
|
-
function __c10(j: number): any {
|
|
3974
|
-
switch (j) {
|
|
3975
|
-
case 0:
|
|
3976
4435
|
return S.suspend(() =>
|
|
3977
4436
|
S.Struct({
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
4437
|
+
domain: S.optional(S.String),
|
|
4438
|
+
expires: S.optional(S.Number),
|
|
4439
|
+
httpOnly: S.optional(S.Boolean),
|
|
4440
|
+
name: S.String,
|
|
4441
|
+
partitionKey: S.optional(__S(96, __c6, 0)),
|
|
4442
|
+
path: S.optional(S.String),
|
|
4443
|
+
priority: S.optional(S.String),
|
|
4444
|
+
sameParty: S.optional(S.Boolean),
|
|
4445
|
+
sameSite: S.optional(S.String),
|
|
4446
|
+
secure: S.optional(S.Boolean),
|
|
4447
|
+
session: S.optional(S.Boolean),
|
|
4448
|
+
size: S.optional(S.Number),
|
|
4449
|
+
sourcePort: S.optional(S.Number),
|
|
4450
|
+
sourceScheme: S.optional(S.String),
|
|
4451
|
+
url: S.optional(S.String),
|
|
4452
|
+
value: S.String,
|
|
3990
4453
|
}),
|
|
3991
|
-
).annotate({ identifier: "
|
|
4454
|
+
).annotate({ identifier: "CreateSessionRequestSessionContextCookiesItem" });
|
|
3992
4455
|
case 2:
|
|
3993
|
-
return S.Array(__S(
|
|
4456
|
+
return S.Array(__S(97, __c6, 1));
|
|
3994
4457
|
case 3:
|
|
3995
4458
|
return S.suspend(() =>
|
|
3996
4459
|
S.Struct({
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4460
|
+
blobNumber: S.Number,
|
|
4461
|
+
filename: S.optional(S.String),
|
|
4462
|
+
lastModified: S.optional(S.String),
|
|
4463
|
+
mimeType: S.String,
|
|
4464
|
+
path: S.optional(S.String),
|
|
4465
|
+
size: S.Number,
|
|
4001
4466
|
}),
|
|
4002
|
-
).annotate({
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
S.Struct({
|
|
4010
|
-
id: S.String.pipe(T.Label()),
|
|
4011
|
-
namespace: S.optional(S.String.pipe(T.Query())),
|
|
4012
|
-
startTime: S.optional(S.String.pipe(T.Query())),
|
|
4013
|
-
endTime: S.optional(S.String.pipe(T.Query())),
|
|
4014
|
-
eventTypes: S.optional(__S(384, __c24, 0).pipe(T.Query())),
|
|
4015
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
4016
|
-
offset: S.optional(S.Number.pipe(T.Query())),
|
|
4017
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{id}/logs", code: 200 })),
|
|
4018
|
-
).annotate({ identifier: "GetSessionLogsRequest" });
|
|
4019
|
-
case 1:
|
|
4467
|
+
).annotate({
|
|
4468
|
+
identifier:
|
|
4469
|
+
"CreateSessionRequestSessionContextIndexedDBValueItemDataItemRecordsItemBlobFilesItem",
|
|
4470
|
+
});
|
|
4471
|
+
case 4:
|
|
4472
|
+
return S.Array(__S(99, __c6, 3));
|
|
4473
|
+
case 5:
|
|
4020
4474
|
return S.suspend(() =>
|
|
4021
4475
|
S.Struct({
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
type: S.String,
|
|
4476
|
+
blobFiles: S.optional(__S(100, __c6, 4)),
|
|
4477
|
+
key: S.Unknown,
|
|
4478
|
+
value: S.Unknown,
|
|
4026
4479
|
}),
|
|
4027
|
-
).annotate({
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
case
|
|
4480
|
+
).annotate({
|
|
4481
|
+
identifier: "CreateSessionRequestSessionContextIndexedDBValueItemDataItemRecordsItem",
|
|
4482
|
+
});
|
|
4483
|
+
case 6:
|
|
4484
|
+
return S.Array(__S(101, __c6, 5));
|
|
4485
|
+
case 7:
|
|
4031
4486
|
return S.suspend(() =>
|
|
4032
4487
|
S.Struct({
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4488
|
+
id: S.Number,
|
|
4489
|
+
name: S.String,
|
|
4490
|
+
records: __S(102, __c6, 6),
|
|
4036
4491
|
}),
|
|
4037
|
-
).annotate({ identifier: "
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
switch (j) {
|
|
4042
|
-
case 0:
|
|
4043
|
-
return S.suspend(() =>
|
|
4044
|
-
S.Struct({}).pipe(
|
|
4045
|
-
T.Http({ method: "GET", uri: "/v1/sessions/signals/catalog", code: 200 }),
|
|
4046
|
-
),
|
|
4047
|
-
).annotate({ identifier: "GetSessionSignalCatalogRequest" });
|
|
4048
|
-
case 1:
|
|
4492
|
+
).annotate({ identifier: "CreateSessionRequestSessionContextIndexedDBValueItemDataItem" });
|
|
4493
|
+
case 8:
|
|
4494
|
+
return S.Array(__S(103, __c6, 7));
|
|
4495
|
+
case 9:
|
|
4049
4496
|
return S.suspend(() =>
|
|
4050
4497
|
S.Struct({
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
source: S.String,
|
|
4055
|
-
value: S.String,
|
|
4498
|
+
data: __S(104, __c6, 8),
|
|
4499
|
+
id: S.Number,
|
|
4500
|
+
name: S.String,
|
|
4056
4501
|
}),
|
|
4057
|
-
).annotate({ identifier: "
|
|
4058
|
-
case
|
|
4059
|
-
return S.Array(__S(
|
|
4060
|
-
case
|
|
4502
|
+
).annotate({ identifier: "CreateSessionRequestSessionContextIndexedDBValueItem" });
|
|
4503
|
+
case 10:
|
|
4504
|
+
return S.Array(__S(105, __c6, 9));
|
|
4505
|
+
case 11:
|
|
4506
|
+
return S.Record(S.String, __S(106, __c6, 10));
|
|
4507
|
+
case 12:
|
|
4508
|
+
return S.Record(S.String, __S(64, __c4, 0));
|
|
4509
|
+
case 13:
|
|
4061
4510
|
return S.suspend(() =>
|
|
4062
4511
|
S.Struct({
|
|
4063
|
-
|
|
4064
|
-
|
|
4512
|
+
cookies: S.optional(__S(98, __c6, 2)),
|
|
4513
|
+
indexedDB: S.optional(__S(107, __c6, 11)),
|
|
4514
|
+
localStorage: S.optional(__S(108, __c6, 12)),
|
|
4515
|
+
sessionStorage: S.optional(__S(108, __c6, 12)),
|
|
4065
4516
|
}),
|
|
4066
|
-
).annotate({ identifier: "
|
|
4517
|
+
).annotate({ identifier: "CreateSessionRequestSessionContext" });
|
|
4067
4518
|
}
|
|
4068
4519
|
}
|
|
4069
|
-
function
|
|
4520
|
+
function __c7(j: number): any {
|
|
4070
4521
|
switch (j) {
|
|
4071
4522
|
case 0:
|
|
4072
4523
|
return S.suspend(() =>
|
|
4073
4524
|
S.Struct({
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
).annotate({ identifier: "ListSessionsRequest" });
|
|
4085
|
-
case 1:
|
|
4086
|
-
return S.Array(__S(422, __c26, 6));
|
|
4087
|
-
case 2:
|
|
4088
|
-
return S.suspend(() =>
|
|
4089
|
-
S.Struct({
|
|
4090
|
-
nextCursor: S.NullOr(S.String),
|
|
4091
|
-
sessions: __S(209, __c13, 1),
|
|
4092
|
-
totalCount: S.optional(S.Number),
|
|
4093
|
-
}),
|
|
4094
|
-
).annotate({ identifier: "SessionsResponse" });
|
|
4525
|
+
id: S.String.pipe(T.Label()),
|
|
4526
|
+
credentialId: S.String.pipe(T.Label()),
|
|
4527
|
+
}).pipe(
|
|
4528
|
+
T.Http({
|
|
4529
|
+
method: "DELETE",
|
|
4530
|
+
uri: "/v1/sessions/{id}/credentials/{credentialId}",
|
|
4531
|
+
code: 200,
|
|
4532
|
+
}),
|
|
4533
|
+
),
|
|
4534
|
+
).annotate({ identifier: "DetachSessionCredentialRequest" });
|
|
4095
4535
|
}
|
|
4096
4536
|
}
|
|
4097
|
-
function
|
|
4537
|
+
function __c8(j: number): any {
|
|
4098
4538
|
switch (j) {
|
|
4099
4539
|
case 0:
|
|
4100
4540
|
return S.suspend(() =>
|
|
4101
4541
|
S.Struct({
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4542
|
+
id: S.String.pipe(T.Label()),
|
|
4543
|
+
reference: S.String.pipe(T.Query()),
|
|
4544
|
+
}).pipe(
|
|
4545
|
+
T.Http({ method: "DELETE", uri: "/v1/sessions/{id}/credentials/bindings", code: 200 }),
|
|
4546
|
+
),
|
|
4547
|
+
).annotate({ identifier: "DetachSessionVaultBindingRequest" });
|
|
4105
4548
|
}
|
|
4106
4549
|
}
|
|
4107
|
-
function
|
|
4550
|
+
function __c9(j: number): any {
|
|
4108
4551
|
switch (j) {
|
|
4109
4552
|
case 0:
|
|
4110
4553
|
return S.suspend(() =>
|
|
4111
4554
|
S.Struct({
|
|
4112
|
-
|
|
4113
|
-
|
|
4555
|
+
sessionId: S.String.pipe(T.Label()),
|
|
4556
|
+
body: S.Unknown.pipe(T.HttpBody()),
|
|
4557
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/sessions/{sessionId}/computer", code: 200 })),
|
|
4558
|
+
).annotate({ identifier: "ExecuteComputerActionRequest" });
|
|
4559
|
+
case 1:
|
|
4560
|
+
return S.suspend(() =>
|
|
4561
|
+
S.Struct({
|
|
4562
|
+
base64_image: S.optional(S.String),
|
|
4563
|
+
error: S.optional(S.String),
|
|
4564
|
+
output: S.optional(S.String),
|
|
4565
|
+
system: S.optional(S.String),
|
|
4114
4566
|
}),
|
|
4115
|
-
).annotate({ identifier: "
|
|
4567
|
+
).annotate({ identifier: "ComputerActionResponse" });
|
|
4116
4568
|
}
|
|
4117
4569
|
}
|
|
4118
|
-
function
|
|
4570
|
+
function __c10(j: number): any {
|
|
4119
4571
|
switch (j) {
|
|
4120
4572
|
case 0:
|
|
4121
4573
|
return S.suspend(() =>
|
|
4122
4574
|
S.Struct({
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4575
|
+
sessionId: S.String.pipe(T.Label()),
|
|
4576
|
+
executionId: S.String.pipe(T.Label()),
|
|
4577
|
+
}).pipe(
|
|
4578
|
+
T.Http({
|
|
4579
|
+
method: "GET",
|
|
4580
|
+
uri: "/v1/sessions/{sessionId}/commands/executions/{executionId}",
|
|
4581
|
+
code: 200,
|
|
4582
|
+
}),
|
|
4583
|
+
),
|
|
4584
|
+
).annotate({ identifier: "GetCommandExecutionRequest" });
|
|
4126
4585
|
}
|
|
4127
4586
|
}
|
|
4128
|
-
function
|
|
4587
|
+
function __c11(j: number): any {
|
|
4129
4588
|
switch (j) {
|
|
4130
4589
|
case 0:
|
|
4131
|
-
return S.Record(S.String, S.Unknown);
|
|
4132
|
-
case 1:
|
|
4133
4590
|
return S.suspend(() =>
|
|
4134
4591
|
S.Struct({
|
|
4135
4592
|
id: S.String.pipe(T.Label()),
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
).annotate({ identifier: "ReplaceSessionMetadataRequest" });
|
|
4593
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{id}", code: 200 })),
|
|
4594
|
+
).annotate({ identifier: "GetSessionRequest" });
|
|
4139
4595
|
}
|
|
4140
4596
|
}
|
|
4141
|
-
function
|
|
4597
|
+
function __c12(j: number): any {
|
|
4142
4598
|
switch (j) {
|
|
4143
4599
|
case 0:
|
|
4144
4600
|
return S.suspend(() =>
|
|
4145
4601
|
S.Struct({
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4602
|
+
id: S.String.pipe(T.Label()),
|
|
4603
|
+
namespace: S.optional(S.String.pipe(T.Query())),
|
|
4604
|
+
startTime: S.optional(S.String.pipe(T.Query())),
|
|
4605
|
+
endTime: S.optional(S.String.pipe(T.Query())),
|
|
4606
|
+
eventTypes: S.optional(__S(528, __c33, 0).pipe(T.Query())),
|
|
4607
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
4608
|
+
offset: S.optional(S.Number.pipe(T.Query())),
|
|
4609
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{id}/agent-logs", code: 200 })),
|
|
4610
|
+
).annotate({ identifier: "GetSessionAgentLogsRequest" });
|
|
4149
4611
|
}
|
|
4150
4612
|
}
|
|
4151
|
-
function
|
|
4613
|
+
function __c13(j: number): any {
|
|
4152
4614
|
switch (j) {
|
|
4153
4615
|
case 0:
|
|
4154
|
-
return S.
|
|
4155
|
-
S.Struct({
|
|
4156
|
-
base: S.optional(S.String),
|
|
4157
|
-
compact: S.optional(S.Boolean),
|
|
4158
|
-
depth: S.optional(S.Number),
|
|
4159
|
-
interactive: S.optional(S.Boolean),
|
|
4160
|
-
mode: S.String,
|
|
4161
|
-
tab: S.optional(S.String),
|
|
4162
|
-
}),
|
|
4163
|
-
).annotate({ identifier: "RunCommandsRequestObserve" });
|
|
4616
|
+
return S.Array(__S(0, __c0, 0));
|
|
4164
4617
|
case 1:
|
|
4165
4618
|
return S.suspend(() =>
|
|
4166
4619
|
S.Struct({
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
).annotate({ identifier: "RunCommandsRequest" });
|
|
4620
|
+
events: __S(208, __c13, 0),
|
|
4621
|
+
hasMore: S.Boolean,
|
|
4622
|
+
total: S.Number,
|
|
4623
|
+
}),
|
|
4624
|
+
).annotate({ identifier: "GetSessionAgentLogsResponse" });
|
|
4173
4625
|
}
|
|
4174
4626
|
}
|
|
4175
|
-
function
|
|
4627
|
+
function __c14(j: number): any {
|
|
4176
4628
|
switch (j) {
|
|
4177
4629
|
case 0:
|
|
4178
|
-
return S.Record(S.String, /*@__PURE__*/ S.NullOr(S.Unknown));
|
|
4179
|
-
case 1:
|
|
4180
4630
|
return S.suspend(() =>
|
|
4181
4631
|
S.Struct({
|
|
4182
4632
|
id: S.String.pipe(T.Label()),
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4633
|
+
namespace: S.optional(S.String.pipe(T.Query())),
|
|
4634
|
+
startTime: S.optional(S.String.pipe(T.Query())),
|
|
4635
|
+
endTime: S.optional(S.String.pipe(T.Query())),
|
|
4636
|
+
eventTypes: S.optional(__S(528, __c33, 0).pipe(T.Query())),
|
|
4637
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
4638
|
+
offset: S.optional(S.Number.pipe(T.Query())),
|
|
4639
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{id}/agent-traces", code: 200 })),
|
|
4640
|
+
).annotate({ identifier: "GetSessionAgentTracesRequest" });
|
|
4186
4641
|
}
|
|
4187
4642
|
}
|
|
4188
|
-
function
|
|
4643
|
+
function __c15(j: number): any {
|
|
4189
4644
|
switch (j) {
|
|
4190
4645
|
case 0:
|
|
4191
4646
|
return S.suspend(() =>
|
|
4192
4647
|
S.Struct({
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
T.Http({
|
|
4197
|
-
method: "POST",
|
|
4198
|
-
uri: "/v1/sessions/{sessionId}/commands/executions/{executionId}/cancel",
|
|
4199
|
-
code: 200,
|
|
4200
|
-
}),
|
|
4201
|
-
),
|
|
4202
|
-
).annotate({ identifier: "CancelCommandExecutionRequest" });
|
|
4648
|
+
id: S.String.pipe(T.Label()),
|
|
4649
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{id}/context", code: 200 })),
|
|
4650
|
+
).annotate({ identifier: "GetSessionContextRequest" });
|
|
4203
4651
|
}
|
|
4204
4652
|
}
|
|
4205
|
-
function
|
|
4653
|
+
function __c16(j: number): any {
|
|
4206
4654
|
switch (j) {
|
|
4207
4655
|
case 0:
|
|
4208
4656
|
return S.suspend(() =>
|
|
4209
4657
|
S.Struct({
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
tab: S.String,
|
|
4214
|
-
type: S.String,
|
|
4215
|
-
}),
|
|
4216
|
-
).annotate({ identifier: "CommandDialog" });
|
|
4658
|
+
id: S.String.pipe(T.Label()),
|
|
4659
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{id}/cost", code: 200 })),
|
|
4660
|
+
).annotate({ identifier: "GetSessionCostRequest" });
|
|
4217
4661
|
case 1:
|
|
4218
4662
|
return S.suspend(() =>
|
|
4219
4663
|
S.Struct({
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
reason: S.optional(S.String),
|
|
4664
|
+
unit: S.String,
|
|
4665
|
+
value: S.Number,
|
|
4223
4666
|
}),
|
|
4224
|
-
).annotate({ identifier: "
|
|
4667
|
+
).annotate({ identifier: "SessionCostResponseUsageBrowser" });
|
|
4225
4668
|
case 2:
|
|
4226
4669
|
return S.suspend(() =>
|
|
4227
4670
|
S.Struct({
|
|
4228
|
-
|
|
4229
|
-
error: S.optional(__S(353, __c22, 1)),
|
|
4230
|
-
id: S.String,
|
|
4231
|
-
ran: S.Number,
|
|
4232
|
-
replayed: S.Boolean,
|
|
4233
|
-
state: S.String,
|
|
4671
|
+
solves: S.Number,
|
|
4234
4672
|
}),
|
|
4235
|
-
).annotate({ identifier: "
|
|
4673
|
+
).annotate({ identifier: "SessionCostResponseUsageCaptcha" });
|
|
4236
4674
|
case 3:
|
|
4237
4675
|
return S.suspend(() =>
|
|
4238
4676
|
S.Struct({
|
|
4239
|
-
|
|
4240
|
-
base: S.optional(S.String),
|
|
4241
|
-
diff: S.optional(S.String),
|
|
4242
|
-
error: S.optional(__S(353, __c22, 1)),
|
|
4243
|
-
full: S.optional(S.Boolean),
|
|
4244
|
-
removals: S.optional(S.Number),
|
|
4245
|
-
snapshot: S.optional(S.String),
|
|
4246
|
-
snapshotId: S.optional(S.String),
|
|
4677
|
+
bytes: S.Number,
|
|
4247
4678
|
}),
|
|
4248
|
-
).annotate({ identifier: "
|
|
4679
|
+
).annotate({ identifier: "SessionCostResponseUsageProxy" });
|
|
4249
4680
|
case 4:
|
|
4250
4681
|
return S.suspend(() =>
|
|
4251
4682
|
S.Struct({
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4683
|
+
browser: __S(257, __c16, 1),
|
|
4684
|
+
captcha: __S(258, __c16, 2),
|
|
4685
|
+
proxy: __S(259, __c16, 3),
|
|
4255
4686
|
}),
|
|
4256
|
-
).annotate({ identifier: "
|
|
4687
|
+
).annotate({ identifier: "SessionCostResponseUsage" });
|
|
4257
4688
|
case 5:
|
|
4689
|
+
return S.suspend(() =>
|
|
4690
|
+
S.Struct({
|
|
4691
|
+
currency: S.String,
|
|
4692
|
+
id: S.String,
|
|
4693
|
+
totalCost: S.Number,
|
|
4694
|
+
unit: S.String,
|
|
4695
|
+
usage: __S(260, __c16, 4),
|
|
4696
|
+
}),
|
|
4697
|
+
).annotate({ identifier: "SessionCostResponse" });
|
|
4698
|
+
}
|
|
4699
|
+
}
|
|
4700
|
+
function __c17(j: number): any {
|
|
4701
|
+
switch (j) {
|
|
4702
|
+
case 0:
|
|
4703
|
+
return S.suspend(() =>
|
|
4704
|
+
S.Struct({
|
|
4705
|
+
id: S.String.pipe(T.Label()),
|
|
4706
|
+
compressed: S.optional(S.Boolean.pipe(T.Query())),
|
|
4707
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
4708
|
+
pointer: S.optional(S.String.pipe(T.Query())),
|
|
4709
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{id}/events", code: 200 })),
|
|
4710
|
+
).annotate({ identifier: "GetSessionEventsRequest" });
|
|
4711
|
+
case 1:
|
|
4258
4712
|
return S.Array(S.Unknown);
|
|
4259
|
-
case
|
|
4713
|
+
case 2:
|
|
4714
|
+
return S.suspend(() => __S(273, __c17, 1).pipe(T.RawResponseRoot())).annotate({
|
|
4715
|
+
identifier: "GetSessionEventsResponse2",
|
|
4716
|
+
});
|
|
4717
|
+
}
|
|
4718
|
+
}
|
|
4719
|
+
function __c18(j: number): any {
|
|
4720
|
+
switch (j) {
|
|
4721
|
+
case 0:
|
|
4260
4722
|
return S.suspend(() =>
|
|
4261
4723
|
S.Struct({
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4724
|
+
id: S.String.pipe(T.Label()),
|
|
4725
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{id}/hls", code: 200 })),
|
|
4726
|
+
).annotate({ identifier: "GetSessionHlsPlaylistRequest" });
|
|
4727
|
+
case 1:
|
|
4728
|
+
return S.suspend(() =>
|
|
4729
|
+
S.Struct({
|
|
4730
|
+
body: BinaryStream.pipe(T.RawResponse(), T.BinaryResponse()),
|
|
4731
|
+
contentType: S.optional(S.String.pipe(T.Header("Content-Type"))),
|
|
4732
|
+
}),
|
|
4733
|
+
).annotate({ identifier: "GetSessionHlsPlaylistResponse" });
|
|
4734
|
+
}
|
|
4735
|
+
}
|
|
4736
|
+
function __c19(j: number): any {
|
|
4737
|
+
switch (j) {
|
|
4738
|
+
case 0:
|
|
4739
|
+
return S.suspend(() =>
|
|
4740
|
+
S.Struct({
|
|
4741
|
+
id: S.String.pipe(T.Label()),
|
|
4742
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{id}/live-details", code: 200 })),
|
|
4743
|
+
).annotate({ identifier: "GetSessionLiveDetailsRequest" });
|
|
4744
|
+
case 1:
|
|
4745
|
+
return S.suspend(() =>
|
|
4746
|
+
S.Struct({
|
|
4747
|
+
favicon: S.NullOr(S.String),
|
|
4266
4748
|
id: S.String,
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4749
|
+
sessionViewerFullscreenUrl: S.String,
|
|
4750
|
+
sessionViewerUrl: S.String,
|
|
4751
|
+
title: S.String,
|
|
4752
|
+
url: S.String,
|
|
4271
4753
|
}),
|
|
4272
|
-
).annotate({ identifier: "
|
|
4754
|
+
).annotate({ identifier: "SessionLiveDetailsResponsePagesItem" });
|
|
4755
|
+
case 2:
|
|
4756
|
+
return S.Array(__S(305, __c19, 1));
|
|
4757
|
+
case 3:
|
|
4758
|
+
return S.suspend(() =>
|
|
4759
|
+
S.Struct({
|
|
4760
|
+
pages: __S(306, __c19, 2),
|
|
4761
|
+
sessionViewerFullscreenUrl: S.String,
|
|
4762
|
+
sessionViewerUrl: S.String,
|
|
4763
|
+
wsUrl: S.String,
|
|
4764
|
+
}),
|
|
4765
|
+
).annotate({ identifier: "SessionLiveDetailsResponse" });
|
|
4273
4766
|
}
|
|
4274
4767
|
}
|
|
4275
|
-
function
|
|
4768
|
+
function __c20(j: number): any {
|
|
4276
4769
|
switch (j) {
|
|
4277
4770
|
case 0:
|
|
4278
4771
|
return S.suspend(() =>
|
|
4279
4772
|
S.Struct({
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4773
|
+
id: S.String.pipe(T.Label()),
|
|
4774
|
+
namespace: S.optional(S.String.pipe(T.Query())),
|
|
4775
|
+
startTime: S.optional(S.String.pipe(T.Query())),
|
|
4776
|
+
endTime: S.optional(S.String.pipe(T.Query())),
|
|
4777
|
+
eventTypes: S.optional(__S(528, __c33, 0).pipe(T.Query())),
|
|
4778
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
4779
|
+
offset: S.optional(S.Number.pipe(T.Query())),
|
|
4780
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{id}/logs", code: 200 })),
|
|
4781
|
+
).annotate({ identifier: "GetSessionLogsRequest" });
|
|
4782
|
+
case 1:
|
|
4783
|
+
return S.suspend(() =>
|
|
4784
|
+
S.Struct({
|
|
4785
|
+
id: S.String,
|
|
4786
|
+
log: S.String,
|
|
4787
|
+
timestamp: S.String,
|
|
4788
|
+
type: S.String,
|
|
4285
4789
|
}),
|
|
4286
|
-
).annotate({ identifier: "
|
|
4790
|
+
).annotate({ identifier: "GetSessionLogsResponseEventsItem" });
|
|
4791
|
+
case 2:
|
|
4792
|
+
return S.Array(__S(321, __c20, 1));
|
|
4793
|
+
case 3:
|
|
4794
|
+
return S.suspend(() =>
|
|
4795
|
+
S.Struct({
|
|
4796
|
+
events: __S(322, __c20, 2),
|
|
4797
|
+
hasMore: S.Boolean,
|
|
4798
|
+
total: S.Number,
|
|
4799
|
+
}),
|
|
4800
|
+
).annotate({ identifier: "GetSessionLogsResponse" });
|
|
4801
|
+
}
|
|
4802
|
+
}
|
|
4803
|
+
function __c21(j: number): any {
|
|
4804
|
+
switch (j) {
|
|
4805
|
+
case 0:
|
|
4806
|
+
return S.suspend(() =>
|
|
4807
|
+
S.Struct({}).pipe(
|
|
4808
|
+
T.Http({ method: "GET", uri: "/v1/sessions/signals/catalog", code: 200 }),
|
|
4809
|
+
),
|
|
4810
|
+
).annotate({ identifier: "GetSessionSignalCatalogRequest" });
|
|
4287
4811
|
case 1:
|
|
4288
|
-
return S.
|
|
4812
|
+
return S.suspend(() =>
|
|
4813
|
+
S.Struct({
|
|
4814
|
+
description: S.String,
|
|
4815
|
+
label: S.String,
|
|
4816
|
+
severity: S.String,
|
|
4817
|
+
source: S.String,
|
|
4818
|
+
value: S.String,
|
|
4819
|
+
}),
|
|
4820
|
+
).annotate({ identifier: "SessionSignalCatalogResponseSignalsItem" });
|
|
4289
4821
|
case 2:
|
|
4822
|
+
return S.Array(__S(337, __c21, 1));
|
|
4823
|
+
case 3:
|
|
4290
4824
|
return S.suspend(() =>
|
|
4291
4825
|
S.Struct({
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4826
|
+
semantics: S.String,
|
|
4827
|
+
signals: __S(338, __c21, 2),
|
|
4828
|
+
}),
|
|
4829
|
+
).annotate({ identifier: "SessionSignalCatalogResponse" });
|
|
4830
|
+
}
|
|
4831
|
+
}
|
|
4832
|
+
function __c22(j: number): any {
|
|
4833
|
+
switch (j) {
|
|
4834
|
+
case 0:
|
|
4835
|
+
return S.suspend(() =>
|
|
4836
|
+
S.Struct({
|
|
4837
|
+
id: S.String.pipe(T.Label()),
|
|
4838
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{id}/credentials", code: 200 })),
|
|
4839
|
+
).annotate({ identifier: "ListSessionCredentialsRequest" });
|
|
4840
|
+
}
|
|
4841
|
+
}
|
|
4842
|
+
function __c23(j: number): any {
|
|
4843
|
+
switch (j) {
|
|
4844
|
+
case 0:
|
|
4845
|
+
return S.suspend(() =>
|
|
4846
|
+
S.Struct({
|
|
4847
|
+
cursorId: S.optional(S.String.pipe(T.Query())),
|
|
4848
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
4849
|
+
status: S.optional(S.String.pipe(T.Query())),
|
|
4850
|
+
releaseReason: S.optional(S.String.pipe(T.Query())),
|
|
4851
|
+
projectId: S.optional(S.String.pipe(T.Query())),
|
|
4852
|
+
createdAfter: S.optional(S.String.pipe(T.Query())),
|
|
4853
|
+
createdBefore: S.optional(S.String.pipe(T.Query())),
|
|
4854
|
+
signal: S.optional(__S(85, __c5, 5).pipe(T.Query())),
|
|
4855
|
+
metadata: S.optional(__S(64, __c4, 0).pipe(T.Query())),
|
|
4856
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/sessions", code: 200 })),
|
|
4857
|
+
).annotate({ identifier: "ListSessionsRequest" });
|
|
4858
|
+
case 1:
|
|
4859
|
+
return S.Array(__S(86, __c5, 6));
|
|
4860
|
+
case 2:
|
|
4861
|
+
return S.suspend(() =>
|
|
4862
|
+
S.Struct({
|
|
4863
|
+
nextCursor: S.NullOr(S.String),
|
|
4864
|
+
sessions: __S(369, __c23, 1),
|
|
4865
|
+
totalCount: S.optional(S.Number),
|
|
4866
|
+
}),
|
|
4867
|
+
).annotate({ identifier: "SessionsResponse" });
|
|
4323
4868
|
}
|
|
4324
4869
|
}
|
|
4325
4870
|
function __c24(j: number): any {
|
|
4326
4871
|
switch (j) {
|
|
4327
4872
|
case 0:
|
|
4328
|
-
return S.
|
|
4873
|
+
return S.suspend(() =>
|
|
4874
|
+
S.Struct({
|
|
4875
|
+
projectId: S.optional(S.String.pipe(T.Query())),
|
|
4876
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/sessions/release", code: 200 })),
|
|
4877
|
+
).annotate({ identifier: "ReleaseAllSessionsRequest" });
|
|
4329
4878
|
}
|
|
4330
4879
|
}
|
|
4331
4880
|
function __c25(j: number): any {
|
|
4332
4881
|
switch (j) {
|
|
4333
4882
|
case 0:
|
|
4334
|
-
return S.
|
|
4883
|
+
return S.suspend(() =>
|
|
4884
|
+
S.Struct({
|
|
4885
|
+
id: S.String.pipe(T.Label()),
|
|
4886
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/sessions/{id}/release", code: 200 })),
|
|
4887
|
+
).annotate({ identifier: "ReleaseSessionRequest" });
|
|
4335
4888
|
}
|
|
4336
4889
|
}
|
|
4337
4890
|
function __c26(j: number): any {
|
|
4338
4891
|
switch (j) {
|
|
4339
4892
|
case 0:
|
|
4893
|
+
return S.Array(S.Unknown);
|
|
4894
|
+
case 1:
|
|
4340
4895
|
return S.suspend(() =>
|
|
4341
4896
|
S.Struct({
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4897
|
+
id: S.String.pipe(T.Label()),
|
|
4898
|
+
bindings: S.optional(__S(416, __c26, 0)),
|
|
4899
|
+
credentialIds: S.optional(__S(528, __c33, 0)),
|
|
4900
|
+
}).pipe(T.Http({ method: "PUT", uri: "/v1/sessions/{id}/credentials", code: 200 })),
|
|
4901
|
+
).annotate({ identifier: "ReplaceSessionCredentialsRequest" });
|
|
4902
|
+
}
|
|
4903
|
+
}
|
|
4904
|
+
function __c27(j: number): any {
|
|
4905
|
+
switch (j) {
|
|
4906
|
+
case 0:
|
|
4907
|
+
return S.Record(S.String, S.Unknown);
|
|
4346
4908
|
case 1:
|
|
4347
4909
|
return S.suspend(() =>
|
|
4348
4910
|
S.Struct({
|
|
4349
|
-
|
|
4911
|
+
id: S.String.pipe(T.Label()),
|
|
4912
|
+
metadata: __S(432, __c27, 0),
|
|
4913
|
+
}).pipe(T.Http({ method: "PUT", uri: "/v1/sessions/{id}/metadata", code: 200 })),
|
|
4914
|
+
).annotate({ identifier: "ReplaceSessionMetadataRequest" });
|
|
4915
|
+
}
|
|
4916
|
+
}
|
|
4917
|
+
function __c28(j: number): any {
|
|
4918
|
+
switch (j) {
|
|
4919
|
+
case 0:
|
|
4920
|
+
return S.suspend(() =>
|
|
4921
|
+
S.Struct({
|
|
4922
|
+
metadata: __S(64, __c4, 0),
|
|
4350
4923
|
}),
|
|
4351
|
-
).annotate({ identifier: "
|
|
4352
|
-
|
|
4924
|
+
).annotate({ identifier: "SessionMetadataResponse" });
|
|
4925
|
+
}
|
|
4926
|
+
}
|
|
4927
|
+
function __c29(j: number): any {
|
|
4928
|
+
switch (j) {
|
|
4929
|
+
case 0:
|
|
4353
4930
|
return S.suspend(() =>
|
|
4354
4931
|
S.Struct({
|
|
4355
|
-
|
|
4356
|
-
|
|
4932
|
+
base: S.optional(S.String),
|
|
4933
|
+
compact: S.optional(S.Boolean),
|
|
4934
|
+
depth: S.optional(S.Number),
|
|
4935
|
+
interactive: S.optional(S.Boolean),
|
|
4936
|
+
mode: S.String,
|
|
4937
|
+
tab: S.optional(S.String),
|
|
4357
4938
|
}),
|
|
4358
|
-
).annotate({ identifier: "
|
|
4359
|
-
case
|
|
4939
|
+
).annotate({ identifier: "RunCommandsRequestObserve" });
|
|
4940
|
+
case 1:
|
|
4360
4941
|
return S.suspend(() =>
|
|
4361
4942
|
S.Struct({
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4943
|
+
sessionId: S.String.pipe(T.Label()),
|
|
4944
|
+
after: S.optional(S.String),
|
|
4945
|
+
commands: S.Unknown,
|
|
4946
|
+
observe: S.optional(__S(464, __c29, 0)),
|
|
4947
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/sessions/{sessionId}/commands", code: 200 })),
|
|
4948
|
+
).annotate({ identifier: "RunCommandsRequest" });
|
|
4949
|
+
}
|
|
4950
|
+
}
|
|
4951
|
+
function __c30(j: number): any {
|
|
4952
|
+
switch (j) {
|
|
4953
|
+
case 0:
|
|
4954
|
+
return S.Record(S.String, /*@__PURE__*/ S.NullOr(S.Unknown));
|
|
4955
|
+
case 1:
|
|
4956
|
+
return S.suspend(() =>
|
|
4957
|
+
S.Struct({
|
|
4958
|
+
id: S.String.pipe(T.Label()),
|
|
4959
|
+
metadata: __S(480, __c30, 0),
|
|
4960
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/v1/sessions/{id}/metadata", code: 200 })),
|
|
4961
|
+
).annotate({ identifier: "UpdateSessionMetadataRequest" });
|
|
4962
|
+
}
|
|
4963
|
+
}
|
|
4964
|
+
function __c31(j: number): any {
|
|
4965
|
+
switch (j) {
|
|
4966
|
+
case 0:
|
|
4967
|
+
return S.Array(S.Unknown);
|
|
4968
|
+
case 1:
|
|
4969
|
+
return S.suspend(() =>
|
|
4970
|
+
S.Struct({
|
|
4971
|
+
id: S.String.pipe(T.Label()),
|
|
4972
|
+
bindings: S.optional(__S(496, __c31, 0)),
|
|
4973
|
+
credentialIds: S.optional(__S(528, __c33, 0)),
|
|
4974
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/sessions/{id}/credentials", code: 200 })),
|
|
4975
|
+
).annotate({ identifier: "AttachSessionCredentialsRequest" });
|
|
4976
|
+
}
|
|
4977
|
+
}
|
|
4978
|
+
function __c32(j: number): any {
|
|
4979
|
+
switch (j) {
|
|
4980
|
+
case 0:
|
|
4981
|
+
return S.Array(S.Unknown);
|
|
4982
|
+
case 1:
|
|
4983
|
+
return S.suspend(() =>
|
|
4984
|
+
S.Struct({
|
|
4985
|
+
additionalOrigins: __S(528, __c33, 0),
|
|
4986
|
+
id: S.String,
|
|
4987
|
+
name: S.String,
|
|
4988
|
+
namespace: S.String,
|
|
4989
|
+
origin: S.String,
|
|
4367
4990
|
}),
|
|
4368
|
-
).annotate({ identifier: "
|
|
4369
|
-
case
|
|
4991
|
+
).annotate({ identifier: "SessionCredentialsResponseCredentialsItem" });
|
|
4992
|
+
case 2:
|
|
4993
|
+
return S.Array(__S(513, __c32, 1));
|
|
4994
|
+
case 3:
|
|
4370
4995
|
return S.suspend(() =>
|
|
4371
4996
|
S.Struct({
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4997
|
+
bindings: __S(512, __c32, 0),
|
|
4998
|
+
credentials: __S(514, __c32, 2),
|
|
4999
|
+
credentialsEnabled: S.Boolean,
|
|
5000
|
+
lookup: S.String,
|
|
4375
5001
|
}),
|
|
4376
|
-
).annotate({ identifier: "
|
|
4377
|
-
|
|
5002
|
+
).annotate({ identifier: "SessionCredentialsResponse" });
|
|
5003
|
+
}
|
|
5004
|
+
}
|
|
5005
|
+
function __c33(j: number): any {
|
|
5006
|
+
switch (j) {
|
|
5007
|
+
case 0:
|
|
4378
5008
|
return S.Array(S.String);
|
|
4379
|
-
|
|
5009
|
+
}
|
|
5010
|
+
}
|
|
5011
|
+
function __c34(j: number): any {
|
|
5012
|
+
switch (j) {
|
|
5013
|
+
case 0:
|
|
4380
5014
|
return S.suspend(() =>
|
|
4381
5015
|
S.Struct({
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
headless: S.optional(S.Boolean),
|
|
4393
|
-
id: S.String,
|
|
4394
|
-
inactivityTimeout: S.optional(S.Number),
|
|
4395
|
-
isSelenium: S.optional(S.Boolean),
|
|
4396
|
-
metadata: S.optional(__S(400, __c25, 0)),
|
|
4397
|
-
optimizeBandwidth: __S(419, __c26, 3),
|
|
4398
|
-
persistProfile: S.optional(S.Boolean),
|
|
4399
|
-
profileId: S.optional(S.String),
|
|
4400
|
-
projectId: S.optional(S.NullOr(S.String)),
|
|
4401
|
-
proxyBytesUsed: S.Number,
|
|
4402
|
-
proxySource: S.NullOr(S.String),
|
|
4403
|
-
region: S.optional(S.String),
|
|
4404
|
-
releaseReason: S.optional(S.NullOr(S.String)),
|
|
4405
|
-
sessionViewerUrl: S.String,
|
|
4406
|
-
signals: __S(421, __c26, 5),
|
|
4407
|
-
solveCaptcha: S.optional(S.Boolean),
|
|
4408
|
-
status: S.String,
|
|
4409
|
-
stealthConfig: S.optional(__S(420, __c26, 4)),
|
|
4410
|
-
timeout: S.Number,
|
|
4411
|
-
userAgent: S.optional(S.String),
|
|
4412
|
-
websocketUrl: S.String.pipe(T.SensitiveValue({})),
|
|
4413
|
-
}),
|
|
4414
|
-
).annotate({ identifier: "SessionResponse" });
|
|
5016
|
+
sessionId: S.String.pipe(T.Label()),
|
|
5017
|
+
executionId: S.String.pipe(T.Label()),
|
|
5018
|
+
}).pipe(
|
|
5019
|
+
T.Http({
|
|
5020
|
+
method: "POST",
|
|
5021
|
+
uri: "/v1/sessions/{sessionId}/commands/executions/{executionId}/cancel",
|
|
5022
|
+
code: 200,
|
|
5023
|
+
}),
|
|
5024
|
+
),
|
|
5025
|
+
).annotate({ identifier: "CancelCommandExecutionRequest" });
|
|
4415
5026
|
}
|
|
4416
5027
|
}
|
|
4417
|
-
function
|
|
5028
|
+
function __c35(j: number): any {
|
|
4418
5029
|
switch (j) {
|
|
4419
5030
|
case 0:
|
|
4420
5031
|
return S.suspend(() =>
|
|
4421
5032
|
S.Struct({
|
|
4422
|
-
|
|
4423
|
-
|
|
5033
|
+
defaultPrompt: S.optional(S.String),
|
|
5034
|
+
id: S.String,
|
|
5035
|
+
message: S.String,
|
|
5036
|
+
tab: S.String,
|
|
5037
|
+
type: S.String,
|
|
4424
5038
|
}),
|
|
4425
|
-
).annotate({ identifier: "
|
|
5039
|
+
).annotate({ identifier: "CommandDialog" });
|
|
4426
5040
|
case 1:
|
|
4427
5041
|
return S.suspend(() =>
|
|
4428
5042
|
S.Struct({
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
name: S.String,
|
|
4433
|
-
partitionKey: S.optional(__S(432, __c27, 0)),
|
|
4434
|
-
path: S.optional(S.String),
|
|
4435
|
-
priority: S.optional(S.String),
|
|
4436
|
-
sameParty: S.optional(S.Boolean),
|
|
4437
|
-
sameSite: S.optional(S.String),
|
|
4438
|
-
secure: S.optional(S.Boolean),
|
|
4439
|
-
session: S.optional(S.Boolean),
|
|
4440
|
-
size: S.optional(S.Number),
|
|
4441
|
-
sourcePort: S.optional(S.Number),
|
|
4442
|
-
sourceScheme: S.optional(S.String),
|
|
4443
|
-
url: S.optional(S.String),
|
|
4444
|
-
value: S.String,
|
|
5043
|
+
button: S.optional(S.String),
|
|
5044
|
+
keys: __S(528, __c33, 0),
|
|
5045
|
+
tab: S.String,
|
|
4445
5046
|
}),
|
|
4446
|
-
).annotate({ identifier: "
|
|
5047
|
+
).annotate({ identifier: "CommandHeld" });
|
|
4447
5048
|
case 2:
|
|
4448
|
-
return S.Array(__S(
|
|
5049
|
+
return S.Array(__S(561, __c35, 1));
|
|
4449
5050
|
case 3:
|
|
4450
5051
|
return S.suspend(() =>
|
|
4451
5052
|
S.Struct({
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
mimeType: S.String,
|
|
4456
|
-
path: S.optional(S.String),
|
|
4457
|
-
size: S.Number,
|
|
5053
|
+
code: S.String,
|
|
5054
|
+
message: S.String,
|
|
5055
|
+
reason: S.optional(S.String),
|
|
4458
5056
|
}),
|
|
4459
|
-
).annotate({
|
|
4460
|
-
identifier:
|
|
4461
|
-
"CreateSessionRequestSessionContextIndexedDBValueItemDataItemRecordsItemBlobFilesItem",
|
|
4462
|
-
});
|
|
5057
|
+
).annotate({ identifier: "CommandErrorInfo" });
|
|
4463
5058
|
case 4:
|
|
4464
|
-
return S.Array(__S(435, __c27, 3));
|
|
4465
|
-
case 5:
|
|
4466
|
-
return S.suspend(() =>
|
|
4467
|
-
S.Struct({
|
|
4468
|
-
blobFiles: S.optional(__S(436, __c27, 4)),
|
|
4469
|
-
key: S.Unknown,
|
|
4470
|
-
value: S.Unknown,
|
|
4471
|
-
}),
|
|
4472
|
-
).annotate({
|
|
4473
|
-
identifier: "CreateSessionRequestSessionContextIndexedDBValueItemDataItemRecordsItem",
|
|
4474
|
-
});
|
|
4475
|
-
case 6:
|
|
4476
|
-
return S.Array(__S(437, __c27, 5));
|
|
4477
|
-
case 7:
|
|
4478
5059
|
return S.suspend(() =>
|
|
4479
5060
|
S.Struct({
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
5061
|
+
additions: S.optional(S.Number),
|
|
5062
|
+
base: S.optional(S.String),
|
|
5063
|
+
diff: S.optional(S.String),
|
|
5064
|
+
error: S.optional(__S(563, __c35, 3)),
|
|
5065
|
+
full: S.optional(S.Boolean),
|
|
5066
|
+
removals: S.optional(S.Number),
|
|
5067
|
+
snapshot: S.optional(S.String),
|
|
5068
|
+
snapshotId: S.optional(S.String),
|
|
4483
5069
|
}),
|
|
4484
|
-
).annotate({ identifier: "
|
|
4485
|
-
case
|
|
4486
|
-
return S.Array(__S(439, __c27, 7));
|
|
4487
|
-
case 9:
|
|
5070
|
+
).annotate({ identifier: "RunCommandsResponseObserve" });
|
|
5071
|
+
case 5:
|
|
4488
5072
|
return S.suspend(() =>
|
|
4489
5073
|
S.Struct({
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
5074
|
+
tab: S.String,
|
|
5075
|
+
title: S.String,
|
|
5076
|
+
url: S.String,
|
|
4493
5077
|
}),
|
|
4494
|
-
).annotate({ identifier: "
|
|
4495
|
-
case
|
|
4496
|
-
return S.Array(
|
|
4497
|
-
case
|
|
4498
|
-
return S.Record(S.String, __S(442, __c27, 10));
|
|
4499
|
-
case 12:
|
|
4500
|
-
return S.Record(S.String, __S(400, __c25, 0));
|
|
4501
|
-
case 13:
|
|
5078
|
+
).annotate({ identifier: "RunCommandsResponsePage" });
|
|
5079
|
+
case 6:
|
|
5080
|
+
return S.Array(S.Unknown);
|
|
5081
|
+
case 7:
|
|
4502
5082
|
return S.suspend(() =>
|
|
4503
5083
|
S.Struct({
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
5084
|
+
bodyExpired: S.optional(S.Boolean),
|
|
5085
|
+
dialog: S.optional(__S(560, __c35, 0)),
|
|
5086
|
+
effect: S.String,
|
|
5087
|
+
epochChanged: S.optional(S.Boolean),
|
|
5088
|
+
held: S.optional(__S(562, __c35, 2)),
|
|
5089
|
+
id: S.String,
|
|
5090
|
+
next: S.optional(S.String),
|
|
5091
|
+
observe: S.optional(__S(564, __c35, 4)),
|
|
5092
|
+
page: S.NullOr(__S(565, __c35, 5)),
|
|
5093
|
+
ran: S.Number,
|
|
5094
|
+
replayed: S.Boolean,
|
|
5095
|
+
results: __S(566, __c35, 6),
|
|
5096
|
+
state: S.String,
|
|
5097
|
+
stopped: S.optional(__S(563, __c35, 3)),
|
|
4508
5098
|
}),
|
|
4509
|
-
).annotate({ identifier: "
|
|
5099
|
+
).annotate({ identifier: "RunCommandsResponse" });
|
|
4510
5100
|
}
|
|
4511
5101
|
}
|
|
4512
5102
|
// Schema table: entry i is schema j of builder f, made on first reach.
|