peachsim 0.1.1660 → 0.1.1673
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/README.md +8 -1
- package/cli/bridge-flow-runner.ts +6 -3
- package/cli/commands/box.ts +2 -0
- package/cli/commands/control.ts +56 -17
- package/cli/commands/coverage-swift.ts +291 -0
- package/cli/commands/coverage.ts +168 -24
- package/cli/commands/debug.ts +100 -9
- package/cli/commands/diagnose.ts +1 -19
- package/cli/commands/flow.ts +2 -2
- package/cli/commands/inspect/settle.ts +4 -2
- package/cli/commands/inspect/settling.ts +17 -14
- package/cli/commands/platform.ts +3 -0
- package/cli/commands/react.ts +3 -18
- package/cli/commands/screenshot.ts +1 -1
- package/cli/commands/screenshots-capture.ts +1 -1
- package/cli/current-sim.ts +21 -1
- package/cli/dev-build-freshness.ts +36 -2
- package/cli/drivers/playwright-provisioning.ts +1 -4
- package/cli/drivers/playwright.ts +15 -1
- package/cli/maestro-compare.ts +44 -14
- package/cli/main.ts +3 -0
- package/cli/material-symbol-fonts.ts +3 -100
- package/cli/output-redaction.ts +21 -6
- package/cli/parent-pid.ts +2 -2
- package/cli/scene-video.ts +1 -1
- package/cli/ui.ts +20 -0
- package/cli/ws-bridge.ts +26 -37
- package/detox/frame-identity.cjs +21 -0
- package/detox/frame-identity.d.cts +6 -0
- package/detox/index.ts +39 -33
- package/detox/jest-environment.cjs +4 -1
- package/detox/jest-setup-after-env.cjs +0 -4
- package/detox/navigation-lifecycle.ts +2 -2
- package/detox/proof-observer.ts +126 -0
- package/dist-lib/agent-daemon-client.cjs +29 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +10 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +2581 -27346
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +2752 -4982
- package/dist-lib/detox/jest-environment.cjs +4 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +2272 -27004
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +2801 -27484
- package/dist-lib/host/fetch-proxy-handler.cjs +7 -7
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +394 -49
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +10 -1
- package/dist-lib/metro-production-bundle.mjs +12 -1
- package/dist-lib/metro.cjs +235 -13
- package/dist-lib/native-app-identity-project.cjs +123 -13
- package/dist-lib/native-app-identity-project.mjs +123 -13
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +21 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +76 -28
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +590 -184
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +964 -0
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +18 -15
- package/dist-lib/sdk.mjs +18 -15
- package/dist-lib/skills.cjs +3900 -28409
- package/dist-lib/swift-compile.cjs +1227 -26292
- package/dist-lib/swift-compile.mjs +1156 -26221
- package/dist-lib/swift-package.cjs +34 -4
- package/dist-lib/swift-package.mjs +33 -4
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +52 -44
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +2317 -26955
- package/dist-lib/vite.cjs +132 -21
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/demo/demo-bundle-platform.d.ts +29 -0
- package/dist-types/packages/peach-engine/src/engine/app-font-registry.d.ts +13 -1
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +73 -0
- package/dist-types/packages/peach-engine/src/engine/glass-material.d.ts +2 -3
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +21 -3
- package/dist-types/packages/peach-engine/src/engine/inspect-outline.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -4
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/ios/aux-shell-animated-sources.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +68 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +11 -0
- package/dist-types/packages/peach-engine/src/render-worker/nativeSyncReplyContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-scene-schema.d.ts +10 -2
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime-kind.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +7 -2
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/accessibilityBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/androidDateTimePickerBridgeContract.d.ts +41 -0
- package/dist-types/packages/peach-globals/src/appLifecycleBridgeContract.d.ts +22 -0
- package/dist-types/packages/peach-globals/src/audioBridgeContract.d.ts +33 -0
- package/dist-types/packages/peach-globals/src/bridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/cameraBridgeContract.d.ts +94 -0
- package/dist-types/packages/peach-globals/src/captureBridgeContract.d.ts +36 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +45 -0
- package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +31 -0
- package/dist-types/packages/peach-globals/src/debugBridgeContract.d.ts +27 -0
- package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +29 -0
- package/dist-types/packages/peach-globals/src/eventBridgeContract.d.ts +200 -0
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +462 -0
- package/dist-types/packages/peach-globals/src/hostStorageBridgeContract.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/imagePickerBridgeContract.d.ts +47 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +47 -3343
- package/dist-types/packages/peach-globals/src/interactionBridgeContract.d.ts +21 -0
- package/dist-types/packages/peach-globals/src/keyboardBridgeContract.d.ts +44 -0
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +77 -0
- package/dist-types/packages/peach-globals/src/nativeViewContract.d.ts +28 -0
- package/dist-types/packages/peach-globals/src/navigationBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +665 -0
- package/dist-types/packages/peach-globals/src/performanceBridgeContract.d.ts +100 -0
- package/dist-types/packages/peach-globals/src/permissionsBridgeContract.d.ts +152 -0
- package/dist-types/packages/peach-globals/src/photoLibraryBridgeContract.d.ts +36 -0
- package/dist-types/packages/peach-globals/src/portalBridgeContract.d.ts +9 -0
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +131 -0
- package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +125 -0
- package/dist-types/packages/peach-globals/src/sceneStreamBridgeContract.d.ts +37 -0
- package/dist-types/packages/peach-globals/src/settingsBridgeContract.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/shareSheetBridgeContract.d.ts +14 -0
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +82 -0
- package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +28 -0
- package/dist-types/packages/peach-globals/src/speechSynthesisBridgeContract.d.ts +25 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +278 -0
- package/dist-types/packages/peach-globals/src/timelineBridgeContract.d.ts +58 -0
- package/dist-types/packages/peach-globals/src/videoBridgeContract.d.ts +80 -0
- package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +331 -0
- package/dist-types/packages/peach-globals/src/windowBridgeContract.d.ts +5 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/ui/popover-placement.d.ts +3 -5
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h +20 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsynchronousKeyValueLoading.h +15 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h +5 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataFormat.h +13 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h +16 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVTimedMetadataGroup.h +13 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Conversion.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Convolution.h +11 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Geometry.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h +307 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Utilities.h +174 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/CoreData.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h +21 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchedResultsController.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h +10 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +221 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +316 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTimeRange.h +8 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h +3 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h +12 -0
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Headers/UTCoreTypes.h +1276 -0
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Headers/UTType.h +644 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h +20 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +1441 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h +106 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h +429 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageMetadata.h +665 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h +2504 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h +634 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h +22 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h +18 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Headers/MobileCoreServices.h +9 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +14 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h +9 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SafariServices.h +2 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecBase.h +3 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecItem.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +3 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStore.h +439 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreCopySpecific.h +216 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreKey.h +267 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetwork.h +204 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConfiguration.h +1393 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConnection.h +568 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkReachability.h +369 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferences.h +473 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesPath.h +179 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesSetSpecific.h +95 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h +2395 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h +184 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAppearance.h +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h +2 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +817 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/usr/include/Availability.h +630 -0
- package/sdk/ios/usr/include/AvailabilityInternal.h +556 -0
- package/sdk/ios/usr/include/AvailabilityInternalLegacy.h +4346 -0
- package/sdk/ios/usr/include/AvailabilityVersions.h +547 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonDigest.h +130 -0
- package/sdk/ios/usr/include/MacTypes.h +3 -0
- package/sdk/ios/usr/include/TargetConditionals.h +14 -0
- package/sdk/ios/usr/include/__xlocale.h +41 -0
- package/sdk/ios/usr/include/_bounds.h +67 -0
- package/sdk/ios/usr/include/_ctermid.h +42 -0
- package/sdk/ios/usr/include/_mb_cur_max.h +39 -0
- package/sdk/ios/usr/include/_printf.h +38 -0
- package/sdk/ios/usr/include/_stdio.h +510 -0
- package/sdk/ios/usr/include/_types/_intmax_t.h +40 -0
- package/sdk/ios/usr/include/_types/_locale_t.h +38 -0
- package/sdk/ios/usr/include/_types/_uint16_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uint32_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uint64_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uint8_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uintmax_t.h +40 -0
- package/sdk/ios/usr/include/_types.h +72 -0
- package/sdk/ios/usr/include/arm/_endian.h +105 -0
- package/sdk/ios/usr/include/arm/_mcontext.h +95 -0
- package/sdk/ios/usr/include/arm/_param.h +25 -0
- package/sdk/ios/usr/include/arm/_types.h +125 -0
- package/sdk/ios/usr/include/arm/endian.h +65 -0
- package/sdk/ios/usr/include/arm/signal.h +22 -0
- package/sdk/ios/usr/include/arm/types.h +110 -0
- package/sdk/ios/usr/include/asl.h +160 -0
- package/sdk/ios/usr/include/assert.h +14 -0
- package/sdk/ios/usr/include/dirent.h +224 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +114 -0
- package/sdk/ios/usr/include/dlfcn.h +16 -0
- package/sdk/ios/usr/include/errno.h +24 -0
- package/sdk/ios/usr/include/execinfo.h +11 -0
- package/sdk/ios/usr/include/fcntl.h +23 -0
- package/sdk/ios/usr/include/i386/_endian.h +105 -0
- package/sdk/ios/usr/include/i386/_mcontext.h +216 -0
- package/sdk/ios/usr/include/i386/_param.h +49 -0
- package/sdk/ios/usr/include/i386/_types.h +149 -0
- package/sdk/ios/usr/include/i386/endian.h +89 -0
- package/sdk/ios/usr/include/i386/signal.h +47 -0
- package/sdk/ios/usr/include/libkern/OSAtomic.h +51 -0
- package/sdk/ios/usr/include/libkern/OSAtomicDeprecated.h +1267 -0
- package/sdk/ios/usr/include/libkern/OSAtomicQueue.h +115 -0
- package/sdk/ios/usr/include/libkern/OSByteOrder.h +315 -0
- package/sdk/ios/usr/include/libkern/OSSpinLockDeprecated.h +212 -0
- package/sdk/ios/usr/include/libkern/_OSByteOrder.h +125 -0
- package/sdk/ios/usr/include/libkern/arm/_OSByteOrder.h +99 -0
- package/sdk/ios/usr/include/libkern/i386/_OSByteOrder.h +110 -0
- package/sdk/ios/usr/include/libkern/machine/OSByteOrder.h +147 -0
- package/sdk/ios/usr/include/limits.h +4 -0
- package/sdk/ios/usr/include/mach/arm/_structs.h +741 -0
- package/sdk/ios/usr/include/mach/boolean.h +4 -0
- package/sdk/ios/usr/include/mach/exception_types.h +40 -0
- package/sdk/ios/usr/include/mach/host_info.h +200 -0
- package/sdk/ios/usr/include/mach/i386/_structs.h +1316 -0
- package/sdk/ios/usr/include/mach/kern_return.h +61 -0
- package/sdk/ios/usr/include/mach/mach.h +16 -0
- package/sdk/ios/usr/include/mach/mach_error.h +10 -0
- package/sdk/ios/usr/include/mach/mach_host.h +18 -0
- package/sdk/ios/usr/include/mach/mach_init.h +15 -0
- package/sdk/ios/usr/include/mach/mach_port.h +11 -0
- package/sdk/ios/usr/include/mach/mach_time.h +14 -0
- package/sdk/ios/usr/include/mach/mach_types.h +20 -0
- package/sdk/ios/usr/include/mach/machine/_structs.h +40 -0
- package/sdk/ios/usr/include/mach/machine.h +144 -0
- package/sdk/ios/usr/include/mach/task.h +14 -0
- package/sdk/ios/usr/include/mach/task_info.h +23 -0
- package/sdk/ios/usr/include/mach/task_policy.h +29 -0
- package/sdk/ios/usr/include/mach/thread_act.h +12 -0
- package/sdk/ios/usr/include/mach/thread_info.h +32 -0
- package/sdk/ios/usr/include/mach/time_value.h +4 -0
- package/sdk/ios/usr/include/mach/vm_prot.h +8 -0
- package/sdk/ios/usr/include/mach/vm_region.h +43 -0
- package/sdk/ios/usr/include/mach/vm_statistics.h +491 -0
- package/sdk/ios/usr/include/mach/vm_types.h +8 -0
- package/sdk/ios/usr/include/mach-o/arch.h +21 -0
- package/sdk/ios/usr/include/mach-o/dyld.h +16 -0
- package/sdk/ios/usr/include/mach-o/dyld_images.h +71 -0
- package/sdk/ios/usr/include/mach-o/getsect.h +17 -0
- package/sdk/ios/usr/include/mach-o/loader.h +158 -0
- package/sdk/ios/usr/include/mach-o/nlist.h +38 -0
- package/sdk/ios/usr/include/mach-o/stab.h +33 -0
- package/sdk/ios/usr/include/mach-o/utils.h +10 -0
- package/sdk/ios/usr/include/machine/_endian.h +42 -0
- package/sdk/ios/usr/include/machine/_mcontext.h +39 -0
- package/sdk/ios/usr/include/machine/_param.h +39 -0
- package/sdk/ios/usr/include/machine/_types.h +39 -0
- package/sdk/ios/usr/include/machine/endian.h +42 -0
- package/sdk/ios/usr/include/machine/signal.h +39 -0
- package/sdk/ios/usr/include/machine/types.h +42 -0
- package/sdk/ios/usr/include/math.h +5 -0
- package/sdk/ios/usr/include/module.modulemap +4 -0
- package/sdk/ios/usr/include/net/if.h +20 -0
- package/sdk/ios/usr/include/net/if_dl.h +10 -0
- package/sdk/ios/usr/include/net/if_var.h +15 -0
- package/sdk/ios/usr/include/net/net_kev.h +100 -0
- package/sdk/ios/usr/include/netdb.h +5 -0
- package/sdk/ios/usr/include/netinet/in.h +670 -0
- package/sdk/ios/usr/include/netinet6/in6.h +676 -0
- package/sdk/ios/usr/include/notify.h +45 -0
- package/sdk/ios/usr/include/notify_keys.h +17 -0
- package/sdk/ios/usr/include/objc/NSObject.h +79 -0
- package/sdk/ios/usr/include/os/availability.h +140 -0
- package/sdk/ios/usr/include/os/lock.h +24 -0
- package/sdk/ios/usr/include/os/log.h +77 -0
- package/sdk/ios/usr/include/os/object.h +13 -0
- package/sdk/ios/usr/include/peach/darwin.h +6 -0
- package/sdk/ios/usr/include/peach/netdb.h +316 -0
- package/sdk/ios/usr/include/peach/pthread.h +19 -0
- package/sdk/ios/usr/include/pthread.h +4 -0
- package/sdk/ios/usr/include/secure/_common.h +45 -0
- package/sdk/ios/usr/include/secure/_stdio.h +130 -0
- package/sdk/ios/usr/include/signal.h +132 -0
- package/sdk/ios/usr/include/stdint.h +205 -0
- package/sdk/ios/usr/include/stdio.h +65 -0
- package/sdk/ios/usr/include/stdlib.h +17 -0
- package/sdk/ios/usr/include/string.h +8 -0
- package/sdk/ios/usr/include/sys/__endian.h +108 -0
- package/sdk/ios/usr/include/sys/_endian.h +152 -0
- package/sdk/ios/usr/include/sys/_posix_availability.h +73 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_attr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_types.h +120 -0
- package/sdk/ios/usr/include/sys/_symbol_aliasing.h +1093 -0
- package/sdk/ios/usr/include/sys/_types/_errno_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_filesec_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_gid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_in_addr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_in_port_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ino_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_int16_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_int32_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_int64_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_int8_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_intptr_t.h +33 -0
- package/sdk/ios/usr/include/sys/_types/_iovec_t.h +35 -0
- package/sdk/ios/usr/include/sys/_types/_mode_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_null.h +54 -0
- package/sdk/ios/usr/include/sys/_types/_o_dsync.h +30 -0
- package/sdk/ios/usr/include/sys/_types/_o_sync.h +30 -0
- package/sdk/ios/usr/include/sys/_types/_off_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_pid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ptrdiff_t.h +56 -0
- package/sdk/ios/usr/include/sys/_types/_s_ifmt.h +74 -0
- package/sdk/ios/usr/include/sys/_types/_sa_family_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_seek_set.h +51 -0
- package/sdk/ios/usr/include/sys/_types/_sigaltstack.h +50 -0
- package/sdk/ios/usr/include/sys/_types/_sigset_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_size_t.h +56 -0
- package/sdk/ios/usr/include/sys/_types/_socklen_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ssize_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_timespec.h +38 -0
- package/sdk/ios/usr/include/sys/_types/_timeval32.h +3 -0
- package/sdk/ios/usr/include/sys/_types/_u_int16_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int32_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int64_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int8_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_ucontext.h +59 -0
- package/sdk/ios/usr/include/sys/_types/_uid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_uintptr_t.h +37 -0
- package/sdk/ios/usr/include/sys/_types/_va_list.h +49 -0
- package/sdk/ios/usr/include/sys/_types/_wchar_t.h +59 -0
- package/sdk/ios/usr/include/sys/_types.h +103 -0
- package/sdk/ios/usr/include/sys/appleapiopts.h +61 -0
- package/sdk/ios/usr/include/sys/cdefs.h +341 -0
- package/sdk/ios/usr/include/sys/constrained_ctypes.h +622 -0
- package/sdk/ios/usr/include/sys/dirent.h +141 -0
- package/sdk/ios/usr/include/sys/errno.h +271 -0
- package/sdk/ios/usr/include/sys/fcntl.h +649 -0
- package/sdk/ios/usr/include/sys/mman.h +273 -0
- package/sdk/ios/usr/include/sys/proc.h +65 -0
- package/sdk/ios/usr/include/sys/qos.h +61 -0
- package/sdk/ios/usr/include/sys/signal.h +394 -0
- package/sdk/ios/usr/include/sys/socket.h +752 -0
- package/sdk/ios/usr/include/sys/stdio.h +61 -0
- package/sdk/ios/usr/include/sys/sysctl.h +74 -0
- package/sdk/ios/usr/include/sys/syslimits.h +11 -0
- package/sdk/ios/usr/include/sys/time.h +5 -0
- package/sdk/ios/usr/include/sys/types.h +21 -0
- package/sdk/ios/usr/include/sys/ucontext.h +41 -0
- package/sdk/ios/usr/include/sys/xattr.h +50 -0
- package/sdk/ios/usr/include/time.h +2 -0
- package/sdk/ios/usr/include/unistd.h +3 -0
- package/sdk/ios/usr/include/uuid/uuid.h +19 -0
- package/sdk/ios/usr/include/xlocale/_stdio.h +85 -0
- package/sdk/ios/usr/lib/swift/CoreGraphics.swiftmodule/arm64-apple-ios-simulator.swiftinterface +8 -0
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +51 -0
- package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +20 -0
- package/sdk/ios/wasm/include/dlfcn.h +3 -0
- package/sdk/ios/wasm/include/netdb.h +4 -0
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/stdlib.h +3 -0
- package/sdk/ios/wasm/include/string.h +3 -0
- package/sdk/ios/wasm/include/sys/socket.h +7 -0
- package/sdk/ios/wasm/include/sys/types.h +4 -0
- package/sdk/ios/wasm/include/sys/ucontext.h +38 -0
- package/src/bridge-contract.ts +42 -0
- package/src/chromium-admission.ts +196 -0
- package/src/cli-runtime.ts +5 -5
- package/src/conformance-comparison-contract.ts +146 -0
- package/src/conformance-pixel-comparison.ts +327 -0
- package/src/device-catalog.ts +12 -3
- package/src/host/bridge-host.ts +6 -43
- package/src/launch-deadline.ts +74 -0
- package/src/material-symbol-fonts.ts +107 -0
- package/src/nitro-adapter.lock.json +3 -3
- package/src/profiles.ts +21 -0
- package/src/react-native-coverage/capability-reference-resolution.ts +402 -0
- package/src/react-native-coverage/capability-source-references.ts +1296 -0
- package/src/react-native-coverage/native-typescript-parser.ts +74 -0
- package/src/react-native-coverage/project-aliases.ts +207 -0
- package/src/react-native-coverage/verified-reach.ts +47 -0
- package/src/reap-browser.ts +1019 -0
- package/src/skills/builtin/a11y-review.ts +1 -1
- package/src/skills/builtin/perf-profile.ts +1 -1
- package/src/skills/builtin/screenshot-all.ts +1 -1
- package/src/skills/builtin/visual-diff.ts +1 -1
- package/src/swift-compile.ts +584 -226
- package/src/swift-compiler-digest.ts +6 -2
- package/src/swift-coverage/indexdump.ts +80 -0
- package/src/swift-coverage/indexing.ts +147 -0
- package/src/swift-coverage/package.ts +230 -0
- package/src/swift-coverage/provenance.ts +47 -0
- package/src/swift-coverage/reader.ts +81 -0
- package/src/swift-coverage/source.ts +252 -0
- package/src/swift-coverage/types.ts +58 -0
- package/src/swift-coverage/xcode-assets.ts +175 -0
- package/src/swift-coverage/xcode-bridging.ts +160 -0
- package/src/swift-coverage/xcode-packages.ts +251 -0
- package/src/swift-coverage/xcode-strings.ts +78 -0
- package/src/swift-coverage/xcode.ts +656 -0
- package/src/swift-distribution.lock.json +8 -8
- package/src/swift-distribution.ts +2 -1
- package/src/swift-host.ts +47 -4
- package/src/swift-objc-compile.ts +72 -97
- package/src/swift-objc-import.ts +238 -38
- package/src/swift-objc-metadata.ts +54 -7
- package/src/swift-objc-sdk-tree.ts +17 -0
- package/src/swift-objc-sdk.ts +27 -25677
- package/src/swift-objc-standin.ts +4 -2
- package/src/swift-package-manifest.ts +134 -13
- package/src/swift-package.ts +46 -4
- package/src/swift-standins.ts +2 -2
- package/src/swift-submit.ts +2 -1
- package/src/swift-toolchain.ts +72 -61
- package/src/swift-vite-lifetime.ts +42 -0
- package/src/swiftContract.ts +54 -0
- package/src/vite-plugin-one.ts +36 -15
- package/src/vite-plugin-swift.ts +21 -2
- package/src/worker-system-chunks.ts +3 -10
- package/src/xcode-header-search.ts +114 -0
- package/src/xcode-project.ts +108 -14
- package/detox/attempt-events.cjs +0 -884
- package/detox/attempt-events.d.cts +0 -113
- package/detox/motion-change.cjs +0 -524
- package/detox/motion-change.d.cts +0 -140
- package/detox/motion-leg-starts.cjs +0 -20
- package/detox/motion-leg-starts.d.cts +0 -8
- package/detox/proof-frame.cjs +0 -190
- package/detox/record-block-execution.cjs +0 -78
|
@@ -1,3345 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { isPreviewCaptureKind } from './recordingBridgeContract.d.ts';
|
|
2
|
+
export type { PreviewCaptureKind, NativeScreenCaptureState, PeachRecordingMode, PeachRecordingStartOptions, SootSimRecorderBridge, SootSimCapturedFrame, SootSimCapturedSurfacePresentation, SootSimEventRecorderBridge, SootSimPreviewRecorder, } from './recordingBridgeContract.d.ts';
|
|
3
|
+
export { SOOTSIM_KEYBOARD_TOOLBAR_GROUP_PROP, createDefaultSootSim, ensureSootSim, getSootSim, } from './globalsContract.d.ts';
|
|
4
|
+
export type { Emitter, SootSimChrome, SootSimBridges, SootSimEngineSnapshot, SootSimRenderMode, SootSimTransformedBundle, SootSimConnection, SootSimShellPathRoute, SootSimShellRouteSnapshot, SootSimRouter, SootSimState, SootSimDebugChannels, SootSimDebugEvent, SootSimDebugState, SootSimGlobals, SootSimLegacyGlobals, SootSimMetroAssetRecord, SootSimMetroRequire, SootSimTenantLocation, SootSimTenantNavigator, SootSimTenantScreen, SootSimWorkerTextInputBridge, SootSimWorkerTextInputBridgeGlobal, PeachPageServingAuthority, SootSimTenantEnvironment, SootSimMetroDefine, SootSimDirectGlobals, } from './globalsContract.d.ts';
|
|
5
|
+
export { SOOTSIM_NATIVE_PUBLIC_INSTANCE, isSootSimNativePublicInstance, withSootSimNativePublicInstanceTags, } from './nativeViewContract.d.ts';
|
|
6
|
+
export type { NativeViewMeasureMode, NativeViewMeasure, PeachNativeWorkletEventDispatcher, SootSimNativePublicInstance, NumericTextPaintRequest, } from './nativeViewContract.d.ts';
|
|
7
|
+
export { SOOTSIM_BOOT_STAGE_ORDER, SOOTSIM_TENANT_READY_MARK, SOOTSIM_BOOT_MARKS_GLOBAL, dispatchSootsimEvent, listenSootsimEvent, } from './eventBridgeContract.d.ts';
|
|
8
|
+
export type { SootsimBridgeStatusDetail, SootsimActiveAppChangeDetail, SootsimSettingsPage, SootsimSettingsRoute, SootsimNavigateAppDetail, SootsimNavigateHomeDetail, SootsimEmbedVisibilityDetail, SootsimEmbedInteraction, SootsimEngineFailureDetail, SootsimBootStage, SootsimBootMarkName, SootsimBootMark, SootsimHostKeyDetail, SootsimHapticActivityDetail, SootsimColorScheme, SootsimTopOverlayKind, SootsimEventMap, SootsimEventName, } from './eventBridgeContract.d.ts';
|
|
9
|
+
export type { SootSimTestQueryFilter, SootSimTextCandidatesOptions, SootSimTextCandidate, SootSimTextCandidatesResult, SootSimDumpTreeOptions, SootSimInspectPointOptions, SootSimListInspectableOptions, SootSimRequestEntry, SootSimRequestCounts, SootSimTestBridge, SootSimTestBridgeMethod, SootSimTestBridgeArgs, SootSimTestBridgeResult, } from './testBridgeContract.d.ts';
|
|
10
|
+
export type { SootSimInspectNeighborDirection, SootSimGestureCallback, SootSimTapPathEntry, SootSimTapRefusal, SootSimTapTargetMatch, SootSimTapTargetVerification, SootSimNativePresentationInfo, SootSimTapResult, SootSimTapTargetStrategy, SootSimTapTargetInfo, SootSimRouteInfo, SootSimUndeclaredScreen, SootSimScrollToResult, SootSimCursorState, SootSimLoupeState, SootSimEditMenuRect, SootSimEditMenuItem, SootSimEditMenuState, SootSimTextSelection, SootSimTextSelectionHandles, SootSimAnimationSource, SootSimAnimationInfo, SootSimAnimationTraceSample, SootSimAnimationTraceStatus, SootSimRuntimeState, SootSimScreenTransitionWaitOptions, SootSimScreenTransitionWaitResult, SootSimInspectDeviceInfo, SootSimInspectAncestor, SootSimInspectBoxModel, SootSimInspectImageSource, SootSimInspectHookKind, SootSimInspectHookSummary, SootSimInspectCommitCause, SootSimInspectLastCommit, SootSimInspectReactInfo, SootSimInspectNavigationInfo, SootSimInspectTimelineEntry, SootSimInspectTreeNode, SootSimInspectInfo, PeachSemanticInspectInfo, PointerDispatchOptions, PeachAccessibilityNode, PeachSwiftUiAccessibility, PeachDebugSnapshotOperation, SootSimTargetMatcher, SootSimTargetObservation, PeachPeerStatsProgress, PeachPeerStats, SootSimAccessibilityState, SootSimAccessibilityValue, SootSimAccessibilityLiveRegion, SootSimFocusedNodeInfo, SootSimAccessibilityInput, SootSimNodeInfo, SootSimStyleTokenBinding, SootSimCapturedTextSegment, SootSimCapturedTextLine, SootSimRenderTreeNode, SootSimRenderTreeSnapshot, SootSimCaptureTransactionReceipt, SootSimCaptureBoundLongPressReceipt, SootSimCaptureBoundTapReceipt, SootSimDebugNodeInfo, SootSimVisibleFrame, SootSimVisibilityNodeRef, SootSimVisibleFrameHidden, SootSimLayout, SootSimDeviceSpec, } from './nodeContract.d.ts';
|
|
11
|
+
export type { SootSimInteractBridge } from './interactionBridgeContract.d.ts';
|
|
12
|
+
export { isTextInputEditCommand } from './keyboardBridgeContract.d.ts';
|
|
13
|
+
export type { GuardedTextInputResult, TextInputEditRange, TextInputEditCommand, SootSimKeyboardBridge, } from './keyboardBridgeContract.d.ts';
|
|
14
|
+
export type { SootSimDetectedBarcode, PeachCameraPhotoOptions, PeachCameraPhotoResult, PeachCameraRecordingOptions, PeachCameraRecordingCommand, PeachCameraRecordingEvent, PeachCameraSourceInfo, PeachCameraSourceConfiguration, PeachCameraFrameResult, SootSimCameraBridge, } from './cameraBridgeContract.d.ts';
|
|
15
|
+
export type { SootSimVideoSource, SootSimVideoStatus, SootSimVideoEvent, SootSimVideoBridge, } from './videoBridgeContract.d.ts';
|
|
16
|
+
export type { SootSimSpeechSynthesisUtterance, SootSimSpeechSynthesisEvent, SootSimSpeechSynthesisBridge, } from './speechSynthesisBridgeContract.d.ts';
|
|
17
|
+
export type { SootSimAudioRecorderOptions, SootSimAudioRecorderCommand, SootSimAudioRecorderSnapshot, SootSimAudioRecorderBridge, SootSimMediaSessionBridge, } from './audioBridgeContract.d.ts';
|
|
18
|
+
export type { SootSimClipboardImage, SootSimClipboardChange, SootSimClipboardBridge, SootSimClipboardPresence, SootSimClipboardItems, SootSimClipboardSnapshot, } from './clipboardBridgeContract.d.ts';
|
|
19
|
+
export type { SootSimHostStorageBridge } from './hostStorageBridgeContract.d.ts';
|
|
20
|
+
export type { SootSimImagePickerAsset, SootSimImagePickerResult, SootSimImagePickerOptions, ShellNativeEvaluationOwner, SootSimImagePickerBridge, SootSimImageCropperSpec, SootSimImageCropperBridge, } from './imagePickerBridgeContract.d.ts';
|
|
21
|
+
export type { SootSimAndroidPickerDay, SootSimAndroidPickerButton, SootSimAndroidDateTimePickerSpec, SootSimAndroidDateTimePickerResult, SootSimAndroidDateTimePickerBridge, } from './androidDateTimePickerBridgeContract.d.ts';
|
|
22
|
+
export type { SystemPermissionKind, SystemPermissionStatus, SystemPermissionLocationAccuracy, SystemPermissionPlatform, AppPreferenceValue, AppSettingsSpecifier, SystemNotificationSettings, SystemPermissionState, SystemPermissionDescriptor, SystemPermissionApp, SystemPermissionRecord, AppPermissionSetting, AppSettingsSnapshot, SystemPermissionMutation, SystemPermissionRequestContext, SootSimPermissionsBridge, } from './permissionsBridgeContract.d.ts';
|
|
23
|
+
export type { SootSimShareSheetOptions, SootSimShareSheetResult, SootSimShareSheetBridge, } from './shareSheetBridgeContract.d.ts';
|
|
24
|
+
export type { SootSimPhotoLibraryAsset, SootSimPhotoLibraryPage, SootSimPhotoLibraryQueryOptions, SootSimPhotoLibraryCreateOptions, SootSimPhotoLibraryBridge, } from './photoLibraryBridgeContract.d.ts';
|
|
25
|
+
export type { SootSimNavigationRoutesPayload, SootSimNavigationRoutesBridge, SootSimLinkingDispatcherBridge, } from './navigationBridgeContract.d.ts';
|
|
26
|
+
export { uncutCornerRadii } from './webViewBridgeContract.d.ts';
|
|
27
|
+
export type { PeachWebViewDocumentData, SootSimWebViewSource, SootSimWebViewHostRequest, SootSimWebKitConfiguration, SootSimWebKitValue, SootSimWebKitEvent, SootSimWebViewCookieStore, SootSimWebViewSpec, SootSimWebViewEvent, SootSimWebViewNavigationType, SootSimWebKitReply, SootSimWebViewBridge, } from './webViewBridgeContract.d.ts';
|
|
28
|
+
export type { SootSimA11yBridge } from './accessibilityBridgeContract.d.ts';
|
|
29
|
+
export type { SootSimPerfBridge, SootSimLiveRenderLoad, SootSimReactProfileBridge, SootSimShellPerfBridge, SootSimScrollTraceLayer, SootSimScrollOffsetSample, SootSimTransitionProgressSample, SootSimPressPerformanceSample, SootSimScrollPerformanceTrace, SootSimScrollPerfBridge, SootSimReactDevtoolsConnection, SootSimReactDevtoolsBridge, } from './performanceBridgeContract.d.ts';
|
|
30
|
+
export type { SootSimDebugBridge } from './debugBridgeContract.d.ts';
|
|
31
|
+
export type { SootSimPortalManager } from './portalBridgeContract.d.ts';
|
|
32
|
+
export type { SootSimWindowScaleBridge } from './windowBridgeContract.d.ts';
|
|
33
|
+
export type { SootSimElectronBridge } from './electronBridgeContract.d.ts';
|
|
34
|
+
export { isBoxViewingMessage } from './shellBridgeContract.d.ts';
|
|
35
|
+
export type { PeachHomeApp, PeachHomeStorageValue, PeachHomeStorageBinding, PeachHomeScreenConfig, SootSimConsoleBuffer, SootSimShellCommands, SootSimMainShellBridge, SootSimDemoShareLeaseOptions, SootSimDemoShareBridge, BoxViewingMode, BoxViewingMessage, } from './shellBridgeContract.d.ts';
|
|
36
|
+
export type { SootSimRenderActivityState, SootSimShellSceneFanoutStats, SootSimAuxCompositorStats, SootSimLiveCompositeBridge, } from './compositorBridgeContract.d.ts';
|
|
37
|
+
export type { PeachAnimatedExecution, PeachLockstepTenantFrame, SootSimLockstepFrameReceipt, LockstepInputReceipt, LockstepScheduledInput, SootSimLockstepCaptureController, SootSimLockstepCaptureBridge, } from './lockstepCaptureBridgeContract.d.ts';
|
|
38
|
+
export type { PointerDeliveryTarget, PointerDeliveryPendingDrop, PointerDeliveryStats, SootSimShellHostBridge, } from './shellHostBridgeContract.d.ts';
|
|
39
|
+
export type { SootSimLaunchArguments, SootSimExternalAppLifecycleOptions, SootSimStorageResetStrategy, SootSimExternalAppResetOptions, SootSimExternalAppResetResult, SootSimHotRemountBridge, } from './appLifecycleBridgeContract.d.ts';
|
|
40
|
+
export type { SootSimSettingsBridge } from './settingsBridgeContract.d.ts';
|
|
41
|
+
export { SOOTSIM_CAPTURE_IMAGE_QUALITY, sootsimCaptureIsFlat, } from './captureBridgeContract.d.ts';
|
|
42
|
+
export type { SootSimCaptureFilter, SootSimCaptureOptions } from './captureBridgeContract.d.ts';
|
|
43
|
+
export { SOOTSIM_TIMELINE_KINDS, isTimelineKind, isTimelineEvent, } from './timelineBridgeContract.d.ts';
|
|
44
|
+
export type { SootSimTimelineKind, SootSimTimelineContext, SootSimTimelineEvent, SootSimTimelineQuery, SootSimTimelineQueryResult, SootSimTimelineCountsByKind, SootSimTimelineSummary, SootSimTimelineStatus, SootSimTimelineBridge, } from './timelineBridgeContract.d.ts';
|
|
45
|
+
export type { SootSimSceneStreamCommand, SootSimSceneReplayState, SootSimSceneStreamResult, SootSimSceneStreamBridge, } from './sceneStreamBridgeContract.d.ts';
|
|
46
|
+
export { createSootSimReplayScreenIdentity, inferCursorMoveMs, createSootSimReplayCursorState, createSootSimReplayState, } from './replayBridgeContract.d.ts';
|
|
47
|
+
export type { SootSimReplayCursorMode, SootSimReplayCursorPose, SootSimReplayCursorState, SootSimAgentActionDetail, SootSimHardwareKeyboardInputDetail, SootSimReplayTarget, SootSimReplayEvent, SootSimReplayPathPoint, SootSimReplayPreviewState, SootSimReplayState, } from './replayBridgeContract.d.ts';
|
|
4
48
|
export type { PointerSourceEvent } from './pointerSourceEventContract.d.ts';
|
|
5
|
-
export type PreviewCaptureKind = 'recording' | 'run';
|
|
6
|
-
export type NativeScreenCaptureState = 'active' | 'inactive' | 'unspecified';
|
|
7
|
-
export declare function isPreviewCaptureKind(value: unknown): value is PreviewCaptureKind;
|
|
8
|
-
export type PeachRecordingMode = 'scene' | 'video' | 'live' | 'combined';
|
|
9
|
-
export type PeachRecordingStartOptions = {
|
|
10
|
-
liveBundle?: boolean;
|
|
11
|
-
video?: boolean;
|
|
12
|
-
skipEntitlement?: boolean;
|
|
13
|
-
capture?: PreviewCaptureKind;
|
|
14
|
-
};
|
|
15
|
-
type Listener<T> = (value: T) => void;
|
|
16
|
-
export type Emitter<T> = {
|
|
17
|
-
value: T;
|
|
18
|
-
emit: (value: T) => void;
|
|
19
|
-
listen: (fn: Listener<T>) => () => void;
|
|
20
|
-
nextValue: () => Promise<T>;
|
|
21
|
-
};
|
|
22
|
-
export type NativeViewMeasureMode = 'undefined' | 'exactly' | 'at-most';
|
|
23
|
-
export type NativeViewMeasure = (width: number, widthMode: NativeViewMeasureMode, height: number, heightMode: NativeViewMeasureMode) => {
|
|
24
|
-
width: number;
|
|
25
|
-
height: number;
|
|
26
|
-
};
|
|
27
|
-
export type PeachNativeWorkletEventDispatcher = (viewTag: number, event: {
|
|
28
|
-
eventName?: string;
|
|
29
|
-
} & Record<string, unknown>, options?: {
|
|
30
|
-
deferFlush?: boolean;
|
|
31
|
-
timestamp?: number;
|
|
32
|
-
localOnly?: boolean;
|
|
33
|
-
}) => void;
|
|
34
|
-
export interface SootsimBridgeStatusDetail {
|
|
35
|
-
id?: string | null;
|
|
36
|
-
isPrimary?: boolean;
|
|
37
|
-
url?: string;
|
|
38
|
-
title?: string;
|
|
39
|
-
attachedCliCount?: number;
|
|
40
|
-
activeAgentCommandCount?: number;
|
|
41
|
-
recentActions?: ReadonlyArray<unknown>;
|
|
42
|
-
lockedBy?: string | null;
|
|
43
|
-
lockedByKind?: string | null;
|
|
44
|
-
lockExpiresAt?: number;
|
|
45
|
-
userFocused?: boolean;
|
|
46
|
-
userVisible?: boolean | null;
|
|
47
|
-
visibilityState?: string | null;
|
|
48
|
-
documentFocused?: boolean | null;
|
|
49
|
-
hasClientActivity?: boolean;
|
|
50
|
-
}
|
|
51
|
-
export interface SootsimActiveAppChangeDetail {
|
|
52
|
-
activeAppId: string | null;
|
|
53
|
-
activeAppName: string | null;
|
|
54
|
-
isAppOpen: boolean;
|
|
55
|
-
}
|
|
56
|
-
export type SootsimSettingsPage = 'root' | 'accessibility' | 'display-and-text-size' | 'larger-text' | 'notifications' | 'apps' | 'privacy' | 'apple-account';
|
|
57
|
-
export type SootsimSettingsRoute = {
|
|
58
|
-
kind: 'app';
|
|
59
|
-
appId: string;
|
|
60
|
-
} | {
|
|
61
|
-
kind: 'system';
|
|
62
|
-
page: SootsimSettingsPage;
|
|
63
|
-
};
|
|
64
|
-
export interface SootsimNavigateAppDetail {
|
|
65
|
-
appId?: string;
|
|
66
|
-
settingsPage?: SootsimSettingsPage;
|
|
67
|
-
route?: {
|
|
68
|
-
kind: 'rn';
|
|
69
|
-
id: string;
|
|
70
|
-
};
|
|
71
|
-
replace?: boolean;
|
|
72
|
-
}
|
|
73
|
-
export interface SootsimNavigateHomeDetail {
|
|
74
|
-
replace?: boolean;
|
|
75
|
-
}
|
|
76
|
-
export interface SootsimEmbedVisibilityDetail {
|
|
77
|
-
visible: boolean;
|
|
78
|
-
}
|
|
79
|
-
export type SootsimEmbedInteraction = {
|
|
80
|
-
kind: 'press';
|
|
81
|
-
target: {
|
|
82
|
-
kind: 'id' | 'text';
|
|
83
|
-
value: string;
|
|
84
|
-
};
|
|
85
|
-
} | {
|
|
86
|
-
kind: 'drag';
|
|
87
|
-
from: {
|
|
88
|
-
x: number;
|
|
89
|
-
y: number;
|
|
90
|
-
};
|
|
91
|
-
to: {
|
|
92
|
-
x: number;
|
|
93
|
-
y: number;
|
|
94
|
-
};
|
|
95
|
-
durationMs: number;
|
|
96
|
-
};
|
|
97
|
-
export interface SootsimEngineFailureDetail {
|
|
98
|
-
reason: string;
|
|
99
|
-
detail?: string;
|
|
100
|
-
}
|
|
101
|
-
export type SootsimBootStage = 'engine' | 'tenant' | 'shell-booted' | 'shell-modules' | 'shell-mounted' | 'painted';
|
|
102
|
-
export declare const SOOTSIM_BOOT_STAGE_ORDER: Record<SootsimBootStage, number>;
|
|
103
|
-
export declare const SOOTSIM_TENANT_READY_MARK = "sootsim:tenant-ready";
|
|
104
|
-
export type SootsimBootMarkName = 'wasm-body' | 'worker-ready' | 'compositor-ready' | 'tenant-commit' | 'app-paint' | 'canvaskit-init' | 'corpus-loaded' | 'home-tree' | 'home-paint';
|
|
105
|
-
export interface SootsimBootMark {
|
|
106
|
-
name: SootsimBootMarkName;
|
|
107
|
-
atEpochMs: number;
|
|
108
|
-
}
|
|
109
|
-
export declare const SOOTSIM_BOOT_MARKS_GLOBAL = "__sootsimBootMarks";
|
|
110
|
-
export interface SootsimHostKeyDetail {
|
|
111
|
-
key: string;
|
|
112
|
-
code?: string;
|
|
113
|
-
phase?: 'press' | 'release';
|
|
114
|
-
repeat?: boolean;
|
|
115
|
-
shift?: boolean;
|
|
116
|
-
alt?: boolean;
|
|
117
|
-
meta?: boolean;
|
|
118
|
-
ctrl?: boolean;
|
|
119
|
-
}
|
|
120
|
-
export interface SootsimHapticActivityDetail {
|
|
121
|
-
strength: number;
|
|
122
|
-
source?: string;
|
|
123
|
-
}
|
|
124
|
-
export type SootsimColorScheme = 'light' | 'dark' | 'auto';
|
|
125
|
-
export type SootsimTopOverlayKind = 'none' | 'notification-center' | 'control-center';
|
|
126
|
-
export interface SootsimEventMap {
|
|
127
|
-
'peach:device-frame-layout': void;
|
|
128
|
-
'sootsim:goHome': null;
|
|
129
|
-
'sootsim:appSwitcher': null;
|
|
130
|
-
'sootsim:toggleLock': null;
|
|
131
|
-
'sootsim:shake': null;
|
|
132
|
-
'sootsim:screenshotTaken': null;
|
|
133
|
-
'peach:screenCaptureState': NativeScreenCaptureState;
|
|
134
|
-
'sootsim:openNotificationCenter': null;
|
|
135
|
-
'sootsim:closeNotificationCenter': null;
|
|
136
|
-
'sootsim:openControlCenter': null;
|
|
137
|
-
'sootsim:closeControlCenter': null;
|
|
138
|
-
'sootsim:setTopOverlay': {
|
|
139
|
-
overlay: SootsimTopOverlayKind;
|
|
140
|
-
};
|
|
141
|
-
'sootsim:inspectModeChange': {
|
|
142
|
-
active: boolean;
|
|
143
|
-
};
|
|
144
|
-
'sootsim:ringHint': null;
|
|
145
|
-
'sootsim:ringModeChange': {
|
|
146
|
-
mode: 'ring' | 'silent';
|
|
147
|
-
};
|
|
148
|
-
'sootsim:homeIntro': null;
|
|
149
|
-
'sootsim:hoverPosition': {
|
|
150
|
-
x: number;
|
|
151
|
-
y: number;
|
|
152
|
-
};
|
|
153
|
-
'sootsim:hoverLeave': null;
|
|
154
|
-
'sootsim:inspectSelectPosition': {
|
|
155
|
-
x: number;
|
|
156
|
-
y: number;
|
|
157
|
-
};
|
|
158
|
-
'sootsim:prewarmApp': {
|
|
159
|
-
appId: string;
|
|
160
|
-
iconPosition?: {
|
|
161
|
-
x: number;
|
|
162
|
-
y: number;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
'sootsim:cancelPrewarmApp': null;
|
|
166
|
-
'sootsim:colorSchemeChange': {
|
|
167
|
-
scheme: SootsimColorScheme;
|
|
168
|
-
};
|
|
169
|
-
'sootsim:activeAppChange': SootsimActiveAppChangeDetail;
|
|
170
|
-
'sootsim:navigateApp': SootsimNavigateAppDetail;
|
|
171
|
-
'sootsim:navigateHome': SootsimNavigateHomeDetail;
|
|
172
|
-
'sootsim:demoBundleModeChange': {
|
|
173
|
-
mode: 'development' | 'production';
|
|
174
|
-
};
|
|
175
|
-
'sootsim:urlstatechange': null;
|
|
176
|
-
'sootsim:externalAppReady': null;
|
|
177
|
-
'sootsim:externalAppError': null;
|
|
178
|
-
'sootsim:previewReloadRequest': null;
|
|
179
|
-
'sootsim:externalAppReloadStart': {
|
|
180
|
-
entryPath: string;
|
|
181
|
-
};
|
|
182
|
-
'sootsim:bridgeStatusChange': SootsimBridgeStatusDetail;
|
|
183
|
-
'sootsim:hostFocusChange': {
|
|
184
|
-
focused: boolean;
|
|
185
|
-
};
|
|
186
|
-
'sootsim:embed-visibility-change': SootsimEmbedVisibilityDetail;
|
|
187
|
-
'sootsim:hostKey': SootsimHostKeyDetail;
|
|
188
|
-
'sootsim:bundleProgress': {
|
|
189
|
-
percent: number;
|
|
190
|
-
};
|
|
191
|
-
'sootsim:bootStage': {
|
|
192
|
-
stage: SootsimBootStage;
|
|
193
|
-
};
|
|
194
|
-
'sootsim:engineFailure': SootsimEngineFailureDetail;
|
|
195
|
-
'sootsim:uploadActivity': {
|
|
196
|
-
phase: 'uploading' | 'copied' | 'failed' | 'done';
|
|
197
|
-
immediate?: boolean;
|
|
198
|
-
};
|
|
199
|
-
'sootsim:hapticActivity': SootsimHapticActivityDetail;
|
|
200
|
-
'sootsim:statusBarOverride': {
|
|
201
|
-
time?: string | null;
|
|
202
|
-
};
|
|
203
|
-
'sootsim:previewReplayClock': {
|
|
204
|
-
nowMs: number;
|
|
205
|
-
advancing?: boolean;
|
|
206
|
-
};
|
|
207
|
-
'sootsim:menuAnimOverride': {
|
|
208
|
-
value: number | null;
|
|
209
|
-
highlightMoveDuration?: number | null;
|
|
210
|
-
liquidGlass?: {
|
|
211
|
-
light?: Record<string, unknown>;
|
|
212
|
-
dark?: Record<string, unknown>;
|
|
213
|
-
} | null;
|
|
214
|
-
};
|
|
215
|
-
'sootsim:agentAction': SootSimAgentActionDetail;
|
|
216
|
-
'sootsim:hardwareKeyboardInput': SootSimHardwareKeyboardInputDetail;
|
|
217
|
-
'sootsim:bootClients': null;
|
|
218
|
-
'sootsim:plugin-bridge-ready': {
|
|
219
|
-
plugin: string;
|
|
220
|
-
};
|
|
221
|
-
'sootsim:agent-bridge-change': {
|
|
222
|
-
available: boolean;
|
|
223
|
-
};
|
|
224
|
-
'contrast-preview-reload': {
|
|
225
|
-
target?: 'web' | 'ios' | 'android';
|
|
226
|
-
} | null;
|
|
227
|
-
'sootsim:bootMark': SootsimBootMark;
|
|
228
|
-
}
|
|
229
|
-
export type SootsimEventName = keyof SootsimEventMap;
|
|
230
|
-
export declare function dispatchSootsimEvent<K extends SootsimEventName>(name: K, detail: SootsimEventMap[K], target?: EventTarget): void;
|
|
231
|
-
export declare function listenSootsimEvent<K extends SootsimEventName>(name: K, handler: (detail: SootsimEventMap[K]) => void, target?: EventTarget): () => void;
|
|
232
|
-
export interface SootSimChrome {
|
|
233
|
-
shell: boolean;
|
|
234
|
-
headless: boolean;
|
|
235
|
-
electron: boolean;
|
|
236
|
-
engineBase: string | null;
|
|
237
|
-
engineTenantBase: string | null;
|
|
238
|
-
demo: boolean;
|
|
239
|
-
demoGatewayOrigin: string | null;
|
|
240
|
-
preview: boolean;
|
|
241
|
-
}
|
|
242
|
-
type MaybeAsync<T> = T | Promise<T>;
|
|
243
|
-
export interface SootSimTestQueryFilter {
|
|
244
|
-
type?: string;
|
|
245
|
-
hasText?: string;
|
|
246
|
-
hasId?: string;
|
|
247
|
-
idPattern?: string | {
|
|
248
|
-
source: string;
|
|
249
|
-
flags: string;
|
|
250
|
-
matchLastSegment?: boolean;
|
|
251
|
-
};
|
|
252
|
-
hasRole?: string;
|
|
253
|
-
hasLabel?: string;
|
|
254
|
-
hasHint?: string;
|
|
255
|
-
hasState?: Partial<SootSimAccessibilityState>;
|
|
256
|
-
pruneHidden?: boolean;
|
|
257
|
-
}
|
|
258
|
-
export interface SootSimTextCandidatesOptions {
|
|
259
|
-
query: string;
|
|
260
|
-
exact?: boolean;
|
|
261
|
-
role?: string;
|
|
262
|
-
}
|
|
263
|
-
export interface SootSimTextCandidate {
|
|
264
|
-
info: SootSimNodeInfo;
|
|
265
|
-
ancestorTestIDs: string[];
|
|
266
|
-
ancestorPickerColumnIndices: number[];
|
|
267
|
-
}
|
|
268
|
-
export interface SootSimTextCandidatesResult {
|
|
269
|
-
total: number;
|
|
270
|
-
candidates: SootSimTextCandidate[];
|
|
271
|
-
}
|
|
272
|
-
export interface SootSimDumpTreeOptions {
|
|
273
|
-
describe?: boolean;
|
|
274
|
-
verbose?: boolean;
|
|
275
|
-
filter?: string;
|
|
276
|
-
testIdLike?: string;
|
|
277
|
-
onlyGlob?: string;
|
|
278
|
-
subtreeRoot?: string;
|
|
279
|
-
compact?: boolean;
|
|
280
|
-
hideXy?: boolean;
|
|
281
|
-
fullText?: boolean;
|
|
282
|
-
includeOccluded?: boolean;
|
|
283
|
-
format?: 'boxes';
|
|
284
|
-
}
|
|
285
|
-
export interface SootSimInspectPointOptions {
|
|
286
|
-
excludeTestId?: string;
|
|
287
|
-
excludeTestIds?: string[];
|
|
288
|
-
}
|
|
289
|
-
export interface SootSimListInspectableOptions {
|
|
290
|
-
excludeTestIds?: string[];
|
|
291
|
-
}
|
|
292
|
-
export type SootSimInspectNeighborDirection = 'parent' | 'firstChild' | 'prevSibling' | 'nextSibling';
|
|
293
|
-
export type SootSimGestureCallback = 'onBegin' | 'onStart' | 'onUpdate' | 'onEnd' | 'onFinalize';
|
|
294
|
-
export interface SootSimTapPathEntry {
|
|
295
|
-
nodeId?: number;
|
|
296
|
-
type: string;
|
|
297
|
-
testID?: string;
|
|
298
|
-
text?: string;
|
|
299
|
-
}
|
|
300
|
-
export interface SootSimTapRefusal {
|
|
301
|
-
hit: false;
|
|
302
|
-
requestedTargetMatched: false;
|
|
303
|
-
reason: 'target-covered' | 'target-not-found';
|
|
304
|
-
requestedTarget: SootSimReplayTarget;
|
|
305
|
-
coordinateTarget: SootSimReplayTarget | null;
|
|
306
|
-
}
|
|
307
|
-
export interface SootSimTapTargetMatch {
|
|
308
|
-
requestedTargetMatched: true;
|
|
309
|
-
requestedTarget: SootSimReplayTarget;
|
|
310
|
-
coordinateTarget: SootSimReplayTarget;
|
|
311
|
-
}
|
|
312
|
-
export type SootSimTapTargetVerification = SootSimTapTargetMatch | SootSimTapRefusal;
|
|
313
|
-
export interface SootSimNativePresentationInfo {
|
|
314
|
-
evaluationId: string;
|
|
315
|
-
ownerGeneration: number | 'unknown';
|
|
316
|
-
presentationId: number;
|
|
317
|
-
state: 'active' | 'closing' | 'removed';
|
|
318
|
-
requestCompleted: boolean | 'unknown';
|
|
319
|
-
storeRevision: number;
|
|
320
|
-
observedAt: {
|
|
321
|
-
clock: 'performance.now';
|
|
322
|
-
ms: number;
|
|
323
|
-
timeOrigin: number | 'unknown';
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
export interface SootSimTapResult extends Partial<Omit<SootSimTapRefusal, 'hit'>> {
|
|
327
|
-
hit: boolean;
|
|
328
|
-
presentationAtDown?: SootSimNativePresentationInfo;
|
|
329
|
-
presentationAtUp?: SootSimNativePresentationInfo;
|
|
330
|
-
type?: string;
|
|
331
|
-
testID?: string;
|
|
332
|
-
isTextInput?: boolean;
|
|
333
|
-
keyboardOpened?: boolean;
|
|
334
|
-
text?: string;
|
|
335
|
-
responderTestID?: string;
|
|
336
|
-
responderType?: string;
|
|
337
|
-
path?: SootSimTapPathEntry[];
|
|
338
|
-
directTapHandled?: boolean;
|
|
339
|
-
pointerTapHandled?: boolean;
|
|
340
|
-
}
|
|
341
|
-
export type SootSimTapTargetStrategy = 'matched-node' | 'actionable-ancestor' | 'actionable-descendant';
|
|
342
|
-
export interface SootSimTapTargetInfo {
|
|
343
|
-
match: SootSimNodeInfo;
|
|
344
|
-
target: SootSimNodeInfo;
|
|
345
|
-
cx: number;
|
|
346
|
-
cy: number;
|
|
347
|
-
strategy: SootSimTapTargetStrategy;
|
|
348
|
-
viewport: {
|
|
349
|
-
width: number;
|
|
350
|
-
height: number;
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
export interface SootSimRouteInfo {
|
|
354
|
-
routeNames: string[];
|
|
355
|
-
currentPath: string | null;
|
|
356
|
-
coveringPath: string | null;
|
|
357
|
-
canGoBack: boolean;
|
|
358
|
-
rootState: unknown;
|
|
359
|
-
}
|
|
360
|
-
export interface SootSimUndeclaredScreen {
|
|
361
|
-
navigator: string;
|
|
362
|
-
screen: string;
|
|
363
|
-
declared: string[];
|
|
364
|
-
settledMs: number;
|
|
365
|
-
}
|
|
366
|
-
export interface SootSimScrollToResult {
|
|
367
|
-
ok: boolean;
|
|
368
|
-
via?: string;
|
|
369
|
-
reason?: string;
|
|
370
|
-
}
|
|
371
|
-
export interface SootSimCursorState {
|
|
372
|
-
nodeId: number;
|
|
373
|
-
position: number;
|
|
374
|
-
opacity: number;
|
|
375
|
-
visible: boolean;
|
|
376
|
-
captureActive: boolean;
|
|
377
|
-
rect?: {
|
|
378
|
-
x: number;
|
|
379
|
-
y: number;
|
|
380
|
-
width: number;
|
|
381
|
-
height: number;
|
|
382
|
-
} | null;
|
|
383
|
-
}
|
|
384
|
-
export interface SootSimLoupeState {
|
|
385
|
-
x: number;
|
|
386
|
-
y: number;
|
|
387
|
-
active: boolean;
|
|
388
|
-
}
|
|
389
|
-
export interface SootSimEditMenuRect {
|
|
390
|
-
x: number;
|
|
391
|
-
y: number;
|
|
392
|
-
width: number;
|
|
393
|
-
height: number;
|
|
394
|
-
}
|
|
395
|
-
export interface SootSimEditMenuItem {
|
|
396
|
-
action: string;
|
|
397
|
-
label: string;
|
|
398
|
-
}
|
|
399
|
-
export interface SootSimEditMenuState {
|
|
400
|
-
items: SootSimEditMenuItem[];
|
|
401
|
-
anchor: SootSimEditMenuRect;
|
|
402
|
-
barRect: SootSimEditMenuRect | null;
|
|
403
|
-
itemRects: Array<SootSimEditMenuRect & {
|
|
404
|
-
action: string;
|
|
405
|
-
}>;
|
|
406
|
-
}
|
|
407
|
-
export interface SootSimTextSelection {
|
|
408
|
-
start: number | null;
|
|
409
|
-
end: number | null;
|
|
410
|
-
}
|
|
411
|
-
export interface SootSimTextSelectionHandles {
|
|
412
|
-
start: {
|
|
413
|
-
x: number;
|
|
414
|
-
y: number;
|
|
415
|
-
} | null;
|
|
416
|
-
end: {
|
|
417
|
-
x: number;
|
|
418
|
-
y: number;
|
|
419
|
-
} | null;
|
|
420
|
-
}
|
|
421
|
-
export interface SootSimRequestEntry {
|
|
422
|
-
kind: 'fetch';
|
|
423
|
-
runtime: 'window' | 'worker';
|
|
424
|
-
method: string;
|
|
425
|
-
url: string;
|
|
426
|
-
displayUrl: string;
|
|
427
|
-
timestamp: number;
|
|
428
|
-
ok: boolean;
|
|
429
|
-
status: number | null;
|
|
430
|
-
statusText: string | null;
|
|
431
|
-
error: string | null;
|
|
432
|
-
responseBody: string | null;
|
|
433
|
-
requestBody?: string | null;
|
|
434
|
-
}
|
|
435
|
-
export interface SootSimRequestCounts {
|
|
436
|
-
total: number;
|
|
437
|
-
failed: number;
|
|
438
|
-
inFlight: number;
|
|
439
|
-
}
|
|
440
|
-
export type SootSimAnimationSource = 'value' | 'engine' | 'native' | 'reanimated';
|
|
441
|
-
export interface SootSimAnimationInfo {
|
|
442
|
-
id: number;
|
|
443
|
-
kind: 'timing' | 'spring' | 'linearLoop' | 'program' | 'formSheetSettle' | 'timed' | 'interpolate' | 'native' | 'reanimated';
|
|
444
|
-
source: SootSimAnimationSource;
|
|
445
|
-
realm: 'tenant' | 'shell';
|
|
446
|
-
from?: number;
|
|
447
|
-
to?: number;
|
|
448
|
-
current: number | null;
|
|
449
|
-
animatedValue: number | null;
|
|
450
|
-
startedAt?: number;
|
|
451
|
-
elapsedMs: number;
|
|
452
|
-
progress?: number;
|
|
453
|
-
duration?: number;
|
|
454
|
-
easing?: string;
|
|
455
|
-
stiffness?: number;
|
|
456
|
-
damping?: number;
|
|
457
|
-
mass?: number;
|
|
458
|
-
velocity?: number;
|
|
459
|
-
loop?: boolean;
|
|
460
|
-
layoutBound?: boolean;
|
|
461
|
-
listenerCount: number;
|
|
462
|
-
graphBacked?: boolean;
|
|
463
|
-
remoteDriven?: boolean;
|
|
464
|
-
priority?: string;
|
|
465
|
-
visible?: boolean;
|
|
466
|
-
}
|
|
467
|
-
export interface SootSimAnimationTraceSample {
|
|
468
|
-
t: number;
|
|
469
|
-
value: number;
|
|
470
|
-
velocity: number;
|
|
471
|
-
}
|
|
472
|
-
export interface SootSimAnimationTraceStatus {
|
|
473
|
-
id: number;
|
|
474
|
-
count: number;
|
|
475
|
-
limit: number;
|
|
476
|
-
}
|
|
477
|
-
export interface SootSimRuntimeState {
|
|
478
|
-
url: string;
|
|
479
|
-
hidden: boolean;
|
|
480
|
-
nodeCount: number;
|
|
481
|
-
animations: {
|
|
482
|
-
active: number;
|
|
483
|
-
byKind: {
|
|
484
|
-
timing: number;
|
|
485
|
-
spring: number;
|
|
486
|
-
};
|
|
487
|
-
};
|
|
488
|
-
keyboard: {
|
|
489
|
-
visible: boolean;
|
|
490
|
-
mode: string | null;
|
|
491
|
-
};
|
|
492
|
-
diagnostics: {
|
|
493
|
-
errors: number;
|
|
494
|
-
warnings: number;
|
|
495
|
-
failedRequests: number;
|
|
496
|
-
totalRequests: number;
|
|
497
|
-
};
|
|
498
|
-
shell?: Record<string, unknown> | null;
|
|
499
|
-
}
|
|
500
|
-
export interface SootSimScreenTransitionWaitOptions {
|
|
501
|
-
timeoutMs?: number;
|
|
502
|
-
settleMs?: number;
|
|
503
|
-
startWindowMs?: number;
|
|
504
|
-
}
|
|
505
|
-
export interface SootSimScreenTransitionWaitResult {
|
|
506
|
-
started: boolean;
|
|
507
|
-
settled: boolean;
|
|
508
|
-
timedOut: boolean;
|
|
509
|
-
activeCount: number;
|
|
510
|
-
peakActiveCount: number;
|
|
511
|
-
waitedMs: number;
|
|
512
|
-
restedMs: number;
|
|
513
|
-
}
|
|
514
|
-
export interface SootSimInspectDeviceInfo {
|
|
515
|
-
platform: 'ios' | 'android';
|
|
516
|
-
model: string;
|
|
517
|
-
name: string;
|
|
518
|
-
width: number;
|
|
519
|
-
height: number;
|
|
520
|
-
scale: number;
|
|
521
|
-
statusBarHeight?: number;
|
|
522
|
-
cornerRadius?: number;
|
|
523
|
-
dynamicIsland?: {
|
|
524
|
-
width: number;
|
|
525
|
-
height: number;
|
|
526
|
-
top: number;
|
|
527
|
-
} | null;
|
|
528
|
-
osVersion: string;
|
|
529
|
-
iosVersion: string;
|
|
530
|
-
androidApiLevel?: number | null;
|
|
531
|
-
}
|
|
532
|
-
export interface SootSimInspectAncestor {
|
|
533
|
-
nodeId?: number;
|
|
534
|
-
type: string;
|
|
535
|
-
text?: string;
|
|
536
|
-
componentName?: string;
|
|
537
|
-
id?: string;
|
|
538
|
-
testID?: string;
|
|
539
|
-
testId?: string;
|
|
540
|
-
role?: string;
|
|
541
|
-
label?: string;
|
|
542
|
-
accessibilityLabel?: string;
|
|
543
|
-
screenId?: string;
|
|
544
|
-
srcloc?: string;
|
|
545
|
-
sourceFile?: string;
|
|
546
|
-
}
|
|
547
|
-
export interface SootSimInspectBoxModel {
|
|
548
|
-
margin: {
|
|
549
|
-
top: number;
|
|
550
|
-
right: number;
|
|
551
|
-
bottom: number;
|
|
552
|
-
left: number;
|
|
553
|
-
};
|
|
554
|
-
border: {
|
|
555
|
-
top: number;
|
|
556
|
-
right: number;
|
|
557
|
-
bottom: number;
|
|
558
|
-
left: number;
|
|
559
|
-
};
|
|
560
|
-
padding: {
|
|
561
|
-
top: number;
|
|
562
|
-
right: number;
|
|
563
|
-
bottom: number;
|
|
564
|
-
left: number;
|
|
565
|
-
};
|
|
566
|
-
content: {
|
|
567
|
-
width: number;
|
|
568
|
-
height: number;
|
|
569
|
-
};
|
|
570
|
-
}
|
|
571
|
-
export interface SootSimInspectImageSource {
|
|
572
|
-
kind: 'uri' | 'metro-asset' | 'module-default';
|
|
573
|
-
assetId?: number;
|
|
574
|
-
uri?: string;
|
|
575
|
-
assetPath?: string;
|
|
576
|
-
assetFile?: string;
|
|
577
|
-
modulePath?: string;
|
|
578
|
-
width?: number;
|
|
579
|
-
height?: number;
|
|
580
|
-
scale?: number;
|
|
581
|
-
}
|
|
582
|
-
export type SootSimInspectHookKind = 'state' | 'reducer' | 'effect' | 'layoutEffect' | 'insertionEffect' | 'memo' | 'callback' | 'ref' | 'context' | 'other';
|
|
583
|
-
export interface SootSimInspectHookSummary {
|
|
584
|
-
total: number;
|
|
585
|
-
counts: Partial<Record<SootSimInspectHookKind, number>>;
|
|
586
|
-
}
|
|
587
|
-
export type SootSimInspectCommitCause = 'mount' | 'props' | 'state' | 'context' | 'parent';
|
|
588
|
-
export interface SootSimInspectLastCommit {
|
|
589
|
-
ageMs: number;
|
|
590
|
-
causes: SootSimInspectCommitCause[];
|
|
591
|
-
propDiffs?: string[];
|
|
592
|
-
stateChanged?: boolean;
|
|
593
|
-
actualDurationMs?: number;
|
|
594
|
-
}
|
|
595
|
-
export interface SootSimInspectReactInfo {
|
|
596
|
-
component?: string;
|
|
597
|
-
owners?: string[];
|
|
598
|
-
source?: string;
|
|
599
|
-
key?: string;
|
|
600
|
-
hasRef?: boolean;
|
|
601
|
-
hooks?: SootSimInspectHookSummary;
|
|
602
|
-
contexts?: string[];
|
|
603
|
-
lastCommit?: SootSimInspectLastCommit;
|
|
604
|
-
}
|
|
605
|
-
export interface SootSimInspectNavigationInfo {
|
|
606
|
-
appId?: string;
|
|
607
|
-
appName?: string;
|
|
608
|
-
screenId?: string;
|
|
609
|
-
routeName?: string;
|
|
610
|
-
routePath?: string;
|
|
611
|
-
params?: Record<string, unknown>;
|
|
612
|
-
stackDepth?: number;
|
|
613
|
-
stackTrail?: string[];
|
|
614
|
-
presentation?: string;
|
|
615
|
-
}
|
|
616
|
-
export interface SootSimInspectTimelineEntry {
|
|
617
|
-
ageMs: number;
|
|
618
|
-
kind: string;
|
|
619
|
-
context: 'host' | 'shell' | 'tenant';
|
|
620
|
-
label?: string;
|
|
621
|
-
}
|
|
622
|
-
export interface SootSimInspectTreeNode {
|
|
623
|
-
nodeId: number;
|
|
624
|
-
parentId: number | null;
|
|
625
|
-
type: string;
|
|
626
|
-
components?: string[];
|
|
627
|
-
testID?: string;
|
|
628
|
-
label?: string;
|
|
629
|
-
text?: string;
|
|
630
|
-
width: number;
|
|
631
|
-
height: number;
|
|
632
|
-
pressable?: boolean;
|
|
633
|
-
hidden?: boolean;
|
|
634
|
-
}
|
|
635
|
-
export interface SootSimInspectInfo {
|
|
636
|
-
nodeId: number;
|
|
637
|
-
sessionId?: string;
|
|
638
|
-
type: string;
|
|
639
|
-
componentName?: string;
|
|
640
|
-
componentStack?: string[];
|
|
641
|
-
id?: string;
|
|
642
|
-
testID?: string;
|
|
643
|
-
testId?: string;
|
|
644
|
-
role?: string;
|
|
645
|
-
label?: string;
|
|
646
|
-
accessibilityLabel?: string;
|
|
647
|
-
accessibilityHidden?: true;
|
|
648
|
-
readsFirst?: true;
|
|
649
|
-
accessibilityContainer?: true;
|
|
650
|
-
accessibilityFrame?: SootSimInspectInfo['absolute'];
|
|
651
|
-
screenId?: string;
|
|
652
|
-
hint?: string;
|
|
653
|
-
text?: string;
|
|
654
|
-
layout: {
|
|
655
|
-
x: number;
|
|
656
|
-
y: number;
|
|
657
|
-
width: number;
|
|
658
|
-
height: number;
|
|
659
|
-
};
|
|
660
|
-
absolute: {
|
|
661
|
-
x: number;
|
|
662
|
-
y: number;
|
|
663
|
-
width: number;
|
|
664
|
-
height: number;
|
|
665
|
-
};
|
|
666
|
-
backgroundPlayback?: true;
|
|
667
|
-
visibleFrame?: SootSimVisibleFrame | null;
|
|
668
|
-
handlers: string[];
|
|
669
|
-
style: Record<string, unknown>;
|
|
670
|
-
authoredStyle: Record<string, unknown>;
|
|
671
|
-
computedStyle: Record<string, unknown>;
|
|
672
|
-
boxModel: SootSimInspectBoxModel;
|
|
673
|
-
parentId?: number;
|
|
674
|
-
prevSiblingId?: number;
|
|
675
|
-
nextSiblingId?: number;
|
|
676
|
-
firstChildId?: number;
|
|
677
|
-
ancestors: SootSimInspectAncestor[];
|
|
678
|
-
appName?: string;
|
|
679
|
-
appearanceScheme?: string;
|
|
680
|
-
device?: SootSimInspectDeviceInfo;
|
|
681
|
-
srcloc?: string;
|
|
682
|
-
sourceFile?: string;
|
|
683
|
-
sourceChain?: string[];
|
|
684
|
-
imageSource?: SootSimInspectImageSource;
|
|
685
|
-
react?: SootSimInspectReactInfo;
|
|
686
|
-
navigation?: SootSimInspectNavigationInfo;
|
|
687
|
-
timeline?: SootSimInspectTimelineEntry[];
|
|
688
|
-
}
|
|
689
|
-
export type PeachSemanticInspectInfo = Pick<SootSimInspectInfo, 'nodeId' | 'type' | 'testID' | 'testId' | 'id' | 'text' | 'role' | 'accessibilityLabel' | 'label' | 'handlers' | 'accessibilityHidden' | 'absolute' | 'parentId' | 'readsFirst'> & {
|
|
690
|
-
ancestors: Array<Pick<SootSimInspectAncestor, 'nodeId'>>;
|
|
691
|
-
};
|
|
692
|
-
export interface PointerDispatchOptions {
|
|
693
|
-
sourceEvent?: PointerSourceEvent;
|
|
694
|
-
altKey?: boolean;
|
|
695
|
-
shiftKey?: boolean;
|
|
696
|
-
pointerType?: string;
|
|
697
|
-
stylusData?: {
|
|
698
|
-
tiltX: number;
|
|
699
|
-
tiltY: number;
|
|
700
|
-
altitudeAngle: number;
|
|
701
|
-
azimuthAngle: number;
|
|
702
|
-
pressure: number;
|
|
703
|
-
};
|
|
704
|
-
timestamp?: number;
|
|
705
|
-
nativeWindowRoot?: number;
|
|
706
|
-
}
|
|
707
|
-
export interface PeachAccessibilityNode {
|
|
708
|
-
platform: SootSimInspectDeviceInfo['platform'];
|
|
709
|
-
elementId: string;
|
|
710
|
-
nodeId: number;
|
|
711
|
-
type: string;
|
|
712
|
-
testID: string | null;
|
|
713
|
-
label: string | null;
|
|
714
|
-
hint: string | null;
|
|
715
|
-
inputLabels?: string[] | null;
|
|
716
|
-
traits?: string[];
|
|
717
|
-
value: string | null;
|
|
718
|
-
placeholder: string | null;
|
|
719
|
-
role: string;
|
|
720
|
-
isAccessibilityElement: boolean;
|
|
721
|
-
enabled: boolean;
|
|
722
|
-
selected: boolean;
|
|
723
|
-
checked: boolean;
|
|
724
|
-
clickable: boolean;
|
|
725
|
-
isTextInput: boolean;
|
|
726
|
-
state: SootSimAccessibilityState | null;
|
|
727
|
-
accessibilityValue: SootSimAccessibilityValue | null;
|
|
728
|
-
hasFocus?: boolean;
|
|
729
|
-
frame: {
|
|
730
|
-
x: number;
|
|
731
|
-
y: number;
|
|
732
|
-
width: number;
|
|
733
|
-
height: number;
|
|
734
|
-
};
|
|
735
|
-
children: PeachAccessibilityNode[];
|
|
736
|
-
}
|
|
737
|
-
export type PeachSwiftUiAccessibility = Pick<PeachAccessibilityNode, 'testID' | 'role'> & Required<Pick<PeachAccessibilityNode, 'inputLabels' | 'traits'>>;
|
|
738
|
-
export type PeachDebugSnapshotOperation = 'snapshot' | 'snapshots' | 'diff' | 'clearSnapshots';
|
|
739
|
-
export interface SootSimTargetMatcher {
|
|
740
|
-
type: 'id' | 'text' | 'label' | 'type' | 'role';
|
|
741
|
-
value: string;
|
|
742
|
-
regexFlags?: string;
|
|
743
|
-
index?: number;
|
|
744
|
-
}
|
|
745
|
-
export interface SootSimTargetObservation extends SootSimNodeInfo {
|
|
746
|
-
tapPoint: {
|
|
747
|
-
x: number;
|
|
748
|
-
y: number;
|
|
749
|
-
} | null;
|
|
750
|
-
sampledAt: number;
|
|
751
|
-
}
|
|
752
|
-
export interface PeachPeerStatsProgress {
|
|
753
|
-
tenant: 'pending' | 'replied' | 'null' | 'rejected';
|
|
754
|
-
shell: 'pending' | 'replied' | 'null' | 'rejected' | 'absent';
|
|
755
|
-
}
|
|
756
|
-
export interface PeachPeerStats {
|
|
757
|
-
replayedFrameCallbacks: number;
|
|
758
|
-
nativeFrameFirstTimestampMs: number | null;
|
|
759
|
-
writeRequests: number;
|
|
760
|
-
batchesSent: number;
|
|
761
|
-
pendingRunWorklets?: number;
|
|
762
|
-
runWorkletsIdleMs: number | null;
|
|
763
|
-
runWorkletsSent?: number;
|
|
764
|
-
runWorkletsDone?: number;
|
|
765
|
-
runWorkletsFailed?: number;
|
|
766
|
-
closureCacheHits?: number;
|
|
767
|
-
closureCacheMisses?: number;
|
|
768
|
-
}
|
|
769
|
-
export interface SootSimTestBridge {
|
|
770
|
-
resolveViewTags?(tags: readonly number[]): MaybeAsync<Record<number, {
|
|
771
|
-
component: string | null;
|
|
772
|
-
sourceChain?: string[];
|
|
773
|
-
}>>;
|
|
774
|
-
dispatchTextInputText?(text: string, nodeId: number): MaybeAsync<GuardedTextInputResult>;
|
|
775
|
-
captureAccessibilityTree(): MaybeAsync<PeachAccessibilityNode[]>;
|
|
776
|
-
startScrollPerformanceTrace(limit?: number): MaybeAsync<void>;
|
|
777
|
-
stopScrollPerformanceTrace(): MaybeAsync<SootSimScrollOffsetSample[]>;
|
|
778
|
-
setShellReanimatedTraceEnabled?(enabled: boolean, reset?: boolean, limit?: number): MaybeAsync<boolean>;
|
|
779
|
-
getShellReanimatedTrace?(reset?: boolean): MaybeAsync<unknown[]>;
|
|
780
|
-
findById(id: string): MaybeAsync<SootSimNodeInfo | null>;
|
|
781
|
-
findByTestId(testId: string): MaybeAsync<SootSimNodeInfo | null>;
|
|
782
|
-
ancestorChainById(id: string): MaybeAsync<SootSimNodeInfo[] | null>;
|
|
783
|
-
ancestorChainByTestId(testId: string): MaybeAsync<SootSimNodeInfo[] | null>;
|
|
784
|
-
findByText(text: string): MaybeAsync<SootSimNodeInfo | null>;
|
|
785
|
-
findByTextOrLabel(text: string): MaybeAsync<SootSimNodeInfo | null>;
|
|
786
|
-
queryMatchingNodes(matcher: SootSimTargetMatcher): MaybeAsync<SootSimNodeInfo[]>;
|
|
787
|
-
observeTapTarget(matcher: SootSimTargetMatcher): MaybeAsync<SootSimTargetObservation | null>;
|
|
788
|
-
resolveTapTarget(nodeId: number): MaybeAsync<SootSimTapTargetInfo | null>;
|
|
789
|
-
verifyTapTargetAt(x: number, y: number, target: SootSimReplayTarget, nativeWindowRoot?: number): MaybeAsync<SootSimTapTargetVerification>;
|
|
790
|
-
debugByText(text: string): MaybeAsync<SootSimDebugNodeInfo[] | null>;
|
|
791
|
-
debugByTestId(testId: string): MaybeAsync<SootSimDebugNodeInfo[] | null>;
|
|
792
|
-
findByLabel(label: string): MaybeAsync<SootSimNodeInfo | null>;
|
|
793
|
-
findByRole(role: string): MaybeAsync<SootSimNodeInfo | null>;
|
|
794
|
-
findAllByRole(role: string): MaybeAsync<SootSimNodeInfo[]>;
|
|
795
|
-
findByA11yState(state: Partial<SootSimAccessibilityState>): MaybeAsync<SootSimNodeInfo | null>;
|
|
796
|
-
findAllByA11yState(state: Partial<SootSimAccessibilityState>): MaybeAsync<SootSimNodeInfo[]>;
|
|
797
|
-
findByHint(hint: string): MaybeAsync<SootSimNodeInfo | null>;
|
|
798
|
-
inspectAt(x: number, y: number, opts?: SootSimInspectPointOptions): MaybeAsync<SootSimInspectInfo | null>;
|
|
799
|
-
inspectHoverAt(x: number, y: number, opts?: SootSimInspectPointOptions): MaybeAsync<SootSimInspectInfo | null>;
|
|
800
|
-
inspectByNodeId(nodeId: number): MaybeAsync<SootSimInspectInfo | null>;
|
|
801
|
-
inspectLastTap(): MaybeAsync<SootSimInspectInfo | null>;
|
|
802
|
-
inspectNeighbor(nodeId: number, direction: SootSimInspectNeighborDirection): MaybeAsync<SootSimInspectInfo | null>;
|
|
803
|
-
inspectSetStyleOverride(nodeId: number, key: string, value: unknown): MaybeAsync<boolean>;
|
|
804
|
-
inspectSetHandlerLogging(nodeId: number, handlerName: string, enabled: boolean): MaybeAsync<boolean>;
|
|
805
|
-
listInspectable(opts?: SootSimListInspectableOptions): MaybeAsync<SootSimInspectInfo[]>;
|
|
806
|
-
listSemanticInspectable(opts?: SootSimListInspectableOptions): MaybeAsync<PeachSemanticInspectInfo[]>;
|
|
807
|
-
inspectTree(): MaybeAsync<SootSimInspectTreeNode[] | null>;
|
|
808
|
-
captureRenderTree?(): MaybeAsync<SootSimRenderTreeSnapshot>;
|
|
809
|
-
beginCaptureTransaction?(): MaybeAsync<SootSimCaptureTransactionReceipt>;
|
|
810
|
-
endCaptureTransaction?(token: number): MaybeAsync<SootSimCaptureTransactionReceipt>;
|
|
811
|
-
captureBoundLongPress?(token: number, x: number, y: number, durationMs?: number, nativeWindowRoot?: number): MaybeAsync<SootSimCaptureBoundLongPressReceipt>;
|
|
812
|
-
captureBoundTap?(token: number, x: number, y: number, nativeWindowRoot?: number): MaybeAsync<SootSimCaptureBoundTapReceipt>;
|
|
813
|
-
debugHitAt(x: number, y: number): MaybeAsync<SootSimDebugNodeInfo[] | null>;
|
|
814
|
-
debugGestureAt(x: number, y: number): MaybeAsync<Record<string, unknown> | null>;
|
|
815
|
-
invokeGestureAt(x: number, y: number, gestureType: string, callback: SootSimGestureCallback): MaybeAsync<boolean>;
|
|
816
|
-
findPressable(): MaybeAsync<SootSimNodeInfo[]>;
|
|
817
|
-
getStyle(id: string): MaybeAsync<Record<string, unknown> | null>;
|
|
818
|
-
getLayout(id: string): MaybeAsync<SootSimLayout | null>;
|
|
819
|
-
getAbsolutePosition(id: string): MaybeAsync<{
|
|
820
|
-
x: number;
|
|
821
|
-
y: number;
|
|
822
|
-
} | null>;
|
|
823
|
-
isVisible(id: string): MaybeAsync<boolean>;
|
|
824
|
-
blurFocusedTextInput(): MaybeAsync<boolean>;
|
|
825
|
-
isTextInputFocused(): MaybeAsync<boolean>;
|
|
826
|
-
getFocusedNode(): MaybeAsync<SootSimFocusedNodeInfo | null>;
|
|
827
|
-
getNodeCount(): MaybeAsync<number>;
|
|
828
|
-
getWindowNodeCount(): MaybeAsync<number>;
|
|
829
|
-
getTreeQuietMs(): MaybeAsync<number>;
|
|
830
|
-
getNodeCountAndQuietMs(): MaybeAsync<{
|
|
831
|
-
count: number;
|
|
832
|
-
quietMs: number;
|
|
833
|
-
}>;
|
|
834
|
-
getGeometryRevision(): MaybeAsync<string | null>;
|
|
835
|
-
getCullStats?(reset?: boolean): MaybeAsync<{
|
|
836
|
-
examined: number;
|
|
837
|
-
kept: number;
|
|
838
|
-
skipped: number;
|
|
839
|
-
}>;
|
|
840
|
-
getImageLoaderStats?(reset?: boolean): MaybeAsync<Record<string, unknown>>;
|
|
841
|
-
getFontDebug?(family?: string, fontWeight?: unknown): MaybeAsync<Record<string, unknown>>;
|
|
842
|
-
getIncrementalYogaVerifier?(): MaybeAsync<{
|
|
843
|
-
enabled: boolean;
|
|
844
|
-
runs: number;
|
|
845
|
-
comparedNodes: number;
|
|
846
|
-
diverged: number;
|
|
847
|
-
lastRootId: number | null;
|
|
848
|
-
lastComparedNodes: number;
|
|
849
|
-
lastDivergences: number;
|
|
850
|
-
lastDiffs: string[];
|
|
851
|
-
}>;
|
|
852
|
-
getPeerStats?(reset?: boolean): PeachPeerStats | null | (Promise<PeachPeerStats | null> & {
|
|
853
|
-
peachPeerProgress?: PeachPeerStatsProgress;
|
|
854
|
-
});
|
|
855
|
-
getWorkletSlotStats?(): MaybeAsync<{
|
|
856
|
-
role: 'tenant' | 'shell' | 'host';
|
|
857
|
-
capacity: number;
|
|
858
|
-
nextId: number;
|
|
859
|
-
freeSlots: number;
|
|
860
|
-
freedSlots: number;
|
|
861
|
-
nextObjectId: number;
|
|
862
|
-
freeObjectSlots: number;
|
|
863
|
-
freedObjectSlots: number;
|
|
864
|
-
primitiveAllocs: number;
|
|
865
|
-
objectAllocs: number;
|
|
866
|
-
reusedAllocs: number;
|
|
867
|
-
frees: number;
|
|
868
|
-
listenerSlots: number;
|
|
869
|
-
objectListenerSlots: number;
|
|
870
|
-
objectSlots: number;
|
|
871
|
-
pendingPrimitiveUpdates: number;
|
|
872
|
-
pendingObjectUpdates: number;
|
|
873
|
-
runJSCallbackSent: number;
|
|
874
|
-
runJSCallbackReceived: number;
|
|
875
|
-
runJSCallbackMissing: number;
|
|
876
|
-
eventHandlers: number;
|
|
877
|
-
hasPeer: boolean;
|
|
878
|
-
eventHandlerNames: Array<[string, number]>;
|
|
879
|
-
remoteEventHandlers: number;
|
|
880
|
-
keyboardHandlers: number;
|
|
881
|
-
} | null>;
|
|
882
|
-
queryAll(filter: SootSimTestQueryFilter): MaybeAsync<SootSimNodeInfo[]>;
|
|
883
|
-
queryTextCandidates(opts: SootSimTextCandidatesOptions): MaybeAsync<SootSimTextCandidatesResult>;
|
|
884
|
-
dumpTree(maxDepth?: number, opts?: SootSimDumpTreeOptions): MaybeAsync<string>;
|
|
885
|
-
dumpAccessibilityTree(maxDepth?: number): MaybeAsync<string>;
|
|
886
|
-
debugFind(target: 'sheets' | 'portals' | 'boundaries'): MaybeAsync<unknown>;
|
|
887
|
-
debugSnapshot(operation: PeachDebugSnapshotOperation, labels: string[], target: 'tenant' | 'shell'): MaybeAsync<unknown>;
|
|
888
|
-
waitForTree(): Promise<void>;
|
|
889
|
-
waitForScreenTransitions?(opts?: SootSimScreenTransitionWaitOptions): Promise<SootSimScreenTransitionWaitResult>;
|
|
890
|
-
activatePressAt(x: number, y: number, nodeId?: number): MaybeAsync<Record<string, unknown> | null>;
|
|
891
|
-
activatePressByText(text: string): MaybeAsync<Record<string, unknown> | null>;
|
|
892
|
-
activatePressById(id: string): MaybeAsync<Record<string, unknown> | null>;
|
|
893
|
-
getRequests(limit?: number): MaybeAsync<SootSimRequestEntry[]>;
|
|
894
|
-
getFailedRequests(limit?: number): MaybeAsync<SootSimRequestEntry[]>;
|
|
895
|
-
getRequestCounts(): MaybeAsync<SootSimRequestCounts>;
|
|
896
|
-
clearRequests(): MaybeAsync<void>;
|
|
897
|
-
listAnimations(): MaybeAsync<SootSimAnimationInfo[]>;
|
|
898
|
-
getAnimation(id: number): MaybeAsync<SootSimAnimationInfo | null>;
|
|
899
|
-
stopAnimation(target: number | 'all'): MaybeAsync<number>;
|
|
900
|
-
enableAnimationTrace(target: number | 'all', limit?: number): MaybeAsync<void>;
|
|
901
|
-
disableAnimationTrace(target: number | 'all'): MaybeAsync<void>;
|
|
902
|
-
getAnimationTrace(id: number, limit?: number): MaybeAsync<SootSimAnimationTraceSample[]>;
|
|
903
|
-
listAnimationTraces(): MaybeAsync<SootSimAnimationTraceStatus[]>;
|
|
904
|
-
getRuntimeState(): MaybeAsync<SootSimRuntimeState>;
|
|
905
|
-
getExternalAppState?(): MaybeAsync<Record<string, unknown> | null>;
|
|
906
|
-
scrollToTop(x: number): MaybeAsync<boolean>;
|
|
907
|
-
getScrollState(id: string): MaybeAsync<Record<string, unknown> | null>;
|
|
908
|
-
getScrollStateAt(x: number, y: number): MaybeAsync<Record<string, unknown> | null>;
|
|
909
|
-
getCursorState(): MaybeAsync<SootSimCursorState | null>;
|
|
910
|
-
setCursorCaptureActive(active: boolean): MaybeAsync<void>;
|
|
911
|
-
getLoupeState(): MaybeAsync<SootSimLoupeState>;
|
|
912
|
-
getEditMenuState(): MaybeAsync<SootSimEditMenuState | null>;
|
|
913
|
-
getTextSelection(id: string): MaybeAsync<SootSimTextSelection | null>;
|
|
914
|
-
getTextSelectionHandles(id: string): MaybeAsync<SootSimTextSelectionHandles | null>;
|
|
915
|
-
getTextInputDisplayText(id: string): MaybeAsync<string | null>;
|
|
916
|
-
getTextInputValue(id: string): MaybeAsync<string | null>;
|
|
917
|
-
getTextInputDisplayColor(id: string): MaybeAsync<string | null>;
|
|
918
|
-
getImageState(nodeId: number): MaybeAsync<Record<string, unknown> | null>;
|
|
919
|
-
scrollTo(target: string | number | {
|
|
920
|
-
id?: string;
|
|
921
|
-
nodeId?: number;
|
|
922
|
-
}, x: number, y: number, animated?: boolean): MaybeAsync<SootSimScrollToResult>;
|
|
923
|
-
workerDebugState(): MaybeAsync<Record<string, unknown>>;
|
|
924
|
-
screenshot(): Promise<string>;
|
|
925
|
-
tap?(x: number, y: number, target?: SootSimReplayTarget): MaybeAsync<SootSimTapResult>;
|
|
926
|
-
longPress?(x: number, y: number, durationMs?: number, nativeWindowRoot?: number): MaybeAsync<boolean>;
|
|
927
|
-
captureBoundLongPress?(token: number, x: number, y: number, durationMs?: number, nativeWindowRoot?: number): MaybeAsync<SootSimCaptureBoundLongPressReceipt>;
|
|
928
|
-
captureBoundTap?(token: number, x: number, y: number, nativeWindowRoot?: number): MaybeAsync<SootSimCaptureBoundTapReceipt>;
|
|
929
|
-
drag?(fromX: number, fromY: number, toX: number, toY: number, steps?: number, stepMs?: number): MaybeAsync<boolean>;
|
|
930
|
-
pinch?(fromX1: number, fromY1: number, fromX2: number, fromY2: number, toX1: number, toY1: number, toX2: number, toY2: number, steps?: number, stepMs?: number): MaybeAsync<boolean>;
|
|
931
|
-
longPress?(x: number, y: number, durationMs?: number, nativeWindowRoot?: number): MaybeAsync<boolean>;
|
|
932
|
-
touchDown?(x: number, y: number, pointerId?: number, nativeWindowRoot?: number, timestamp?: number): MaybeAsync<boolean>;
|
|
933
|
-
touchMove?(x: number, y: number, pointerId?: number, nativeWindowRoot?: number, timestamp?: number): MaybeAsync<boolean>;
|
|
934
|
-
touchUp?(x: number, y: number, pointerId?: number, nativeWindowRoot?: number, timestamp?: number): MaybeAsync<boolean>;
|
|
935
|
-
touchCancel?(pointerId?: number, timestamp?: number): MaybeAsync<boolean>;
|
|
936
|
-
settleInteractionRelease?(): MaybeAsync<void>;
|
|
937
|
-
openDeepLink(url: string): MaybeAsync<{
|
|
938
|
-
ok: boolean;
|
|
939
|
-
error?: string;
|
|
940
|
-
}>;
|
|
941
|
-
getRouteInfo?(): MaybeAsync<SootSimRouteInfo>;
|
|
942
|
-
undeclaredScreen?(href: string): MaybeAsync<SootSimUndeclaredScreen | null>;
|
|
943
|
-
pushRoute?(href: string): MaybeAsync<boolean>;
|
|
944
|
-
replaceRoute?(href: string): MaybeAsync<boolean>;
|
|
945
|
-
goBackRoute?(): MaybeAsync<boolean>;
|
|
946
|
-
getFocusKeyboardSnapshot?(): MaybeAsync<Record<string, unknown> | null>;
|
|
947
|
-
getScrollSnapshots?(): MaybeAsync<Array<Record<string, unknown>>>;
|
|
948
|
-
getNavigationSnapshot?(): MaybeAsync<Record<string, unknown> | null>;
|
|
949
|
-
isNavigationIdle?(): MaybeAsync<boolean>;
|
|
950
|
-
getSurfaceMetricsSnapshot?(): MaybeAsync<Record<string, unknown> | null>;
|
|
951
|
-
permissionListApps?(): MaybeAsync<readonly SystemPermissionApp[]>;
|
|
952
|
-
permissionGuestAppId?(): MaybeAsync<string>;
|
|
953
|
-
permissionGetAppSettings?(appId: string): MaybeAsync<AppSettingsSnapshot>;
|
|
954
|
-
permissionSetAppPermission?(appId: string, kind: SystemPermissionKind, mutation: SystemPermissionMutation): MaybeAsync<AppSettingsSnapshot>;
|
|
955
|
-
permissionResetApp?(appId: string): MaybeAsync<void>;
|
|
956
|
-
clearKeychain?(): MaybeAsync<void>;
|
|
957
|
-
evalInTenant?(code: string): MaybeAsync<{
|
|
958
|
-
ok: boolean;
|
|
959
|
-
value?: unknown;
|
|
960
|
-
error?: string;
|
|
961
|
-
}>;
|
|
962
|
-
armNodeY(nodeId: number, frames?: number): MaybeAsync<void>;
|
|
963
|
-
recordNodeY(): MaybeAsync<void>;
|
|
964
|
-
takeNodeY(): MaybeAsync<number[] | null>;
|
|
965
|
-
}
|
|
966
|
-
type BridgeMethodKeys<T> = {
|
|
967
|
-
[K in keyof T]-?: NonNullable<T[K]> extends (...args: any[]) => unknown ? K : never;
|
|
968
|
-
}[keyof T];
|
|
969
|
-
export type SootSimTestBridgeMethod = Extract<BridgeMethodKeys<SootSimTestBridge>, string>;
|
|
970
|
-
export type SootSimTestBridgeArgs<M extends SootSimTestBridgeMethod> = NonNullable<SootSimTestBridge[M]> extends (...args: infer A) => unknown ? A : never;
|
|
971
|
-
export type SootSimTestBridgeResult<M extends SootSimTestBridgeMethod> = NonNullable<SootSimTestBridge[M]> extends (...args: any[]) => infer R ? Awaited<R> : never;
|
|
972
|
-
export interface SootSimInteractBridge {
|
|
973
|
-
tap(x: number, y: number, target?: SootSimReplayTarget): MaybeAsync<SootSimTapResult>;
|
|
974
|
-
doubleTap?(x: number, y: number, gapMs?: number): MaybeAsync<boolean>;
|
|
975
|
-
drag(fromX: number, fromY: number, toX: number, toY: number, steps?: number, stepMs?: number): MaybeAsync<boolean>;
|
|
976
|
-
pinch(fromX1: number, fromY1: number, fromX2: number, fromY2: number, toX1: number, toY1: number, toX2: number, toY2: number, steps?: number, stepMs?: number): MaybeAsync<boolean>;
|
|
977
|
-
longPress?(x: number, y: number, durationMs?: number, nativeWindowRoot?: number): MaybeAsync<boolean>;
|
|
978
|
-
captureBoundLongPress?(token: number, x: number, y: number, durationMs?: number, nativeWindowRoot?: number): MaybeAsync<SootSimCaptureBoundLongPressReceipt>;
|
|
979
|
-
captureBoundTap?(token: number, x: number, y: number, nativeWindowRoot?: number): MaybeAsync<SootSimCaptureBoundTapReceipt>;
|
|
980
|
-
touchDown?(x: number, y: number, pointerId?: number, timestamp?: number): MaybeAsync<boolean>;
|
|
981
|
-
touchMove?(x: number, y: number, pointerId?: number, timestamp?: number): MaybeAsync<boolean>;
|
|
982
|
-
touchMoveGroup?(points: ReadonlyArray<{
|
|
983
|
-
x: number;
|
|
984
|
-
y: number;
|
|
985
|
-
pointerId: number;
|
|
986
|
-
}>, timestamp?: number): MaybeAsync<boolean>;
|
|
987
|
-
touchUp?(x: number, y: number, pointerId?: number, timestamp?: number): MaybeAsync<boolean>;
|
|
988
|
-
touchCancel?(pointerId?: number, timestamp?: number): MaybeAsync<boolean>;
|
|
989
|
-
}
|
|
990
|
-
export interface GuardedTextInputResult {
|
|
991
|
-
handled: boolean;
|
|
992
|
-
secureTextEntry: boolean;
|
|
993
|
-
}
|
|
994
|
-
export interface TextInputEditRange {
|
|
995
|
-
start: number;
|
|
996
|
-
end: number;
|
|
997
|
-
}
|
|
998
|
-
export type TextInputEditCommand = {
|
|
999
|
-
kind: 'compositionStart';
|
|
1000
|
-
range: TextInputEditRange;
|
|
1001
|
-
} | {
|
|
1002
|
-
kind: 'replace';
|
|
1003
|
-
range: TextInputEditRange;
|
|
1004
|
-
text: string;
|
|
1005
|
-
composition: 'none' | 'update' | 'commit';
|
|
1006
|
-
key?: string;
|
|
1007
|
-
};
|
|
1008
|
-
export declare function isTextInputEditCommand(value: unknown): value is TextInputEditCommand;
|
|
1009
|
-
export interface SootSimKeyboardBridge {
|
|
1010
|
-
[key: string]: unknown;
|
|
1011
|
-
type?(text: string): MaybeAsync<void>;
|
|
1012
|
-
typeInto?(text: string, nodeId: number): MaybeAsync<GuardedTextInputResult>;
|
|
1013
|
-
press?(key: string): MaybeAsync<void>;
|
|
1014
|
-
dispatchKey?(key: string): MaybeAsync<void>;
|
|
1015
|
-
edit?(command: TextInputEditCommand): MaybeAsync<boolean>;
|
|
1016
|
-
show?(): MaybeAsync<void>;
|
|
1017
|
-
dismiss?(): MaybeAsync<boolean>;
|
|
1018
|
-
isVisible?(): MaybeAsync<boolean>;
|
|
1019
|
-
hasHostedEditorFocus?(): MaybeAsync<boolean>;
|
|
1020
|
-
getMode?(): MaybeAsync<string>;
|
|
1021
|
-
getLayout?(): {
|
|
1022
|
-
spec: {
|
|
1023
|
-
secureTextEntry: boolean;
|
|
1024
|
-
} | null;
|
|
1025
|
-
};
|
|
1026
|
-
getKeyRect?(label: string): MaybeAsync<{
|
|
1027
|
-
x: number;
|
|
1028
|
-
y: number;
|
|
1029
|
-
width: number;
|
|
1030
|
-
height: number;
|
|
1031
|
-
} | null>;
|
|
1032
|
-
}
|
|
1033
|
-
export interface SootSimDetectedBarcode {
|
|
1034
|
-
format: string;
|
|
1035
|
-
rawValue: string;
|
|
1036
|
-
boundingBox: {
|
|
1037
|
-
x: number;
|
|
1038
|
-
y: number;
|
|
1039
|
-
width: number;
|
|
1040
|
-
height: number;
|
|
1041
|
-
};
|
|
1042
|
-
cornerPoints: Array<{
|
|
1043
|
-
x: number;
|
|
1044
|
-
y: number;
|
|
1045
|
-
}>;
|
|
1046
|
-
}
|
|
1047
|
-
export interface PeachCameraPhotoOptions {
|
|
1048
|
-
mimeType?: string;
|
|
1049
|
-
quality?: number;
|
|
1050
|
-
isMirrored?: boolean;
|
|
1051
|
-
}
|
|
1052
|
-
export interface PeachCameraPhotoResult {
|
|
1053
|
-
dataUri: string;
|
|
1054
|
-
width: number;
|
|
1055
|
-
height: number;
|
|
1056
|
-
timestamp: number;
|
|
1057
|
-
}
|
|
1058
|
-
export interface PeachCameraRecordingOptions {
|
|
1059
|
-
recordingId?: string;
|
|
1060
|
-
persistent?: PeachCameraSourceConfiguration;
|
|
1061
|
-
mimeType: string;
|
|
1062
|
-
containerFormat?: 'mp4' | 'mov';
|
|
1063
|
-
audio: boolean;
|
|
1064
|
-
videoBitsPerSecond?: number;
|
|
1065
|
-
maxDuration?: number;
|
|
1066
|
-
maxFileSize?: number;
|
|
1067
|
-
}
|
|
1068
|
-
export type PeachCameraRecordingCommand = 'stop' | 'pause' | 'resume' | 'cancel' | 'bind' | 'unbind';
|
|
1069
|
-
export type PeachCameraRecordingEvent = {
|
|
1070
|
-
type: 'started' | 'paused' | 'resumed';
|
|
1071
|
-
} | {
|
|
1072
|
-
type: 'progress';
|
|
1073
|
-
duration: number;
|
|
1074
|
-
fileSize: number;
|
|
1075
|
-
} | {
|
|
1076
|
-
type: 'finished';
|
|
1077
|
-
blob: Blob;
|
|
1078
|
-
duration: number;
|
|
1079
|
-
width: number;
|
|
1080
|
-
height: number;
|
|
1081
|
-
reason: 'stopped' | 'max-duration-reached' | 'max-file-size-reached';
|
|
1082
|
-
} | {
|
|
1083
|
-
type: 'cancelled';
|
|
1084
|
-
} | {
|
|
1085
|
-
type: 'error';
|
|
1086
|
-
message: string;
|
|
1087
|
-
};
|
|
1088
|
-
export interface PeachCameraSourceInfo {
|
|
1089
|
-
settings: MediaTrackSettings;
|
|
1090
|
-
capabilities: MediaTrackCapabilities;
|
|
1091
|
-
}
|
|
1092
|
-
export interface PeachCameraSourceConfiguration {
|
|
1093
|
-
width: number;
|
|
1094
|
-
height: number;
|
|
1095
|
-
frameRate?: number;
|
|
1096
|
-
}
|
|
1097
|
-
export interface PeachCameraFrameResult {
|
|
1098
|
-
codedWidth: number;
|
|
1099
|
-
codedHeight: number;
|
|
1100
|
-
visibleX: number;
|
|
1101
|
-
visibleY: number;
|
|
1102
|
-
producerGeneration: bigint;
|
|
1103
|
-
format: VideoPixelFormat;
|
|
1104
|
-
width: number;
|
|
1105
|
-
height: number;
|
|
1106
|
-
timestamp: number;
|
|
1107
|
-
layout: PlaneLayout[];
|
|
1108
|
-
colorSpace: VideoColorSpaceInit;
|
|
1109
|
-
pixels: ArrayBuffer;
|
|
1110
|
-
}
|
|
1111
|
-
export interface SootSimCameraBridge {
|
|
1112
|
-
configureSource(configuration: PeachCameraSourceConfiguration): Promise<void>;
|
|
1113
|
-
captureFrame(format: 'source' | 'BGRA'): Promise<PeachCameraFrameResult>;
|
|
1114
|
-
getSourceInfo(facing: 'user' | 'environment'): Promise<PeachCameraSourceInfo>;
|
|
1115
|
-
startCamera(facing: 'user' | 'environment', onFrame: (bitmap: ImageBitmap, width: number, height: number) => void, configuration?: PeachCameraSourceConfiguration): Promise<{
|
|
1116
|
-
width: number;
|
|
1117
|
-
height: number;
|
|
1118
|
-
}>;
|
|
1119
|
-
capturePhoto(options?: PeachCameraPhotoOptions): Promise<PeachCameraPhotoResult | null>;
|
|
1120
|
-
stopCamera(): Promise<void>;
|
|
1121
|
-
startRecording(options: PeachCameraRecordingOptions, onEvent: (event: PeachCameraRecordingEvent) => void): Promise<void>;
|
|
1122
|
-
commandRecording(command: PeachCameraRecordingCommand, recordingId?: string): Promise<void>;
|
|
1123
|
-
isCameraActive?(): boolean;
|
|
1124
|
-
startBarcodeScan(formats: string[], onResults: (barcodes: SootSimDetectedBarcode[], videoWidth: number, videoHeight: number) => void): Promise<void>;
|
|
1125
|
-
stopBarcodeScan(): Promise<void>;
|
|
1126
|
-
}
|
|
1127
|
-
export type SootSimVideoSource = {
|
|
1128
|
-
uri?: string;
|
|
1129
|
-
headers?: Record<string, string>;
|
|
1130
|
-
};
|
|
1131
|
-
export type SootSimVideoStatus = 'idle' | 'loading' | 'readyToPlay' | 'error';
|
|
1132
|
-
export type SootSimVideoEvent = {
|
|
1133
|
-
name: 'statusChange';
|
|
1134
|
-
payload: {
|
|
1135
|
-
status: SootSimVideoStatus;
|
|
1136
|
-
oldStatus?: SootSimVideoStatus;
|
|
1137
|
-
error?: {
|
|
1138
|
-
message: string;
|
|
1139
|
-
};
|
|
1140
|
-
};
|
|
1141
|
-
} | {
|
|
1142
|
-
name: 'playingChange';
|
|
1143
|
-
payload: {
|
|
1144
|
-
isPlaying: boolean;
|
|
1145
|
-
oldIsPlaying?: boolean;
|
|
1146
|
-
};
|
|
1147
|
-
} | {
|
|
1148
|
-
name: 'playbackRateChange';
|
|
1149
|
-
payload: {
|
|
1150
|
-
playbackRate: number;
|
|
1151
|
-
oldPlaybackRate?: number;
|
|
1152
|
-
};
|
|
1153
|
-
} | {
|
|
1154
|
-
name: 'volumeChange';
|
|
1155
|
-
payload: {
|
|
1156
|
-
volume: number;
|
|
1157
|
-
oldVolume?: number;
|
|
1158
|
-
};
|
|
1159
|
-
} | {
|
|
1160
|
-
name: 'mutedChange';
|
|
1161
|
-
payload: {
|
|
1162
|
-
muted: boolean;
|
|
1163
|
-
oldMuted?: boolean;
|
|
1164
|
-
};
|
|
1165
|
-
} | {
|
|
1166
|
-
name: 'playToEnd';
|
|
1167
|
-
payload: undefined;
|
|
1168
|
-
} | {
|
|
1169
|
-
name: 'timeUpdate';
|
|
1170
|
-
payload: {
|
|
1171
|
-
currentTime: number;
|
|
1172
|
-
currentLiveTimestamp: null;
|
|
1173
|
-
currentOffsetFromLive: null;
|
|
1174
|
-
bufferedPosition: number;
|
|
1175
|
-
};
|
|
1176
|
-
} | {
|
|
1177
|
-
name: 'sourceChange';
|
|
1178
|
-
payload: {
|
|
1179
|
-
source: SootSimVideoSource | null;
|
|
1180
|
-
oldSource?: SootSimVideoSource | null;
|
|
1181
|
-
};
|
|
1182
|
-
} | {
|
|
1183
|
-
name: 'sourceLoad';
|
|
1184
|
-
payload: {
|
|
1185
|
-
videoSource: SootSimVideoSource | null;
|
|
1186
|
-
duration: number;
|
|
1187
|
-
availableVideoTracks: [];
|
|
1188
|
-
availableSubtitleTracks: [];
|
|
1189
|
-
availableAudioTracks: [];
|
|
1190
|
-
naturalSize: {
|
|
1191
|
-
width: number;
|
|
1192
|
-
height: number;
|
|
1193
|
-
};
|
|
1194
|
-
};
|
|
1195
|
-
} | {
|
|
1196
|
-
name: 'seeked';
|
|
1197
|
-
payload: {
|
|
1198
|
-
currentTime: number;
|
|
1199
|
-
};
|
|
1200
|
-
};
|
|
1201
|
-
export interface SootSimVideoBridge {
|
|
1202
|
-
createPlayer(instanceId: number, source: SootSimVideoSource | null, onEvent: (event: SootSimVideoEvent) => void, onFrame: (bitmap: ImageBitmap, width: number, height: number) => void): void;
|
|
1203
|
-
command(instanceId: number, command: 'play' | 'pause' | 'replay' | 'seekBy' | 'replace', value?: number | SootSimVideoSource | null): void;
|
|
1204
|
-
setProperty(instanceId: number, property: 'currentTime' | 'loop' | 'muted' | 'playbackRate' | 'preservesPitch' | 'timeUpdateEventInterval' | 'timeUpdatesWhilePaused' | 'volume', value: number | boolean): void;
|
|
1205
|
-
releasePlayer(instanceId: number): void;
|
|
1206
|
-
}
|
|
1207
|
-
export type SootSimSpeechSynthesisUtterance = {
|
|
1208
|
-
text: string;
|
|
1209
|
-
lang: string;
|
|
1210
|
-
rate: number;
|
|
1211
|
-
pitch: number;
|
|
1212
|
-
volume: number;
|
|
1213
|
-
};
|
|
1214
|
-
export type SootSimSpeechSynthesisEvent = {
|
|
1215
|
-
type: 'start';
|
|
1216
|
-
} | {
|
|
1217
|
-
type: 'boundary';
|
|
1218
|
-
charIndex: number;
|
|
1219
|
-
charLength: number;
|
|
1220
|
-
} | {
|
|
1221
|
-
type: 'end';
|
|
1222
|
-
} | {
|
|
1223
|
-
type: 'error';
|
|
1224
|
-
error: string;
|
|
1225
|
-
};
|
|
1226
|
-
export interface SootSimSpeechSynthesisBridge {
|
|
1227
|
-
speak(utterance: SootSimSpeechSynthesisUtterance, onEvent: (event: SootSimSpeechSynthesisEvent) => void): void;
|
|
1228
|
-
pause(): void;
|
|
1229
|
-
resume(): void;
|
|
1230
|
-
cancel(): void;
|
|
1231
|
-
}
|
|
1232
|
-
export interface SootSimAudioRecorderOptions {
|
|
1233
|
-
isMeteringEnabled?: boolean;
|
|
1234
|
-
bitRate?: number;
|
|
1235
|
-
bitsPerSecond?: number;
|
|
1236
|
-
mimeType?: string;
|
|
1237
|
-
extension?: string;
|
|
1238
|
-
sampleRate?: number;
|
|
1239
|
-
numberOfChannels?: number;
|
|
1240
|
-
deviceId?: string;
|
|
1241
|
-
}
|
|
1242
|
-
export type SootSimAudioRecorderCommand = 'inputs' | 'prepare' | 'record' | 'pause' | 'status' | 'stop';
|
|
1243
|
-
export interface SootSimAudioRecorderSnapshot {
|
|
1244
|
-
state: 'inactive' | 'recording' | 'paused' | 'stopped';
|
|
1245
|
-
durationMs: number;
|
|
1246
|
-
inputs: Array<{
|
|
1247
|
-
uid: string;
|
|
1248
|
-
name: string;
|
|
1249
|
-
type: string;
|
|
1250
|
-
}>;
|
|
1251
|
-
inputId?: string;
|
|
1252
|
-
metering?: number;
|
|
1253
|
-
blob?: Blob;
|
|
1254
|
-
}
|
|
1255
|
-
export interface SootSimAudioRecorderBridge {
|
|
1256
|
-
subscribe(id: string, listener: (snapshot: SootSimAudioRecorderSnapshot) => void): () => void;
|
|
1257
|
-
request(id: string, command: SootSimAudioRecorderCommand, options?: SootSimAudioRecorderOptions): Promise<SootSimAudioRecorderSnapshot>;
|
|
1258
|
-
release(id: string): void;
|
|
1259
|
-
}
|
|
1260
|
-
export interface SootSimMediaSessionBridge {
|
|
1261
|
-
readonly session: Pick<MediaSession, 'metadata' | 'playbackState' | 'setActionHandler' | 'setPositionState'>;
|
|
1262
|
-
readonly MediaMetadata: new (init?: MediaMetadataInit) => MediaMetadata;
|
|
1263
|
-
reset(): void;
|
|
1264
|
-
}
|
|
1265
|
-
export interface SootSimClipboardImage {
|
|
1266
|
-
bytes: ArrayBuffer;
|
|
1267
|
-
mimeType: string;
|
|
1268
|
-
width: number;
|
|
1269
|
-
height: number;
|
|
1270
|
-
scale: number;
|
|
1271
|
-
}
|
|
1272
|
-
export interface SootSimClipboardChange {
|
|
1273
|
-
changeCount: number;
|
|
1274
|
-
types: string[];
|
|
1275
|
-
contentTypes: string[];
|
|
1276
|
-
}
|
|
1277
|
-
export interface SootSimClipboardBridge {
|
|
1278
|
-
readText(): Promise<string>;
|
|
1279
|
-
writeText(text: string): Promise<void>;
|
|
1280
|
-
readImage(): Promise<SootSimClipboardImage | null>;
|
|
1281
|
-
writeImage(image: {
|
|
1282
|
-
bytes: ArrayBuffer;
|
|
1283
|
-
mimeType: string;
|
|
1284
|
-
kind: 'bitmap' | 'file';
|
|
1285
|
-
scale?: number;
|
|
1286
|
-
types?: string[];
|
|
1287
|
-
}): Promise<void>;
|
|
1288
|
-
subscribe(listener: (change: SootSimClipboardChange) => void): () => void;
|
|
1289
|
-
}
|
|
1290
|
-
export interface SootSimHostStorageBridge {
|
|
1291
|
-
snapshotLocalStorageEntries(scopeUrl: string): Promise<Array<[string, string]>>;
|
|
1292
|
-
}
|
|
1293
|
-
export interface SootSimImagePickerAsset {
|
|
1294
|
-
uri: string;
|
|
1295
|
-
width: number;
|
|
1296
|
-
height: number;
|
|
1297
|
-
fileName?: string;
|
|
1298
|
-
mimeType?: string;
|
|
1299
|
-
fileSize?: number;
|
|
1300
|
-
mediaType?: 'image' | 'video';
|
|
1301
|
-
duration?: number;
|
|
1302
|
-
}
|
|
1303
|
-
export interface SootSimImagePickerResult {
|
|
1304
|
-
continuing?: boolean;
|
|
1305
|
-
error?: string;
|
|
1306
|
-
canceled: boolean;
|
|
1307
|
-
assets: SootSimImagePickerAsset[] | null;
|
|
1308
|
-
}
|
|
1309
|
-
export interface SootSimImagePickerOptions {
|
|
1310
|
-
continuous?: boolean;
|
|
1311
|
-
preferredItemEncoding?: 'automatic' | 'current' | 'compatible';
|
|
1312
|
-
mediaTypes?: 'images' | 'videos' | 'all';
|
|
1313
|
-
allowsMultiple?: boolean;
|
|
1314
|
-
selectionLimit?: number;
|
|
1315
|
-
ordered?: boolean;
|
|
1316
|
-
}
|
|
1317
|
-
export interface ShellNativeEvaluationOwner {
|
|
1318
|
-
readonly kind: 'shell';
|
|
1319
|
-
readonly appId: string;
|
|
1320
|
-
readonly surfaceId: 'app:one' | 'app:two';
|
|
1321
|
-
readonly generation: number;
|
|
1322
|
-
}
|
|
1323
|
-
export interface SootSimImagePickerBridge {
|
|
1324
|
-
readonly cameraAvailable: boolean;
|
|
1325
|
-
captureFromCamera(signal?: AbortSignal, owner?: ShellNativeEvaluationOwner): Promise<SootSimImagePickerResult>;
|
|
1326
|
-
pickFromLibrary(options?: SootSimImagePickerOptions, signal?: AbortSignal, owner?: ShellNativeEvaluationOwner, onSelection?: (result: SootSimImagePickerResult) => void): Promise<SootSimImagePickerResult>;
|
|
1327
|
-
}
|
|
1328
|
-
export interface SootSimImageCropperSpec {
|
|
1329
|
-
previewUri: string;
|
|
1330
|
-
imageWidth: number;
|
|
1331
|
-
imageHeight: number;
|
|
1332
|
-
aspectRatio: number;
|
|
1333
|
-
shape: 'rectangle' | 'circle';
|
|
1334
|
-
}
|
|
1335
|
-
export interface SootSimImageCropperBridge {
|
|
1336
|
-
present(spec: SootSimImageCropperSpec): Promise<{
|
|
1337
|
-
done: boolean;
|
|
1338
|
-
}>;
|
|
1339
|
-
}
|
|
1340
|
-
export interface SootSimAndroidPickerDay {
|
|
1341
|
-
year: number;
|
|
1342
|
-
month: number;
|
|
1343
|
-
day: number;
|
|
1344
|
-
}
|
|
1345
|
-
export interface SootSimAndroidPickerButton {
|
|
1346
|
-
label?: string;
|
|
1347
|
-
textColor?: number;
|
|
1348
|
-
}
|
|
1349
|
-
export interface SootSimAndroidDateTimePickerSpec extends SootSimAndroidPickerDay {
|
|
1350
|
-
dialog: 'date' | 'time';
|
|
1351
|
-
display: 'default' | 'spinner';
|
|
1352
|
-
hour: number;
|
|
1353
|
-
minute: number;
|
|
1354
|
-
is24Hour: boolean;
|
|
1355
|
-
minimumDay?: SootSimAndroidPickerDay;
|
|
1356
|
-
maximumDay?: SootSimAndroidPickerDay;
|
|
1357
|
-
minuteInterval?: number;
|
|
1358
|
-
firstDayOfWeek?: number;
|
|
1359
|
-
startOnYearSelection?: boolean;
|
|
1360
|
-
buttons: {
|
|
1361
|
-
positive?: SootSimAndroidPickerButton;
|
|
1362
|
-
negative?: SootSimAndroidPickerButton;
|
|
1363
|
-
neutral?: SootSimAndroidPickerButton;
|
|
1364
|
-
};
|
|
1365
|
-
}
|
|
1366
|
-
export type SootSimAndroidDateTimePickerResult = ({
|
|
1367
|
-
action: 'set';
|
|
1368
|
-
hour: number;
|
|
1369
|
-
minute: number;
|
|
1370
|
-
} & SootSimAndroidPickerDay) | {
|
|
1371
|
-
action: 'neutral';
|
|
1372
|
-
} | {
|
|
1373
|
-
action: 'dismissed';
|
|
1374
|
-
};
|
|
1375
|
-
export interface SootSimAndroidDateTimePickerBridge {
|
|
1376
|
-
present(spec: SootSimAndroidDateTimePickerSpec, signal: AbortSignal): {
|
|
1377
|
-
result: Promise<SootSimAndroidDateTimePickerResult>;
|
|
1378
|
-
update: (spec: SootSimAndroidDateTimePickerSpec) => void;
|
|
1379
|
-
};
|
|
1380
|
-
}
|
|
1381
|
-
export type SystemPermissionKind = 'app-tracking-transparency' | 'bluetooth' | 'calendars' | 'camera' | 'contacts' | 'face-id' | 'local-network' | 'location-always' | 'location-when-in-use' | 'media-library' | 'microphone' | 'motion' | 'notifications' | 'photo-library' | 'photo-library-add-only' | 'reminders' | 'siri' | 'speech-recognition';
|
|
1382
|
-
export type SystemPermissionStatus = 'not-determined' | 'restricted' | 'denied' | 'authorized' | 'limited' | 'provisional' | 'ephemeral' | 'unavailable';
|
|
1383
|
-
export type SystemPermissionLocationAccuracy = 'full' | 'reduced';
|
|
1384
|
-
export type SystemPermissionPlatform = 'ios' | 'android';
|
|
1385
|
-
export type AppPreferenceValue = string | number | boolean;
|
|
1386
|
-
export type AppSettingsSpecifier = {
|
|
1387
|
-
type: 'group';
|
|
1388
|
-
title?: string;
|
|
1389
|
-
footer?: string;
|
|
1390
|
-
} | {
|
|
1391
|
-
type: 'toggle';
|
|
1392
|
-
key: string;
|
|
1393
|
-
title: string;
|
|
1394
|
-
defaultValue: boolean;
|
|
1395
|
-
currentValue: boolean;
|
|
1396
|
-
} | {
|
|
1397
|
-
type: 'text';
|
|
1398
|
-
key: string;
|
|
1399
|
-
title: string;
|
|
1400
|
-
defaultValue: string;
|
|
1401
|
-
currentValue: string;
|
|
1402
|
-
placeholder?: string;
|
|
1403
|
-
secure?: boolean;
|
|
1404
|
-
keyboardType?: 'alphabet' | 'numbers-and-punctuation' | 'number-pad' | 'url' | 'email-address' | 'name-phone-pad' | 'ascii-capable';
|
|
1405
|
-
autocapitalization?: 'none' | 'sentences' | 'words' | 'all-characters';
|
|
1406
|
-
autocorrection?: boolean;
|
|
1407
|
-
} | {
|
|
1408
|
-
type: 'multi-value';
|
|
1409
|
-
key: string;
|
|
1410
|
-
title: string;
|
|
1411
|
-
defaultValue: AppPreferenceValue;
|
|
1412
|
-
currentValue: AppPreferenceValue;
|
|
1413
|
-
values: readonly AppPreferenceValue[];
|
|
1414
|
-
titles: readonly string[];
|
|
1415
|
-
} | {
|
|
1416
|
-
type: 'title-value';
|
|
1417
|
-
key: string;
|
|
1418
|
-
title: string;
|
|
1419
|
-
defaultValue: AppPreferenceValue;
|
|
1420
|
-
currentValue: AppPreferenceValue;
|
|
1421
|
-
} | {
|
|
1422
|
-
type: 'slider';
|
|
1423
|
-
key: string;
|
|
1424
|
-
title?: string;
|
|
1425
|
-
defaultValue: number;
|
|
1426
|
-
currentValue: number;
|
|
1427
|
-
minimumValue: number;
|
|
1428
|
-
maximumValue: number;
|
|
1429
|
-
minimumValueImage?: string;
|
|
1430
|
-
maximumValueImage?: string;
|
|
1431
|
-
} | {
|
|
1432
|
-
type: 'child-pane';
|
|
1433
|
-
title: string;
|
|
1434
|
-
file?: string;
|
|
1435
|
-
specifiers: readonly AppSettingsSpecifier[];
|
|
1436
|
-
};
|
|
1437
|
-
export interface SystemNotificationSettings {
|
|
1438
|
-
authorizationStatus: SystemPermissionStatus;
|
|
1439
|
-
alerts: boolean;
|
|
1440
|
-
sounds: boolean;
|
|
1441
|
-
badges: boolean;
|
|
1442
|
-
lockScreen: boolean;
|
|
1443
|
-
notificationCenter: boolean;
|
|
1444
|
-
banners: boolean;
|
|
1445
|
-
bannerStyle: 'temporary' | 'persistent';
|
|
1446
|
-
previews: 'always' | 'whenUnlocked' | 'never';
|
|
1447
|
-
grouping: 'automatic' | 'byApp' | 'off';
|
|
1448
|
-
criticalAlerts: boolean;
|
|
1449
|
-
announcements: boolean;
|
|
1450
|
-
scheduledDelivery: boolean;
|
|
1451
|
-
timeSensitive: boolean;
|
|
1452
|
-
}
|
|
1453
|
-
export interface SystemPermissionState {
|
|
1454
|
-
kind: SystemPermissionKind;
|
|
1455
|
-
status: SystemPermissionStatus;
|
|
1456
|
-
canAskAgain: boolean;
|
|
1457
|
-
requested: boolean;
|
|
1458
|
-
authorizationScope?: 'persistent' | 'once';
|
|
1459
|
-
locationAccuracy?: SystemPermissionLocationAccuracy;
|
|
1460
|
-
limitedResourceIds?: readonly string[];
|
|
1461
|
-
notifications?: SystemNotificationSettings;
|
|
1462
|
-
}
|
|
1463
|
-
export interface SystemPermissionDescriptor {
|
|
1464
|
-
kind: SystemPermissionKind;
|
|
1465
|
-
purpose?: string;
|
|
1466
|
-
notificationOptions?: readonly ('alert' | 'badge' | 'sound' | 'carPlay' | 'criticalAlert' | 'provisional' | 'providesAppSettings')[];
|
|
1467
|
-
}
|
|
1468
|
-
export interface SystemPermissionApp {
|
|
1469
|
-
appId: string;
|
|
1470
|
-
bundleIdentifier?: string;
|
|
1471
|
-
displayName: string;
|
|
1472
|
-
version?: string;
|
|
1473
|
-
icon?: string;
|
|
1474
|
-
settingsBundle?: readonly AppSettingsSpecifier[];
|
|
1475
|
-
settingsStorageScopeUrl?: string;
|
|
1476
|
-
}
|
|
1477
|
-
export interface SystemPermissionRecord extends SystemPermissionState {
|
|
1478
|
-
appId: string;
|
|
1479
|
-
platform: SystemPermissionPlatform;
|
|
1480
|
-
updatedAt: number;
|
|
1481
|
-
}
|
|
1482
|
-
export interface AppPermissionSetting {
|
|
1483
|
-
kind: SystemPermissionKind;
|
|
1484
|
-
status: SystemPermissionStatus;
|
|
1485
|
-
mutable: boolean;
|
|
1486
|
-
locationAccuracy?: SystemPermissionLocationAccuracy;
|
|
1487
|
-
}
|
|
1488
|
-
export interface AppSettingsSnapshot {
|
|
1489
|
-
appId: string;
|
|
1490
|
-
platform: SystemPermissionPlatform;
|
|
1491
|
-
permissions: readonly AppPermissionSetting[];
|
|
1492
|
-
notifications?: SystemNotificationSettings;
|
|
1493
|
-
declaredSettings?: {
|
|
1494
|
-
specifiers: readonly AppSettingsSpecifier[];
|
|
1495
|
-
values: Readonly<Record<string, AppPreferenceValue>>;
|
|
1496
|
-
};
|
|
1497
|
-
}
|
|
1498
|
-
export type SystemPermissionMutation = {
|
|
1499
|
-
status: 'not-determined';
|
|
1500
|
-
} | {
|
|
1501
|
-
status: 'restricted';
|
|
1502
|
-
} | {
|
|
1503
|
-
status: 'denied';
|
|
1504
|
-
canAskAgain?: boolean;
|
|
1505
|
-
} | {
|
|
1506
|
-
status: 'authorized';
|
|
1507
|
-
locationAccuracy?: SystemPermissionLocationAccuracy;
|
|
1508
|
-
authorizationScope?: 'persistent' | 'once';
|
|
1509
|
-
} | {
|
|
1510
|
-
status: 'limited';
|
|
1511
|
-
limitedResourceIds?: readonly string[];
|
|
1512
|
-
} | {
|
|
1513
|
-
status: 'provisional';
|
|
1514
|
-
} | {
|
|
1515
|
-
status: 'ephemeral';
|
|
1516
|
-
} | {
|
|
1517
|
-
status: 'unavailable';
|
|
1518
|
-
};
|
|
1519
|
-
export interface SystemPermissionRequestContext extends SystemPermissionApp {
|
|
1520
|
-
presentationAppId?: string;
|
|
1521
|
-
platform: SystemPermissionPlatform;
|
|
1522
|
-
}
|
|
1523
|
-
export interface SootSimPermissionsBridge {
|
|
1524
|
-
listApps(): MaybeAsync<readonly SystemPermissionApp[]>;
|
|
1525
|
-
getAppSettingsSnapshot(appId: string): MaybeAsync<AppSettingsSnapshot>;
|
|
1526
|
-
setAppPermission(appId: string, kind: SystemPermissionKind, mutation: SystemPermissionMutation): MaybeAsync<AppSettingsSnapshot>;
|
|
1527
|
-
patchNotificationSettings(appId: string, patch: Partial<SystemNotificationSettings>): MaybeAsync<AppSettingsSnapshot>;
|
|
1528
|
-
setAppDeclaredSetting(appId: string, key: string, value: AppPreferenceValue): MaybeAsync<AppSettingsSnapshot>;
|
|
1529
|
-
resetPermission(appId: string, kind: SystemPermissionKind): MaybeAsync<void>;
|
|
1530
|
-
resetAppPermissions(appId: string): MaybeAsync<void>;
|
|
1531
|
-
}
|
|
1532
|
-
export interface SootSimShareSheetOptions {
|
|
1533
|
-
title?: string;
|
|
1534
|
-
message?: string;
|
|
1535
|
-
url?: string;
|
|
1536
|
-
subject?: string;
|
|
1537
|
-
excludedActivityTypes?: string[];
|
|
1538
|
-
}
|
|
1539
|
-
export interface SootSimShareSheetResult {
|
|
1540
|
-
completed: boolean;
|
|
1541
|
-
activityType: string | null;
|
|
1542
|
-
}
|
|
1543
|
-
export interface SootSimShareSheetBridge {
|
|
1544
|
-
share(options: SootSimShareSheetOptions): Promise<SootSimShareSheetResult>;
|
|
1545
|
-
}
|
|
1546
|
-
export interface SootSimPhotoLibraryAsset {
|
|
1547
|
-
id: string;
|
|
1548
|
-
uri: string;
|
|
1549
|
-
width: number;
|
|
1550
|
-
height: number;
|
|
1551
|
-
fileName?: string;
|
|
1552
|
-
mediaType: 'photo' | 'video';
|
|
1553
|
-
timestamp: number;
|
|
1554
|
-
fileSize?: number;
|
|
1555
|
-
durationMs?: number;
|
|
1556
|
-
isFavorite: boolean;
|
|
1557
|
-
mimeType?: string;
|
|
1558
|
-
}
|
|
1559
|
-
export interface SootSimPhotoLibraryPage {
|
|
1560
|
-
assets: SootSimPhotoLibraryAsset[];
|
|
1561
|
-
hasNextPage: boolean;
|
|
1562
|
-
endCursor: string | null;
|
|
1563
|
-
totalCount: number;
|
|
1564
|
-
}
|
|
1565
|
-
export interface SootSimPhotoLibraryQueryOptions {
|
|
1566
|
-
first: number;
|
|
1567
|
-
after?: string;
|
|
1568
|
-
assetType?: 'All' | 'Photos' | 'Videos';
|
|
1569
|
-
readFiles?: boolean;
|
|
1570
|
-
}
|
|
1571
|
-
export interface SootSimPhotoLibraryCreateOptions {
|
|
1572
|
-
uri: string;
|
|
1573
|
-
width?: number;
|
|
1574
|
-
height?: number;
|
|
1575
|
-
fileName?: string;
|
|
1576
|
-
mediaType?: 'photo' | 'video';
|
|
1577
|
-
}
|
|
1578
|
-
export interface SootSimPhotoLibraryBridge {
|
|
1579
|
-
getPhotos(options: SootSimPhotoLibraryQueryOptions): Promise<SootSimPhotoLibraryPage>;
|
|
1580
|
-
createAsset(options: SootSimPhotoLibraryCreateOptions): Promise<SootSimPhotoLibraryAsset>;
|
|
1581
|
-
}
|
|
1582
|
-
export interface SootSimNavigationRoutesPayload {
|
|
1583
|
-
prefixes: string[];
|
|
1584
|
-
screens: unknown;
|
|
1585
|
-
filter?: unknown;
|
|
1586
|
-
}
|
|
1587
|
-
export interface SootSimNavigationRoutesBridge {
|
|
1588
|
-
publish(payload: SootSimNavigationRoutesPayload | null): void;
|
|
1589
|
-
}
|
|
1590
|
-
export interface SootSimLinkingDispatcherBridge {
|
|
1591
|
-
dispatch(url: string): void;
|
|
1592
|
-
}
|
|
1593
|
-
export interface PeachWebViewDocumentData {
|
|
1594
|
-
bytesBase64: string;
|
|
1595
|
-
mimeType: string;
|
|
1596
|
-
characterEncodingName: string;
|
|
1597
|
-
}
|
|
1598
|
-
export interface SootSimWebViewSource {
|
|
1599
|
-
uri?: string;
|
|
1600
|
-
html?: string;
|
|
1601
|
-
baseUrl?: string;
|
|
1602
|
-
headers?: Record<string, string>;
|
|
1603
|
-
method?: string;
|
|
1604
|
-
bodyBase64?: string;
|
|
1605
|
-
documentData?: PeachWebViewDocumentData;
|
|
1606
|
-
}
|
|
1607
|
-
export type SootSimWebViewHostRequest = {
|
|
1608
|
-
kind: 'navigationDecision';
|
|
1609
|
-
instanceId: string;
|
|
1610
|
-
requestId: number;
|
|
1611
|
-
allow: boolean;
|
|
1612
|
-
} | {
|
|
1613
|
-
kind: 'attach';
|
|
1614
|
-
instanceId: string;
|
|
1615
|
-
frameName: string;
|
|
1616
|
-
url: string;
|
|
1617
|
-
headers: Record<string, string>;
|
|
1618
|
-
method?: string;
|
|
1619
|
-
bodyBase64?: string;
|
|
1620
|
-
documentData?: PeachWebViewDocumentData;
|
|
1621
|
-
config: string;
|
|
1622
|
-
beforeKey: string;
|
|
1623
|
-
beforeContent: string;
|
|
1624
|
-
afterContent: string;
|
|
1625
|
-
incognito: boolean;
|
|
1626
|
-
} | {
|
|
1627
|
-
kind: 'detach';
|
|
1628
|
-
instanceId: string;
|
|
1629
|
-
} | {
|
|
1630
|
-
kind: 'cookies';
|
|
1631
|
-
instanceId: string;
|
|
1632
|
-
cookies: string;
|
|
1633
|
-
} | {
|
|
1634
|
-
kind: 'evaluate';
|
|
1635
|
-
instanceId: string;
|
|
1636
|
-
js: string;
|
|
1637
|
-
userAgent?: string;
|
|
1638
|
-
} | {
|
|
1639
|
-
kind: 'tap';
|
|
1640
|
-
instanceId: string;
|
|
1641
|
-
x: number;
|
|
1642
|
-
y: number;
|
|
1643
|
-
} | {
|
|
1644
|
-
kind: 'fileResponse';
|
|
1645
|
-
instanceId: string;
|
|
1646
|
-
requestId: number;
|
|
1647
|
-
file: {
|
|
1648
|
-
mimeType: string;
|
|
1649
|
-
bytesBase64: string;
|
|
1650
|
-
} | null;
|
|
1651
|
-
} | {
|
|
1652
|
-
kind: 'snapshot';
|
|
1653
|
-
instanceId: string;
|
|
1654
|
-
requestId: number;
|
|
1655
|
-
rect: {
|
|
1656
|
-
x: number;
|
|
1657
|
-
y: number;
|
|
1658
|
-
width: number;
|
|
1659
|
-
height: number;
|
|
1660
|
-
};
|
|
1661
|
-
scale: number;
|
|
1662
|
-
};
|
|
1663
49
|
export type { SootSimCornerRadii, NativeSurfaceShadow, NativeSurfaceShadowCast, NativeSurfaceLayout, NativeSurfacePresentation, NativeSurfaceIdentity, NativeSurfacePresented, NativeSurfaceRegistration, } from './nativeSurfaceContract.d.ts';
|
|
1664
|
-
import type { SootSimCornerRadii, NativeSurfacePresentation } from './nativeSurfaceContract.d.ts';
|
|
1665
|
-
export declare function uncutCornerRadii(radii: SootSimCornerRadii, rect: {
|
|
1666
|
-
x: number;
|
|
1667
|
-
y: number;
|
|
1668
|
-
width: number;
|
|
1669
|
-
height: number;
|
|
1670
|
-
}, clipped: {
|
|
1671
|
-
x: number;
|
|
1672
|
-
y: number;
|
|
1673
|
-
width: number;
|
|
1674
|
-
height: number;
|
|
1675
|
-
}): SootSimCornerRadii | undefined;
|
|
1676
|
-
export interface SootSimWebKitConfiguration {
|
|
1677
|
-
navigation: number;
|
|
1678
|
-
navigationType: -1 | 2 | 3;
|
|
1679
|
-
userScripts: Array<{
|
|
1680
|
-
source: string;
|
|
1681
|
-
time: 0 | 1;
|
|
1682
|
-
}>;
|
|
1683
|
-
messageHandlers: string[];
|
|
1684
|
-
userAgent?: string;
|
|
1685
|
-
}
|
|
1686
|
-
export type SootSimWebKitValue = {
|
|
1687
|
-
type: 'null';
|
|
1688
|
-
} | {
|
|
1689
|
-
type: 'string';
|
|
1690
|
-
value: string;
|
|
1691
|
-
} | {
|
|
1692
|
-
type: 'number';
|
|
1693
|
-
value: number;
|
|
1694
|
-
} | {
|
|
1695
|
-
type: 'boolean';
|
|
1696
|
-
value: boolean;
|
|
1697
|
-
} | {
|
|
1698
|
-
type: 'date';
|
|
1699
|
-
value: number;
|
|
1700
|
-
} | {
|
|
1701
|
-
type: 'array';
|
|
1702
|
-
value: SootSimWebKitValue[];
|
|
1703
|
-
} | {
|
|
1704
|
-
type: 'object';
|
|
1705
|
-
value: {
|
|
1706
|
-
[key: string]: SootSimWebKitValue;
|
|
1707
|
-
};
|
|
1708
|
-
};
|
|
1709
|
-
export type SootSimWebKitEvent = {
|
|
1710
|
-
event: 'themeColor';
|
|
1711
|
-
navigation: number;
|
|
1712
|
-
color: [number, number, number, number] | null;
|
|
1713
|
-
} | {
|
|
1714
|
-
event: 'start' | 'finish';
|
|
1715
|
-
navigation: number;
|
|
1716
|
-
url: string;
|
|
1717
|
-
title?: string;
|
|
1718
|
-
} | {
|
|
1719
|
-
event: 'title';
|
|
1720
|
-
url: string;
|
|
1721
|
-
title: string;
|
|
1722
|
-
} | {
|
|
1723
|
-
event: 'policy';
|
|
1724
|
-
shouldPerformDownload: boolean;
|
|
1725
|
-
headers?: Record<string, string>;
|
|
1726
|
-
method?: string;
|
|
1727
|
-
bodyBase64?: string;
|
|
1728
|
-
navigation: number;
|
|
1729
|
-
navigationType: number;
|
|
1730
|
-
targetURL: string;
|
|
1731
|
-
lock: number;
|
|
1732
|
-
} | {
|
|
1733
|
-
event: 'response';
|
|
1734
|
-
navigation: number;
|
|
1735
|
-
targetURL: string;
|
|
1736
|
-
status: number;
|
|
1737
|
-
mime: string;
|
|
1738
|
-
length?: number;
|
|
1739
|
-
lock: number;
|
|
1740
|
-
} | {
|
|
1741
|
-
event: 'file';
|
|
1742
|
-
navigation: number;
|
|
1743
|
-
requestId: number;
|
|
1744
|
-
url: string;
|
|
1745
|
-
} | {
|
|
1746
|
-
event: 'snapshot';
|
|
1747
|
-
requestId: number;
|
|
1748
|
-
pngBase64: string | null;
|
|
1749
|
-
} | {
|
|
1750
|
-
event: 'redirect';
|
|
1751
|
-
navigation: number;
|
|
1752
|
-
url: string;
|
|
1753
|
-
} | {
|
|
1754
|
-
event: 'fail';
|
|
1755
|
-
navigation: number;
|
|
1756
|
-
url: string;
|
|
1757
|
-
domain: string;
|
|
1758
|
-
code: number;
|
|
1759
|
-
description: string;
|
|
1760
|
-
provisional: boolean;
|
|
1761
|
-
} | {
|
|
1762
|
-
event: 'cookie';
|
|
1763
|
-
url: string;
|
|
1764
|
-
value: string;
|
|
1765
|
-
} | {
|
|
1766
|
-
event: 'responseCookies';
|
|
1767
|
-
url: string;
|
|
1768
|
-
headers: string[];
|
|
1769
|
-
} | {
|
|
1770
|
-
event: 'message';
|
|
1771
|
-
securityOrigin: string;
|
|
1772
|
-
name: string;
|
|
1773
|
-
body: SootSimWebKitValue;
|
|
1774
|
-
requestId: number;
|
|
1775
|
-
} | {
|
|
1776
|
-
event: 'commit';
|
|
1777
|
-
securityOrigin: string;
|
|
1778
|
-
navigation: number;
|
|
1779
|
-
url: string;
|
|
1780
|
-
canGoBack?: boolean;
|
|
1781
|
-
canGoForward?: boolean;
|
|
1782
|
-
} | {
|
|
1783
|
-
event: 'evaluate';
|
|
1784
|
-
requestId: number;
|
|
1785
|
-
result: {
|
|
1786
|
-
value?: SootSimWebKitValue;
|
|
1787
|
-
title?: string;
|
|
1788
|
-
undefined?: true;
|
|
1789
|
-
errorCode?: number;
|
|
1790
|
-
errorInfo?: Record<string, string | number>;
|
|
1791
|
-
};
|
|
1792
|
-
};
|
|
1793
|
-
export interface SootSimWebViewCookieStore {
|
|
1794
|
-
cookies: string;
|
|
1795
|
-
policy: 0 | 1;
|
|
1796
|
-
}
|
|
1797
|
-
export interface SootSimWebViewSpec extends Partial<NativeSurfacePresentation> {
|
|
1798
|
-
cookieStore?: SootSimWebViewCookieStore;
|
|
1799
|
-
captureOwner?: {
|
|
1800
|
-
surfaceId: string;
|
|
1801
|
-
generation: number;
|
|
1802
|
-
};
|
|
1803
|
-
webKit?: SootSimWebKitConfiguration;
|
|
1804
|
-
source?: SootSimWebViewSource;
|
|
1805
|
-
injectedJavaScript?: string;
|
|
1806
|
-
injectedJavaScriptBeforeContentLoaded?: string;
|
|
1807
|
-
injectedJavaScriptObject?: string;
|
|
1808
|
-
hasOnOpenWindowEvent?: boolean;
|
|
1809
|
-
hasOnShouldStartLoadWithRequest?: boolean;
|
|
1810
|
-
incognito?: boolean;
|
|
1811
|
-
javaScriptEnabled?: boolean;
|
|
1812
|
-
scrollEnabled?: boolean;
|
|
1813
|
-
startInLoadingState?: boolean;
|
|
1814
|
-
testID?: string;
|
|
1815
|
-
}
|
|
1816
|
-
export type SootSimWebViewEvent = {
|
|
1817
|
-
kind: 'webKit';
|
|
1818
|
-
instanceId: string;
|
|
1819
|
-
payload: SootSimWebKitEvent;
|
|
1820
|
-
} | {
|
|
1821
|
-
kind: 'message';
|
|
1822
|
-
instanceId: string;
|
|
1823
|
-
data: string;
|
|
1824
|
-
url: string;
|
|
1825
|
-
loading: boolean;
|
|
1826
|
-
title: string;
|
|
1827
|
-
canGoBack: boolean;
|
|
1828
|
-
canGoForward: boolean;
|
|
1829
|
-
lockIdentifier: number;
|
|
1830
|
-
} | {
|
|
1831
|
-
kind: 'presentation';
|
|
1832
|
-
instanceId: string;
|
|
1833
|
-
live: boolean;
|
|
1834
|
-
closable: boolean;
|
|
1835
|
-
} | {
|
|
1836
|
-
kind: 'loadStart';
|
|
1837
|
-
instanceId: string;
|
|
1838
|
-
url: string;
|
|
1839
|
-
loading: boolean;
|
|
1840
|
-
navigationType: SootSimWebViewNavigationType;
|
|
1841
|
-
} | {
|
|
1842
|
-
kind: 'load';
|
|
1843
|
-
instanceId: string;
|
|
1844
|
-
url: string;
|
|
1845
|
-
} | {
|
|
1846
|
-
kind: 'loadEnd';
|
|
1847
|
-
instanceId: string;
|
|
1848
|
-
url: string;
|
|
1849
|
-
} | {
|
|
1850
|
-
kind: 'openWindow';
|
|
1851
|
-
instanceId: string;
|
|
1852
|
-
targetUrl: string;
|
|
1853
|
-
} | {
|
|
1854
|
-
kind: 'navigationStateChange';
|
|
1855
|
-
instanceId: string;
|
|
1856
|
-
url: string;
|
|
1857
|
-
title: string;
|
|
1858
|
-
loading: boolean;
|
|
1859
|
-
canGoBack: boolean;
|
|
1860
|
-
canGoForward: boolean;
|
|
1861
|
-
} | {
|
|
1862
|
-
kind: 'shouldStartLoadWithRequest';
|
|
1863
|
-
instanceId: string;
|
|
1864
|
-
url: string;
|
|
1865
|
-
mainDocumentURL: string;
|
|
1866
|
-
navigationType: SootSimWebViewNavigationType;
|
|
1867
|
-
isTopFrame: boolean;
|
|
1868
|
-
hasTargetFrame: boolean;
|
|
1869
|
-
lockIdentifier: number;
|
|
1870
|
-
loading: boolean;
|
|
1871
|
-
} | {
|
|
1872
|
-
kind: 'loadingError';
|
|
1873
|
-
instanceId: string;
|
|
1874
|
-
url: string;
|
|
1875
|
-
domain: string;
|
|
1876
|
-
code: number;
|
|
1877
|
-
description: string;
|
|
1878
|
-
didFailProvisionalNavigation: boolean;
|
|
1879
|
-
} | {
|
|
1880
|
-
kind: 'httpError';
|
|
1881
|
-
instanceId: string;
|
|
1882
|
-
url: string;
|
|
1883
|
-
statusCode: number;
|
|
1884
|
-
};
|
|
1885
|
-
export type SootSimWebViewNavigationType = 'click' | 'formsubmit' | 'backforward' | 'reload' | 'formresubmit' | 'other';
|
|
1886
|
-
export type SootSimWebKitReply = {
|
|
1887
|
-
json: string;
|
|
1888
|
-
} | {
|
|
1889
|
-
undefined: true;
|
|
1890
|
-
} | {
|
|
1891
|
-
error: string;
|
|
1892
|
-
};
|
|
1893
|
-
export interface SootSimWebViewBridge {
|
|
1894
|
-
setMessageHandlers(instanceId: string, names: string[]): void;
|
|
1895
|
-
replyScriptMessage(instanceId: string, requestId: number, reply: SootSimWebKitReply): void;
|
|
1896
|
-
evaluateJavaScript(instanceId: string, requestId: number, js: string, userAgent?: string): void;
|
|
1897
|
-
updateWebKitCookies(instanceId: string, requestId: number, cookies: string, policy: number): void;
|
|
1898
|
-
mount(instanceId: string, spec: SootSimWebViewSpec): void;
|
|
1899
|
-
update(instanceId: string, spec: SootSimWebViewSpec): void;
|
|
1900
|
-
unmount(instanceId: string): void;
|
|
1901
|
-
activate(instanceId: string, point?: {
|
|
1902
|
-
x: number;
|
|
1903
|
-
y: number;
|
|
1904
|
-
}): void;
|
|
1905
|
-
deactivate(instanceId: string): void;
|
|
1906
|
-
injectJavaScript(instanceId: string, js: string): void;
|
|
1907
|
-
postMessage(instanceId: string, data: string): void;
|
|
1908
|
-
goBack(instanceId: string): void;
|
|
1909
|
-
goForward(instanceId: string): void;
|
|
1910
|
-
reload(instanceId: string): void;
|
|
1911
|
-
stopLoading(instanceId: string, navigation?: number): void;
|
|
1912
|
-
shouldStartLoadWithLockIdentifier(lockIdentifier: number, shouldStart: boolean): void;
|
|
1913
|
-
fileResponse(instanceId: string, requestId: number, file: {
|
|
1914
|
-
mimeType: string;
|
|
1915
|
-
bytesBase64: string;
|
|
1916
|
-
} | null): void;
|
|
1917
|
-
snapshot(instanceId: string, requestId: number, rect: {
|
|
1918
|
-
x: number;
|
|
1919
|
-
y: number;
|
|
1920
|
-
width: number;
|
|
1921
|
-
height: number;
|
|
1922
|
-
}, scale: number): void;
|
|
1923
|
-
subscribe(listener: (event: SootSimWebViewEvent) => void): () => void;
|
|
1924
|
-
}
|
|
1925
|
-
export interface SootSimA11yBridge {
|
|
1926
|
-
[key: string]: unknown;
|
|
1927
|
-
setMode?(mode: string): void;
|
|
1928
|
-
getMode?(): string;
|
|
1929
|
-
enable?(): void;
|
|
1930
|
-
disable?(): void;
|
|
1931
|
-
inspect?(on?: boolean): MaybeAsync<boolean>;
|
|
1932
|
-
profile?(): MaybeAsync<Record<string, unknown> | undefined>;
|
|
1933
|
-
resetProfile?(): MaybeAsync<void>;
|
|
1934
|
-
}
|
|
1935
|
-
export interface SootSimPerfBridge {
|
|
1936
|
-
[key: string]: unknown;
|
|
1937
|
-
enableFrameStats?(reset?: boolean): unknown;
|
|
1938
|
-
disableFrameStats?(): void;
|
|
1939
|
-
getVsyncStats?(): unknown;
|
|
1940
|
-
resetVsyncStats?(): void;
|
|
1941
|
-
getLiveRenderLoad(): SootSimLiveRenderLoad;
|
|
1942
|
-
}
|
|
1943
|
-
export interface SootSimLiveRenderLoad {
|
|
1944
|
-
liveFrames: number;
|
|
1945
|
-
softwareAdapter: boolean | null;
|
|
1946
|
-
}
|
|
1947
|
-
export interface SootSimDebugBridge {
|
|
1948
|
-
frameBreakdown: {
|
|
1949
|
-
start(): void;
|
|
1950
|
-
stop(): Promise<FrameBreakdownCapture>;
|
|
1951
|
-
};
|
|
1952
|
-
enable(...channels: string[]): readonly string[];
|
|
1953
|
-
disable(...channels: string[]): readonly string[];
|
|
1954
|
-
toggle(channel: string): boolean;
|
|
1955
|
-
status(): readonly string[];
|
|
1956
|
-
channels(): readonly string[];
|
|
1957
|
-
flags(): Readonly<Record<string, boolean>>;
|
|
1958
|
-
snapshot(label?: string): unknown;
|
|
1959
|
-
diff(a: string, b: string): unknown;
|
|
1960
|
-
snapshots(): string[];
|
|
1961
|
-
clearSnapshots(label?: string): void;
|
|
1962
|
-
findSheets(): unknown[];
|
|
1963
|
-
findPortals(): unknown[];
|
|
1964
|
-
record(on?: boolean): boolean;
|
|
1965
|
-
recent(channel?: string, limit?: number): unknown[];
|
|
1966
|
-
clearEvents(): void;
|
|
1967
|
-
cullStats?(reset?: boolean): {
|
|
1968
|
-
examined: number;
|
|
1969
|
-
kept: number;
|
|
1970
|
-
skipped: number;
|
|
1971
|
-
};
|
|
1972
|
-
}
|
|
1973
|
-
export interface SootSimRecorderBridge {
|
|
1974
|
-
renderScene(): Promise<{
|
|
1975
|
-
durationMs: number;
|
|
1976
|
-
frameCount: number;
|
|
1977
|
-
renderTimeMs: number;
|
|
1978
|
-
}>;
|
|
1979
|
-
start(opts?: {
|
|
1980
|
-
format?: 'webm' | 'mp4';
|
|
1981
|
-
fps?: number;
|
|
1982
|
-
layers?: 'full' | 'tenant' | 'shell';
|
|
1983
|
-
}): Promise<{
|
|
1984
|
-
ok: boolean;
|
|
1985
|
-
error?: string;
|
|
1986
|
-
format?: string;
|
|
1987
|
-
startedAtMs?: number;
|
|
1988
|
-
}>;
|
|
1989
|
-
stop(): Promise<{
|
|
1990
|
-
ok: boolean;
|
|
1991
|
-
error?: string;
|
|
1992
|
-
size?: number;
|
|
1993
|
-
mime?: string;
|
|
1994
|
-
durationMs?: number;
|
|
1995
|
-
frameCount?: number;
|
|
1996
|
-
profile?: ProfileFile | null;
|
|
1997
|
-
}>;
|
|
1998
|
-
state(): 'idle' | 'starting' | 'recording' | 'processing' | 'ready';
|
|
1999
|
-
getStartedAtMs(): number | null;
|
|
2000
|
-
getDurationMs(): number | null;
|
|
2001
|
-
getBlob(): Blob | null;
|
|
2002
|
-
getBlobBase64(opts?: {
|
|
2003
|
-
chunk?: number;
|
|
2004
|
-
offset?: number;
|
|
2005
|
-
}): Promise<{
|
|
2006
|
-
data: string;
|
|
2007
|
-
size: number;
|
|
2008
|
-
offset: number;
|
|
2009
|
-
done: boolean;
|
|
2010
|
-
mime: string;
|
|
2011
|
-
} | null>;
|
|
2012
|
-
captureFrames(count: number, durationMs: number): Promise<SootSimCapturedFrame[]>;
|
|
2013
|
-
startFrameCapture(opts: {
|
|
2014
|
-
count: number;
|
|
2015
|
-
durationMs: number;
|
|
2016
|
-
maxWidth?: number;
|
|
2017
|
-
observation?: 'presented';
|
|
2018
|
-
surfaceId?: string;
|
|
2019
|
-
}): Promise<{
|
|
2020
|
-
ok: boolean;
|
|
2021
|
-
requestId?: number;
|
|
2022
|
-
error?: string;
|
|
2023
|
-
}>;
|
|
2024
|
-
getFrameCaptureResult(requestId: number, page?: {
|
|
2025
|
-
offset: number;
|
|
2026
|
-
limit: number;
|
|
2027
|
-
}): Promise<{
|
|
2028
|
-
ok: boolean;
|
|
2029
|
-
done: boolean;
|
|
2030
|
-
capturedCount: number;
|
|
2031
|
-
totalFrames?: number;
|
|
2032
|
-
frames?: SootSimCapturedFrame[];
|
|
2033
|
-
error?: string;
|
|
2034
|
-
} | null>;
|
|
2035
|
-
getFrameCaptureProgress(requestId: number, opts?: {
|
|
2036
|
-
latestFrames?: number;
|
|
2037
|
-
presentedBeforeEpochMs?: number;
|
|
2038
|
-
}): Promise<{
|
|
2039
|
-
done: boolean;
|
|
2040
|
-
capturedCount: number;
|
|
2041
|
-
latestFrames?: SootSimCapturedFrame[];
|
|
2042
|
-
} | null>;
|
|
2043
|
-
stopFrameCapture(requestId: number): Promise<{
|
|
2044
|
-
ok: boolean;
|
|
2045
|
-
error?: string;
|
|
2046
|
-
}>;
|
|
2047
|
-
flushFrameCapture(requestId: number): Promise<{
|
|
2048
|
-
ok: boolean;
|
|
2049
|
-
error?: string;
|
|
2050
|
-
}>;
|
|
2051
|
-
captureGif(opts: {
|
|
2052
|
-
frames: number;
|
|
2053
|
-
durationMs: number;
|
|
2054
|
-
maxWidth?: number;
|
|
2055
|
-
}): Promise<{
|
|
2056
|
-
data: string;
|
|
2057
|
-
size: number;
|
|
2058
|
-
} | null>;
|
|
2059
|
-
forceRelease(): Promise<boolean>;
|
|
2060
|
-
cancel?(): void;
|
|
2061
|
-
}
|
|
2062
|
-
export interface SootSimCapturedFrame {
|
|
2063
|
-
data: string;
|
|
2064
|
-
size: number;
|
|
2065
|
-
capturedAtEpochMs: number;
|
|
2066
|
-
frameToken?: number;
|
|
2067
|
-
surfacePresentations?: SootSimCapturedSurfacePresentation[];
|
|
2068
|
-
}
|
|
2069
|
-
export interface SootSimCapturedSurfacePresentation {
|
|
2070
|
-
surfaceId: string;
|
|
2071
|
-
display: string;
|
|
2072
|
-
opacity: number;
|
|
2073
|
-
scale: number;
|
|
2074
|
-
animations: number;
|
|
2075
|
-
}
|
|
2076
|
-
export interface SootSimEventRecorderBridge {
|
|
2077
|
-
[key: string]: unknown;
|
|
2078
|
-
start?(videoStartedAtMs?: number | null): Promise<boolean>;
|
|
2079
|
-
startPrelude?(): boolean;
|
|
2080
|
-
markVisibleStart?(videoStartedAtMs?: number | null): Promise<boolean>;
|
|
2081
|
-
stop?(): SootSimReplayEvent[];
|
|
2082
|
-
clear?(): void;
|
|
2083
|
-
getEvents?(): SootSimReplayEvent[];
|
|
2084
|
-
isRecording?(): boolean;
|
|
2085
|
-
}
|
|
2086
|
-
export interface SootSimPreviewRecorder {
|
|
2087
|
-
flush(): Promise<void>;
|
|
2088
|
-
list(bundleOrigin: string): unknown[];
|
|
2089
|
-
clear(): void;
|
|
2090
|
-
[key: string]: unknown;
|
|
2091
|
-
}
|
|
2092
|
-
export interface SootSimPortalManager {
|
|
2093
|
-
[key: string]: unknown;
|
|
2094
|
-
ensureHost?(name: string): unknown;
|
|
2095
|
-
releaseHost?(name: string): void;
|
|
2096
|
-
getHostNode?(name: string): unknown;
|
|
2097
|
-
register?(name: string, node: unknown): () => void;
|
|
2098
|
-
get?(name: string): unknown;
|
|
2099
|
-
list?(): string[];
|
|
2100
|
-
}
|
|
2101
|
-
export interface SootSimWindowScaleBridge {
|
|
2102
|
-
get(): 'physical' | 'point' | 'pixel' | 'fit';
|
|
2103
|
-
set(mode: 'physical' | 'point' | 'pixel' | 'fit'): void;
|
|
2104
|
-
subscribe(fn: () => void): () => void;
|
|
2105
|
-
}
|
|
2106
|
-
export interface SootSimElectronBridge {
|
|
2107
|
-
personalHomeApps?: PeachHomeApp[];
|
|
2108
|
-
homeAppStorage?(bundleUrl: string): Promise<PeachHomeStorageValue[]>;
|
|
2109
|
-
captureScreen(full?: boolean): Promise<string | null>;
|
|
2110
|
-
captureVideo(): Promise<unknown>;
|
|
2111
|
-
presentationMode?: 'window' | 'grid';
|
|
2112
|
-
getPlatform?(): string;
|
|
2113
|
-
shouldOfferCliInstall?(): Promise<boolean>;
|
|
2114
|
-
installCli?(): Promise<{
|
|
2115
|
-
persistentDaemon: boolean;
|
|
2116
|
-
}>;
|
|
2117
|
-
onCliInstallOffer?(callback: () => void): () => void;
|
|
2118
|
-
openExternal?(url: string): MaybeAsync<void>;
|
|
2119
|
-
nativeWebView?: true;
|
|
2120
|
-
openBrowserWindow?(request: {
|
|
2121
|
-
id: string;
|
|
2122
|
-
url: string;
|
|
2123
|
-
width?: number;
|
|
2124
|
-
height?: number;
|
|
2125
|
-
}): Promise<void>;
|
|
2126
|
-
closeBrowserWindow?(id: string): Promise<void>;
|
|
2127
|
-
onBrowserWindowClosed?(callback: (id: string) => void): () => void;
|
|
2128
|
-
setDevice?(model: string): void;
|
|
2129
|
-
setDevicePosture?(posture: string, foldActive: boolean): void;
|
|
2130
|
-
setDeviceOrientation?(orientation: string): void;
|
|
2131
|
-
[key: string]: unknown;
|
|
2132
|
-
}
|
|
2133
|
-
export interface PeachHomeApp {
|
|
2134
|
-
id: string;
|
|
2135
|
-
name: string;
|
|
2136
|
-
icon: string;
|
|
2137
|
-
source: {
|
|
2138
|
-
bundleUrl?: string;
|
|
2139
|
-
devUrl?: string;
|
|
2140
|
-
};
|
|
2141
|
-
}
|
|
2142
|
-
export interface PeachHomeStorageValue {
|
|
2143
|
-
key: string;
|
|
2144
|
-
value: string;
|
|
2145
|
-
store: 'localStorage' | 'secureStore';
|
|
2146
|
-
service?: string;
|
|
2147
|
-
}
|
|
2148
|
-
export interface PeachHomeStorageBinding {
|
|
2149
|
-
key: string;
|
|
2150
|
-
store: 'localStorage' | 'secureStore';
|
|
2151
|
-
service?: string;
|
|
2152
|
-
value?: string;
|
|
2153
|
-
credential?: {
|
|
2154
|
-
file: string;
|
|
2155
|
-
field: string[];
|
|
2156
|
-
encoding?: 'json' | 'text';
|
|
2157
|
-
};
|
|
2158
|
-
}
|
|
2159
|
-
export interface PeachHomeScreenConfig {
|
|
2160
|
-
apps: Array<PeachHomeApp & {
|
|
2161
|
-
storage?: PeachHomeStorageBinding[];
|
|
2162
|
-
}>;
|
|
2163
|
-
}
|
|
2164
|
-
export interface SootSimConsoleBuffer {
|
|
2165
|
-
[key: string]: unknown;
|
|
2166
|
-
getErrors?(limit?: number): unknown[];
|
|
2167
|
-
getWarnings?(limit?: number): unknown[];
|
|
2168
|
-
getAll?(limit?: number): unknown[];
|
|
2169
|
-
clear?(): void;
|
|
2170
|
-
count?(): {
|
|
2171
|
-
errors: number;
|
|
2172
|
-
warnings: number;
|
|
2173
|
-
total: number;
|
|
2174
|
-
};
|
|
2175
|
-
}
|
|
2176
|
-
export interface SootSimShellCommands {
|
|
2177
|
-
[key: string]: unknown;
|
|
2178
|
-
launchApp?(appId: string): MaybeAsync<unknown>;
|
|
2179
|
-
goHome?(): MaybeAsync<unknown>;
|
|
2180
|
-
openSwitcher?(): MaybeAsync<unknown>;
|
|
2181
|
-
openSwitcherCard?(appId: string): MaybeAsync<unknown>;
|
|
2182
|
-
dispatch?(cmd: {
|
|
2183
|
-
type: string;
|
|
2184
|
-
[key: string]: unknown;
|
|
2185
|
-
}): void;
|
|
2186
|
-
}
|
|
2187
|
-
export interface SootSimMainShellBridge {
|
|
2188
|
-
[key: string]: unknown;
|
|
2189
|
-
launchApp?(appId: string): MaybeAsync<unknown>;
|
|
2190
|
-
goBack?(): MaybeAsync<unknown>;
|
|
2191
|
-
goHome?(): MaybeAsync<unknown>;
|
|
2192
|
-
openSwitcher?(): MaybeAsync<unknown>;
|
|
2193
|
-
openSwitcherCard?(appId: string): MaybeAsync<unknown>;
|
|
2194
|
-
toggleLock?(): MaybeAsync<unknown>;
|
|
2195
|
-
setTopOverlay?(overlay: 'none' | 'notification-center' | 'control-center'): MaybeAsync<unknown>;
|
|
2196
|
-
getState?(): MaybeAsync<Record<string, unknown> | null>;
|
|
2197
|
-
postNativeUIRequest?(request: unknown): MaybeAsync<unknown>;
|
|
2198
|
-
onNativeUIEvent?(cb: (event: unknown) => void): () => void;
|
|
2199
|
-
}
|
|
2200
|
-
export interface SootSimDemoShareLeaseOptions {
|
|
2201
|
-
ownerToken?: string | null;
|
|
2202
|
-
bundleMode?: 'development' | 'production';
|
|
2203
|
-
}
|
|
2204
|
-
export interface SootSimDemoShareBridge {
|
|
2205
|
-
activateDemoShare?(name: string, options?: SootSimDemoShareLeaseOptions): MaybeAsync<unknown>;
|
|
2206
|
-
releaseCurrentShare?(options?: SootSimDemoShareLeaseOptions): MaybeAsync<unknown>;
|
|
2207
|
-
}
|
|
2208
|
-
export interface SootSimRenderActivityState {
|
|
2209
|
-
busy: boolean;
|
|
2210
|
-
frameToken: number;
|
|
2211
|
-
}
|
|
2212
|
-
export interface SootSimShellSceneFanoutStats {
|
|
2213
|
-
fastVersion: number;
|
|
2214
|
-
fastFanouts: number;
|
|
2215
|
-
slowFanouts: number;
|
|
2216
|
-
listenerFanouts: number;
|
|
2217
|
-
}
|
|
2218
|
-
export interface SootSimAuxCompositorStats {
|
|
2219
|
-
trajectoryPosts: number;
|
|
2220
|
-
trajectoryCancels: number;
|
|
2221
|
-
sceneSyncs: number;
|
|
2222
|
-
auxStylePasses: number;
|
|
2223
|
-
browserCompositeFrames: number;
|
|
2224
|
-
shellScene: SootSimShellSceneFanoutStats | null;
|
|
2225
|
-
}
|
|
2226
|
-
export interface SootSimLiveCompositeBridge {
|
|
2227
|
-
getCanvas(): HTMLCanvasElement | null;
|
|
2228
|
-
getFrameToken(): number;
|
|
2229
|
-
captureFresh(): Promise<{
|
|
2230
|
-
canvas: HTMLCanvasElement | null;
|
|
2231
|
-
frameToken: number;
|
|
2232
|
-
}>;
|
|
2233
|
-
subscribe(listener: () => void, opts?: {
|
|
2234
|
-
maxWidth?: number;
|
|
2235
|
-
}): () => void;
|
|
2236
|
-
setSourceScale(scale: number): void;
|
|
2237
|
-
markDirty(): void;
|
|
2238
|
-
}
|
|
2239
|
-
export interface PeachAnimatedExecution {
|
|
2240
|
-
id: number;
|
|
2241
|
-
kind: 'delay' | 'timing' | 'spring' | 'decay';
|
|
2242
|
-
phase: 'unknown' | 'waiting' | 'running' | 'finished' | 'stopped';
|
|
2243
|
-
delayStartedAtMs: number | null;
|
|
2244
|
-
delayMs: number | null;
|
|
2245
|
-
startedAtMs: number | null;
|
|
2246
|
-
lastCallbackMs: number | null;
|
|
2247
|
-
callbacks: number;
|
|
2248
|
-
sampleValue: number | null;
|
|
2249
|
-
appliedValue: number | null;
|
|
2250
|
-
applications: number;
|
|
2251
|
-
endCallback: 'absent' | 'invoking' | 'returned' | null;
|
|
2252
|
-
}
|
|
2253
|
-
export interface PeachLockstepTenantFrame {
|
|
2254
|
-
frameNowMs: number | null;
|
|
2255
|
-
guestNowMs: number;
|
|
2256
|
-
guestClockFrozen: boolean;
|
|
2257
|
-
animationFramesFrozen: boolean;
|
|
2258
|
-
animationFrameCallbacks: number;
|
|
2259
|
-
animatedExecution: {
|
|
2260
|
-
records: PeachAnimatedExecution[];
|
|
2261
|
-
evicted: number;
|
|
2262
|
-
} | null;
|
|
2263
|
-
animatedRenderTriggers: number;
|
|
2264
|
-
rendered: boolean;
|
|
2265
|
-
}
|
|
2266
|
-
export interface SootSimLockstepFrameReceipt {
|
|
2267
|
-
frameIndex: number;
|
|
2268
|
-
virtualTimestampMs: number;
|
|
2269
|
-
tenantFrame: PeachLockstepTenantFrame | null;
|
|
2270
|
-
}
|
|
2271
|
-
export type LockstepInputReceipt = {
|
|
2272
|
-
phase: 'down' | 'move' | 'up';
|
|
2273
|
-
x: number;
|
|
2274
|
-
y: number;
|
|
2275
|
-
pointerId: number;
|
|
2276
|
-
eventTimestampMs: number;
|
|
2277
|
-
frameIndex: number;
|
|
2278
|
-
virtualTimestampMs: number;
|
|
2279
|
-
};
|
|
2280
|
-
export type LockstepScheduledInput = {
|
|
2281
|
-
afterMs: number;
|
|
2282
|
-
eventAfterMs?: number;
|
|
2283
|
-
phase: LockstepInputReceipt['phase'];
|
|
2284
|
-
x: number;
|
|
2285
|
-
y: number;
|
|
2286
|
-
pointerId: number;
|
|
2287
|
-
deliver: (timestampMs: number) => Promise<void>;
|
|
2288
|
-
};
|
|
2289
|
-
export interface SootSimLockstepCaptureController {
|
|
2290
|
-
readonly initialFrame: SootSimLockstepFrameReceipt;
|
|
2291
|
-
readonly inputReceipts: LockstepInputReceipt[];
|
|
2292
|
-
scheduleInput(events: LockstepScheduledInput[]): Promise<void>;
|
|
2293
|
-
stepFrame(elapsedMs?: number, options?: {
|
|
2294
|
-
awaitPageShown?: boolean;
|
|
2295
|
-
}): Promise<SootSimLockstepFrameReceipt>;
|
|
2296
|
-
flushFrame(options?: {
|
|
2297
|
-
awaitPageShown?: boolean;
|
|
2298
|
-
}): Promise<SootSimLockstepFrameReceipt>;
|
|
2299
|
-
framesForOffset(offsetMs: number): number;
|
|
2300
|
-
stageTouchOffsetMs(touches: ReadonlyArray<{
|
|
2301
|
-
scheduledMs: number;
|
|
2302
|
-
landedMs: number;
|
|
2303
|
-
}>, offsetMs: number): number;
|
|
2304
|
-
stepToOffset(anchor: SootSimLockstepFrameReceipt, offsetMs: number): Promise<SootSimLockstepFrameReceipt>;
|
|
2305
|
-
endWorkletFrameReceipt(): void;
|
|
2306
|
-
end(): void;
|
|
2307
|
-
}
|
|
2308
|
-
export interface SootSimLockstepCaptureBridge {
|
|
2309
|
-
begin(fps: number, options?: {
|
|
2310
|
-
baseline?: boolean;
|
|
2311
|
-
holdGpuScenes?: boolean;
|
|
2312
|
-
workletFrameTimestampsSeconds?: number[];
|
|
2313
|
-
}): Promise<SootSimLockstepCaptureController>;
|
|
2314
|
-
end(): boolean;
|
|
2315
|
-
}
|
|
2316
|
-
export type PointerDeliveryTarget = 'tenant' | 'shell';
|
|
2317
|
-
export interface PointerDeliveryPendingDrop {
|
|
2318
|
-
ackRequestId: number;
|
|
2319
|
-
target: PointerDeliveryTarget;
|
|
2320
|
-
surfaceId: string;
|
|
2321
|
-
phase: string;
|
|
2322
|
-
elapsedMs: number;
|
|
2323
|
-
timestamp: number;
|
|
2324
|
-
}
|
|
2325
|
-
export interface PointerDeliveryStats {
|
|
2326
|
-
sent: number;
|
|
2327
|
-
acked: number;
|
|
2328
|
-
droppedTimeouts: number;
|
|
2329
|
-
pending: number;
|
|
2330
|
-
lastAckLatencyMs: number | null;
|
|
2331
|
-
maxAckLatencyMs: number;
|
|
2332
|
-
recentDrops: PointerDeliveryPendingDrop[];
|
|
2333
|
-
}
|
|
2334
|
-
export interface SootSimShellHostBridge {
|
|
2335
|
-
getPointerDeliveryStats(): PointerDeliveryStats;
|
|
2336
|
-
getHeartbeatCount(): number;
|
|
2337
|
-
getLastHeartbeatAt(): number;
|
|
2338
|
-
getRenderActivity(): SootSimRenderActivityState;
|
|
2339
|
-
subscribeRenderActivity(listener: () => void): () => void;
|
|
2340
|
-
getSceneFanoutStats(): SootSimShellSceneFanoutStats;
|
|
2341
|
-
triggerSnapshotRequest(): void;
|
|
2342
|
-
}
|
|
2343
|
-
export type SootSimLaunchArguments = Record<string, unknown>;
|
|
2344
|
-
export interface SootSimExternalAppLifecycleOptions {
|
|
2345
|
-
launchArguments?: SootSimLaunchArguments | null;
|
|
2346
|
-
initialUrl?: string | null;
|
|
2347
|
-
relaunch?: boolean;
|
|
2348
|
-
}
|
|
2349
|
-
export type SootSimStorageResetStrategy = 'data' | 'full';
|
|
2350
|
-
export interface SootSimExternalAppResetOptions extends SootSimExternalAppLifecycleOptions {
|
|
2351
|
-
strategy: SootSimStorageResetStrategy;
|
|
2352
|
-
}
|
|
2353
|
-
export interface SootSimExternalAppResetResult {
|
|
2354
|
-
cleared: string[];
|
|
2355
|
-
failures: string[];
|
|
2356
|
-
relaunched: boolean;
|
|
2357
|
-
workerReloaded: boolean;
|
|
2358
|
-
}
|
|
2359
|
-
export interface SootSimHotRemountBridge {
|
|
2360
|
-
hotRemount(reason?: string): MaybeAsync<void>;
|
|
2361
|
-
reloadExternalApp(options?: SootSimExternalAppLifecycleOptions): MaybeAsync<void>;
|
|
2362
|
-
resetExternalApp?(options: SootSimExternalAppResetOptions): MaybeAsync<SootSimExternalAppResetResult>;
|
|
2363
|
-
}
|
|
2364
|
-
export interface SootSimSettingsBridge {
|
|
2365
|
-
get(): unknown;
|
|
2366
|
-
set(key: string, value: unknown): boolean;
|
|
2367
|
-
apply(settings: Record<string, unknown>): unknown;
|
|
2368
|
-
applyRuntime(settings: Record<string, unknown>): unknown;
|
|
2369
|
-
subscribe(listener: () => void): () => void;
|
|
2370
|
-
}
|
|
2371
|
-
export interface SootSimCaptureFilter {
|
|
2372
|
-
hideTestIds?: string[];
|
|
2373
|
-
soloTestId?: string;
|
|
2374
|
-
soloNodeId?: number;
|
|
2375
|
-
soloOwnPaint?: boolean;
|
|
2376
|
-
fitToOutput?: {
|
|
2377
|
-
width: number;
|
|
2378
|
-
height: number;
|
|
2379
|
-
frame?: SootSimLayout;
|
|
2380
|
-
};
|
|
2381
|
-
}
|
|
2382
|
-
export interface SootSimCaptureOptions {
|
|
2383
|
-
layers?: 'full' | 'tenant' | 'shell';
|
|
2384
|
-
usePresentedFrame?: boolean;
|
|
2385
|
-
outputWidth?: number;
|
|
2386
|
-
outputHeight?: number;
|
|
2387
|
-
crop?: {
|
|
2388
|
-
x: number;
|
|
2389
|
-
y: number;
|
|
2390
|
-
w: number;
|
|
2391
|
-
h: number;
|
|
2392
|
-
};
|
|
2393
|
-
suppressText?: boolean;
|
|
2394
|
-
captureFilter?: SootSimCaptureFilter;
|
|
2395
|
-
format?: 'webp' | 'png';
|
|
2396
|
-
quality?: number;
|
|
2397
|
-
}
|
|
2398
|
-
export declare const SOOTSIM_CAPTURE_IMAGE_QUALITY = 0.8;
|
|
2399
|
-
export declare function sootsimCaptureIsFlat(canvas: {
|
|
2400
|
-
width: number;
|
|
2401
|
-
height: number;
|
|
2402
|
-
getContext(id: '2d', opts?: {
|
|
2403
|
-
willReadFrequently?: boolean;
|
|
2404
|
-
}): unknown;
|
|
2405
|
-
}): boolean;
|
|
2406
|
-
export declare const SOOTSIM_TIMELINE_KINDS: readonly ['console', 'fetch', 'app-launch', 'shell', 'route', 'screen', 'flow-step', 'keyboard', 'alert', 'actionsheet', 'picker', 'notification', 'toast', 'scroll', 'gesture', 'text-input', 'react-commit', 'layout', 'animation', 'console-log', 'frame', 'profile', 'animation-samples', 'memory'];
|
|
2407
|
-
export type SootSimTimelineKind = (typeof SOOTSIM_TIMELINE_KINDS)[number];
|
|
2408
|
-
export declare function isTimelineKind(value: unknown): value is SootSimTimelineKind;
|
|
2409
|
-
export declare function isTimelineEvent(value: unknown): value is SootSimTimelineEvent;
|
|
2410
|
-
export type SootSimTimelineContext = 'host' | 'shell' | 'tenant';
|
|
2411
|
-
export interface SootSimTimelineEvent {
|
|
2412
|
-
schemaVersion: 1;
|
|
2413
|
-
t: number;
|
|
2414
|
-
seq: number;
|
|
2415
|
-
context: SootSimTimelineContext;
|
|
2416
|
-
kind: SootSimTimelineKind;
|
|
2417
|
-
id?: string;
|
|
2418
|
-
data: unknown;
|
|
2419
|
-
}
|
|
2420
|
-
export interface SootSimTimelineQuery {
|
|
2421
|
-
kinds?: SootSimTimelineKind | SootSimTimelineKind[];
|
|
2422
|
-
since?: number;
|
|
2423
|
-
sinceCursor?: string;
|
|
2424
|
-
until?: number;
|
|
2425
|
-
limit?: number;
|
|
2426
|
-
}
|
|
2427
|
-
export interface SootSimTimelineQueryResult {
|
|
2428
|
-
events: SootSimTimelineEvent[];
|
|
2429
|
-
watermark: number;
|
|
2430
|
-
}
|
|
2431
|
-
export interface SootSimTimelineCountsByKind {
|
|
2432
|
-
[kind: string]: number;
|
|
2433
|
-
}
|
|
2434
|
-
export interface SootSimTimelineSummary {
|
|
2435
|
-
total: number;
|
|
2436
|
-
byKind: SootSimTimelineCountsByKind;
|
|
2437
|
-
firstAt: number | null;
|
|
2438
|
-
lastAt: number | null;
|
|
2439
|
-
}
|
|
2440
|
-
export interface SootSimTimelineStatus {
|
|
2441
|
-
enabled: SootSimTimelineKind[];
|
|
2442
|
-
all: SootSimTimelineKind[];
|
|
2443
|
-
ringSizes: {
|
|
2444
|
-
host: number;
|
|
2445
|
-
shell: number;
|
|
2446
|
-
tenant: number;
|
|
2447
|
-
};
|
|
2448
|
-
}
|
|
2449
|
-
export interface SootSimTimelineBridge {
|
|
2450
|
-
record(kind: SootSimTimelineKind, data: unknown, opts?: {
|
|
2451
|
-
id?: string;
|
|
2452
|
-
t?: number;
|
|
2453
|
-
}): void;
|
|
2454
|
-
recent(query?: SootSimTimelineQuery): SootSimTimelineQueryResult;
|
|
2455
|
-
summary(query?: SootSimTimelineQuery): SootSimTimelineSummary;
|
|
2456
|
-
cursorAdvance(key: string, watermark: number): void;
|
|
2457
|
-
cursorAt(key: string): number;
|
|
2458
|
-
cursorClear(key: string): void;
|
|
2459
|
-
enable(...kinds: (SootSimTimelineKind | 'all')[]): void;
|
|
2460
|
-
disable(...kinds: (SootSimTimelineKind | 'all')[]): void;
|
|
2461
|
-
clear(): void;
|
|
2462
|
-
status(): SootSimTimelineStatus;
|
|
2463
|
-
}
|
|
2464
|
-
export interface SootSimReactProfileBridge {
|
|
2465
|
-
start(opts?: {
|
|
2466
|
-
includeProps?: boolean;
|
|
2467
|
-
maxCommits?: number;
|
|
2468
|
-
}): MaybeAsync<unknown>;
|
|
2469
|
-
stop(): MaybeAsync<unknown>;
|
|
2470
|
-
slow(opts?: {
|
|
2471
|
-
limit?: number;
|
|
2472
|
-
}): MaybeAsync<unknown>;
|
|
2473
|
-
rerenders(opts?: {
|
|
2474
|
-
limit?: number;
|
|
2475
|
-
}): MaybeAsync<unknown>;
|
|
2476
|
-
tree(opts?: {
|
|
2477
|
-
depth?: number;
|
|
2478
|
-
find?: string;
|
|
2479
|
-
}): MaybeAsync<unknown>;
|
|
2480
|
-
why(fiberId: number): MaybeAsync<unknown>;
|
|
2481
|
-
}
|
|
2482
|
-
export interface SootSimShellPerfBridge {
|
|
2483
|
-
start(): MaybeAsync<unknown>;
|
|
2484
|
-
stop(): MaybeAsync<unknown>;
|
|
2485
|
-
}
|
|
2486
|
-
export type SootSimScrollTraceLayer = 'tenant' | 'shell' | 'compositor';
|
|
2487
|
-
export interface SootSimScrollOffsetSample {
|
|
2488
|
-
layer: SootSimScrollTraceLayer;
|
|
2489
|
-
t: number;
|
|
2490
|
-
seq: number;
|
|
2491
|
-
surfaceId: string;
|
|
2492
|
-
nodeId: number;
|
|
2493
|
-
generation?: number;
|
|
2494
|
-
frameToken?: number;
|
|
2495
|
-
surfaceEpoch?: number;
|
|
2496
|
-
textureEpoch?: number;
|
|
2497
|
-
drag?: boolean;
|
|
2498
|
-
momentum?: boolean;
|
|
2499
|
-
offsetX: number;
|
|
2500
|
-
offsetY: number;
|
|
2501
|
-
slotX?: number;
|
|
2502
|
-
slotY?: number;
|
|
2503
|
-
phase?: 'idle' | 'drag' | 'momentum' | 'active';
|
|
2504
|
-
paint?: number;
|
|
2505
|
-
contentWidth?: number;
|
|
2506
|
-
contentHeight?: number;
|
|
2507
|
-
viewportWidth?: number;
|
|
2508
|
-
viewportHeight?: number;
|
|
2509
|
-
}
|
|
2510
|
-
export interface SootSimTransitionProgressSample {
|
|
2511
|
-
t: number;
|
|
2512
|
-
surfaceId: string;
|
|
2513
|
-
stackId: number;
|
|
2514
|
-
progress: number;
|
|
2515
|
-
targetApplies: number;
|
|
2516
|
-
targetChanges: number;
|
|
2517
|
-
targetMisses: number;
|
|
2518
|
-
paintCount: number;
|
|
2519
|
-
}
|
|
2520
|
-
export interface SootSimPressPerformanceSample {
|
|
2521
|
-
inputSurfaceId: string;
|
|
2522
|
-
surfaceId: string;
|
|
2523
|
-
targetWasMounted: boolean;
|
|
2524
|
-
pointerT: number;
|
|
2525
|
-
treeT: number;
|
|
2526
|
-
paintT: number;
|
|
2527
|
-
}
|
|
2528
|
-
export interface SootSimScrollPerformanceTrace {
|
|
2529
|
-
startedAt: number;
|
|
2530
|
-
stoppedAt: number;
|
|
2531
|
-
paired: false;
|
|
2532
|
-
layers: {
|
|
2533
|
-
tenant: SootSimScrollOffsetSample[];
|
|
2534
|
-
shell: SootSimScrollOffsetSample[];
|
|
2535
|
-
compositor: SootSimScrollOffsetSample[];
|
|
2536
|
-
};
|
|
2537
|
-
transitions: SootSimTransitionProgressSample[];
|
|
2538
|
-
presses: SootSimPressPerformanceSample[];
|
|
2539
|
-
}
|
|
2540
|
-
export interface SootSimScrollPerfBridge {
|
|
2541
|
-
start(limit?: number, pressTestID?: string): MaybeAsync<void>;
|
|
2542
|
-
stop(): MaybeAsync<SootSimScrollPerformanceTrace>;
|
|
2543
|
-
}
|
|
2544
|
-
export interface SootSimReactDevtoolsConnection {
|
|
2545
|
-
send(frame: unknown): void;
|
|
2546
|
-
disconnect(): void;
|
|
2547
|
-
}
|
|
2548
|
-
export interface SootSimReactDevtoolsBridge {
|
|
2549
|
-
connect(onFrame: (frame: unknown) => void): SootSimReactDevtoolsConnection;
|
|
2550
|
-
}
|
|
2551
|
-
export type SootSimSceneStreamCommand = {
|
|
2552
|
-
action: 'recordStart';
|
|
2553
|
-
} | {
|
|
2554
|
-
action: 'recordStop';
|
|
2555
|
-
} | {
|
|
2556
|
-
action: 'play';
|
|
2557
|
-
} | {
|
|
2558
|
-
action: 'pause';
|
|
2559
|
-
} | {
|
|
2560
|
-
action: 'seek';
|
|
2561
|
-
timeMs: number;
|
|
2562
|
-
} | {
|
|
2563
|
-
action: 'step';
|
|
2564
|
-
timeMs: number;
|
|
2565
|
-
} | {
|
|
2566
|
-
action: 'state';
|
|
2567
|
-
};
|
|
2568
|
-
export interface SootSimSceneReplayState {
|
|
2569
|
-
timeMs: number;
|
|
2570
|
-
durationMs: number;
|
|
2571
|
-
playing: boolean;
|
|
2572
|
-
ended: boolean;
|
|
2573
|
-
recordedAtEpochMs: number | null;
|
|
2574
|
-
}
|
|
2575
|
-
export type SootSimSceneStreamResult = {
|
|
2576
|
-
action: 'recordStart';
|
|
2577
|
-
} | {
|
|
2578
|
-
action: 'recordStop';
|
|
2579
|
-
bytes: Uint8Array;
|
|
2580
|
-
durationMs: number;
|
|
2581
|
-
frameCount: number;
|
|
2582
|
-
} | ({
|
|
2583
|
-
action: 'play' | 'pause' | 'seek' | 'step' | 'state';
|
|
2584
|
-
} & SootSimSceneReplayState);
|
|
2585
|
-
export interface SootSimSceneStreamBridge {
|
|
2586
|
-
run(command: SootSimSceneStreamCommand): Promise<SootSimSceneStreamResult>;
|
|
2587
|
-
}
|
|
2588
|
-
export interface SootSimBridges {
|
|
2589
|
-
test: SootSimTestBridge | null;
|
|
2590
|
-
interact: SootSimInteractBridge | null;
|
|
2591
|
-
keyboard: SootSimKeyboardBridge | null;
|
|
2592
|
-
camera: SootSimCameraBridge | null;
|
|
2593
|
-
video: SootSimVideoBridge | null;
|
|
2594
|
-
speechSynthesis: SootSimSpeechSynthesisBridge | null;
|
|
2595
|
-
audioRecorder: SootSimAudioRecorderBridge | null;
|
|
2596
|
-
mediaSession: SootSimMediaSessionBridge | null;
|
|
2597
|
-
clipboard: SootSimClipboardBridge | null;
|
|
2598
|
-
hostStorage: SootSimHostStorageBridge | null;
|
|
2599
|
-
demoShare: SootSimDemoShareBridge | null;
|
|
2600
|
-
imagePicker: SootSimImagePickerBridge | null;
|
|
2601
|
-
imageCropper: SootSimImageCropperBridge | null;
|
|
2602
|
-
androidDateTimePicker: SootSimAndroidDateTimePickerBridge | null;
|
|
2603
|
-
shareSheet: SootSimShareSheetBridge | null;
|
|
2604
|
-
photoLibrary: SootSimPhotoLibraryBridge | null;
|
|
2605
|
-
permissions: SootSimPermissionsBridge | null;
|
|
2606
|
-
navigationRoutes: SootSimNavigationRoutesBridge | null;
|
|
2607
|
-
linkingDispatcher: SootSimLinkingDispatcherBridge | null;
|
|
2608
|
-
webview: SootSimWebViewBridge | null;
|
|
2609
|
-
a11y: SootSimA11yBridge | null;
|
|
2610
|
-
perf: SootSimPerfBridge | null;
|
|
2611
|
-
shellPerf: SootSimShellPerfBridge | null;
|
|
2612
|
-
scrollPerf: SootSimScrollPerfBridge | null;
|
|
2613
|
-
debug: SootSimDebugBridge | null;
|
|
2614
|
-
timeline: SootSimTimelineBridge | null;
|
|
2615
|
-
profiler: SootSimProfilerBridge | null;
|
|
2616
|
-
reactProfile: SootSimReactProfileBridge | null;
|
|
2617
|
-
reactDevtools: SootSimReactDevtoolsBridge | null;
|
|
2618
|
-
recorder: SootSimRecorderBridge | null;
|
|
2619
|
-
eventRecorder: SootSimEventRecorderBridge | null;
|
|
2620
|
-
previewRecorder: SootSimPreviewRecorder | null;
|
|
2621
|
-
portalManager: SootSimPortalManager | null;
|
|
2622
|
-
settings: SootSimSettingsBridge | null;
|
|
2623
|
-
windowScale: SootSimWindowScaleBridge | null;
|
|
2624
|
-
electron: SootSimElectronBridge | null;
|
|
2625
|
-
shellHost: SootSimShellHostBridge | null;
|
|
2626
|
-
shellCommands: SootSimShellCommands | null;
|
|
2627
|
-
mainShell: SootSimMainShellBridge | null;
|
|
2628
|
-
hotRemount: SootSimHotRemountBridge | null;
|
|
2629
|
-
liveComposite: SootSimLiveCompositeBridge | null;
|
|
2630
|
-
sceneStream: SootSimSceneStreamBridge | null;
|
|
2631
|
-
lockstepCapture: SootSimLockstepCaptureBridge | null;
|
|
2632
|
-
exitApp: (() => void) | null;
|
|
2633
|
-
forceRender: (() => void) | null;
|
|
2634
|
-
scrollToTop: (() => void) | null;
|
|
2635
|
-
screenshot: ((opts?: SootSimCaptureOptions) => Promise<string>) | null;
|
|
2636
|
-
getWindowSnapshot: (() => unknown) | null;
|
|
2637
|
-
appSnapshot: ((appId: string) => unknown) | null;
|
|
2638
|
-
captureBundle: (() => unknown) | null;
|
|
2639
|
-
readTransformedBundleSlice: ((offset: number, end: number) => Promise<string | null>) | null;
|
|
2640
|
-
createPortal: ((children: unknown, rootNode: unknown, key?: string | null) => unknown) | null;
|
|
2641
|
-
toggleRecording: (() => void) | null;
|
|
2642
|
-
isRecording: (() => boolean) | null;
|
|
2643
|
-
getRecordingState: (() => unknown) | null;
|
|
2644
|
-
getRecordingStartError: (() => string | null) | null;
|
|
2645
|
-
startRecording: ((mode?: PeachRecordingMode, layers?: 'full' | 'tenant' | 'shell', options?: PeachRecordingStartOptions) => Promise<boolean>) | null;
|
|
2646
|
-
startRecordingPrelude: (() => boolean | Promise<boolean>) | null;
|
|
2647
|
-
stopRecording: (() => Promise<boolean | 'pending'>) | null;
|
|
2648
|
-
cancelRecording: (() => void) | null;
|
|
2649
|
-
setSession: ((snapshot: {
|
|
2650
|
-
token: string | null;
|
|
2651
|
-
user: {
|
|
2652
|
-
id: string;
|
|
2653
|
-
name?: string;
|
|
2654
|
-
email?: string;
|
|
2655
|
-
image?: string;
|
|
2656
|
-
} | null;
|
|
2657
|
-
}) => void) | null;
|
|
2658
|
-
workerPerfStats: (() => Promise<unknown>) | null;
|
|
2659
|
-
workerPerfStart: (() => unknown) | null;
|
|
2660
|
-
workerPerfStop: (() => Promise<unknown>) | null;
|
|
2661
|
-
workerCpuProfileStart: ((opts?: {
|
|
2662
|
-
sampleInterval?: number;
|
|
2663
|
-
maxBufferSize?: number;
|
|
2664
|
-
}) => unknown) | null;
|
|
2665
|
-
workerCpuProfileStop: (() => Promise<unknown>) | null;
|
|
2666
|
-
}
|
|
2667
|
-
export interface SootSimAccessibilityState {
|
|
2668
|
-
disabled: boolean;
|
|
2669
|
-
selected: boolean;
|
|
2670
|
-
checked: boolean | 'mixed';
|
|
2671
|
-
busy: boolean;
|
|
2672
|
-
expanded: boolean;
|
|
2673
|
-
}
|
|
2674
|
-
export interface SootSimAccessibilityValue {
|
|
2675
|
-
min?: number;
|
|
2676
|
-
max?: number;
|
|
2677
|
-
now?: number;
|
|
2678
|
-
text?: string;
|
|
2679
|
-
}
|
|
2680
|
-
export type SootSimAccessibilityLiveRegion = 'none' | 'polite' | 'assertive';
|
|
2681
|
-
export interface SootSimFocusedNodeInfo extends SootSimNodeInfo {
|
|
2682
|
-
ancestorNodeIds: number[];
|
|
2683
|
-
}
|
|
2684
|
-
export interface SootSimAccessibilityInput {
|
|
2685
|
-
nodeId: number;
|
|
2686
|
-
rootId: number;
|
|
2687
|
-
activate: boolean;
|
|
2688
|
-
escape: boolean;
|
|
2689
|
-
adjust: boolean;
|
|
2690
|
-
}
|
|
2691
|
-
export interface SootSimNodeInfo {
|
|
2692
|
-
nativeTag?: number;
|
|
2693
|
-
accessibilityFrame?: SootSimLayout;
|
|
2694
|
-
nativeType?: string | null;
|
|
2695
|
-
presentation?: SootSimNativePresentationInfo;
|
|
2696
|
-
nodeId: number;
|
|
2697
|
-
type: string;
|
|
2698
|
-
id: string | null;
|
|
2699
|
-
testID: string | null;
|
|
2700
|
-
text: string | null;
|
|
2701
|
-
style: Record<string, unknown>;
|
|
2702
|
-
layout: SootSimLayout;
|
|
2703
|
-
frame: SootSimLayout | null;
|
|
2704
|
-
absolutePosition: {
|
|
2705
|
-
x: number;
|
|
2706
|
-
y: number;
|
|
2707
|
-
width?: number;
|
|
2708
|
-
height?: number;
|
|
2709
|
-
};
|
|
2710
|
-
visibleFrame: SootSimVisibleFrame | null;
|
|
2711
|
-
childCount: number;
|
|
2712
|
-
pressed: boolean;
|
|
2713
|
-
pressable: boolean;
|
|
2714
|
-
isTextInput: boolean;
|
|
2715
|
-
textSelection: {
|
|
2716
|
-
start: number | null;
|
|
2717
|
-
end: number | null;
|
|
2718
|
-
} | null;
|
|
2719
|
-
secureTextEntry: boolean;
|
|
2720
|
-
placeholder: string | null;
|
|
2721
|
-
scrollOffsetX: number;
|
|
2722
|
-
scrollOffsetY: number;
|
|
2723
|
-
zoomScale: number | null;
|
|
2724
|
-
nativePinchEnabled: boolean;
|
|
2725
|
-
contentOffsetProp: {
|
|
2726
|
-
x?: number;
|
|
2727
|
-
y?: number;
|
|
2728
|
-
} | null;
|
|
2729
|
-
decelerationRateProp: unknown;
|
|
2730
|
-
strokeDashoffsetProp: number | null;
|
|
2731
|
-
accessible: boolean;
|
|
2732
|
-
accessibilityLabel: string | null;
|
|
2733
|
-
accessibilityRole: string | null;
|
|
2734
|
-
accessibilityHint: string | null;
|
|
2735
|
-
accessibilityIdentifier?: string | null;
|
|
2736
|
-
accessibilityUserInputLabels?: string[] | null;
|
|
2737
|
-
accessibilityTraits?: string[];
|
|
2738
|
-
accessibilityLiveRegion: SootSimAccessibilityLiveRegion | null;
|
|
2739
|
-
accessibilityState: SootSimAccessibilityState | null;
|
|
2740
|
-
accessibilityValue: SootSimAccessibilityValue | null;
|
|
2741
|
-
accessibilityInput?: SootSimAccessibilityInput;
|
|
2742
|
-
}
|
|
2743
|
-
export interface SootSimStyleTokenBinding {
|
|
2744
|
-
token: string;
|
|
2745
|
-
theme: string;
|
|
2746
|
-
}
|
|
2747
|
-
export interface SootSimCapturedTextSegment {
|
|
2748
|
-
text: string;
|
|
2749
|
-
color?: string | number;
|
|
2750
|
-
fontFamily?: string;
|
|
2751
|
-
fontSize?: number;
|
|
2752
|
-
fontStyle?: string;
|
|
2753
|
-
fontWeight?: string | number;
|
|
2754
|
-
letterSpacing?: number;
|
|
2755
|
-
textDecorationLine?: string;
|
|
2756
|
-
}
|
|
2757
|
-
export interface SootSimCapturedTextLine {
|
|
2758
|
-
text: string;
|
|
2759
|
-
x: number;
|
|
2760
|
-
y: number;
|
|
2761
|
-
width: number;
|
|
2762
|
-
height: number;
|
|
2763
|
-
baseline: number;
|
|
2764
|
-
segments?: SootSimCapturedTextSegment[];
|
|
2765
|
-
}
|
|
2766
|
-
export interface SootSimRenderTreeNode extends SootSimNodeInfo {
|
|
2767
|
-
nativeSurfaceId?: string;
|
|
2768
|
-
parentNodeId: number | null;
|
|
2769
|
-
childNodeIds: number[];
|
|
2770
|
-
paintIndex: number;
|
|
2771
|
-
props: Record<string, unknown>;
|
|
2772
|
-
inspect: SootSimInspectInfo;
|
|
2773
|
-
styleTokenBindings: Record<string, SootSimStyleTokenBinding>;
|
|
2774
|
-
textLines?: SootSimCapturedTextLine[];
|
|
2775
|
-
}
|
|
2776
|
-
export interface SootSimRenderTreeSnapshot {
|
|
2777
|
-
width: number;
|
|
2778
|
-
height: number;
|
|
2779
|
-
rootNodeId: number;
|
|
2780
|
-
nodes: SootSimRenderTreeNode[];
|
|
2781
|
-
commitRevision?: number;
|
|
2782
|
-
}
|
|
2783
|
-
export interface SootSimCaptureTransactionReceipt {
|
|
2784
|
-
token: number;
|
|
2785
|
-
commitRevision: number;
|
|
2786
|
-
}
|
|
2787
|
-
export interface SootSimCaptureBoundLongPressReceipt {
|
|
2788
|
-
handled: boolean;
|
|
2789
|
-
transaction: SootSimCaptureTransactionReceipt;
|
|
2790
|
-
}
|
|
2791
|
-
export interface SootSimCaptureBoundTapReceipt {
|
|
2792
|
-
handled: SootSimTapResult;
|
|
2793
|
-
transaction: SootSimCaptureTransactionReceipt;
|
|
2794
|
-
transition: SootSimScreenTransitionWaitResult | null;
|
|
2795
|
-
}
|
|
2796
|
-
export interface SootSimDebugNodeInfo {
|
|
2797
|
-
nodeId: number;
|
|
2798
|
-
parentNodeId: number | null;
|
|
2799
|
-
childNodeIds: number[];
|
|
2800
|
-
type: string;
|
|
2801
|
-
text: string | null;
|
|
2802
|
-
testID: string | null;
|
|
2803
|
-
accessibilityRole: string | null;
|
|
2804
|
-
pointerEvents: string | null;
|
|
2805
|
-
layout: {
|
|
2806
|
-
x: number;
|
|
2807
|
-
y: number;
|
|
2808
|
-
width: number;
|
|
2809
|
-
height: number;
|
|
2810
|
-
};
|
|
2811
|
-
style: Record<string, unknown>;
|
|
2812
|
-
runtime: {
|
|
2813
|
-
hasFocusImpl: boolean;
|
|
2814
|
-
hasBlurImpl: boolean;
|
|
2815
|
-
hasClearImpl: boolean;
|
|
2816
|
-
hasIsFocusedImpl: boolean;
|
|
2817
|
-
isFocused: boolean | null;
|
|
2818
|
-
hasTextInputState: boolean;
|
|
2819
|
-
controlledTextInput: boolean | null;
|
|
2820
|
-
};
|
|
2821
|
-
propKeys: string[];
|
|
2822
|
-
handlers: Record<string, boolean>;
|
|
2823
|
-
}
|
|
2824
|
-
export interface SootSimVisibleFrame extends SootSimLayout {
|
|
2825
|
-
area?: number;
|
|
2826
|
-
hidden?: SootSimVisibleFrameHidden;
|
|
2827
|
-
}
|
|
2828
|
-
export interface SootSimVisibilityNodeRef {
|
|
2829
|
-
nodeId: number;
|
|
2830
|
-
type: string;
|
|
2831
|
-
testID: string | null;
|
|
2832
|
-
}
|
|
2833
|
-
export type SootSimVisibleFrameHidden = {
|
|
2834
|
-
cached?: true;
|
|
2835
|
-
} & ({
|
|
2836
|
-
path: 'unpainted';
|
|
2837
|
-
by: SootSimVisibilityNodeRef;
|
|
2838
|
-
style: 'hidden' | 'opacity' | 'display-none';
|
|
2839
|
-
} | {
|
|
2840
|
-
path: 'clipped';
|
|
2841
|
-
paint: SootSimLayout;
|
|
2842
|
-
clip: SootSimLayout | null;
|
|
2843
|
-
viewport: SootSimLayout | null;
|
|
2844
|
-
by: (SootSimVisibilityNodeRef | 'viewport')[];
|
|
2845
|
-
} | {
|
|
2846
|
-
path: 'occluded';
|
|
2847
|
-
clipped: SootSimLayout;
|
|
2848
|
-
by: SootSimVisibilityNodeRef;
|
|
2849
|
-
rect: SootSimLayout;
|
|
2850
|
-
} | {
|
|
2851
|
-
path: 'unknown';
|
|
2852
|
-
});
|
|
2853
|
-
export interface SootSimLayout {
|
|
2854
|
-
x: number;
|
|
2855
|
-
y: number;
|
|
2856
|
-
width: number;
|
|
2857
|
-
height: number;
|
|
2858
|
-
}
|
|
2859
|
-
export interface SootSimDeviceSpec {
|
|
2860
|
-
platform?: 'ios' | 'android';
|
|
2861
|
-
width: number;
|
|
2862
|
-
height: number;
|
|
2863
|
-
scale: number;
|
|
2864
|
-
statusBarHeight?: number;
|
|
2865
|
-
homeIndicatorHeight?: number;
|
|
2866
|
-
navigationBarHeight?: number;
|
|
2867
|
-
osVersion?: string;
|
|
2868
|
-
iosVersion?: string;
|
|
2869
|
-
androidApiLevel?: number | null;
|
|
2870
|
-
}
|
|
2871
|
-
export interface SootSimEngineSnapshot {
|
|
2872
|
-
recording: {
|
|
2873
|
-
state: 'idle' | 'recording' | 'processing';
|
|
2874
|
-
mode: PeachRecordingMode | null;
|
|
2875
|
-
duration: number;
|
|
2876
|
-
};
|
|
2877
|
-
inspectActive: boolean;
|
|
2878
|
-
selectedInspect: SootSimInspectInfo | null;
|
|
2879
|
-
devtoolsOpen: boolean;
|
|
2880
|
-
devtoolsPosition: 'right' | 'bottom';
|
|
2881
|
-
devtoolsTab: 'network' | 'performance' | 'logs' | 'agent' | 'test' | 'react' | 'report' | 'onboard' | 'recordings' | 'inspect';
|
|
2882
|
-
devtoolsFilterLogLevel: 'log' | 'info' | 'warn' | 'error' | 'debug' | null;
|
|
2883
|
-
a11yMode: 'off' | 'delayed' | 'active' | 'default' | 'always' | 'agent';
|
|
2884
|
-
ringMode: 'ring' | 'silent';
|
|
2885
|
-
browserNav: {
|
|
2886
|
-
canGoBack: boolean;
|
|
2887
|
-
isAppOpen: boolean;
|
|
2888
|
-
} | null;
|
|
2889
|
-
activeApp: {
|
|
2890
|
-
appId: string | null;
|
|
2891
|
-
appName: string | null;
|
|
2892
|
-
isAppOpen: boolean;
|
|
2893
|
-
};
|
|
2894
|
-
windowState: {
|
|
2895
|
-
deviceModel: string;
|
|
2896
|
-
deviceSpec: SootSimDeviceSpec;
|
|
2897
|
-
orientation: 'portrait' | 'landscape';
|
|
2898
|
-
scaleMode: 'physical' | 'point' | 'pixel' | 'fit';
|
|
2899
|
-
agentProvider: 'codex' | 'claude';
|
|
2900
|
-
showFrame: boolean;
|
|
2901
|
-
showMenuBar: boolean;
|
|
2902
|
-
showRail: boolean;
|
|
2903
|
-
solidWindow: boolean;
|
|
2904
|
-
ambientGlow: 'off' | 'soft' | 'full';
|
|
2905
|
-
stageBackground: 'system' | 'light' | 'dark' | 'gray';
|
|
2906
|
-
stageChecker: boolean;
|
|
2907
|
-
screenshotMode: boolean;
|
|
2908
|
-
threeMode: boolean;
|
|
2909
|
-
threeRecordingEditor: boolean;
|
|
2910
|
-
screenshotCanvas: string;
|
|
2911
|
-
screenshotBackground: string;
|
|
2912
|
-
screenshotText: string;
|
|
2913
|
-
screenshotPose: string;
|
|
2914
|
-
screenshotDynamicSize: boolean;
|
|
2915
|
-
} | null;
|
|
2916
|
-
menuDefs: unknown;
|
|
2917
|
-
}
|
|
2918
|
-
export type SootSimReplayCursorMode = 'live' | 'replay';
|
|
2919
|
-
export interface SootSimReplayCursorPose {
|
|
2920
|
-
x: number;
|
|
2921
|
-
y: number;
|
|
2922
|
-
scale: number;
|
|
2923
|
-
pressed: boolean;
|
|
2924
|
-
opacity: number;
|
|
2925
|
-
transitionMs: number;
|
|
2926
|
-
}
|
|
2927
|
-
export interface SootSimReplayCursorState {
|
|
2928
|
-
visible: boolean;
|
|
2929
|
-
mode: SootSimReplayCursorMode;
|
|
2930
|
-
tone: 'blue' | 'gray';
|
|
2931
|
-
home: {
|
|
2932
|
-
x: number;
|
|
2933
|
-
y: number;
|
|
2934
|
-
};
|
|
2935
|
-
primary: SootSimReplayCursorPose;
|
|
2936
|
-
secondary: SootSimReplayCursorPose | null;
|
|
2937
|
-
hasReplayMoved: boolean;
|
|
2938
|
-
}
|
|
2939
|
-
export interface SootSimAgentActionDetail {
|
|
2940
|
-
type: 'tap' | 'longPress' | 'drag' | 'pinch' | 'scroll' | 'type' | 'screenshot' | 'move';
|
|
2941
|
-
x?: number;
|
|
2942
|
-
y?: number;
|
|
2943
|
-
toX?: number;
|
|
2944
|
-
toY?: number;
|
|
2945
|
-
x2?: number;
|
|
2946
|
-
y2?: number;
|
|
2947
|
-
toX2?: number;
|
|
2948
|
-
toY2?: number;
|
|
2949
|
-
durationMs?: number;
|
|
2950
|
-
moveMs?: number;
|
|
2951
|
-
text?: string;
|
|
2952
|
-
keyboardAction?: 'type' | 'press' | 'dispatchKey' | 'dismiss' | 'edit';
|
|
2953
|
-
edit?: TextInputEditCommand;
|
|
2954
|
-
target?: SootSimReplayTarget;
|
|
2955
|
-
}
|
|
2956
|
-
export type SootSimHardwareKeyboardInputDetail = {
|
|
2957
|
-
keyboardAction: 'type' | 'dispatchKey';
|
|
2958
|
-
text: string;
|
|
2959
|
-
} | {
|
|
2960
|
-
keyboardAction: 'edit';
|
|
2961
|
-
edit: TextInputEditCommand;
|
|
2962
|
-
};
|
|
2963
|
-
export interface SootSimReplayTarget {
|
|
2964
|
-
nodeId?: number | null;
|
|
2965
|
-
id?: string | null;
|
|
2966
|
-
testID?: string | null;
|
|
2967
|
-
text?: string | null;
|
|
2968
|
-
type?: string | null;
|
|
2969
|
-
}
|
|
2970
|
-
export declare function createSootSimReplayScreenIdentity(nodes: readonly PeachAccessibilityNode[]): string;
|
|
2971
|
-
export interface SootSimReplayEvent {
|
|
2972
|
-
startScreen?: string;
|
|
2973
|
-
t: number;
|
|
2974
|
-
sourceT?: number;
|
|
2975
|
-
type: Exclude<SootSimAgentActionDetail['type'], 'screenshot'>;
|
|
2976
|
-
x?: number;
|
|
2977
|
-
y?: number;
|
|
2978
|
-
toX?: number;
|
|
2979
|
-
toY?: number;
|
|
2980
|
-
x2?: number;
|
|
2981
|
-
y2?: number;
|
|
2982
|
-
toX2?: number;
|
|
2983
|
-
toY2?: number;
|
|
2984
|
-
durationMs?: number;
|
|
2985
|
-
moveMs?: number;
|
|
2986
|
-
text?: string;
|
|
2987
|
-
keyboardAction?: 'type' | 'press' | 'dispatchKey' | 'dismiss' | 'edit';
|
|
2988
|
-
edit?: TextInputEditCommand;
|
|
2989
|
-
target?: SootSimReplayTarget;
|
|
2990
|
-
path?: SootSimReplayPathPoint[];
|
|
2991
|
-
}
|
|
2992
|
-
export interface SootSimReplayPathPoint {
|
|
2993
|
-
x: number;
|
|
2994
|
-
y: number;
|
|
2995
|
-
dt: number;
|
|
2996
|
-
}
|
|
2997
|
-
export interface SootSimReplayPreviewState {
|
|
2998
|
-
flowVideoUrl: string | null;
|
|
2999
|
-
flowVideoDurationMs: number | null;
|
|
3000
|
-
bootSnapshotUrl: string | null;
|
|
3001
|
-
bootLoading: boolean;
|
|
3002
|
-
flowVideoLoaded: boolean;
|
|
3003
|
-
sceneLoaded: boolean;
|
|
3004
|
-
recordingStartedAtMs: number | null;
|
|
3005
|
-
surface: 'video' | 'live';
|
|
3006
|
-
interaction: 'replay' | 'paused' | 'live';
|
|
3007
|
-
}
|
|
3008
|
-
export interface SootSimReplayState {
|
|
3009
|
-
status: 'idle' | 'loading' | 'ready' | 'error';
|
|
3010
|
-
previewId: string | null;
|
|
3011
|
-
error: string | null;
|
|
3012
|
-
events: SootSimReplayEvent[];
|
|
3013
|
-
playback: {
|
|
3014
|
-
playing: boolean;
|
|
3015
|
-
scrubbing: boolean;
|
|
3016
|
-
currentTimeMs: number;
|
|
3017
|
-
durationMs: number;
|
|
3018
|
-
currentEventIndex: number;
|
|
3019
|
-
rate: number;
|
|
3020
|
-
};
|
|
3021
|
-
restore: {
|
|
3022
|
-
phase: 'idle' | 'reloading' | 'restoring';
|
|
3023
|
-
targetTimeMs: number | null;
|
|
3024
|
-
progress: number;
|
|
3025
|
-
};
|
|
3026
|
-
cursor: SootSimReplayCursorState;
|
|
3027
|
-
preview: SootSimReplayPreviewState;
|
|
3028
|
-
}
|
|
3029
|
-
export type SootSimRenderMode = 'main' | 'worker';
|
|
3030
|
-
export type SootSimTransformedBundle = {
|
|
3031
|
-
url: string;
|
|
3032
|
-
blob: Blob;
|
|
3033
|
-
byteLength: number;
|
|
3034
|
-
timestamp: number;
|
|
3035
|
-
nativeAppIdentityHeader?: string | null;
|
|
3036
|
-
};
|
|
3037
|
-
export type SootSimConnection = 'idle' | 'connecting' | 'connected' | 'disconnected';
|
|
3038
|
-
export type SootSimShellPathRoute = {
|
|
3039
|
-
kind: 'home';
|
|
3040
|
-
} | {
|
|
3041
|
-
kind: 'connect-rn';
|
|
3042
|
-
} | {
|
|
3043
|
-
kind: 'app';
|
|
3044
|
-
slug: string;
|
|
3045
|
-
} | {
|
|
3046
|
-
kind: 'rn';
|
|
3047
|
-
id: string;
|
|
3048
|
-
} | {
|
|
3049
|
-
kind: 'dock';
|
|
3050
|
-
id: string;
|
|
3051
|
-
};
|
|
3052
|
-
export interface SootSimShellRouteSnapshot {
|
|
3053
|
-
pathname: string;
|
|
3054
|
-
search: string;
|
|
3055
|
-
hash: string;
|
|
3056
|
-
shellRoute: SootSimShellPathRoute;
|
|
3057
|
-
}
|
|
3058
|
-
export interface SootSimRouter {
|
|
3059
|
-
getSnapshot?: () => SootSimShellRouteSnapshot;
|
|
3060
|
-
subscribe?: (listener: () => void) => () => void;
|
|
3061
|
-
push?: (route: SootSimShellPathRoute) => void;
|
|
3062
|
-
replace?: (route: SootSimShellPathRoute) => void;
|
|
3063
|
-
parsePath?: (pathname: string) => SootSimShellPathRoute;
|
|
3064
|
-
buildUrl?: (currentHref: string, route: SootSimShellPathRoute) => string;
|
|
3065
|
-
isManagedPath?: (pathname: string) => boolean;
|
|
3066
|
-
assignAppRouteSlugs?: <T extends {
|
|
3067
|
-
id: string;
|
|
3068
|
-
name: string;
|
|
3069
|
-
}>(entries: T[]) => Array<T & {
|
|
3070
|
-
routeSlug: string;
|
|
3071
|
-
}>;
|
|
3072
|
-
assignRNRouteIds?: <T extends {
|
|
3073
|
-
port: number;
|
|
3074
|
-
projectName?: string;
|
|
3075
|
-
}>(entries: T[]) => Array<T & {
|
|
3076
|
-
routeId: string;
|
|
3077
|
-
}>;
|
|
3078
|
-
}
|
|
3079
|
-
export interface SootSimState {
|
|
3080
|
-
root: unknown;
|
|
3081
|
-
renderHost: unknown;
|
|
3082
|
-
engineSnapshot: SootSimEngineSnapshot | null;
|
|
3083
|
-
simId: string | null;
|
|
3084
|
-
stats: {
|
|
3085
|
-
[key: string]: unknown;
|
|
3086
|
-
getSnapshot?: () => Record<string, unknown>;
|
|
3087
|
-
getAnimationDebugInfo?: () => unknown;
|
|
3088
|
-
} | null;
|
|
3089
|
-
lastTransformedBundle: SootSimTransformedBundle | null;
|
|
3090
|
-
launchMetadata: {
|
|
3091
|
-
reference: string;
|
|
3092
|
-
metadata: URLSearchParams;
|
|
3093
|
-
} | null;
|
|
3094
|
-
console: SootSimConsoleBuffer | null;
|
|
3095
|
-
connection: SootSimConnection;
|
|
3096
|
-
renderMode: SootSimRenderMode;
|
|
3097
|
-
verboseLogs: boolean;
|
|
3098
|
-
capturedComponent: unknown;
|
|
3099
|
-
capturedKey: string | null;
|
|
3100
|
-
rolldownStubs: Record<string, unknown> | null;
|
|
3101
|
-
requestAnimationFrame: ((cb: FrameRequestCallback) => number) | null;
|
|
3102
|
-
shellEventsInstalled: boolean;
|
|
3103
|
-
}
|
|
3104
|
-
export interface SootSimDebugChannels {
|
|
3105
|
-
portals: boolean;
|
|
3106
|
-
sheets: boolean;
|
|
3107
|
-
layout: boolean;
|
|
3108
|
-
onlayout: boolean;
|
|
3109
|
-
animated: boolean;
|
|
3110
|
-
render: boolean;
|
|
3111
|
-
touch: boolean;
|
|
3112
|
-
yoga: boolean;
|
|
3113
|
-
[key: string]: boolean;
|
|
3114
|
-
}
|
|
3115
|
-
export interface SootSimDebugEvent {
|
|
3116
|
-
channel: string;
|
|
3117
|
-
ts: number;
|
|
3118
|
-
payload: unknown;
|
|
3119
|
-
}
|
|
3120
|
-
export interface SootSimDebugState {
|
|
3121
|
-
channels: SootSimDebugChannels;
|
|
3122
|
-
snapshots: Map<string, unknown>;
|
|
3123
|
-
events: SootSimDebugEvent[];
|
|
3124
|
-
recording: boolean;
|
|
3125
|
-
}
|
|
3126
|
-
export interface SootSimGlobals {
|
|
3127
|
-
chrome: SootSimChrome;
|
|
3128
|
-
router: SootSimRouter;
|
|
3129
|
-
bridges: SootSimBridges;
|
|
3130
|
-
state: SootSimState;
|
|
3131
|
-
debug: SootSimDebugState;
|
|
3132
|
-
replayStore: Emitter<SootSimReplayState>;
|
|
3133
|
-
}
|
|
3134
|
-
export declare function inferCursorMoveMs(prevPoint: {
|
|
3135
|
-
x: number;
|
|
3136
|
-
y: number;
|
|
3137
|
-
} | null | undefined, nextPoint: {
|
|
3138
|
-
x: number;
|
|
3139
|
-
y: number;
|
|
3140
|
-
} | null | undefined, gapMs?: number): number;
|
|
3141
|
-
export declare function createSootSimReplayCursorState(mode?: SootSimReplayCursorMode, home?: {
|
|
3142
|
-
x: number;
|
|
3143
|
-
y: number;
|
|
3144
|
-
}): SootSimReplayCursorState;
|
|
3145
|
-
export declare function createSootSimReplayState(): SootSimReplayState;
|
|
3146
|
-
export interface SootSimLegacyGlobals {
|
|
3147
|
-
__sootsimRoot: SootSimState['root'];
|
|
3148
|
-
__sootsimRenderHost: SootSimState['renderHost'];
|
|
3149
|
-
__sootsimSimId: string | null;
|
|
3150
|
-
__sootsimVerboseLogs: boolean;
|
|
3151
|
-
__sootsimEngineState: SootSimEngineSnapshot | null;
|
|
3152
|
-
__sootsimBridgeInstalled: boolean;
|
|
3153
|
-
__sootsimLastTransformedBundle: SootSimState['lastTransformedBundle'];
|
|
3154
|
-
__sootsimConsole: SootSimConsoleBuffer | null;
|
|
3155
|
-
__sootsimStats: SootSimState['stats'];
|
|
3156
|
-
__sootsim_rolldown_stubs: Record<string, unknown> | null;
|
|
3157
|
-
__sootsim_captured_component: SootSimState['capturedComponent'];
|
|
3158
|
-
__sootsim_captured_key: string | null;
|
|
3159
|
-
__sootsimRequestAnimationFrame: SootSimState['requestAnimationFrame'];
|
|
3160
|
-
__sootsim_demo_gateway_origin: string | null;
|
|
3161
|
-
__sootsimTest: SootSimTestBridge | null;
|
|
3162
|
-
__sootsimInteract: SootSimInteractBridge | null;
|
|
3163
|
-
__sootsimKeyboard: SootSimKeyboardBridge | null;
|
|
3164
|
-
__sootsimA11y: SootSimA11yBridge | null;
|
|
3165
|
-
__sootsimDebug: SootSimDebugBridge | null;
|
|
3166
|
-
__sootsimTimeline: SootSimTimelineBridge | null;
|
|
3167
|
-
__sootsimPerf: SootSimPerfBridge | null;
|
|
3168
|
-
__sootsimShellPerf: SootSimShellPerfBridge | null;
|
|
3169
|
-
__sootsimRecorder: SootSimRecorderBridge | null;
|
|
3170
|
-
__sootsimEventRecorder: SootSimEventRecorderBridge | null;
|
|
3171
|
-
__sootsimPreviewRecorder: SootSimPreviewRecorder | null;
|
|
3172
|
-
__sootsimPortalManager: SootSimPortalManager | null;
|
|
3173
|
-
__sootsimCreatePortal: SootSimBridges['createPortal'];
|
|
3174
|
-
__sootsimSettings: SootSimSettingsBridge | null;
|
|
3175
|
-
__sootsimWindowScale: SootSimWindowScaleBridge | null;
|
|
3176
|
-
__sootsimShell: SootSimShellHostBridge | null;
|
|
3177
|
-
__sootsimShellCommands: SootSimShellCommands | null;
|
|
3178
|
-
__sootsimForceRender: SootSimBridges['forceRender'];
|
|
3179
|
-
__sootsimScrollToTop: SootSimBridges['scrollToTop'];
|
|
3180
|
-
__sootsimScreenshot: SootSimBridges['screenshot'];
|
|
3181
|
-
__sootsimGetWindowSnapshot: SootSimBridges['getWindowSnapshot'];
|
|
3182
|
-
__sootsimSnapshot: SootSimBridges['appSnapshot'];
|
|
3183
|
-
__sootsimCaptureBundle: SootSimBridges['captureBundle'];
|
|
3184
|
-
__sootsimToggleRecording: SootSimBridges['toggleRecording'];
|
|
3185
|
-
__sootsimIsRecording: SootSimBridges['isRecording'];
|
|
3186
|
-
__sootsimGetRecordingState: SootSimBridges['getRecordingState'];
|
|
3187
|
-
__sootsimPerfStats: SootSimBridges['workerPerfStats'];
|
|
3188
|
-
__sootsimPerfStart: SootSimBridges['workerPerfStart'];
|
|
3189
|
-
__sootsimPerfStop: SootSimBridges['workerPerfStop'];
|
|
3190
|
-
}
|
|
3191
|
-
export interface SootSimMetroAssetRecord {
|
|
3192
|
-
httpServerLocation?: string;
|
|
3193
|
-
name?: string;
|
|
3194
|
-
type?: string;
|
|
3195
|
-
scales?: number[];
|
|
3196
|
-
width?: number;
|
|
3197
|
-
height?: number;
|
|
3198
|
-
}
|
|
3199
|
-
export interface SootSimMetroRequire {
|
|
3200
|
-
(moduleId: number | string): unknown;
|
|
3201
|
-
getModules?: () => Map<number | string, unknown> | Record<string, unknown>;
|
|
3202
|
-
}
|
|
3203
|
-
export interface SootSimTenantLocation {
|
|
3204
|
-
href: string;
|
|
3205
|
-
origin: string;
|
|
3206
|
-
protocol: string;
|
|
3207
|
-
host: string;
|
|
3208
|
-
hostname: string;
|
|
3209
|
-
port: string;
|
|
3210
|
-
pathname: string;
|
|
3211
|
-
search: string;
|
|
3212
|
-
hash: string;
|
|
3213
|
-
assign(next: string): void;
|
|
3214
|
-
replace(next: string): void;
|
|
3215
|
-
reload(): void;
|
|
3216
|
-
toString(): string;
|
|
3217
|
-
}
|
|
3218
|
-
export interface SootSimTenantNavigator {
|
|
3219
|
-
product: 'ReactNative';
|
|
3220
|
-
userAgent: string;
|
|
3221
|
-
platform: string;
|
|
3222
|
-
language: string;
|
|
3223
|
-
languages: string[];
|
|
3224
|
-
onLine: boolean;
|
|
3225
|
-
maxTouchPoints: number;
|
|
3226
|
-
clipboard: {
|
|
3227
|
-
readText(): Promise<string>;
|
|
3228
|
-
writeText(text: string): Promise<void>;
|
|
3229
|
-
};
|
|
3230
|
-
canShare(data?: unknown): boolean;
|
|
3231
|
-
vibrate(pattern?: number | number[]): boolean;
|
|
3232
|
-
mediaDevices: {
|
|
3233
|
-
getUserMedia(constraints?: unknown): Promise<MediaStream>;
|
|
3234
|
-
enumerateDevices?(): Promise<MediaDeviceInfo[]>;
|
|
3235
|
-
};
|
|
3236
|
-
geolocation?: Geolocation;
|
|
3237
|
-
credentials?: CredentialsContainer;
|
|
3238
|
-
permissions?: Permissions;
|
|
3239
|
-
storage?: StorageManager;
|
|
3240
|
-
}
|
|
3241
|
-
export interface SootSimTenantScreen {
|
|
3242
|
-
width: number;
|
|
3243
|
-
height: number;
|
|
3244
|
-
availWidth: number;
|
|
3245
|
-
availHeight: number;
|
|
3246
|
-
orientation: {
|
|
3247
|
-
angle: number;
|
|
3248
|
-
type: string;
|
|
3249
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject): void;
|
|
3250
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject): void;
|
|
3251
|
-
};
|
|
3252
|
-
}
|
|
3253
|
-
export interface SootSimWorkerTextInputBridge<Node = unknown> {
|
|
3254
|
-
focus?(node: Node): boolean;
|
|
3255
|
-
focusCommand?(node: Node): boolean;
|
|
3256
|
-
blur?(node: Node): boolean;
|
|
3257
|
-
isFocused?(node: Node): boolean;
|
|
3258
|
-
blurFocused?(): boolean;
|
|
3259
|
-
isAnyFocused?(): boolean;
|
|
3260
|
-
getFocused?(): Node | null;
|
|
3261
|
-
focusAdjacent?(direction: 1 | -1): boolean;
|
|
3262
|
-
focusCurrent?(): boolean;
|
|
3263
|
-
}
|
|
3264
|
-
export declare const SOOTSIM_KEYBOARD_TOOLBAR_GROUP_PROP: '__sootsimKeyboardToolbarGroup';
|
|
3265
|
-
export interface SootSimWorkerTextInputBridgeGlobal<Node = unknown> {
|
|
3266
|
-
readonly Object: ObjectConstructor;
|
|
3267
|
-
__sootsimWorkerTextInputBridge?: SootSimWorkerTextInputBridge<Node>;
|
|
3268
|
-
}
|
|
3269
|
-
export type PeachPageServingAuthority = 'published' | 'contributor';
|
|
3270
|
-
export interface SootSimTenantEnvironment {
|
|
3271
|
-
localStorage: Storage;
|
|
3272
|
-
sessionStorage: Storage;
|
|
3273
|
-
matchMedia(query: string): MediaQueryList;
|
|
3274
|
-
location: SootSimTenantLocation;
|
|
3275
|
-
navigator: SootSimTenantNavigator;
|
|
3276
|
-
open(url?: string, target?: string, features?: string): WindowProxy | null;
|
|
3277
|
-
devicePixelRatio: number;
|
|
3278
|
-
innerWidth: number;
|
|
3279
|
-
innerHeight: number;
|
|
3280
|
-
outerWidth: number;
|
|
3281
|
-
outerHeight: number;
|
|
3282
|
-
screen: SootSimTenantScreen;
|
|
3283
|
-
}
|
|
3284
|
-
export type SootSimMetroDefine = (factory: (globalObj: typeof globalThis, require: (id: number) => unknown, metroImportDefault: (id: number) => unknown, metroImportAll: (id: number) => unknown, module: {
|
|
3285
|
-
exports: unknown;
|
|
3286
|
-
}, exports: unknown, dependencyMap: unknown) => void, moduleId: number, dependencyMap: unknown, moduleName?: string, inverseDependencies?: Record<number, number[]>) => void;
|
|
3287
|
-
export interface SootSimDirectGlobals {
|
|
3288
|
-
__peachPageServingAuthority: PeachPageServingAuthority | null;
|
|
3289
|
-
__peachWebViewHost: (request: SootSimWebViewHostRequest) => Promise<void>;
|
|
3290
|
-
__sootsimAuxCompositorStats: () => SootSimAuxCompositorStats;
|
|
3291
|
-
__sootsimDeviceSpec: SootSimDeviceSpec;
|
|
3292
|
-
__sootsimDeviceSpecListeners: Set<() => void>;
|
|
3293
|
-
__sootsimTenantEnvironment: SootSimTenantEnvironment;
|
|
3294
|
-
__sootsim_launch_arguments: string | Record<string, unknown>;
|
|
3295
|
-
__sootsim_react_native_keys_json: string | {
|
|
3296
|
-
secure?: Record<string, string>;
|
|
3297
|
-
public?: Record<string, unknown>;
|
|
3298
|
-
};
|
|
3299
|
-
__sootsimEmitBackPress: () => boolean;
|
|
3300
|
-
__sootsimFindInteractiveCanvas: () => HTMLCanvasElement | null;
|
|
3301
|
-
__r: SootSimMetroRequire;
|
|
3302
|
-
__d: SootSimMetroDefine;
|
|
3303
|
-
__metro_assets: Array<SootSimMetroAssetRecord | undefined>;
|
|
3304
|
-
__sootsim_bundle_origin: string;
|
|
3305
|
-
__sootsimMetroAssetRegistryModuleId: number | string;
|
|
3306
|
-
__sootsimOneNativeContentSnapshot: (appId: string) => unknown;
|
|
3307
|
-
__sootsimStatusBarResetListenerInstalled: boolean;
|
|
3308
|
-
__sootsimDebugWedgeTenant: (ms: number) => void;
|
|
3309
|
-
__contrastModules: {
|
|
3310
|
-
require: (name: string) => unknown;
|
|
3311
|
-
[k: string]: unknown;
|
|
3312
|
-
};
|
|
3313
|
-
__sootsimRuntimeVersion: string;
|
|
3314
|
-
__sootsimCliVersion: string;
|
|
3315
|
-
__peachDesktopHostInstalled: boolean;
|
|
3316
|
-
__peachWorkerHost: {
|
|
3317
|
-
pullSurface?: (source: HTMLCanvasElement, kx?: number, ky?: number) => Promise<void>;
|
|
3318
|
-
};
|
|
3319
|
-
}
|
|
3320
|
-
|
|
3321
|
-
export declare function createDefaultSootSim(): SootSimGlobals;
|
|
3322
|
-
export declare function ensureSootSim(): SootSimGlobals;
|
|
3323
|
-
export declare function getSootSim(): SootSimGlobals | undefined;
|
|
3324
|
-
export declare const SOOTSIM_NATIVE_PUBLIC_INSTANCE: unique symbol;
|
|
3325
|
-
export interface SootSimNativePublicInstance {
|
|
3326
|
-
readonly [SOOTSIM_NATIVE_PUBLIC_INSTANCE]: true;
|
|
3327
|
-
readonly __nativeTag: number | undefined;
|
|
3328
|
-
readonly _nativeTag: number | undefined;
|
|
3329
|
-
readonly __viewTag: number | undefined;
|
|
3330
|
-
}
|
|
3331
|
-
export declare function isSootSimNativePublicInstance(value: unknown): value is SootSimNativePublicInstance;
|
|
3332
|
-
export declare function withSootSimNativePublicInstanceTags<T extends object>(handle: Omit<T, keyof SootSimNativePublicInstance>, viewTag: () => number | undefined): T & SootSimNativePublicInstance;
|
|
3333
|
-
export type BoxViewingMode = 'remote' | 'local';
|
|
3334
|
-
export interface BoxViewingMessage {
|
|
3335
|
-
type: 'sootsim:boxViewing';
|
|
3336
|
-
mode: BoxViewingMode;
|
|
3337
|
-
}
|
|
3338
|
-
export declare function isBoxViewingMessage(value: unknown): value is BoxViewingMessage;
|
|
3339
|
-
export interface NumericTextPaintRequest {
|
|
3340
|
-
value: number;
|
|
3341
|
-
countsDown?: boolean;
|
|
3342
|
-
animated: boolean;
|
|
3343
|
-
speed: number;
|
|
3344
|
-
delay: number;
|
|
3345
|
-
}
|