@@ -40,6 +40,12 @@ export interface SimulatorMetadata {
4040 runtimeIdentifier ?: string ;
4141 deviceTypeName ?: string ;
4242 deviceTypeIdentifier ?: string ;
43+ pairedWatchUDID ?: string ;
44+ pairedWatchName ?: string ;
45+ pairedPhoneUDID ?: string ;
46+ pairedPhoneName ?: string ;
47+ devicePairIdentifier ?: string ;
48+ devicePairState ?: string ;
4349 isBooted : boolean ;
4450 android ?: {
4551 avdName ?: string ;
@@ -53,6 +59,80 @@ export interface SimulatorsResponse {
5359 simulators : SimulatorMetadata [ ] ;
5460}
5561
62+ export interface SimulatorDeviceTypeOption {
63+ identifier : string ;
64+ name : string ;
65+ productFamily ?: string ;
66+ modelIdentifier ?: string ;
67+ minRuntimeVersion ?: number ;
68+ minRuntimeVersionString ?: string ;
69+ maxRuntimeVersion ?: number ;
70+ maxRuntimeVersionString ?: string ;
71+ supportedRuntimeIdentifiers ?: string [ ] ;
72+ }
73+
74+ export interface SimulatorRuntimeOption {
75+ identifier : string ;
76+ name : string ;
77+ platform ?: string ;
78+ version ?: string ;
79+ buildVersion ?: string ;
80+ isAvailable ?: boolean ;
81+ supportedDeviceTypeIdentifiers ?: string [ ] ;
82+ }
83+
84+ export interface AndroidEmulatorDeviceTypeOption {
85+ identifier : string ;
86+ name : string ;
87+ oem ?: string | null ;
88+ tag ?: string | null ;
89+ }
90+
91+ export interface AndroidEmulatorSystemImageOption {
92+ identifier : string ;
93+ name : string ;
94+ description ?: string ;
95+ apiLevel ?: number | null ;
96+ tag ?: string ;
97+ abi ?: string ;
98+ }
99+
100+ export interface AndroidEmulatorCreateOptions {
101+ deviceTypes : AndroidEmulatorDeviceTypeOption [ ] ;
102+ systemImages : AndroidEmulatorSystemImageOption [ ] ;
103+ unavailableReason ?: string ;
104+ }
105+
106+ export interface SimulatorCreateOptionsResponse {
107+ deviceTypes : SimulatorDeviceTypeOption [ ] ;
108+ runtimes : SimulatorRuntimeOption [ ] ;
109+ android ?: AndroidEmulatorCreateOptions ;
110+ }
111+
112+ export interface CreatePairedWatchRequest {
113+ name : string ;
114+ deviceTypeIdentifier : string ;
115+ runtimeIdentifier ?: string ;
116+ }
117+
118+ export interface CreateSimulatorRequest {
119+ platform ?: "ios" | "android" | string ;
120+ name : string ;
121+ deviceTypeIdentifier : string ;
122+ runtimeIdentifier ?: string ;
123+ pairedWatch ?: CreatePairedWatchRequest ;
124+ }
125+
126+ export interface CreateSimulatorResponse {
127+ ok : boolean ;
128+ created : {
129+ udid : string ;
130+ pairedWatchUDID ?: string ;
131+ } ;
132+ simulator : SimulatorMetadata ;
133+ pairedWatchSimulator ?: SimulatorMetadata | null ;
134+ }
135+
56136export interface WebKitTarget {
57137 id : string ;
58138 appId : string ;
0 commit comments