Initial commit: MangaReader iOS App
✨ Features: - App iOS completa para leer manga sin publicidad - Scraper con WKWebView para manhwaweb.com - Sistema de descargas offline - Lector con zoom y navegación - Favoritos y progreso de lectura - Compatible con iOS 15+ y Sideloadly/3uTools 📦 Contenido: - Backend Node.js con Puppeteer (opcional) - App iOS con SwiftUI - Scraper de capítulos e imágenes - Sistema de almacenamiento local - Testing completo - Documentación exhaustiva 🧪 Prueba: Capítulo 789 de One Piece descargado exitosamente - 21 páginas descargadas - 4.68 MB total - URLs verificadas y funcionales 🎉 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2981
backend/node_modules/webdriver-bidi-protocol/src/gen/main.ts
generated
vendored
Normal file
2981
backend/node_modules/webdriver-bidi-protocol/src/gen/main.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
311
backend/node_modules/webdriver-bidi-protocol/src/gen/mapping.ts
generated
vendored
Normal file
311
backend/node_modules/webdriver-bidi-protocol/src/gen/mapping.ts
generated
vendored
Normal file
@@ -0,0 +1,311 @@
|
||||
import type * as Bidi from './main.js';
|
||||
import type * as BidiPermissions from './permissions.js';
|
||||
import type * as BidiBluetooth from './web-bluetooth.js';
|
||||
import type * as BidiUaClientHints from './ua-client-hints.js';
|
||||
|
||||
export interface Commands {
|
||||
'bluetooth.disableSimulation': {
|
||||
params: BidiBluetooth.Bluetooth.DisableSimulationParameters;
|
||||
returnType: Bidi.EmptyResult;
|
||||
};
|
||||
'bluetooth.handleRequestDevicePrompt': {
|
||||
params: BidiBluetooth.Bluetooth.HandleRequestDevicePromptParameters;
|
||||
returnType: Bidi.EmptyResult;
|
||||
};
|
||||
'bluetooth.simulateAdapter': {
|
||||
params: BidiBluetooth.Bluetooth.SimulateAdapterParameters;
|
||||
returnType: Bidi.EmptyResult;
|
||||
};
|
||||
'bluetooth.simulateAdvertisement': {
|
||||
params: BidiBluetooth.Bluetooth.SimulateAdvertisementParameters;
|
||||
returnType: Bidi.EmptyResult;
|
||||
};
|
||||
'bluetooth.simulateCharacteristic': {
|
||||
params: BidiBluetooth.Bluetooth.SimulateCharacteristicParameters;
|
||||
returnType: Bidi.EmptyResult;
|
||||
};
|
||||
'bluetooth.simulateCharacteristicResponse': {
|
||||
params: BidiBluetooth.Bluetooth.SimulateCharacteristicResponseParameters;
|
||||
returnType: Bidi.EmptyResult;
|
||||
};
|
||||
'bluetooth.simulateDescriptor': {
|
||||
params: BidiBluetooth.Bluetooth.SimulateDescriptorParameters;
|
||||
returnType: Bidi.EmptyResult;
|
||||
};
|
||||
'bluetooth.simulateDescriptorResponse': {
|
||||
params: BidiBluetooth.Bluetooth.SimulateDescriptorResponseParameters;
|
||||
returnType: Bidi.EmptyResult;
|
||||
};
|
||||
'bluetooth.simulateGattConnectionResponse': {
|
||||
params: BidiBluetooth.Bluetooth.SimulateGattConnectionResponseParameters;
|
||||
returnType: Bidi.EmptyResult;
|
||||
};
|
||||
'bluetooth.simulateGattDisconnection': {
|
||||
params: BidiBluetooth.Bluetooth.SimulateGattDisconnectionParameters;
|
||||
returnType: Bidi.EmptyResult;
|
||||
};
|
||||
'bluetooth.simulatePreconnectedPeripheral': {
|
||||
params: BidiBluetooth.Bluetooth.SimulatePreconnectedPeripheralParameters;
|
||||
returnType: Bidi.EmptyResult;
|
||||
};
|
||||
'bluetooth.simulateService': {
|
||||
params: BidiBluetooth.Bluetooth.SimulateServiceParameters;
|
||||
returnType: Bidi.EmptyResult;
|
||||
};
|
||||
'browser.close': {
|
||||
params: Bidi.Extensible;
|
||||
returnType: Bidi.Browser.CloseResult;
|
||||
};
|
||||
'browser.createUserContext': {
|
||||
params: Bidi.Browser.CreateUserContextParameters;
|
||||
returnType: Bidi.Browser.CreateUserContextResult;
|
||||
};
|
||||
'browser.getClientWindows': {
|
||||
params: Bidi.Extensible;
|
||||
returnType: Bidi.Browser.GetClientWindowsResult;
|
||||
};
|
||||
'browser.getUserContexts': {
|
||||
params: Bidi.Extensible;
|
||||
returnType: Bidi.Browser.GetUserContextsResult;
|
||||
};
|
||||
'browser.removeUserContext': {
|
||||
params: Bidi.Browser.RemoveUserContextParameters;
|
||||
returnType: Bidi.Browser.RemoveUserContextResult;
|
||||
};
|
||||
'browser.setClientWindowState': {
|
||||
params: Bidi.Browser.SetClientWindowStateParameters;
|
||||
returnType: Bidi.Browser.SetClientWindowStateResult;
|
||||
};
|
||||
'browser.setDownloadBehavior': {
|
||||
params: Bidi.Browser.SetDownloadBehaviorParameters;
|
||||
returnType: Bidi.Browser.SetDownloadBehaviorResult;
|
||||
};
|
||||
'browsingContext.activate': {
|
||||
params: Bidi.BrowsingContext.ActivateParameters;
|
||||
returnType: Bidi.BrowsingContext.ActivateResult;
|
||||
};
|
||||
'browsingContext.captureScreenshot': {
|
||||
params: Bidi.BrowsingContext.CaptureScreenshotParameters;
|
||||
returnType: Bidi.BrowsingContext.CaptureScreenshotResult;
|
||||
};
|
||||
'browsingContext.close': {
|
||||
params: Bidi.BrowsingContext.CloseParameters;
|
||||
returnType: Bidi.BrowsingContext.CloseResult;
|
||||
};
|
||||
'browsingContext.create': {
|
||||
params: Bidi.BrowsingContext.CreateParameters;
|
||||
returnType: Bidi.BrowsingContext.CreateResult;
|
||||
};
|
||||
'browsingContext.getTree': {
|
||||
params: Bidi.BrowsingContext.GetTreeParameters;
|
||||
returnType: Bidi.BrowsingContext.GetTreeResult;
|
||||
};
|
||||
'browsingContext.handleUserPrompt': {
|
||||
params: Bidi.BrowsingContext.HandleUserPromptParameters;
|
||||
returnType: Bidi.BrowsingContext.HandleUserPromptResult;
|
||||
};
|
||||
'browsingContext.locateNodes': {
|
||||
params: Bidi.BrowsingContext.LocateNodesParameters;
|
||||
returnType: Bidi.BrowsingContext.LocateNodesResult;
|
||||
};
|
||||
'browsingContext.navigate': {
|
||||
params: Bidi.BrowsingContext.NavigateParameters;
|
||||
returnType: Bidi.BrowsingContext.NavigateResult;
|
||||
};
|
||||
'browsingContext.print': {
|
||||
params: Bidi.BrowsingContext.PrintParameters;
|
||||
returnType: Bidi.BrowsingContext.PrintResult;
|
||||
};
|
||||
'browsingContext.reload': {
|
||||
params: Bidi.BrowsingContext.ReloadParameters;
|
||||
returnType: Bidi.BrowsingContext.ReloadResult;
|
||||
};
|
||||
'browsingContext.setViewport': {
|
||||
params: Bidi.BrowsingContext.SetViewportParameters;
|
||||
returnType: Bidi.BrowsingContext.SetViewportResult;
|
||||
};
|
||||
'browsingContext.traverseHistory': {
|
||||
params: Bidi.BrowsingContext.TraverseHistoryParameters;
|
||||
returnType: Bidi.BrowsingContext.TraverseHistoryResult;
|
||||
};
|
||||
'emulation.setClientHintsOverride': {
|
||||
params: {
|
||||
clientHints: BidiUaClientHints.Emulation.ClientHintsMetadata | null;
|
||||
contexts?: [string, ...string[]];
|
||||
userContexts?: [string, ...string[]];
|
||||
};
|
||||
returnType: BidiUaClientHints.Emulation.SetClientHintsOverrideResult;
|
||||
};
|
||||
'emulation.setForcedColorsModeThemeOverride': {
|
||||
params: Bidi.Emulation.SetForcedColorsModeThemeOverrideParameters;
|
||||
returnType: Bidi.Emulation.SetForcedColorsModeThemeOverrideResult;
|
||||
};
|
||||
'emulation.setGeolocationOverride': {
|
||||
params: Bidi.Emulation.SetGeolocationOverrideParameters;
|
||||
returnType: Bidi.Emulation.SetGeolocationOverrideResult;
|
||||
};
|
||||
'emulation.setLocaleOverride': {
|
||||
params: Bidi.Emulation.SetLocaleOverrideParameters;
|
||||
returnType: Bidi.Emulation.SetLocaleOverrideResult;
|
||||
};
|
||||
'emulation.setNetworkConditions': {
|
||||
params: Bidi.Emulation.SetNetworkConditionsParameters;
|
||||
returnType: Bidi.Emulation.SetNetworkConditionsResult;
|
||||
};
|
||||
'emulation.setScreenOrientationOverride': {
|
||||
params: Bidi.Emulation.SetScreenOrientationOverrideParameters;
|
||||
returnType: Bidi.Emulation.SetScreenOrientationOverrideResult;
|
||||
};
|
||||
'emulation.setScreenSettingsOverride': {
|
||||
params: Bidi.Emulation.SetScreenSettingsOverrideParameters;
|
||||
returnType: Bidi.Emulation.SetScreenSettingsOverrideResult;
|
||||
};
|
||||
'emulation.setScriptingEnabled': {
|
||||
params: Bidi.Emulation.SetScriptingEnabledParameters;
|
||||
returnType: Bidi.Emulation.SetScriptingEnabledResult;
|
||||
};
|
||||
'emulation.setTimezoneOverride': {
|
||||
params: Bidi.Emulation.SetTimezoneOverrideParameters;
|
||||
returnType: Bidi.Emulation.SetTimezoneOverrideResult;
|
||||
};
|
||||
'emulation.setTouchOverride': {
|
||||
params: Bidi.Emulation.SetTouchOverrideParameters;
|
||||
returnType: Bidi.Emulation.SetTouchOverrideResult;
|
||||
};
|
||||
'emulation.setUserAgentOverride': {
|
||||
params: Bidi.Emulation.SetUserAgentOverrideParameters;
|
||||
returnType: Bidi.Emulation.SetUserAgentOverrideResult;
|
||||
};
|
||||
'input.performActions': {
|
||||
params: Bidi.Input.PerformActionsParameters;
|
||||
returnType: Bidi.Input.PerformActionsResult;
|
||||
};
|
||||
'input.releaseActions': {
|
||||
params: Bidi.Input.ReleaseActionsParameters;
|
||||
returnType: Bidi.Input.ReleaseActionsResult;
|
||||
};
|
||||
'input.setFiles': {
|
||||
params: Bidi.Input.SetFilesParameters;
|
||||
returnType: Bidi.Input.SetFilesResult;
|
||||
};
|
||||
'network.addDataCollector': {
|
||||
params: Bidi.Network.AddDataCollectorParameters;
|
||||
returnType: Bidi.Network.AddDataCollectorResult;
|
||||
};
|
||||
'network.addIntercept': {
|
||||
params: Bidi.Network.AddInterceptParameters;
|
||||
returnType: Bidi.Network.AddInterceptResult;
|
||||
};
|
||||
'network.continueRequest': {
|
||||
params: Bidi.Network.ContinueRequestParameters;
|
||||
returnType: Bidi.Network.ContinueRequestResult;
|
||||
};
|
||||
'network.continueResponse': {
|
||||
params: Bidi.Network.ContinueResponseParameters;
|
||||
returnType: Bidi.Network.ContinueResponseResult;
|
||||
};
|
||||
'network.continueWithAuth': {
|
||||
params: Bidi.Network.ContinueWithAuthParameters;
|
||||
returnType: Bidi.Network.ContinueWithAuthResult;
|
||||
};
|
||||
'network.disownData': {
|
||||
params: Bidi.Network.DisownDataParameters;
|
||||
returnType: Bidi.Network.DisownDataResult;
|
||||
};
|
||||
'network.failRequest': {
|
||||
params: Bidi.Network.FailRequestParameters;
|
||||
returnType: Bidi.Network.FailRequestResult;
|
||||
};
|
||||
'network.getData': {
|
||||
params: Bidi.Network.GetDataParameters;
|
||||
returnType: Bidi.Network.GetDataResult;
|
||||
};
|
||||
'network.provideResponse': {
|
||||
params: Bidi.Network.ProvideResponseParameters;
|
||||
returnType: Bidi.Network.ProvideResponseResult;
|
||||
};
|
||||
'network.removeDataCollector': {
|
||||
params: Bidi.Network.RemoveDataCollectorParameters;
|
||||
returnType: Bidi.Network.RemoveDataCollectorResult;
|
||||
};
|
||||
'network.removeIntercept': {
|
||||
params: Bidi.Network.RemoveInterceptParameters;
|
||||
returnType: Bidi.Network.RemoveInterceptResult;
|
||||
};
|
||||
'network.setCacheBehavior': {
|
||||
params: Bidi.Network.SetCacheBehaviorParameters;
|
||||
returnType: Bidi.Network.SetCacheBehaviorResult;
|
||||
};
|
||||
'network.setExtraHeaders': {
|
||||
params: Bidi.Network.SetExtraHeadersParameters;
|
||||
returnType: Bidi.Network.SetExtraHeadersResult;
|
||||
};
|
||||
'permissions.setPermission': {
|
||||
params: BidiPermissions.Permissions.SetPermissionParameters;
|
||||
returnType: Bidi.EmptyResult;
|
||||
};
|
||||
'script.addPreloadScript': {
|
||||
params: Bidi.Script.AddPreloadScriptParameters;
|
||||
returnType: Bidi.Script.AddPreloadScriptResult;
|
||||
};
|
||||
'script.callFunction': {
|
||||
params: Bidi.Script.CallFunctionParameters;
|
||||
returnType: Bidi.Script.CallFunctionResult;
|
||||
};
|
||||
'script.disown': {
|
||||
params: Bidi.Script.DisownParameters;
|
||||
returnType: Bidi.Script.DisownResult;
|
||||
};
|
||||
'script.evaluate': {
|
||||
params: Bidi.Script.EvaluateParameters;
|
||||
returnType: Bidi.Script.EvaluateResult;
|
||||
};
|
||||
'script.getRealms': {
|
||||
params: Bidi.Script.GetRealmsParameters;
|
||||
returnType: Bidi.Script.GetRealmsResult;
|
||||
};
|
||||
'script.removePreloadScript': {
|
||||
params: Bidi.Script.RemovePreloadScriptParameters;
|
||||
returnType: Bidi.Script.RemovePreloadScriptResult;
|
||||
};
|
||||
'session.end': {
|
||||
params: Bidi.Extensible;
|
||||
returnType: Bidi.Session.EndResult;
|
||||
};
|
||||
'session.new': {
|
||||
params: Bidi.Session.NewParameters;
|
||||
returnType: Bidi.Session.NewResult;
|
||||
};
|
||||
'session.status': {
|
||||
params: Bidi.Extensible;
|
||||
returnType: Bidi.Session.StatusResult;
|
||||
};
|
||||
'session.subscribe': {
|
||||
params: Bidi.Session.SubscribeParameters;
|
||||
returnType: Bidi.Session.SubscribeResult;
|
||||
};
|
||||
'session.unsubscribe': {
|
||||
params: Bidi.Session.UnsubscribeParameters;
|
||||
returnType: Bidi.Session.UnsubscribeResult;
|
||||
};
|
||||
'storage.deleteCookies': {
|
||||
params: Bidi.Storage.DeleteCookiesParameters;
|
||||
returnType: Bidi.Storage.DeleteCookiesResult;
|
||||
};
|
||||
'storage.getCookies': {
|
||||
params: Bidi.Storage.GetCookiesParameters;
|
||||
returnType: Bidi.Storage.GetCookiesResult;
|
||||
};
|
||||
'storage.setCookie': {
|
||||
params: Bidi.Storage.SetCookieParameters;
|
||||
returnType: Bidi.Storage.SetCookieResult;
|
||||
};
|
||||
'webExtension.install': {
|
||||
params: Bidi.WebExtension.InstallParameters;
|
||||
returnType: Bidi.WebExtension.InstallResult;
|
||||
};
|
||||
'webExtension.uninstall': {
|
||||
params: Bidi.WebExtension.UninstallParameters;
|
||||
returnType: Bidi.WebExtension.UninstallResult;
|
||||
};
|
||||
}
|
||||
28
backend/node_modules/webdriver-bidi-protocol/src/gen/permissions.ts
generated
vendored
Normal file
28
backend/node_modules/webdriver-bidi-protocol/src/gen/permissions.ts
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
export type PermissionsCommand = Permissions.SetPermission;
|
||||
export namespace Permissions {
|
||||
export type PermissionDescriptor = {
|
||||
name: string;
|
||||
};
|
||||
}
|
||||
export namespace Permissions {
|
||||
export const enum PermissionState {
|
||||
Granted = 'granted',
|
||||
Denied = 'denied',
|
||||
Prompt = 'prompt',
|
||||
}
|
||||
}
|
||||
export namespace Permissions {
|
||||
export type SetPermission = {
|
||||
method: 'permissions.setPermission';
|
||||
params: Permissions.SetPermissionParameters;
|
||||
};
|
||||
}
|
||||
export namespace Permissions {
|
||||
export type SetPermissionParameters = {
|
||||
descriptor: Permissions.PermissionDescriptor;
|
||||
state: Permissions.PermissionState;
|
||||
origin: string;
|
||||
embeddedOrigin?: string;
|
||||
userContext?: string;
|
||||
};
|
||||
}
|
||||
35
backend/node_modules/webdriver-bidi-protocol/src/gen/ua-client-hints.ts
generated
vendored
Normal file
35
backend/node_modules/webdriver-bidi-protocol/src/gen/ua-client-hints.ts
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
export type UserAgentClientHintsCommand =
|
||||
Emulation.SetClientHintsOverrideCommand;
|
||||
export namespace Emulation {
|
||||
export type SetClientHintsOverrideCommand = {
|
||||
method: 'emulation.setClientHintsOverride';
|
||||
params: {
|
||||
clientHints: Emulation.ClientHintsMetadata | null;
|
||||
contexts?: [string, ...string[]];
|
||||
userContexts?: [string, ...string[]];
|
||||
};
|
||||
};
|
||||
}
|
||||
export namespace Emulation {
|
||||
export type ClientHintsMetadata = {
|
||||
brands?: [...Emulation.BrandVersion[]];
|
||||
fullVersionList?: [...Emulation.BrandVersion[]];
|
||||
platform?: string;
|
||||
platformVersion?: string;
|
||||
architecture?: string;
|
||||
model?: string;
|
||||
mobile?: boolean;
|
||||
bitness?: string;
|
||||
wow64?: boolean;
|
||||
formFactors?: [...string[]];
|
||||
};
|
||||
}
|
||||
export namespace Emulation {
|
||||
export type BrandVersion = {
|
||||
brand: string;
|
||||
version: string;
|
||||
};
|
||||
}
|
||||
export namespace Emulation {
|
||||
export type SetClientHintsOverrideResult = Record<string, never>;
|
||||
}
|
||||
314
backend/node_modules/webdriver-bidi-protocol/src/gen/web-bluetooth.ts
generated
vendored
Normal file
314
backend/node_modules/webdriver-bidi-protocol/src/gen/web-bluetooth.ts
generated
vendored
Normal file
@@ -0,0 +1,314 @@
|
||||
export namespace Bluetooth {
|
||||
export type BluetoothUuid = string;
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type BluetoothManufacturerData = {
|
||||
key: number;
|
||||
data: string;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type CharacteristicProperties = {
|
||||
broadcast?: boolean;
|
||||
read?: boolean;
|
||||
writeWithoutResponse?: boolean;
|
||||
write?: boolean;
|
||||
notify?: boolean;
|
||||
indicate?: boolean;
|
||||
authenticatedSignedWrites?: boolean;
|
||||
extendedProperties?: boolean;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type RequestDevice = string;
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type RequestDeviceInfo = {
|
||||
id: Bluetooth.RequestDevice;
|
||||
name: string | null;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type RequestDevicePrompt = string;
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type ScanRecord = {
|
||||
name?: string;
|
||||
uuids?: [...Bluetooth.BluetoothUuid[]];
|
||||
appearance?: number;
|
||||
manufacturerData?: [...Bluetooth.BluetoothManufacturerData[]];
|
||||
};
|
||||
}
|
||||
export type BluetoothCommand =
|
||||
| Bluetooth.HandleRequestDevicePrompt
|
||||
| Bluetooth.SimulateAdapter
|
||||
| Bluetooth.DisableSimulation
|
||||
| Bluetooth.SimulatePreconnectedPeripheral
|
||||
| Bluetooth.SimulateAdvertisement
|
||||
| Bluetooth.SimulateGattConnectionResponse
|
||||
| Bluetooth.SimulateGattDisconnection
|
||||
| Bluetooth.SimulateService
|
||||
| Bluetooth.SimulateCharacteristic
|
||||
| Bluetooth.SimulateCharacteristicResponse
|
||||
| Bluetooth.SimulateDescriptor
|
||||
| Bluetooth.SimulateDescriptorResponse;
|
||||
export namespace Bluetooth {
|
||||
export type HandleRequestDevicePrompt = {
|
||||
method: 'bluetooth.handleRequestDevicePrompt';
|
||||
params: Bluetooth.HandleRequestDevicePromptParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type HandleRequestDevicePromptParameters = {
|
||||
context: string;
|
||||
prompt: Bluetooth.RequestDevicePrompt;
|
||||
} & (
|
||||
| Bluetooth.HandleRequestDevicePromptAcceptParameters
|
||||
| Bluetooth.HandleRequestDevicePromptCancelParameters
|
||||
);
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type HandleRequestDevicePromptAcceptParameters = {
|
||||
accept: true;
|
||||
device: Bluetooth.RequestDevice;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type HandleRequestDevicePromptCancelParameters = {
|
||||
accept: false;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateAdapter = {
|
||||
method: 'bluetooth.simulateAdapter';
|
||||
params: Bluetooth.SimulateAdapterParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateAdapterParameters = {
|
||||
context: string;
|
||||
leSupported?: boolean;
|
||||
state: 'absent' | 'powered-off' | 'powered-on';
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type DisableSimulation = {
|
||||
method: 'bluetooth.disableSimulation';
|
||||
params: Bluetooth.DisableSimulationParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type DisableSimulationParameters = {
|
||||
context: string;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulatePreconnectedPeripheral = {
|
||||
method: 'bluetooth.simulatePreconnectedPeripheral';
|
||||
params: Bluetooth.SimulatePreconnectedPeripheralParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulatePreconnectedPeripheralParameters = {
|
||||
context: string;
|
||||
address: string;
|
||||
name: string;
|
||||
manufacturerData: [...Bluetooth.BluetoothManufacturerData[]];
|
||||
knownServiceUuids: [...Bluetooth.BluetoothUuid[]];
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateAdvertisement = {
|
||||
method: 'bluetooth.simulateAdvertisement';
|
||||
params: Bluetooth.SimulateAdvertisementParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateAdvertisementParameters = {
|
||||
context: string;
|
||||
scanEntry: Bluetooth.SimulateAdvertisementScanEntryParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateAdvertisementScanEntryParameters = {
|
||||
deviceAddress: string;
|
||||
rssi: number;
|
||||
scanRecord: Bluetooth.ScanRecord;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateGattConnectionResponse = {
|
||||
method: 'bluetooth.simulateGattConnectionResponse';
|
||||
params: Bluetooth.SimulateGattConnectionResponseParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateGattConnectionResponseParameters = {
|
||||
context: string;
|
||||
address: string;
|
||||
code: number;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateGattDisconnection = {
|
||||
method: 'bluetooth.simulateGattDisconnection';
|
||||
params: Bluetooth.SimulateGattDisconnectionParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateGattDisconnectionParameters = {
|
||||
context: string;
|
||||
address: string;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateService = {
|
||||
method: 'bluetooth.simulateService';
|
||||
params: Bluetooth.SimulateServiceParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateServiceParameters = {
|
||||
context: string;
|
||||
address: string;
|
||||
uuid: Bluetooth.BluetoothUuid;
|
||||
type: 'add' | 'remove';
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateCharacteristic = {
|
||||
method: 'bluetooth.simulateCharacteristic';
|
||||
params: Bluetooth.SimulateCharacteristicParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateCharacteristicParameters = {
|
||||
context: string;
|
||||
address: string;
|
||||
serviceUuid: Bluetooth.BluetoothUuid;
|
||||
characteristicUuid: Bluetooth.BluetoothUuid;
|
||||
characteristicProperties?: Bluetooth.CharacteristicProperties;
|
||||
type: 'add' | 'remove';
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateCharacteristicResponse = {
|
||||
method: 'bluetooth.simulateCharacteristicResponse';
|
||||
params: Bluetooth.SimulateCharacteristicResponseParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateCharacteristicResponseParameters = {
|
||||
context: string;
|
||||
address: string;
|
||||
serviceUuid: Bluetooth.BluetoothUuid;
|
||||
characteristicUuid: Bluetooth.BluetoothUuid;
|
||||
type:
|
||||
| 'read'
|
||||
| 'write'
|
||||
| 'subscribe-to-notifications'
|
||||
| 'unsubscribe-from-notifications';
|
||||
code: number;
|
||||
data?: [...number[]];
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateDescriptor = {
|
||||
method: 'bluetooth.simulateDescriptor';
|
||||
params: Bluetooth.SimulateDescriptorParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateDescriptorParameters = {
|
||||
context: string;
|
||||
address: string;
|
||||
serviceUuid: Bluetooth.BluetoothUuid;
|
||||
characteristicUuid: Bluetooth.BluetoothUuid;
|
||||
descriptorUuid: Bluetooth.BluetoothUuid;
|
||||
type: 'add' | 'remove';
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateDescriptorResponse = {
|
||||
method: 'bluetooth.simulateDescriptorResponse';
|
||||
params: Bluetooth.SimulateDescriptorResponseParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type SimulateDescriptorResponseParameters = {
|
||||
context: string;
|
||||
address: string;
|
||||
serviceUuid: Bluetooth.BluetoothUuid;
|
||||
characteristicUuid: Bluetooth.BluetoothUuid;
|
||||
descriptorUuid: Bluetooth.BluetoothUuid;
|
||||
type: 'read' | 'write';
|
||||
code: number;
|
||||
data?: [...number[]];
|
||||
};
|
||||
}
|
||||
export type BluetoothEvent =
|
||||
| Bluetooth.RequestDevicePromptUpdated
|
||||
| Bluetooth.GattConnectionAttempted;
|
||||
export namespace Bluetooth {
|
||||
export type RequestDevicePromptUpdated = {
|
||||
method: 'bluetooth.requestDevicePromptUpdated';
|
||||
params: Bluetooth.RequestDevicePromptUpdatedParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type RequestDevicePromptUpdatedParameters = {
|
||||
context: string;
|
||||
prompt: Bluetooth.RequestDevicePrompt;
|
||||
devices: [...Bluetooth.RequestDeviceInfo[]];
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type GattConnectionAttempted = {
|
||||
method: 'bluetooth.gattConnectionAttempted';
|
||||
params: Bluetooth.GattConnectionAttemptedParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type GattConnectionAttemptedParameters = {
|
||||
context: string;
|
||||
address: string;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type CharacteristicEventGenerated = {
|
||||
method: 'bluetooth.characteristicEventGenerated';
|
||||
params: Bluetooth.CharacteristicEventGeneratedParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type CharacteristicEventGeneratedParameters = {
|
||||
context: string;
|
||||
address: string;
|
||||
serviceUuid: Bluetooth.BluetoothUuid;
|
||||
characteristicUuid: Bluetooth.BluetoothUuid;
|
||||
type:
|
||||
| 'read'
|
||||
| 'write-with-response'
|
||||
| 'write-without-response'
|
||||
| 'subscribe-to-notifications'
|
||||
| 'unsubscribe-from-notifications';
|
||||
data?: [...number[]];
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type DescriptorEventGenerated = {
|
||||
method: 'bluetooth.descriptorEventGenerated';
|
||||
params: Bluetooth.DescriptorEventGeneratedParameters;
|
||||
};
|
||||
}
|
||||
export namespace Bluetooth {
|
||||
export type DescriptorEventGeneratedParameters = {
|
||||
context: string;
|
||||
address: string;
|
||||
serviceUuid: Bluetooth.BluetoothUuid;
|
||||
characteristicUuid: Bluetooth.BluetoothUuid;
|
||||
descriptorUuid: Bluetooth.BluetoothUuid;
|
||||
type: 'read' | 'write';
|
||||
data?: [...number[]];
|
||||
};
|
||||
}
|
||||
46
backend/node_modules/webdriver-bidi-protocol/src/index.ts
generated
vendored
Normal file
46
backend/node_modules/webdriver-bidi-protocol/src/index.ts
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2024 Google Inc.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as Bidi from './gen/main.js';
|
||||
import * as BidiPermissions from './gen/permissions.js';
|
||||
import * as BidiBluetooth from './gen/web-bluetooth.js';
|
||||
import * as BidiUaClientHints from './gen/ua-client-hints.js';
|
||||
|
||||
export * from './gen/main.js';
|
||||
export * from './gen/permissions.js';
|
||||
export * from './gen/web-bluetooth.js';
|
||||
// Only `UserAgentClientHintsCommand` is exported, because the UA-CH extends
|
||||
// the `emulation` WebDriver BiDi domain and exposes `Emulation` namespace
|
||||
// which is already exported by main spec.
|
||||
export {UserAgentClientHintsCommand} from './gen/ua-client-hints.js';
|
||||
export {BidiUaClientHints};
|
||||
|
||||
export * from './gen/mapping.js';
|
||||
|
||||
type ExternalSpecCommand<T> = {
|
||||
// id is defined by the main WebDriver BiDi spec and extension specs do
|
||||
// not re-define it. Therefore, it's not part of generated types.
|
||||
id: Bidi.JsUint;
|
||||
} & T;
|
||||
|
||||
export type Result = Bidi.ResultData;
|
||||
|
||||
export type Command =
|
||||
| Bidi.Command
|
||||
| ExternalSpecCommand<BidiPermissions.PermissionsCommand>
|
||||
| ExternalSpecCommand<BidiBluetooth.BluetoothCommand>
|
||||
| ExternalSpecCommand<BidiUaClientHints.UserAgentClientHintsCommand>;
|
||||
|
||||
type ExternalSpecEvent<T> = {
|
||||
// type is defined by the main WebDriver BiDi spec and extension specs do
|
||||
// not re-define it. Therefore, it's not part of generated types.
|
||||
type: 'event';
|
||||
} & T &
|
||||
Bidi.Extensible;
|
||||
|
||||
export type Event =
|
||||
| Bidi.Event
|
||||
| ExternalSpecEvent<BidiBluetooth.BluetoothEvent>;
|
||||
Reference in New Issue
Block a user