@limrun/api 0.28.3 → 0.28.4

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/exec-client.d.mts +6 -0
  3. package/exec-client.d.mts.map +1 -1
  4. package/exec-client.d.ts +6 -0
  5. package/exec-client.d.ts.map +1 -1
  6. package/exec-client.js.map +1 -1
  7. package/exec-client.mjs.map +1 -1
  8. package/internal/types.d.mts +6 -6
  9. package/internal/types.d.mts.map +1 -1
  10. package/internal/types.d.ts +6 -6
  11. package/internal/types.d.ts.map +1 -1
  12. package/internal/utils/log.d.mts.map +1 -1
  13. package/internal/utils/log.d.ts.map +1 -1
  14. package/internal/utils/log.js +2 -0
  15. package/internal/utils/log.js.map +1 -1
  16. package/internal/utils/log.mjs +2 -0
  17. package/internal/utils/log.mjs.map +1 -1
  18. package/ios-client.d.mts +2 -0
  19. package/ios-client.d.mts.map +1 -1
  20. package/ios-client.d.ts +2 -0
  21. package/ios-client.d.ts.map +1 -1
  22. package/ios-client.js +1 -1
  23. package/ios-client.js.map +1 -1
  24. package/ios-client.mjs +1 -1
  25. package/ios-client.mjs.map +1 -1
  26. package/package.json +1 -1
  27. package/resources/xcode-instances-helpers.d.mts +7 -2
  28. package/resources/xcode-instances-helpers.d.mts.map +1 -1
  29. package/resources/xcode-instances-helpers.d.ts +7 -2
  30. package/resources/xcode-instances-helpers.d.ts.map +1 -1
  31. package/resources/xcode-instances-helpers.js +2 -2
  32. package/resources/xcode-instances-helpers.js.map +1 -1
  33. package/resources/xcode-instances-helpers.mjs +2 -2
  34. package/resources/xcode-instances-helpers.mjs.map +1 -1
  35. package/src/exec-client.ts +6 -0
  36. package/src/internal/types.ts +6 -8
  37. package/src/internal/utils/log.ts +2 -0
  38. package/src/ios-client.ts +12 -5
  39. package/src/resources/xcode-instances-helpers.ts +11 -4
  40. package/src/version.ts +1 -1
  41. package/version.d.mts +1 -1
  42. package/version.d.ts +1 -1
  43. package/version.js +1 -1
  44. package/version.mjs +1 -1
package/src/ios-client.ts CHANGED
@@ -259,6 +259,8 @@ export type CommandResult = {
259
259
  export type AppInstallationOptions = {
260
260
  /** MD5 hash for caching - if provided and matches cached version, skips download */
261
261
  md5?: string;
262
+ /** Client-side timeout for app installation. Defaults to 120 seconds. */
263
+ timeoutMs?: number;
262
264
  /**
263
265
  * Launch mode after installation:
264
266
  * - 'ForegroundIfRunning': Bring to foreground if already running, otherwise launch
@@ -1670,11 +1672,16 @@ export async function createInstanceClient(options: InstanceClientOptions): Prom
1670
1672
  };
1671
1673
 
1672
1674
  const installApp = (url: string, options?: AppInstallationOptions): Promise<AppInstallationResult> => {
1673
- return sendRequest<AppInstallationResult>('appInstallation', {
1674
- url,
1675
- md5: options?.md5,
1676
- launchMode: options?.launchMode,
1677
- });
1675
+ return sendRequest<AppInstallationResult>(
1676
+ 'appInstallation',
1677
+ {
1678
+ url,
1679
+ md5: options?.md5,
1680
+ launchMode: options?.launchMode,
1681
+ },
1682
+ undefined,
1683
+ options?.timeoutMs ?? 120_000,
1684
+ );
1678
1685
  };
1679
1686
 
1680
1687
  const setOrientation = (orientation: 'Portrait' | 'Landscape'): Promise<void> => {
@@ -51,11 +51,18 @@ export type XcodeProjectConfig = {
51
51
  workspace?: string;
52
52
  project?: string;
53
53
  scheme?: string;
54
- sdk?: 'iphonesimulator' | 'iphoneos';
54
+ sdk?: 'iphonesimulator' | 'iphoneos' | 'watchsimulator' | 'watchos';
55
+ };
56
+
57
+ export type XcodeSigningConfig = {
58
+ certificateP12Base64?: string;
59
+ certificatePassword?: string;
60
+ provisioningProfileBase64?: string;
55
61
  };
56
62
 
57
63
  export type XcodeBuildOptions = {
58
- upload?: { assetName: string } | { signedUploadUrl: string; signedDownloadUrl: string };
64
+ upload?: { assetName: string } | { signedUploadUrl: string };
65
+ signing?: XcodeSigningConfig;
59
66
  };
60
67
 
61
68
  export type XcodeClient = {
@@ -228,6 +235,7 @@ export class XcodeInstances extends GeneratedXcodeInstances {
228
235
  const request: ExecRequest = {
229
236
  command: 'xcodebuild',
230
237
  ...(settings && { xcodebuild: settings }),
238
+ ...(options?.signing && { signing: options.signing }),
231
239
  };
232
240
 
233
241
  if (options?.upload && 'assetName' in options.upload) {
@@ -249,9 +257,8 @@ export class XcodeInstances extends GeneratedXcodeInstances {
249
257
  return exec(requestPromise, { apiUrl, token, log });
250
258
  }
251
259
 
252
- if (options?.upload && 'signedUploadUrl' in options.upload && 'signedDownloadUrl' in options.upload) {
260
+ if (options?.upload && 'signedUploadUrl' in options.upload) {
253
261
  request.signedUploadUrl = options.upload.signedUploadUrl;
254
- request.additionalMetadata = { signedDownloadUrl: options.upload.signedDownloadUrl };
255
262
  }
256
263
 
257
264
  return exec(request, { apiUrl, token, log });
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.28.3'; // x-release-please-version
1
+ export const VERSION = '0.28.4'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.28.3";
1
+ export declare const VERSION = "0.28.4";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.28.3";
1
+ export declare const VERSION = "0.28.4";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.28.3'; // x-release-please-version
4
+ exports.VERSION = '0.28.4'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.28.3'; // x-release-please-version
1
+ export const VERSION = '0.28.4'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map