@mobilerun/sdk 2.0.0 → 2.1.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 +65 -0
- package/README.md +2 -2
- package/client.d.mts +12 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -11
- package/client.d.ts.map +1 -1
- package/client.js +20 -17
- package/client.js.map +1 -1
- package/client.mjs +21 -18
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/apps.d.mts +1 -0
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +1 -0
- package/resources/apps.d.ts.map +1 -1
- package/resources/credentials/credentials.d.mts +18 -3
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +18 -3
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +2 -2
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +2 -2
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts +1 -1
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts +1 -1
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.js.map +1 -1
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +6 -6
- package/resources/credentials/packages/credentials/fields.d.ts +6 -6
- package/resources/devices/actions.d.mts +10 -10
- package/resources/devices/actions.d.ts +10 -10
- package/resources/devices/apps.d.mts +24 -10
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +24 -10
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +19 -0
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +19 -0
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +26 -14
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +26 -14
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +8 -1
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +8 -1
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +2 -2
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +2 -2
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +5 -5
- package/resources/devices/keyboard.d.ts +5 -5
- package/resources/devices/packages.d.mts +2 -2
- package/resources/devices/packages.d.ts +2 -2
- package/resources/devices/state.d.mts +4 -4
- package/resources/devices/state.d.ts +4 -4
- package/resources/hooks.d.mts +7 -2
- package/resources/hooks.d.mts.map +1 -1
- package/resources/hooks.d.ts +7 -2
- package/resources/hooks.d.ts.map +1 -1
- package/resources/hooks.js +4 -3
- package/resources/hooks.js.map +1 -1
- package/resources/hooks.mjs +4 -3
- package/resources/hooks.mjs.map +1 -1
- package/resources/index.d.mts +5 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/models.d.mts +28 -0
- package/resources/models.d.mts.map +1 -0
- package/resources/models.d.ts +28 -0
- package/resources/models.d.ts.map +1 -0
- package/resources/models.js +15 -0
- package/resources/models.js.map +1 -0
- package/resources/models.mjs +11 -0
- package/resources/models.mjs.map +1 -0
- package/resources/tasks/index.d.mts +1 -1
- package/resources/tasks/index.d.mts.map +1 -1
- package/resources/tasks/index.d.ts +1 -1
- package/resources/tasks/index.d.ts.map +1 -1
- package/resources/tasks/index.js.map +1 -1
- package/resources/tasks/index.mjs.map +1 -1
- package/resources/tasks/screenshots.d.mts +2 -2
- package/resources/tasks/screenshots.d.ts +2 -2
- package/resources/tasks/screenshots.js +2 -2
- package/resources/tasks/screenshots.mjs +2 -2
- package/resources/tasks/tasks.d.mts +103 -363
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +103 -363
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +12 -10
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +12 -10
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/tasks/ui-states.d.mts +2 -2
- package/resources/tasks/ui-states.d.ts +2 -2
- package/resources/tasks/ui-states.js +2 -2
- package/resources/tasks/ui-states.mjs +2 -2
- package/src/client.ts +41 -26
- package/src/internal/parse.ts +6 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/resources/apps.ts +2 -0
- package/src/resources/credentials/credentials.ts +34 -4
- package/src/resources/credentials/index.ts +1 -1
- package/src/resources/credentials/packages/credentials/fields.ts +6 -6
- package/src/resources/devices/actions.ts +10 -10
- package/src/resources/devices/apps.ts +42 -9
- package/src/resources/devices/devices.ts +37 -11
- package/src/resources/devices/index.ts +3 -0
- package/src/resources/devices/keyboard.ts +5 -5
- package/src/resources/devices/packages.ts +2 -2
- package/src/resources/devices/state.ts +4 -4
- package/src/resources/hooks.ts +9 -3
- package/src/resources/index.ts +9 -3
- package/src/resources/models.ts +39 -0
- package/src/resources/tasks/index.ts +0 -2
- package/src/resources/tasks/screenshots.ts +2 -2
- package/src/resources/tasks/tasks.ts +114 -493
- package/src/resources/tasks/ui-states.ts +2 -2
- 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
|
@@ -77,29 +77,29 @@ export interface KeyboardClearParams {
|
|
|
77
77
|
|
|
78
78
|
export interface KeyboardKeyParams {
|
|
79
79
|
/**
|
|
80
|
-
* Body param
|
|
80
|
+
* Body param
|
|
81
81
|
*/
|
|
82
82
|
key: number;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
* Header param
|
|
85
|
+
* Header param
|
|
86
86
|
*/
|
|
87
87
|
'X-Device-Display-ID'?: number;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
export interface KeyboardWriteParams {
|
|
91
91
|
/**
|
|
92
|
-
* Body param
|
|
92
|
+
* Body param
|
|
93
93
|
*/
|
|
94
94
|
clear: boolean;
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
|
-
* Body param
|
|
97
|
+
* Body param
|
|
98
98
|
*/
|
|
99
99
|
text: string;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
* Header param
|
|
102
|
+
* Header param
|
|
103
103
|
*/
|
|
104
104
|
'X-Device-Display-ID'?: number;
|
|
105
105
|
}
|
|
@@ -35,12 +35,12 @@ export type PackageListResponse = Array<string>;
|
|
|
35
35
|
|
|
36
36
|
export interface PackageListParams {
|
|
37
37
|
/**
|
|
38
|
-
* Query param
|
|
38
|
+
* Query param
|
|
39
39
|
*/
|
|
40
40
|
includeSystemPackages?: boolean;
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Header param
|
|
43
|
+
* Header param
|
|
44
44
|
*/
|
|
45
45
|
'X-Device-Display-ID'?: number;
|
|
46
46
|
}
|
|
@@ -163,12 +163,12 @@ export namespace StateUiResponse {
|
|
|
163
163
|
|
|
164
164
|
export interface StateScreenshotParams {
|
|
165
165
|
/**
|
|
166
|
-
* Query param
|
|
166
|
+
* Query param
|
|
167
167
|
*/
|
|
168
168
|
hideOverlay?: boolean;
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
|
-
* Header param
|
|
171
|
+
* Header param
|
|
172
172
|
*/
|
|
173
173
|
'X-Device-Display-ID'?: number;
|
|
174
174
|
}
|
|
@@ -179,12 +179,12 @@ export interface StateTimeParams {
|
|
|
179
179
|
|
|
180
180
|
export interface StateUiParams {
|
|
181
181
|
/**
|
|
182
|
-
* Query param
|
|
182
|
+
* Query param
|
|
183
183
|
*/
|
|
184
184
|
filter?: boolean;
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
|
-
* Header param
|
|
187
|
+
* Header param
|
|
188
188
|
*/
|
|
189
189
|
'X-Device-Display-ID'?: number;
|
|
190
190
|
}
|
package/src/resources/hooks.ts
CHANGED
|
@@ -30,7 +30,7 @@ export class Hooks extends APIResource {
|
|
|
30
30
|
query: HookListParams | null | undefined = {},
|
|
31
31
|
options?: RequestOptions,
|
|
32
32
|
): APIPromise<HookListResponse> {
|
|
33
|
-
return this._client.get('/hooks
|
|
33
|
+
return this._client.get('/hooks', { query, ...options });
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -43,8 +43,9 @@ export class Hooks extends APIResource {
|
|
|
43
43
|
/**
|
|
44
44
|
* Zapier Perform endpoint - processes webhook payloads.
|
|
45
45
|
*/
|
|
46
|
-
perform(options?: RequestOptions): APIPromise<HookPerformResponse> {
|
|
47
|
-
|
|
46
|
+
perform(params: HookPerformParams, options?: RequestOptions): APIPromise<HookPerformResponse> {
|
|
47
|
+
const { body } = params;
|
|
48
|
+
return this._client.post('/hooks/perform', { body: body, ...options });
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
/**
|
|
@@ -287,6 +288,10 @@ export interface HookListParams {
|
|
|
287
288
|
pageSize?: number;
|
|
288
289
|
}
|
|
289
290
|
|
|
291
|
+
export interface HookPerformParams {
|
|
292
|
+
body: { [key: string]: unknown };
|
|
293
|
+
}
|
|
294
|
+
|
|
290
295
|
export interface HookSubscribeParams {
|
|
291
296
|
/**
|
|
292
297
|
* The webhook URL to send notifications to
|
|
@@ -316,6 +321,7 @@ export declare namespace Hooks {
|
|
|
316
321
|
type HookUnsubscribeResponse as HookUnsubscribeResponse,
|
|
317
322
|
type HookUpdateParams as HookUpdateParams,
|
|
318
323
|
type HookListParams as HookListParams,
|
|
324
|
+
type HookPerformParams as HookPerformParams,
|
|
319
325
|
type HookSubscribeParams as HookSubscribeParams,
|
|
320
326
|
};
|
|
321
327
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Apps, type AppListResponse, type AppListParams } from './apps';
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
Credentials,
|
|
6
|
+
type CredentialListResponse,
|
|
7
|
+
type CredentialListParams,
|
|
8
|
+
} from './credentials/credentials';
|
|
5
9
|
export {
|
|
6
10
|
Devices,
|
|
7
11
|
type Device,
|
|
8
12
|
type DeviceListResponse,
|
|
13
|
+
type DeviceCountResponse,
|
|
9
14
|
type DeviceCreateParams,
|
|
10
15
|
type DeviceListParams,
|
|
16
|
+
type DeviceTerminateParams,
|
|
11
17
|
} from './devices/devices';
|
|
12
18
|
export {
|
|
13
19
|
Hooks,
|
|
@@ -20,13 +26,13 @@ export {
|
|
|
20
26
|
type HookUnsubscribeResponse,
|
|
21
27
|
type HookUpdateParams,
|
|
22
28
|
type HookListParams,
|
|
29
|
+
type HookPerformParams,
|
|
23
30
|
type HookSubscribeParams,
|
|
24
31
|
} from './hooks';
|
|
32
|
+
export { Models, type ModelListResponse } from './models';
|
|
25
33
|
export {
|
|
26
34
|
Tasks,
|
|
27
|
-
type LlmModel,
|
|
28
35
|
type Task,
|
|
29
|
-
type TaskCreate,
|
|
30
36
|
type TaskStatus,
|
|
31
37
|
type TaskRetrieveResponse,
|
|
32
38
|
type TaskListResponse,
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class Models extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get all LLM models
|
|
10
|
+
*/
|
|
11
|
+
list(options?: RequestOptions): APIPromise<ModelListResponse> {
|
|
12
|
+
return this._client.get('/models', options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ModelListResponse {
|
|
17
|
+
data?: Array<ModelListResponse.Data>;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Always "list" for list responses
|
|
21
|
+
*/
|
|
22
|
+
object?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export namespace ModelListResponse {
|
|
26
|
+
export interface Data {
|
|
27
|
+
id?: string;
|
|
28
|
+
|
|
29
|
+
created?: number;
|
|
30
|
+
|
|
31
|
+
object?: string;
|
|
32
|
+
|
|
33
|
+
owned_by?: string;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export declare namespace Models {
|
|
38
|
+
export { type ModelListResponse as ModelListResponse };
|
|
39
|
+
}
|
|
@@ -7,7 +7,7 @@ import { path } from '../../internal/utils/path';
|
|
|
7
7
|
|
|
8
8
|
export class Screenshots extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Get
|
|
10
|
+
* Get a specific screenshot by index.
|
|
11
11
|
*/
|
|
12
12
|
retrieve(
|
|
13
13
|
index: number,
|
|
@@ -19,7 +19,7 @@ export class Screenshots extends APIResource {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* List all screenshot URLs for a task.
|
|
23
23
|
*/
|
|
24
24
|
list(taskID: string, options?: RequestOptions): APIPromise<ScreenshotListResponse> {
|
|
25
25
|
return this._client.get(path`/tasks/${taskID}/screenshots`, options);
|