@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.
Files changed (261) hide show
  1. package/CHANGELOG.md +513 -0
  2. package/README.md +46 -2
  3. package/client.d.mts +33 -5
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +33 -5
  6. package/client.d.ts.map +1 -1
  7. package/client.js +29 -7
  8. package/client.js.map +1 -1
  9. package/client.mjs +29 -7
  10. package/client.mjs.map +1 -1
  11. package/internal/tslib.js +6 -6
  12. package/internal/utils/env.js +2 -2
  13. package/internal/utils/env.js.map +1 -1
  14. package/internal/utils/env.mjs +2 -2
  15. package/internal/utils/env.mjs.map +1 -1
  16. package/internal/utils/query.d.mts +2 -0
  17. package/internal/utils/query.d.mts.map +1 -0
  18. package/internal/utils/query.d.ts +2 -0
  19. package/internal/utils/query.d.ts.map +1 -0
  20. package/internal/utils/query.js +10 -0
  21. package/internal/utils/query.js.map +1 -0
  22. package/internal/utils/query.mjs +6 -0
  23. package/internal/utils/query.mjs.map +1 -0
  24. package/internal/utils.d.mts +1 -0
  25. package/internal/utils.d.ts +1 -0
  26. package/internal/utils.js +1 -0
  27. package/internal/utils.js.map +1 -1
  28. package/internal/utils.mjs +1 -0
  29. package/package.json +7 -1
  30. package/resources/agents.d.mts +30 -0
  31. package/resources/agents.d.mts.map +1 -0
  32. package/resources/agents.d.ts +30 -0
  33. package/resources/agents.d.ts.map +1 -0
  34. package/resources/agents.js +18 -0
  35. package/resources/agents.js.map +1 -0
  36. package/resources/agents.mjs +14 -0
  37. package/resources/agents.mjs.map +1 -0
  38. package/resources/apps.d.mts +10 -12
  39. package/resources/apps.d.mts.map +1 -1
  40. package/resources/apps.d.ts +10 -12
  41. package/resources/apps.d.ts.map +1 -1
  42. package/resources/apps.js.map +1 -1
  43. package/resources/apps.mjs.map +1 -1
  44. package/resources/carriers.d.mts +233 -0
  45. package/resources/carriers.d.mts.map +1 -0
  46. package/resources/carriers.d.ts +233 -0
  47. package/resources/carriers.d.ts.map +1 -0
  48. package/resources/carriers.js +46 -0
  49. package/resources/carriers.js.map +1 -0
  50. package/resources/carriers.mjs +42 -0
  51. package/resources/carriers.mjs.map +1 -0
  52. package/resources/credentials/credentials.d.mts +4 -13
  53. package/resources/credentials/credentials.d.mts.map +1 -1
  54. package/resources/credentials/credentials.d.ts +4 -13
  55. package/resources/credentials/credentials.d.ts.map +1 -1
  56. package/resources/credentials/credentials.js.map +1 -1
  57. package/resources/credentials/credentials.mjs.map +1 -1
  58. package/resources/devices/actions.d.mts +37 -1
  59. package/resources/devices/actions.d.mts.map +1 -1
  60. package/resources/devices/actions.d.ts +37 -1
  61. package/resources/devices/actions.d.ts.map +1 -1
  62. package/resources/devices/actions.js +36 -0
  63. package/resources/devices/actions.js.map +1 -1
  64. package/resources/devices/actions.mjs +36 -0
  65. package/resources/devices/actions.mjs.map +1 -1
  66. package/resources/devices/apps.d.mts +4 -0
  67. package/resources/devices/apps.d.mts.map +1 -1
  68. package/resources/devices/apps.d.ts +4 -0
  69. package/resources/devices/apps.d.ts.map +1 -1
  70. package/resources/devices/devices.d.mts +63 -35
  71. package/resources/devices/devices.d.mts.map +1 -1
  72. package/resources/devices/devices.d.ts +63 -35
  73. package/resources/devices/devices.d.ts.map +1 -1
  74. package/resources/devices/devices.js +32 -2
  75. package/resources/devices/devices.js.map +1 -1
  76. package/resources/devices/devices.mjs +33 -3
  77. package/resources/devices/devices.mjs.map +1 -1
  78. package/resources/devices/esim.d.mts +95 -0
  79. package/resources/devices/esim.d.mts.map +1 -0
  80. package/resources/devices/esim.d.ts +95 -0
  81. package/resources/devices/esim.d.ts.map +1 -0
  82. package/resources/devices/esim.js +84 -0
  83. package/resources/devices/esim.js.map +1 -0
  84. package/resources/devices/esim.mjs +80 -0
  85. package/resources/devices/esim.mjs.map +1 -0
  86. package/resources/devices/files.d.mts +108 -0
  87. package/resources/devices/files.d.mts.map +1 -0
  88. package/resources/devices/files.d.ts +108 -0
  89. package/resources/devices/files.d.ts.map +1 -0
  90. package/resources/devices/files.js +87 -0
  91. package/resources/devices/files.js.map +1 -0
  92. package/resources/devices/files.mjs +83 -0
  93. package/resources/devices/files.mjs.map +1 -0
  94. package/resources/devices/index.d.mts +9 -3
  95. package/resources/devices/index.d.mts.map +1 -1
  96. package/resources/devices/index.d.ts +9 -3
  97. package/resources/devices/index.d.ts.map +1 -1
  98. package/resources/devices/index.js +13 -1
  99. package/resources/devices/index.js.map +1 -1
  100. package/resources/devices/index.mjs +7 -1
  101. package/resources/devices/index.mjs.map +1 -1
  102. package/resources/devices/keyboard.d.mts +10 -2
  103. package/resources/devices/keyboard.d.mts.map +1 -1
  104. package/resources/devices/keyboard.d.ts +10 -2
  105. package/resources/devices/keyboard.d.ts.map +1 -1
  106. package/resources/devices/location.d.mts +42 -0
  107. package/resources/devices/location.d.mts.map +1 -0
  108. package/resources/devices/location.d.ts +42 -0
  109. package/resources/devices/location.d.ts.map +1 -0
  110. package/resources/devices/location.js +47 -0
  111. package/resources/devices/location.js.map +1 -0
  112. package/resources/devices/location.mjs +43 -0
  113. package/resources/devices/location.mjs.map +1 -0
  114. package/resources/devices/packages.d.mts +4 -0
  115. package/resources/devices/packages.d.mts.map +1 -1
  116. package/resources/devices/packages.d.ts +4 -0
  117. package/resources/devices/packages.d.ts.map +1 -1
  118. package/resources/devices/profile.d.mts +23 -0
  119. package/resources/devices/profile.d.mts.map +1 -0
  120. package/resources/devices/profile.d.ts +23 -0
  121. package/resources/devices/profile.d.ts.map +1 -0
  122. package/resources/devices/profile.js +30 -0
  123. package/resources/devices/profile.js.map +1 -0
  124. package/resources/devices/profile.mjs +26 -0
  125. package/resources/devices/profile.mjs.map +1 -0
  126. package/resources/devices/proxy.d.mts +92 -0
  127. package/resources/devices/proxy.d.mts.map +1 -0
  128. package/resources/devices/proxy.d.ts +92 -0
  129. package/resources/devices/proxy.d.ts.map +1 -0
  130. package/resources/devices/proxy.js +65 -0
  131. package/resources/devices/proxy.js.map +1 -0
  132. package/resources/devices/proxy.mjs +61 -0
  133. package/resources/devices/proxy.mjs.map +1 -0
  134. package/resources/devices/state.d.mts +8 -19
  135. package/resources/devices/state.d.mts.map +1 -1
  136. package/resources/devices/state.d.ts +8 -19
  137. package/resources/devices/state.d.ts.map +1 -1
  138. package/resources/devices/state.js +0 -17
  139. package/resources/devices/state.js.map +1 -1
  140. package/resources/devices/state.mjs +0 -17
  141. package/resources/devices/state.mjs.map +1 -1
  142. package/resources/devices/tasks.d.mts +2 -9
  143. package/resources/devices/tasks.d.mts.map +1 -1
  144. package/resources/devices/tasks.d.ts +2 -9
  145. package/resources/devices/tasks.d.ts.map +1 -1
  146. package/resources/devices/tasks.js.map +1 -1
  147. package/resources/devices/tasks.mjs.map +1 -1
  148. package/resources/devices/time.d.mts +45 -0
  149. package/resources/devices/time.d.mts.map +1 -0
  150. package/resources/devices/time.d.ts +45 -0
  151. package/resources/devices/time.d.ts.map +1 -0
  152. package/resources/devices/time.js +64 -0
  153. package/resources/devices/time.js.map +1 -0
  154. package/resources/devices/time.mjs +60 -0
  155. package/resources/devices/time.mjs.map +1 -0
  156. package/resources/hooks.d.mts +5 -30
  157. package/resources/hooks.d.mts.map +1 -1
  158. package/resources/hooks.d.ts +5 -30
  159. package/resources/hooks.d.ts.map +1 -1
  160. package/resources/hooks.js +3 -0
  161. package/resources/hooks.js.map +1 -1
  162. package/resources/hooks.mjs +3 -0
  163. package/resources/hooks.mjs.map +1 -1
  164. package/resources/index.d.mts +7 -2
  165. package/resources/index.d.mts.map +1 -1
  166. package/resources/index.d.ts +7 -2
  167. package/resources/index.d.ts.map +1 -1
  168. package/resources/index.js +11 -1
  169. package/resources/index.js.map +1 -1
  170. package/resources/index.mjs +5 -0
  171. package/resources/index.mjs.map +1 -1
  172. package/resources/profiles.d.mts +84 -0
  173. package/resources/profiles.d.mts.map +1 -0
  174. package/resources/profiles.d.ts +84 -0
  175. package/resources/profiles.d.ts.map +1 -0
  176. package/resources/profiles.js +40 -0
  177. package/resources/profiles.js.map +1 -0
  178. package/resources/profiles.mjs +36 -0
  179. package/resources/profiles.mjs.map +1 -0
  180. package/resources/proxies.d.mts +103 -0
  181. package/resources/proxies.d.mts.map +1 -0
  182. package/resources/proxies.d.ts +103 -0
  183. package/resources/proxies.d.ts.map +1 -0
  184. package/resources/proxies.js +40 -0
  185. package/resources/proxies.js.map +1 -0
  186. package/resources/proxies.mjs +36 -0
  187. package/resources/proxies.mjs.map +1 -0
  188. package/resources/shared.d.mts +104 -0
  189. package/resources/shared.d.mts.map +1 -0
  190. package/resources/shared.d.ts +104 -0
  191. package/resources/shared.d.ts.map +1 -0
  192. package/resources/shared.js +4 -0
  193. package/resources/shared.js.map +1 -0
  194. package/resources/shared.mjs +3 -0
  195. package/resources/shared.mjs.map +1 -0
  196. package/resources/tasks/index.d.mts +1 -1
  197. package/resources/tasks/index.d.mts.map +1 -1
  198. package/resources/tasks/index.d.ts +1 -1
  199. package/resources/tasks/index.d.ts.map +1 -1
  200. package/resources/tasks/index.js.map +1 -1
  201. package/resources/tasks/index.mjs.map +1 -1
  202. package/resources/tasks/screenshots.d.mts +3 -0
  203. package/resources/tasks/screenshots.d.mts.map +1 -1
  204. package/resources/tasks/screenshots.d.ts +3 -0
  205. package/resources/tasks/screenshots.d.ts.map +1 -1
  206. package/resources/tasks/screenshots.js +3 -0
  207. package/resources/tasks/screenshots.js.map +1 -1
  208. package/resources/tasks/screenshots.mjs +3 -0
  209. package/resources/tasks/screenshots.mjs.map +1 -1
  210. package/resources/tasks/tasks.d.mts +141 -60
  211. package/resources/tasks/tasks.d.mts.map +1 -1
  212. package/resources/tasks/tasks.d.ts +141 -60
  213. package/resources/tasks/tasks.d.ts.map +1 -1
  214. package/resources/tasks/tasks.js +11 -5
  215. package/resources/tasks/tasks.js.map +1 -1
  216. package/resources/tasks/tasks.mjs +11 -5
  217. package/resources/tasks/tasks.mjs.map +1 -1
  218. package/resources/tasks/ui-states.d.mts +3 -0
  219. package/resources/tasks/ui-states.d.mts.map +1 -1
  220. package/resources/tasks/ui-states.d.ts +3 -0
  221. package/resources/tasks/ui-states.d.ts.map +1 -1
  222. package/resources/tasks/ui-states.js +3 -0
  223. package/resources/tasks/ui-states.js.map +1 -1
  224. package/resources/tasks/ui-states.mjs +3 -0
  225. package/resources/tasks/ui-states.mjs.map +1 -1
  226. package/src/client.ts +112 -10
  227. package/src/internal/utils/env.ts +2 -2
  228. package/src/internal/utils/query.ts +7 -0
  229. package/src/internal/utils.ts +1 -0
  230. package/src/resources/agents.ts +45 -0
  231. package/src/resources/apps.ts +11 -19
  232. package/src/resources/carriers.ts +327 -0
  233. package/src/resources/credentials/credentials.ts +4 -19
  234. package/src/resources/devices/actions.ts +84 -0
  235. package/src/resources/devices/apps.ts +5 -0
  236. package/src/resources/devices/devices.ts +171 -50
  237. package/src/resources/devices/esim.ts +201 -0
  238. package/src/resources/devices/files.ts +221 -0
  239. package/src/resources/devices/index.ts +52 -3
  240. package/src/resources/devices/keyboard.ts +12 -2
  241. package/src/resources/devices/location.ts +91 -0
  242. package/src/resources/devices/packages.ts +5 -0
  243. package/src/resources/devices/profile.ts +45 -0
  244. package/src/resources/devices/proxy.ts +173 -0
  245. package/src/resources/devices/state.ts +10 -44
  246. package/src/resources/devices/tasks.ts +2 -15
  247. package/src/resources/devices/time.ts +114 -0
  248. package/src/resources/hooks.ts +5 -36
  249. package/src/resources/index.ts +37 -0
  250. package/src/resources/profiles.ts +133 -0
  251. package/src/resources/proxies.ts +182 -0
  252. package/src/resources/shared.ts +161 -0
  253. package/src/resources/tasks/index.ts +3 -0
  254. package/src/resources/tasks/screenshots.ts +3 -0
  255. package/src/resources/tasks/tasks.ts +191 -68
  256. package/src/resources/tasks/ui-states.ts +3 -0
  257. package/src/version.ts +1 -1
  258. package/version.d.mts +1 -1
  259. package/version.d.ts +1 -1
  260. package/version.js +1 -1
  261. package/version.mjs +1 -1
@@ -1,19 +1,31 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Tasks = exports.State = exports.Packages = exports.Keyboard = exports.Devices = exports.Apps = exports.Actions = void 0;
4
+ exports.Time = exports.Tasks = exports.State = exports.Proxy = exports.Profile = exports.Packages = exports.Location = exports.Keyboard = exports.Files = exports.Esim = exports.Devices = exports.Apps = exports.Actions = void 0;
5
5
  var actions_1 = require("./actions.js");
6
6
  Object.defineProperty(exports, "Actions", { enumerable: true, get: function () { return actions_1.Actions; } });
7
7
  var apps_1 = require("./apps.js");
8
8
  Object.defineProperty(exports, "Apps", { enumerable: true, get: function () { return apps_1.Apps; } });
9
9
  var devices_1 = require("./devices.js");
10
10
  Object.defineProperty(exports, "Devices", { enumerable: true, get: function () { return devices_1.Devices; } });
11
+ var esim_1 = require("./esim.js");
12
+ Object.defineProperty(exports, "Esim", { enumerable: true, get: function () { return esim_1.Esim; } });
13
+ var files_1 = require("./files.js");
14
+ Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } });
11
15
  var keyboard_1 = require("./keyboard.js");
12
16
  Object.defineProperty(exports, "Keyboard", { enumerable: true, get: function () { return keyboard_1.Keyboard; } });
17
+ var location_1 = require("./location.js");
18
+ Object.defineProperty(exports, "Location", { enumerable: true, get: function () { return location_1.Location; } });
13
19
  var packages_1 = require("./packages.js");
14
20
  Object.defineProperty(exports, "Packages", { enumerable: true, get: function () { return packages_1.Packages; } });
21
+ var profile_1 = require("./profile.js");
22
+ Object.defineProperty(exports, "Profile", { enumerable: true, get: function () { return profile_1.Profile; } });
23
+ var proxy_1 = require("./proxy.js");
24
+ Object.defineProperty(exports, "Proxy", { enumerable: true, get: function () { return proxy_1.Proxy; } });
15
25
  var state_1 = require("./state.js");
16
26
  Object.defineProperty(exports, "State", { enumerable: true, get: function () { return state_1.State; } });
17
27
  var tasks_1 = require("./tasks.js");
18
28
  Object.defineProperty(exports, "Tasks", { enumerable: true, get: function () { return tasks_1.Tasks; } });
29
+ var time_1 = require("./time.js");
30
+ Object.defineProperty(exports, "Time", { enumerable: true, get: function () { return time_1.Time; } });
19
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/devices/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAA2G;AAAlG,kGAAA,OAAO,OAAA;AAChB,kCAQgB;AAPd,4FAAA,IAAI,OAAA;AAQN,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,0CAKoB;AAJlB,oGAAA,QAAQ,OAAA;AAKV,0CAAwF;AAA/E,oGAAA,QAAQ,OAAA;AACjB,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,oCAA4E;AAAnE,8FAAA,KAAK,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/devices/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,kCAQgB;AAPd,4FAAA,IAAI,OAAA;AAQN,wCASmB;AARjB,kGAAA,OAAO,OAAA;AAST,kCAQgB;AAPd,4FAAA,IAAI,OAAA;AAQN,oCASiB;AARf,8FAAA,KAAK,OAAA;AASP,0CAKoB;AAJlB,oGAAA,QAAQ,OAAA;AAKV,0CAKoB;AAJlB,oGAAA,QAAQ,OAAA;AAKV,0CAAwF;AAA/E,oGAAA,QAAQ,OAAA;AACjB,wCAA8D;AAArD,kGAAA,OAAO,OAAA;AAChB,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,oCAOiB;AANf,8FAAA,KAAK,OAAA;AAOP,oCAA4E;AAAnE,8FAAA,KAAK,OAAA;AACd,kCAOgB;AANd,4FAAA,IAAI,OAAA"}
@@ -1,9 +1,15 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Actions } from "./actions.mjs";
2
+ export { Actions, } from "./actions.mjs";
3
3
  export { Apps, } from "./apps.mjs";
4
4
  export { Devices, } from "./devices.mjs";
5
+ export { Esim, } from "./esim.mjs";
6
+ export { Files, } from "./files.mjs";
5
7
  export { Keyboard, } from "./keyboard.mjs";
8
+ export { Location, } from "./location.mjs";
6
9
  export { Packages } from "./packages.mjs";
10
+ export { Profile } from "./profile.mjs";
11
+ export { Proxy, } from "./proxy.mjs";
7
12
  export { State, } from "./state.mjs";
8
13
  export { Tasks } from "./tasks.mjs";
14
+ export { Time, } from "./time.mjs";
9
15
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/devices/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAyE;OAClF,EACL,IAAI,GAOL;OACM,EACL,OAAO,GAOR;OACM,EACL,QAAQ,GAIT;OACM,EAAE,QAAQ,EAAoD;OAC9D,EACL,KAAK,GAON;OACM,EAAE,KAAK,EAA8C"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/devices/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAOR;OACM,EACL,IAAI,GAOL;OACM,EACL,OAAO,GAQR;OACM,EACL,IAAI,GAOL;OACM,EACL,KAAK,GAQN;OACM,EACL,QAAQ,GAIT;OACM,EACL,QAAQ,GAIT;OACM,EAAE,QAAQ,EAAoD;OAC9D,EAAE,OAAO,EAA4B;OACrC,EACL,KAAK,GAKN;OACM,EACL,KAAK,GAMN;OACM,EAAE,KAAK,EAA8C;OACrD,EACL,IAAI,GAML"}
@@ -32,11 +32,19 @@ export interface KeyboardWriteParams {
32
32
  /**
33
33
  * Body param
34
34
  */
35
- clear: boolean;
35
+ text: string;
36
36
  /**
37
37
  * Body param
38
38
  */
39
- text: string;
39
+ clear?: boolean;
40
+ /**
41
+ * Body param
42
+ */
43
+ stealth?: boolean;
44
+ /**
45
+ * Body param: Words per minute for stealth typing. 0 uses portal default.
46
+ */
47
+ wpm?: number;
40
48
  /**
41
49
  * Header param
42
50
  */
@@ -1 +1 @@
1
- {"version":3,"file":"keyboard.d.mts","sourceRoot":"","sources":["../../src/resources/devices/keyboard.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,KAAK,CACH,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAgBnB;;OAEG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAiB5F;;OAEG;IACH,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAgBjG;AAED,MAAM,WAAW,mBAAmB;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,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AC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -32,11 +32,19 @@ export interface KeyboardWriteParams {
32
32
  /**
33
33
  * Body param
34
34
  */
35
- clear: boolean;
35
+ text: string;
36
36
  /**
37
37
  * Body param
38
38
  */
39
- text: string;
39
+ clear?: boolean;
40
+ /**
41
+ * Body param
42
+ */
43
+ stealth?: boolean;
44
+ /**
45
+ * Body param: Words per minute for stealth typing. 0 uses portal default.
46
+ */
47
+ wpm?: number;
40
48
  /**
41
49
  * Header param
42
50
  */
@@ -1 +1 @@
1
- {"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../src/resources/devices/keyboard.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,KAAK,CACH,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAgBnB;;OAEG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAiB5F;;OAEG;IACH,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAgBjG;AAED,MAAM,WAAW,mBAAmB;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAA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IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,42 @@
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 Location extends APIResource {
5
+ /**
6
+ * Get device location
7
+ */
8
+ get(deviceID: string, params?: LocationGetParams | null | undefined, options?: RequestOptions): APIPromise<LocationGetResponse>;
9
+ /**
10
+ * Set device location
11
+ */
12
+ set(deviceID: string, params: LocationSetParams, options?: RequestOptions): APIPromise<void>;
13
+ }
14
+ export interface LocationGetResponse {
15
+ latitude: number;
16
+ longitude: number;
17
+ /**
18
+ * A URL to the JSON Schema for this object.
19
+ */
20
+ $schema?: string;
21
+ }
22
+ export interface LocationGetParams {
23
+ 'X-Device-Display-ID'?: number;
24
+ }
25
+ export interface LocationSetParams {
26
+ /**
27
+ * Body param
28
+ */
29
+ latitude: number;
30
+ /**
31
+ * Body param
32
+ */
33
+ longitude: number;
34
+ /**
35
+ * Header param
36
+ */
37
+ 'X-Device-Display-ID'?: number;
38
+ }
39
+ export declare namespace Location {
40
+ export { type LocationGetResponse as LocationGetResponse, type LocationGetParams as LocationGetParams, type LocationSetParams as LocationSetParams, };
41
+ }
42
+ //# sourceMappingURL=location.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.d.mts","sourceRoot":"","sources":["../../src/resources/devices/location.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAelC;;OAEG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAgB7F;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -0,0 +1,42 @@
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 Location extends APIResource {
5
+ /**
6
+ * Get device location
7
+ */
8
+ get(deviceID: string, params?: LocationGetParams | null | undefined, options?: RequestOptions): APIPromise<LocationGetResponse>;
9
+ /**
10
+ * Set device location
11
+ */
12
+ set(deviceID: string, params: LocationSetParams, options?: RequestOptions): APIPromise<void>;
13
+ }
14
+ export interface LocationGetResponse {
15
+ latitude: number;
16
+ longitude: number;
17
+ /**
18
+ * A URL to the JSON Schema for this object.
19
+ */
20
+ $schema?: string;
21
+ }
22
+ export interface LocationGetParams {
23
+ 'X-Device-Display-ID'?: number;
24
+ }
25
+ export interface LocationSetParams {
26
+ /**
27
+ * Body param
28
+ */
29
+ latitude: number;
30
+ /**
31
+ * Body param
32
+ */
33
+ longitude: number;
34
+ /**
35
+ * Header param
36
+ */
37
+ 'X-Device-Display-ID'?: number;
38
+ }
39
+ export declare namespace Location {
40
+ export { type LocationGetResponse as LocationGetResponse, type LocationGetParams as LocationGetParams, type LocationSetParams as LocationSetParams, };
41
+ }
42
+ //# sourceMappingURL=location.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../src/resources/devices/location.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAelC;;OAEG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAgB7F;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -0,0 +1,47 @@
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.Location = 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 Location extends resource_1.APIResource {
9
+ /**
10
+ * Get device location
11
+ */
12
+ get(deviceID, params = {}, options) {
13
+ const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
14
+ return this._client.get((0, path_1.path) `/devices/${deviceID}/location`, {
15
+ ...options,
16
+ headers: (0, headers_1.buildHeaders)([
17
+ {
18
+ ...(xDeviceDisplayID?.toString() != null ?
19
+ { 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
20
+ : undefined),
21
+ },
22
+ options?.headers,
23
+ ]),
24
+ });
25
+ }
26
+ /**
27
+ * Set device location
28
+ */
29
+ set(deviceID, params, options) {
30
+ const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
31
+ return this._client.post((0, path_1.path) `/devices/${deviceID}/location`, {
32
+ body,
33
+ ...options,
34
+ headers: (0, headers_1.buildHeaders)([
35
+ {
36
+ Accept: '*/*',
37
+ ...(xDeviceDisplayID?.toString() != null ?
38
+ { 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
39
+ : undefined),
40
+ },
41
+ options?.headers,
42
+ ]),
43
+ });
44
+ }
45
+ }
46
+ exports.Location = Location;
47
+ //# sourceMappingURL=location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.js","sourceRoot":"","sources":["../../src/resources/devices/location.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,GAAG,CACD,QAAgB,EAChB,SAA+C,EAAE,EACjD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,WAAW,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBACxC,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,QAAgB,EAAE,MAAyB,EAAE,OAAwB;QACvE,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,WAAW,EAAE;YAC5D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,MAAM,EAAE,KAAK;oBACb,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBACxC,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA1CD,4BA0CC"}
@@ -0,0 +1,43 @@
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 Location extends APIResource {
6
+ /**
7
+ * Get device location
8
+ */
9
+ get(deviceID, params = {}, options) {
10
+ const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
11
+ return this._client.get(path `/devices/${deviceID}/location`, {
12
+ ...options,
13
+ headers: buildHeaders([
14
+ {
15
+ ...(xDeviceDisplayID?.toString() != null ?
16
+ { 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
17
+ : undefined),
18
+ },
19
+ options?.headers,
20
+ ]),
21
+ });
22
+ }
23
+ /**
24
+ * Set device location
25
+ */
26
+ set(deviceID, params, options) {
27
+ const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
28
+ return this._client.post(path `/devices/${deviceID}/location`, {
29
+ body,
30
+ ...options,
31
+ headers: buildHeaders([
32
+ {
33
+ Accept: '*/*',
34
+ ...(xDeviceDisplayID?.toString() != null ?
35
+ { 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
36
+ : undefined),
37
+ },
38
+ options?.headers,
39
+ ]),
40
+ });
41
+ }
42
+ }
43
+ //# sourceMappingURL=location.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.mjs","sourceRoot":"","sources":["../../src/resources/devices/location.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,GAAG,CACD,QAAgB,EAChB,SAA+C,EAAE,EACjD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,WAAW,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBACxC,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,QAAgB,EAAE,MAAyB,EAAE,OAAwB;QACvE,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,QAAQ,WAAW,EAAE;YAC5D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,MAAM,EAAE,KAAK;oBACb,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBACxC,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -9,6 +9,10 @@ export declare class Packages extends APIResource {
9
9
  }
10
10
  export type PackageListResponse = Array<string>;
11
11
  export interface PackageListParams {
12
+ /**
13
+ * Query param
14
+ */
15
+ includeProtectedPackages?: boolean;
12
16
  /**
13
17
  * Query param
14
18
  */
@@ -1 +1 @@
1
- {"version":3,"file":"packages.d.mts","sourceRoot":"","sources":["../../src/resources/devices/packages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,GAAG,IAAI,CAAC;CAe1C;AAED,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAEhD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
1
+ {"version":3,"file":"packages.d.mts","sourceRoot":"","sources":["../../src/resources/devices/packages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,GAAG,IAAI,CAAC;CAe1C;AAED,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAEhD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
@@ -9,6 +9,10 @@ export declare class Packages extends APIResource {
9
9
  }
10
10
  export type PackageListResponse = Array<string>;
11
11
  export interface PackageListParams {
12
+ /**
13
+ * Query param
14
+ */
15
+ includeProtectedPackages?: boolean;
12
16
  /**
13
17
  * Query param
14
18
  */
@@ -1 +1 @@
1
- {"version":3,"file":"packages.d.ts","sourceRoot":"","sources":["../../src/resources/devices/packages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,GAAG,IAAI,CAAC;CAe1C;AAED,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAEhD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
1
+ {"version":3,"file":"packages.d.ts","sourceRoot":"","sources":["../../src/resources/devices/packages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,GAAG,IAAI,CAAC;CAe1C;AAED,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAEhD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
@@ -0,0 +1,23 @@
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 Profile extends APIResource {
5
+ /**
6
+ * Apply a profile to a device
7
+ */
8
+ update(deviceID: string, params: ProfileUpdateParams, options?: RequestOptions): APIPromise<void>;
9
+ }
10
+ export interface ProfileUpdateParams {
11
+ /**
12
+ * Body param: ID of the profile to apply
13
+ */
14
+ profileId: string;
15
+ /**
16
+ * Header param
17
+ */
18
+ 'X-Device-Display-ID'?: number;
19
+ }
20
+ export declare namespace Profile {
21
+ export { type ProfileUpdateParams as ProfileUpdateParams };
22
+ }
23
+ //# sourceMappingURL=profile.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.d.mts","sourceRoot":"","sources":["../../src/resources/devices/profile.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAgBlG;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5D"}
@@ -0,0 +1,23 @@
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 Profile extends APIResource {
5
+ /**
6
+ * Apply a profile to a device
7
+ */
8
+ update(deviceID: string, params: ProfileUpdateParams, options?: RequestOptions): APIPromise<void>;
9
+ }
10
+ export interface ProfileUpdateParams {
11
+ /**
12
+ * Body param: ID of the profile to apply
13
+ */
14
+ profileId: string;
15
+ /**
16
+ * Header param
17
+ */
18
+ 'X-Device-Display-ID'?: number;
19
+ }
20
+ export declare namespace Profile {
21
+ export { type ProfileUpdateParams as ProfileUpdateParams };
22
+ }
23
+ //# sourceMappingURL=profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/resources/devices/profile.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAgBlG;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5D"}
@@ -0,0 +1,30 @@
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.Profile = 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 Profile extends resource_1.APIResource {
9
+ /**
10
+ * Apply a profile to a device
11
+ */
12
+ update(deviceID, params, options) {
13
+ const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
14
+ return this._client.put((0, path_1.path) `/devices/${deviceID}/profile`, {
15
+ body,
16
+ ...options,
17
+ headers: (0, headers_1.buildHeaders)([
18
+ {
19
+ Accept: '*/*',
20
+ ...(xDeviceDisplayID?.toString() != null ?
21
+ { 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
22
+ : undefined),
23
+ },
24
+ options?.headers,
25
+ ]),
26
+ });
27
+ }
28
+ }
29
+ exports.Profile = Profile;
30
+ //# sourceMappingURL=profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/resources/devices/profile.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,MAA2B,EAAE,OAAwB;QAC5E,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,UAAU,EAAE;YAC1D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,MAAM,EAAE,KAAK;oBACb,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBACxC,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AApBD,0BAoBC"}
@@ -0,0 +1,26 @@
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 Profile extends APIResource {
6
+ /**
7
+ * Apply a profile to a device
8
+ */
9
+ update(deviceID, params, options) {
10
+ const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
11
+ return this._client.put(path `/devices/${deviceID}/profile`, {
12
+ body,
13
+ ...options,
14
+ headers: buildHeaders([
15
+ {
16
+ Accept: '*/*',
17
+ ...(xDeviceDisplayID?.toString() != null ?
18
+ { 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
19
+ : undefined),
20
+ },
21
+ options?.headers,
22
+ ]),
23
+ });
24
+ }
25
+ }
26
+ //# sourceMappingURL=profile.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.mjs","sourceRoot":"","sources":["../../src/resources/devices/profile.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,MAA2B,EAAE,OAAwB;QAC5E,MAAM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,UAAU,EAAE;YAC1D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,MAAM,EAAE,KAAK;oBACb,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBACxC,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,92 @@
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 Proxy extends APIResource {
5
+ /**
6
+ * Connect proxy
7
+ */
8
+ connect(deviceID: string, params: ProxyConnectParams, options?: RequestOptions): APIPromise<void>;
9
+ /**
10
+ * Disconnect proxy
11
+ */
12
+ disconnect(deviceID: string, params?: ProxyDisconnectParams | null | undefined, options?: RequestOptions): APIPromise<void>;
13
+ /**
14
+ * Get proxy connection state
15
+ */
16
+ status(deviceID: string, params?: ProxyStatusParams | null | undefined, options?: RequestOptions): APIPromise<ProxyStatusResponse>;
17
+ }
18
+ export interface ProxyStatusResponse {
19
+ connected: boolean;
20
+ /**
21
+ * Active proxy name
22
+ */
23
+ name: string | null;
24
+ /**
25
+ * Active proxy protocol (socks5 or wireguard).
26
+ */
27
+ protocol: string | null;
28
+ /**
29
+ * A URL to the JSON Schema for this object.
30
+ */
31
+ $schema?: string;
32
+ }
33
+ export interface ProxyConnectParams {
34
+ /**
35
+ * @deprecated Body param
36
+ */
37
+ host?: string;
38
+ /**
39
+ * Body param: Proxy name (used for wireguard tunnel name)
40
+ */
41
+ name?: string;
42
+ /**
43
+ * @deprecated Body param
44
+ */
45
+ password?: string;
46
+ /**
47
+ * @deprecated Body param
48
+ */
49
+ port?: number;
50
+ /**
51
+ * Body param
52
+ */
53
+ smartIp?: boolean;
54
+ /**
55
+ * Body param: SOCKS5 proxy configuration (required for socks5).
56
+ */
57
+ socks5?: ProxyConnectParams.Socks5;
58
+ /**
59
+ * @deprecated Body param
60
+ */
61
+ user?: string;
62
+ /**
63
+ * Body param: WireGuard tunnel configuration file content (required for
64
+ * wireguard).
65
+ */
66
+ wireguard?: string;
67
+ /**
68
+ * Header param
69
+ */
70
+ 'X-Device-Display-ID'?: number;
71
+ }
72
+ export declare namespace ProxyConnectParams {
73
+ /**
74
+ * SOCKS5 proxy configuration (required for socks5).
75
+ */
76
+ interface Socks5 {
77
+ host: string;
78
+ port: number;
79
+ password?: string;
80
+ user?: string;
81
+ }
82
+ }
83
+ export interface ProxyDisconnectParams {
84
+ 'X-Device-Display-ID'?: number;
85
+ }
86
+ export interface ProxyStatusParams {
87
+ 'X-Device-Display-ID'?: number;
88
+ }
89
+ export declare namespace Proxy {
90
+ export { type ProxyStatusResponse as ProxyStatusResponse, type ProxyConnectParams as ProxyConnectParams, type ProxyDisconnectParams as ProxyDisconnectParams, type ProxyStatusParams as ProxyStatusParams, };
91
+ }
92
+ //# sourceMappingURL=proxy.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxy.d.mts","sourceRoot":"","sources":["../../src/resources/devices/proxy.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAiBjG;;OAEG;IACH,UAAU,CACR,QAAQ,EAAE,MAAM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