@limrun/api 0.80.1 → 0.81.0
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/CHANGELOG.md +18 -0
- package/README.md +29 -0
- package/gradle-snapshot.d.mts +34 -0
- package/gradle-snapshot.d.mts.map +1 -1
- package/gradle-snapshot.d.ts +34 -0
- package/gradle-snapshot.d.ts.map +1 -1
- package/gradle-snapshot.js +14 -1
- package/gradle-snapshot.js.map +1 -1
- package/gradle-snapshot.mjs +12 -0
- package/gradle-snapshot.mjs.map +1 -1
- package/index.d.mts +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/gradle-instances-helpers.d.mts +10 -0
- package/resources/gradle-instances-helpers.d.mts.map +1 -1
- package/resources/gradle-instances-helpers.d.ts +10 -0
- package/resources/gradle-instances-helpers.d.ts.map +1 -1
- package/resources/gradle-instances-helpers.js +56 -0
- package/resources/gradle-instances-helpers.js.map +1 -1
- package/resources/gradle-instances-helpers.mjs +56 -0
- package/resources/gradle-instances-helpers.mjs.map +1 -1
- package/resources/ios-instances.d.mts +62 -0
- package/resources/ios-instances.d.mts.map +1 -1
- package/resources/ios-instances.d.ts +62 -0
- package/resources/ios-instances.d.ts.map +1 -1
- package/src/gradle-snapshot.ts +40 -0
- package/src/index.ts +3 -0
- package/src/resources/gradle-instances-helpers.ts +84 -0
- package/src/resources/ios-instances.ts +75 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -148,6 +148,12 @@ export namespace IosInstance {
|
|
|
148
148
|
|
|
149
149
|
targetHttpPortUrlPrefix?: string;
|
|
150
150
|
|
|
151
|
+
/**
|
|
152
|
+
* How the restore of `spec.deviceState` went. Present only on the create
|
|
153
|
+
* response; get and list do not carry it.
|
|
154
|
+
*/
|
|
155
|
+
deviceState?: Status.DeviceState;
|
|
156
|
+
|
|
151
157
|
/**
|
|
152
158
|
* Machine-readable reason for instance termination. Present when state is
|
|
153
159
|
* "terminating" or "terminated". New values may be added over time, so treat any
|
|
@@ -164,6 +170,51 @@ export namespace IosInstance {
|
|
|
164
170
|
*/
|
|
165
171
|
terminationReason?: string;
|
|
166
172
|
}
|
|
173
|
+
|
|
174
|
+
export namespace Status {
|
|
175
|
+
export interface DeviceState {
|
|
176
|
+
restore: DeviceState.Restore;
|
|
177
|
+
save: DeviceState.Save;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export namespace DeviceState {
|
|
181
|
+
export interface Restore {
|
|
182
|
+
/**
|
|
183
|
+
* `restored` applied the saved state. `empty` found nothing under the key, so the
|
|
184
|
+
* simulator starts clean and the save creates the snapshot. `failed` leaves the
|
|
185
|
+
* instance ready with saving disabled, because the restore may have left partial
|
|
186
|
+
* state. `pending` has not finished; in client mode it stays pending until the
|
|
187
|
+
* caller reports the restore done.
|
|
188
|
+
*/
|
|
189
|
+
phase: 'pending' | 'restored' | 'empty' | 'failed';
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Client restore mode only: pass it to the simulator's `importDeviceState`
|
|
193
|
+
* command. An empty string means nothing is saved. It is a presigned URL, so
|
|
194
|
+
* do not log it.
|
|
195
|
+
*/
|
|
196
|
+
downloadUrl?: string;
|
|
197
|
+
|
|
198
|
+
reason?: string;
|
|
199
|
+
|
|
200
|
+
message?: string;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface Save {
|
|
204
|
+
/**
|
|
205
|
+
* `idle` saves when the instance is deleted. `disabled` means no key is set or the
|
|
206
|
+
* restore did not succeed. The other phases appear while the instance is deleted.
|
|
207
|
+
*/
|
|
208
|
+
phase: 'disabled' | 'idle' | 'requested' | 'saved' | 'skipped' | 'failed' | 'timed_out';
|
|
209
|
+
|
|
210
|
+
reason?: string;
|
|
211
|
+
|
|
212
|
+
message?: string;
|
|
213
|
+
|
|
214
|
+
sizeBytes?: number;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
167
218
|
}
|
|
168
219
|
|
|
169
220
|
export interface IosInstanceUpdateParams {
|
|
@@ -226,6 +277,14 @@ export namespace IosInstanceCreateParams {
|
|
|
226
277
|
*/
|
|
227
278
|
clues?: Array<Spec.Clue>;
|
|
228
279
|
|
|
280
|
+
/**
|
|
281
|
+
* Restores the simulator snapshot saved under this key and saves back to it when
|
|
282
|
+
* the instance is deleted. A snapshot holds installed user apps, their data, app
|
|
283
|
+
* group containers, the keychain and supported privacy permissions. Keys are shared
|
|
284
|
+
* by the whole organization and the last save wins.
|
|
285
|
+
*/
|
|
286
|
+
deviceState?: Spec.DeviceState;
|
|
287
|
+
|
|
229
288
|
/**
|
|
230
289
|
* Keeps this app in the foreground after it is first observed there. This does not
|
|
231
290
|
* launch the app when the simulator starts. Once armed, closing or backgrounding
|
|
@@ -321,6 +380,22 @@ export namespace IosInstanceCreateParams {
|
|
|
321
380
|
}
|
|
322
381
|
|
|
323
382
|
export namespace Spec {
|
|
383
|
+
export interface DeviceState {
|
|
384
|
+
/**
|
|
385
|
+
* Snapshot key, up to 128 characters: a letter or digit, followed by letters,
|
|
386
|
+
* digits or `._-@:+`. A new key starts clean and the first save creates it.
|
|
387
|
+
*/
|
|
388
|
+
key: string;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* `server` (the default) restores before the instance becomes ready. `client`
|
|
392
|
+
* returns `status.deviceState.restore.downloadUrl` and leaves the restore to the
|
|
393
|
+
* caller, who must then call `POST /v1/ios_instances/{id}/device_state/ready`
|
|
394
|
+
* before the instance can save.
|
|
395
|
+
*/
|
|
396
|
+
restoreMode?: 'server' | 'client';
|
|
397
|
+
}
|
|
398
|
+
|
|
324
399
|
export interface Clue {
|
|
325
400
|
kind: 'ClientIP' | 'ClientLocation' | 'OSVersion';
|
|
326
401
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.81.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.81.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.81.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.81.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|