@limrun/api 0.8.1 → 0.10.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 (48) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/internal/to-file.d.mts +1 -1
  11. package/internal/to-file.d.ts +1 -1
  12. package/internal/to-file.js +1 -1
  13. package/internal/to-file.mjs +1 -1
  14. package/package.json +1 -1
  15. package/resources/android-instances.d.mts +3 -1
  16. package/resources/android-instances.d.mts.map +1 -1
  17. package/resources/android-instances.d.ts +3 -1
  18. package/resources/android-instances.d.ts.map +1 -1
  19. package/resources/index.d.mts +1 -0
  20. package/resources/index.d.mts.map +1 -1
  21. package/resources/index.d.ts +1 -0
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js +3 -1
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs +1 -0
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/ios-instances.d.mts +135 -0
  28. package/resources/ios-instances.d.mts.map +1 -0
  29. package/resources/ios-instances.d.ts +135 -0
  30. package/resources/ios-instances.d.ts.map +1 -0
  31. package/resources/ios-instances.js +39 -0
  32. package/resources/ios-instances.js.map +1 -0
  33. package/resources/ios-instances.mjs +35 -0
  34. package/resources/ios-instances.mjs.map +1 -0
  35. package/src/client.ts +17 -0
  36. package/src/internal/to-file.ts +1 -1
  37. package/src/resources/android-instances.ts +5 -1
  38. package/src/resources/index.ts +7 -0
  39. package/src/resources/ios-instances.ts +194 -0
  40. package/src/version.ts +1 -1
  41. package/version.d.mts +1 -1
  42. package/version.d.mts.map +1 -1
  43. package/version.d.ts +1 -1
  44. package/version.d.ts.map +1 -1
  45. package/version.js +1 -1
  46. package/version.js.map +1 -1
  47. package/version.mjs +1 -1
  48. package/version.mjs.map +1 -1
@@ -0,0 +1,135 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class IosInstances extends APIResource {
5
+ /**
6
+ * Create an iOS instance
7
+ */
8
+ create(params: IosInstanceCreateParams, options?: RequestOptions): APIPromise<IosInstance>;
9
+ /**
10
+ * List iOS instances
11
+ */
12
+ list(query?: IosInstanceListParams | null | undefined, options?: RequestOptions): APIPromise<IosInstanceListResponse>;
13
+ /**
14
+ * Delete iOS instance with given name
15
+ */
16
+ delete(id: string, options?: RequestOptions): APIPromise<void>;
17
+ /**
18
+ * Get iOS instance with given ID
19
+ */
20
+ get(id: string, options?: RequestOptions): APIPromise<IosInstance>;
21
+ }
22
+ export interface IosInstance {
23
+ metadata: IosInstance.Metadata;
24
+ spec: IosInstance.Spec;
25
+ status: IosInstance.Status;
26
+ }
27
+ export declare namespace IosInstance {
28
+ interface Metadata {
29
+ id: string;
30
+ createdAt: string;
31
+ organizationId: string;
32
+ displayName?: string;
33
+ labels?: {
34
+ [key: string]: string;
35
+ };
36
+ terminatedAt?: string;
37
+ }
38
+ interface Spec {
39
+ /**
40
+ * After how many minutes of inactivity should the instance be terminated. Example
41
+ * values 1m, 10m, 3h. Default is 3m. Providing "0" disables inactivity checks
42
+ * altogether.
43
+ */
44
+ inactivityTimeout: string;
45
+ /**
46
+ * The region where the instance will be created. If not given, will be decided
47
+ * based on scheduling clues and availability.
48
+ */
49
+ region: string;
50
+ /**
51
+ * After how many minutes should the instance be terminated. Example values 1m,
52
+ * 10m, 3h. Default is "0" which means no hard timeout.
53
+ */
54
+ hardTimeout?: string;
55
+ }
56
+ interface Status {
57
+ token: string;
58
+ state: 'unknown' | 'creating' | 'ready' | 'terminated';
59
+ endpointWebSocketUrl?: string;
60
+ }
61
+ }
62
+ export type IosInstanceListResponse = Array<IosInstance>;
63
+ export interface IosInstanceCreateParams {
64
+ /**
65
+ * Query param: Return after the instance is ready to connect.
66
+ */
67
+ wait?: boolean;
68
+ /**
69
+ * Body param:
70
+ */
71
+ metadata?: IosInstanceCreateParams.Metadata;
72
+ /**
73
+ * Body param:
74
+ */
75
+ spec?: IosInstanceCreateParams.Spec;
76
+ }
77
+ export declare namespace IosInstanceCreateParams {
78
+ interface Metadata {
79
+ displayName?: string;
80
+ labels?: {
81
+ [key: string]: string;
82
+ };
83
+ }
84
+ interface Spec {
85
+ clues?: Array<Spec.Clue>;
86
+ /**
87
+ * After how many minutes should the instance be terminated. Example values 1m,
88
+ * 10m, 3h. Default is "0" which means no hard timeout.
89
+ */
90
+ hardTimeout?: string;
91
+ /**
92
+ * After how many minutes of inactivity should the instance be terminated. Example
93
+ * values 1m, 10m, 3h. Default is 3m. Providing "0" disables inactivity checks
94
+ * altogether.
95
+ */
96
+ inactivityTimeout?: string;
97
+ initialAssets?: Array<Spec.InitialAsset>;
98
+ /**
99
+ * The region where the instance will be created. If not given, will be decided
100
+ * based on scheduling clues and availability.
101
+ */
102
+ region?: string;
103
+ }
104
+ namespace Spec {
105
+ interface Clue {
106
+ kind: 'ClientIP';
107
+ clientIp?: string;
108
+ }
109
+ interface InitialAsset {
110
+ kind: 'App';
111
+ source: 'URL' | 'AssetName';
112
+ assetName?: string;
113
+ url?: string;
114
+ }
115
+ }
116
+ }
117
+ export interface IosInstanceListParams {
118
+ /**
119
+ * Labels filter to apply to instances to return. Expects a comma-separated list of
120
+ * key=value pairs (e.g., env=prod,region=us-west).
121
+ */
122
+ labelSelector?: string;
123
+ /**
124
+ * Region where the instance is scheduled on.
125
+ */
126
+ region?: string;
127
+ /**
128
+ * State filter to apply to instances to return.
129
+ */
130
+ state?: 'unknown' | 'creating' | 'ready' | 'terminated';
131
+ }
132
+ export declare namespace IosInstances {
133
+ export { type IosInstance as IosInstance, type IosInstanceListResponse as IosInstanceListResponse, type IosInstanceCreateParams as IosInstanceCreateParams, type IosInstanceListParams as IosInstanceListParams, };
134
+ }
135
+ //# sourceMappingURL=ios-instances.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ios-instances.d.mts","sourceRoot":"","sources":["../src/resources/ios-instances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAK1F;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO9D;;OAEG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;CAGnE;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAC;IAE/B,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC;IAEvB,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC;CAC5B;AAED,yBAAiB,WAAW,CAAC;IAC3B,UAAiB,QAAQ;QACvB,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,cAAc,EAAE,MAAM,CAAC;QAEvB,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB,MAAM,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;QAEnC,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB;IAED,UAAiB,IAAI;QACnB;;;;WAIG;QAC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,EAAE,KAAK,GAAG,WAAW,CAAC;YAE5B,SAAS,CAAC,EAAE,MAAM,CAAC;YAEnB,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,CAAC;CACzD;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
@@ -0,0 +1,135 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class IosInstances extends APIResource {
5
+ /**
6
+ * Create an iOS instance
7
+ */
8
+ create(params: IosInstanceCreateParams, options?: RequestOptions): APIPromise<IosInstance>;
9
+ /**
10
+ * List iOS instances
11
+ */
12
+ list(query?: IosInstanceListParams | null | undefined, options?: RequestOptions): APIPromise<IosInstanceListResponse>;
13
+ /**
14
+ * Delete iOS instance with given name
15
+ */
16
+ delete(id: string, options?: RequestOptions): APIPromise<void>;
17
+ /**
18
+ * Get iOS instance with given ID
19
+ */
20
+ get(id: string, options?: RequestOptions): APIPromise<IosInstance>;
21
+ }
22
+ export interface IosInstance {
23
+ metadata: IosInstance.Metadata;
24
+ spec: IosInstance.Spec;
25
+ status: IosInstance.Status;
26
+ }
27
+ export declare namespace IosInstance {
28
+ interface Metadata {
29
+ id: string;
30
+ createdAt: string;
31
+ organizationId: string;
32
+ displayName?: string;
33
+ labels?: {
34
+ [key: string]: string;
35
+ };
36
+ terminatedAt?: string;
37
+ }
38
+ interface Spec {
39
+ /**
40
+ * After how many minutes of inactivity should the instance be terminated. Example
41
+ * values 1m, 10m, 3h. Default is 3m. Providing "0" disables inactivity checks
42
+ * altogether.
43
+ */
44
+ inactivityTimeout: string;
45
+ /**
46
+ * The region where the instance will be created. If not given, will be decided
47
+ * based on scheduling clues and availability.
48
+ */
49
+ region: string;
50
+ /**
51
+ * After how many minutes should the instance be terminated. Example values 1m,
52
+ * 10m, 3h. Default is "0" which means no hard timeout.
53
+ */
54
+ hardTimeout?: string;
55
+ }
56
+ interface Status {
57
+ token: string;
58
+ state: 'unknown' | 'creating' | 'ready' | 'terminated';
59
+ endpointWebSocketUrl?: string;
60
+ }
61
+ }
62
+ export type IosInstanceListResponse = Array<IosInstance>;
63
+ export interface IosInstanceCreateParams {
64
+ /**
65
+ * Query param: Return after the instance is ready to connect.
66
+ */
67
+ wait?: boolean;
68
+ /**
69
+ * Body param:
70
+ */
71
+ metadata?: IosInstanceCreateParams.Metadata;
72
+ /**
73
+ * Body param:
74
+ */
75
+ spec?: IosInstanceCreateParams.Spec;
76
+ }
77
+ export declare namespace IosInstanceCreateParams {
78
+ interface Metadata {
79
+ displayName?: string;
80
+ labels?: {
81
+ [key: string]: string;
82
+ };
83
+ }
84
+ interface Spec {
85
+ clues?: Array<Spec.Clue>;
86
+ /**
87
+ * After how many minutes should the instance be terminated. Example values 1m,
88
+ * 10m, 3h. Default is "0" which means no hard timeout.
89
+ */
90
+ hardTimeout?: string;
91
+ /**
92
+ * After how many minutes of inactivity should the instance be terminated. Example
93
+ * values 1m, 10m, 3h. Default is 3m. Providing "0" disables inactivity checks
94
+ * altogether.
95
+ */
96
+ inactivityTimeout?: string;
97
+ initialAssets?: Array<Spec.InitialAsset>;
98
+ /**
99
+ * The region where the instance will be created. If not given, will be decided
100
+ * based on scheduling clues and availability.
101
+ */
102
+ region?: string;
103
+ }
104
+ namespace Spec {
105
+ interface Clue {
106
+ kind: 'ClientIP';
107
+ clientIp?: string;
108
+ }
109
+ interface InitialAsset {
110
+ kind: 'App';
111
+ source: 'URL' | 'AssetName';
112
+ assetName?: string;
113
+ url?: string;
114
+ }
115
+ }
116
+ }
117
+ export interface IosInstanceListParams {
118
+ /**
119
+ * Labels filter to apply to instances to return. Expects a comma-separated list of
120
+ * key=value pairs (e.g., env=prod,region=us-west).
121
+ */
122
+ labelSelector?: string;
123
+ /**
124
+ * Region where the instance is scheduled on.
125
+ */
126
+ region?: string;
127
+ /**
128
+ * State filter to apply to instances to return.
129
+ */
130
+ state?: 'unknown' | 'creating' | 'ready' | 'terminated';
131
+ }
132
+ export declare namespace IosInstances {
133
+ export { type IosInstance as IosInstance, type IosInstanceListResponse as IosInstanceListResponse, type IosInstanceCreateParams as IosInstanceCreateParams, type IosInstanceListParams as IosInstanceListParams, };
134
+ }
135
+ //# sourceMappingURL=ios-instances.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ios-instances.d.ts","sourceRoot":"","sources":["../src/resources/ios-instances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAK1F;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO9D;;OAEG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;CAGnE;AAED,MAAM,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AED,UAAiB,IAAI;QACnB,KAAK,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEzB;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;;;WAIG;QACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAE3B,aAAa,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAEzC;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,IAAI;YACnB,IAAI,EAAE,UAAU,CAAC;YAEjB,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB;QAED,UAAiB,YAAY;YAC3B,IAAI,EAAE,KAAK,CAAC;YAEZ,MAAM,EAAE,KAAK,GAAG,WAAW,CAAC;YAE5B,SAAS,CAAC,EAAE,MAAM,CAAC;YAEnB,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,CAAC;CACzD;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.IosInstances = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const headers_1 = require("../internal/headers.js");
7
+ const path_1 = require("../internal/utils/path.js");
8
+ class IosInstances extends resource_1.APIResource {
9
+ /**
10
+ * Create an iOS instance
11
+ */
12
+ create(params, options) {
13
+ const { wait, ...body } = params;
14
+ return this._client.post('/v1/ios_instances', { query: { wait }, body, ...options });
15
+ }
16
+ /**
17
+ * List iOS instances
18
+ */
19
+ list(query = {}, options) {
20
+ return this._client.get('/v1/ios_instances', { query, ...options });
21
+ }
22
+ /**
23
+ * Delete iOS instance with given name
24
+ */
25
+ delete(id, options) {
26
+ return this._client.delete((0, path_1.path) `/v1/ios_instances/${id}`, {
27
+ ...options,
28
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
29
+ });
30
+ }
31
+ /**
32
+ * Get iOS instance with given ID
33
+ */
34
+ get(id, options) {
35
+ return this._client.get((0, path_1.path) `/v1/ios_instances/${id}`, options);
36
+ }
37
+ }
38
+ exports.IosInstances = IosInstances;
39
+ //# sourceMappingURL=ios-instances.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ios-instances.js","sourceRoot":"","sources":["../src/resources/ios-instances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,MAAM,CAAC,MAA+B,EAAE,OAAwB;QAC9D,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,EAAU,EAAE,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CACF;AAnCD,oCAmCC"}
@@ -0,0 +1,35 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { buildHeaders } from "../internal/headers.mjs";
4
+ import { path } from "../internal/utils/path.mjs";
5
+ export class IosInstances extends APIResource {
6
+ /**
7
+ * Create an iOS instance
8
+ */
9
+ create(params, options) {
10
+ const { wait, ...body } = params;
11
+ return this._client.post('/v1/ios_instances', { query: { wait }, body, ...options });
12
+ }
13
+ /**
14
+ * List iOS instances
15
+ */
16
+ list(query = {}, options) {
17
+ return this._client.get('/v1/ios_instances', { query, ...options });
18
+ }
19
+ /**
20
+ * Delete iOS instance with given name
21
+ */
22
+ delete(id, options) {
23
+ return this._client.delete(path `/v1/ios_instances/${id}`, {
24
+ ...options,
25
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
26
+ });
27
+ }
28
+ /**
29
+ * Get iOS instance with given ID
30
+ */
31
+ get(id, options) {
32
+ return this._client.get(path `/v1/ios_instances/${id}`, options);
33
+ }
34
+ }
35
+ //# sourceMappingURL=ios-instances.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ios-instances.mjs","sourceRoot":"","sources":["../src/resources/ios-instances.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CAAC,MAA+B,EAAE,OAAwB;QAC9D,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,EAAU,EAAE,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CACF"}
package/src/client.ts CHANGED
@@ -32,6 +32,13 @@ import {
32
32
  } from './resources/assets';
33
33
  import { AndroidInstances } from './resources/android-instances-helpers';
34
34
  import { Assets, AssetGetOrUploadParams, AssetGetOrUploadResponse } from './resources/assets-helpers';
35
+ import {
36
+ IosInstance,
37
+ IosInstanceCreateParams,
38
+ IosInstanceListParams,
39
+ IosInstanceListResponse,
40
+ IosInstances,
41
+ } from './resources/ios-instances';
35
42
  import { type Fetch } from './internal/builtin-types';
36
43
  import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
37
44
  import { FinalRequestOptions, RequestOptions } from './internal/request-options';
@@ -737,10 +744,12 @@ export class Limrun {
737
744
 
738
745
  androidInstances: API.AndroidInstances = new API.AndroidInstances(this);
739
746
  assets: API.Assets = new API.Assets(this);
747
+ iosInstances: API.IosInstances = new API.IosInstances(this);
740
748
  }
741
749
 
742
750
  Limrun.AndroidInstances = AndroidInstances;
743
751
  Limrun.Assets = Assets;
752
+ Limrun.IosInstances = IosInstances;
744
753
 
745
754
  export declare namespace Limrun {
746
755
  export type RequestOptions = Opts.RequestOptions;
@@ -764,4 +773,12 @@ export declare namespace Limrun {
764
773
  type AssetGetOrUploadParams as AssetGetOrUploadParams,
765
774
  type AssetGetOrUploadResponse as AssetGetOrUploadResponse,
766
775
  };
776
+
777
+ export {
778
+ IosInstances as IosInstances,
779
+ type IosInstance as IosInstance,
780
+ type IosInstanceListResponse as IosInstanceListResponse,
781
+ type IosInstanceCreateParams as IosInstanceCreateParams,
782
+ type IosInstanceListParams as IosInstanceListParams,
783
+ };
767
784
  }
@@ -73,7 +73,7 @@ export type ToFileInput =
73
73
 
74
74
  /**
75
75
  * Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
76
- * @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
76
+ * @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
77
77
  * @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
78
78
  * @param {Object=} options additional properties
79
79
  * @param {string=} options.type the MIME type of the content
@@ -159,11 +159,15 @@ export namespace AndroidInstanceCreateParams {
159
159
  export interface InitialAsset {
160
160
  kind: 'App';
161
161
 
162
- source: 'URL' | 'AssetName';
162
+ source: 'URL' | 'URLs' | 'AssetName' | 'AssetNames';
163
163
 
164
164
  assetName?: string;
165
165
 
166
+ assetNames?: Array<string>;
167
+
166
168
  url?: string;
169
+
170
+ urls?: Array<string>;
167
171
  }
168
172
  }
169
173
  }
@@ -14,6 +14,13 @@ export {
14
14
  type AssetGetParams,
15
15
  type AssetGetOrCreateParams,
16
16
  } from './assets';
17
+ export {
18
+ IosInstances,
19
+ type IosInstance,
20
+ type IosInstanceListResponse,
21
+ type IosInstanceCreateParams,
22
+ type IosInstanceListParams,
23
+ } from './ios-instances';
17
24
 
18
25
  export { AndroidInstances } from './android-instances-helpers';
19
26
 
@@ -0,0 +1,194 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { buildHeaders } from '../internal/headers';
6
+ import { RequestOptions } from '../internal/request-options';
7
+ import { path } from '../internal/utils/path';
8
+
9
+ export class IosInstances extends APIResource {
10
+ /**
11
+ * Create an iOS instance
12
+ */
13
+ create(params: IosInstanceCreateParams, options?: RequestOptions): APIPromise<IosInstance> {
14
+ const { wait, ...body } = params;
15
+ return this._client.post('/v1/ios_instances', { query: { wait }, body, ...options });
16
+ }
17
+
18
+ /**
19
+ * List iOS instances
20
+ */
21
+ list(
22
+ query: IosInstanceListParams | null | undefined = {},
23
+ options?: RequestOptions,
24
+ ): APIPromise<IosInstanceListResponse> {
25
+ return this._client.get('/v1/ios_instances', { query, ...options });
26
+ }
27
+
28
+ /**
29
+ * Delete iOS instance with given name
30
+ */
31
+ delete(id: string, options?: RequestOptions): APIPromise<void> {
32
+ return this._client.delete(path`/v1/ios_instances/${id}`, {
33
+ ...options,
34
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
35
+ });
36
+ }
37
+
38
+ /**
39
+ * Get iOS instance with given ID
40
+ */
41
+ get(id: string, options?: RequestOptions): APIPromise<IosInstance> {
42
+ return this._client.get(path`/v1/ios_instances/${id}`, options);
43
+ }
44
+ }
45
+
46
+ export interface IosInstance {
47
+ metadata: IosInstance.Metadata;
48
+
49
+ spec: IosInstance.Spec;
50
+
51
+ status: IosInstance.Status;
52
+ }
53
+
54
+ export namespace IosInstance {
55
+ export interface Metadata {
56
+ id: string;
57
+
58
+ createdAt: string;
59
+
60
+ organizationId: string;
61
+
62
+ displayName?: string;
63
+
64
+ labels?: { [key: string]: string };
65
+
66
+ terminatedAt?: string;
67
+ }
68
+
69
+ export interface Spec {
70
+ /**
71
+ * After how many minutes of inactivity should the instance be terminated. Example
72
+ * values 1m, 10m, 3h. Default is 3m. Providing "0" disables inactivity checks
73
+ * altogether.
74
+ */
75
+ inactivityTimeout: string;
76
+
77
+ /**
78
+ * The region where the instance will be created. If not given, will be decided
79
+ * based on scheduling clues and availability.
80
+ */
81
+ region: string;
82
+
83
+ /**
84
+ * After how many minutes should the instance be terminated. Example values 1m,
85
+ * 10m, 3h. Default is "0" which means no hard timeout.
86
+ */
87
+ hardTimeout?: string;
88
+ }
89
+
90
+ export interface Status {
91
+ token: string;
92
+
93
+ state: 'unknown' | 'creating' | 'ready' | 'terminated';
94
+
95
+ endpointWebSocketUrl?: string;
96
+ }
97
+ }
98
+
99
+ export type IosInstanceListResponse = Array<IosInstance>;
100
+
101
+ export interface IosInstanceCreateParams {
102
+ /**
103
+ * Query param: Return after the instance is ready to connect.
104
+ */
105
+ wait?: boolean;
106
+
107
+ /**
108
+ * Body param:
109
+ */
110
+ metadata?: IosInstanceCreateParams.Metadata;
111
+
112
+ /**
113
+ * Body param:
114
+ */
115
+ spec?: IosInstanceCreateParams.Spec;
116
+ }
117
+
118
+ export namespace IosInstanceCreateParams {
119
+ export interface Metadata {
120
+ displayName?: string;
121
+
122
+ labels?: { [key: string]: string };
123
+ }
124
+
125
+ export interface Spec {
126
+ clues?: Array<Spec.Clue>;
127
+
128
+ /**
129
+ * After how many minutes should the instance be terminated. Example values 1m,
130
+ * 10m, 3h. Default is "0" which means no hard timeout.
131
+ */
132
+ hardTimeout?: string;
133
+
134
+ /**
135
+ * After how many minutes of inactivity should the instance be terminated. Example
136
+ * values 1m, 10m, 3h. Default is 3m. Providing "0" disables inactivity checks
137
+ * altogether.
138
+ */
139
+ inactivityTimeout?: string;
140
+
141
+ initialAssets?: Array<Spec.InitialAsset>;
142
+
143
+ /**
144
+ * The region where the instance will be created. If not given, will be decided
145
+ * based on scheduling clues and availability.
146
+ */
147
+ region?: string;
148
+ }
149
+
150
+ export namespace Spec {
151
+ export interface Clue {
152
+ kind: 'ClientIP';
153
+
154
+ clientIp?: string;
155
+ }
156
+
157
+ export interface InitialAsset {
158
+ kind: 'App';
159
+
160
+ source: 'URL' | 'AssetName';
161
+
162
+ assetName?: string;
163
+
164
+ url?: string;
165
+ }
166
+ }
167
+ }
168
+
169
+ export interface IosInstanceListParams {
170
+ /**
171
+ * Labels filter to apply to instances to return. Expects a comma-separated list of
172
+ * key=value pairs (e.g., env=prod,region=us-west).
173
+ */
174
+ labelSelector?: string;
175
+
176
+ /**
177
+ * Region where the instance is scheduled on.
178
+ */
179
+ region?: string;
180
+
181
+ /**
182
+ * State filter to apply to instances to return.
183
+ */
184
+ state?: 'unknown' | 'creating' | 'ready' | 'terminated';
185
+ }
186
+
187
+ export declare namespace IosInstances {
188
+ export {
189
+ type IosInstance as IosInstance,
190
+ type IosInstanceListResponse as IosInstanceListResponse,
191
+ type IosInstanceCreateParams as IosInstanceCreateParams,
192
+ type IosInstanceListParams as IosInstanceListParams,
193
+ };
194
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.8.1'; // x-release-please-version
1
+ export const VERSION = '0.10.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.8.1";
1
+ export declare const VERSION = "0.10.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.8.1";
1
+ export declare const VERSION = "0.10.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
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.8.1'; // x-release-please-version
4
+ exports.VERSION = '0.10.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map