@kaeawc/auto-mobile 0.0.87 → 0.0.88

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 CHANGED
@@ -8,9 +8,9 @@
8
8
  ![Platform: macOS](https://img.shields.io/badge/platform-macOS-lightgrey)
9
9
  ![Platform: Linux](https://img.shields.io/badge/platform-Linux-lightgrey)
10
10
 
11
- ![TypeScript tests: 37,425](https://img.shields.io/badge/TypeScript_tests-37%2C425-3178C6)
12
- ![Kotlin tests: 7,335](https://img.shields.io/badge/Kotlin_tests-7%2C335-7F52FF)
13
- ![Swift tests: 3,594](https://img.shields.io/badge/Swift_tests-3%2C594-F05138)
11
+ ![TypeScript tests](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/typescript-tests-badge.json)
12
+ ![Kotlin tests](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/kotlin-tests-badge.json)
13
+ ![Swift tests](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/swift-tests-badge.json)
14
14
  ![Kotlin coverage](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/kotlin-coverage-badge.json)
15
15
  ![Swift coverage](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/swift-coverage-badge.json)
16
16
 
package/README.md.backup CHANGED
@@ -8,9 +8,9 @@
8
8
  ![Platform: macOS](https://img.shields.io/badge/platform-macOS-lightgrey)
9
9
  ![Platform: Linux](https://img.shields.io/badge/platform-Linux-lightgrey)
10
10
 
11
- ![TypeScript tests: 37,425](https://img.shields.io/badge/TypeScript_tests-37%2C425-3178C6)
12
- ![Kotlin tests: 7,335](https://img.shields.io/badge/Kotlin_tests-7%2C335-7F52FF)
13
- ![Swift tests: 3,594](https://img.shields.io/badge/Swift_tests-3%2C594-F05138)
11
+ ![TypeScript tests](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/typescript-tests-badge.json)
12
+ ![Kotlin tests](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/kotlin-tests-badge.json)
13
+ ![Swift tests](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/swift-tests-badge.json)
14
14
  ![Kotlin coverage](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/kotlin-coverage-badge.json)
15
15
  ![Swift coverage](https://img.shields.io/endpoint?url=https://kaeawc.github.io/auto-mobile/swift-coverage-badge.json)
16
16
 
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "@kaeawc/auto-mobile",
4
- "version": "0.0.87",
5
- "sourceSha": "8e5559b7f3e7b44a0909050825ff8bdbecb206b7",
4
+ "version": "0.0.88",
5
+ "sourceSha": "b4d7fbed107614aef6e2f903ebdd901a16aad830",
6
6
  "sourceShaFrom": "git",
7
7
  "sourceDirty": false,
8
8
  "sourceDirtyPaths": [],
9
9
  "nativeResources": {
10
- "apkSha256": "65e6c420b48b9af28377df9b68073b6151567a90059cefb33e677a5310cb6544",
11
- "ipaSha256": "0d5bc367976e67475400fd85a84b85c2e51bd4efa31060bfb43fbba47c4fab7c",
12
- "runnerSha256": "1063cab4de18f363b8a7d1177d7df89687bcb19b85f0b93b504f509a12d6053e",
13
- "videoJarSha256": "943adc314a3a573108619cba3326b2a07ae42c9d631b15bb284e480115e639ab",
14
- "screenCaptureHelperSha256": "02034a9b3973240097b853c4281b0debbd979195ab256c825f2d1a207a86e64b",
15
- "prototypeAgentSha256": "9f329aea7173a371c180364849d5823fd12f96c0b5716953b68e255de1fb5b41",
16
- "prototypeViewerSha256": "60ac1b236434ac112aa293efcce258123db2a6f341bc6f809438f0b375b97fd9",
17
- "networkFilterSha256": "b177bccc11732773f7df2bfc0c398924739a92eca2fef2a5e822a3098561511f"
10
+ "apkSha256": "de6b78a022dcb62ff862b137076ac7202866a9896bda6d04be20dd7ab1ae377d",
11
+ "ipaSha256": "4fddc878276c9ea0a86008ea45422a41c31885cec70d5060b1ad573d45e8b893",
12
+ "runnerSha256": "5e6cf51eabcd6e7a7cd49e5205208845d11a54ae126fa235bee261120e7b0dc2",
13
+ "videoJarSha256": "092ad380e2cc80e763f1d91944113a79e343d8514178439bb2016bf52d9b5e92",
14
+ "screenCaptureHelperSha256": "bb0696c32e2ef61ebfede73a844817660e6a5aebbc8258dcc03e487afa294fb4",
15
+ "prototypeAgentSha256": "cc644a6dc81fd4aab561e2b7e8c1ba80a320a5b68da1729b650e750fd1b726e2",
16
+ "prototypeViewerSha256": "3fdabb1600c84db71ec8dbd089d8e741c1260bbf7631c48b5505b017713c7d22",
17
+ "networkFilterSha256": "ab1455dc7d737d4fc003ffaf11b5d2033c8b70f8648e059d7beef6164ce76336"
18
18
  },
19
19
  "nativeResourcesFrom": "release-registry"
20
20
  }
@@ -792,6 +792,15 @@
792
792
  {
793
793
  "required": ["cameraPoster"]
794
794
  },
795
+ {
796
+ "required": ["screenLock"]
797
+ },
798
+ {
799
+ "required": ["power"]
800
+ },
801
+ {
802
+ "required": ["deviceCondition"]
803
+ },
795
804
  {
796
805
  "required": ["params"]
797
806
  }
@@ -1668,6 +1677,105 @@
1668
1677
  },
1669
1678
  "additionalProperties": false
1670
1679
  },
1680
+ "screenLock": {
1681
+ "description": "Android only. Set a lock-screen PIN, password, or pattern (digits 1-9) with locksettings, or clear one with type none and currentCredential. A recorded plan has the credential replaced by <redacted>: set it by hand before a replay.",
1682
+ "anyOf": [
1683
+ {
1684
+ "type": "object",
1685
+ "properties": {
1686
+ "type": { "type": "string", "const": "pin" },
1687
+ "credential": { "type": "string", "pattern": "^\\d{4,16}$" }
1688
+ },
1689
+ "required": ["type", "credential"],
1690
+ "additionalProperties": false
1691
+ },
1692
+ {
1693
+ "type": "object",
1694
+ "properties": {
1695
+ "type": { "type": "string", "const": "password" },
1696
+ "credential": {
1697
+ "type": "string",
1698
+ "pattern": "^(?!-)[\\x20-\\x26\\x28-\\x7e]{4,16}$"
1699
+ }
1700
+ },
1701
+ "required": ["type", "credential"],
1702
+ "additionalProperties": false
1703
+ },
1704
+ {
1705
+ "type": "object",
1706
+ "properties": {
1707
+ "type": { "type": "string", "const": "pattern" },
1708
+ "credential": { "type": "string", "pattern": "^[1-9]{4,9}$" }
1709
+ },
1710
+ "required": ["type", "credential"],
1711
+ "additionalProperties": false
1712
+ },
1713
+ {
1714
+ "type": "object",
1715
+ "properties": {
1716
+ "type": { "type": "string", "const": "none" },
1717
+ "currentCredential": {
1718
+ "type": "string",
1719
+ "pattern": "^(?!-)[\\x20-\\x26\\x28-\\x7e]{4,16}$"
1720
+ }
1721
+ },
1722
+ "required": ["type", "currentCredential"],
1723
+ "additionalProperties": false
1724
+ }
1725
+ ]
1726
+ },
1727
+ "power": {
1728
+ "description": "Android only. Fake battery (level, charging ac|usb|wireless|none, reset), battery saver, Doze (off|light|deep; light/deep unplug the battery and turn the screen off first), an app's standby bucket and inactive state, Data Saver and thermal status (0-6 or reset). Battery, Doze and thermal faking is refused on physical devices. A session restores every changed field on release.",
1729
+ "type": "object",
1730
+ "properties": {
1731
+ "battery": {
1732
+ "type": "object",
1733
+ "properties": {
1734
+ "level": { "type": "integer", "minimum": 0, "maximum": 100 },
1735
+ "charging": { "type": "string", "enum": ["ac", "usb", "wireless", "none"] },
1736
+ "reset": { "type": "boolean" }
1737
+ },
1738
+ "additionalProperties": false
1739
+ },
1740
+ "batterySaver": { "type": "boolean" },
1741
+ "doze": { "type": "string", "enum": ["off", "light", "deep"] },
1742
+ "standbyBucket": {
1743
+ "type": "object",
1744
+ "properties": {
1745
+ "appId": {
1746
+ "type": "string",
1747
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(?:\\.[A-Za-z][A-Za-z0-9_]*)+$"
1748
+ },
1749
+ "bucket": {
1750
+ "type": "string",
1751
+ "enum": ["active", "working_set", "frequent", "rare", "restricted"]
1752
+ }
1753
+ },
1754
+ "required": ["appId", "bucket"],
1755
+ "additionalProperties": false
1756
+ },
1757
+ "appInactive": {
1758
+ "type": "object",
1759
+ "properties": {
1760
+ "appId": {
1761
+ "type": "string",
1762
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(?:\\.[A-Za-z][A-Za-z0-9_]*)+$"
1763
+ },
1764
+ "inactive": { "type": "boolean" }
1765
+ },
1766
+ "required": ["appId", "inactive"],
1767
+ "additionalProperties": false
1768
+ },
1769
+ "dataSaver": { "type": "boolean" },
1770
+ "thermalStatus": {
1771
+ "anyOf": [
1772
+ { "type": "integer", "minimum": 0, "maximum": 6 },
1773
+ { "type": "string", "const": "reset" }
1774
+ ]
1775
+ }
1776
+ },
1777
+ "additionalProperties": false
1778
+ },
1671
1779
  "location": {
1672
1780
  "description": "Set a static fix, start a timed route, or stop route playback on an Android emulator or iOS Simulator.",
1673
1781
  "anyOf": [
@@ -1799,6 +1907,145 @@
1799
1907
  "additionalProperties": false
1800
1908
  }
1801
1909
  ]
1910
+ },
1911
+ "deviceCondition": {
1912
+ "description": "Session-scoped root/integrity/fault test fixtures (behind the 'device-condition' feature flag). Sent in its own setDeviceState call.",
1913
+ "type": "object",
1914
+ "properties": {
1915
+ "version": { "type": "number", "const": 1 },
1916
+ "rootState": { "type": "string", "enum": ["rooted-detectable", "unset"] },
1917
+ "integrityState": { "type": "string", "const": "unset" },
1918
+ "faults": {
1919
+ "type": "object",
1920
+ "properties": {
1921
+ "battery": { "type": "string", "enum": ["unplug", "low", "full", "unset"] },
1922
+ "lowPower": { "type": "string", "enum": ["on", "unset"] },
1923
+ "doze": { "type": "string", "enum": ["on", "unset"] },
1924
+ "thermal": { "type": "string", "enum": ["throttling", "critical", "unset"] },
1925
+ "storage": { "type": "string", "enum": ["low", "full", "unset"] },
1926
+ "dontKeepActivities": { "type": "string", "enum": ["on", "unset"] },
1927
+ "revokePermission": {
1928
+ "oneOf": [
1929
+ { "type": "string", "const": "unset" },
1930
+ {
1931
+ "type": "object",
1932
+ "properties": {
1933
+ "package": {
1934
+ "type": "string",
1935
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
1936
+ },
1937
+ "permission": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9_.]*$" }
1938
+ },
1939
+ "required": ["package", "permission"],
1940
+ "additionalProperties": false
1941
+ }
1942
+ ]
1943
+ },
1944
+ "disablePackage": {
1945
+ "oneOf": [
1946
+ { "type": "string", "const": "unset" },
1947
+ {
1948
+ "type": "object",
1949
+ "properties": {
1950
+ "package": {
1951
+ "type": "string",
1952
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
1953
+ }
1954
+ },
1955
+ "required": ["package"],
1956
+ "additionalProperties": false
1957
+ }
1958
+ ]
1959
+ },
1960
+ "corruptAppFile": {
1961
+ "oneOf": [
1962
+ { "type": "string", "const": "unset" },
1963
+ {
1964
+ "type": "object",
1965
+ "properties": {
1966
+ "package": {
1967
+ "type": "string",
1968
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
1969
+ },
1970
+ "path": {
1971
+ "type": "string",
1972
+ "pattern": "^(?!\\.{1,2}(?:/|$))[A-Za-z0-9_.-]+(?:/(?!\\.{1,2}(?:/|$))[A-Za-z0-9_.-]+)*$"
1973
+ },
1974
+ "mode": { "type": "string", "enum": ["overwrite", "truncate"] }
1975
+ },
1976
+ "required": ["package", "path", "mode"],
1977
+ "additionalProperties": false
1978
+ }
1979
+ ]
1980
+ },
1981
+ "killApp": {
1982
+ "oneOf": [
1983
+ { "type": "string", "const": "unset" },
1984
+ {
1985
+ "type": "object",
1986
+ "properties": {
1987
+ "package": {
1988
+ "type": "string",
1989
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
1990
+ },
1991
+ "mode": { "type": "string", "enum": ["background", "forceStop"] }
1992
+ },
1993
+ "required": ["package", "mode"],
1994
+ "additionalProperties": false
1995
+ }
1996
+ ]
1997
+ },
1998
+ "trimMemory": {
1999
+ "oneOf": [
2000
+ { "type": "string", "const": "unset" },
2001
+ {
2002
+ "type": "object",
2003
+ "properties": {
2004
+ "package": {
2005
+ "type": "string",
2006
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
2007
+ },
2008
+ "level": {
2009
+ "type": "string",
2010
+ "enum": [
2011
+ "HIDDEN",
2012
+ "RUNNING_MODERATE",
2013
+ "BACKGROUND",
2014
+ "RUNNING_LOW",
2015
+ "MODERATE",
2016
+ "RUNNING_CRITICAL",
2017
+ "COMPLETE"
2018
+ ]
2019
+ }
2020
+ },
2021
+ "required": ["package", "level"],
2022
+ "additionalProperties": false
2023
+ }
2024
+ ]
2025
+ },
2026
+ "clearPackageData": {
2027
+ "oneOf": [
2028
+ { "type": "string", "const": "unset" },
2029
+ {
2030
+ "type": "object",
2031
+ "properties": {
2032
+ "package": {
2033
+ "type": "string",
2034
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
2035
+ }
2036
+ },
2037
+ "required": ["package"],
2038
+ "additionalProperties": false
2039
+ }
2040
+ ]
2041
+ }
2042
+ },
2043
+ "additionalProperties": false
2044
+ },
2045
+ "expiresInSeconds": { "type": "integer", "minimum": 1, "maximum": 86400 },
2046
+ "reset": { "type": "boolean", "const": true }
2047
+ },
2048
+ "additionalProperties": false
1802
2049
  }
1803
2050
  },
1804
2051
  "anyOf": [
@@ -1822,6 +2069,15 @@
1822
2069
  },
1823
2070
  {
1824
2071
  "required": ["cameraPoster"]
2072
+ },
2073
+ {
2074
+ "required": ["screenLock"]
2075
+ },
2076
+ {
2077
+ "required": ["power"]
2078
+ },
2079
+ {
2080
+ "required": ["deviceCondition"]
1825
2081
  }
1826
2082
  ],
1827
2083
  "description": "Parameters for setDeviceState"