@mobilerun/sdk 2.2.0 → 3.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 (247) hide show
  1. package/CHANGELOG.md +243 -0
  2. package/README.md +44 -0
  3. package/client.d.mts +32 -3
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +32 -3
  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/query.d.mts +2 -0
  13. package/internal/utils/query.d.mts.map +1 -0
  14. package/internal/utils/query.d.ts +2 -0
  15. package/internal/utils/query.d.ts.map +1 -0
  16. package/internal/utils/query.js +10 -0
  17. package/internal/utils/query.js.map +1 -0
  18. package/internal/utils/query.mjs +6 -0
  19. package/internal/utils/query.mjs.map +1 -0
  20. package/internal/utils.d.mts +1 -0
  21. package/internal/utils.d.ts +1 -0
  22. package/internal/utils.js +1 -0
  23. package/internal/utils.js.map +1 -1
  24. package/internal/utils.mjs +1 -0
  25. package/package.json +7 -1
  26. package/resources/agents.d.mts +29 -0
  27. package/resources/agents.d.mts.map +1 -0
  28. package/resources/agents.d.ts +29 -0
  29. package/resources/agents.d.ts.map +1 -0
  30. package/resources/agents.js +18 -0
  31. package/resources/agents.js.map +1 -0
  32. package/resources/agents.mjs +14 -0
  33. package/resources/agents.mjs.map +1 -0
  34. package/resources/apps.d.mts +10 -12
  35. package/resources/apps.d.mts.map +1 -1
  36. package/resources/apps.d.ts +10 -12
  37. package/resources/apps.d.ts.map +1 -1
  38. package/resources/apps.js.map +1 -1
  39. package/resources/apps.mjs.map +1 -1
  40. package/resources/carriers.d.mts +233 -0
  41. package/resources/carriers.d.mts.map +1 -0
  42. package/resources/carriers.d.ts +233 -0
  43. package/resources/carriers.d.ts.map +1 -0
  44. package/resources/carriers.js +46 -0
  45. package/resources/carriers.js.map +1 -0
  46. package/resources/carriers.mjs +42 -0
  47. package/resources/carriers.mjs.map +1 -0
  48. package/resources/credentials/credentials.d.mts +4 -13
  49. package/resources/credentials/credentials.d.mts.map +1 -1
  50. package/resources/credentials/credentials.d.ts +4 -13
  51. package/resources/credentials/credentials.d.ts.map +1 -1
  52. package/resources/credentials/credentials.js.map +1 -1
  53. package/resources/credentials/credentials.mjs.map +1 -1
  54. package/resources/devices/actions.d.mts +37 -1
  55. package/resources/devices/actions.d.mts.map +1 -1
  56. package/resources/devices/actions.d.ts +37 -1
  57. package/resources/devices/actions.d.ts.map +1 -1
  58. package/resources/devices/actions.js +36 -0
  59. package/resources/devices/actions.js.map +1 -1
  60. package/resources/devices/actions.mjs +36 -0
  61. package/resources/devices/actions.mjs.map +1 -1
  62. package/resources/devices/apps.d.mts +4 -0
  63. package/resources/devices/apps.d.mts.map +1 -1
  64. package/resources/devices/apps.d.ts +4 -0
  65. package/resources/devices/apps.d.ts.map +1 -1
  66. package/resources/devices/devices.d.mts +40 -38
  67. package/resources/devices/devices.d.mts.map +1 -1
  68. package/resources/devices/devices.d.ts +40 -38
  69. package/resources/devices/devices.d.ts.map +1 -1
  70. package/resources/devices/devices.js +22 -2
  71. package/resources/devices/devices.js.map +1 -1
  72. package/resources/devices/devices.mjs +23 -3
  73. package/resources/devices/devices.mjs.map +1 -1
  74. package/resources/devices/files.d.mts +108 -0
  75. package/resources/devices/files.d.mts.map +1 -0
  76. package/resources/devices/files.d.ts +108 -0
  77. package/resources/devices/files.d.ts.map +1 -0
  78. package/resources/devices/files.js +87 -0
  79. package/resources/devices/files.js.map +1 -0
  80. package/resources/devices/files.mjs +83 -0
  81. package/resources/devices/files.mjs.map +1 -0
  82. package/resources/devices/index.d.mts +7 -2
  83. package/resources/devices/index.d.mts.map +1 -1
  84. package/resources/devices/index.d.ts +7 -2
  85. package/resources/devices/index.d.ts.map +1 -1
  86. package/resources/devices/index.js +11 -1
  87. package/resources/devices/index.js.map +1 -1
  88. package/resources/devices/index.mjs +6 -1
  89. package/resources/devices/index.mjs.map +1 -1
  90. package/resources/devices/keyboard.d.mts +10 -2
  91. package/resources/devices/keyboard.d.mts.map +1 -1
  92. package/resources/devices/keyboard.d.ts +10 -2
  93. package/resources/devices/keyboard.d.ts.map +1 -1
  94. package/resources/devices/location.d.mts +42 -0
  95. package/resources/devices/location.d.mts.map +1 -0
  96. package/resources/devices/location.d.ts +42 -0
  97. package/resources/devices/location.d.ts.map +1 -0
  98. package/resources/devices/location.js +47 -0
  99. package/resources/devices/location.js.map +1 -0
  100. package/resources/devices/location.mjs +43 -0
  101. package/resources/devices/location.mjs.map +1 -0
  102. package/resources/devices/packages.d.mts +4 -0
  103. package/resources/devices/packages.d.mts.map +1 -1
  104. package/resources/devices/packages.d.ts +4 -0
  105. package/resources/devices/packages.d.ts.map +1 -1
  106. package/resources/devices/profile.d.mts +23 -0
  107. package/resources/devices/profile.d.mts.map +1 -0
  108. package/resources/devices/profile.d.ts +23 -0
  109. package/resources/devices/profile.d.ts.map +1 -0
  110. package/resources/devices/profile.js +30 -0
  111. package/resources/devices/profile.js.map +1 -0
  112. package/resources/devices/profile.mjs +26 -0
  113. package/resources/devices/profile.mjs.map +1 -0
  114. package/resources/devices/proxy.d.mts +61 -0
  115. package/resources/devices/proxy.d.mts.map +1 -0
  116. package/resources/devices/proxy.d.ts +61 -0
  117. package/resources/devices/proxy.d.ts.map +1 -0
  118. package/resources/devices/proxy.js +48 -0
  119. package/resources/devices/proxy.js.map +1 -0
  120. package/resources/devices/proxy.mjs +44 -0
  121. package/resources/devices/proxy.mjs.map +1 -0
  122. package/resources/devices/state.d.mts +8 -19
  123. package/resources/devices/state.d.mts.map +1 -1
  124. package/resources/devices/state.d.ts +8 -19
  125. package/resources/devices/state.d.ts.map +1 -1
  126. package/resources/devices/state.js +0 -17
  127. package/resources/devices/state.js.map +1 -1
  128. package/resources/devices/state.mjs +0 -17
  129. package/resources/devices/state.mjs.map +1 -1
  130. package/resources/devices/tasks.d.mts +2 -9
  131. package/resources/devices/tasks.d.mts.map +1 -1
  132. package/resources/devices/tasks.d.ts +2 -9
  133. package/resources/devices/tasks.d.ts.map +1 -1
  134. package/resources/devices/tasks.js.map +1 -1
  135. package/resources/devices/tasks.mjs.map +1 -1
  136. package/resources/devices/time.d.mts +59 -0
  137. package/resources/devices/time.d.mts.map +1 -0
  138. package/resources/devices/time.d.ts +59 -0
  139. package/resources/devices/time.d.ts.map +1 -0
  140. package/resources/devices/time.js +83 -0
  141. package/resources/devices/time.js.map +1 -0
  142. package/resources/devices/time.mjs +79 -0
  143. package/resources/devices/time.mjs.map +1 -0
  144. package/resources/hooks.d.mts +5 -30
  145. package/resources/hooks.d.mts.map +1 -1
  146. package/resources/hooks.d.ts +5 -30
  147. package/resources/hooks.d.ts.map +1 -1
  148. package/resources/hooks.js +3 -0
  149. package/resources/hooks.js.map +1 -1
  150. package/resources/hooks.mjs +3 -0
  151. package/resources/hooks.mjs.map +1 -1
  152. package/resources/index.d.mts +6 -1
  153. package/resources/index.d.mts.map +1 -1
  154. package/resources/index.d.ts +6 -1
  155. package/resources/index.d.ts.map +1 -1
  156. package/resources/index.js +11 -1
  157. package/resources/index.js.map +1 -1
  158. package/resources/index.mjs +5 -0
  159. package/resources/index.mjs.map +1 -1
  160. package/resources/profiles.d.mts +84 -0
  161. package/resources/profiles.d.mts.map +1 -0
  162. package/resources/profiles.d.ts +84 -0
  163. package/resources/profiles.d.ts.map +1 -0
  164. package/resources/profiles.js +40 -0
  165. package/resources/profiles.js.map +1 -0
  166. package/resources/profiles.mjs +36 -0
  167. package/resources/profiles.mjs.map +1 -0
  168. package/resources/proxies.d.mts +72 -0
  169. package/resources/proxies.d.mts.map +1 -0
  170. package/resources/proxies.d.ts +72 -0
  171. package/resources/proxies.d.ts.map +1 -0
  172. package/resources/proxies.js +40 -0
  173. package/resources/proxies.js.map +1 -0
  174. package/resources/proxies.mjs +36 -0
  175. package/resources/proxies.mjs.map +1 -0
  176. package/resources/shared.d.mts +95 -0
  177. package/resources/shared.d.mts.map +1 -0
  178. package/resources/shared.d.ts +95 -0
  179. package/resources/shared.d.ts.map +1 -0
  180. package/resources/shared.js +4 -0
  181. package/resources/shared.js.map +1 -0
  182. package/resources/shared.mjs +3 -0
  183. package/resources/shared.mjs.map +1 -0
  184. package/resources/tasks/index.d.mts +1 -1
  185. package/resources/tasks/index.d.mts.map +1 -1
  186. package/resources/tasks/index.d.ts +1 -1
  187. package/resources/tasks/index.d.ts.map +1 -1
  188. package/resources/tasks/index.js.map +1 -1
  189. package/resources/tasks/index.mjs.map +1 -1
  190. package/resources/tasks/screenshots.d.mts +3 -0
  191. package/resources/tasks/screenshots.d.mts.map +1 -1
  192. package/resources/tasks/screenshots.d.ts +3 -0
  193. package/resources/tasks/screenshots.d.ts.map +1 -1
  194. package/resources/tasks/screenshots.js +3 -0
  195. package/resources/tasks/screenshots.js.map +1 -1
  196. package/resources/tasks/screenshots.mjs +3 -0
  197. package/resources/tasks/screenshots.mjs.map +1 -1
  198. package/resources/tasks/tasks.d.mts +89 -59
  199. package/resources/tasks/tasks.d.mts.map +1 -1
  200. package/resources/tasks/tasks.d.ts +89 -59
  201. package/resources/tasks/tasks.d.ts.map +1 -1
  202. package/resources/tasks/tasks.js +11 -5
  203. package/resources/tasks/tasks.js.map +1 -1
  204. package/resources/tasks/tasks.mjs +11 -5
  205. package/resources/tasks/tasks.mjs.map +1 -1
  206. package/resources/tasks/ui-states.d.mts +3 -0
  207. package/resources/tasks/ui-states.d.mts.map +1 -1
  208. package/resources/tasks/ui-states.d.ts +3 -0
  209. package/resources/tasks/ui-states.d.ts.map +1 -1
  210. package/resources/tasks/ui-states.js +3 -0
  211. package/resources/tasks/ui-states.js.map +1 -1
  212. package/resources/tasks/ui-states.mjs +3 -0
  213. package/resources/tasks/ui-states.mjs.map +1 -1
  214. package/src/client.ts +109 -10
  215. package/src/internal/utils/query.ts +7 -0
  216. package/src/internal/utils.ts +1 -0
  217. package/src/resources/agents.ts +43 -0
  218. package/src/resources/apps.ts +11 -19
  219. package/src/resources/carriers.ts +327 -0
  220. package/src/resources/credentials/credentials.ts +4 -19
  221. package/src/resources/devices/actions.ts +84 -0
  222. package/src/resources/devices/apps.ts +5 -0
  223. package/src/resources/devices/devices.ts +107 -61
  224. package/src/resources/devices/files.ts +221 -0
  225. package/src/resources/devices/index.ts +37 -3
  226. package/src/resources/devices/keyboard.ts +12 -2
  227. package/src/resources/devices/location.ts +91 -0
  228. package/src/resources/devices/packages.ts +5 -0
  229. package/src/resources/devices/profile.ts +45 -0
  230. package/src/resources/devices/proxy.ts +115 -0
  231. package/src/resources/devices/state.ts +10 -44
  232. package/src/resources/devices/tasks.ts +2 -15
  233. package/src/resources/devices/time.ts +147 -0
  234. package/src/resources/hooks.ts +5 -36
  235. package/src/resources/index.ts +35 -0
  236. package/src/resources/profiles.ts +133 -0
  237. package/src/resources/proxies.ts +130 -0
  238. package/src/resources/shared.ts +149 -0
  239. package/src/resources/tasks/index.ts +3 -0
  240. package/src/resources/tasks/screenshots.ts +3 -0
  241. package/src/resources/tasks/tasks.ts +112 -67
  242. package/src/resources/tasks/ui-states.ts +3 -0
  243. package/src/version.ts +1 -1
  244. package/version.d.mts +1 -1
  245. package/version.d.ts +1 -1
  246. package/version.js +1 -1
  247. package/version.mjs +1 -1
@@ -0,0 +1,95 @@
1
+ export interface Config {
2
+ host: string;
3
+ password: string;
4
+ port: number;
5
+ user: string;
6
+ }
7
+ export interface DeviceCarrier {
8
+ GsmOperatorAlpha: string;
9
+ GsmOperatorNumeric: number;
10
+ GsmSimOperatorAlpha: string;
11
+ GsmSimOperatorIsoCountry: string;
12
+ GsmSimOperatorNumeric: number;
13
+ PersistSysTimezone: string;
14
+ }
15
+ export interface DeviceIdentifiers {
16
+ BootloaderSerialNumber: string;
17
+ IdentifierAndroidID: string;
18
+ IdentifierAppSetID: string;
19
+ IdentifierBluetoothMAC: string;
20
+ IdentifierGAID: string;
21
+ IdentifierGSFID: string;
22
+ IdentifierICCID: string;
23
+ IdentifierIMEI: string;
24
+ IdentifierIMSI: string;
25
+ IdentifierMediaDRMID: string;
26
+ IdentifierMEID: string;
27
+ IdentifierPhoneNumber: string;
28
+ IdentifierSerial: string;
29
+ IdentifierWifiMAC: string;
30
+ SerialNumber: string;
31
+ }
32
+ export interface DeviceSpec {
33
+ /**
34
+ * A URL to the JSON Schema for this object.
35
+ */
36
+ $schema?: string;
37
+ apps?: Array<string> | null;
38
+ carrier?: DeviceCarrier;
39
+ files?: Array<string> | null;
40
+ identifiers?: DeviceIdentifiers;
41
+ name?: string;
42
+ proxy?: Config;
43
+ smartIp?: boolean;
44
+ }
45
+ export interface Meta {
46
+ hasNext: boolean;
47
+ hasPrev: boolean;
48
+ page: number;
49
+ pages: number;
50
+ pageSize: number;
51
+ total: number;
52
+ }
53
+ export interface Pagination {
54
+ hasNext: boolean;
55
+ hasPrev: boolean;
56
+ page: number;
57
+ pages: number;
58
+ pageSize: number;
59
+ total: number;
60
+ }
61
+ /**
62
+ * Pagination metadata.
63
+ */
64
+ export interface PaginationMeta {
65
+ /**
66
+ * Whether there is a next page
67
+ */
68
+ hasNext: boolean;
69
+ /**
70
+ * Whether there is a previous page
71
+ */
72
+ hasPrev: boolean;
73
+ /**
74
+ * Current page number (1-based)
75
+ */
76
+ page: number;
77
+ /**
78
+ * Total number of pages
79
+ */
80
+ pages: number;
81
+ /**
82
+ * Number of items per page
83
+ */
84
+ pageSize: number;
85
+ /**
86
+ * Total number of items
87
+ */
88
+ total: number;
89
+ }
90
+ export interface PermissionSet {
91
+ execute: boolean;
92
+ read: boolean;
93
+ write: boolean;
94
+ }
95
+ //# sourceMappingURL=shared.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.mts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,EAAE,MAAM,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IAEzB,kBAAkB,EAAE,MAAM,CAAC;IAE3B,mBAAmB,EAAE,MAAM,CAAC;IAE5B,wBAAwB,EAAE,MAAM,CAAC;IAEjC,qBAAqB,EAAE,MAAM,CAAC;IAE9B,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAE/B,mBAAmB,EAAE,MAAM,CAAC;IAE5B,kBAAkB,EAAE,MAAM,CAAC;IAE3B,sBAAsB,EAAE,MAAM,CAAC;IAE/B,cAAc,EAAE,MAAM,CAAC;IAEvB,eAAe,EAAE,MAAM,CAAC;IAExB,eAAe,EAAE,MAAM,CAAC;IAExB,cAAc,EAAE,MAAM,CAAC;IAEvB,cAAc,EAAE,MAAM,CAAC;IAEvB,oBAAoB,EAAE,MAAM,CAAC;IAE7B,cAAc,EAAE,MAAM,CAAC;IAEvB,qBAAqB,EAAE,MAAM,CAAC;IAE9B,gBAAgB,EAAE,MAAM,CAAC;IAEzB,iBAAiB,EAAE,MAAM,CAAC;IAE1B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAE5B,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAE7B,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAEhC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,IAAI;IACnB,OAAO,EAAE,OAAO,CAAC;IAEjB,OAAO,EAAE,OAAO,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,OAAO,CAAC;IAEjB,OAAO,EAAE,OAAO,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IAEjB,IAAI,EAAE,OAAO,CAAC;IAEd,KAAK,EAAE,OAAO,CAAC;CAChB"}
@@ -0,0 +1,95 @@
1
+ export interface Config {
2
+ host: string;
3
+ password: string;
4
+ port: number;
5
+ user: string;
6
+ }
7
+ export interface DeviceCarrier {
8
+ GsmOperatorAlpha: string;
9
+ GsmOperatorNumeric: number;
10
+ GsmSimOperatorAlpha: string;
11
+ GsmSimOperatorIsoCountry: string;
12
+ GsmSimOperatorNumeric: number;
13
+ PersistSysTimezone: string;
14
+ }
15
+ export interface DeviceIdentifiers {
16
+ BootloaderSerialNumber: string;
17
+ IdentifierAndroidID: string;
18
+ IdentifierAppSetID: string;
19
+ IdentifierBluetoothMAC: string;
20
+ IdentifierGAID: string;
21
+ IdentifierGSFID: string;
22
+ IdentifierICCID: string;
23
+ IdentifierIMEI: string;
24
+ IdentifierIMSI: string;
25
+ IdentifierMediaDRMID: string;
26
+ IdentifierMEID: string;
27
+ IdentifierPhoneNumber: string;
28
+ IdentifierSerial: string;
29
+ IdentifierWifiMAC: string;
30
+ SerialNumber: string;
31
+ }
32
+ export interface DeviceSpec {
33
+ /**
34
+ * A URL to the JSON Schema for this object.
35
+ */
36
+ $schema?: string;
37
+ apps?: Array<string> | null;
38
+ carrier?: DeviceCarrier;
39
+ files?: Array<string> | null;
40
+ identifiers?: DeviceIdentifiers;
41
+ name?: string;
42
+ proxy?: Config;
43
+ smartIp?: boolean;
44
+ }
45
+ export interface Meta {
46
+ hasNext: boolean;
47
+ hasPrev: boolean;
48
+ page: number;
49
+ pages: number;
50
+ pageSize: number;
51
+ total: number;
52
+ }
53
+ export interface Pagination {
54
+ hasNext: boolean;
55
+ hasPrev: boolean;
56
+ page: number;
57
+ pages: number;
58
+ pageSize: number;
59
+ total: number;
60
+ }
61
+ /**
62
+ * Pagination metadata.
63
+ */
64
+ export interface PaginationMeta {
65
+ /**
66
+ * Whether there is a next page
67
+ */
68
+ hasNext: boolean;
69
+ /**
70
+ * Whether there is a previous page
71
+ */
72
+ hasPrev: boolean;
73
+ /**
74
+ * Current page number (1-based)
75
+ */
76
+ page: number;
77
+ /**
78
+ * Total number of pages
79
+ */
80
+ pages: number;
81
+ /**
82
+ * Number of items per page
83
+ */
84
+ pageSize: number;
85
+ /**
86
+ * Total number of items
87
+ */
88
+ total: number;
89
+ }
90
+ export interface PermissionSet {
91
+ execute: boolean;
92
+ read: boolean;
93
+ write: boolean;
94
+ }
95
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,EAAE,MAAM,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IAEzB,kBAAkB,EAAE,MAAM,CAAC;IAE3B,mBAAmB,EAAE,MAAM,CAAC;IAE5B,wBAAwB,EAAE,MAAM,CAAC;IAEjC,qBAAqB,EAAE,MAAM,CAAC;IAE9B,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAE/B,mBAAmB,EAAE,MAAM,CAAC;IAE5B,kBAAkB,EAAE,MAAM,CAAC;IAE3B,sBAAsB,EAAE,MAAM,CAAC;IAE/B,cAAc,EAAE,MAAM,CAAC;IAEvB,eAAe,EAAE,MAAM,CAAC;IAExB,eAAe,EAAE,MAAM,CAAC;IAExB,cAAc,EAAE,MAAM,CAAC;IAEvB,cAAc,EAAE,MAAM,CAAC;IAEvB,oBAAoB,EAAE,MAAM,CAAC;IAE7B,cAAc,EAAE,MAAM,CAAC;IAEvB,qBAAqB,EAAE,MAAM,CAAC;IAE9B,gBAAgB,EAAE,MAAM,CAAC;IAEzB,iBAAiB,EAAE,MAAM,CAAC;IAE1B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAE5B,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAE7B,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAEhC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,IAAI;IACnB,OAAO,EAAE,OAAO,CAAC;IAEjB,OAAO,EAAE,OAAO,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,OAAO,CAAC;IAEjB,OAAO,EAAE,OAAO,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IAEjB,IAAI,EAAE,OAAO,CAAC;IAEd,KAAK,EAAE,OAAO,CAAC;CAChB"}
@@ -0,0 +1,4 @@
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
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,sFAAsF"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export {};
3
+ //# sourceMappingURL=shared.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,4 +1,4 @@
1
1
  export { Screenshots, type MediaResponse, type ScreenshotListResponse, type ScreenshotRetrieveParams, } from "./screenshots.mjs";
2
- export { Tasks, type PackageCredentials, type Task, type TaskStatus, type UsageResult, type TaskRetrieveResponse, type TaskListResponse, type TaskGetStatusResponse, type TaskGetTrajectoryResponse, type TaskRunResponse, type TaskStopResponse, type TaskListParams, type TaskRunParams, type TaskRunStreamedParams, } from "./tasks.mjs";
2
+ export { Tasks, type PackageCredentials, type Task, type TaskStatus, type UsageResult, type TaskRetrieveResponse, type TaskListResponse, type TaskGetStatusResponse, type TaskGetTrajectoryResponse, type TaskRunResponse, type TaskRunStreamedResponse, type TaskSendMessageResponse, type TaskStopResponse, type TaskListParams, type TaskRunParams, type TaskRunStreamedParams, type TaskSendMessageParams, } from "./tasks.mjs";
3
3
  export { UiStates, type UiStateListResponse, type UiStateRetrieveParams } from "./ui-states.mjs";
4
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/tasks/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,GAC9B;OACM,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,qBAAqB,GAC3B;OACM,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,qBAAqB,EAAE"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/tasks/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,GAC9B;OACM,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,qBAAqB,EAAE"}
@@ -1,4 +1,4 @@
1
1
  export { Screenshots, type MediaResponse, type ScreenshotListResponse, type ScreenshotRetrieveParams, } from "./screenshots.js";
2
- export { Tasks, type PackageCredentials, type Task, type TaskStatus, type UsageResult, type TaskRetrieveResponse, type TaskListResponse, type TaskGetStatusResponse, type TaskGetTrajectoryResponse, type TaskRunResponse, type TaskStopResponse, type TaskListParams, type TaskRunParams, type TaskRunStreamedParams, } from "./tasks.js";
2
+ export { Tasks, type PackageCredentials, type Task, type TaskStatus, type UsageResult, type TaskRetrieveResponse, type TaskListResponse, type TaskGetStatusResponse, type TaskGetTrajectoryResponse, type TaskRunResponse, type TaskRunStreamedResponse, type TaskSendMessageResponse, type TaskStopResponse, type TaskListParams, type TaskRunParams, type TaskRunStreamedParams, type TaskSendMessageParams, } from "./tasks.js";
3
3
  export { UiStates, type UiStateListResponse, type UiStateRetrieveParams } from "./ui-states.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/tasks/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,GAC9B;OACM,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,qBAAqB,GAC3B;OACM,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,qBAAqB,EAAE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/tasks/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,GAC9B;OACM,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,qBAAqB,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/tasks/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAKuB;AAJrB,0GAAA,WAAW,OAAA;AAKb,oCAeiB;AAdf,8FAAA,KAAK,OAAA;AAeP,4CAA6F;AAApF,qGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/tasks/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAKuB;AAJrB,0GAAA,WAAW,OAAA;AAKb,oCAkBiB;AAjBf,8FAAA,KAAK,OAAA;AAkBP,4CAA6F;AAApF,qGAAA,QAAQ,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/tasks/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAIZ;OACM,EACL,KAAK,GAcN;OACM,EAAE,QAAQ,EAAwD"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/tasks/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAIZ;OACM,EACL,KAAK,GAiBN;OACM,EAAE,QAAQ,EAAwD"}
@@ -1,6 +1,9 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import { APIPromise } from "../../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../../internal/request-options.mjs";
4
+ /**
5
+ * Tasks API
6
+ */
4
7
  export declare class Screenshots extends APIResource {
5
8
  /**
6
9
  * Get a specific screenshot by index.
@@ -1 +1 @@
1
- {"version":3,"file":"screenshots.d.mts","sourceRoot":"","sources":["../../src/resources/tasks/screenshots.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC;IAK5B;;OAEG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGnF;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"screenshots.d.mts","sourceRoot":"","sources":["../../src/resources/tasks/screenshots.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC;IAK5B;;OAEG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGnF;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -1,6 +1,9 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
2
  import { APIPromise } from "../../core/api-promise.js";
3
3
  import { RequestOptions } from "../../internal/request-options.js";
4
+ /**
5
+ * Tasks API
6
+ */
4
7
  export declare class Screenshots extends APIResource {
5
8
  /**
6
9
  * Get a specific screenshot by index.
@@ -1 +1 @@
1
- {"version":3,"file":"screenshots.d.ts","sourceRoot":"","sources":["../../src/resources/tasks/screenshots.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC;IAK5B;;OAEG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGnF;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"screenshots.d.ts","sourceRoot":"","sources":["../../src/resources/tasks/screenshots.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC;IAK5B;;OAEG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGnF;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Screenshots = void 0;
5
5
  const resource_1 = require("../../core/resource.js");
6
6
  const path_1 = require("../../internal/utils/path.js");
7
+ /**
8
+ * Tasks API
9
+ */
7
10
  class Screenshots extends resource_1.APIResource {
8
11
  /**
9
12
  * Get a specific screenshot by index.
@@ -1 +1 @@
1
- {"version":3,"file":"screenshots.js","sourceRoot":"","sources":["../../src/resources/tasks/screenshots.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,KAAa,EACb,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,gBAAgB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,cAAc,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF;AAnBD,kCAmBC"}
1
+ {"version":3,"file":"screenshots.js","sourceRoot":"","sources":["../../src/resources/tasks/screenshots.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,KAAa,EACb,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,gBAAgB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,cAAc,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF;AAnBD,kCAmBC"}
@@ -1,6 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
3
  import { path } from "../../internal/utils/path.mjs";
4
+ /**
5
+ * Tasks API
6
+ */
4
7
  export class Screenshots extends APIResource {
5
8
  /**
6
9
  * Get a specific screenshot by index.
@@ -1 +1 @@
1
- {"version":3,"file":"screenshots.mjs","sourceRoot":"","sources":["../../src/resources/tasks/screenshots.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,KAAa,EACb,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,OAAO,gBAAgB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,cAAc,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF"}
1
+ {"version":3,"file":"screenshots.mjs","sourceRoot":"","sources":["../../src/resources/tasks/screenshots.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,KAAa,EACb,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,OAAO,gBAAgB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,cAAc,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF"}
@@ -1,11 +1,15 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import * as TasksAPI from "./tasks.mjs";
3
+ import * as Shared from "../shared.mjs";
3
4
  import * as ScreenshotsAPI from "./screenshots.mjs";
4
5
  import { MediaResponse, ScreenshotListResponse, ScreenshotRetrieveParams, Screenshots } from "./screenshots.mjs";
5
6
  import * as UiStatesAPI from "./ui-states.mjs";
6
7
  import { UiStateListResponse, UiStateRetrieveParams, UiStates } from "./ui-states.mjs";
7
8
  import { APIPromise } from "../../core/api-promise.mjs";
8
9
  import { RequestOptions } from "../../internal/request-options.mjs";
10
+ /**
11
+ * Tasks API
12
+ */
9
13
  export declare class Tasks extends APIResource {
10
14
  screenshots: ScreenshotsAPI.Screenshots;
11
15
  uiStates: UiStatesAPI.UiStates;
@@ -38,7 +42,12 @@ export declare class Tasks extends APIResource {
38
42
  * Create and dispatch a new agent task, returning an SSE stream of task events.
39
43
  * Cancels the task if the client disconnects.
40
44
  */
41
- runStreamed(body: TaskRunStreamedParams, options?: RequestOptions): APIPromise<void>;
45
+ runStreamed(body: TaskRunStreamedParams, options?: RequestOptions): APIPromise<unknown>;
46
+ /**
47
+ * Send a message to a running agent task. The message ID is delivered via SSE
48
+ * (UserMessageEvent with action=queued).
49
+ */
50
+ sendMessage(taskID: string, body: TaskSendMessageParams, options?: RequestOptions): APIPromise<TaskSendMessageResponse>;
42
51
  /**
43
52
  * Cancel a running task. Returns an error if the task is already in a terminal
44
53
  * state.
@@ -58,6 +67,7 @@ export interface Task {
58
67
  task: string;
59
68
  userId: string;
60
69
  id?: string;
70
+ agentId?: number;
61
71
  apps?: Array<string>;
62
72
  createdAt?: string;
63
73
  credentials?: Array<PackageCredentials>;
@@ -66,6 +76,7 @@ export interface Task {
66
76
  files?: Array<string>;
67
77
  finishedAt?: string | null;
68
78
  maxSteps?: number;
79
+ message?: string | null;
69
80
  output?: {
70
81
  [key: string]: unknown;
71
82
  } | null;
@@ -107,50 +118,43 @@ export interface TaskListResponse {
107
118
  /**
108
119
  * Pagination metadata
109
120
  */
110
- pagination: TaskListResponse.Pagination;
111
- }
112
- export declare namespace TaskListResponse {
113
- /**
114
- * Pagination metadata
115
- */
116
- interface Pagination {
117
- /**
118
- * Whether there is a next page
119
- */
120
- hasNext: boolean;
121
- /**
122
- * Whether there is a previous page
123
- */
124
- hasPrev: boolean;
125
- /**
126
- * Current page number (1-based)
127
- */
128
- page: number;
129
- /**
130
- * Total number of pages
131
- */
132
- pages: number;
133
- /**
134
- * Number of items per page
135
- */
136
- pageSize: number;
137
- /**
138
- * Total number of items
139
- */
140
- total: number;
141
- }
121
+ pagination: Shared.PaginationMeta;
142
122
  }
143
123
  export interface TaskGetStatusResponse {
144
124
  /**
145
125
  * The status of the task
146
126
  */
147
127
  status: TaskStatus;
128
+ /**
129
+ * The last agent response (FastAgentResponseEvent or ManagerPlanEvent)
130
+ */
131
+ lastResponse?: {
132
+ [key: string]: unknown;
133
+ } | null;
134
+ /**
135
+ * The agent's final answer or failure reason
136
+ */
137
+ message?: string | null;
138
+ /**
139
+ * Structured output if outputSchema was set
140
+ */
141
+ output?: {
142
+ [key: string]: unknown;
143
+ } | null;
144
+ /**
145
+ * Number of steps taken
146
+ */
147
+ steps?: number | null;
148
+ /**
149
+ * Whether the task succeeded
150
+ */
151
+ succeeded?: boolean | null;
148
152
  }
149
153
  export interface TaskGetTrajectoryResponse {
150
154
  /**
151
155
  * The trajectory of the task
152
156
  */
153
- trajectory: Array<TaskGetTrajectoryResponse.TrajectoryCreatedEvent | TaskGetTrajectoryResponse.TrajectoryExceptionEvent | TaskGetTrajectoryResponse.TrajectoryCancelEvent | TaskGetTrajectoryResponse.TrajectoryScreenshotEvent | TaskGetTrajectoryResponse.TrajectoryStartEvent | TaskGetTrajectoryResponse.TrajectoryFinalizeEvent | TaskGetTrajectoryResponse.TrajectoryStopEvent | TaskGetTrajectoryResponse.TrajectoryResultEvent | TaskGetTrajectoryResponse.TrajectoryManagerInputEvent | TaskGetTrajectoryResponse.TrajectoryManagerPlanEvent | TaskGetTrajectoryResponse.TrajectoryExecutorInputEvent | TaskGetTrajectoryResponse.TrajectoryExecutorResultEvent | TaskGetTrajectoryResponse.TrajectoryFastAgentInputEvent | TaskGetTrajectoryResponse.TrajectoryFastAgentResponseEvent | TaskGetTrajectoryResponse.TrajectoryFastAgentToolCallEvent | TaskGetTrajectoryResponse.TrajectoryFastAgentOutputEvent | TaskGetTrajectoryResponse.TrajectoryFastAgentEndEvent | TaskGetTrajectoryResponse.TrajectoryFastAgentExecuteEvent | TaskGetTrajectoryResponse.TrajectoryFastAgentResultEvent | TaskGetTrajectoryResponse.TrajectoryToolExecutionEvent | TaskGetTrajectoryResponse.TrajectoryRecordUiStateEvent | TaskGetTrajectoryResponse.TrajectoryManagerContextEvent | TaskGetTrajectoryResponse.TrajectoryManagerResponseEvent | TaskGetTrajectoryResponse.TrajectoryManagerPlanDetailsEvent | TaskGetTrajectoryResponse.TrajectoryExecutorContextEvent | TaskGetTrajectoryResponse.TrajectoryExecutorResponseEvent | TaskGetTrajectoryResponse.TrajectoryExecutorActionEvent | TaskGetTrajectoryResponse.TrajectoryExecutorActionResultEvent | TaskGetTrajectoryResponse.TrajectoryUnknownEvent>;
157
+ trajectory: Array<TaskGetTrajectoryResponse.TrajectoryCreatedEvent | TaskGetTrajectoryResponse.TrajectoryExceptionEvent | TaskGetTrajectoryResponse.TrajectoryCancelEvent | TaskGetTrajectoryResponse.TrajectoryScreenshotEvent | TaskGetTrajectoryResponse.TrajectoryStartEvent | TaskGetTrajectoryResponse.TrajectoryFinalizeEvent | TaskGetTrajectoryResponse.TrajectoryStopEvent | TaskGetTrajectoryResponse.TrajectoryResultEvent | TaskGetTrajectoryResponse.TrajectoryManagerInputEvent | TaskGetTrajectoryResponse.TrajectoryManagerPlanEvent | TaskGetTrajectoryResponse.TrajectoryExecutorInputEvent | TaskGetTrajectoryResponse.TrajectoryExecutorResultEvent | TaskGetTrajectoryResponse.TrajectoryFastAgentInputEvent | TaskGetTrajectoryResponse.TrajectoryFastAgentResponseEvent | TaskGetTrajectoryResponse.TrajectoryFastAgentToolCallEvent | TaskGetTrajectoryResponse.TrajectoryFastAgentOutputEvent | TaskGetTrajectoryResponse.TrajectoryFastAgentEndEvent | TaskGetTrajectoryResponse.TrajectoryFastAgentExecuteEvent | TaskGetTrajectoryResponse.TrajectoryFastAgentResultEvent | TaskGetTrajectoryResponse.TrajectoryToolExecutionEvent | TaskGetTrajectoryResponse.TrajectoryRecordUiStateEvent | TaskGetTrajectoryResponse.TrajectoryManagerContextEvent | TaskGetTrajectoryResponse.TrajectoryManagerResponseEvent | TaskGetTrajectoryResponse.TrajectoryManagerPlanDetailsEvent | TaskGetTrajectoryResponse.TrajectoryExecutorContextEvent | TaskGetTrajectoryResponse.TrajectoryExecutorResponseEvent | TaskGetTrajectoryResponse.TrajectoryExecutorActionEvent | TaskGetTrajectoryResponse.TrajectoryExecutorActionResultEvent | TaskGetTrajectoryResponse.TrajectoryUserMessageEvent | TaskGetTrajectoryResponse.TrajectoryUnknownEvent>;
154
158
  }
155
159
  export declare namespace TaskGetTrajectoryResponse {
156
160
  interface TrajectoryCreatedEvent {
@@ -160,7 +164,6 @@ export declare namespace TaskGetTrajectoryResponse {
160
164
  namespace TrajectoryCreatedEvent {
161
165
  interface Data {
162
166
  id: string;
163
- token: string;
164
167
  streamUrl: string;
165
168
  }
166
169
  }
@@ -257,6 +260,7 @@ export declare namespace TaskGetTrajectoryResponse {
257
260
  * API OpenAPI schema can reference it without the heavy droidrun import.
258
261
  */
259
262
  interface Data {
263
+ message?: string | null;
260
264
  steps?: number | null;
261
265
  structured_output?: {
262
266
  [key: string]: unknown;
@@ -568,6 +572,25 @@ export declare namespace TaskGetTrajectoryResponse {
568
572
  thought?: string;
569
573
  }
570
574
  }
575
+ interface TrajectoryUserMessageEvent {
576
+ /**
577
+ * Tracks the lifecycle of an external user message: queued → applied | dropped.
578
+ */
579
+ data: TrajectoryUserMessageEvent.Data;
580
+ event: 'UserMessageEvent';
581
+ }
582
+ namespace TrajectoryUserMessageEvent {
583
+ /**
584
+ * Tracks the lifecycle of an external user message: queued → applied | dropped.
585
+ */
586
+ interface Data {
587
+ action: string;
588
+ message_ids: Array<string>;
589
+ consumer?: string | null;
590
+ reason?: string | null;
591
+ step_number?: number | null;
592
+ }
593
+ }
571
594
  interface TrajectoryUnknownEvent {
572
595
  event: string;
573
596
  data?: {
@@ -580,15 +603,18 @@ export interface TaskRunResponse {
580
603
  * The ID of the task
581
604
  */
582
605
  id: string;
583
- /**
584
- * The token of the stream
585
- */
586
- token: string;
587
606
  /**
588
607
  * The URL of the stream
589
608
  */
590
609
  streamUrl: string;
591
610
  }
611
+ export type TaskRunStreamedResponse = unknown;
612
+ export interface TaskSendMessageResponse {
613
+ /**
614
+ * Whether the message was queued for delivery
615
+ */
616
+ sent: boolean;
617
+ }
592
618
  export interface TaskStopResponse {
593
619
  /**
594
620
  * Whether the task was cancelled
@@ -598,13 +624,7 @@ export interface TaskStopResponse {
598
624
  export interface TaskListParams {
599
625
  orderBy?: 'id' | 'createdAt' | 'finishedAt' | 'status' | null;
600
626
  orderByDirection?: 'asc' | 'desc';
601
- /**
602
- * Page number (1-based). If provided, returns paginated results.
603
- */
604
- page?: number | null;
605
- /**
606
- * Number of items per page
607
- */
627
+ page?: number;
608
628
  pageSize?: number;
609
629
  /**
610
630
  * Search in task description.
@@ -614,22 +634,24 @@ export interface TaskListParams {
614
634
  }
615
635
  export interface TaskRunParams {
616
636
  /**
617
- * The LLM model identifier to use for the task (e.g. 'gemini/gemini-2.5-flash')
637
+ * The ID of the device to run the task on.
618
638
  */
619
- llmModel: string;
639
+ deviceId: string;
620
640
  task: string;
641
+ agentId?: number;
621
642
  apps?: Array<string>;
622
643
  credentials?: Array<PackageCredentials>;
623
- /**
624
- * The ID of the device to run the task on.
625
- */
626
- deviceId?: string | null;
627
644
  /**
628
645
  * The display ID of the device to run the task on.
629
646
  */
630
647
  displayId?: number;
631
648
  executionTimeout?: number;
632
649
  files?: Array<string>;
650
+ /**
651
+ * The LLM model identifier to use for the task (e.g.
652
+ * 'google/gemini-3.1-flash-lite-preview')
653
+ */
654
+ llmModel?: string;
633
655
  maxSteps?: number;
634
656
  outputSchema?: {
635
657
  [key: string]: unknown;
@@ -642,22 +664,24 @@ export interface TaskRunParams {
642
664
  }
643
665
  export interface TaskRunStreamedParams {
644
666
  /**
645
- * The LLM model identifier to use for the task (e.g. 'gemini/gemini-2.5-flash')
667
+ * The ID of the device to run the task on.
646
668
  */
647
- llmModel: string;
669
+ deviceId: string;
648
670
  task: string;
671
+ agentId?: number;
649
672
  apps?: Array<string>;
650
673
  credentials?: Array<PackageCredentials>;
651
- /**
652
- * The ID of the device to run the task on.
653
- */
654
- deviceId?: string | null;
655
674
  /**
656
675
  * The display ID of the device to run the task on.
657
676
  */
658
677
  displayId?: number;
659
678
  executionTimeout?: number;
660
679
  files?: Array<string>;
680
+ /**
681
+ * The LLM model identifier to use for the task (e.g.
682
+ * 'google/gemini-3.1-flash-lite-preview')
683
+ */
684
+ llmModel?: string;
661
685
  maxSteps?: number;
662
686
  outputSchema?: {
663
687
  [key: string]: unknown;
@@ -668,8 +692,14 @@ export interface TaskRunStreamedParams {
668
692
  vision?: boolean;
669
693
  vpnCountry?: 'US' | 'BR' | 'FR' | 'DE' | 'IN' | 'JP' | 'KR' | 'ZA' | null;
670
694
  }
695
+ export interface TaskSendMessageParams {
696
+ /**
697
+ * Message to send to the running agent
698
+ */
699
+ message: string;
700
+ }
671
701
  export declare namespace Tasks {
672
- export { type PackageCredentials as PackageCredentials, type Task as Task, type TaskStatus as TaskStatus, type UsageResult as UsageResult, type TaskRetrieveResponse as TaskRetrieveResponse, type TaskListResponse as TaskListResponse, type TaskGetStatusResponse as TaskGetStatusResponse, type TaskGetTrajectoryResponse as TaskGetTrajectoryResponse, type TaskRunResponse as TaskRunResponse, type TaskStopResponse as TaskStopResponse, type TaskListParams as TaskListParams, type TaskRunParams as TaskRunParams, type TaskRunStreamedParams as TaskRunStreamedParams, };
702
+ export { type PackageCredentials as PackageCredentials, type Task as Task, type TaskStatus as TaskStatus, type UsageResult as UsageResult, type TaskRetrieveResponse as TaskRetrieveResponse, type TaskListResponse as TaskListResponse, type TaskGetStatusResponse as TaskGetStatusResponse, type TaskGetTrajectoryResponse as TaskGetTrajectoryResponse, type TaskRunResponse as TaskRunResponse, type TaskRunStreamedResponse as TaskRunStreamedResponse, type TaskSendMessageResponse as TaskSendMessageResponse, type TaskStopResponse as TaskStopResponse, type TaskListParams as TaskListParams, type TaskRunParams as TaskRunParams, type TaskRunStreamedParams as TaskRunStreamedParams, type TaskSendMessageParams as TaskSendMessageParams, };
673
703
  export { Screenshots as Screenshots, type MediaResponse as MediaResponse, type ScreenshotListResponse as ScreenshotListResponse, type ScreenshotRetrieveParams as ScreenshotRetrieveParams, };
674
704
  export { UiStates as UiStates, type UiStateListResponse as UiStateListResponse, type UiStateRetrieveParams as UiStateRetrieveParams, };
675
705
  }