gologin-commonjs 1.0.0 → 1.0.2
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/dist/fonts.d.ts +22 -0
- package/dist/src/gologin-api.d.ts +18 -0
- package/dist/src/gologin.d.ts +142 -0
- package/package.json +4 -3
- package/tes.js +15 -25
- package/tsconfig.json +21 -0
- package/types/bookmarks/utils.d.ts +2 -0
- package/types/browser/browser-api.d.ts +10 -0
- package/types/browser/browser-checker.d.ts +21 -0
- package/types/browser/browser-user-data-manager.d.ts +23 -0
- package/types/cookies/cookies-manager.d.ts +23 -0
- package/types/extensions/extensions-extractor.d.ts +3 -0
- package/types/extensions/extensions-manager.d.ts +21 -0
- package/types/extensions/user-extensions-manager.d.ts +19 -0
- package/types/gologin.d.ts +142 -0
- package/types/profile/profile-archiver.d.ts +4 -0
- package/types/profile/profile-directories-to-remove.d.ts +3 -0
- package/types/utils/browser.d.ts +2 -0
- package/types/utils/common.d.ts +10 -0
- package/types/utils/constants.d.ts +2 -0
- package/types/utils/utils.d.ts +4 -0
package/dist/fonts.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const __esModule: boolean;
|
|
2
|
+
export const fontsCollection: ({
|
|
3
|
+
name: string;
|
|
4
|
+
value: string;
|
|
5
|
+
fileNames: string[];
|
|
6
|
+
os: string[];
|
|
7
|
+
} | {
|
|
8
|
+
name: string;
|
|
9
|
+
value: string;
|
|
10
|
+
fileNames?: undefined;
|
|
11
|
+
os?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
name: string;
|
|
14
|
+
value: string;
|
|
15
|
+
fileNames: string[];
|
|
16
|
+
os?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
name: string;
|
|
19
|
+
value: string;
|
|
20
|
+
os: string[];
|
|
21
|
+
fileNames?: undefined;
|
|
22
|
+
})[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const __esModule: boolean;
|
|
2
|
+
export function GologinApi({ token }: {
|
|
3
|
+
token: any;
|
|
4
|
+
}): {
|
|
5
|
+
launch(params?: {}): Promise<{
|
|
6
|
+
browser: any;
|
|
7
|
+
}>;
|
|
8
|
+
exit(status?: number): Promise<void>;
|
|
9
|
+
delay: (ms?: number) => any;
|
|
10
|
+
};
|
|
11
|
+
export function exitAll(): void;
|
|
12
|
+
export function getDefaultParams(): {
|
|
13
|
+
token: any;
|
|
14
|
+
profile_id: any;
|
|
15
|
+
executablePath: any;
|
|
16
|
+
autoUpdateBrowser: boolean;
|
|
17
|
+
};
|
|
18
|
+
export function delay(ms?: number): any;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
export = GoLogin;
|
|
2
|
+
declare class GoLogin {
|
|
3
|
+
constructor(options?: {});
|
|
4
|
+
browserLang: string;
|
|
5
|
+
is_remote: any;
|
|
6
|
+
access_token: any;
|
|
7
|
+
profile_id: any;
|
|
8
|
+
password: any;
|
|
9
|
+
extra_params: any;
|
|
10
|
+
executablePath: any;
|
|
11
|
+
vnc_port: any;
|
|
12
|
+
fontsMasking: boolean;
|
|
13
|
+
is_active: boolean;
|
|
14
|
+
is_stopping: boolean;
|
|
15
|
+
differentOs: boolean;
|
|
16
|
+
profileOs: string;
|
|
17
|
+
waitWebsocket: any;
|
|
18
|
+
isCloudHeadless: any;
|
|
19
|
+
isNewCloudBrowser: any;
|
|
20
|
+
tmpdir: any;
|
|
21
|
+
autoUpdateBrowser: boolean;
|
|
22
|
+
checkBrowserUpdate: any;
|
|
23
|
+
browserChecker: any;
|
|
24
|
+
uploadCookiesToServer: any;
|
|
25
|
+
writeCookiesFromServer: any;
|
|
26
|
+
remote_debugging_port: any;
|
|
27
|
+
timezone: any;
|
|
28
|
+
extensionPathsToInstall: any[];
|
|
29
|
+
customArgs: any;
|
|
30
|
+
restoreLastSession: any;
|
|
31
|
+
processSpawned: any;
|
|
32
|
+
processKillTimeout: number;
|
|
33
|
+
profile_zip_path: any;
|
|
34
|
+
bookmarksFilePath: any;
|
|
35
|
+
checkBrowser(): Promise<any>;
|
|
36
|
+
setProfileId(profile_id: any): Promise<void>;
|
|
37
|
+
cookiesFilePath: any;
|
|
38
|
+
getToken(username: any, password: any): Promise<void>;
|
|
39
|
+
getNewFingerPrint(os: any): Promise<any>;
|
|
40
|
+
profiles(): Promise<any>;
|
|
41
|
+
getProfile(profile_id: any): Promise<any>;
|
|
42
|
+
emptyProfile(): Promise<any>;
|
|
43
|
+
getProfileS3(s3path: any): Promise<any>;
|
|
44
|
+
postFile(fileName: any, fileBuff: any): Promise<void>;
|
|
45
|
+
emptyProfileFolder(): Promise<any>;
|
|
46
|
+
convertPreferences(preferences: any): any;
|
|
47
|
+
createBrowserExtension(): Promise<void>;
|
|
48
|
+
extractProfile(path: any, zipfile: any): any;
|
|
49
|
+
createStartup(local?: boolean): Promise<any>;
|
|
50
|
+
language: any;
|
|
51
|
+
resolution: {
|
|
52
|
+
width: number;
|
|
53
|
+
height: number;
|
|
54
|
+
} | {
|
|
55
|
+
width: number;
|
|
56
|
+
height: number;
|
|
57
|
+
};
|
|
58
|
+
proxy: any;
|
|
59
|
+
commitProfile(): Promise<void>;
|
|
60
|
+
profilePath(): any;
|
|
61
|
+
orbitaExtensionPath(): any;
|
|
62
|
+
getRandomInt(min: any, max: any): any;
|
|
63
|
+
checkPortAvailable(port: any): Promise<boolean>;
|
|
64
|
+
getRandomPort(): Promise<any>;
|
|
65
|
+
getTimeZone(proxy: any): Promise<any>;
|
|
66
|
+
_tz: any;
|
|
67
|
+
getTimezoneWithSocks(params: any): Promise<any>;
|
|
68
|
+
spawnArguments(): Promise<string[]>;
|
|
69
|
+
spawnBrowser(): Promise<any>;
|
|
70
|
+
port: any;
|
|
71
|
+
createStartupAndSpawnBrowser(): Promise<any>;
|
|
72
|
+
clearProfileFiles(): Promise<void>;
|
|
73
|
+
stopAndCommit(options: any, local?: boolean): Promise<boolean>;
|
|
74
|
+
stopBrowser(): Promise<void>;
|
|
75
|
+
killBrowser(): void;
|
|
76
|
+
killAndCommit(options: any, local?: boolean): Promise<void>;
|
|
77
|
+
sanitizeProfile(): Promise<void>;
|
|
78
|
+
getProfileDataToUpdate(): Promise<any>;
|
|
79
|
+
profileExists(): Promise<boolean>;
|
|
80
|
+
getRandomFingerprint(options: any): Promise<any>;
|
|
81
|
+
create(options: any): Promise<any>;
|
|
82
|
+
createCustom(options: any): Promise<any>;
|
|
83
|
+
quickCreateProfile(name?: string): Promise<any>;
|
|
84
|
+
delete(pid: any): Promise<void>;
|
|
85
|
+
update(options: any): Promise<any>;
|
|
86
|
+
setActive(is_active: any): void;
|
|
87
|
+
getGeolocationParams(profileGeolocationParams: any, tzGeolocationParams: any): {
|
|
88
|
+
mode: any;
|
|
89
|
+
latitude: any;
|
|
90
|
+
longitude: any;
|
|
91
|
+
accuracy: any;
|
|
92
|
+
};
|
|
93
|
+
getViewPort(): {
|
|
94
|
+
width: number;
|
|
95
|
+
height: number;
|
|
96
|
+
} | {
|
|
97
|
+
width: number;
|
|
98
|
+
height: number;
|
|
99
|
+
};
|
|
100
|
+
postCookies(profileId: any, cookies: any): Promise<any>;
|
|
101
|
+
getCookies(profileId: any): Promise<any>;
|
|
102
|
+
writeCookiesToFile(): Promise<void>;
|
|
103
|
+
uploadProfileCookiesToServer(): Promise<any>;
|
|
104
|
+
saveBookmarksToDb(): Promise<void>;
|
|
105
|
+
start(): Promise<{
|
|
106
|
+
status: string;
|
|
107
|
+
wsUrl: any;
|
|
108
|
+
message?: undefined;
|
|
109
|
+
} | {
|
|
110
|
+
status: string;
|
|
111
|
+
message: any;
|
|
112
|
+
wsUrl?: undefined;
|
|
113
|
+
}>;
|
|
114
|
+
startLocal(): Promise<{
|
|
115
|
+
status: string;
|
|
116
|
+
wsUrl: any;
|
|
117
|
+
}>;
|
|
118
|
+
stop(): Promise<any>;
|
|
119
|
+
stopLocal(options: any): Promise<void>;
|
|
120
|
+
waitDebuggingUrl(delay_ms: any, try_count: number, remoteOrbitaUrl: any): any;
|
|
121
|
+
startRemote(delay_ms?: number): Promise<{
|
|
122
|
+
status: string;
|
|
123
|
+
wsUrl: any;
|
|
124
|
+
message?: undefined;
|
|
125
|
+
} | {
|
|
126
|
+
status: string;
|
|
127
|
+
message: any;
|
|
128
|
+
wsUrl?: undefined;
|
|
129
|
+
}>;
|
|
130
|
+
stopRemote(): Promise<any>;
|
|
131
|
+
getAvailableFonts(): string[];
|
|
132
|
+
changeProfileResolution(resolution: any): Promise<any>;
|
|
133
|
+
changeProfileUserAgent(userAgent: any): Promise<any>;
|
|
134
|
+
changeProfileProxy(proxyData: any): Promise<any>;
|
|
135
|
+
}
|
|
136
|
+
declare namespace GoLogin {
|
|
137
|
+
export { __esModule, GologinApi, exitAll, GoLogin as default };
|
|
138
|
+
}
|
|
139
|
+
declare const __esModule: boolean;
|
|
140
|
+
declare const GologinApi: typeof _gologinApi.GologinApi;
|
|
141
|
+
declare const exitAll: typeof _gologinApi.exitAll;
|
|
142
|
+
import _gologinApi = require("./gologin-api.js");
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gologin-commonjs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A CommonJS Transpiled GoLogin API",
|
|
5
|
-
"types": "./
|
|
5
|
+
"types": "./types/gologin.d.ts",
|
|
6
6
|
"main": "./dist/src/gologin.js",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"@babel/plugin-transform-modules-commonjs": "^7.24.8",
|
|
37
37
|
"babel-plugin-transform-import-meta": "^2.2.1",
|
|
38
38
|
"eslint": "^8.21.0",
|
|
39
|
-
"eslint-plugin-simple-import-sort": "^8.0.0"
|
|
39
|
+
"eslint-plugin-simple-import-sort": "^8.0.0",
|
|
40
|
+
"typescript": "^5.5.4"
|
|
40
41
|
},
|
|
41
42
|
"scripts": {
|
|
42
43
|
"test": "echo \"Error: no test specified\" && exit 1",
|
package/tes.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
const GoLogin = require(
|
|
1
|
+
const GoLogin = require("./dist/src/gologin");
|
|
2
|
+
// you can use declaration below in your project
|
|
3
|
+
// const GoLogin = require("gologin-commonjs");
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const profile_id = 'your_profile_id';
|
|
5
|
+
const token = "your_token";
|
|
6
|
+
const profile_id = "your_profile_id";
|
|
6
7
|
|
|
7
8
|
(async () => {
|
|
8
9
|
const GL = new GoLogin({
|
|
@@ -10,26 +11,15 @@ const profile_id = 'your_profile_id';
|
|
|
10
11
|
profile_id,
|
|
11
12
|
});
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return { status: 'failure' };
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
if (status !== 'success') {
|
|
20
|
-
console.log('Invalid status');
|
|
21
|
-
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
14
|
+
try {
|
|
15
|
+
const gologin = await GL.start();
|
|
24
16
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
17
|
+
const browser = await puppeteer.connect({
|
|
18
|
+
browserWSEndpoint: gologin.wsUrl.toString(),
|
|
19
|
+
ignoreHTTPSErrors: true,
|
|
20
|
+
});
|
|
29
21
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
// await GL.stop();
|
|
35
|
-
})();
|
|
22
|
+
const page = await browser.newPage();
|
|
23
|
+
await page.goto("https://youtube.com");
|
|
24
|
+
} catch {}
|
|
25
|
+
})();
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Change this to match your project
|
|
3
|
+
"include": ["dist/**/*"],
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
// Tells TypeScript to read JS files, as
|
|
6
|
+
// normally they are ignored as source files
|
|
7
|
+
"allowJs": true,
|
|
8
|
+
// Generate d.ts files
|
|
9
|
+
"declaration": true,
|
|
10
|
+
// This compiler run should
|
|
11
|
+
// only output d.ts files
|
|
12
|
+
"emitDeclarationOnly": true,
|
|
13
|
+
// Types should go into this directory.
|
|
14
|
+
// Removing this would place the .d.ts files
|
|
15
|
+
// next to the .js files
|
|
16
|
+
"outDir": "dist",
|
|
17
|
+
// go to js file when using IDE functions like
|
|
18
|
+
// "Go to Definition" in VSCode
|
|
19
|
+
"declarationMap": true
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const __esModule: boolean;
|
|
2
|
+
/**
|
|
3
|
+
* @param {string} profileId
|
|
4
|
+
* @param {string} ACCESS_TOKEN
|
|
5
|
+
* @param {string} resolution
|
|
6
|
+
*/
|
|
7
|
+
export function updateProfileResolution(profileId: string, ACCESS_TOKEN: string, resolution: string): any;
|
|
8
|
+
export function updateProfileUserAgent(profileId: any, ACCESS_TOKEN: any, userAgent: any): any;
|
|
9
|
+
export function updateProfileProxy(profileId: any, ACCESS_TOKEN: any, browserProxyData: any): any;
|
|
10
|
+
export function updateProfileBookmarks(profileIds: any, ACCESS_TOKEN: any, bookmarks: any): Promise<any>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const __esModule: boolean;
|
|
2
|
+
export default BrowserChecker;
|
|
3
|
+
export class BrowserChecker {
|
|
4
|
+
constructor(skipOrbitaHashChecking: any);
|
|
5
|
+
checkBrowser(autoUpdateBrowser?: boolean, checkBrowserUpdate?: boolean): Promise<any>;
|
|
6
|
+
downloadBrowser(latestVersion: any, browserDownloadUrl: any): Promise<void>;
|
|
7
|
+
addLatestVersion(latestVersion: any): any;
|
|
8
|
+
downloadBrowserArchive(link: any, pathStr: any): any;
|
|
9
|
+
checkBrowserArchive(pathStr: any): Promise<void>;
|
|
10
|
+
extractBrowser(): Promise<any>;
|
|
11
|
+
downloadHashFile(latestVersion: any): Promise<any>;
|
|
12
|
+
checkBrowserSum(latestVersion: any): Promise<any>;
|
|
13
|
+
replaceBrowser(): Promise<any>;
|
|
14
|
+
deleteOldArchives(deleteCurrentBrowser?: boolean): Promise<any>;
|
|
15
|
+
copyDir(src: any, dest: any): Promise<void>;
|
|
16
|
+
getCurrentVersion(): any;
|
|
17
|
+
getLatestBrowserVersion(): any;
|
|
18
|
+
get getOrbitaPath(): any;
|
|
19
|
+
deleteDir(path?: string): Promise<any>;
|
|
20
|
+
#private;
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const __esModule: boolean;
|
|
2
|
+
export function downloadCookies({ profileId, ACCESS_TOKEN, API_BASE_URL }: {
|
|
3
|
+
profileId: any;
|
|
4
|
+
ACCESS_TOKEN: any;
|
|
5
|
+
API_BASE_URL: any;
|
|
6
|
+
}): any;
|
|
7
|
+
export function uploadCookies({ cookies, profileId, ACCESS_TOKEN, API_BASE_URL }: {
|
|
8
|
+
cookies?: any[];
|
|
9
|
+
profileId: any;
|
|
10
|
+
ACCESS_TOKEN: any;
|
|
11
|
+
API_BASE_URL: any;
|
|
12
|
+
}): any;
|
|
13
|
+
export function downloadFonts(fontsList: any[], profilePath: any): Promise<void>;
|
|
14
|
+
export function composeFonts(fontsList: any[], profilePath: any, differentOs?: boolean): Promise<void>;
|
|
15
|
+
export function copyFontsConfigFile(profilePath: any): Promise<void>;
|
|
16
|
+
export function setExtPathsAndRemoveDeleted(settings?: {}, profileExtensionsCheckRes?: any[], profileId?: string): any;
|
|
17
|
+
export function setOriginalExtPaths(settings?: {}, originalExtensionsFolder?: string): Promise<any>;
|
|
18
|
+
export function recalculateId({ localExtObj, extensionId, extensionsSettings, currentExtSettings }: {
|
|
19
|
+
localExtObj: any;
|
|
20
|
+
extensionId: any;
|
|
21
|
+
extensionsSettings: any;
|
|
22
|
+
currentExtSettings: any;
|
|
23
|
+
}): Promise<any>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const __esModule: boolean;
|
|
2
|
+
export function getDB(filePath: any, readOnly?: boolean): Promise<_sqlite.Database<import("sqlite3").Database, import("sqlite3").Statement>>;
|
|
3
|
+
export function getChunckedInsertValues(cookiesArr: any): any[][];
|
|
4
|
+
export function loadCookiesFromFile(filePath: any): Promise<{
|
|
5
|
+
url: string;
|
|
6
|
+
domain: any;
|
|
7
|
+
name: any;
|
|
8
|
+
value: any;
|
|
9
|
+
path: any;
|
|
10
|
+
sameSite: any;
|
|
11
|
+
secure: boolean;
|
|
12
|
+
httpOnly: boolean;
|
|
13
|
+
hostOnly: boolean;
|
|
14
|
+
session: boolean;
|
|
15
|
+
expirationDate: any;
|
|
16
|
+
creationDate: any;
|
|
17
|
+
}[]>;
|
|
18
|
+
export function unixToLDAP(unixtime: any): any;
|
|
19
|
+
export function ldapToUnix(ldap: any): any;
|
|
20
|
+
export function buildCookieURL(domain: any, secure: any, path: any): string;
|
|
21
|
+
export function chunk(arr: any, chunkSize?: number, cache?: any[]): any[];
|
|
22
|
+
export function getCookiesFilePath(profileId: any, tmpdir: any): Promise<any>;
|
|
23
|
+
import _sqlite = require("sqlite");
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const __esModule: boolean;
|
|
2
|
+
export default ExtensionsManager;
|
|
3
|
+
declare const ExtensionsManager_base: any;
|
|
4
|
+
export class ExtensionsManager extends ExtensionsManager_base {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
init(): Promise<any>;
|
|
7
|
+
existedUserExtensions: any;
|
|
8
|
+
get isInited(): boolean;
|
|
9
|
+
get useLocalExtStorage(): boolean;
|
|
10
|
+
get deleteProfileExtFolders(): boolean;
|
|
11
|
+
get useCookiesExt(): boolean;
|
|
12
|
+
get existedChromeExtensionsList(): any[];
|
|
13
|
+
checkChromeExtensions(profileExtensions?: any[]): Promise<any>;
|
|
14
|
+
downloadChromeExtensions(idsToDownload?: any[]): Promise<any>;
|
|
15
|
+
getExtensionsPolicies(): Promise<void>;
|
|
16
|
+
updateExtensions(): Promise<void>;
|
|
17
|
+
checkLocalExtensions(): Promise<void>;
|
|
18
|
+
insertExtensionsToDb(extensionsIds: any, pathToExtensions?: any): Promise<void>;
|
|
19
|
+
getExtensionsToInstall(extensionsFromPref: any, extensionsFromDB: any): any;
|
|
20
|
+
#private;
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const __esModule: boolean;
|
|
2
|
+
export default UserExtensionsManager;
|
|
3
|
+
export class UserExtensionsManager {
|
|
4
|
+
set userAgent(userAgent: string);
|
|
5
|
+
get userAgent(): string;
|
|
6
|
+
set accessToken(accessToken: string);
|
|
7
|
+
get accessToken(): string;
|
|
8
|
+
set twoFaKey(twoFaKey: string);
|
|
9
|
+
get twoFaKey(): string;
|
|
10
|
+
set apiUrl(apiUrl: any);
|
|
11
|
+
get apiBaseUrl(): string;
|
|
12
|
+
set existedUserExtensions(fileList: any[]);
|
|
13
|
+
get existedUserExtensions(): any[];
|
|
14
|
+
checkLocalUserChromeExtensions: (userChromeExtensions: any, profileId: any) => Promise<any[]>;
|
|
15
|
+
getExtensionsStrToIncludeAsOrbitaParam(profileExtensions?: any[], folderPath?: any): Promise<any[]>;
|
|
16
|
+
getExtensionsNameAndImage(extensionsIds: any, pathToExtensions: any): Promise<any>;
|
|
17
|
+
generateExtensionId(): string;
|
|
18
|
+
#private;
|
|
19
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
export = GoLogin;
|
|
2
|
+
declare class GoLogin {
|
|
3
|
+
constructor(options?: {});
|
|
4
|
+
browserLang: string;
|
|
5
|
+
is_remote: any;
|
|
6
|
+
access_token: any;
|
|
7
|
+
profile_id: any;
|
|
8
|
+
password: any;
|
|
9
|
+
extra_params: any;
|
|
10
|
+
executablePath: any;
|
|
11
|
+
vnc_port: any;
|
|
12
|
+
fontsMasking: boolean;
|
|
13
|
+
is_active: boolean;
|
|
14
|
+
is_stopping: boolean;
|
|
15
|
+
differentOs: boolean;
|
|
16
|
+
profileOs: string;
|
|
17
|
+
waitWebsocket: any;
|
|
18
|
+
isCloudHeadless: any;
|
|
19
|
+
isNewCloudBrowser: any;
|
|
20
|
+
tmpdir: any;
|
|
21
|
+
autoUpdateBrowser: boolean;
|
|
22
|
+
checkBrowserUpdate: any;
|
|
23
|
+
browserChecker: any;
|
|
24
|
+
uploadCookiesToServer: any;
|
|
25
|
+
writeCookiesFromServer: any;
|
|
26
|
+
remote_debugging_port: any;
|
|
27
|
+
timezone: any;
|
|
28
|
+
extensionPathsToInstall: any[];
|
|
29
|
+
customArgs: any;
|
|
30
|
+
restoreLastSession: any;
|
|
31
|
+
processSpawned: any;
|
|
32
|
+
processKillTimeout: number;
|
|
33
|
+
profile_zip_path: any;
|
|
34
|
+
bookmarksFilePath: any;
|
|
35
|
+
checkBrowser(): Promise<any>;
|
|
36
|
+
setProfileId(profile_id: any): Promise<void>;
|
|
37
|
+
cookiesFilePath: any;
|
|
38
|
+
getToken(username: any, password: any): Promise<void>;
|
|
39
|
+
getNewFingerPrint(os: any): Promise<any>;
|
|
40
|
+
profiles(): Promise<any>;
|
|
41
|
+
getProfile(profile_id: any): Promise<any>;
|
|
42
|
+
emptyProfile(): Promise<any>;
|
|
43
|
+
getProfileS3(s3path: any): Promise<any>;
|
|
44
|
+
postFile(fileName: any, fileBuff: any): Promise<void>;
|
|
45
|
+
emptyProfileFolder(): Promise<any>;
|
|
46
|
+
convertPreferences(preferences: any): any;
|
|
47
|
+
createBrowserExtension(): Promise<void>;
|
|
48
|
+
extractProfile(path: any, zipfile: any): any;
|
|
49
|
+
createStartup(local?: boolean): Promise<any>;
|
|
50
|
+
language: any;
|
|
51
|
+
resolution: {
|
|
52
|
+
width: number;
|
|
53
|
+
height: number;
|
|
54
|
+
} | {
|
|
55
|
+
width: number;
|
|
56
|
+
height: number;
|
|
57
|
+
};
|
|
58
|
+
proxy: any;
|
|
59
|
+
commitProfile(): Promise<void>;
|
|
60
|
+
profilePath(): any;
|
|
61
|
+
orbitaExtensionPath(): any;
|
|
62
|
+
getRandomInt(min: any, max: any): any;
|
|
63
|
+
checkPortAvailable(port: any): Promise<boolean>;
|
|
64
|
+
getRandomPort(): Promise<any>;
|
|
65
|
+
getTimeZone(proxy: any): Promise<any>;
|
|
66
|
+
_tz: any;
|
|
67
|
+
getTimezoneWithSocks(params: any): Promise<any>;
|
|
68
|
+
spawnArguments(): Promise<string[]>;
|
|
69
|
+
spawnBrowser(): Promise<any>;
|
|
70
|
+
port: any;
|
|
71
|
+
createStartupAndSpawnBrowser(): Promise<any>;
|
|
72
|
+
clearProfileFiles(): Promise<void>;
|
|
73
|
+
stopAndCommit(options: any, local?: boolean): Promise<boolean>;
|
|
74
|
+
stopBrowser(): Promise<void>;
|
|
75
|
+
killBrowser(): void;
|
|
76
|
+
killAndCommit(options: any, local?: boolean): Promise<void>;
|
|
77
|
+
sanitizeProfile(): Promise<void>;
|
|
78
|
+
getProfileDataToUpdate(): Promise<any>;
|
|
79
|
+
profileExists(): Promise<boolean>;
|
|
80
|
+
getRandomFingerprint(options: any): Promise<any>;
|
|
81
|
+
create(options: any): Promise<any>;
|
|
82
|
+
createCustom(options: any): Promise<any>;
|
|
83
|
+
quickCreateProfile(name?: string): Promise<any>;
|
|
84
|
+
delete(pid: any): Promise<void>;
|
|
85
|
+
update(options: any): Promise<any>;
|
|
86
|
+
setActive(is_active: any): void;
|
|
87
|
+
getGeolocationParams(profileGeolocationParams: any, tzGeolocationParams: any): {
|
|
88
|
+
mode: any;
|
|
89
|
+
latitude: any;
|
|
90
|
+
longitude: any;
|
|
91
|
+
accuracy: any;
|
|
92
|
+
};
|
|
93
|
+
getViewPort(): {
|
|
94
|
+
width: number;
|
|
95
|
+
height: number;
|
|
96
|
+
} | {
|
|
97
|
+
width: number;
|
|
98
|
+
height: number;
|
|
99
|
+
};
|
|
100
|
+
postCookies(profileId: any, cookies: any): Promise<any>;
|
|
101
|
+
getCookies(profileId: any): Promise<any>;
|
|
102
|
+
writeCookiesToFile(): Promise<void>;
|
|
103
|
+
uploadProfileCookiesToServer(): Promise<any>;
|
|
104
|
+
saveBookmarksToDb(): Promise<void>;
|
|
105
|
+
start(): Promise<{
|
|
106
|
+
status: string;
|
|
107
|
+
wsUrl: any;
|
|
108
|
+
message?: undefined;
|
|
109
|
+
} | {
|
|
110
|
+
status: string;
|
|
111
|
+
message: any;
|
|
112
|
+
wsUrl?: undefined;
|
|
113
|
+
}>;
|
|
114
|
+
startLocal(): Promise<{
|
|
115
|
+
status: string;
|
|
116
|
+
wsUrl: any;
|
|
117
|
+
}>;
|
|
118
|
+
stop(): Promise<any>;
|
|
119
|
+
stopLocal(options: any): Promise<void>;
|
|
120
|
+
waitDebuggingUrl(delay_ms: any, try_count: number, remoteOrbitaUrl: any): any;
|
|
121
|
+
startRemote(delay_ms?: number): Promise<{
|
|
122
|
+
status: string;
|
|
123
|
+
wsUrl: any;
|
|
124
|
+
message?: undefined;
|
|
125
|
+
} | {
|
|
126
|
+
status: string;
|
|
127
|
+
message: any;
|
|
128
|
+
wsUrl?: undefined;
|
|
129
|
+
}>;
|
|
130
|
+
stopRemote(): Promise<any>;
|
|
131
|
+
getAvailableFonts(): string[];
|
|
132
|
+
changeProfileResolution(resolution: any): Promise<any>;
|
|
133
|
+
changeProfileUserAgent(userAgent: any): Promise<any>;
|
|
134
|
+
changeProfileProxy(proxyData: any): Promise<any>;
|
|
135
|
+
}
|
|
136
|
+
declare namespace GoLogin {
|
|
137
|
+
export { __esModule, GologinApi, exitAll, GoLogin as default };
|
|
138
|
+
}
|
|
139
|
+
declare const __esModule: boolean;
|
|
140
|
+
declare const GologinApi: typeof _gologinApi.GologinApi;
|
|
141
|
+
declare const exitAll: typeof _gologinApi.exitAll;
|
|
142
|
+
import _gologinApi = require("./gologin-api.js");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export const __esModule: boolean;
|
|
2
|
+
export function archiveProfile(profileFolder?: string, tryAgain?: boolean): Promise<any>;
|
|
3
|
+
export function decompressProfile(zipPath?: string, profileFolder?: string): Promise<void>;
|
|
4
|
+
export function checkProfileArchiveIsValid(zipObject: any): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const __esModule: boolean;
|
|
2
|
+
export const API_URL: "https://api.gologin.com";
|
|
3
|
+
export function composeExtractionPromises(filteredArchives: any, destPath?: any): any;
|
|
4
|
+
export function getOS(): "win" | "macM1" | "mac" | "lin";
|
|
5
|
+
export function getOsAdvanced(): Promise<{
|
|
6
|
+
os: string;
|
|
7
|
+
osSpec: any;
|
|
8
|
+
}>;
|
|
9
|
+
export const USER_EXTENSIONS_PATH: any;
|
|
10
|
+
export const CHROME_EXTENSIONS_PATH: any;
|