@limrun/api 0.20.3 → 0.22.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/client.d.mts +1 -1
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +1 -1
  5. package/client.d.ts.map +1 -1
  6. package/client.js +15 -17
  7. package/client.js.map +1 -1
  8. package/client.mjs +15 -17
  9. package/client.mjs.map +1 -1
  10. package/instance-client.d.mts +109 -0
  11. package/instance-client.d.mts.map +1 -1
  12. package/instance-client.d.ts +109 -0
  13. package/instance-client.d.ts.map +1 -1
  14. package/instance-client.js +262 -69
  15. package/instance-client.js.map +1 -1
  16. package/instance-client.mjs +262 -69
  17. package/instance-client.mjs.map +1 -1
  18. package/internal/utils/query.d.mts +5 -0
  19. package/internal/utils/query.d.mts.map +1 -0
  20. package/internal/utils/query.d.ts +5 -0
  21. package/internal/utils/query.d.ts.map +1 -0
  22. package/internal/utils/query.js +23 -0
  23. package/internal/utils/query.js.map +1 -0
  24. package/internal/utils/query.mjs +20 -0
  25. package/internal/utils/query.mjs.map +1 -0
  26. package/internal/utils.d.mts +1 -0
  27. package/internal/utils.d.ts +1 -0
  28. package/internal/utils.js +1 -0
  29. package/internal/utils.js.map +1 -1
  30. package/internal/utils.mjs +1 -0
  31. package/package.json +12 -1
  32. package/resources/android-instances.d.mts +1 -0
  33. package/resources/android-instances.d.mts.map +1 -1
  34. package/resources/android-instances.d.ts +1 -0
  35. package/resources/android-instances.d.ts.map +1 -1
  36. package/resources/ios-instances.d.mts +4 -0
  37. package/resources/ios-instances.d.mts.map +1 -1
  38. package/resources/ios-instances.d.ts +4 -0
  39. package/resources/ios-instances.d.ts.map +1 -1
  40. package/src/client.ts +18 -21
  41. package/src/instance-client.ts +516 -96
  42. package/src/internal/utils/query.ts +23 -0
  43. package/src/internal/utils.ts +1 -0
  44. package/src/resources/android-instances.ts +2 -0
  45. package/src/resources/ios-instances.ts +5 -0
  46. package/src/version.ts +1 -1
  47. package/version.d.mts +1 -1
  48. package/version.d.ts +1 -1
  49. package/version.js +1 -1
  50. package/version.mjs +1 -1
@@ -0,0 +1,23 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { LimrunError } from '../../core/error';
4
+
5
+ /**
6
+ * Basic re-implementation of `qs.stringify` for primitive types.
7
+ */
8
+ export function stringifyQuery(query: object | Record<string, unknown>) {
9
+ return Object.entries(query)
10
+ .filter(([_, value]) => typeof value !== 'undefined')
11
+ .map(([key, value]) => {
12
+ if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
13
+ return `${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
14
+ }
15
+ if (value === null) {
16
+ return `${encodeURIComponent(key)}=`;
17
+ }
18
+ throw new LimrunError(
19
+ `Cannot stringify type ${typeof value}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`,
20
+ );
21
+ })
22
+ .join('&');
23
+ }
@@ -6,3 +6,4 @@ export * from './utils/env';
6
6
  export * from './utils/log';
7
7
  export * from './utils/uuid';
8
8
  export * from './utils/sleep';
9
+ export * from './utils/query';
@@ -101,6 +101,8 @@ export namespace AndroidInstance {
101
101
 
102
102
  errorMessage?: string;
103
103
 
104
+ mcpUrl?: string;
105
+
104
106
  sandbox?: Status.Sandbox;
105
107
 
106
108
  targetHttpPortUrlPrefix?: string;
@@ -169,6 +169,11 @@ export namespace IosInstanceCreateParams {
169
169
 
170
170
  initialAssets?: Array<Spec.InitialAsset>;
171
171
 
172
+ /**
173
+ * The model for the Apple Simulator. Default is iphone.
174
+ */
175
+ model?: 'iphone' | 'ipad' | 'watch';
176
+
172
177
  /**
173
178
  * The region where the instance will be created. If not given, will be decided
174
179
  * based on scheduling clues and availability.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.20.3'; // x-release-please-version
1
+ export const VERSION = '0.22.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.20.3";
1
+ export declare const VERSION = "0.22.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.20.3";
1
+ export declare const VERSION = "0.22.0";
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.20.3'; // x-release-please-version
4
+ exports.VERSION = '0.22.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.20.3'; // x-release-please-version
1
+ export const VERSION = '0.22.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map