feat: customise linked device name (#3325)

* feat: add functionality for setting device and browser names

* feat: add usage example

* feat: add usage example

* docs: add docs for new functionality

* docs: add missing property

* docs: supplement the implementation documentation
This commit is contained in:
alechkos 2025-08-06 15:50:42 +03:00 • committed by GitHub
commit ca30ac4b18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 37 additions and 0 deletions

10
index.d.ts vendored
View file

@ -544,6 +544,16 @@ declare namespace WAWebJS {
/** Ffmpeg path to use when formatting videos to webp while sending stickers
* @default 'ffmpeg' */
ffmpegPath?: string,
/** Sets bypassing of page's Content-Security-Policy
* @default false */
bypassCSP?: boolean,
/** Sets the device name of a current linked device., i.e.: 'TEST' */
deviceName?: string,
/**
* Sets the browser name of a current linked device, i.e.: 'Firefox'.
* Valid value are: 'Chrome' | 'Firefox' | 'IE' | 'Opera' | 'Safari' | 'Edge'
*/
browserName?: string,
/** Object with proxy autentication requirements @default: undefined */
proxyAuthentication?: {username: string, password: string} | undefined
}