import { APIResource } from "../resource.js"; import * as Core from "../core.js"; export declare class Profiles extends APIResource { /** * Create a new profile */ create(body: ProfileCreateParams, options?: Core.RequestOptions): Core.APIPromise; /** * Update an existing profile */ update(id: string, body: ProfileUpdateParams, options?: Core.RequestOptions): Core.APIPromise; /** * Retrieve a list of all profiles */ list(options?: Core.RequestOptions): Core.APIPromise; /** * Retrieve a profile by ID */ get(id: string, options?: Core.RequestOptions): Core.APIPromise; } export interface ProfileCreateResponse { /** * The unique identifier for the profile */ id: string; /** * The date and time when the profile was created */ createdAt: string; /** * The credentials configuration associated with the profile */ credentialsConfig: unknown; /** * The dimensions associated with the profile */ dimensions: ProfileCreateResponse.Dimensions | null; /** * The extension IDs associated with the profile */ extensionIds: Array | null; /** * The fingerprint associated with the profile */ fingerprint: ProfileCreateResponse.Fingerprint | null; /** * The last session ID associated with the profile */ sourceSessionId: string | null; /** * The status of the profile */ status: 'UPLOADING' | 'READY' | 'FAILED'; /** * The date and time when the profile was last updated */ updatedAt: string; /** * The proxy configuration associated with the profile */ useProxyConfig: unknown; /** * The user agent associated with the profile */ userAgent: string | null; } export declare namespace ProfileCreateResponse { /** * The dimensions associated with the profile */ interface Dimensions { height: number; width: number; } /** * The fingerprint associated with the profile */ interface Fingerprint { fingerprint: Fingerprint.Fingerprint; headers: Fingerprint.Headers; } namespace Fingerprint { interface Fingerprint { audioCodecs: { [key: string]: string | null; }; battery: Fingerprint.Battery; fonts: Array; mockWebRTC: boolean | null; multimediaDevices: Fingerprint.MultimediaDevices; navigator: Fingerprint.Navigator; pluginsData: Fingerprint.PluginsData; screen: Fingerprint.Screen; slim: boolean | null; videoCard: Fingerprint.VideoCard; videoCodecs: { [key: string]: string | null; }; [k: string]: unknown; } namespace Fingerprint { interface Battery { charging: boolean | null; chargingTime: number | null; dischargingTime: number | null; level: number | null; [k: string]: unknown; } interface MultimediaDevices { micros: Array; speakers: Array; webcams: Array; [k: string]: unknown; } namespace MultimediaDevices { interface Micro { deviceId: string | null; groupId: string | null; kind: string | null; label: string | null; [k: string]: unknown; } interface Speaker { deviceId: string | null; groupId: string | null; kind: string | null; label: string | null; [k: string]: unknown; } interface Webcam { deviceId: string | null; groupId: string | null; kind: string | null; label: string | null; [k: string]: unknown; } } interface Navigator { appCodeName: string | null; appName: string | null; appVersion: string | null; deviceMemory: number | null; extraProperties: Navigator.ExtraProperties; hardwareConcurrency: number | null; language: string | null; languages: Array; maxTouchPoints: number | null; oscpu: string | null; platform: string | null; product: string | null; productSub: string | null; userAgent: string | null; userAgentData: Navigator.UserAgentData; vendor: string | null; vendorSub: string | null; webdriver: boolean | null; doNotTrack?: string | null; [k: string]: unknown; } namespace Navigator { interface ExtraProperties { globalPrivacyControl: boolean | null; installedApps: Array; pdfViewerEnabled: boolean | null; vendorFlavors: Array; [k: string]: unknown; } interface UserAgentData { brands: Array; mobile: boolean | null; platform: string | null; [k: string]: unknown; } namespace UserAgentData { interface Brand { brand: string | null; version: string | null; [k: string]: unknown; } } } interface PluginsData { mimeTypes: Array; plugins: Array; [k: string]: unknown; } namespace PluginsData { interface Plugin { description: string | null; filename: string | null; mimeTypes: Array; name: string | null; [k: string]: unknown; } namespace Plugin { interface MimeType { description: string | null; enabledPlugin: string | null; suffixes: string | null; type: string | null; [k: string]: unknown; } } } interface Screen { availHeight: number | null; availLeft: number | null; availTop: number | null; availWidth: number | null; clientHeight: number | null; clientWidth: number | null; colorDepth: number | null; devicePixelRatio: number | null; hasHDR: boolean | null; height: number | null; innerHeight: number | null; innerWidth: number | null; outerHeight: number | null; outerWidth: number | null; pageXOffset: number | null; pageYOffset: number | null; pixelDepth: number | null; screenX: number | null; width: number | null; [k: string]: unknown; } interface VideoCard { renderer: string | null; vendor: string | null; [k: string]: unknown; } } interface Headers { 'user-agent': string | null; accept?: string | null; 'accept-encoding'?: string | null; 'accept-language'?: string | null; dnt?: string | null; 'sec-ch-ua'?: string | null; 'sec-ch-ua-mobile'?: string | null; 'sec-ch-ua-platform'?: string | null; 'sec-fetch-dest'?: string | null; 'sec-fetch-mode'?: string | null; 'sec-fetch-site'?: string | null; 'sec-fetch-user'?: string | null; 'upgrade-insecure-requests'?: string | null; [k: string]: unknown; } } } export interface ProfileUpdateResponse { /** * The unique identifier for the profile */ id: string; /** * The date and time when the profile was created */ createdAt: string; /** * The credentials configuration associated with the profile */ credentialsConfig: unknown; /** * The dimensions associated with the profile */ dimensions: ProfileUpdateResponse.Dimensions | null; /** * The extension IDs associated with the profile */ extensionIds: Array | null; /** * The fingerprint associated with the profile */ fingerprint: ProfileUpdateResponse.Fingerprint | null; /** * The last session ID associated with the profile */ sourceSessionId: string | null; /** * The status of the profile */ status: 'UPLOADING' | 'READY' | 'FAILED'; /** * The date and time when the profile was last updated */ updatedAt: string; /** * The proxy configuration associated with the profile */ useProxyConfig: unknown; /** * The user agent associated with the profile */ userAgent: string | null; } export declare namespace ProfileUpdateResponse { /** * The dimensions associated with the profile */ interface Dimensions { height: number; width: number; } /** * The fingerprint associated with the profile */ interface Fingerprint { fingerprint: Fingerprint.Fingerprint; headers: Fingerprint.Headers; } namespace Fingerprint { interface Fingerprint { audioCodecs: { [key: string]: string | null; }; battery: Fingerprint.Battery; fonts: Array; mockWebRTC: boolean | null; multimediaDevices: Fingerprint.MultimediaDevices; navigator: Fingerprint.Navigator; pluginsData: Fingerprint.PluginsData; screen: Fingerprint.Screen; slim: boolean | null; videoCard: Fingerprint.VideoCard; videoCodecs: { [key: string]: string | null; }; [k: string]: unknown; } namespace Fingerprint { interface Battery { charging: boolean | null; chargingTime: number | null; dischargingTime: number | null; level: number | null; [k: string]: unknown; } interface MultimediaDevices { micros: Array; speakers: Array; webcams: Array; [k: string]: unknown; } namespace MultimediaDevices { interface Micro { deviceId: string | null; groupId: string | null; kind: string | null; label: string | null; [k: string]: unknown; } interface Speaker { deviceId: string | null; groupId: string | null; kind: string | null; label: string | null; [k: string]: unknown; } interface Webcam { deviceId: string | null; groupId: string | null; kind: string | null; label: string | null; [k: string]: unknown; } } interface Navigator { appCodeName: string | null; appName: string | null; appVersion: string | null; deviceMemory: number | null; extraProperties: Navigator.ExtraProperties; hardwareConcurrency: number | null; language: string | null; languages: Array; maxTouchPoints: number | null; oscpu: string | null; platform: string | null; product: string | null; productSub: string | null; userAgent: string | null; userAgentData: Navigator.UserAgentData; vendor: string | null; vendorSub: string | null; webdriver: boolean | null; doNotTrack?: string | null; [k: string]: unknown; } namespace Navigator { interface ExtraProperties { globalPrivacyControl: boolean | null; installedApps: Array; pdfViewerEnabled: boolean | null; vendorFlavors: Array; [k: string]: unknown; } interface UserAgentData { brands: Array; mobile: boolean | null; platform: string | null; [k: string]: unknown; } namespace UserAgentData { interface Brand { brand: string | null; version: string | null; [k: string]: unknown; } } } interface PluginsData { mimeTypes: Array; plugins: Array; [k: string]: unknown; } namespace PluginsData { interface Plugin { description: string | null; filename: string | null; mimeTypes: Array; name: string | null; [k: string]: unknown; } namespace Plugin { interface MimeType { description: string | null; enabledPlugin: string | null; suffixes: string | null; type: string | null; [k: string]: unknown; } } } interface Screen { availHeight: number | null; availLeft: number | null; availTop: number | null; availWidth: number | null; clientHeight: number | null; clientWidth: number | null; colorDepth: number | null; devicePixelRatio: number | null; hasHDR: boolean | null; height: number | null; innerHeight: number | null; innerWidth: number | null; outerHeight: number | null; outerWidth: number | null; pageXOffset: number | null; pageYOffset: number | null; pixelDepth: number | null; screenX: number | null; width: number | null; [k: string]: unknown; } interface VideoCard { renderer: string | null; vendor: string | null; [k: string]: unknown; } } interface Headers { 'user-agent': string | null; accept?: string | null; 'accept-encoding'?: string | null; 'accept-language'?: string | null; dnt?: string | null; 'sec-ch-ua'?: string | null; 'sec-ch-ua-mobile'?: string | null; 'sec-ch-ua-platform'?: string | null; 'sec-fetch-dest'?: string | null; 'sec-fetch-mode'?: string | null; 'sec-fetch-site'?: string | null; 'sec-fetch-user'?: string | null; 'upgrade-insecure-requests'?: string | null; [k: string]: unknown; } } } export interface ProfileListResponse { /** * The total number of profiles */ count: number; /** * The list of profiles */ profiles: Array; } export declare namespace ProfileListResponse { interface Profile { /** * The unique identifier for the profile */ id: string; /** * The date and time when the profile was created */ createdAt: string; /** * The credentials configuration associated with the profile */ credentialsConfig: unknown; /** * The dimensions associated with the profile */ dimensions: Profile.Dimensions | null; /** * The extension IDs associated with the profile */ extensionIds: Array | null; /** * The fingerprint associated with the profile */ fingerprint: Profile.Fingerprint | null; /** * The last session ID associated with the profile */ sourceSessionId: string | null; /** * The status of the profile */ status: 'UPLOADING' | 'READY' | 'FAILED'; /** * The date and time when the profile was last updated */ updatedAt: string; /** * The proxy configuration associated with the profile */ useProxyConfig: unknown; /** * The user agent associated with the profile */ userAgent: string | null; } namespace Profile { /** * The dimensions associated with the profile */ interface Dimensions { height: number; width: number; } /** * The fingerprint associated with the profile */ interface Fingerprint { fingerprint: Fingerprint.Fingerprint; headers: Fingerprint.Headers; } namespace Fingerprint { interface Fingerprint { audioCodecs: { [key: string]: string | null; }; battery: Fingerprint.Battery; fonts: Array; mockWebRTC: boolean | null; multimediaDevices: Fingerprint.MultimediaDevices; navigator: Fingerprint.Navigator; pluginsData: Fingerprint.PluginsData; screen: Fingerprint.Screen; slim: boolean | null; videoCard: Fingerprint.VideoCard; videoCodecs: { [key: string]: string | null; }; [k: string]: unknown; } namespace Fingerprint { interface Battery { charging: boolean | null; chargingTime: number | null; dischargingTime: number | null; level: number | null; [k: string]: unknown; } interface MultimediaDevices { micros: Array; speakers: Array; webcams: Array; [k: string]: unknown; } namespace MultimediaDevices { interface Micro { deviceId: string | null; groupId: string | null; kind: string | null; label: string | null; [k: string]: unknown; } interface Speaker { deviceId: string | null; groupId: string | null; kind: string | null; label: string | null; [k: string]: unknown; } interface Webcam { deviceId: string | null; groupId: string | null; kind: string | null; label: string | null; [k: string]: unknown; } } interface Navigator { appCodeName: string | null; appName: string | null; appVersion: string | null; deviceMemory: number | null; extraProperties: Navigator.ExtraProperties; hardwareConcurrency: number | null; language: string | null; languages: Array; maxTouchPoints: number | null; oscpu: string | null; platform: string | null; product: string | null; productSub: string | null; userAgent: string | null; userAgentData: Navigator.UserAgentData; vendor: string | null; vendorSub: string | null; webdriver: boolean | null; doNotTrack?: string | null; [k: string]: unknown; } namespace Navigator { interface ExtraProperties { globalPrivacyControl: boolean | null; installedApps: Array; pdfViewerEnabled: boolean | null; vendorFlavors: Array; [k: string]: unknown; } interface UserAgentData { brands: Array; mobile: boolean | null; platform: string | null; [k: string]: unknown; } namespace UserAgentData { interface Brand { brand: string | null; version: string | null; [k: string]: unknown; } } } interface PluginsData { mimeTypes: Array; plugins: Array; [k: string]: unknown; } namespace PluginsData { interface Plugin { description: string | null; filename: string | null; mimeTypes: Array; name: string | null; [k: string]: unknown; } namespace Plugin { interface MimeType { description: string | null; enabledPlugin: string | null; suffixes: string | null; type: string | null; [k: string]: unknown; } } } interface Screen { availHeight: number | null; availLeft: number | null; availTop: number | null; availWidth: number | null; clientHeight: number | null; clientWidth: number | null; colorDepth: number | null; devicePixelRatio: number | null; hasHDR: boolean | null; height: number | null; innerHeight: number | null; innerWidth: number | null; outerHeight: number | null; outerWidth: number | null; pageXOffset: number | null; pageYOffset: number | null; pixelDepth: number | null; screenX: number | null; width: number | null; [k: string]: unknown; } interface VideoCard { renderer: string | null; vendor: string | null; [k: string]: unknown; } } interface Headers { 'user-agent': string | null; accept?: string | null; 'accept-encoding'?: string | null; 'accept-language'?: string | null; dnt?: string | null; 'sec-ch-ua'?: string | null; 'sec-ch-ua-mobile'?: string | null; 'sec-ch-ua-platform'?: string | null; 'sec-fetch-dest'?: string | null; 'sec-fetch-mode'?: string | null; 'sec-fetch-site'?: string | null; 'sec-fetch-user'?: string | null; 'upgrade-insecure-requests'?: string | null; [k: string]: unknown; } } } } export interface ProfileGetResponse { /** * The unique identifier for the profile */ id: string; /** * The date and time when the profile was created */ createdAt: string; /** * The credentials configuration associated with the profile */ credentialsConfig: unknown; /** * The dimensions associated with the profile */ dimensions: ProfileGetResponse.Dimensions | null; /** * The extension IDs associated with the profile */ extensionIds: Array | null; /** * The fingerprint associated with the profile */ fingerprint: ProfileGetResponse.Fingerprint | null; /** * The last session ID associated with the profile */ sourceSessionId: string | null; /** * The status of the profile */ status: 'UPLOADING' | 'READY' | 'FAILED'; /** * The date and time when the profile was last updated */ updatedAt: string; /** * The proxy configuration associated with the profile */ useProxyConfig: unknown; /** * The user agent associated with the profile */ userAgent: string | null; } export declare namespace ProfileGetResponse { /** * The dimensions associated with the profile */ interface Dimensions { height: number; width: number; } /** * The fingerprint associated with the profile */ interface Fingerprint { fingerprint: Fingerprint.Fingerprint; headers: Fingerprint.Headers; } namespace Fingerprint { interface Fingerprint { audioCodecs: { [key: string]: string | null; }; battery: Fingerprint.Battery; fonts: Array; mockWebRTC: boolean | null; multimediaDevices: Fingerprint.MultimediaDevices; navigator: Fingerprint.Navigator; pluginsData: Fingerprint.PluginsData; screen: Fingerprint.Screen; slim: boolean | null; videoCard: Fingerprint.VideoCard; videoCodecs: { [key: string]: string | null; }; [k: string]: unknown; } namespace Fingerprint { interface Battery { charging: boolean | null; chargingTime: number | null; dischargingTime: number | null; level: number | null; [k: string]: unknown; } interface MultimediaDevices { micros: Array; speakers: Array; webcams: Array; [k: string]: unknown; } namespace MultimediaDevices { interface Micro { deviceId: string | null; groupId: string | null; kind: string | null; label: string | null; [k: string]: unknown; } interface Speaker { deviceId: string | null; groupId: string | null; kind: string | null; label: string | null; [k: string]: unknown; } interface Webcam { deviceId: string | null; groupId: string | null; kind: string | null; label: string | null; [k: string]: unknown; } } interface Navigator { appCodeName: string | null; appName: string | null; appVersion: string | null; deviceMemory: number | null; extraProperties: Navigator.ExtraProperties; hardwareConcurrency: number | null; language: string | null; languages: Array; maxTouchPoints: number | null; oscpu: string | null; platform: string | null; product: string | null; productSub: string | null; userAgent: string | null; userAgentData: Navigator.UserAgentData; vendor: string | null; vendorSub: string | null; webdriver: boolean | null; doNotTrack?: string | null; [k: string]: unknown; } namespace Navigator { interface ExtraProperties { globalPrivacyControl: boolean | null; installedApps: Array; pdfViewerEnabled: boolean | null; vendorFlavors: Array; [k: string]: unknown; } interface UserAgentData { brands: Array; mobile: boolean | null; platform: string | null; [k: string]: unknown; } namespace UserAgentData { interface Brand { brand: string | null; version: string | null; [k: string]: unknown; } } } interface PluginsData { mimeTypes: Array; plugins: Array; [k: string]: unknown; } namespace PluginsData { interface Plugin { description: string | null; filename: string | null; mimeTypes: Array; name: string | null; [k: string]: unknown; } namespace Plugin { interface MimeType { description: string | null; enabledPlugin: string | null; suffixes: string | null; type: string | null; [k: string]: unknown; } } } interface Screen { availHeight: number | null; availLeft: number | null; availTop: number | null; availWidth: number | null; clientHeight: number | null; clientWidth: number | null; colorDepth: number | null; devicePixelRatio: number | null; hasHDR: boolean | null; height: number | null; innerHeight: number | null; innerWidth: number | null; outerHeight: number | null; outerWidth: number | null; pageXOffset: number | null; pageYOffset: number | null; pixelDepth: number | null; screenX: number | null; width: number | null; [k: string]: unknown; } interface VideoCard { renderer: string | null; vendor: string | null; [k: string]: unknown; } } interface Headers { 'user-agent': string | null; accept?: string | null; 'accept-encoding'?: string | null; 'accept-language'?: string | null; dnt?: string | null; 'sec-ch-ua'?: string | null; 'sec-ch-ua-mobile'?: string | null; 'sec-ch-ua-platform'?: string | null; 'sec-fetch-dest'?: string | null; 'sec-fetch-mode'?: string | null; 'sec-fetch-site'?: string | null; 'sec-fetch-user'?: string | null; 'upgrade-insecure-requests'?: string | null; [k: string]: unknown; } } } export interface ProfileCreateParams { /** * The user data directory associated with the profile */ userDataDir: Core.Uploadable; /** * The dimensions associated with the profile */ dimensions?: ProfileCreateParams.Dimensions; /** * The proxy associated with the profile */ proxyUrl?: string; /** * The user agent associated with the profile */ userAgent?: string; } export declare namespace ProfileCreateParams { /** * The dimensions associated with the profile */ interface Dimensions { height: number; width: number; } } export interface ProfileUpdateParams { /** * The user data directory associated with the profile */ userDataDir: Core.Uploadable; /** * The dimensions associated with the profile */ dimensions?: ProfileUpdateParams.Dimensions; /** * The proxy associated with the profile */ proxyUrl?: string; /** * The user agent associated with the profile */ userAgent?: string; } export declare namespace ProfileUpdateParams { /** * The dimensions associated with the profile */ interface Dimensions { height: number; width: number; } } export declare namespace Profiles { export { type ProfileCreateResponse as ProfileCreateResponse, type ProfileUpdateResponse as ProfileUpdateResponse, type ProfileListResponse as ProfileListResponse, type ProfileGetResponse as ProfileGetResponse, type ProfileCreateParams as ProfileCreateParams, type ProfileUpdateParams as ProfileUpdateParams, }; } //# sourceMappingURL=profiles.d.ts.map