@mherod/get-cookie 2.1.0 → 2.1.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/.parcelrc +2 -7
- package/bun.lockb +0 -0
- package/dist/cli.js +18319 -2
- package/dist/index.js +24914 -1
- package/dist/types.d.ts +361 -30
- package/package-lock.json +3997 -6448
- package/package.json +8 -54
- package/src/CookieRow.ts +35 -7
- package/src/CookieSpec.ts +32 -14
- package/src/SpecialCases.ts +6 -5
- package/src/StringToRegex.ts +4 -4
- package/src/browsers/CompositeCookieQueryStrategy.ts +34 -28
- package/src/browsers/CookieQueryStrategy.ts +1 -1
- package/src/browsers/CookieStoreQueryStrategy.ts +71 -55
- package/src/browsers/QuerySqliteThenTransform.ts +27 -64
- package/src/browsers/chrome/ChromeApplicationSupport.ts +4 -0
- package/src/browsers/chrome/ChromeCookieQueryStrategy.ts +118 -91
- package/src/browsers/chrome/decrypt.ts +133 -97
- package/src/browsers/chrome/getChromePassword.ts +22 -5
- package/src/browsers/firefox/FirefoxCookieQueryStrategy.ts +19 -13
- package/src/browsers/getEncryptedChromeCookie.ts +101 -66
- package/src/browsers/mock/MockCookieQueryStrategy.ts +8 -4
- package/src/browsers/safari/SafariCookieQueryStrategy.ts +34 -3
- package/src/cli.ts +36 -29
- package/src/cliQueryCookies.ts +14 -4
- package/src/comboQueryCookieSpec.ts +7 -10
- package/src/cookieQueryOptions.ts +8 -1
- package/src/cookieSpecsFromUrl.ts +53 -7
- package/src/decodeBinaryCookies.ts +72 -0
- package/src/execSimple.ts +1 -2
- package/src/fetchWithCookies.ts +172 -144
- package/src/findAllFiles.ts +10 -0
- package/src/getChromeCookie.ts +6 -8
- package/src/getCookie.ts +8 -8
- package/src/getFirefoxCookie.ts +13 -9
- package/src/getGroupedRenderedCookies.ts +29 -6
- package/src/getMergedRenderedCookies.ts +4 -2
- package/src/global.ts +2 -2
- package/src/index.ts +16 -6
- package/src/isValidJwt.ts +6 -4
- package/src/listChromeProfiles.ts +18 -10
- package/src/logger.ts +0 -1
- package/src/processBeforeReturn.ts +15 -12
- package/src/queryCookies.ts +22 -17
- package/src/resultsRendered.ts +20 -7
- package/src/unpackHeaders.ts +10 -8
- package/src/util/flatMapAsync.ts +20 -16
- package/tsconfig.json +4 -4
- package/dist/index.js.map +0 -1
- package/dist/module.js +0 -1446
- package/dist/module.js.map +0 -1
- package/dist/prompt.2b8c61c0.js +0 -40
- package/dist/prompt.536a2c51.js +0 -40
- package/dist/prompt.fb2c7dad.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/src/CookieStore.ts +0 -27
- package/src/FileCookieStore.ts +0 -178
package/dist/types.d.ts
CHANGED
|
@@ -1,30 +1,361 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
declare module "logger" {
|
|
4
|
+
const consola: import("consola/dist/core").ConsolaInstance;
|
|
5
|
+
export default consola;
|
|
6
|
+
}
|
|
7
|
+
declare module "CookieRow" {
|
|
8
|
+
/**
|
|
9
|
+
* The CookieRow interface represents the structure of a cookie row object.
|
|
10
|
+
*/
|
|
11
|
+
export default interface CookieRow {
|
|
12
|
+
expiry?: number;
|
|
13
|
+
domain: string;
|
|
14
|
+
name: string;
|
|
15
|
+
value: Uint8Array | Buffer;
|
|
16
|
+
meta?: Record<string, unknown>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Type guard to check if an object is a CookieRow.
|
|
20
|
+
* @param obj - The object to check.
|
|
21
|
+
* @returns True if the object is a CookieRow, false otherwise.
|
|
22
|
+
*/
|
|
23
|
+
export function isCookieRow(obj: any): obj is CookieRow;
|
|
24
|
+
}
|
|
25
|
+
declare module "CookieSpec" {
|
|
26
|
+
/**
|
|
27
|
+
* Define the CookieSpec interface with domain and name properties
|
|
28
|
+
*/
|
|
29
|
+
export default interface CookieSpec {
|
|
30
|
+
domain: string;
|
|
31
|
+
name: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Function to check if an object is of type CookieSpec
|
|
35
|
+
* @param obj - The object to check
|
|
36
|
+
* @returns True if the object is of type CookieSpec, otherwise false
|
|
37
|
+
*/
|
|
38
|
+
export function isCookieSpec(obj: unknown): obj is CookieSpec;
|
|
39
|
+
/**
|
|
40
|
+
* Define a type that can be either a single CookieSpec or an array of CookieSpecs
|
|
41
|
+
*/
|
|
42
|
+
export type MultiCookieSpec = CookieSpec | CookieSpec[];
|
|
43
|
+
/**
|
|
44
|
+
* Function to check if an object is of type MultiCookieSpec
|
|
45
|
+
* @param obj - The object to check
|
|
46
|
+
* @returns True if the object is of type MultiCookieSpec, otherwise false
|
|
47
|
+
*/
|
|
48
|
+
export function isMultiCookieSpec(obj: unknown): obj is MultiCookieSpec;
|
|
49
|
+
}
|
|
50
|
+
declare module "ExportedCookie" {
|
|
51
|
+
export default interface ExportedCookie {
|
|
52
|
+
domain: string;
|
|
53
|
+
name: string;
|
|
54
|
+
value: string;
|
|
55
|
+
expiry?: Date | "Infinity";
|
|
56
|
+
meta?: any;
|
|
57
|
+
}
|
|
58
|
+
export function isExportedCookie(obj: any): obj is ExportedCookie;
|
|
59
|
+
}
|
|
60
|
+
declare module "FetchResponse" {
|
|
61
|
+
export default interface FetchResponse {
|
|
62
|
+
status: number;
|
|
63
|
+
statusText: string;
|
|
64
|
+
headers: Headers;
|
|
65
|
+
url: string;
|
|
66
|
+
text: () => Promise<string>;
|
|
67
|
+
json: () => Promise<any>;
|
|
68
|
+
formData: () => Promise<URLSearchParams>;
|
|
69
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
70
|
+
buffer: () => Promise<Buffer>;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
declare module "SpecialCases" {
|
|
74
|
+
import CookieSpec from "CookieSpec";
|
|
75
|
+
export function specialCases({ name, domain }: CookieSpec): {
|
|
76
|
+
specifiedName: boolean;
|
|
77
|
+
specifiedDomain: boolean;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
declare module "StringToRegex" {
|
|
81
|
+
export function stringToRegex(s: string): RegExp;
|
|
82
|
+
}
|
|
83
|
+
declare module "argv" {
|
|
84
|
+
import minimist from "minimist";
|
|
85
|
+
export interface MyParsedArgs extends minimist.ParsedArgs {
|
|
86
|
+
verbose: boolean;
|
|
87
|
+
render?: string;
|
|
88
|
+
fetch?: string;
|
|
89
|
+
cs?: string;
|
|
90
|
+
dump?: string;
|
|
91
|
+
"dump-request-headers"?: string;
|
|
92
|
+
"dump-response-headers"?: string;
|
|
93
|
+
"dump-response-body"?: string;
|
|
94
|
+
}
|
|
95
|
+
export const argv: string[];
|
|
96
|
+
export const parsedArgs: MyParsedArgs;
|
|
97
|
+
}
|
|
98
|
+
declare module "resultsRendered" {
|
|
99
|
+
import ExportedCookie from "ExportedCookie";
|
|
100
|
+
export function resultsRendered(results: ExportedCookie[]): string;
|
|
101
|
+
}
|
|
102
|
+
declare module "browsers/CookieQueryStrategy" {
|
|
103
|
+
import ExportedCookie from "ExportedCookie";
|
|
104
|
+
export default interface CookieQueryStrategy {
|
|
105
|
+
browserName: string;
|
|
106
|
+
queryCookies(name: string, domain: string): Promise<Array<ExportedCookie>>;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
declare module "global" {
|
|
110
|
+
export const env: {
|
|
111
|
+
[key: string]: string | undefined;
|
|
112
|
+
};
|
|
113
|
+
export const HOME: string | undefined;
|
|
114
|
+
}
|
|
115
|
+
declare module "browsers/chrome/ChromeApplicationSupport" {
|
|
116
|
+
export const chromeApplicationSupport: string;
|
|
117
|
+
}
|
|
118
|
+
declare module "browsers/chrome/decrypt" {
|
|
119
|
+
interface Decryptor {
|
|
120
|
+
decrypt(password: string, encryptedData: Buffer): Promise<string>;
|
|
121
|
+
}
|
|
122
|
+
export const decryptor: Decryptor;
|
|
123
|
+
export function decrypt(password: string, encryptedData: Buffer): Promise<string>;
|
|
124
|
+
}
|
|
125
|
+
declare module "findAllFiles" {
|
|
126
|
+
type FindFilesOptions = {
|
|
127
|
+
path: string;
|
|
128
|
+
name: string;
|
|
129
|
+
maxDepth?: number;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Finds all files matching the specified name within a given path and depth.
|
|
133
|
+
*
|
|
134
|
+
* @param {FindFilesOptions} options - The options for finding files.
|
|
135
|
+
* @param {string} options.path - The path to search within.
|
|
136
|
+
* @param {string} options.name - The name of the files to search for.
|
|
137
|
+
* @param {number} [options.maxDepth=2] - The maximum depth to search within.
|
|
138
|
+
* @returns {string[]} An array of file paths that match the search criteria.
|
|
139
|
+
* @throws Will throw an error if the specified path does not exist.
|
|
140
|
+
*/
|
|
141
|
+
export function findAllFiles({ path, name, maxDepth, }: FindFilesOptions): string[];
|
|
142
|
+
}
|
|
143
|
+
declare module "execSimple" {
|
|
144
|
+
export function execSimple(command: string): Promise<string>;
|
|
145
|
+
}
|
|
146
|
+
declare module "browsers/chrome/getChromePassword" {
|
|
147
|
+
export function getChromePassword(): Promise<string>;
|
|
148
|
+
}
|
|
149
|
+
declare module "util/flatMapAsync" {
|
|
150
|
+
export function flatMapAsync<T, O>(array: T[], // The input array to transform.
|
|
151
|
+
callback: (value: T, index: number, array: T[]) => Promise<O[]>, // The async function to apply to each input array element.
|
|
152
|
+
or?: O[] | ((error: any) => O[] | Promise<O[]>)): Promise<O[]>;
|
|
153
|
+
}
|
|
154
|
+
declare module "browsers/QuerySqliteThenTransform" {
|
|
155
|
+
import CookieRow from "CookieRow";
|
|
156
|
+
interface FnOptions {
|
|
157
|
+
file: string;
|
|
158
|
+
sql: string;
|
|
159
|
+
rowFilter?: (row: any) => boolean;
|
|
160
|
+
rowTransform: (row: any) => CookieRow;
|
|
161
|
+
}
|
|
162
|
+
export function querySqliteThenTransform({ file, sql, rowFilter, rowTransform, }: FnOptions): Promise<CookieRow[]>;
|
|
163
|
+
}
|
|
164
|
+
declare module "browsers/getEncryptedChromeCookie" {
|
|
165
|
+
import CookieRow from "CookieRow";
|
|
166
|
+
interface GetEncryptedChromeCookieParams {
|
|
167
|
+
name: string;
|
|
168
|
+
domain: string;
|
|
169
|
+
file?: string;
|
|
170
|
+
}
|
|
171
|
+
export function getEncryptedChromeCookie({ name, domain, file, }: GetEncryptedChromeCookieParams): Promise<CookieRow[]>;
|
|
172
|
+
}
|
|
173
|
+
declare module "browsers/chrome/ChromeCookieQueryStrategy" {
|
|
174
|
+
import CookieQueryStrategy from "browsers/CookieQueryStrategy";
|
|
175
|
+
import ExportedCookie from "ExportedCookie";
|
|
176
|
+
export const consola: import("consola/dist/core").ConsolaInstance;
|
|
177
|
+
export default class ChromeCookieQueryStrategy implements CookieQueryStrategy {
|
|
178
|
+
browserName: string;
|
|
179
|
+
queryCookies(name: string, domain: string): Promise<ExportedCookie[]>;
|
|
180
|
+
private ensurePlatformIsMacOS;
|
|
181
|
+
private getChromeCookies;
|
|
182
|
+
private getEncryptedCookies;
|
|
183
|
+
private getCookiesFromFile;
|
|
184
|
+
private decryptCookies;
|
|
185
|
+
private decryptValue;
|
|
186
|
+
private createExportedCookie;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
declare module "browsers/firefox/FirefoxCookieQueryStrategy" {
|
|
190
|
+
import CookieQueryStrategy from "browsers/CookieQueryStrategy";
|
|
191
|
+
import ExportedCookie from "ExportedCookie";
|
|
192
|
+
export default class FirefoxCookieQueryStrategy implements CookieQueryStrategy {
|
|
193
|
+
browserName: string;
|
|
194
|
+
queryCookies(name: string, domain: string): Promise<ExportedCookie[]>;
|
|
195
|
+
private getFirefoxCookie;
|
|
196
|
+
private queryCookiesDb;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
declare module "decodeBinaryCookies" {
|
|
200
|
+
import CookieRow from "CookieRow";
|
|
201
|
+
export const decodeBinaryCookies: (cookieDbPath: string) => Promise<CookieRow[]>;
|
|
202
|
+
}
|
|
203
|
+
declare module "browsers/safari/SafariCookieQueryStrategy" {
|
|
204
|
+
import CookieQueryStrategy from "browsers/CookieQueryStrategy";
|
|
205
|
+
import ExportedCookie from "ExportedCookie";
|
|
206
|
+
export default class SafariCookieQueryStrategy implements CookieQueryStrategy {
|
|
207
|
+
browserName: string;
|
|
208
|
+
queryCookies(name: string, domain: string): Promise<ExportedCookie[]>;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
declare module "browsers/CompositeCookieQueryStrategy" {
|
|
212
|
+
import CookieQueryStrategy from "browsers/CookieQueryStrategy";
|
|
213
|
+
import ExportedCookie from "ExportedCookie";
|
|
214
|
+
export default class CompositeCookieQueryStrategy implements CookieQueryStrategy {
|
|
215
|
+
browserName: string;
|
|
216
|
+
private readonly strategies;
|
|
217
|
+
constructor();
|
|
218
|
+
queryCookies(name: string, domain: string): Promise<ExportedCookie[]>;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
declare module "isValidJwt" {
|
|
222
|
+
export default function isValidJwt(token: string): boolean;
|
|
223
|
+
}
|
|
224
|
+
declare module "cookieQueryOptions" {
|
|
225
|
+
import CookieQueryStrategy from "browsers/CookieQueryStrategy";
|
|
226
|
+
export type CookieQueryOptions<T extends CookieQueryStrategy> = {
|
|
227
|
+
strategy?: T;
|
|
228
|
+
limit?: number;
|
|
229
|
+
removeExpired?: boolean;
|
|
230
|
+
};
|
|
231
|
+
export const defaultCookieQueryOptions: CookieQueryOptions<CookieQueryStrategy>;
|
|
232
|
+
export function mergedWithDefaults<T extends CookieQueryStrategy>(options?: CookieQueryOptions<T>): CookieQueryOptions<T>;
|
|
233
|
+
}
|
|
234
|
+
declare module "queryCookies" {
|
|
235
|
+
import CookieQueryStrategy from "browsers/CookieQueryStrategy";
|
|
236
|
+
import CookieSpec from "CookieSpec";
|
|
237
|
+
import ExportedCookie from "ExportedCookie";
|
|
238
|
+
import { CookieQueryOptions } from "cookieQueryOptions";
|
|
239
|
+
export function queryCookies({ name, domain }: CookieSpec, options?: CookieQueryOptions<CookieQueryStrategy>): Promise<ExportedCookie[]>;
|
|
240
|
+
}
|
|
241
|
+
declare module "util/index" {
|
|
242
|
+
export * from "util/flatMapAsync";
|
|
243
|
+
}
|
|
244
|
+
declare module "processBeforeReturn" {
|
|
245
|
+
import ExportedCookie from "ExportedCookie";
|
|
246
|
+
import CookieQueryStrategy from "browsers/CookieQueryStrategy";
|
|
247
|
+
import { CookieQueryOptions } from "cookieQueryOptions";
|
|
248
|
+
export function processBeforeReturn<T extends CookieQueryStrategy>(cookies: ExportedCookie[], options?: CookieQueryOptions<T>): ExportedCookie[];
|
|
249
|
+
}
|
|
250
|
+
declare module "comboQueryCookieSpec" {
|
|
251
|
+
import { MultiCookieSpec } from "CookieSpec";
|
|
252
|
+
import ExportedCookie from "ExportedCookie";
|
|
253
|
+
import CookieQueryStrategy from "browsers/CookieQueryStrategy";
|
|
254
|
+
import { CookieQueryOptions } from "cookieQueryOptions";
|
|
255
|
+
export function comboQueryCookieSpec(cookieSpec: MultiCookieSpec, options?: CookieQueryOptions<CookieQueryStrategy>): Promise<ExportedCookie[]>;
|
|
256
|
+
}
|
|
257
|
+
declare module "getMergedRenderedCookies" {
|
|
258
|
+
import { MultiCookieSpec } from "CookieSpec";
|
|
259
|
+
import CookieQueryStrategy from "browsers/CookieQueryStrategy";
|
|
260
|
+
export function getMergedRenderedCookies(cookieSpec: MultiCookieSpec, strategy?: CookieQueryStrategy): Promise<string>;
|
|
261
|
+
}
|
|
262
|
+
declare module "cookieSpecsFromUrl" {
|
|
263
|
+
import CookieSpec from "CookieSpec";
|
|
264
|
+
/**
|
|
265
|
+
* Generates a list of cookie specifications from a given URL.
|
|
266
|
+
* Each cookie spec consists of a domain and a name, where the name is a wildcard.
|
|
267
|
+
* The domain is formatted to enable querying against the cookie store for matching cookies.
|
|
268
|
+
* @param url - The URL to generate cookie specs from.
|
|
269
|
+
* @returns An array of unique cookie specifications.
|
|
270
|
+
*/
|
|
271
|
+
export function cookieSpecsFromUrl(url: URL | string): CookieSpec[];
|
|
272
|
+
}
|
|
273
|
+
declare module "fetchWithCookies" {
|
|
274
|
+
import { fetch as fetchImpl } from "cross-fetch";
|
|
275
|
+
interface FetchRequestInit {
|
|
276
|
+
url: RequestInfo | URL | string;
|
|
277
|
+
options?: RequestInit;
|
|
278
|
+
}
|
|
279
|
+
export type FetchFn = typeof fetchImpl | ((url: URL, options?: RequestInit) => Promise<Response>);
|
|
280
|
+
/**
|
|
281
|
+
* Fetches a URL with cookies.
|
|
282
|
+
* @param url - The URL to fetch.
|
|
283
|
+
* @param options - The request options.
|
|
284
|
+
* @param fetch - The fetch function to use.
|
|
285
|
+
* @param originalRequest - The original request information.
|
|
286
|
+
* @returns A promise that resolves to the response.
|
|
287
|
+
*/
|
|
288
|
+
export function fetchWithCookies(url: RequestInfo | URL | string, options?: RequestInit | undefined, fetch?: FetchFn, originalRequest?: FetchRequestInit): Promise<Response>;
|
|
289
|
+
}
|
|
290
|
+
declare module "unpackHeaders" {
|
|
291
|
+
export function unpackHeaders(headerArgs: string[] | string | null): Record<string, string>;
|
|
292
|
+
}
|
|
293
|
+
declare module "cliQueryCookies" {
|
|
294
|
+
import CookieSpec from "CookieSpec";
|
|
295
|
+
export function cliQueryCookies(cookieSpec: CookieSpec | CookieSpec[], limit?: number, removeExpired?: boolean): Promise<void>;
|
|
296
|
+
}
|
|
297
|
+
declare module "cli" { }
|
|
298
|
+
declare module "browsers/mock/MockCookieQueryStrategy" {
|
|
299
|
+
import ExportedCookie from "ExportedCookie";
|
|
300
|
+
import CookieQueryStrategy from "browsers/CookieQueryStrategy";
|
|
301
|
+
export default class MockCookieQueryStrategy implements CookieQueryStrategy {
|
|
302
|
+
browserName: string;
|
|
303
|
+
private cookies;
|
|
304
|
+
constructor(cookies: ExportedCookie[]);
|
|
305
|
+
queryCookies(name: string, domain: string): Promise<ExportedCookie[]>;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
declare module "comboQueryCookieSpec.test" { }
|
|
309
|
+
declare module "cookieSpecsFromUrl.test" { }
|
|
310
|
+
declare module "fetchWithCookies.test" { }
|
|
311
|
+
declare module "getChromeCookie" {
|
|
312
|
+
import CookieSpec from "CookieSpec";
|
|
313
|
+
import ExportedCookie from "ExportedCookie";
|
|
314
|
+
export function getChromeCookie(params: CookieSpec): Promise<ExportedCookie | undefined>;
|
|
315
|
+
}
|
|
316
|
+
declare module "getCookie" {
|
|
317
|
+
import CookieSpec from "CookieSpec";
|
|
318
|
+
import ExportedCookie from "ExportedCookie";
|
|
319
|
+
export function getCookie(params: CookieSpec): Promise<ExportedCookie | undefined>;
|
|
320
|
+
export default getCookie;
|
|
321
|
+
}
|
|
322
|
+
declare module "getFirefoxCookie" {
|
|
323
|
+
import CookieSpec from "CookieSpec";
|
|
324
|
+
import ExportedCookie from "ExportedCookie";
|
|
325
|
+
export function getFirefoxCookie(params: CookieSpec): Promise<ExportedCookie | undefined>;
|
|
326
|
+
}
|
|
327
|
+
declare module "getGroupedRenderedCookies" {
|
|
328
|
+
import { MultiCookieSpec } from "CookieSpec";
|
|
329
|
+
export function getGroupedRenderedCookies(cookieSpec: MultiCookieSpec): Promise<string[]>;
|
|
330
|
+
}
|
|
331
|
+
declare module "getMergedRenderedCookies.test" { }
|
|
332
|
+
declare module "index" {
|
|
333
|
+
const getCookie: () => Promise<typeof import("getCookie").getCookie>;
|
|
334
|
+
const getChromeCookie: () => Promise<typeof import("getChromeCookie").getChromeCookie>;
|
|
335
|
+
const getFirefoxCookie: () => Promise<typeof import("getFirefoxCookie").getFirefoxCookie>;
|
|
336
|
+
const getGroupedRenderedCookies: () => Promise<typeof import("getGroupedRenderedCookies").getGroupedRenderedCookies>;
|
|
337
|
+
const getMergedRenderedCookies: () => Promise<typeof import("getMergedRenderedCookies").getMergedRenderedCookies>;
|
|
338
|
+
const fetchWithCookies: () => Promise<typeof import("fetchWithCookies").fetchWithCookies>;
|
|
339
|
+
export { getCookie, getChromeCookie, getFirefoxCookie, getMergedRenderedCookies, getGroupedRenderedCookies, fetchWithCookies, };
|
|
340
|
+
}
|
|
341
|
+
declare module "listChromeProfiles" {
|
|
342
|
+
export function listChromeProfilePaths(): Promise<string[]>;
|
|
343
|
+
export function listChromeProfiles(): Promise<ChromeProfile[]>;
|
|
344
|
+
export type ChromeProfileAccountInfo = {
|
|
345
|
+
account_id: string;
|
|
346
|
+
accountcapabilities: any;
|
|
347
|
+
email: string;
|
|
348
|
+
full_name: string;
|
|
349
|
+
gaia: string;
|
|
350
|
+
given_name: string;
|
|
351
|
+
hd: string;
|
|
352
|
+
is_supervised_child: number;
|
|
353
|
+
is_under_advanced_protection: boolean;
|
|
354
|
+
last_downloaded_image_url_with_size: string;
|
|
355
|
+
locale: string;
|
|
356
|
+
picture_url: string;
|
|
357
|
+
};
|
|
358
|
+
export type ChromeProfile = {
|
|
359
|
+
account_info: ChromeProfileAccountInfo[];
|
|
360
|
+
};
|
|
361
|
+
}
|