@distilled.cloud/steel 0.0.0 → 1.0.0-rc.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +66 -4
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +24 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +39 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +26 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +7 -0
- package/lib/index.lazy.js +7 -0
- package/lib/index.lazy.js.map +1 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +19 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +50 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/api_keys.d.ts +63 -0
- package/lib/services/api_keys.d.ts.map +1 -0
- package/lib/services/api_keys.js +2 -0
- package/lib/services/api_keys.js.map +1 -0
- package/lib/services/auth.d.ts +32 -0
- package/lib/services/auth.d.ts.map +1 -0
- package/lib/services/auth.js +2 -0
- package/lib/services/auth.js.map +1 -0
- package/lib/services/browser_tools.d.ts +166 -0
- package/lib/services/browser_tools.d.ts.map +1 -0
- package/lib/services/browser_tools.js +2 -0
- package/lib/services/browser_tools.js.map +1 -0
- package/lib/services/captchas.d.ts +72 -0
- package/lib/services/captchas.d.ts.map +1 -0
- package/lib/services/captchas.js +2 -0
- package/lib/services/captchas.js.map +1 -0
- package/lib/services/credentials.d.ts +127 -0
- package/lib/services/credentials.d.ts.map +1 -0
- package/lib/services/credentials.js +2 -0
- package/lib/services/credentials.js.map +1 -0
- package/lib/services/extensions.d.ts +122 -0
- package/lib/services/extensions.d.ts.map +1 -0
- package/lib/services/extensions.js +2 -0
- package/lib/services/extensions.js.map +1 -0
- package/lib/services/files.d.ts +144 -0
- package/lib/services/files.d.ts.map +1 -0
- package/lib/services/files.js +2 -0
- package/lib/services/files.js.map +1 -0
- package/lib/services/index.d.ts +11 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +10 -0
- package/lib/services/profiles.d.ts +422 -0
- package/lib/services/profiles.d.ts.map +1 -0
- package/lib/services/profiles.js +2 -0
- package/lib/services/profiles.js.map +1 -0
- package/lib/services/projects.d.ts +50 -0
- package/lib/services/projects.d.ts.map +1 -0
- package/lib/services/projects.js +2 -0
- package/lib/services/projects.js.map +1 -0
- package/lib/services/sessions.d.ts +1977 -0
- package/lib/services/sessions.d.ts.map +1 -0
- package/lib/services/sessions.js +44 -0
- package/lib/services/sessions.js.map +1 -0
- package/lib/services.lazy/api_keys.js +1 -0
- package/lib/services.lazy/auth.js +1 -0
- package/lib/services.lazy/browser_tools.js +1 -0
- package/lib/services.lazy/captchas.js +1 -0
- package/lib/services.lazy/credentials.js +1 -0
- package/lib/services.lazy/extensions.js +1 -0
- package/lib/services.lazy/files.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/profiles.js +1 -0
- package/lib/services.lazy/projects.js +1 -0
- package/lib/services.lazy/sessions.js +4 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/package.json +83 -2
- package/src/credentials.ts +63 -0
- package/src/errors.ts +51 -0
- package/src/index.ts +25 -0
- package/src/pagination.ts +9 -0
- package/src/protocol.ts +76 -0
- package/src/retry.ts +69 -0
- package/src/services/api_keys.ts +124 -0
- package/src/services/auth.ts +101 -0
- package/src/services/browser_tools.ts +338 -0
- package/src/services/captchas.ts +216 -0
- package/src/services/credentials.ts +292 -0
- package/src/services/extensions.ts +338 -0
- package/src/services/files.ts +456 -0
- package/src/services/index.ts +11 -0
- package/src/services/profiles.ts +871 -0
- package/src/services/projects.ts +146 -0
- package/src/services/sessions.ts +4515 -0
- package/src/traits.ts +46 -0
|
@@ -0,0 +1,871 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
3
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-steel/specs/openapi.json). Do not edit.
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
+
import { UnknownSteelError } from "../errors.ts";
|
|
7
|
+
import { SteelProtocol, type SteelOpError, type SteelOpContext } from "../protocol.ts";
|
|
8
|
+
import * as Retry from "../retry.ts";
|
|
9
|
+
import * as T from "../traits.ts";
|
|
10
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
11
|
+
const __s: any[] = [];
|
|
12
|
+
|
|
13
|
+
export type { SteelOpError, SteelOpContext };
|
|
14
|
+
|
|
15
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
16
|
+
const TELEMETRY = {
|
|
17
|
+
system: "steel-api",
|
|
18
|
+
responseHeaders: [
|
|
19
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
20
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
21
|
+
],
|
|
22
|
+
prefix: "Steel",
|
|
23
|
+
service: "Profiles",
|
|
24
|
+
labels: "steel",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export class BadRequest
|
|
29
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
30
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
31
|
+
code: S.Number,
|
|
32
|
+
message: S.String,
|
|
33
|
+
}).pipe(C.withBadRequestError),
|
|
34
|
+
[{ status: 400 }],
|
|
35
|
+
) {}
|
|
36
|
+
|
|
37
|
+
export class NotFound
|
|
38
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
39
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
40
|
+
code: S.Number,
|
|
41
|
+
message: S.String,
|
|
42
|
+
}).pipe(C.withBadRequestError),
|
|
43
|
+
[{ status: 404 }],
|
|
44
|
+
) {}
|
|
45
|
+
|
|
46
|
+
export class PayloadTooLarge
|
|
47
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
48
|
+
/*@__PURE__*/ S.TaggedError<PayloadTooLarge>()("PayloadTooLarge", {
|
|
49
|
+
code: S.Number,
|
|
50
|
+
message: S.String,
|
|
51
|
+
}).pipe(C.withBadRequestError),
|
|
52
|
+
[{ status: 413 }],
|
|
53
|
+
) {}
|
|
54
|
+
|
|
55
|
+
/** The dimensions associated with the profile */
|
|
56
|
+
export interface CreateProfileRequestDimensions {
|
|
57
|
+
height: number;
|
|
58
|
+
width: number;
|
|
59
|
+
}
|
|
60
|
+
export interface CreateProfileRequest {
|
|
61
|
+
/** The dimensions associated with the profile */
|
|
62
|
+
dimensions?: CreateProfileRequestDimensions | undefined;
|
|
63
|
+
/** Project to create the profile in */
|
|
64
|
+
projectId?: string | undefined;
|
|
65
|
+
/** The proxy associated with the profile */
|
|
66
|
+
proxyUrl?: string | undefined;
|
|
67
|
+
/** JSON-encoded proxy configuration associated with the profile. For fixed IPs, send {"type":"fixed","id":"fixed:<id>"}. */
|
|
68
|
+
useProxy?: string | undefined;
|
|
69
|
+
/** The user agent associated with the profile */
|
|
70
|
+
userAgent?: string | undefined;
|
|
71
|
+
/** The user data directory associated with the profile */
|
|
72
|
+
userDataDir: Blob | Uint8Array | ArrayBuffer;
|
|
73
|
+
}
|
|
74
|
+
/** The dimensions associated with the profile */
|
|
75
|
+
export type ProfileDimensions = CreateProfileRequestDimensions;
|
|
76
|
+
/** The extension IDs associated with the profile */
|
|
77
|
+
export type ProfileExtensionIdsList = Array<string>;
|
|
78
|
+
export type ProfileFingerprintFingerprintAudioCodecsMap = {
|
|
79
|
+
[key: string]: string | null | undefined;
|
|
80
|
+
};
|
|
81
|
+
export interface ProfileFingerprintFingerprintBattery {
|
|
82
|
+
charging: boolean | null;
|
|
83
|
+
chargingTime: number | null;
|
|
84
|
+
dischargingTime: number | null;
|
|
85
|
+
level: number | null;
|
|
86
|
+
[key: string]: unknown;
|
|
87
|
+
}
|
|
88
|
+
export type ProfileFingerprintFingerprintFontsList = Array<string | null>;
|
|
89
|
+
export interface ProfileFingerprintFingerprintMultimediaDevicesMicrosItem {
|
|
90
|
+
deviceId: string | null;
|
|
91
|
+
groupId: string | null;
|
|
92
|
+
kind: string | null;
|
|
93
|
+
label: string | null;
|
|
94
|
+
[key: string]: unknown;
|
|
95
|
+
}
|
|
96
|
+
export type ProfileFingerprintFingerprintMultimediaDevicesMicrosList =
|
|
97
|
+
Array<ProfileFingerprintFingerprintMultimediaDevicesMicrosItem>;
|
|
98
|
+
export type ProfileFingerprintFingerprintMultimediaDevicesSpeakersItem =
|
|
99
|
+
ProfileFingerprintFingerprintMultimediaDevicesMicrosItem;
|
|
100
|
+
export type ProfileFingerprintFingerprintMultimediaDevicesSpeakersList =
|
|
101
|
+
Array<ProfileFingerprintFingerprintMultimediaDevicesMicrosItem>;
|
|
102
|
+
export type ProfileFingerprintFingerprintMultimediaDevicesWebcamsItem =
|
|
103
|
+
ProfileFingerprintFingerprintMultimediaDevicesMicrosItem;
|
|
104
|
+
export type ProfileFingerprintFingerprintMultimediaDevicesWebcamsList =
|
|
105
|
+
Array<ProfileFingerprintFingerprintMultimediaDevicesMicrosItem>;
|
|
106
|
+
export interface ProfileFingerprintFingerprintMultimediaDevices {
|
|
107
|
+
micros: ProfileFingerprintFingerprintMultimediaDevicesMicrosList;
|
|
108
|
+
speakers: ProfileFingerprintFingerprintMultimediaDevicesSpeakersList;
|
|
109
|
+
webcams: ProfileFingerprintFingerprintMultimediaDevicesWebcamsList;
|
|
110
|
+
[key: string]: unknown;
|
|
111
|
+
}
|
|
112
|
+
export type ProfileFingerprintFingerprintNavigatorExtraPropertiesInstalledAppsList = Array<
|
|
113
|
+
string | null
|
|
114
|
+
>;
|
|
115
|
+
export type ProfileFingerprintFingerprintNavigatorExtraPropertiesVendorFlavorsList = Array<
|
|
116
|
+
string | null
|
|
117
|
+
>;
|
|
118
|
+
export interface ProfileFingerprintFingerprintNavigatorExtraProperties {
|
|
119
|
+
globalPrivacyControl: boolean | null;
|
|
120
|
+
installedApps: ProfileFingerprintFingerprintNavigatorExtraPropertiesInstalledAppsList;
|
|
121
|
+
pdfViewerEnabled: boolean | null;
|
|
122
|
+
vendorFlavors: ProfileFingerprintFingerprintNavigatorExtraPropertiesVendorFlavorsList;
|
|
123
|
+
[key: string]: unknown;
|
|
124
|
+
}
|
|
125
|
+
export type ProfileFingerprintFingerprintNavigatorLanguagesList = Array<string | null>;
|
|
126
|
+
export interface ProfileFingerprintFingerprintNavigatorUserAgentDataBrandsItem {
|
|
127
|
+
brand: string | null;
|
|
128
|
+
version: string | null;
|
|
129
|
+
[key: string]: unknown;
|
|
130
|
+
}
|
|
131
|
+
export type ProfileFingerprintFingerprintNavigatorUserAgentDataBrandsList =
|
|
132
|
+
Array<ProfileFingerprintFingerprintNavigatorUserAgentDataBrandsItem>;
|
|
133
|
+
export interface ProfileFingerprintFingerprintNavigatorUserAgentData {
|
|
134
|
+
brands: ProfileFingerprintFingerprintNavigatorUserAgentDataBrandsList;
|
|
135
|
+
mobile: boolean | null;
|
|
136
|
+
platform: string | null;
|
|
137
|
+
[key: string]: unknown;
|
|
138
|
+
}
|
|
139
|
+
export interface ProfileFingerprintFingerprintNavigator {
|
|
140
|
+
appCodeName: string | null;
|
|
141
|
+
appName: string | null;
|
|
142
|
+
appVersion: string | null;
|
|
143
|
+
deviceMemory: number | null;
|
|
144
|
+
doNotTrack?: string | null | undefined;
|
|
145
|
+
extraProperties: ProfileFingerprintFingerprintNavigatorExtraProperties;
|
|
146
|
+
hardwareConcurrency: number | null;
|
|
147
|
+
language: string | null;
|
|
148
|
+
languages: ProfileFingerprintFingerprintNavigatorLanguagesList;
|
|
149
|
+
maxTouchPoints: number | null;
|
|
150
|
+
oscpu: string | null;
|
|
151
|
+
platform: string | null;
|
|
152
|
+
product: string | null;
|
|
153
|
+
productSub: string | null;
|
|
154
|
+
userAgent: string | null;
|
|
155
|
+
userAgentData: ProfileFingerprintFingerprintNavigatorUserAgentData;
|
|
156
|
+
vendor: string | null;
|
|
157
|
+
vendorSub: string | null;
|
|
158
|
+
webdriver: boolean | null;
|
|
159
|
+
[key: string]: unknown;
|
|
160
|
+
}
|
|
161
|
+
export type ProfileFingerprintFingerprintPluginsDataMimeTypesList = Array<string | null>;
|
|
162
|
+
export interface ProfileFingerprintFingerprintPluginsDataPluginsItemMimeTypesItem {
|
|
163
|
+
description: string | null;
|
|
164
|
+
enabledPlugin: string | null;
|
|
165
|
+
suffixes: string | null;
|
|
166
|
+
type: string | null;
|
|
167
|
+
[key: string]: unknown;
|
|
168
|
+
}
|
|
169
|
+
export type ProfileFingerprintFingerprintPluginsDataPluginsItemMimeTypesList =
|
|
170
|
+
Array<ProfileFingerprintFingerprintPluginsDataPluginsItemMimeTypesItem>;
|
|
171
|
+
export interface ProfileFingerprintFingerprintPluginsDataPluginsItem {
|
|
172
|
+
description: string | null;
|
|
173
|
+
filename: string | null;
|
|
174
|
+
mimeTypes: ProfileFingerprintFingerprintPluginsDataPluginsItemMimeTypesList;
|
|
175
|
+
name: string | null;
|
|
176
|
+
[key: string]: unknown;
|
|
177
|
+
}
|
|
178
|
+
export type ProfileFingerprintFingerprintPluginsDataPluginsList =
|
|
179
|
+
Array<ProfileFingerprintFingerprintPluginsDataPluginsItem>;
|
|
180
|
+
export interface ProfileFingerprintFingerprintPluginsData {
|
|
181
|
+
mimeTypes: ProfileFingerprintFingerprintPluginsDataMimeTypesList;
|
|
182
|
+
plugins: ProfileFingerprintFingerprintPluginsDataPluginsList;
|
|
183
|
+
[key: string]: unknown;
|
|
184
|
+
}
|
|
185
|
+
export interface ProfileFingerprintFingerprintScreen {
|
|
186
|
+
availHeight: number | null;
|
|
187
|
+
availLeft: number | null;
|
|
188
|
+
availTop: number | null;
|
|
189
|
+
availWidth: number | null;
|
|
190
|
+
clientHeight: number | null;
|
|
191
|
+
clientWidth: number | null;
|
|
192
|
+
colorDepth: number | null;
|
|
193
|
+
devicePixelRatio: number | null;
|
|
194
|
+
hasHDR: boolean | null;
|
|
195
|
+
height: number | null;
|
|
196
|
+
innerHeight: number | null;
|
|
197
|
+
innerWidth: number | null;
|
|
198
|
+
outerHeight: number | null;
|
|
199
|
+
outerWidth: number | null;
|
|
200
|
+
pageXOffset: number | null;
|
|
201
|
+
pageYOffset: number | null;
|
|
202
|
+
pixelDepth: number | null;
|
|
203
|
+
screenX: number | null;
|
|
204
|
+
width: number | null;
|
|
205
|
+
[key: string]: unknown;
|
|
206
|
+
}
|
|
207
|
+
export interface ProfileFingerprintFingerprintVideoCard {
|
|
208
|
+
renderer: string | null;
|
|
209
|
+
vendor: string | null;
|
|
210
|
+
[key: string]: unknown;
|
|
211
|
+
}
|
|
212
|
+
export type ProfileFingerprintFingerprintVideoCodecsMap = {
|
|
213
|
+
[key: string]: string | null | undefined;
|
|
214
|
+
};
|
|
215
|
+
export interface ProfileFingerprintFingerprint {
|
|
216
|
+
audioCodecs: ProfileFingerprintFingerprintAudioCodecsMap;
|
|
217
|
+
battery: ProfileFingerprintFingerprintBattery;
|
|
218
|
+
fonts: ProfileFingerprintFingerprintFontsList;
|
|
219
|
+
mockWebRTC: boolean | null;
|
|
220
|
+
multimediaDevices: ProfileFingerprintFingerprintMultimediaDevices;
|
|
221
|
+
navigator: ProfileFingerprintFingerprintNavigator;
|
|
222
|
+
pluginsData: ProfileFingerprintFingerprintPluginsData;
|
|
223
|
+
screen: ProfileFingerprintFingerprintScreen;
|
|
224
|
+
slim: boolean | null;
|
|
225
|
+
videoCard: ProfileFingerprintFingerprintVideoCard;
|
|
226
|
+
videoCodecs: ProfileFingerprintFingerprintVideoCodecsMap;
|
|
227
|
+
[key: string]: unknown;
|
|
228
|
+
}
|
|
229
|
+
export interface ProfileFingerprintHeaders {
|
|
230
|
+
accept?: string | null | undefined;
|
|
231
|
+
accept_encoding?: string | null | undefined;
|
|
232
|
+
accept_language?: string | null | undefined;
|
|
233
|
+
dnt?: string | null | undefined;
|
|
234
|
+
sec_ch_ua?: string | null | undefined;
|
|
235
|
+
sec_ch_ua_mobile?: string | null | undefined;
|
|
236
|
+
sec_ch_ua_platform?: string | null | undefined;
|
|
237
|
+
sec_fetch_dest?: string | null | undefined;
|
|
238
|
+
sec_fetch_mode?: string | null | undefined;
|
|
239
|
+
sec_fetch_site?: string | null | undefined;
|
|
240
|
+
sec_fetch_user?: string | null | undefined;
|
|
241
|
+
upgrade_insecure_requests?: string | null | undefined;
|
|
242
|
+
user_agent: string | null;
|
|
243
|
+
[key: string]: unknown;
|
|
244
|
+
}
|
|
245
|
+
/** The fingerprint associated with the profile */
|
|
246
|
+
export interface ProfileFingerprint {
|
|
247
|
+
fingerprint: ProfileFingerprintFingerprint;
|
|
248
|
+
headers: ProfileFingerprintHeaders;
|
|
249
|
+
}
|
|
250
|
+
/** The status of the profile */
|
|
251
|
+
export type ProfileStatus = "UPLOADING" | "READY" | "FAILED";
|
|
252
|
+
export interface Profile {
|
|
253
|
+
/** The date and time when the profile was created */
|
|
254
|
+
createdAt: string;
|
|
255
|
+
/** The credentials configuration associated with the profile */
|
|
256
|
+
credentialsConfig: unknown | null;
|
|
257
|
+
/** The dimensions associated with the profile */
|
|
258
|
+
dimensions: CreateProfileRequestDimensions | null;
|
|
259
|
+
/** The extension IDs associated with the profile */
|
|
260
|
+
extensionIds: ProfileExtensionIdsList | null;
|
|
261
|
+
/** The fingerprint associated with the profile */
|
|
262
|
+
fingerprint: ProfileFingerprint | null;
|
|
263
|
+
/** The unique identifier for the profile */
|
|
264
|
+
id: string;
|
|
265
|
+
/** The project ID associated with the profile */
|
|
266
|
+
projectId: string | null;
|
|
267
|
+
/** The last session ID associated with the profile */
|
|
268
|
+
sourceSessionId: string | null;
|
|
269
|
+
/** The status of the profile */
|
|
270
|
+
status: ProfileStatus;
|
|
271
|
+
/** The date and time when the profile was last updated */
|
|
272
|
+
updatedAt: string;
|
|
273
|
+
/** The proxy configuration associated with the profile */
|
|
274
|
+
useProxyConfig: unknown | null;
|
|
275
|
+
/** The user agent associated with the profile */
|
|
276
|
+
userAgent: string | null;
|
|
277
|
+
}
|
|
278
|
+
export interface GetProfileRequest {
|
|
279
|
+
id: string;
|
|
280
|
+
/** Project to query profiles from */
|
|
281
|
+
projectId?: string | undefined;
|
|
282
|
+
}
|
|
283
|
+
export interface ListProfilesRequest {
|
|
284
|
+
/** Project to query profiles from */
|
|
285
|
+
projectId?: string | undefined;
|
|
286
|
+
}
|
|
287
|
+
/** The dimensions associated with the profile */
|
|
288
|
+
export type ProfileListResponseProfilesItemDimensions = CreateProfileRequestDimensions;
|
|
289
|
+
/** The extension IDs associated with the profile */
|
|
290
|
+
export type ProfileListResponseProfilesItemExtensionIdsList = Array<string>;
|
|
291
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintAudioCodecsMap = {
|
|
292
|
+
[key: string]: string | null | undefined;
|
|
293
|
+
};
|
|
294
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintBattery =
|
|
295
|
+
ProfileFingerprintFingerprintBattery;
|
|
296
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintFontsList = Array<string | null>;
|
|
297
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesMicrosItem =
|
|
298
|
+
ProfileFingerprintFingerprintMultimediaDevicesMicrosItem;
|
|
299
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesMicrosList =
|
|
300
|
+
Array<ProfileFingerprintFingerprintMultimediaDevicesMicrosItem>;
|
|
301
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesSpeakersItem =
|
|
302
|
+
ProfileFingerprintFingerprintMultimediaDevicesMicrosItem;
|
|
303
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesSpeakersList =
|
|
304
|
+
Array<ProfileFingerprintFingerprintMultimediaDevicesMicrosItem>;
|
|
305
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesWebcamsItem =
|
|
306
|
+
ProfileFingerprintFingerprintMultimediaDevicesMicrosItem;
|
|
307
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesWebcamsList =
|
|
308
|
+
Array<ProfileFingerprintFingerprintMultimediaDevicesMicrosItem>;
|
|
309
|
+
export interface ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevices {
|
|
310
|
+
micros: ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesMicrosList;
|
|
311
|
+
speakers: ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesSpeakersList;
|
|
312
|
+
webcams: ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevicesWebcamsList;
|
|
313
|
+
[key: string]: unknown;
|
|
314
|
+
}
|
|
315
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintNavigatorExtraPropertiesInstalledAppsList =
|
|
316
|
+
Array<string | null>;
|
|
317
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintNavigatorExtraPropertiesVendorFlavorsList =
|
|
318
|
+
Array<string | null>;
|
|
319
|
+
export interface ProfileListResponseProfilesItemFingerprintFingerprintNavigatorExtraProperties {
|
|
320
|
+
globalPrivacyControl: boolean | null;
|
|
321
|
+
installedApps: ProfileListResponseProfilesItemFingerprintFingerprintNavigatorExtraPropertiesInstalledAppsList;
|
|
322
|
+
pdfViewerEnabled: boolean | null;
|
|
323
|
+
vendorFlavors: ProfileListResponseProfilesItemFingerprintFingerprintNavigatorExtraPropertiesVendorFlavorsList;
|
|
324
|
+
[key: string]: unknown;
|
|
325
|
+
}
|
|
326
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintNavigatorLanguagesList = Array<
|
|
327
|
+
string | null
|
|
328
|
+
>;
|
|
329
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintNavigatorUserAgentDataBrandsItem =
|
|
330
|
+
ProfileFingerprintFingerprintNavigatorUserAgentDataBrandsItem;
|
|
331
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintNavigatorUserAgentDataBrandsList =
|
|
332
|
+
Array<ProfileFingerprintFingerprintNavigatorUserAgentDataBrandsItem>;
|
|
333
|
+
export interface ProfileListResponseProfilesItemFingerprintFingerprintNavigatorUserAgentData {
|
|
334
|
+
brands: ProfileListResponseProfilesItemFingerprintFingerprintNavigatorUserAgentDataBrandsList;
|
|
335
|
+
mobile: boolean | null;
|
|
336
|
+
platform: string | null;
|
|
337
|
+
[key: string]: unknown;
|
|
338
|
+
}
|
|
339
|
+
export interface ProfileListResponseProfilesItemFingerprintFingerprintNavigator {
|
|
340
|
+
appCodeName: string | null;
|
|
341
|
+
appName: string | null;
|
|
342
|
+
appVersion: string | null;
|
|
343
|
+
deviceMemory: number | null;
|
|
344
|
+
doNotTrack?: string | null | undefined;
|
|
345
|
+
extraProperties: ProfileListResponseProfilesItemFingerprintFingerprintNavigatorExtraProperties;
|
|
346
|
+
hardwareConcurrency: number | null;
|
|
347
|
+
language: string | null;
|
|
348
|
+
languages: ProfileListResponseProfilesItemFingerprintFingerprintNavigatorLanguagesList;
|
|
349
|
+
maxTouchPoints: number | null;
|
|
350
|
+
oscpu: string | null;
|
|
351
|
+
platform: string | null;
|
|
352
|
+
product: string | null;
|
|
353
|
+
productSub: string | null;
|
|
354
|
+
userAgent: string | null;
|
|
355
|
+
userAgentData: ProfileListResponseProfilesItemFingerprintFingerprintNavigatorUserAgentData;
|
|
356
|
+
vendor: string | null;
|
|
357
|
+
vendorSub: string | null;
|
|
358
|
+
webdriver: boolean | null;
|
|
359
|
+
[key: string]: unknown;
|
|
360
|
+
}
|
|
361
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataMimeTypesList = Array<
|
|
362
|
+
string | null
|
|
363
|
+
>;
|
|
364
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataPluginsItemMimeTypesItem =
|
|
365
|
+
ProfileFingerprintFingerprintPluginsDataPluginsItemMimeTypesItem;
|
|
366
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataPluginsItemMimeTypesList =
|
|
367
|
+
Array<ProfileFingerprintFingerprintPluginsDataPluginsItemMimeTypesItem>;
|
|
368
|
+
export interface ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataPluginsItem {
|
|
369
|
+
description: string | null;
|
|
370
|
+
filename: string | null;
|
|
371
|
+
mimeTypes: ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataPluginsItemMimeTypesList;
|
|
372
|
+
name: string | null;
|
|
373
|
+
[key: string]: unknown;
|
|
374
|
+
}
|
|
375
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataPluginsList =
|
|
376
|
+
Array<ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataPluginsItem>;
|
|
377
|
+
export interface ProfileListResponseProfilesItemFingerprintFingerprintPluginsData {
|
|
378
|
+
mimeTypes: ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataMimeTypesList;
|
|
379
|
+
plugins: ProfileListResponseProfilesItemFingerprintFingerprintPluginsDataPluginsList;
|
|
380
|
+
[key: string]: unknown;
|
|
381
|
+
}
|
|
382
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintScreen =
|
|
383
|
+
ProfileFingerprintFingerprintScreen;
|
|
384
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintVideoCard =
|
|
385
|
+
ProfileFingerprintFingerprintVideoCard;
|
|
386
|
+
export type ProfileListResponseProfilesItemFingerprintFingerprintVideoCodecsMap = {
|
|
387
|
+
[key: string]: string | null | undefined;
|
|
388
|
+
};
|
|
389
|
+
export interface ProfileListResponseProfilesItemFingerprintFingerprint {
|
|
390
|
+
audioCodecs: ProfileListResponseProfilesItemFingerprintFingerprintAudioCodecsMap;
|
|
391
|
+
battery: ProfileFingerprintFingerprintBattery;
|
|
392
|
+
fonts: ProfileListResponseProfilesItemFingerprintFingerprintFontsList;
|
|
393
|
+
mockWebRTC: boolean | null;
|
|
394
|
+
multimediaDevices: ProfileListResponseProfilesItemFingerprintFingerprintMultimediaDevices;
|
|
395
|
+
navigator: ProfileListResponseProfilesItemFingerprintFingerprintNavigator;
|
|
396
|
+
pluginsData: ProfileListResponseProfilesItemFingerprintFingerprintPluginsData;
|
|
397
|
+
screen: ProfileFingerprintFingerprintScreen;
|
|
398
|
+
slim: boolean | null;
|
|
399
|
+
videoCard: ProfileFingerprintFingerprintVideoCard;
|
|
400
|
+
videoCodecs: ProfileListResponseProfilesItemFingerprintFingerprintVideoCodecsMap;
|
|
401
|
+
[key: string]: unknown;
|
|
402
|
+
}
|
|
403
|
+
export type ProfileListResponseProfilesItemFingerprintHeaders = ProfileFingerprintHeaders;
|
|
404
|
+
/** The fingerprint associated with the profile */
|
|
405
|
+
export interface ProfileListResponseProfilesItemFingerprint {
|
|
406
|
+
fingerprint: ProfileListResponseProfilesItemFingerprintFingerprint;
|
|
407
|
+
headers: ProfileFingerprintHeaders;
|
|
408
|
+
}
|
|
409
|
+
/** The status of the profile */
|
|
410
|
+
export type ProfileListResponseProfilesItemStatus = "UPLOADING" | "READY" | "FAILED";
|
|
411
|
+
export interface ProfileListResponseProfilesItem {
|
|
412
|
+
/** The date and time when the profile was created */
|
|
413
|
+
createdAt: string;
|
|
414
|
+
/** The credentials configuration associated with the profile */
|
|
415
|
+
credentialsConfig: unknown | null;
|
|
416
|
+
/** The dimensions associated with the profile */
|
|
417
|
+
dimensions: CreateProfileRequestDimensions | null;
|
|
418
|
+
/** The extension IDs associated with the profile */
|
|
419
|
+
extensionIds: ProfileListResponseProfilesItemExtensionIdsList | null;
|
|
420
|
+
/** The fingerprint associated with the profile */
|
|
421
|
+
fingerprint: ProfileListResponseProfilesItemFingerprint | null;
|
|
422
|
+
/** The unique identifier for the profile */
|
|
423
|
+
id: string;
|
|
424
|
+
/** The project ID associated with the profile */
|
|
425
|
+
projectId: string | null;
|
|
426
|
+
/** The last session ID associated with the profile */
|
|
427
|
+
sourceSessionId: string | null;
|
|
428
|
+
/** The status of the profile */
|
|
429
|
+
status: ProfileListResponseProfilesItemStatus;
|
|
430
|
+
/** The date and time when the profile was last updated */
|
|
431
|
+
updatedAt: string;
|
|
432
|
+
/** The proxy configuration associated with the profile */
|
|
433
|
+
useProxyConfig: unknown | null;
|
|
434
|
+
/** The user agent associated with the profile */
|
|
435
|
+
userAgent: string | null;
|
|
436
|
+
}
|
|
437
|
+
/** The list of profiles */
|
|
438
|
+
export type ProfileListResponseProfilesList = Array<ProfileListResponseProfilesItem>;
|
|
439
|
+
export interface ProfileListResponse {
|
|
440
|
+
/** The total number of profiles */
|
|
441
|
+
count: number;
|
|
442
|
+
/** The list of profiles */
|
|
443
|
+
profiles: ProfileListResponseProfilesList;
|
|
444
|
+
}
|
|
445
|
+
/** The dimensions associated with the profile */
|
|
446
|
+
export type UpdateProfileRequestDimensions = CreateProfileRequestDimensions;
|
|
447
|
+
export interface UpdateProfileRequest {
|
|
448
|
+
id: string;
|
|
449
|
+
/** Project to query profiles from */
|
|
450
|
+
projectId?: string | undefined;
|
|
451
|
+
/** The dimensions associated with the profile */
|
|
452
|
+
dimensions?: CreateProfileRequestDimensions | undefined;
|
|
453
|
+
/** The proxy associated with the profile */
|
|
454
|
+
proxyUrl?: string | undefined;
|
|
455
|
+
/** JSON-encoded proxy configuration associated with the profile. For fixed IPs, send {"type":"fixed","id":"fixed:<id>"}. */
|
|
456
|
+
useProxy?: string | undefined;
|
|
457
|
+
/** The user agent associated with the profile */
|
|
458
|
+
userAgent?: string | undefined;
|
|
459
|
+
/** The user data directory associated with the profile */
|
|
460
|
+
userDataDir: Blob | Uint8Array | ArrayBuffer;
|
|
461
|
+
}
|
|
462
|
+
export type CreateProfileError = BadRequest | NotFound | PayloadTooLarge | SteelOpError;
|
|
463
|
+
/** Create a profile Create a new profile */
|
|
464
|
+
export const createProfile: API.OperationMethod<
|
|
465
|
+
CreateProfileRequest,
|
|
466
|
+
Profile,
|
|
467
|
+
CreateProfileError,
|
|
468
|
+
SteelOpContext
|
|
469
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
470
|
+
input: __S(0, __c0, 0) as any as S.Schema<CreateProfileRequest>,
|
|
471
|
+
output: __S(55, __c1, 23) as any as S.Schema<Profile>,
|
|
472
|
+
errors: [BadRequest, NotFound, PayloadTooLarge, UnknownSteelError],
|
|
473
|
+
protocol: SteelProtocol,
|
|
474
|
+
retry: Retry.Retry,
|
|
475
|
+
telemetry: TELEMETRY,
|
|
476
|
+
span: "CreateProfile",
|
|
477
|
+
}));
|
|
478
|
+
|
|
479
|
+
export type GetProfileError = BadRequest | NotFound | SteelOpError;
|
|
480
|
+
/** Get a profile Retrieve a profile by ID */
|
|
481
|
+
export const getProfile: API.OperationMethod<
|
|
482
|
+
GetProfileRequest,
|
|
483
|
+
Profile,
|
|
484
|
+
GetProfileError,
|
|
485
|
+
SteelOpContext
|
|
486
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
487
|
+
input: __S(64, __c2, 0) as any as S.Schema<GetProfileRequest>,
|
|
488
|
+
output: __S(55, __c1, 23) as any as S.Schema<Profile>,
|
|
489
|
+
errors: [BadRequest, NotFound, UnknownSteelError],
|
|
490
|
+
protocol: SteelProtocol,
|
|
491
|
+
retry: Retry.Retry,
|
|
492
|
+
telemetry: TELEMETRY,
|
|
493
|
+
span: "GetProfile",
|
|
494
|
+
}));
|
|
495
|
+
|
|
496
|
+
export type ListProfilesError = BadRequest | SteelOpError;
|
|
497
|
+
/** List all profiles Retrieve a list of all profiles */
|
|
498
|
+
export const listProfiles: API.OperationMethod<
|
|
499
|
+
ListProfilesRequest,
|
|
500
|
+
ProfileListResponse,
|
|
501
|
+
ListProfilesError,
|
|
502
|
+
SteelOpContext
|
|
503
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
504
|
+
input: __S(96, __c3, 0) as any as S.Schema<ListProfilesRequest>,
|
|
505
|
+
output: __S(98, __c3, 2) as any as S.Schema<ProfileListResponse>,
|
|
506
|
+
errors: [BadRequest, UnknownSteelError],
|
|
507
|
+
protocol: SteelProtocol,
|
|
508
|
+
retry: Retry.Retry,
|
|
509
|
+
telemetry: TELEMETRY,
|
|
510
|
+
span: "ListProfiles",
|
|
511
|
+
}));
|
|
512
|
+
|
|
513
|
+
export type UpdateProfileError = BadRequest | NotFound | PayloadTooLarge | SteelOpError;
|
|
514
|
+
/** Update a profile Update an existing profile */
|
|
515
|
+
export const updateProfile: API.OperationMethod<
|
|
516
|
+
UpdateProfileRequest,
|
|
517
|
+
Profile,
|
|
518
|
+
UpdateProfileError,
|
|
519
|
+
SteelOpContext
|
|
520
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
521
|
+
input: __S(128, __c4, 0) as any as S.Schema<UpdateProfileRequest>,
|
|
522
|
+
output: __S(55, __c1, 23) as any as S.Schema<Profile>,
|
|
523
|
+
errors: [BadRequest, NotFound, PayloadTooLarge, UnknownSteelError],
|
|
524
|
+
protocol: SteelProtocol,
|
|
525
|
+
retry: Retry.Retry,
|
|
526
|
+
telemetry: TELEMETRY,
|
|
527
|
+
span: "UpdateProfile",
|
|
528
|
+
}));
|
|
529
|
+
|
|
530
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
531
|
+
function __c0(j: number): any {
|
|
532
|
+
switch (j) {
|
|
533
|
+
case 0:
|
|
534
|
+
return S.suspend(() =>
|
|
535
|
+
S.Struct({
|
|
536
|
+
dimensions: S.optional(__S(32, __c1, 0)),
|
|
537
|
+
projectId: S.optional(S.String),
|
|
538
|
+
proxyUrl: S.optional(S.String),
|
|
539
|
+
useProxy: S.optional(S.String),
|
|
540
|
+
userAgent: S.optional(S.String),
|
|
541
|
+
userDataDir: S.Union([
|
|
542
|
+
S.instanceOf(Blob),
|
|
543
|
+
S.instanceOf(Uint8Array),
|
|
544
|
+
S.instanceOf(ArrayBuffer),
|
|
545
|
+
]),
|
|
546
|
+
}).pipe(
|
|
547
|
+
T.Http({ method: "POST", uri: "/v1/profiles", code: 200, contentType: "multipart" }),
|
|
548
|
+
),
|
|
549
|
+
).annotate({ identifier: "CreateProfileRequest" });
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
function __c1(j: number): any {
|
|
553
|
+
switch (j) {
|
|
554
|
+
case 0:
|
|
555
|
+
return S.suspend(() =>
|
|
556
|
+
S.Struct({
|
|
557
|
+
height: S.Number,
|
|
558
|
+
width: S.Number,
|
|
559
|
+
}),
|
|
560
|
+
).annotate({ identifier: "CreateProfileRequestDimensions" });
|
|
561
|
+
case 1:
|
|
562
|
+
return S.Array(S.String);
|
|
563
|
+
case 2:
|
|
564
|
+
return S.Record(S.String, /*@__PURE__*/ S.NullOr(S.String));
|
|
565
|
+
case 3:
|
|
566
|
+
return S.suspend(() =>
|
|
567
|
+
S.StructWithRest(
|
|
568
|
+
S.Struct({
|
|
569
|
+
charging: S.NullOr(S.Boolean),
|
|
570
|
+
chargingTime: S.NullOr(S.Number),
|
|
571
|
+
dischargingTime: S.NullOr(S.Number),
|
|
572
|
+
level: S.NullOr(S.Number),
|
|
573
|
+
}),
|
|
574
|
+
[S.Record(S.String, S.Unknown)],
|
|
575
|
+
),
|
|
576
|
+
).annotate({ identifier: "ProfileFingerprintFingerprintBattery" });
|
|
577
|
+
case 4:
|
|
578
|
+
return S.Array(/*@__PURE__*/ S.NullOr(S.String));
|
|
579
|
+
case 5:
|
|
580
|
+
return S.suspend(() =>
|
|
581
|
+
S.StructWithRest(
|
|
582
|
+
S.Struct({
|
|
583
|
+
deviceId: S.NullOr(S.String),
|
|
584
|
+
groupId: S.NullOr(S.String),
|
|
585
|
+
kind: S.NullOr(S.String),
|
|
586
|
+
label: S.NullOr(S.String),
|
|
587
|
+
}),
|
|
588
|
+
[S.Record(S.String, S.Unknown)],
|
|
589
|
+
),
|
|
590
|
+
).annotate({ identifier: "ProfileFingerprintFingerprintMultimediaDevicesMicrosItem" });
|
|
591
|
+
case 6:
|
|
592
|
+
return S.Array(__S(37, __c1, 5));
|
|
593
|
+
case 7:
|
|
594
|
+
return S.suspend(() =>
|
|
595
|
+
S.StructWithRest(
|
|
596
|
+
S.Struct({
|
|
597
|
+
micros: __S(38, __c1, 6),
|
|
598
|
+
speakers: __S(38, __c1, 6),
|
|
599
|
+
webcams: __S(38, __c1, 6),
|
|
600
|
+
}),
|
|
601
|
+
[S.Record(S.String, S.Unknown)],
|
|
602
|
+
),
|
|
603
|
+
).annotate({ identifier: "ProfileFingerprintFingerprintMultimediaDevices" });
|
|
604
|
+
case 8:
|
|
605
|
+
return S.suspend(() =>
|
|
606
|
+
S.StructWithRest(
|
|
607
|
+
S.Struct({
|
|
608
|
+
globalPrivacyControl: S.NullOr(S.Boolean),
|
|
609
|
+
installedApps: __S(36, __c1, 4),
|
|
610
|
+
pdfViewerEnabled: S.NullOr(S.Boolean),
|
|
611
|
+
vendorFlavors: __S(36, __c1, 4),
|
|
612
|
+
}),
|
|
613
|
+
[S.Record(S.String, S.Unknown)],
|
|
614
|
+
),
|
|
615
|
+
).annotate({ identifier: "ProfileFingerprintFingerprintNavigatorExtraProperties" });
|
|
616
|
+
case 9:
|
|
617
|
+
return S.suspend(() =>
|
|
618
|
+
S.StructWithRest(
|
|
619
|
+
S.Struct({
|
|
620
|
+
brand: S.NullOr(S.String),
|
|
621
|
+
version: S.NullOr(S.String),
|
|
622
|
+
}),
|
|
623
|
+
[S.Record(S.String, S.Unknown)],
|
|
624
|
+
),
|
|
625
|
+
).annotate({ identifier: "ProfileFingerprintFingerprintNavigatorUserAgentDataBrandsItem" });
|
|
626
|
+
case 10:
|
|
627
|
+
return S.Array(__S(41, __c1, 9));
|
|
628
|
+
case 11:
|
|
629
|
+
return S.suspend(() =>
|
|
630
|
+
S.StructWithRest(
|
|
631
|
+
S.Struct({
|
|
632
|
+
brands: __S(42, __c1, 10),
|
|
633
|
+
mobile: S.NullOr(S.Boolean),
|
|
634
|
+
platform: S.NullOr(S.String),
|
|
635
|
+
}),
|
|
636
|
+
[S.Record(S.String, S.Unknown)],
|
|
637
|
+
),
|
|
638
|
+
).annotate({ identifier: "ProfileFingerprintFingerprintNavigatorUserAgentData" });
|
|
639
|
+
case 12:
|
|
640
|
+
return S.suspend(() =>
|
|
641
|
+
S.StructWithRest(
|
|
642
|
+
S.Struct({
|
|
643
|
+
appCodeName: S.NullOr(S.String),
|
|
644
|
+
appName: S.NullOr(S.String),
|
|
645
|
+
appVersion: S.NullOr(S.String),
|
|
646
|
+
deviceMemory: S.NullOr(S.Number),
|
|
647
|
+
doNotTrack: S.optional(S.NullOr(S.String)),
|
|
648
|
+
extraProperties: __S(40, __c1, 8),
|
|
649
|
+
hardwareConcurrency: S.NullOr(S.Number),
|
|
650
|
+
language: S.NullOr(S.String),
|
|
651
|
+
languages: __S(36, __c1, 4),
|
|
652
|
+
maxTouchPoints: S.NullOr(S.Number),
|
|
653
|
+
oscpu: S.NullOr(S.String),
|
|
654
|
+
platform: S.NullOr(S.String),
|
|
655
|
+
product: S.NullOr(S.String),
|
|
656
|
+
productSub: S.NullOr(S.String),
|
|
657
|
+
userAgent: S.NullOr(S.String),
|
|
658
|
+
userAgentData: __S(43, __c1, 11),
|
|
659
|
+
vendor: S.NullOr(S.String),
|
|
660
|
+
vendorSub: S.NullOr(S.String),
|
|
661
|
+
webdriver: S.NullOr(S.Boolean),
|
|
662
|
+
}),
|
|
663
|
+
[S.Record(S.String, S.Unknown)],
|
|
664
|
+
),
|
|
665
|
+
).annotate({ identifier: "ProfileFingerprintFingerprintNavigator" });
|
|
666
|
+
case 13:
|
|
667
|
+
return S.suspend(() =>
|
|
668
|
+
S.StructWithRest(
|
|
669
|
+
S.Struct({
|
|
670
|
+
description: S.NullOr(S.String),
|
|
671
|
+
enabledPlugin: S.NullOr(S.String),
|
|
672
|
+
suffixes: S.NullOr(S.String),
|
|
673
|
+
type: S.NullOr(S.String),
|
|
674
|
+
}),
|
|
675
|
+
[S.Record(S.String, S.Unknown)],
|
|
676
|
+
),
|
|
677
|
+
).annotate({
|
|
678
|
+
identifier: "ProfileFingerprintFingerprintPluginsDataPluginsItemMimeTypesItem",
|
|
679
|
+
});
|
|
680
|
+
case 14:
|
|
681
|
+
return S.Array(__S(45, __c1, 13));
|
|
682
|
+
case 15:
|
|
683
|
+
return S.suspend(() =>
|
|
684
|
+
S.StructWithRest(
|
|
685
|
+
S.Struct({
|
|
686
|
+
description: S.NullOr(S.String),
|
|
687
|
+
filename: S.NullOr(S.String),
|
|
688
|
+
mimeTypes: __S(46, __c1, 14),
|
|
689
|
+
name: S.NullOr(S.String),
|
|
690
|
+
}),
|
|
691
|
+
[S.Record(S.String, S.Unknown)],
|
|
692
|
+
),
|
|
693
|
+
).annotate({ identifier: "ProfileFingerprintFingerprintPluginsDataPluginsItem" });
|
|
694
|
+
case 16:
|
|
695
|
+
return S.Array(__S(47, __c1, 15));
|
|
696
|
+
case 17:
|
|
697
|
+
return S.suspend(() =>
|
|
698
|
+
S.StructWithRest(
|
|
699
|
+
S.Struct({
|
|
700
|
+
mimeTypes: __S(36, __c1, 4),
|
|
701
|
+
plugins: __S(48, __c1, 16),
|
|
702
|
+
}),
|
|
703
|
+
[S.Record(S.String, S.Unknown)],
|
|
704
|
+
),
|
|
705
|
+
).annotate({ identifier: "ProfileFingerprintFingerprintPluginsData" });
|
|
706
|
+
case 18:
|
|
707
|
+
return S.suspend(() =>
|
|
708
|
+
S.StructWithRest(
|
|
709
|
+
S.Struct({
|
|
710
|
+
availHeight: S.NullOr(S.Number),
|
|
711
|
+
availLeft: S.NullOr(S.Number),
|
|
712
|
+
availTop: S.NullOr(S.Number),
|
|
713
|
+
availWidth: S.NullOr(S.Number),
|
|
714
|
+
clientHeight: S.NullOr(S.Number),
|
|
715
|
+
clientWidth: S.NullOr(S.Number),
|
|
716
|
+
colorDepth: S.NullOr(S.Number),
|
|
717
|
+
devicePixelRatio: S.NullOr(S.Number),
|
|
718
|
+
hasHDR: S.NullOr(S.Boolean),
|
|
719
|
+
height: S.NullOr(S.Number),
|
|
720
|
+
innerHeight: S.NullOr(S.Number),
|
|
721
|
+
innerWidth: S.NullOr(S.Number),
|
|
722
|
+
outerHeight: S.NullOr(S.Number),
|
|
723
|
+
outerWidth: S.NullOr(S.Number),
|
|
724
|
+
pageXOffset: S.NullOr(S.Number),
|
|
725
|
+
pageYOffset: S.NullOr(S.Number),
|
|
726
|
+
pixelDepth: S.NullOr(S.Number),
|
|
727
|
+
screenX: S.NullOr(S.Number),
|
|
728
|
+
width: S.NullOr(S.Number),
|
|
729
|
+
}),
|
|
730
|
+
[S.Record(S.String, S.Unknown)],
|
|
731
|
+
),
|
|
732
|
+
).annotate({ identifier: "ProfileFingerprintFingerprintScreen" });
|
|
733
|
+
case 19:
|
|
734
|
+
return S.suspend(() =>
|
|
735
|
+
S.StructWithRest(
|
|
736
|
+
S.Struct({
|
|
737
|
+
renderer: S.NullOr(S.String),
|
|
738
|
+
vendor: S.NullOr(S.String),
|
|
739
|
+
}),
|
|
740
|
+
[S.Record(S.String, S.Unknown)],
|
|
741
|
+
),
|
|
742
|
+
).annotate({ identifier: "ProfileFingerprintFingerprintVideoCard" });
|
|
743
|
+
case 20:
|
|
744
|
+
return S.suspend(() =>
|
|
745
|
+
S.StructWithRest(
|
|
746
|
+
S.Struct({
|
|
747
|
+
audioCodecs: __S(34, __c1, 2),
|
|
748
|
+
battery: __S(35, __c1, 3),
|
|
749
|
+
fonts: __S(36, __c1, 4),
|
|
750
|
+
mockWebRTC: S.NullOr(S.Boolean),
|
|
751
|
+
multimediaDevices: __S(39, __c1, 7),
|
|
752
|
+
navigator: __S(44, __c1, 12),
|
|
753
|
+
pluginsData: __S(49, __c1, 17),
|
|
754
|
+
screen: __S(50, __c1, 18),
|
|
755
|
+
slim: S.NullOr(S.Boolean),
|
|
756
|
+
videoCard: __S(51, __c1, 19),
|
|
757
|
+
videoCodecs: __S(34, __c1, 2),
|
|
758
|
+
}),
|
|
759
|
+
[S.Record(S.String, S.Unknown)],
|
|
760
|
+
),
|
|
761
|
+
).annotate({ identifier: "ProfileFingerprintFingerprint" });
|
|
762
|
+
case 21:
|
|
763
|
+
return S.suspend(() =>
|
|
764
|
+
S.StructWithRest(
|
|
765
|
+
S.Struct({
|
|
766
|
+
accept: S.optional(S.NullOr(S.String)),
|
|
767
|
+
accept_encoding: S.optional(S.NullOr(S.String).pipe(T.Body("accept-encoding"))),
|
|
768
|
+
accept_language: S.optional(S.NullOr(S.String).pipe(T.Body("accept-language"))),
|
|
769
|
+
dnt: S.optional(S.NullOr(S.String)),
|
|
770
|
+
sec_ch_ua: S.optional(S.NullOr(S.String).pipe(T.Body("sec-ch-ua"))),
|
|
771
|
+
sec_ch_ua_mobile: S.optional(S.NullOr(S.String).pipe(T.Body("sec-ch-ua-mobile"))),
|
|
772
|
+
sec_ch_ua_platform: S.optional(S.NullOr(S.String).pipe(T.Body("sec-ch-ua-platform"))),
|
|
773
|
+
sec_fetch_dest: S.optional(S.NullOr(S.String).pipe(T.Body("sec-fetch-dest"))),
|
|
774
|
+
sec_fetch_mode: S.optional(S.NullOr(S.String).pipe(T.Body("sec-fetch-mode"))),
|
|
775
|
+
sec_fetch_site: S.optional(S.NullOr(S.String).pipe(T.Body("sec-fetch-site"))),
|
|
776
|
+
sec_fetch_user: S.optional(S.NullOr(S.String).pipe(T.Body("sec-fetch-user"))),
|
|
777
|
+
upgrade_insecure_requests: S.optional(
|
|
778
|
+
S.NullOr(S.String).pipe(T.Body("upgrade-insecure-requests")),
|
|
779
|
+
),
|
|
780
|
+
user_agent: S.NullOr(S.String).pipe(T.Body("user-agent")),
|
|
781
|
+
}),
|
|
782
|
+
[S.Record(S.String, S.Unknown)],
|
|
783
|
+
),
|
|
784
|
+
).annotate({ identifier: "ProfileFingerprintHeaders" });
|
|
785
|
+
case 22:
|
|
786
|
+
return S.suspend(() =>
|
|
787
|
+
S.Struct({
|
|
788
|
+
fingerprint: __S(52, __c1, 20),
|
|
789
|
+
headers: __S(53, __c1, 21),
|
|
790
|
+
}),
|
|
791
|
+
).annotate({ identifier: "ProfileFingerprint" });
|
|
792
|
+
case 23:
|
|
793
|
+
return S.suspend(() =>
|
|
794
|
+
S.Struct({
|
|
795
|
+
createdAt: S.String,
|
|
796
|
+
credentialsConfig: S.NullOr(S.Unknown),
|
|
797
|
+
dimensions: S.NullOr(__S(32, __c1, 0)),
|
|
798
|
+
extensionIds: S.NullOr(__S(33, __c1, 1)),
|
|
799
|
+
fingerprint: S.NullOr(__S(54, __c1, 22)),
|
|
800
|
+
id: S.String,
|
|
801
|
+
projectId: S.NullOr(S.String),
|
|
802
|
+
sourceSessionId: S.NullOr(S.String),
|
|
803
|
+
status: S.String,
|
|
804
|
+
updatedAt: S.String,
|
|
805
|
+
useProxyConfig: S.NullOr(S.Unknown),
|
|
806
|
+
userAgent: S.NullOr(S.String),
|
|
807
|
+
}),
|
|
808
|
+
).annotate({ identifier: "Profile" });
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
function __c2(j: number): any {
|
|
812
|
+
switch (j) {
|
|
813
|
+
case 0:
|
|
814
|
+
return S.suspend(() =>
|
|
815
|
+
S.Struct({
|
|
816
|
+
id: S.String.pipe(T.Label()),
|
|
817
|
+
projectId: S.optional(S.String.pipe(T.Query())),
|
|
818
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/profiles/{id}", code: 200 })),
|
|
819
|
+
).annotate({ identifier: "GetProfileRequest" });
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
function __c3(j: number): any {
|
|
823
|
+
switch (j) {
|
|
824
|
+
case 0:
|
|
825
|
+
return S.suspend(() =>
|
|
826
|
+
S.Struct({
|
|
827
|
+
projectId: S.optional(S.String.pipe(T.Query())),
|
|
828
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/profiles", code: 200 })),
|
|
829
|
+
).annotate({ identifier: "ListProfilesRequest" });
|
|
830
|
+
case 1:
|
|
831
|
+
return S.Array(__S(55, __c1, 23));
|
|
832
|
+
case 2:
|
|
833
|
+
return S.suspend(() =>
|
|
834
|
+
S.Struct({
|
|
835
|
+
count: S.Number,
|
|
836
|
+
profiles: __S(97, __c3, 1),
|
|
837
|
+
}),
|
|
838
|
+
).annotate({ identifier: "ProfileListResponse" });
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
function __c4(j: number): any {
|
|
842
|
+
switch (j) {
|
|
843
|
+
case 0:
|
|
844
|
+
return S.suspend(() =>
|
|
845
|
+
S.Struct({
|
|
846
|
+
id: S.String.pipe(T.Label()),
|
|
847
|
+
projectId: S.optional(S.String.pipe(T.Query())),
|
|
848
|
+
dimensions: S.optional(__S(32, __c1, 0)),
|
|
849
|
+
proxyUrl: S.optional(S.String),
|
|
850
|
+
useProxy: S.optional(S.String),
|
|
851
|
+
userAgent: S.optional(S.String),
|
|
852
|
+
userDataDir: S.Union([
|
|
853
|
+
S.instanceOf(Blob),
|
|
854
|
+
S.instanceOf(Uint8Array),
|
|
855
|
+
S.instanceOf(ArrayBuffer),
|
|
856
|
+
]),
|
|
857
|
+
}).pipe(
|
|
858
|
+
T.Http({
|
|
859
|
+
method: "PATCH",
|
|
860
|
+
uri: "/v1/profiles/{id}",
|
|
861
|
+
code: 200,
|
|
862
|
+
contentType: "multipart",
|
|
863
|
+
}),
|
|
864
|
+
),
|
|
865
|
+
).annotate({ identifier: "UpdateProfileRequest" });
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
869
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
870
|
+
return (__s[i] ??= __L.at(f, j));
|
|
871
|
+
}
|