@mobilerun/sdk 2.2.0 → 4.0.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 +513 -0
- package/README.md +46 -2
- package/client.d.mts +33 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -5
- package/client.d.ts.map +1 -1
- package/client.js +29 -7
- package/client.js.map +1 -1
- package/client.mjs +29 -7
- package/client.mjs.map +1 -1
- package/internal/tslib.js +6 -6
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +7 -1
- package/resources/agents.d.mts +30 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +30 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +18 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +14 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/apps.d.mts +10 -12
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +10 -12
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/carriers.d.mts +233 -0
- package/resources/carriers.d.mts.map +1 -0
- package/resources/carriers.d.ts +233 -0
- package/resources/carriers.d.ts.map +1 -0
- package/resources/carriers.js +46 -0
- package/resources/carriers.js.map +1 -0
- package/resources/carriers.mjs +42 -0
- package/resources/carriers.mjs.map +1 -0
- package/resources/credentials/credentials.d.mts +4 -13
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +4 -13
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/devices/actions.d.mts +37 -1
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +37 -1
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +36 -0
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +36 -0
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +4 -0
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +4 -0
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/devices.d.mts +63 -35
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +63 -35
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +32 -2
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +33 -3
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/esim.d.mts +95 -0
- package/resources/devices/esim.d.mts.map +1 -0
- package/resources/devices/esim.d.ts +95 -0
- package/resources/devices/esim.d.ts.map +1 -0
- package/resources/devices/esim.js +84 -0
- package/resources/devices/esim.js.map +1 -0
- package/resources/devices/esim.mjs +80 -0
- package/resources/devices/esim.mjs.map +1 -0
- package/resources/devices/files.d.mts +108 -0
- package/resources/devices/files.d.mts.map +1 -0
- package/resources/devices/files.d.ts +108 -0
- package/resources/devices/files.d.ts.map +1 -0
- package/resources/devices/files.js +87 -0
- package/resources/devices/files.js.map +1 -0
- package/resources/devices/files.mjs +83 -0
- package/resources/devices/files.mjs.map +1 -0
- package/resources/devices/index.d.mts +9 -3
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +9 -3
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +13 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +7 -1
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +10 -2
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +10 -2
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/location.d.mts +42 -0
- package/resources/devices/location.d.mts.map +1 -0
- package/resources/devices/location.d.ts +42 -0
- package/resources/devices/location.d.ts.map +1 -0
- package/resources/devices/location.js +47 -0
- package/resources/devices/location.js.map +1 -0
- package/resources/devices/location.mjs +43 -0
- package/resources/devices/location.mjs.map +1 -0
- package/resources/devices/packages.d.mts +4 -0
- package/resources/devices/packages.d.mts.map +1 -1
- package/resources/devices/packages.d.ts +4 -0
- package/resources/devices/packages.d.ts.map +1 -1
- package/resources/devices/profile.d.mts +23 -0
- package/resources/devices/profile.d.mts.map +1 -0
- package/resources/devices/profile.d.ts +23 -0
- package/resources/devices/profile.d.ts.map +1 -0
- package/resources/devices/profile.js +30 -0
- package/resources/devices/profile.js.map +1 -0
- package/resources/devices/profile.mjs +26 -0
- package/resources/devices/profile.mjs.map +1 -0
- package/resources/devices/proxy.d.mts +92 -0
- package/resources/devices/proxy.d.mts.map +1 -0
- package/resources/devices/proxy.d.ts +92 -0
- package/resources/devices/proxy.d.ts.map +1 -0
- package/resources/devices/proxy.js +65 -0
- package/resources/devices/proxy.js.map +1 -0
- package/resources/devices/proxy.mjs +61 -0
- package/resources/devices/proxy.mjs.map +1 -0
- package/resources/devices/state.d.mts +8 -19
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +8 -19
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +0 -17
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +0 -17
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/tasks.d.mts +2 -9
- package/resources/devices/tasks.d.mts.map +1 -1
- package/resources/devices/tasks.d.ts +2 -9
- package/resources/devices/tasks.d.ts.map +1 -1
- package/resources/devices/tasks.js.map +1 -1
- package/resources/devices/tasks.mjs.map +1 -1
- package/resources/devices/time.d.mts +45 -0
- package/resources/devices/time.d.mts.map +1 -0
- package/resources/devices/time.d.ts +45 -0
- package/resources/devices/time.d.ts.map +1 -0
- package/resources/devices/time.js +64 -0
- package/resources/devices/time.js.map +1 -0
- package/resources/devices/time.mjs +60 -0
- package/resources/devices/time.mjs.map +1 -0
- package/resources/hooks.d.mts +5 -30
- package/resources/hooks.d.mts.map +1 -1
- package/resources/hooks.d.ts +5 -30
- package/resources/hooks.d.ts.map +1 -1
- package/resources/hooks.js +3 -0
- package/resources/hooks.js.map +1 -1
- package/resources/hooks.mjs +3 -0
- package/resources/hooks.mjs.map +1 -1
- package/resources/index.d.mts +7 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +11 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -0
- package/resources/index.mjs.map +1 -1
- package/resources/profiles.d.mts +84 -0
- package/resources/profiles.d.mts.map +1 -0
- package/resources/profiles.d.ts +84 -0
- package/resources/profiles.d.ts.map +1 -0
- package/resources/profiles.js +40 -0
- package/resources/profiles.js.map +1 -0
- package/resources/profiles.mjs +36 -0
- package/resources/profiles.mjs.map +1 -0
- package/resources/proxies.d.mts +103 -0
- package/resources/proxies.d.mts.map +1 -0
- package/resources/proxies.d.ts +103 -0
- package/resources/proxies.d.ts.map +1 -0
- package/resources/proxies.js +40 -0
- package/resources/proxies.js.map +1 -0
- package/resources/proxies.mjs +36 -0
- package/resources/proxies.mjs.map +1 -0
- package/resources/shared.d.mts +104 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +104 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.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 +3 -0
- package/resources/tasks/screenshots.d.mts.map +1 -1
- package/resources/tasks/screenshots.d.ts +3 -0
- package/resources/tasks/screenshots.d.ts.map +1 -1
- package/resources/tasks/screenshots.js +3 -0
- package/resources/tasks/screenshots.js.map +1 -1
- package/resources/tasks/screenshots.mjs +3 -0
- package/resources/tasks/screenshots.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +141 -60
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +141 -60
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +11 -5
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +11 -5
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/tasks/ui-states.d.mts +3 -0
- package/resources/tasks/ui-states.d.mts.map +1 -1
- package/resources/tasks/ui-states.d.ts +3 -0
- package/resources/tasks/ui-states.d.ts.map +1 -1
- package/resources/tasks/ui-states.js +3 -0
- package/resources/tasks/ui-states.js.map +1 -1
- package/resources/tasks/ui-states.mjs +3 -0
- package/resources/tasks/ui-states.mjs.map +1 -1
- package/src/client.ts +112 -10
- package/src/internal/utils/env.ts +2 -2
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/agents.ts +45 -0
- package/src/resources/apps.ts +11 -19
- package/src/resources/carriers.ts +327 -0
- package/src/resources/credentials/credentials.ts +4 -19
- package/src/resources/devices/actions.ts +84 -0
- package/src/resources/devices/apps.ts +5 -0
- package/src/resources/devices/devices.ts +171 -50
- package/src/resources/devices/esim.ts +201 -0
- package/src/resources/devices/files.ts +221 -0
- package/src/resources/devices/index.ts +52 -3
- package/src/resources/devices/keyboard.ts +12 -2
- package/src/resources/devices/location.ts +91 -0
- package/src/resources/devices/packages.ts +5 -0
- package/src/resources/devices/profile.ts +45 -0
- package/src/resources/devices/proxy.ts +173 -0
- package/src/resources/devices/state.ts +10 -44
- package/src/resources/devices/tasks.ts +2 -15
- package/src/resources/devices/time.ts +114 -0
- package/src/resources/hooks.ts +5 -36
- package/src/resources/index.ts +37 -0
- package/src/resources/profiles.ts +133 -0
- package/src/resources/proxies.ts +182 -0
- package/src/resources/shared.ts +161 -0
- package/src/resources/tasks/index.ts +3 -0
- package/src/resources/tasks/screenshots.ts +3 -0
- package/src/resources/tasks/tasks.ts +191 -68
- package/src/resources/tasks/ui-states.ts +3 -0
- 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
|
@@ -0,0 +1,182 @@
|
|
|
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
|
+
import { path } from '../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Proxies extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new proxy config
|
|
11
|
+
*/
|
|
12
|
+
create(body: ProxyCreateParams, options?: RequestOptions): APIPromise<ProxyCreateResponse> {
|
|
13
|
+
return this._client.post('/proxies', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Get a specific proxy config
|
|
18
|
+
*/
|
|
19
|
+
retrieve(proxyID: string, options?: RequestOptions): APIPromise<ProxyRetrieveResponse> {
|
|
20
|
+
return this._client.get(path`/proxies/${proxyID}`, options);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Update a proxy config
|
|
25
|
+
*/
|
|
26
|
+
update(
|
|
27
|
+
proxyID: string,
|
|
28
|
+
body: ProxyUpdateParams,
|
|
29
|
+
options?: RequestOptions,
|
|
30
|
+
): APIPromise<ProxyUpdateResponse> {
|
|
31
|
+
return this._client.put(path`/proxies/${proxyID}`, { body, ...options });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* List all proxy configs for the authenticated user
|
|
36
|
+
*/
|
|
37
|
+
list(
|
|
38
|
+
query: ProxyListParams | null | undefined = {},
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<ProxyListResponse> {
|
|
41
|
+
return this._client.get('/proxies', { query, ...options });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Delete a proxy config
|
|
46
|
+
*/
|
|
47
|
+
delete(proxyID: string, options?: RequestOptions): APIPromise<ProxyDeleteResponse> {
|
|
48
|
+
return this._client.delete(path`/proxies/${proxyID}`, options);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type ProxyConfig = ProxyConfig.Socks5ProxyConfig | ProxyConfig.WireguardProxyConfig;
|
|
53
|
+
|
|
54
|
+
export namespace ProxyConfig {
|
|
55
|
+
export interface Socks5ProxyConfig {
|
|
56
|
+
host: string;
|
|
57
|
+
|
|
58
|
+
name: string;
|
|
59
|
+
|
|
60
|
+
password: string;
|
|
61
|
+
|
|
62
|
+
port: number;
|
|
63
|
+
|
|
64
|
+
protocol: 'socks5';
|
|
65
|
+
|
|
66
|
+
proxyId: string;
|
|
67
|
+
|
|
68
|
+
user: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface WireguardProxyConfig {
|
|
72
|
+
config: string;
|
|
73
|
+
|
|
74
|
+
name: string;
|
|
75
|
+
|
|
76
|
+
protocol: 'wireguard';
|
|
77
|
+
|
|
78
|
+
proxyId: string;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface ProxyCreateResponse {
|
|
83
|
+
data: ProxyConfig;
|
|
84
|
+
|
|
85
|
+
message: string;
|
|
86
|
+
|
|
87
|
+
success: true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface ProxyRetrieveResponse {
|
|
91
|
+
data: ProxyConfig;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface ProxyUpdateResponse {
|
|
95
|
+
data: ProxyConfig;
|
|
96
|
+
|
|
97
|
+
message: string;
|
|
98
|
+
|
|
99
|
+
success: true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface ProxyListResponse {
|
|
103
|
+
data: Array<ProxyConfig>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface ProxyDeleteResponse {
|
|
107
|
+
data: ProxyConfig;
|
|
108
|
+
|
|
109
|
+
message: string;
|
|
110
|
+
|
|
111
|
+
success: true;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type ProxyCreateParams = ProxyCreateParams.CreateSocks5Proxy | ProxyCreateParams.CreateWireguardProxy;
|
|
115
|
+
|
|
116
|
+
export declare namespace ProxyCreateParams {
|
|
117
|
+
export interface CreateSocks5Proxy {
|
|
118
|
+
host: string;
|
|
119
|
+
|
|
120
|
+
name: string;
|
|
121
|
+
|
|
122
|
+
password: string;
|
|
123
|
+
|
|
124
|
+
port: number;
|
|
125
|
+
|
|
126
|
+
protocol: 'socks5';
|
|
127
|
+
|
|
128
|
+
user: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export interface CreateWireguardProxy {
|
|
132
|
+
config: string;
|
|
133
|
+
|
|
134
|
+
name: string;
|
|
135
|
+
|
|
136
|
+
protocol: 'wireguard';
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export type ProxyUpdateParams = ProxyUpdateParams.UpdateSocks5Proxy | ProxyUpdateParams.UpdateWireguardProxy;
|
|
141
|
+
|
|
142
|
+
export declare namespace ProxyUpdateParams {
|
|
143
|
+
export interface UpdateSocks5Proxy {
|
|
144
|
+
host: string;
|
|
145
|
+
|
|
146
|
+
name: string;
|
|
147
|
+
|
|
148
|
+
password: string;
|
|
149
|
+
|
|
150
|
+
port: number;
|
|
151
|
+
|
|
152
|
+
protocol: 'socks5';
|
|
153
|
+
|
|
154
|
+
user: string;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export interface UpdateWireguardProxy {
|
|
158
|
+
config: string;
|
|
159
|
+
|
|
160
|
+
name: string;
|
|
161
|
+
|
|
162
|
+
protocol: 'wireguard';
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface ProxyListParams {
|
|
167
|
+
protocol?: 'socks5' | 'wireguard';
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export declare namespace Proxies {
|
|
171
|
+
export {
|
|
172
|
+
type ProxyConfig as ProxyConfig,
|
|
173
|
+
type ProxyCreateResponse as ProxyCreateResponse,
|
|
174
|
+
type ProxyRetrieveResponse as ProxyRetrieveResponse,
|
|
175
|
+
type ProxyUpdateResponse as ProxyUpdateResponse,
|
|
176
|
+
type ProxyListResponse as ProxyListResponse,
|
|
177
|
+
type ProxyDeleteResponse as ProxyDeleteResponse,
|
|
178
|
+
type ProxyCreateParams as ProxyCreateParams,
|
|
179
|
+
type ProxyUpdateParams as ProxyUpdateParams,
|
|
180
|
+
type ProxyListParams as ProxyListParams,
|
|
181
|
+
};
|
|
182
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export interface DeviceCarrier {
|
|
4
|
+
GsmOperatorAlpha: string;
|
|
5
|
+
|
|
6
|
+
GsmOperatorNumeric: number;
|
|
7
|
+
|
|
8
|
+
GsmSimOperatorAlpha: string;
|
|
9
|
+
|
|
10
|
+
GsmSimOperatorIsoCountry: string;
|
|
11
|
+
|
|
12
|
+
GsmSimOperatorNumeric: number;
|
|
13
|
+
|
|
14
|
+
PersistSysTimezone: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DeviceIdentifiers {
|
|
18
|
+
BootloaderSerialNumber: string;
|
|
19
|
+
|
|
20
|
+
IdentifierAndroidID: string;
|
|
21
|
+
|
|
22
|
+
IdentifierAppSetID: string;
|
|
23
|
+
|
|
24
|
+
IdentifierBluetoothMAC: string;
|
|
25
|
+
|
|
26
|
+
IdentifierGAID: string;
|
|
27
|
+
|
|
28
|
+
IdentifierGSFID: string;
|
|
29
|
+
|
|
30
|
+
IdentifierICCID: string;
|
|
31
|
+
|
|
32
|
+
IdentifierIMEI: string;
|
|
33
|
+
|
|
34
|
+
IdentifierIMSI: string;
|
|
35
|
+
|
|
36
|
+
IdentifierMediaDRMID: string;
|
|
37
|
+
|
|
38
|
+
IdentifierMEID: string;
|
|
39
|
+
|
|
40
|
+
IdentifierPhoneNumber: string;
|
|
41
|
+
|
|
42
|
+
IdentifierSerial: string;
|
|
43
|
+
|
|
44
|
+
IdentifierWifiMAC: string;
|
|
45
|
+
|
|
46
|
+
SerialNumber: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface DeviceSpec {
|
|
50
|
+
/**
|
|
51
|
+
* A URL to the JSON Schema for this object.
|
|
52
|
+
*/
|
|
53
|
+
$schema?: string;
|
|
54
|
+
|
|
55
|
+
apps?: Array<string> | null;
|
|
56
|
+
|
|
57
|
+
carrier?: DeviceCarrier;
|
|
58
|
+
|
|
59
|
+
files?: Array<string> | null;
|
|
60
|
+
|
|
61
|
+
identifiers?: DeviceIdentifiers;
|
|
62
|
+
|
|
63
|
+
name?: string;
|
|
64
|
+
|
|
65
|
+
proxy?: DeviceSpec.Proxy;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export namespace DeviceSpec {
|
|
69
|
+
export interface Proxy {
|
|
70
|
+
name?: string;
|
|
71
|
+
|
|
72
|
+
smartIp?: boolean;
|
|
73
|
+
|
|
74
|
+
socks5?: Proxy.Socks5;
|
|
75
|
+
|
|
76
|
+
wireguard?: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export namespace Proxy {
|
|
80
|
+
export interface Socks5 {
|
|
81
|
+
host: string;
|
|
82
|
+
|
|
83
|
+
password: string;
|
|
84
|
+
|
|
85
|
+
port: number;
|
|
86
|
+
|
|
87
|
+
user: string;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface Meta {
|
|
93
|
+
hasNext: boolean;
|
|
94
|
+
|
|
95
|
+
hasPrev: boolean;
|
|
96
|
+
|
|
97
|
+
page: number;
|
|
98
|
+
|
|
99
|
+
pages: number;
|
|
100
|
+
|
|
101
|
+
pageSize: number;
|
|
102
|
+
|
|
103
|
+
total: number;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface Pagination {
|
|
107
|
+
hasNext: boolean;
|
|
108
|
+
|
|
109
|
+
hasPrev: boolean;
|
|
110
|
+
|
|
111
|
+
page: number;
|
|
112
|
+
|
|
113
|
+
pages: number;
|
|
114
|
+
|
|
115
|
+
pageSize: number;
|
|
116
|
+
|
|
117
|
+
total: number;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Pagination metadata.
|
|
122
|
+
*/
|
|
123
|
+
export interface PaginationMeta {
|
|
124
|
+
/**
|
|
125
|
+
* Whether there is a next page
|
|
126
|
+
*/
|
|
127
|
+
hasNext: boolean;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Whether there is a previous page
|
|
131
|
+
*/
|
|
132
|
+
hasPrev: boolean;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Current page number (1-based)
|
|
136
|
+
*/
|
|
137
|
+
page: number;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Total number of pages
|
|
141
|
+
*/
|
|
142
|
+
pages: number;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Number of items per page
|
|
146
|
+
*/
|
|
147
|
+
pageSize: number;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Total number of items
|
|
151
|
+
*/
|
|
152
|
+
total: number;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export interface PermissionSet {
|
|
156
|
+
execute: boolean;
|
|
157
|
+
|
|
158
|
+
read: boolean;
|
|
159
|
+
|
|
160
|
+
write: boolean;
|
|
161
|
+
}
|
|
@@ -17,9 +17,12 @@ export {
|
|
|
17
17
|
type TaskGetStatusResponse,
|
|
18
18
|
type TaskGetTrajectoryResponse,
|
|
19
19
|
type TaskRunResponse,
|
|
20
|
+
type TaskRunStreamedResponse,
|
|
21
|
+
type TaskSendMessageResponse,
|
|
20
22
|
type TaskStopResponse,
|
|
21
23
|
type TaskListParams,
|
|
22
24
|
type TaskRunParams,
|
|
23
25
|
type TaskRunStreamedParams,
|
|
26
|
+
type TaskSendMessageParams,
|
|
24
27
|
} from './tasks';
|
|
25
28
|
export { UiStates, type UiStateListResponse, type UiStateRetrieveParams } from './ui-states';
|
|
@@ -5,6 +5,9 @@ import { APIPromise } from '../../core/api-promise';
|
|
|
5
5
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
6
|
import { path } from '../../internal/utils/path';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Tasks API
|
|
10
|
+
*/
|
|
8
11
|
export class Screenshots extends APIResource {
|
|
9
12
|
/**
|
|
10
13
|
* Get a specific screenshot by index.
|