@mobilerun/sdk 6.0.1 → 6.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.
Files changed (253) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/assistant/conversations.d.mts +1 -0
  4. package/resources/assistant/conversations.d.mts.map +1 -1
  5. package/resources/assistant/conversations.d.ts +1 -0
  6. package/resources/assistant/conversations.d.ts.map +1 -1
  7. package/resources/connect/connect.d.mts +2 -2
  8. package/resources/connect/connect.d.mts.map +1 -1
  9. package/resources/connect/connect.d.ts +2 -2
  10. package/resources/connect/connect.d.ts.map +1 -1
  11. package/resources/connect/connect.js.map +1 -1
  12. package/resources/connect/connect.mjs.map +1 -1
  13. package/resources/connect/index.d.mts +1 -1
  14. package/resources/connect/index.d.mts.map +1 -1
  15. package/resources/connect/index.d.ts +1 -1
  16. package/resources/connect/index.d.ts.map +1 -1
  17. package/resources/connect/index.js.map +1 -1
  18. package/resources/connect/index.mjs.map +1 -1
  19. package/resources/connect/proxies.d.mts +22 -1
  20. package/resources/connect/proxies.d.mts.map +1 -1
  21. package/resources/connect/proxies.d.ts +22 -1
  22. package/resources/connect/proxies.d.ts.map +1 -1
  23. package/resources/connect/proxies.js +8 -0
  24. package/resources/connect/proxies.js.map +1 -1
  25. package/resources/connect/proxies.mjs +8 -0
  26. package/resources/connect/proxies.mjs.map +1 -1
  27. package/resources/credentials/credentials.d.mts +20 -0
  28. package/resources/credentials/credentials.d.mts.map +1 -1
  29. package/resources/credentials/credentials.d.ts +20 -0
  30. package/resources/credentials/credentials.d.ts.map +1 -1
  31. package/resources/credentials/credentials.js +4 -0
  32. package/resources/credentials/credentials.js.map +1 -1
  33. package/resources/credentials/credentials.mjs +4 -0
  34. package/resources/credentials/credentials.mjs.map +1 -1
  35. package/resources/credentials/index.d.mts +1 -0
  36. package/resources/credentials/index.d.mts.map +1 -1
  37. package/resources/credentials/index.d.ts +1 -0
  38. package/resources/credentials/index.d.ts.map +1 -1
  39. package/resources/credentials/index.js +5 -3
  40. package/resources/credentials/index.js.map +1 -1
  41. package/resources/credentials/index.mjs +1 -0
  42. package/resources/credentials/index.mjs.map +1 -1
  43. package/resources/credentials/onepassword/index.d.mts +3 -0
  44. package/resources/credentials/onepassword/index.d.mts.map +1 -0
  45. package/resources/credentials/onepassword/index.d.ts +3 -0
  46. package/resources/credentials/onepassword/index.d.ts.map +1 -0
  47. package/resources/credentials/onepassword/index.js +9 -0
  48. package/resources/credentials/onepassword/index.js.map +1 -0
  49. package/resources/credentials/onepassword/index.mjs +4 -0
  50. package/resources/credentials/onepassword/index.mjs.map +1 -0
  51. package/resources/credentials/onepassword/onepassword.d.mts +65 -0
  52. package/resources/credentials/onepassword/onepassword.d.mts.map +1 -0
  53. package/resources/credentials/onepassword/onepassword.d.ts +65 -0
  54. package/resources/credentials/onepassword/onepassword.d.ts.map +1 -0
  55. package/resources/credentials/onepassword/onepassword.js +35 -0
  56. package/resources/credentials/onepassword/onepassword.js.map +1 -0
  57. package/resources/credentials/onepassword/onepassword.mjs +30 -0
  58. package/resources/credentials/onepassword/onepassword.mjs.map +1 -0
  59. package/resources/credentials/onepassword/vaults/index.d.mts +3 -0
  60. package/resources/credentials/onepassword/vaults/index.d.mts.map +1 -0
  61. package/resources/credentials/onepassword/vaults/index.d.ts +3 -0
  62. package/resources/credentials/onepassword/vaults/index.d.ts.map +1 -0
  63. package/resources/credentials/onepassword/vaults/index.js +9 -0
  64. package/resources/credentials/onepassword/vaults/index.js.map +1 -0
  65. package/resources/credentials/onepassword/vaults/index.mjs +4 -0
  66. package/resources/credentials/onepassword/vaults/index.mjs.map +1 -0
  67. package/resources/credentials/onepassword/vaults/items/fields.d.mts +27 -0
  68. package/resources/credentials/onepassword/vaults/items/fields.d.mts.map +1 -0
  69. package/resources/credentials/onepassword/vaults/items/fields.d.ts +27 -0
  70. package/resources/credentials/onepassword/vaults/items/fields.d.ts.map +1 -0
  71. package/resources/credentials/onepassword/vaults/items/fields.js +17 -0
  72. package/resources/credentials/onepassword/vaults/items/fields.js.map +1 -0
  73. package/resources/credentials/onepassword/vaults/items/fields.mjs +13 -0
  74. package/resources/credentials/onepassword/vaults/items/fields.mjs.map +1 -0
  75. package/resources/credentials/onepassword/vaults/items/index.d.mts +3 -0
  76. package/resources/credentials/onepassword/vaults/items/index.d.mts.map +1 -0
  77. package/resources/credentials/onepassword/vaults/items/index.d.ts +3 -0
  78. package/resources/credentials/onepassword/vaults/items/index.d.ts.map +1 -0
  79. package/resources/credentials/onepassword/vaults/items/index.js +9 -0
  80. package/resources/credentials/onepassword/vaults/items/index.js.map +1 -0
  81. package/resources/credentials/onepassword/vaults/items/index.mjs +4 -0
  82. package/resources/credentials/onepassword/vaults/items/index.mjs.map +1 -0
  83. package/resources/credentials/onepassword/vaults/items/items.d.mts +34 -0
  84. package/resources/credentials/onepassword/vaults/items/items.d.mts.map +1 -0
  85. package/resources/credentials/onepassword/vaults/items/items.d.ts +34 -0
  86. package/resources/credentials/onepassword/vaults/items/items.d.ts.map +1 -0
  87. package/resources/credentials/onepassword/vaults/items/items.js +24 -0
  88. package/resources/credentials/onepassword/vaults/items/items.js.map +1 -0
  89. package/resources/credentials/onepassword/vaults/items/items.mjs +19 -0
  90. package/resources/credentials/onepassword/vaults/items/items.mjs.map +1 -0
  91. package/resources/credentials/onepassword/vaults/items.d.mts +2 -0
  92. package/resources/credentials/onepassword/vaults/items.d.mts.map +1 -0
  93. package/resources/credentials/onepassword/vaults/items.d.ts +2 -0
  94. package/resources/credentials/onepassword/vaults/items.d.ts.map +1 -0
  95. package/resources/credentials/onepassword/vaults/items.js +6 -0
  96. package/resources/credentials/onepassword/vaults/items.js.map +1 -0
  97. package/resources/credentials/onepassword/vaults/items.mjs +3 -0
  98. package/resources/credentials/onepassword/vaults/items.mjs.map +1 -0
  99. package/resources/credentials/onepassword/vaults/vaults.d.mts +10 -0
  100. package/resources/credentials/onepassword/vaults/vaults.d.mts.map +1 -0
  101. package/resources/credentials/onepassword/vaults/vaults.d.ts +10 -0
  102. package/resources/credentials/onepassword/vaults/vaults.d.ts.map +1 -0
  103. package/resources/credentials/onepassword/vaults/vaults.js +17 -0
  104. package/resources/credentials/onepassword/vaults/vaults.js.map +1 -0
  105. package/resources/credentials/onepassword/vaults/vaults.mjs +12 -0
  106. package/resources/credentials/onepassword/vaults/vaults.mjs.map +1 -0
  107. package/resources/credentials/onepassword/vaults.d.mts +2 -0
  108. package/resources/credentials/onepassword/vaults.d.mts.map +1 -0
  109. package/resources/credentials/onepassword/vaults.d.ts +2 -0
  110. package/resources/credentials/onepassword/vaults.d.ts.map +1 -0
  111. package/resources/credentials/onepassword/vaults.js +6 -0
  112. package/resources/credentials/onepassword/vaults.js.map +1 -0
  113. package/resources/credentials/onepassword/vaults.mjs +3 -0
  114. package/resources/credentials/onepassword/vaults.mjs.map +1 -0
  115. package/resources/credentials/onepassword.d.mts +2 -0
  116. package/resources/credentials/onepassword.d.mts.map +1 -0
  117. package/resources/credentials/onepassword.d.ts +2 -0
  118. package/resources/credentials/onepassword.d.ts.map +1 -0
  119. package/resources/credentials/onepassword.js +6 -0
  120. package/resources/credentials/onepassword.js.map +1 -0
  121. package/resources/credentials/onepassword.mjs +3 -0
  122. package/resources/credentials/onepassword.mjs.map +1 -0
  123. package/resources/credentials/packages/credentials/credentials.d.mts +32 -32
  124. package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
  125. package/resources/credentials/packages/credentials/credentials.d.ts +32 -32
  126. package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
  127. package/resources/credentials/packages/credentials/credentials.js +0 -8
  128. package/resources/credentials/packages/credentials/credentials.js.map +1 -1
  129. package/resources/credentials/packages/credentials/credentials.mjs +0 -8
  130. package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
  131. package/resources/credentials/packages/credentials/fields.d.mts +48 -0
  132. package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
  133. package/resources/credentials/packages/credentials/fields.d.ts +48 -0
  134. package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
  135. package/resources/credentials/packages/credentials/index.d.mts +1 -1
  136. package/resources/credentials/packages/credentials/index.d.mts.map +1 -1
  137. package/resources/credentials/packages/credentials/index.d.ts +1 -1
  138. package/resources/credentials/packages/credentials/index.d.ts.map +1 -1
  139. package/resources/credentials/packages/credentials/index.js.map +1 -1
  140. package/resources/credentials/packages/credentials/index.mjs.map +1 -1
  141. package/resources/credentials/packages/index.d.mts +2 -1
  142. package/resources/credentials/packages/index.d.mts.map +1 -1
  143. package/resources/credentials/packages/index.d.ts +2 -1
  144. package/resources/credentials/packages/index.d.ts.map +1 -1
  145. package/resources/credentials/packages/index.js +3 -1
  146. package/resources/credentials/packages/index.js.map +1 -1
  147. package/resources/credentials/packages/index.mjs +1 -0
  148. package/resources/credentials/packages/index.mjs.map +1 -1
  149. package/resources/credentials/packages/links.d.mts +65 -0
  150. package/resources/credentials/packages/links.d.mts.map +1 -0
  151. package/resources/credentials/packages/links.d.ts +65 -0
  152. package/resources/credentials/packages/links.d.ts.map +1 -0
  153. package/resources/credentials/packages/links.js +16 -0
  154. package/resources/credentials/packages/links.js.map +1 -0
  155. package/resources/credentials/packages/links.mjs +12 -0
  156. package/resources/credentials/packages/links.mjs.map +1 -0
  157. package/resources/credentials/packages/packages.d.mts +22 -2
  158. package/resources/credentials/packages/packages.d.mts.map +1 -1
  159. package/resources/credentials/packages/packages.d.ts +22 -2
  160. package/resources/credentials/packages/packages.d.ts.map +1 -1
  161. package/resources/credentials/packages/packages.js +4 -0
  162. package/resources/credentials/packages/packages.js.map +1 -1
  163. package/resources/credentials/packages/packages.mjs +4 -0
  164. package/resources/credentials/packages/packages.mjs.map +1 -1
  165. package/resources/devices/apps.d.mts +2 -2
  166. package/resources/devices/apps.d.ts +2 -2
  167. package/resources/devices/devices.d.mts +43 -28
  168. package/resources/devices/devices.d.mts.map +1 -1
  169. package/resources/devices/devices.d.ts +43 -28
  170. package/resources/devices/devices.d.ts.map +1 -1
  171. package/resources/devices/devices.js +23 -19
  172. package/resources/devices/devices.js.map +1 -1
  173. package/resources/devices/devices.mjs +23 -19
  174. package/resources/devices/devices.mjs.map +1 -1
  175. package/resources/devices/keyboard.d.mts +1 -1
  176. package/resources/devices/keyboard.d.ts +1 -1
  177. package/resources/devices/language.d.mts +6 -4
  178. package/resources/devices/language.d.mts.map +1 -1
  179. package/resources/devices/language.d.ts +6 -4
  180. package/resources/devices/language.d.ts.map +1 -1
  181. package/resources/devices/language.js +3 -2
  182. package/resources/devices/language.js.map +1 -1
  183. package/resources/devices/language.mjs +3 -2
  184. package/resources/devices/language.mjs.map +1 -1
  185. package/resources/devices/state.d.mts +1 -0
  186. package/resources/devices/state.d.mts.map +1 -1
  187. package/resources/devices/state.d.ts +1 -0
  188. package/resources/devices/state.d.ts.map +1 -1
  189. package/resources/mailboxes/messages.d.mts +13 -0
  190. package/resources/mailboxes/messages.d.mts.map +1 -1
  191. package/resources/mailboxes/messages.d.ts +13 -0
  192. package/resources/mailboxes/messages.d.ts.map +1 -1
  193. package/resources/mailboxes/messages.js +2 -2
  194. package/resources/mailboxes/messages.js.map +1 -1
  195. package/resources/mailboxes/messages.mjs +2 -2
  196. package/resources/mailboxes/messages.mjs.map +1 -1
  197. package/resources/messages/conversations.d.mts +6 -0
  198. package/resources/messages/conversations.d.mts.map +1 -1
  199. package/resources/messages/conversations.d.ts +6 -0
  200. package/resources/messages/conversations.d.ts.map +1 -1
  201. package/resources/messages/messages.d.mts +16 -0
  202. package/resources/messages/messages.d.mts.map +1 -1
  203. package/resources/messages/messages.d.ts +16 -0
  204. package/resources/messages/messages.d.ts.map +1 -1
  205. package/resources/messages/messages.js.map +1 -1
  206. package/resources/messages/messages.mjs.map +1 -1
  207. package/resources/numbers/messages.d.mts +15 -1
  208. package/resources/numbers/messages.d.mts.map +1 -1
  209. package/resources/numbers/messages.d.ts +15 -1
  210. package/resources/numbers/messages.d.ts.map +1 -1
  211. package/resources/tasks/tasks.d.mts +4 -2
  212. package/resources/tasks/tasks.d.mts.map +1 -1
  213. package/resources/tasks/tasks.d.ts +4 -2
  214. package/resources/tasks/tasks.d.ts.map +1 -1
  215. package/resources/tasks/tasks.js.map +1 -1
  216. package/resources/tasks/tasks.mjs.map +1 -1
  217. package/src/resources/assistant/conversations.ts +2 -0
  218. package/src/resources/connect/connect.ts +2 -0
  219. package/src/resources/connect/index.ts +1 -0
  220. package/src/resources/connect/proxies.ts +27 -0
  221. package/src/resources/credentials/credentials.ts +51 -0
  222. package/src/resources/credentials/index.ts +7 -0
  223. package/src/resources/credentials/onepassword/index.ts +10 -0
  224. package/src/resources/credentials/onepassword/onepassword.ts +101 -0
  225. package/src/resources/credentials/onepassword/vaults/index.ts +4 -0
  226. package/src/resources/credentials/onepassword/vaults/items/fields.ts +40 -0
  227. package/src/resources/credentials/onepassword/vaults/items/index.ts +4 -0
  228. package/src/resources/credentials/onepassword/vaults/items/items.ts +55 -0
  229. package/src/resources/credentials/onepassword/vaults/items.ts +3 -0
  230. package/src/resources/credentials/onepassword/vaults/vaults.ts +15 -0
  231. package/src/resources/credentials/onepassword/vaults.ts +3 -0
  232. package/src/resources/credentials/onepassword.ts +3 -0
  233. package/src/resources/credentials/packages/credentials/credentials.ts +58 -55
  234. package/src/resources/credentials/packages/credentials/fields.ts +99 -0
  235. package/src/resources/credentials/packages/credentials/index.ts +0 -2
  236. package/src/resources/credentials/packages/index.ts +1 -2
  237. package/src/resources/credentials/packages/links.ts +122 -0
  238. package/src/resources/credentials/packages/packages.ts +43 -4
  239. package/src/resources/devices/apps.ts +2 -2
  240. package/src/resources/devices/devices.ts +48 -37
  241. package/src/resources/devices/keyboard.ts +1 -1
  242. package/src/resources/devices/language.ts +6 -4
  243. package/src/resources/devices/state.ts +2 -0
  244. package/src/resources/mailboxes/messages.ts +17 -2
  245. package/src/resources/messages/conversations.ts +6 -0
  246. package/src/resources/messages/messages.ts +16 -0
  247. package/src/resources/numbers/messages.ts +15 -1
  248. package/src/resources/tasks/tasks.ts +4 -2
  249. package/src/version.ts +1 -1
  250. package/version.d.mts +1 -1
  251. package/version.d.ts +1 -1
  252. package/version.js +1 -1
  253. package/version.mjs +1 -1
@@ -0,0 +1,122 @@
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 Links extends APIResource {
9
+ /**
10
+ * Link a 1Password item to a credential
11
+ */
12
+ create(
13
+ packageName: string,
14
+ body: LinkCreateParams,
15
+ options?: RequestOptions,
16
+ ): APIPromise<LinkCreateResponse> {
17
+ return this._client.post(path`/credentials/packages/${packageName}/links`, { body, ...options });
18
+ }
19
+ }
20
+
21
+ export interface LinkCreateResponse {
22
+ data: LinkCreateResponse.Data;
23
+ }
24
+
25
+ export namespace LinkCreateResponse {
26
+ export interface Data {
27
+ createdBy: string | null;
28
+
29
+ credentialName: string;
30
+
31
+ fields: Array<Data.Field>;
32
+
33
+ ownerId: string;
34
+
35
+ packageName: string;
36
+
37
+ secretPath: string;
38
+
39
+ /**
40
+ * @deprecated Deprecated: use createdBy (same value — the creating actor). Null
41
+ * for credentials created before rollout.
42
+ */
43
+ userId: string | null;
44
+
45
+ link?: Data.Link;
46
+
47
+ source?: 'mobilerun' | 'onepassword';
48
+ }
49
+
50
+ export namespace Data {
51
+ export interface Field {
52
+ fieldType:
53
+ | 'email'
54
+ | 'username'
55
+ | 'password'
56
+ | 'api_token'
57
+ | 'phone_number'
58
+ | 'two_factor_secret'
59
+ | 'backup_codes';
60
+
61
+ value: string;
62
+ }
63
+
64
+ export interface Link {
65
+ fieldMap: Array<Link.FieldMap>;
66
+
67
+ itemId: string;
68
+
69
+ itemTitle: string;
70
+
71
+ provider: 'onepassword';
72
+
73
+ vaultId: string;
74
+
75
+ vaultName: string;
76
+ }
77
+
78
+ export namespace Link {
79
+ export interface FieldMap {
80
+ fieldId: string;
81
+
82
+ fieldType:
83
+ | 'email'
84
+ | 'username'
85
+ | 'password'
86
+ | 'api_token'
87
+ | 'phone_number'
88
+ | 'two_factor_secret'
89
+ | 'backup_codes';
90
+ }
91
+ }
92
+ }
93
+ }
94
+
95
+ export interface LinkCreateParams {
96
+ credentialName: string;
97
+
98
+ fieldMap: Array<LinkCreateParams.FieldMap>;
99
+
100
+ itemId: string;
101
+
102
+ vaultId: string;
103
+ }
104
+
105
+ export namespace LinkCreateParams {
106
+ export interface FieldMap {
107
+ fieldId: string;
108
+
109
+ fieldType:
110
+ | 'email'
111
+ | 'username'
112
+ | 'password'
113
+ | 'api_token'
114
+ | 'phone_number'
115
+ | 'two_factor_secret'
116
+ | 'backup_codes';
117
+ }
118
+ }
119
+
120
+ export declare namespace Links {
121
+ export { type LinkCreateResponse as LinkCreateResponse, type LinkCreateParams as LinkCreateParams };
122
+ }
@@ -1,14 +1,14 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
+ import * as LinksAPI from './links';
5
+ import { LinkCreateParams, LinkCreateResponse, Links } from './links';
4
6
  import * as CredentialsAPI from './credentials/credentials';
5
7
  import {
6
8
  CredentialCreateParams,
7
9
  CredentialCreateResponse,
8
10
  CredentialDeleteParams,
9
11
  CredentialDeleteResponse,
10
- CredentialRetrieveParams,
11
- CredentialRetrieveResponse,
12
12
  Credentials,
13
13
  } from './credentials/credentials';
14
14
  import { APIPromise } from '../../../core/api-promise';
@@ -17,6 +17,7 @@ import { path } from '../../../internal/utils/path';
17
17
 
18
18
  export class Packages extends APIResource {
19
19
  credentials: CredentialsAPI.Credentials = new CredentialsAPI.Credentials(this._client);
20
+ links: LinksAPI.Links = new LinksAPI.Links(this._client);
20
21
 
21
22
  /**
22
23
  * Creates a new package (identified by `packageName`) under which credentials can
@@ -82,6 +83,10 @@ export namespace PackageListResponse {
82
83
  * for credentials created before rollout.
83
84
  */
84
85
  userId: string | null;
86
+
87
+ link?: Data.Link;
88
+
89
+ source?: 'mobilerun' | 'onepassword';
85
90
  }
86
91
 
87
92
  export namespace Data {
@@ -97,6 +102,35 @@ export namespace PackageListResponse {
97
102
 
98
103
  value: string;
99
104
  }
105
+
106
+ export interface Link {
107
+ fieldMap: Array<Link.FieldMap>;
108
+
109
+ itemId: string;
110
+
111
+ itemTitle: string;
112
+
113
+ provider: 'onepassword';
114
+
115
+ vaultId: string;
116
+
117
+ vaultName: string;
118
+ }
119
+
120
+ export namespace Link {
121
+ export interface FieldMap {
122
+ fieldId: string;
123
+
124
+ fieldType:
125
+ | 'email'
126
+ | 'username'
127
+ | 'password'
128
+ | 'api_token'
129
+ | 'phone_number'
130
+ | 'two_factor_secret'
131
+ | 'backup_codes';
132
+ }
133
+ }
100
134
  }
101
135
  }
102
136
 
@@ -115,6 +149,7 @@ export interface PackageCreateParams {
115
149
  }
116
150
 
117
151
  Packages.Credentials = Credentials;
152
+ Packages.Links = Links;
118
153
 
119
154
  export declare namespace Packages {
120
155
  export {
@@ -127,10 +162,14 @@ export declare namespace Packages {
127
162
  export {
128
163
  Credentials as Credentials,
129
164
  type CredentialCreateResponse as CredentialCreateResponse,
130
- type CredentialRetrieveResponse as CredentialRetrieveResponse,
131
165
  type CredentialDeleteResponse as CredentialDeleteResponse,
132
166
  type CredentialCreateParams as CredentialCreateParams,
133
- type CredentialRetrieveParams as CredentialRetrieveParams,
134
167
  type CredentialDeleteParams as CredentialDeleteParams,
135
168
  };
169
+
170
+ export {
171
+ Links as Links,
172
+ type LinkCreateResponse as LinkCreateResponse,
173
+ type LinkCreateParams as LinkCreateParams,
174
+ };
136
175
  }
@@ -256,8 +256,8 @@ export namespace AppListInstallsResponse {
256
256
  startedAt: string;
257
257
 
258
258
  /**
259
- * On iOS MDM devices, succeeded means the install command was accepted by the
260
- * device's MDM channel, not that the install finished on-device.
259
+ * On some iOS devices, succeeded means the device accepted the install command;
260
+ * the install may still be running on the device.
261
261
  */
262
262
  status: 'running' | 'succeeded' | 'failed';
263
263
 
@@ -163,9 +163,9 @@ export class Devices extends APIResource {
163
163
  * token.
164
164
  */
165
165
  create(params: DeviceCreateParams, options?: RequestOptions): APIPromise<DeviceCreateResponse> {
166
- const { billing, query_country, deviceType, profileId, ...body } = params;
166
+ const { billing, query_country, deviceType, profileId, template, ...body } = params;
167
167
  return this._client.post('/devices', {
168
- query: { billing, country: query_country, deviceType, profileId },
168
+ query: { billing, country: query_country, deviceType, profileId, template },
169
169
  body,
170
170
  ...options,
171
171
  });
@@ -231,7 +231,10 @@ export class Devices extends APIResource {
231
231
 
232
232
  /**
233
233
  * Triggers a reboot of the device. The device transitions through its reboot
234
- * lifecycle and becomes ready again once the restart completes.
234
+ * lifecycle and becomes ready again once the restart completes. Only devices whose
235
+ * capabilities report `reboot=true` can be rebooted. Personal (BYOD) devices
236
+ * cannot be rebooted remotely: the request is refused with 400
237
+ * `DEVICE_TOOL_UNSUPPORTED` and nothing happens on the device.
235
238
  */
236
239
  reboot(deviceID: string, options?: RequestOptions): APIPromise<void> {
237
240
  return this._client.post(path`/devices/${deviceID}/reboot`, {
@@ -241,16 +244,13 @@ export class Devices extends APIResource {
241
244
  }
242
245
 
243
246
  /**
244
- * Resets the device. The optional body `mode` selects what is erased: `full` is a
245
- * factory reset that erases installed apps, accounts and storage and gives the
246
- * device a new identity; `identity` gives the device a new fingerprint and keeps
247
- * its apps and data. When `mode` is omitted the reset is `full`, or `identity` on
248
- * devices whose capabilities report `factoryReset=false`. A mode the device does
249
- * not support (see `factoryReset` / `identityReset` in the device capabilities) is
250
- * refused with 400 `DEVICE_TOOL_UNSUPPORTED`; legacy devices accept an explicit
251
- * mode only when it is the one their capabilities advertise, and always accept a
252
- * reset without a mode. The device transitions through its reset lifecycle before
253
- * becoming ready again.
247
+ * Resets the device. `mode` selects what is erased: `full` (factory reset: apps,
248
+ * accounts, storage, new identity) or `identity` (new fingerprint, apps and data
249
+ * kept). Without `mode` the reset is `full`, or `identity` on devices with
250
+ * `factoryReset=false`. A mode or `preserve` value the device does not support is
251
+ * refused with 400 `DEVICE_TOOL_UNSUPPORTED`. `preserve` restores the latest
252
+ * proxy, location, locale or timezone set through the API after the reset; omitted
253
+ * or empty preserves nothing. The device becomes ready again after the reset.
254
254
  */
255
255
  reset(
256
256
  deviceID: string,
@@ -265,9 +265,9 @@ export class Devices extends APIResource {
265
265
  }
266
266
 
267
267
  /**
268
- * Wakes a parked device: backend readiness and any required capacity are
269
- * preflighted, the same device starts running again, and per-minute billing
270
- * resumes. On a device that is not parked this is a no-op ready transition.
268
+ * Wakes a parked device: it first checks that the device can run again, then the
269
+ * same device starts and per-minute billing resumes. On a device that is not
270
+ * parked, the request does nothing.
271
271
  */
272
272
  resume(deviceID: string, options?: RequestOptions): APIPromise<void> {
273
273
  return this._client.post(path`/devices/${deviceID}/resume`, {
@@ -323,9 +323,13 @@ export class Devices extends APIResource {
323
323
  }
324
324
 
325
325
  /**
326
- * Terminates the device and releases its resources. The optional `terminateAt` and
327
- * `previousDeviceId` body fields are not available to API-key callers; requests
328
- * that set them are rejected with 401.
326
+ * Terminates the device and releases its resources. For a personal (BYOD) device
327
+ * the owner (API key or user) can instead remove the phone from the account so
328
+ * anyone can pair it again; the phone must be disconnected first, otherwise the
329
+ * request is rejected with 409 BYOD_DEVICE_CONNECTED. Other subscription-billed
330
+ * devices cannot be terminated with this request; it is rejected with 401. The
331
+ * `terminateAt` and `previousDeviceId` body fields are reserved for internal use;
332
+ * requests that set them are rejected with 401.
329
333
  */
330
334
  terminate(
331
335
  deviceID: string,
@@ -550,8 +554,6 @@ export namespace DeviceFingerprintResponse {
550
554
 
551
555
  hardware?: string;
552
556
 
553
- imageRepository?: string;
554
-
555
557
  manufacturer?: string;
556
558
 
557
559
  model?: string;
@@ -607,6 +609,8 @@ export namespace DeviceRetrieveCapabilitiesResponse {
607
609
 
608
610
  proxy: boolean;
609
611
 
612
+ reboot: boolean;
613
+
610
614
  recording: boolean;
611
615
 
612
616
  reset: boolean;
@@ -761,18 +765,27 @@ export interface DeviceCreateParams {
761
765
  query_country?: string;
762
766
 
763
767
  /**
764
- * Query param: Use android*cloud_phone for a cloud Android phone. Only canonical
765
- * identifiers are accepted. Other backends are deployment-specific; recognized but
766
- * unavailable types return DEVICE_TYPE_UNAVAILABLE (422). Retired dedicated*\*
767
- * aliases are rejected with a canonical replacement.
768
+ * Query param: Device type: android_cloud_phone (cloud Android phone), ios_phone
769
+ * or device_slot. Any other value is rejected with 422. Not every device type is
770
+ * available for creation; an unavailable type returns DEVICE_TYPE_UNAVAILABLE
771
+ * (422).
768
772
  */
769
- deviceType?: string;
773
+ deviceType?: 'android_cloud_phone' | 'ios_phone' | 'device_slot';
770
774
 
771
775
  /**
772
776
  * Query param: Profile ID to use as device spec
773
777
  */
774
778
  profileId?: string;
775
779
 
780
+ /**
781
+ * Query param: Optional device template, e.g. onboarding. The device gets the
782
+ * template's Android version and preinstalled apps and is ready in seconds when a
783
+ * prepared phone is available; otherwise it boots with the same setup. Country,
784
+ * name and proxy still come from this request. Cannot be combined with profileId,
785
+ * apps or androidVersion. Omit it to create from the request alone.
786
+ */
787
+ template?: string;
788
+
776
789
  /**
777
790
  * Body param
778
791
  */
@@ -901,8 +914,7 @@ export interface DeviceListParams {
901
914
  pageSize?: number;
902
915
 
903
916
  /**
904
- * Filter by the device's platform as served in the platform field (runtime,
905
- * announced, else type-derived).
917
+ * Filter by the device's platform as served in the platform field.
906
918
  */
907
919
  platform?: 'android' | 'ios';
908
920
 
@@ -933,16 +945,9 @@ export interface DeviceListParams {
933
945
  > | null;
934
946
 
935
947
  /**
936
- * Canonical device type. Retired dedicated\_\* aliases are no longer accepted.
937
- * Availability depends on the deployment.
948
+ * Filter by device type.
938
949
  */
939
- type?:
940
- | 'android_cloud_phone'
941
- | 'android_physical_phone'
942
- | 'ios_stealth_phone'
943
- | 'android_emulator'
944
- | 'ios_simulator'
945
- | 'device_slot';
950
+ type?: 'android_cloud_phone' | 'ios_phone' | 'device_slot';
946
951
  }
947
952
 
948
953
  export interface DeviceFingerprintParams {
@@ -957,6 +962,12 @@ export interface DeviceResetParams {
957
962
  * capabilities report factoryReset=false.
958
963
  */
959
964
  mode?: 'full' | 'identity';
965
+
966
+ /**
967
+ * Device configuration to restore after the reset: the latest value set through
968
+ * the API. Omitted, null or empty preserves nothing.
969
+ */
970
+ preserve?: Array<'proxy' | 'location' | 'locale' | 'timezone'> | null;
960
971
  }
961
972
 
962
973
  export interface DeviceSetNameParams {
@@ -108,7 +108,7 @@ export interface KeyboardWriteParams {
108
108
  completionMode?: 'accepted' | 'committed';
109
109
 
110
110
  /**
111
- * Body param: Per-character mistake rate for humantouch typing. -1 uses server
111
+ * Body param: Per-character mistake rate for humanized typing. -1 uses server
112
112
  * default.
113
113
  */
114
114
  errorRate?: number;
@@ -31,8 +31,9 @@ export class Language extends APIResource {
31
31
 
32
32
  /**
33
33
  * Sets the device language/locale to the BCP-47 locale in the request body. An
34
- * optional restart flag applies the change immediately by restarting the zygote
35
- * instead of waiting for the next reboot.
34
+ * optional restart flag applies the change immediately by restarting the Android
35
+ * system framework (open apps are closed) instead of waiting for the next reboot;
36
+ * some devices ignore it.
36
37
  */
37
38
  set(deviceID: string, params: LanguageSetParams, options?: RequestOptions): APIPromise<void> {
38
39
  const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
@@ -73,8 +74,9 @@ export interface LanguageSetParams {
73
74
  locale: string;
74
75
 
75
76
  /**
76
- * Body param: Restart zygote so the locale change takes full effect immediately.
77
- * Without it, the locale is written but won't fully apply until the next reboot.
77
+ * Body param: Restart the Android system framework so the locale change takes full
78
+ * effect immediately; open apps are closed. Without it, the change may not fully
79
+ * apply until the next reboot. Some devices ignore this flag.
78
80
  */
79
81
  restart?: boolean;
80
82
 
@@ -117,6 +117,8 @@ export interface A11YNode {
117
117
 
118
118
  text: string;
119
119
 
120
+ hint?: string;
121
+
120
122
  isVisibleToUser?: boolean;
121
123
  }
122
124
 
@@ -22,8 +22,8 @@ export class Messages extends APIResource {
22
22
  params: MessageRetrieveParams,
23
23
  options?: RequestOptions,
24
24
  ): APIPromise<MessageRetrieveResponse> {
25
- const { mailboxId } = params;
26
- return this._client.get(path`/mailboxes/${mailboxId}/messages/${messageID}`, options);
25
+ const { mailboxId, ...query } = params;
26
+ return this._client.get(path`/mailboxes/${mailboxId}/messages/${messageID}`, { query, ...options });
27
27
  }
28
28
 
29
29
  /**
@@ -71,6 +71,13 @@ export namespace MessageRetrieveResponse {
71
71
  subject: string | null;
72
72
 
73
73
  textBody: string | null;
74
+
75
+ /**
76
+ * Raw HTML part as received. Present only with includeHtml=true; null when the
77
+ * mail has no HTML part or it exceeds 1 MiB (UTF-8 bytes). Untrusted content:
78
+ * render only in an isolated sandboxed frame, never inline.
79
+ */
80
+ htmlBody?: string | null;
74
81
  }
75
82
 
76
83
  export namespace Data {
@@ -109,7 +116,15 @@ export namespace MessageListResponse {
109
116
  }
110
117
 
111
118
  export interface MessageRetrieveParams {
119
+ /**
120
+ * Path param
121
+ */
112
122
  mailboxId: string;
123
+
124
+ /**
125
+ * Query param: Return the raw HTML part as htmlBody (untrusted; render isolated).
126
+ */
127
+ includeHtml?: 'true' | 'false';
113
128
  }
114
129
 
115
130
  export interface MessageListParams {
@@ -55,6 +55,12 @@ export namespace ConversationListResponse {
55
55
 
56
56
  occurredAt: string;
57
57
 
58
+ /**
59
+ * Message status. Outbound messages move queued → sending → sent, or end at
60
+ * failed. `sent` means the mobile network accepted the message and is the final
61
+ * success status. `delivered` and `sent_unconfirmed` are kept for compatibility;
62
+ * current lines return no carrier delivery report, so neither is emitted.
63
+ */
58
64
  status:
59
65
  | 'received'
60
66
  | 'queued'
@@ -68,6 +68,12 @@ export namespace MessageRetrieveResponse {
68
68
 
69
69
  providerCode: string | null;
70
70
 
71
+ /**
72
+ * Message status. Outbound messages move queued → sending → sent, or end at
73
+ * failed. `sent` means the mobile network accepted the message and is the final
74
+ * success status. `delivered` and `sent_unconfirmed` are kept for compatibility;
75
+ * current lines return no carrier delivery report, so neither is emitted.
76
+ */
71
77
  status:
72
78
  | 'received'
73
79
  | 'queued'
@@ -118,6 +124,12 @@ export namespace MessageListResponse {
118
124
 
119
125
  providerCode: string | null;
120
126
 
127
+ /**
128
+ * Message status. Outbound messages move queued → sending → sent, or end at
129
+ * failed. `sent` means the mobile network accepted the message and is the final
130
+ * success status. `delivered` and `sent_unconfirmed` are kept for compatibility;
131
+ * current lines return no carrier delivery report, so neither is emitted.
132
+ */
121
133
  status:
122
134
  | 'received'
123
135
  | 'queued'
@@ -151,6 +163,10 @@ export interface MessageListParams {
151
163
 
152
164
  peerNumber?: string;
153
165
 
166
+ /**
167
+ * Filter by message status. `delivered` and `sent_unconfirmed` are kept for
168
+ * compatibility and are not emitted on current lines.
169
+ */
154
170
  status?:
155
171
  | 'all'
156
172
  | 'received'
@@ -82,6 +82,12 @@ export namespace MessageListResponse {
82
82
 
83
83
  peerNumber: string | null;
84
84
 
85
+ /**
86
+ * Message status. Outbound messages move queued → sending → sent, or end at
87
+ * failed. `sent` means the mobile network accepted the message and is the final
88
+ * success status. `delivered` and `sent_unconfirmed` are kept for compatibility;
89
+ * current lines return no carrier delivery report, so neither is emitted.
90
+ */
85
91
  status:
86
92
  | 'received'
87
93
  | 'queued'
@@ -128,6 +134,12 @@ export namespace MessageSendResponse {
128
134
 
129
135
  peerNumber: string | null;
130
136
 
137
+ /**
138
+ * Message status. Outbound messages move queued → sending → sent, or end at
139
+ * failed. `sent` means the mobile network accepted the message and is the final
140
+ * success status. `delivered` and `sent_unconfirmed` are kept for compatibility;
141
+ * current lines return no carrier delivery report, so neither is emitted.
142
+ */
131
143
  status:
132
144
  | 'received'
133
145
  | 'queued'
@@ -171,7 +183,9 @@ export interface MessageSendParams {
171
183
  to: string;
172
184
 
173
185
  /**
174
- * Request a delivery report. Defaults to false.
186
+ * @deprecated Deprecated: best effort and ignored on most lines. Hosted SIM
187
+ * numbers return no carrier delivery report, so their messages end at `sent` and
188
+ * no `sms.send.delivered` event follows. Defaults to false.
175
189
  */
176
190
  deliveryReport?: boolean;
177
191
  }
@@ -1096,7 +1096,8 @@ export interface TaskRunParams {
1096
1096
 
1097
1097
  /**
1098
1098
  * The LLM model identifier to use for the task (e.g.
1099
- * 'mobilerun/mobile-agent-fast')
1099
+ * 'mobilerun/mobile-agent-fast'). When omitted with reasoning=false, the fast-mode
1100
+ * default model is used.
1100
1101
  */
1101
1102
  llmModel?: string;
1102
1103
 
@@ -1183,7 +1184,8 @@ export interface TaskRunStreamedParams {
1183
1184
 
1184
1185
  /**
1185
1186
  * The LLM model identifier to use for the task (e.g.
1186
- * 'mobilerun/mobile-agent-fast')
1187
+ * 'mobilerun/mobile-agent-fast'). When omitted with reasoning=false, the fast-mode
1188
+ * default model is used.
1187
1189
  */
1188
1190
  llmModel?: string;
1189
1191
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '6.0.1'; // x-release-please-version
1
+ export const VERSION = '6.1.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "6.0.1";
1
+ export declare const VERSION = "6.1.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "6.0.1";
1
+ export declare const VERSION = "6.1.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 = '6.0.1'; // x-release-please-version
4
+ exports.VERSION = '6.1.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '6.0.1'; // x-release-please-version
1
+ export const VERSION = '6.1.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map