@limrun/api 0.11.0 → 0.13.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 +27 -0
- package/client.d.mts +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +8 -0
- package/client.js.map +1 -1
- package/client.mjs +8 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +55 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +55 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +115 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +109 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/android-instances-helpers.js +2 -2
- package/resources/android-instances-helpers.js.map +1 -1
- package/resources/android-instances-helpers.mjs +2 -2
- package/resources/android-instances-helpers.mjs.map +1 -1
- package/resources/android-instances.d.mts +10 -11
- package/resources/android-instances.d.mts.map +1 -1
- package/resources/android-instances.d.ts +10 -11
- package/resources/android-instances.d.ts.map +1 -1
- package/resources/android-instances.js +2 -1
- package/resources/android-instances.js.map +1 -1
- package/resources/android-instances.mjs +2 -1
- package/resources/android-instances.mjs.map +1 -1
- package/resources/assets.d.mts +4 -0
- package/resources/assets.d.mts.map +1 -1
- package/resources/assets.d.ts +4 -0
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.js +10 -0
- package/resources/assets.js.map +1 -1
- package/resources/assets.mjs +10 -0
- package/resources/assets.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/ios-instances.d.mts +16 -11
- package/resources/ios-instances.d.mts.map +1 -1
- package/resources/ios-instances.d.ts +16 -11
- package/resources/ios-instances.d.ts.map +1 -1
- package/resources/ios-instances.js +2 -1
- package/resources/ios-instances.js.map +1 -1
- package/resources/ios-instances.mjs +2 -1
- package/resources/ios-instances.mjs.map +1 -1
- package/src/client.ts +28 -4
- package/src/core/pagination.ts +167 -0
- package/src/index.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/android-instances-helpers.ts +2 -2
- package/src/resources/android-instances.ts +12 -14
- package/src/resources/assets.ts +11 -0
- package/src/resources/index.ts +2 -2
- package/src/resources/ios-instances.ts +20 -14
- 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
|
@@ -19,8 +19,8 @@ export class AndroidInstances extends GeneratedAndroidInstances {
|
|
|
19
19
|
},
|
|
20
20
|
options,
|
|
21
21
|
);
|
|
22
|
-
if (instances && instances.length > 0) {
|
|
23
|
-
return instances[0]!;
|
|
22
|
+
if (instances && instances.items.length > 0) {
|
|
23
|
+
return instances.items[0]!;
|
|
24
24
|
}
|
|
25
25
|
return super.create(params, options);
|
|
26
26
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { Items, type ItemsParams, PagePromise } from '../core/pagination';
|
|
5
6
|
import { buildHeaders } from '../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../internal/request-options';
|
|
7
8
|
import { path } from '../internal/utils/path';
|
|
@@ -21,8 +22,8 @@ export class AndroidInstances extends APIResource {
|
|
|
21
22
|
list(
|
|
22
23
|
query: AndroidInstanceListParams | null | undefined = {},
|
|
23
24
|
options?: RequestOptions,
|
|
24
|
-
):
|
|
25
|
-
return this._client.
|
|
25
|
+
): PagePromise<AndroidInstancesItems, AndroidInstance> {
|
|
26
|
+
return this._client.getAPIList('/v1/android_instances', Items<AndroidInstance>, { query, ...options });
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
/**
|
|
@@ -43,6 +44,8 @@ export class AndroidInstances extends APIResource {
|
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
|
|
47
|
+
export type AndroidInstancesItems = Items<AndroidInstance>;
|
|
48
|
+
|
|
46
49
|
export interface AndroidInstance {
|
|
47
50
|
metadata: AndroidInstance.Metadata;
|
|
48
51
|
|
|
@@ -90,7 +93,7 @@ export namespace AndroidInstance {
|
|
|
90
93
|
export interface Status {
|
|
91
94
|
token: string;
|
|
92
95
|
|
|
93
|
-
state: 'unknown' | 'creating' | 'ready' | 'terminated';
|
|
96
|
+
state: 'unknown' | 'creating' | 'assigned' | 'ready' | 'terminated';
|
|
94
97
|
|
|
95
98
|
adbWebSocketUrl?: string;
|
|
96
99
|
|
|
@@ -98,8 +101,6 @@ export namespace AndroidInstance {
|
|
|
98
101
|
}
|
|
99
102
|
}
|
|
100
103
|
|
|
101
|
-
export type AndroidInstanceListResponse = Array<AndroidInstance>;
|
|
102
|
-
|
|
103
104
|
export interface AndroidInstanceCreateParams {
|
|
104
105
|
/**
|
|
105
106
|
* Query param: Return after the instance is ready to connect.
|
|
@@ -177,33 +178,30 @@ export namespace AndroidInstanceCreateParams {
|
|
|
177
178
|
}
|
|
178
179
|
}
|
|
179
180
|
|
|
180
|
-
export interface AndroidInstanceListParams {
|
|
181
|
+
export interface AndroidInstanceListParams extends ItemsParams {
|
|
181
182
|
/**
|
|
182
183
|
* Labels filter to apply to Android instances to return. Expects a comma-separated
|
|
183
184
|
* list of key=value pairs (e.g., env=prod,region=us-west).
|
|
184
185
|
*/
|
|
185
186
|
labelSelector?: string;
|
|
186
187
|
|
|
187
|
-
/**
|
|
188
|
-
* Maximum number of instances to be returned. The default is 50.
|
|
189
|
-
*/
|
|
190
|
-
limit?: number;
|
|
191
|
-
|
|
192
188
|
/**
|
|
193
189
|
* Region where the instance is scheduled on.
|
|
194
190
|
*/
|
|
195
191
|
region?: string;
|
|
196
192
|
|
|
197
193
|
/**
|
|
198
|
-
* State filter to apply to Android instances to return.
|
|
194
|
+
* State filter to apply to Android instances to return. Each comma-separated state
|
|
195
|
+
* will be used as part of an OR clause, e.g. "assigned,ready" will return all
|
|
196
|
+
* instances that are either assigned or ready.
|
|
199
197
|
*/
|
|
200
|
-
state?:
|
|
198
|
+
state?: string;
|
|
201
199
|
}
|
|
202
200
|
|
|
203
201
|
export declare namespace AndroidInstances {
|
|
204
202
|
export {
|
|
205
203
|
type AndroidInstance as AndroidInstance,
|
|
206
|
-
type
|
|
204
|
+
type AndroidInstancesItems as AndroidInstancesItems,
|
|
207
205
|
type AndroidInstanceCreateParams as AndroidInstanceCreateParams,
|
|
208
206
|
type AndroidInstanceListParams as AndroidInstanceListParams,
|
|
209
207
|
};
|
package/src/resources/assets.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../internal/headers';
|
|
5
6
|
import { RequestOptions } from '../internal/request-options';
|
|
6
7
|
import { path } from '../internal/utils/path';
|
|
7
8
|
|
|
@@ -17,6 +18,16 @@ export class Assets extends APIResource {
|
|
|
17
18
|
return this._client.get('/v1/assets', { query, ...options });
|
|
18
19
|
}
|
|
19
20
|
|
|
21
|
+
/**
|
|
22
|
+
* Delete the asset with given ID.
|
|
23
|
+
*/
|
|
24
|
+
delete(assetID: string, options?: RequestOptions): APIPromise<void> {
|
|
25
|
+
return this._client.delete(path`/v1/assets/${assetID}`, {
|
|
26
|
+
...options,
|
|
27
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
20
31
|
/**
|
|
21
32
|
* Get the asset with given ID.
|
|
22
33
|
*/
|
package/src/resources/index.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
type AndroidInstance,
|
|
5
|
-
type AndroidInstanceListResponse,
|
|
6
5
|
type AndroidInstanceCreateParams,
|
|
7
6
|
type AndroidInstanceListParams,
|
|
7
|
+
type AndroidInstancesItems,
|
|
8
8
|
} from './android-instances';
|
|
9
9
|
export {
|
|
10
10
|
type Asset,
|
|
@@ -17,9 +17,9 @@ export {
|
|
|
17
17
|
export {
|
|
18
18
|
IosInstances,
|
|
19
19
|
type IosInstance,
|
|
20
|
-
type IosInstanceListResponse,
|
|
21
20
|
type IosInstanceCreateParams,
|
|
22
21
|
type IosInstanceListParams,
|
|
22
|
+
type IosInstancesItems,
|
|
23
23
|
} from './ios-instances';
|
|
24
24
|
|
|
25
25
|
export { AndroidInstances } from './android-instances-helpers';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { Items, type ItemsParams, PagePromise } from '../core/pagination';
|
|
5
6
|
import { buildHeaders } from '../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../internal/request-options';
|
|
7
8
|
import { path } from '../internal/utils/path';
|
|
@@ -21,8 +22,8 @@ export class IosInstances extends APIResource {
|
|
|
21
22
|
list(
|
|
22
23
|
query: IosInstanceListParams | null | undefined = {},
|
|
23
24
|
options?: RequestOptions,
|
|
24
|
-
):
|
|
25
|
-
return this._client.
|
|
25
|
+
): PagePromise<IosInstancesItems, IosInstance> {
|
|
26
|
+
return this._client.getAPIList('/v1/ios_instances', Items<IosInstance>, { query, ...options });
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
/**
|
|
@@ -43,6 +44,8 @@ export class IosInstances extends APIResource {
|
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
|
|
47
|
+
export type IosInstancesItems = Items<IosInstance>;
|
|
48
|
+
|
|
46
49
|
export interface IosInstance {
|
|
47
50
|
metadata: IosInstance.Metadata;
|
|
48
51
|
|
|
@@ -90,14 +93,14 @@ export namespace IosInstance {
|
|
|
90
93
|
export interface Status {
|
|
91
94
|
token: string;
|
|
92
95
|
|
|
93
|
-
state: 'unknown' | 'creating' | 'ready' | 'terminated';
|
|
96
|
+
state: 'unknown' | 'creating' | 'assigned' | 'ready' | 'terminated';
|
|
94
97
|
|
|
95
98
|
endpointWebSocketUrl?: string;
|
|
99
|
+
|
|
100
|
+
portForwardWebSocketUrl?: string;
|
|
96
101
|
}
|
|
97
102
|
}
|
|
98
103
|
|
|
99
|
-
export type IosInstanceListResponse = Array<IosInstance>;
|
|
100
|
-
|
|
101
104
|
export interface IosInstanceCreateParams {
|
|
102
105
|
/**
|
|
103
106
|
* Query param: Return after the instance is ready to connect.
|
|
@@ -161,38 +164,41 @@ export namespace IosInstanceCreateParams {
|
|
|
161
164
|
|
|
162
165
|
assetName?: string;
|
|
163
166
|
|
|
167
|
+
/**
|
|
168
|
+
* Launch mode specifies how to launch the app after installation. If not given,
|
|
169
|
+
* the app won't be launched.
|
|
170
|
+
*/
|
|
171
|
+
launchMode?: 'ForegroundIfRunning' | 'RelaunchIfRunning' | 'FailIfRunning';
|
|
172
|
+
|
|
164
173
|
url?: string;
|
|
165
174
|
}
|
|
166
175
|
}
|
|
167
176
|
}
|
|
168
177
|
|
|
169
|
-
export interface IosInstanceListParams {
|
|
178
|
+
export interface IosInstanceListParams extends ItemsParams {
|
|
170
179
|
/**
|
|
171
180
|
* Labels filter to apply to instances to return. Expects a comma-separated list of
|
|
172
181
|
* key=value pairs (e.g., env=prod,region=us-west).
|
|
173
182
|
*/
|
|
174
183
|
labelSelector?: string;
|
|
175
184
|
|
|
176
|
-
/**
|
|
177
|
-
* Maximum number of items to be returned. The default is 50.
|
|
178
|
-
*/
|
|
179
|
-
limit?: number;
|
|
180
|
-
|
|
181
185
|
/**
|
|
182
186
|
* Region where the instance is scheduled on.
|
|
183
187
|
*/
|
|
184
188
|
region?: string;
|
|
185
189
|
|
|
186
190
|
/**
|
|
187
|
-
* State filter to apply to instances to return.
|
|
191
|
+
* State filter to apply to Android instances to return. Each comma-separated state
|
|
192
|
+
* will be used as part of an OR clause, e.g. "assigned,ready" will return all
|
|
193
|
+
* instances that are either assigned or ready.
|
|
188
194
|
*/
|
|
189
|
-
state?:
|
|
195
|
+
state?: string;
|
|
190
196
|
}
|
|
191
197
|
|
|
192
198
|
export declare namespace IosInstances {
|
|
193
199
|
export {
|
|
194
200
|
type IosInstance as IosInstance,
|
|
195
|
-
type
|
|
201
|
+
type IosInstancesItems as IosInstancesItems,
|
|
196
202
|
type IosInstanceCreateParams as IosInstanceCreateParams,
|
|
197
203
|
type IosInstanceListParams as IosInstanceListParams,
|
|
198
204
|
};
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.13.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.13.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.13.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.13.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|