@mobilerun/sdk 6.0.1 → 6.1.1

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 (495) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agents/agents.d.mts +307 -0
  12. package/resources/agents/agents.d.mts.map +1 -0
  13. package/resources/agents/agents.d.ts +307 -0
  14. package/resources/agents/agents.d.ts.map +1 -0
  15. package/resources/agents/agents.js +56 -0
  16. package/resources/agents/agents.js.map +1 -0
  17. package/resources/agents/agents.mjs +51 -0
  18. package/resources/agents/agents.mjs.map +1 -0
  19. package/resources/agents/conversations.d.mts +110 -0
  20. package/resources/agents/conversations.d.mts.map +1 -0
  21. package/resources/agents/conversations.d.ts +110 -0
  22. package/resources/agents/conversations.d.ts.map +1 -0
  23. package/resources/agents/conversations.js +24 -0
  24. package/resources/agents/conversations.js.map +1 -0
  25. package/resources/agents/conversations.mjs +20 -0
  26. package/resources/agents/conversations.mjs.map +1 -0
  27. package/resources/agents/files.d.mts +64 -0
  28. package/resources/agents/files.d.mts.map +1 -0
  29. package/resources/agents/files.d.ts +64 -0
  30. package/resources/agents/files.d.ts.map +1 -0
  31. package/resources/agents/files.js +16 -0
  32. package/resources/agents/files.js.map +1 -0
  33. package/resources/agents/files.mjs +12 -0
  34. package/resources/agents/files.mjs.map +1 -0
  35. package/resources/agents/index.d.mts +7 -0
  36. package/resources/agents/index.d.mts.map +1 -0
  37. package/resources/agents/index.d.ts +7 -0
  38. package/resources/agents/index.d.ts.map +1 -0
  39. package/resources/agents/index.js +17 -0
  40. package/resources/agents/index.js.map +1 -0
  41. package/resources/agents/index.mjs +8 -0
  42. package/resources/agents/index.mjs.map +1 -0
  43. package/resources/agents/profile.d.mts +156 -0
  44. package/resources/agents/profile.d.mts.map +1 -0
  45. package/resources/agents/profile.d.ts +156 -0
  46. package/resources/agents/profile.d.ts.map +1 -0
  47. package/resources/agents/profile.js +19 -0
  48. package/resources/agents/profile.js.map +1 -0
  49. package/resources/agents/profile.mjs +15 -0
  50. package/resources/agents/profile.mjs.map +1 -0
  51. package/resources/agents/requests.d.mts +295 -0
  52. package/resources/agents/requests.d.mts.map +1 -0
  53. package/resources/agents/requests.d.ts +295 -0
  54. package/resources/agents/requests.d.ts.map +1 -0
  55. package/resources/agents/requests.js +42 -0
  56. package/resources/agents/requests.js.map +1 -0
  57. package/resources/agents/requests.mjs +38 -0
  58. package/resources/agents/requests.mjs.map +1 -0
  59. package/resources/agents/routines.d.mts +95 -0
  60. package/resources/agents/routines.d.mts.map +1 -0
  61. package/resources/agents/routines.d.ts +95 -0
  62. package/resources/agents/routines.d.ts.map +1 -0
  63. package/resources/agents/routines.js +26 -0
  64. package/resources/agents/routines.js.map +1 -0
  65. package/resources/agents/routines.mjs +22 -0
  66. package/resources/agents/routines.mjs.map +1 -0
  67. package/resources/agents.d.mts +2 -0
  68. package/resources/agents.d.mts.map +1 -0
  69. package/resources/agents.d.ts +2 -0
  70. package/resources/agents.d.ts.map +1 -0
  71. package/resources/agents.js +6 -0
  72. package/resources/agents.js.map +1 -0
  73. package/resources/agents.mjs +3 -0
  74. package/resources/agents.mjs.map +1 -0
  75. package/resources/assistant/conversations.d.mts +115 -38
  76. package/resources/assistant/conversations.d.mts.map +1 -1
  77. package/resources/assistant/conversations.d.ts +115 -38
  78. package/resources/assistant/conversations.d.ts.map +1 -1
  79. package/resources/assistant/conversations.js +20 -19
  80. package/resources/assistant/conversations.js.map +1 -1
  81. package/resources/assistant/conversations.mjs +20 -19
  82. package/resources/assistant/conversations.mjs.map +1 -1
  83. package/resources/connect/connect.d.mts +2 -2
  84. package/resources/connect/connect.d.mts.map +1 -1
  85. package/resources/connect/connect.d.ts +2 -2
  86. package/resources/connect/connect.d.ts.map +1 -1
  87. package/resources/connect/connect.js.map +1 -1
  88. package/resources/connect/connect.mjs.map +1 -1
  89. package/resources/connect/index.d.mts +1 -1
  90. package/resources/connect/index.d.mts.map +1 -1
  91. package/resources/connect/index.d.ts +1 -1
  92. package/resources/connect/index.d.ts.map +1 -1
  93. package/resources/connect/index.js.map +1 -1
  94. package/resources/connect/index.mjs.map +1 -1
  95. package/resources/connect/proxies.d.mts +22 -1
  96. package/resources/connect/proxies.d.mts.map +1 -1
  97. package/resources/connect/proxies.d.ts +22 -1
  98. package/resources/connect/proxies.d.ts.map +1 -1
  99. package/resources/connect/proxies.js +8 -0
  100. package/resources/connect/proxies.js.map +1 -1
  101. package/resources/connect/proxies.mjs +8 -0
  102. package/resources/connect/proxies.mjs.map +1 -1
  103. package/resources/credentials/credentials.d.mts +20 -0
  104. package/resources/credentials/credentials.d.mts.map +1 -1
  105. package/resources/credentials/credentials.d.ts +20 -0
  106. package/resources/credentials/credentials.d.ts.map +1 -1
  107. package/resources/credentials/credentials.js +4 -0
  108. package/resources/credentials/credentials.js.map +1 -1
  109. package/resources/credentials/credentials.mjs +4 -0
  110. package/resources/credentials/credentials.mjs.map +1 -1
  111. package/resources/credentials/index.d.mts +1 -0
  112. package/resources/credentials/index.d.mts.map +1 -1
  113. package/resources/credentials/index.d.ts +1 -0
  114. package/resources/credentials/index.d.ts.map +1 -1
  115. package/resources/credentials/index.js +5 -3
  116. package/resources/credentials/index.js.map +1 -1
  117. package/resources/credentials/index.mjs +1 -0
  118. package/resources/credentials/index.mjs.map +1 -1
  119. package/resources/credentials/onepassword/index.d.mts +3 -0
  120. package/resources/credentials/onepassword/index.d.mts.map +1 -0
  121. package/resources/credentials/onepassword/index.d.ts +3 -0
  122. package/resources/credentials/onepassword/index.d.ts.map +1 -0
  123. package/resources/credentials/onepassword/index.js +9 -0
  124. package/resources/credentials/onepassword/index.js.map +1 -0
  125. package/resources/credentials/onepassword/index.mjs +4 -0
  126. package/resources/credentials/onepassword/index.mjs.map +1 -0
  127. package/resources/credentials/onepassword/onepassword.d.mts +65 -0
  128. package/resources/credentials/onepassword/onepassword.d.mts.map +1 -0
  129. package/resources/credentials/onepassword/onepassword.d.ts +65 -0
  130. package/resources/credentials/onepassword/onepassword.d.ts.map +1 -0
  131. package/resources/credentials/onepassword/onepassword.js +35 -0
  132. package/resources/credentials/onepassword/onepassword.js.map +1 -0
  133. package/resources/credentials/onepassword/onepassword.mjs +30 -0
  134. package/resources/credentials/onepassword/onepassword.mjs.map +1 -0
  135. package/resources/credentials/onepassword/vaults/index.d.mts +3 -0
  136. package/resources/credentials/onepassword/vaults/index.d.mts.map +1 -0
  137. package/resources/credentials/onepassword/vaults/index.d.ts +3 -0
  138. package/resources/credentials/onepassword/vaults/index.d.ts.map +1 -0
  139. package/resources/credentials/onepassword/vaults/index.js +9 -0
  140. package/resources/credentials/onepassword/vaults/index.js.map +1 -0
  141. package/resources/credentials/onepassword/vaults/index.mjs +4 -0
  142. package/resources/credentials/onepassword/vaults/index.mjs.map +1 -0
  143. package/resources/credentials/onepassword/vaults/items/fields.d.mts +27 -0
  144. package/resources/credentials/onepassword/vaults/items/fields.d.mts.map +1 -0
  145. package/resources/credentials/onepassword/vaults/items/fields.d.ts +27 -0
  146. package/resources/credentials/onepassword/vaults/items/fields.d.ts.map +1 -0
  147. package/resources/credentials/onepassword/vaults/items/fields.js +17 -0
  148. package/resources/credentials/onepassword/vaults/items/fields.js.map +1 -0
  149. package/resources/credentials/onepassword/vaults/items/fields.mjs +13 -0
  150. package/resources/credentials/onepassword/vaults/items/fields.mjs.map +1 -0
  151. package/resources/credentials/onepassword/vaults/items/index.d.mts +3 -0
  152. package/resources/credentials/onepassword/vaults/items/index.d.mts.map +1 -0
  153. package/resources/credentials/onepassword/vaults/items/index.d.ts +3 -0
  154. package/resources/credentials/onepassword/vaults/items/index.d.ts.map +1 -0
  155. package/resources/credentials/onepassword/vaults/items/index.js +9 -0
  156. package/resources/credentials/onepassword/vaults/items/index.js.map +1 -0
  157. package/resources/credentials/onepassword/vaults/items/index.mjs +4 -0
  158. package/resources/credentials/onepassword/vaults/items/index.mjs.map +1 -0
  159. package/resources/credentials/onepassword/vaults/items/items.d.mts +34 -0
  160. package/resources/credentials/onepassword/vaults/items/items.d.mts.map +1 -0
  161. package/resources/credentials/onepassword/vaults/items/items.d.ts +34 -0
  162. package/resources/credentials/onepassword/vaults/items/items.d.ts.map +1 -0
  163. package/resources/credentials/onepassword/vaults/items/items.js +24 -0
  164. package/resources/credentials/onepassword/vaults/items/items.js.map +1 -0
  165. package/resources/credentials/onepassword/vaults/items/items.mjs +19 -0
  166. package/resources/credentials/onepassword/vaults/items/items.mjs.map +1 -0
  167. package/resources/credentials/onepassword/vaults/items.d.mts +2 -0
  168. package/resources/credentials/onepassword/vaults/items.d.mts.map +1 -0
  169. package/resources/credentials/onepassword/vaults/items.d.ts +2 -0
  170. package/resources/credentials/onepassword/vaults/items.d.ts.map +1 -0
  171. package/resources/credentials/onepassword/vaults/items.js +6 -0
  172. package/resources/credentials/onepassword/vaults/items.js.map +1 -0
  173. package/resources/credentials/onepassword/vaults/items.mjs +3 -0
  174. package/resources/credentials/onepassword/vaults/items.mjs.map +1 -0
  175. package/resources/credentials/onepassword/vaults/vaults.d.mts +10 -0
  176. package/resources/credentials/onepassword/vaults/vaults.d.mts.map +1 -0
  177. package/resources/credentials/onepassword/vaults/vaults.d.ts +10 -0
  178. package/resources/credentials/onepassword/vaults/vaults.d.ts.map +1 -0
  179. package/resources/credentials/onepassword/vaults/vaults.js +17 -0
  180. package/resources/credentials/onepassword/vaults/vaults.js.map +1 -0
  181. package/resources/credentials/onepassword/vaults/vaults.mjs +12 -0
  182. package/resources/credentials/onepassword/vaults/vaults.mjs.map +1 -0
  183. package/resources/credentials/onepassword/vaults.d.mts +2 -0
  184. package/resources/credentials/onepassword/vaults.d.mts.map +1 -0
  185. package/resources/credentials/onepassword/vaults.d.ts +2 -0
  186. package/resources/credentials/onepassword/vaults.d.ts.map +1 -0
  187. package/resources/credentials/onepassword/vaults.js +6 -0
  188. package/resources/credentials/onepassword/vaults.js.map +1 -0
  189. package/resources/credentials/onepassword/vaults.mjs +3 -0
  190. package/resources/credentials/onepassword/vaults.mjs.map +1 -0
  191. package/resources/credentials/onepassword.d.mts +2 -0
  192. package/resources/credentials/onepassword.d.mts.map +1 -0
  193. package/resources/credentials/onepassword.d.ts +2 -0
  194. package/resources/credentials/onepassword.d.ts.map +1 -0
  195. package/resources/credentials/onepassword.js +6 -0
  196. package/resources/credentials/onepassword.js.map +1 -0
  197. package/resources/credentials/onepassword.mjs +3 -0
  198. package/resources/credentials/onepassword.mjs.map +1 -0
  199. package/resources/credentials/packages/credentials/credentials.d.mts +32 -32
  200. package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
  201. package/resources/credentials/packages/credentials/credentials.d.ts +32 -32
  202. package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
  203. package/resources/credentials/packages/credentials/credentials.js +0 -8
  204. package/resources/credentials/packages/credentials/credentials.js.map +1 -1
  205. package/resources/credentials/packages/credentials/credentials.mjs +0 -8
  206. package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
  207. package/resources/credentials/packages/credentials/fields.d.mts +48 -0
  208. package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
  209. package/resources/credentials/packages/credentials/fields.d.ts +48 -0
  210. package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
  211. package/resources/credentials/packages/credentials/index.d.mts +1 -1
  212. package/resources/credentials/packages/credentials/index.d.mts.map +1 -1
  213. package/resources/credentials/packages/credentials/index.d.ts +1 -1
  214. package/resources/credentials/packages/credentials/index.d.ts.map +1 -1
  215. package/resources/credentials/packages/credentials/index.js.map +1 -1
  216. package/resources/credentials/packages/credentials/index.mjs.map +1 -1
  217. package/resources/credentials/packages/index.d.mts +2 -1
  218. package/resources/credentials/packages/index.d.mts.map +1 -1
  219. package/resources/credentials/packages/index.d.ts +2 -1
  220. package/resources/credentials/packages/index.d.ts.map +1 -1
  221. package/resources/credentials/packages/index.js +3 -1
  222. package/resources/credentials/packages/index.js.map +1 -1
  223. package/resources/credentials/packages/index.mjs +1 -0
  224. package/resources/credentials/packages/index.mjs.map +1 -1
  225. package/resources/credentials/packages/links.d.mts +65 -0
  226. package/resources/credentials/packages/links.d.mts.map +1 -0
  227. package/resources/credentials/packages/links.d.ts +65 -0
  228. package/resources/credentials/packages/links.d.ts.map +1 -0
  229. package/resources/credentials/packages/links.js +16 -0
  230. package/resources/credentials/packages/links.js.map +1 -0
  231. package/resources/credentials/packages/links.mjs +12 -0
  232. package/resources/credentials/packages/links.mjs.map +1 -0
  233. package/resources/credentials/packages/packages.d.mts +22 -2
  234. package/resources/credentials/packages/packages.d.mts.map +1 -1
  235. package/resources/credentials/packages/packages.d.ts +22 -2
  236. package/resources/credentials/packages/packages.d.ts.map +1 -1
  237. package/resources/credentials/packages/packages.js +4 -0
  238. package/resources/credentials/packages/packages.js.map +1 -1
  239. package/resources/credentials/packages/packages.mjs +4 -0
  240. package/resources/credentials/packages/packages.mjs.map +1 -1
  241. package/resources/devices/actions.d.mts +3 -4
  242. package/resources/devices/actions.d.mts.map +1 -1
  243. package/resources/devices/actions.d.ts +3 -4
  244. package/resources/devices/actions.d.ts.map +1 -1
  245. package/resources/devices/actions.js +3 -4
  246. package/resources/devices/actions.js.map +1 -1
  247. package/resources/devices/actions.mjs +3 -4
  248. package/resources/devices/actions.mjs.map +1 -1
  249. package/resources/devices/apps.d.mts +2 -2
  250. package/resources/devices/apps.d.ts +2 -2
  251. package/resources/devices/devices.d.mts +52 -28
  252. package/resources/devices/devices.d.mts.map +1 -1
  253. package/resources/devices/devices.d.ts +52 -28
  254. package/resources/devices/devices.d.ts.map +1 -1
  255. package/resources/devices/devices.js +31 -19
  256. package/resources/devices/devices.js.map +1 -1
  257. package/resources/devices/devices.mjs +31 -19
  258. package/resources/devices/devices.mjs.map +1 -1
  259. package/resources/devices/index.d.mts +2 -0
  260. package/resources/devices/index.d.mts.map +1 -1
  261. package/resources/devices/index.d.ts +2 -0
  262. package/resources/devices/index.d.ts.map +1 -1
  263. package/resources/devices/index.js +5 -1
  264. package/resources/devices/index.js.map +1 -1
  265. package/resources/devices/index.mjs +2 -0
  266. package/resources/devices/index.mjs.map +1 -1
  267. package/resources/devices/keyboard.d.mts +1 -1
  268. package/resources/devices/keyboard.d.ts +1 -1
  269. package/resources/devices/language.d.mts +6 -4
  270. package/resources/devices/language.d.mts.map +1 -1
  271. package/resources/devices/language.d.ts +6 -4
  272. package/resources/devices/language.d.ts.map +1 -1
  273. package/resources/devices/language.js +3 -2
  274. package/resources/devices/language.js.map +1 -1
  275. package/resources/devices/language.mjs +3 -2
  276. package/resources/devices/language.mjs.map +1 -1
  277. package/resources/devices/number-bindings.d.mts +40 -0
  278. package/resources/devices/number-bindings.d.mts.map +1 -0
  279. package/resources/devices/number-bindings.d.ts +40 -0
  280. package/resources/devices/number-bindings.d.ts.map +1 -0
  281. package/resources/devices/number-bindings.js +15 -0
  282. package/resources/devices/number-bindings.js.map +1 -0
  283. package/resources/devices/number-bindings.mjs +11 -0
  284. package/resources/devices/number-bindings.mjs.map +1 -0
  285. package/resources/devices/number.d.mts +141 -0
  286. package/resources/devices/number.d.mts.map +1 -0
  287. package/resources/devices/number.d.ts +141 -0
  288. package/resources/devices/number.d.ts.map +1 -0
  289. package/resources/devices/number.js +68 -0
  290. package/resources/devices/number.js.map +1 -0
  291. package/resources/devices/number.mjs +64 -0
  292. package/resources/devices/number.mjs.map +1 -0
  293. package/resources/devices/state.d.mts +1 -0
  294. package/resources/devices/state.d.mts.map +1 -1
  295. package/resources/devices/state.d.ts +1 -0
  296. package/resources/devices/state.d.ts.map +1 -1
  297. package/resources/files.d.mts +13 -7
  298. package/resources/files.d.mts.map +1 -1
  299. package/resources/files.d.ts +13 -7
  300. package/resources/files.d.ts.map +1 -1
  301. package/resources/files.js +9 -7
  302. package/resources/files.js.map +1 -1
  303. package/resources/files.mjs +9 -7
  304. package/resources/files.mjs.map +1 -1
  305. package/resources/index.d.mts +1 -0
  306. package/resources/index.d.mts.map +1 -1
  307. package/resources/index.d.ts +1 -0
  308. package/resources/index.d.ts.map +1 -1
  309. package/resources/index.js +3 -1
  310. package/resources/index.js.map +1 -1
  311. package/resources/index.mjs +1 -0
  312. package/resources/index.mjs.map +1 -1
  313. package/resources/mailboxes/messages.d.mts +13 -0
  314. package/resources/mailboxes/messages.d.mts.map +1 -1
  315. package/resources/mailboxes/messages.d.ts +13 -0
  316. package/resources/mailboxes/messages.d.ts.map +1 -1
  317. package/resources/mailboxes/messages.js +2 -2
  318. package/resources/mailboxes/messages.js.map +1 -1
  319. package/resources/mailboxes/messages.mjs +2 -2
  320. package/resources/mailboxes/messages.mjs.map +1 -1
  321. package/resources/messages/conversations.d.mts +6 -0
  322. package/resources/messages/conversations.d.mts.map +1 -1
  323. package/resources/messages/conversations.d.ts +6 -0
  324. package/resources/messages/conversations.d.ts.map +1 -1
  325. package/resources/messages/messages.d.mts +16 -0
  326. package/resources/messages/messages.d.mts.map +1 -1
  327. package/resources/messages/messages.d.ts +16 -0
  328. package/resources/messages/messages.d.ts.map +1 -1
  329. package/resources/messages/messages.js.map +1 -1
  330. package/resources/messages/messages.mjs.map +1 -1
  331. package/resources/numbers/messages.d.mts +17 -2
  332. package/resources/numbers/messages.d.mts.map +1 -1
  333. package/resources/numbers/messages.d.ts +17 -2
  334. package/resources/numbers/messages.d.ts.map +1 -1
  335. package/resources/numbers/messages.js +2 -1
  336. package/resources/numbers/messages.js.map +1 -1
  337. package/resources/numbers/messages.mjs +2 -1
  338. package/resources/numbers/messages.mjs.map +1 -1
  339. package/resources/numbers/numbers.d.mts +48 -0
  340. package/resources/numbers/numbers.d.mts.map +1 -1
  341. package/resources/numbers/numbers.d.ts +48 -0
  342. package/resources/numbers/numbers.d.ts.map +1 -1
  343. package/resources/numbers/numbers.js.map +1 -1
  344. package/resources/numbers/numbers.mjs.map +1 -1
  345. package/resources/tasks/tasks.d.mts +28 -7
  346. package/resources/tasks/tasks.d.mts.map +1 -1
  347. package/resources/tasks/tasks.d.ts +28 -7
  348. package/resources/tasks/tasks.d.ts.map +1 -1
  349. package/resources/tasks/tasks.js.map +1 -1
  350. package/resources/tasks/tasks.mjs.map +1 -1
  351. package/resources/workflows/action-catalog.d.mts +56 -8
  352. package/resources/workflows/action-catalog.d.mts.map +1 -1
  353. package/resources/workflows/action-catalog.d.ts +56 -8
  354. package/resources/workflows/action-catalog.d.ts.map +1 -1
  355. package/resources/workflows/action-catalog.js +7 -5
  356. package/resources/workflows/action-catalog.js.map +1 -1
  357. package/resources/workflows/action-catalog.mjs +7 -5
  358. package/resources/workflows/action-catalog.mjs.map +1 -1
  359. package/resources/workflows/actions/actions.d.mts +22 -10
  360. package/resources/workflows/actions/actions.d.mts.map +1 -1
  361. package/resources/workflows/actions/actions.d.ts +22 -10
  362. package/resources/workflows/actions/actions.d.ts.map +1 -1
  363. package/resources/workflows/actions/actions.js +7 -5
  364. package/resources/workflows/actions/actions.js.map +1 -1
  365. package/resources/workflows/actions/actions.mjs +7 -5
  366. package/resources/workflows/actions/actions.mjs.map +1 -1
  367. package/resources/workflows/actions/index.d.mts +1 -1
  368. package/resources/workflows/actions/index.d.mts.map +1 -1
  369. package/resources/workflows/actions/index.d.ts +1 -1
  370. package/resources/workflows/actions/index.d.ts.map +1 -1
  371. package/resources/workflows/actions/index.js.map +1 -1
  372. package/resources/workflows/actions/index.mjs.map +1 -1
  373. package/resources/workflows/actions/services.d.mts +1 -1
  374. package/resources/workflows/actions/services.d.mts.map +1 -1
  375. package/resources/workflows/actions/services.d.ts +1 -1
  376. package/resources/workflows/actions/services.d.ts.map +1 -1
  377. package/resources/workflows/events.d.mts +25 -3
  378. package/resources/workflows/events.d.mts.map +1 -1
  379. package/resources/workflows/events.d.ts +25 -3
  380. package/resources/workflows/events.d.ts.map +1 -1
  381. package/resources/workflows/executions/executions.d.mts +16 -0
  382. package/resources/workflows/executions/executions.d.mts.map +1 -1
  383. package/resources/workflows/executions/executions.d.ts +16 -0
  384. package/resources/workflows/executions/executions.d.ts.map +1 -1
  385. package/resources/workflows/executions/executions.js.map +1 -1
  386. package/resources/workflows/executions/executions.mjs.map +1 -1
  387. package/resources/workflows/flows/flows.d.mts +547 -102
  388. package/resources/workflows/flows/flows.d.mts.map +1 -1
  389. package/resources/workflows/flows/flows.d.ts +547 -102
  390. package/resources/workflows/flows/flows.d.ts.map +1 -1
  391. package/resources/workflows/flows/flows.js +15 -2
  392. package/resources/workflows/flows/flows.js.map +1 -1
  393. package/resources/workflows/flows/flows.mjs +15 -2
  394. package/resources/workflows/flows/flows.mjs.map +1 -1
  395. package/resources/workflows/flows/index.d.mts +2 -1
  396. package/resources/workflows/flows/index.d.mts.map +1 -1
  397. package/resources/workflows/flows/index.d.ts +2 -1
  398. package/resources/workflows/flows/index.d.ts.map +1 -1
  399. package/resources/workflows/flows/index.js +3 -1
  400. package/resources/workflows/flows/index.js.map +1 -1
  401. package/resources/workflows/flows/index.mjs +1 -0
  402. package/resources/workflows/flows/index.mjs.map +1 -1
  403. package/resources/workflows/flows/state.d.mts +65 -0
  404. package/resources/workflows/flows/state.d.mts.map +1 -0
  405. package/resources/workflows/flows/state.d.ts +65 -0
  406. package/resources/workflows/flows/state.d.ts.map +1 -0
  407. package/resources/workflows/flows/state.js +33 -0
  408. package/resources/workflows/flows/state.js.map +1 -0
  409. package/resources/workflows/flows/state.mjs +29 -0
  410. package/resources/workflows/flows/state.mjs.map +1 -0
  411. package/resources/workflows/index.d.mts +3 -3
  412. package/resources/workflows/index.d.mts.map +1 -1
  413. package/resources/workflows/index.d.ts +3 -3
  414. package/resources/workflows/index.d.ts.map +1 -1
  415. package/resources/workflows/index.js.map +1 -1
  416. package/resources/workflows/index.mjs.map +1 -1
  417. package/resources/workflows/triggers.d.mts +40 -5
  418. package/resources/workflows/triggers.d.mts.map +1 -1
  419. package/resources/workflows/triggers.d.ts +40 -5
  420. package/resources/workflows/triggers.d.ts.map +1 -1
  421. package/resources/workflows/triggers.js +12 -3
  422. package/resources/workflows/triggers.js.map +1 -1
  423. package/resources/workflows/triggers.mjs +12 -3
  424. package/resources/workflows/triggers.mjs.map +1 -1
  425. package/resources/workflows/workflows.d.mts +6 -6
  426. package/resources/workflows/workflows.d.mts.map +1 -1
  427. package/resources/workflows/workflows.d.ts +6 -6
  428. package/resources/workflows/workflows.d.ts.map +1 -1
  429. package/resources/workflows/workflows.js.map +1 -1
  430. package/resources/workflows/workflows.mjs.map +1 -1
  431. package/src/client.ts +17 -0
  432. package/src/resources/agents/agents.ts +475 -0
  433. package/src/resources/agents/conversations.ts +205 -0
  434. package/src/resources/agents/files.ts +105 -0
  435. package/src/resources/agents/index.ts +34 -0
  436. package/src/resources/agents/profile.ts +225 -0
  437. package/src/resources/agents/requests.ts +495 -0
  438. package/src/resources/agents/routines.ts +156 -0
  439. package/src/resources/agents.ts +3 -0
  440. package/src/resources/assistant/conversations.ts +148 -39
  441. package/src/resources/connect/connect.ts +2 -0
  442. package/src/resources/connect/index.ts +1 -0
  443. package/src/resources/connect/proxies.ts +27 -0
  444. package/src/resources/credentials/credentials.ts +51 -0
  445. package/src/resources/credentials/index.ts +7 -0
  446. package/src/resources/credentials/onepassword/index.ts +10 -0
  447. package/src/resources/credentials/onepassword/onepassword.ts +101 -0
  448. package/src/resources/credentials/onepassword/vaults/index.ts +4 -0
  449. package/src/resources/credentials/onepassword/vaults/items/fields.ts +40 -0
  450. package/src/resources/credentials/onepassword/vaults/items/index.ts +4 -0
  451. package/src/resources/credentials/onepassword/vaults/items/items.ts +55 -0
  452. package/src/resources/credentials/onepassword/vaults/items.ts +3 -0
  453. package/src/resources/credentials/onepassword/vaults/vaults.ts +15 -0
  454. package/src/resources/credentials/onepassword/vaults.ts +3 -0
  455. package/src/resources/credentials/onepassword.ts +3 -0
  456. package/src/resources/credentials/packages/credentials/credentials.ts +58 -55
  457. package/src/resources/credentials/packages/credentials/fields.ts +99 -0
  458. package/src/resources/credentials/packages/credentials/index.ts +0 -2
  459. package/src/resources/credentials/packages/index.ts +1 -2
  460. package/src/resources/credentials/packages/links.ts +122 -0
  461. package/src/resources/credentials/packages/packages.ts +43 -4
  462. package/src/resources/devices/actions.ts +3 -4
  463. package/src/resources/devices/apps.ts +2 -2
  464. package/src/resources/devices/devices.ts +86 -37
  465. package/src/resources/devices/index.ts +14 -0
  466. package/src/resources/devices/keyboard.ts +1 -1
  467. package/src/resources/devices/language.ts +6 -4
  468. package/src/resources/devices/number-bindings.ts +62 -0
  469. package/src/resources/devices/number.ts +261 -0
  470. package/src/resources/devices/state.ts +2 -0
  471. package/src/resources/files.ts +17 -7
  472. package/src/resources/index.ts +7 -0
  473. package/src/resources/mailboxes/messages.ts +17 -2
  474. package/src/resources/messages/conversations.ts +6 -0
  475. package/src/resources/messages/messages.ts +16 -0
  476. package/src/resources/numbers/messages.ts +17 -2
  477. package/src/resources/numbers/numbers.ts +64 -0
  478. package/src/resources/tasks/tasks.ts +30 -7
  479. package/src/resources/workflows/action-catalog.ts +69 -8
  480. package/src/resources/workflows/actions/actions.ts +29 -10
  481. package/src/resources/workflows/actions/index.ts +1 -0
  482. package/src/resources/workflows/actions/services.ts +1 -1
  483. package/src/resources/workflows/events.ts +32 -2
  484. package/src/resources/workflows/executions/executions.ts +26 -0
  485. package/src/resources/workflows/flows/flows.ts +707 -97
  486. package/src/resources/workflows/flows/index.ts +10 -0
  487. package/src/resources/workflows/flows/state.ts +103 -0
  488. package/src/resources/workflows/index.ts +4 -0
  489. package/src/resources/workflows/triggers.ts +34 -5
  490. package/src/resources/workflows/workflows.ts +8 -0
  491. package/src/version.ts +1 -1
  492. package/version.d.mts +1 -1
  493. package/version.d.ts +1 -1
  494. package/version.js +1 -1
  495. package/version.mjs +1 -1
@@ -0,0 +1,8 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Agents, } from "./agents.mjs";
3
+ export { Conversations, } from "./conversations.mjs";
4
+ export { Files } from "./files.mjs";
5
+ export { Profile } from "./profile.mjs";
6
+ export { Requests, } from "./requests.mjs";
7
+ export { Routines, } from "./routines.mjs";
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,MAAM,GAKP,qBAAiB;AAClB,OAAO,EACL,aAAa,GAKd,4BAAwB;AACzB,OAAO,EAAE,KAAK,EAA8C,oBAAgB;AAC5E,OAAO,EAAE,OAAO,EAAwD,sBAAkB;AAC1F,OAAO,EACL,QAAQ,GAOT,uBAAmB;AACpB,OAAO,EACL,QAAQ,GAKT,uBAAmB"}
@@ -0,0 +1,156 @@
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
+ * Owner-scoped partial update of `displayName`, `instructions`, `modelProfile` and
7
+ * the avatar. A null modelProfile uses the environment default; an unknown id
8
+ * returns unknown_model_profile with details.validProfiles. Returns the updated
9
+ * Agent; an Agent of another owner or an unknown id is a 404.
10
+ */
11
+ update(agentID: string, body?: ProfileUpdateParams | null | undefined, options?: RequestOptions): APIPromise<ProfileUpdateResponse>;
12
+ }
13
+ /**
14
+ * An Agent of the owner: its lifecycle state, profile and runtime.
15
+ */
16
+ export interface ProfileUpdateResponse {
17
+ id: string;
18
+ archivedAt: string | null;
19
+ createdAt: string;
20
+ /**
21
+ * Why a `disabled` Agent is disabled: `owner` chose it, `over-limit` the plan
22
+ * grants fewer Agent slots than the owner had enabled. Null while the Agent is not
23
+ * disabled.
24
+ */
25
+ disabledReason: 'owner' | 'over-limit' | null;
26
+ /**
27
+ * Why provisioning failed, null otherwise. An open set: new codes can appear.
28
+ * Codes written today: `provision_timeout`, `agent_limit_reached`,
29
+ * `provision_failed`; a code the harness reports for a failed start is passed
30
+ * through.
31
+ */
32
+ errorCode: string | null;
33
+ /**
34
+ * Whether this is the owner's primary Agent, the one a chat session uses when it
35
+ * names no `agentId`.
36
+ */
37
+ primary: boolean;
38
+ /**
39
+ * Persona of the Agent plus its individual instructions passage; `instructions` is
40
+ * null when none is set.
41
+ */
42
+ profile: ProfileUpdateResponse.Profile;
43
+ /**
44
+ * When provisioning of the Agent completed (ISO 8601); null while a newly created
45
+ * Agent is still pending and after its provisioning failed.
46
+ */
47
+ provisionedAt: string | null;
48
+ /**
49
+ * `pending`: created but not provisioned yet, it takes no turns. `active`: ready
50
+ * for turns. `failed`: provisioning gave up (see `errorCode`); the Agent is
51
+ * archived. `archived`: read-only. `disabled`: switched off by the owner or
52
+ * because the plan grants fewer Agent slots; it takes no turns and holds no slot,
53
+ * and the owner can enable it again while a slot is free.
54
+ */
55
+ status: 'active' | 'pending' | 'failed' | 'archived' | 'disabled';
56
+ /**
57
+ * Newest thread excerpt (90 characters), awaits-input and timestamp, from at most
58
+ * 20 newest rows. Null when the thread has no rows.
59
+ */
60
+ threadPreview: ProfileUpdateResponse.ThreadPreview | null;
61
+ /**
62
+ * Active chat on the active machine, pinned first, then session lastActiveAt DESC,
63
+ * id DESC. Null for pending/archived Agents or no thread.
64
+ */
65
+ threadSessionId: string | null;
66
+ /**
67
+ * Whether this active primary Agent is still due its one-time greeting: the
68
+ * welcome-back for an adopted primary, or the onboarding greeting for a primary
69
+ * whose chat never had a message.
70
+ */
71
+ welcomePending: boolean;
72
+ /**
73
+ * Latest activity of the Agent (newest chat session activity or live turn
74
+ * heartbeat), ISO 8601; null when it has never been active.
75
+ */
76
+ lastActiveAt?: string | null;
77
+ /**
78
+ * Whether the Agent is running right now, derived from stored state only.
79
+ * `waking`: an active start, its machine is provisioning or a restart/rehydrate is
80
+ * pending and changed within the last 10 minutes (a timed-out or stalled start
81
+ * reads `sleeping`). `awake`: the machine is running and this Agent has been
82
+ * started in the current run. `sleeping`: everything else (stopped or parked
83
+ * machine, an Agent the running harness has not started yet, or an Agent that is
84
+ * not active). `awake` can lag a machine stop until the reconciler converges.
85
+ */
86
+ runtime?: 'awake' | 'sleeping' | 'waking' | null;
87
+ }
88
+ export declare namespace ProfileUpdateResponse {
89
+ /**
90
+ * Persona of the Agent plus its individual instructions passage; `instructions` is
91
+ * null when none is set.
92
+ */
93
+ interface Profile {
94
+ /**
95
+ * Configuration of a `blob` avatar: its seed and optional user-chosen palette
96
+ * color. A color-only config retains the default seed fallback.
97
+ */
98
+ avatarConfig: Profile.AvatarConfig | null;
99
+ avatarKind: 'blob' | null;
100
+ displayName: string | null;
101
+ instructions: string | null;
102
+ modelProfile: string | null;
103
+ }
104
+ namespace Profile {
105
+ /**
106
+ * Configuration of a `blob` avatar: its seed and optional user-chosen palette
107
+ * color. A color-only config retains the default seed fallback.
108
+ */
109
+ interface AvatarConfig {
110
+ color?: 'slate' | 'red' | 'orange' | 'amber' | 'lime' | 'green' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'violet' | 'pink';
111
+ seed?: string | number;
112
+ }
113
+ }
114
+ /**
115
+ * Newest thread excerpt (90 characters), awaits-input and timestamp, from at most
116
+ * 20 newest rows. Null when the thread has no rows.
117
+ */
118
+ interface ThreadPreview {
119
+ awaitsInput: boolean;
120
+ excerpt: string | null;
121
+ timestamp: string | null;
122
+ }
123
+ }
124
+ export interface ProfileUpdateParams {
125
+ avatarConfig?: ProfileUpdateParams.AvatarConfig | null;
126
+ avatarKind?: 'blob' | null;
127
+ /**
128
+ * Set the avatar palette color without changing its seed; null removes only the
129
+ * color. Omitted color stays unchanged, including during a seed update.
130
+ */
131
+ color?: 'slate' | 'red' | 'orange' | 'amber' | 'lime' | 'green' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'violet' | 'pink' | null;
132
+ /**
133
+ * Single-line name shown for the Agent; surrounding whitespace is trimmed and it
134
+ * needs at least one letter or number.
135
+ */
136
+ displayName?: string | null;
137
+ /**
138
+ * The Agent's individual instructions passage; an empty or whitespace-only text
139
+ * clears it. Line breaks count three characters toward the rendered size limit.
140
+ */
141
+ instructions?: string | null;
142
+ /**
143
+ * Model profile id from GET /agents/model-profiles; null uses the environment
144
+ * default.
145
+ */
146
+ modelProfile?: string | null;
147
+ }
148
+ export declare namespace ProfileUpdateParams {
149
+ interface AvatarConfig {
150
+ seed: string | number;
151
+ }
152
+ }
153
+ export declare namespace Profile {
154
+ export { type ProfileUpdateResponse as ProfileUpdateResponse, type ProfileUpdateParams as ProfileUpdateParams, };
155
+ }
156
+ //# sourceMappingURL=profile.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.d.mts","sourceRoot":"","sources":["../../src/resources/agents/profile.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;OAKG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;CAGrC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IAEX,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,cAAc,EAAE,OAAO,GAAG,YAAY,GAAG,IAAI,CAAC;IAE9C;;;;;OAKG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,OAAO,EAAE,qBAAqB,CAAC,OAAO,CAAC;IAEvC;;;OAGG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;;;;;OAMG;IACH,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;IAElE;;;OAGG;IACH,aAAa,EAAE,qBAAqB,CAAC,aAAa,GAAG,IAAI,CAAC;IAE1D;;;OAGG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;;;OAIG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,IAAI,CAAC;CAClD;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;;OAGG;IACH,UAAiB,OAAO;QACtB;;;WAGG;QACH,YAAY,EAAE,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;QAE1C,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;IAED,UAAiB,OAAO,CAAC;QACvB;;;WAGG;QACH,UAAiB,YAAY;YAC3B,KAAK,CAAC,EACF,OAAO,GACP,KAAK,GACL,QAAQ,GACR,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,MAAM,CAAC;YAEX,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;SACxB;KACF;IAED;;;OAGG;IACH,UAAiB,aAAa;QAC5B,WAAW,EAAE,OAAO,CAAC;QAErB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAEvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,CAAC,EAAE,mBAAmB,CAAC,YAAY,GAAG,IAAI,CAAC;IAEvD,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,KAAK,CAAC,EACF,OAAO,GACP,KAAK,GACL,QAAQ,GACR,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,IAAI,CAAC;IAET;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,YAAY;QAC3B,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,156 @@
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
+ * Owner-scoped partial update of `displayName`, `instructions`, `modelProfile` and
7
+ * the avatar. A null modelProfile uses the environment default; an unknown id
8
+ * returns unknown_model_profile with details.validProfiles. Returns the updated
9
+ * Agent; an Agent of another owner or an unknown id is a 404.
10
+ */
11
+ update(agentID: string, body?: ProfileUpdateParams | null | undefined, options?: RequestOptions): APIPromise<ProfileUpdateResponse>;
12
+ }
13
+ /**
14
+ * An Agent of the owner: its lifecycle state, profile and runtime.
15
+ */
16
+ export interface ProfileUpdateResponse {
17
+ id: string;
18
+ archivedAt: string | null;
19
+ createdAt: string;
20
+ /**
21
+ * Why a `disabled` Agent is disabled: `owner` chose it, `over-limit` the plan
22
+ * grants fewer Agent slots than the owner had enabled. Null while the Agent is not
23
+ * disabled.
24
+ */
25
+ disabledReason: 'owner' | 'over-limit' | null;
26
+ /**
27
+ * Why provisioning failed, null otherwise. An open set: new codes can appear.
28
+ * Codes written today: `provision_timeout`, `agent_limit_reached`,
29
+ * `provision_failed`; a code the harness reports for a failed start is passed
30
+ * through.
31
+ */
32
+ errorCode: string | null;
33
+ /**
34
+ * Whether this is the owner's primary Agent, the one a chat session uses when it
35
+ * names no `agentId`.
36
+ */
37
+ primary: boolean;
38
+ /**
39
+ * Persona of the Agent plus its individual instructions passage; `instructions` is
40
+ * null when none is set.
41
+ */
42
+ profile: ProfileUpdateResponse.Profile;
43
+ /**
44
+ * When provisioning of the Agent completed (ISO 8601); null while a newly created
45
+ * Agent is still pending and after its provisioning failed.
46
+ */
47
+ provisionedAt: string | null;
48
+ /**
49
+ * `pending`: created but not provisioned yet, it takes no turns. `active`: ready
50
+ * for turns. `failed`: provisioning gave up (see `errorCode`); the Agent is
51
+ * archived. `archived`: read-only. `disabled`: switched off by the owner or
52
+ * because the plan grants fewer Agent slots; it takes no turns and holds no slot,
53
+ * and the owner can enable it again while a slot is free.
54
+ */
55
+ status: 'active' | 'pending' | 'failed' | 'archived' | 'disabled';
56
+ /**
57
+ * Newest thread excerpt (90 characters), awaits-input and timestamp, from at most
58
+ * 20 newest rows. Null when the thread has no rows.
59
+ */
60
+ threadPreview: ProfileUpdateResponse.ThreadPreview | null;
61
+ /**
62
+ * Active chat on the active machine, pinned first, then session lastActiveAt DESC,
63
+ * id DESC. Null for pending/archived Agents or no thread.
64
+ */
65
+ threadSessionId: string | null;
66
+ /**
67
+ * Whether this active primary Agent is still due its one-time greeting: the
68
+ * welcome-back for an adopted primary, or the onboarding greeting for a primary
69
+ * whose chat never had a message.
70
+ */
71
+ welcomePending: boolean;
72
+ /**
73
+ * Latest activity of the Agent (newest chat session activity or live turn
74
+ * heartbeat), ISO 8601; null when it has never been active.
75
+ */
76
+ lastActiveAt?: string | null;
77
+ /**
78
+ * Whether the Agent is running right now, derived from stored state only.
79
+ * `waking`: an active start, its machine is provisioning or a restart/rehydrate is
80
+ * pending and changed within the last 10 minutes (a timed-out or stalled start
81
+ * reads `sleeping`). `awake`: the machine is running and this Agent has been
82
+ * started in the current run. `sleeping`: everything else (stopped or parked
83
+ * machine, an Agent the running harness has not started yet, or an Agent that is
84
+ * not active). `awake` can lag a machine stop until the reconciler converges.
85
+ */
86
+ runtime?: 'awake' | 'sleeping' | 'waking' | null;
87
+ }
88
+ export declare namespace ProfileUpdateResponse {
89
+ /**
90
+ * Persona of the Agent plus its individual instructions passage; `instructions` is
91
+ * null when none is set.
92
+ */
93
+ interface Profile {
94
+ /**
95
+ * Configuration of a `blob` avatar: its seed and optional user-chosen palette
96
+ * color. A color-only config retains the default seed fallback.
97
+ */
98
+ avatarConfig: Profile.AvatarConfig | null;
99
+ avatarKind: 'blob' | null;
100
+ displayName: string | null;
101
+ instructions: string | null;
102
+ modelProfile: string | null;
103
+ }
104
+ namespace Profile {
105
+ /**
106
+ * Configuration of a `blob` avatar: its seed and optional user-chosen palette
107
+ * color. A color-only config retains the default seed fallback.
108
+ */
109
+ interface AvatarConfig {
110
+ color?: 'slate' | 'red' | 'orange' | 'amber' | 'lime' | 'green' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'violet' | 'pink';
111
+ seed?: string | number;
112
+ }
113
+ }
114
+ /**
115
+ * Newest thread excerpt (90 characters), awaits-input and timestamp, from at most
116
+ * 20 newest rows. Null when the thread has no rows.
117
+ */
118
+ interface ThreadPreview {
119
+ awaitsInput: boolean;
120
+ excerpt: string | null;
121
+ timestamp: string | null;
122
+ }
123
+ }
124
+ export interface ProfileUpdateParams {
125
+ avatarConfig?: ProfileUpdateParams.AvatarConfig | null;
126
+ avatarKind?: 'blob' | null;
127
+ /**
128
+ * Set the avatar palette color without changing its seed; null removes only the
129
+ * color. Omitted color stays unchanged, including during a seed update.
130
+ */
131
+ color?: 'slate' | 'red' | 'orange' | 'amber' | 'lime' | 'green' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'violet' | 'pink' | null;
132
+ /**
133
+ * Single-line name shown for the Agent; surrounding whitespace is trimmed and it
134
+ * needs at least one letter or number.
135
+ */
136
+ displayName?: string | null;
137
+ /**
138
+ * The Agent's individual instructions passage; an empty or whitespace-only text
139
+ * clears it. Line breaks count three characters toward the rendered size limit.
140
+ */
141
+ instructions?: string | null;
142
+ /**
143
+ * Model profile id from GET /agents/model-profiles; null uses the environment
144
+ * default.
145
+ */
146
+ modelProfile?: string | null;
147
+ }
148
+ export declare namespace ProfileUpdateParams {
149
+ interface AvatarConfig {
150
+ seed: string | number;
151
+ }
152
+ }
153
+ export declare namespace Profile {
154
+ export { type ProfileUpdateResponse as ProfileUpdateResponse, type ProfileUpdateParams as ProfileUpdateParams, };
155
+ }
156
+ //# sourceMappingURL=profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/resources/agents/profile.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,19 @@
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 path_1 = require("../../internal/utils/path.js");
7
+ class Profile extends resource_1.APIResource {
8
+ /**
9
+ * Owner-scoped partial update of `displayName`, `instructions`, `modelProfile` and
10
+ * the avatar. A null modelProfile uses the environment default; an unknown id
11
+ * returns unknown_model_profile with details.validProfiles. Returns the updated
12
+ * Agent; an Agent of another owner or an unknown id is a 404.
13
+ */
14
+ update(agentID, body = {}, options) {
15
+ return this._client.patch((0, path_1.path) `/agents/${agentID}/profile`, { body, ...options });
16
+ }
17
+ }
18
+ exports.Profile = Profile;
19
+ //# sourceMappingURL=profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/resources/agents/profile.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;OAKG;IACH,MAAM,CACJ,OAAe,EACf,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AAdD,0BAcC"}
@@ -0,0 +1,15 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ export class Profile extends APIResource {
5
+ /**
6
+ * Owner-scoped partial update of `displayName`, `instructions`, `modelProfile` and
7
+ * the avatar. A null modelProfile uses the environment default; an unknown id
8
+ * returns unknown_model_profile with details.validProfiles. Returns the updated
9
+ * Agent; an Agent of another owner or an unknown id is a 404.
10
+ */
11
+ update(agentID, body = {}, options) {
12
+ return this._client.patch(path `/agents/${agentID}/profile`, { body, ...options });
13
+ }
14
+ }
15
+ //# sourceMappingURL=profile.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.mjs","sourceRoot":"","sources":["../../src/resources/agents/profile.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;OAKG;IACH,MAAM,CACJ,OAAe,EACf,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,WAAW,OAAO,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
@@ -0,0 +1,295 @@
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 Requests extends APIResource {
5
+ /**
6
+ * Owner-scoped. Returns the request with its payloads and event timeline; an
7
+ * unknown id or another owner's request is a 404.
8
+ */
9
+ retrieve(requestID: string, options?: RequestOptions): APIPromise<RequestRetrieveResponse>;
10
+ /**
11
+ * Owner-scoped. Returns newest requests first, ordered by creation time and id.
12
+ * Use nextCursor as before to read older pages. Invalid cursors return 400
13
+ * invalid_cursor. Use the single read for payloads and events.
14
+ */
15
+ list(query?: RequestListParams | null | undefined, options?: RequestOptions): APIPromise<RequestListResponse>;
16
+ /**
17
+ * Owner-scoped. Returns newest requests where the Agent is source or target. Use
18
+ * nextCursor as before to read older pages. Invalid cursors return 400
19
+ * invalid_cursor.
20
+ */
21
+ listForAgent(agentID: string, query?: RequestListForAgentParams | null | undefined, options?: RequestOptions): APIPromise<RequestListForAgentResponse>;
22
+ /**
23
+ * Owner-scoped. Returns the Agent-to-Agent request whose target session is
24
+ * {sessionId}, including its payloads and event timeline. Unknown sessions,
25
+ * source-only sessions, sessions without a request, and another owner's sessions
26
+ * return 404 agent_request_not_found.
27
+ */
28
+ retrieveBySession(sessionID: string, options?: RequestOptions): APIPromise<RequestRetrieveBySessionResponse>;
29
+ }
30
+ export interface RequestRetrieveResponse {
31
+ id: string;
32
+ createdAt: string;
33
+ deadlineAt: string;
34
+ depth: number;
35
+ dispatchAttempts: number;
36
+ dispatchedAt: string | null;
37
+ error: RequestRetrieveResponse.Error | null;
38
+ events: Array<RequestRetrieveResponse.Event>;
39
+ finishedAt: string | null;
40
+ request: RequestRetrieveResponse.Request;
41
+ result: RequestRetrieveResponse.Text | RequestRetrieveResponse.Question | null;
42
+ room: RequestRetrieveResponse.Room;
43
+ sourceAgentId: string;
44
+ sourceSessionId: string;
45
+ status: 'queued' | 'running' | 'answered' | 'failed' | 'timed_out' | 'cancelled' | 'late_answer' | 'needs_user_input';
46
+ targetAgentId: string;
47
+ targetSessionId: string;
48
+ updatedAt: string;
49
+ visited: Array<string>;
50
+ }
51
+ export declare namespace RequestRetrieveResponse {
52
+ interface Error {
53
+ /**
54
+ * Why the request did not produce an answer. An open set: new codes can appear.
55
+ * Codes written today: `agent_archived`, `agent_disabled`, `dispatch_failed`,
56
+ * `timed_out`, `cancelled`, `result_too_large`, `no_answer`, `target_turn_failed`,
57
+ * `target_error`, `target_aborted`, `target_crash_recovered`,
58
+ * `target_unknown_outcome`.
59
+ */
60
+ code: string;
61
+ message: string;
62
+ preview?: string;
63
+ }
64
+ interface Event {
65
+ createdAt: string;
66
+ kind: string;
67
+ payload: {
68
+ [key: string]: unknown;
69
+ } | null;
70
+ seq: number;
71
+ }
72
+ interface Request {
73
+ message: string;
74
+ sourceDisplayName: string | null;
75
+ timeoutSeconds: number;
76
+ fileIds?: Array<string>;
77
+ }
78
+ interface Text {
79
+ text: string;
80
+ }
81
+ interface Question {
82
+ question: string;
83
+ }
84
+ interface Room {
85
+ id: string;
86
+ kind: 'direct' | 'group';
87
+ members: Array<Room.Member>;
88
+ }
89
+ namespace Room {
90
+ interface Member {
91
+ id: string;
92
+ agentId: string | null;
93
+ joinedAt: string;
94
+ leftAt: string | null;
95
+ participantType: 'agent' | 'user';
96
+ role: 'owner' | 'member';
97
+ userId: string | null;
98
+ }
99
+ }
100
+ }
101
+ export interface RequestListResponse {
102
+ /**
103
+ * Cursor for the next page; null when there are no older requests.
104
+ */
105
+ nextCursor: string | null;
106
+ requests: Array<RequestListResponse.Request>;
107
+ }
108
+ export declare namespace RequestListResponse {
109
+ interface Request {
110
+ id: string;
111
+ createdAt: string;
112
+ deadlineAt: string;
113
+ depth: number;
114
+ dispatchedAt: string | null;
115
+ /**
116
+ * `error.code` of the full request, null when it has none. An open set: new codes
117
+ * can appear. Codes written today: `agent_archived`, `agent_disabled`,
118
+ * `dispatch_failed`, `timed_out`, `cancelled`, `result_too_large`, `no_answer`,
119
+ * `target_turn_failed`, `target_error`, `target_aborted`,
120
+ * `target_crash_recovered`, `target_unknown_outcome`.
121
+ */
122
+ errorCode: string | null;
123
+ finishedAt: string | null;
124
+ room: Request.Room;
125
+ sourceAgentId: string;
126
+ sourceSessionId: string;
127
+ status: 'queued' | 'running' | 'answered' | 'failed' | 'timed_out' | 'cancelled' | 'late_answer' | 'needs_user_input';
128
+ targetAgentId: string;
129
+ targetSessionId: string;
130
+ updatedAt: string;
131
+ }
132
+ namespace Request {
133
+ interface Room {
134
+ id: string;
135
+ kind: 'direct' | 'group';
136
+ members: Array<Room.Member>;
137
+ }
138
+ namespace Room {
139
+ interface Member {
140
+ id: string;
141
+ agentId: string | null;
142
+ joinedAt: string;
143
+ leftAt: string | null;
144
+ participantType: 'agent' | 'user';
145
+ role: 'owner' | 'member';
146
+ userId: string | null;
147
+ }
148
+ }
149
+ }
150
+ }
151
+ export interface RequestListForAgentResponse {
152
+ /**
153
+ * Cursor for the next page; null when there are no older requests.
154
+ */
155
+ nextCursor: string | null;
156
+ requests: Array<RequestListForAgentResponse.Request>;
157
+ }
158
+ export declare namespace RequestListForAgentResponse {
159
+ interface Request {
160
+ id: string;
161
+ createdAt: string;
162
+ deadlineAt: string;
163
+ depth: number;
164
+ dispatchedAt: string | null;
165
+ /**
166
+ * `error.code` of the full request, null when it has none. An open set: new codes
167
+ * can appear. Codes written today: `agent_archived`, `agent_disabled`,
168
+ * `dispatch_failed`, `timed_out`, `cancelled`, `result_too_large`, `no_answer`,
169
+ * `target_turn_failed`, `target_error`, `target_aborted`,
170
+ * `target_crash_recovered`, `target_unknown_outcome`.
171
+ */
172
+ errorCode: string | null;
173
+ finishedAt: string | null;
174
+ room: Request.Room;
175
+ sourceAgentId: string;
176
+ sourceSessionId: string;
177
+ status: 'queued' | 'running' | 'answered' | 'failed' | 'timed_out' | 'cancelled' | 'late_answer' | 'needs_user_input';
178
+ targetAgentId: string;
179
+ targetSessionId: string;
180
+ updatedAt: string;
181
+ }
182
+ namespace Request {
183
+ interface Room {
184
+ id: string;
185
+ kind: 'direct' | 'group';
186
+ members: Array<Room.Member>;
187
+ }
188
+ namespace Room {
189
+ interface Member {
190
+ id: string;
191
+ agentId: string | null;
192
+ joinedAt: string;
193
+ leftAt: string | null;
194
+ participantType: 'agent' | 'user';
195
+ role: 'owner' | 'member';
196
+ userId: string | null;
197
+ }
198
+ }
199
+ }
200
+ }
201
+ export interface RequestRetrieveBySessionResponse {
202
+ id: string;
203
+ createdAt: string;
204
+ deadlineAt: string;
205
+ depth: number;
206
+ dispatchAttempts: number;
207
+ dispatchedAt: string | null;
208
+ error: RequestRetrieveBySessionResponse.Error | null;
209
+ events: Array<RequestRetrieveBySessionResponse.Event>;
210
+ finishedAt: string | null;
211
+ request: RequestRetrieveBySessionResponse.Request;
212
+ result: RequestRetrieveBySessionResponse.Text | RequestRetrieveBySessionResponse.Question | null;
213
+ room: RequestRetrieveBySessionResponse.Room;
214
+ sourceAgentId: string;
215
+ sourceSessionId: string;
216
+ status: 'queued' | 'running' | 'answered' | 'failed' | 'timed_out' | 'cancelled' | 'late_answer' | 'needs_user_input';
217
+ targetAgentId: string;
218
+ targetSessionId: string;
219
+ updatedAt: string;
220
+ visited: Array<string>;
221
+ }
222
+ export declare namespace RequestRetrieveBySessionResponse {
223
+ interface Error {
224
+ /**
225
+ * Why the request did not produce an answer. An open set: new codes can appear.
226
+ * Codes written today: `agent_archived`, `agent_disabled`, `dispatch_failed`,
227
+ * `timed_out`, `cancelled`, `result_too_large`, `no_answer`, `target_turn_failed`,
228
+ * `target_error`, `target_aborted`, `target_crash_recovered`,
229
+ * `target_unknown_outcome`.
230
+ */
231
+ code: string;
232
+ message: string;
233
+ preview?: string;
234
+ }
235
+ interface Event {
236
+ createdAt: string;
237
+ kind: string;
238
+ payload: {
239
+ [key: string]: unknown;
240
+ } | null;
241
+ seq: number;
242
+ }
243
+ interface Request {
244
+ message: string;
245
+ sourceDisplayName: string | null;
246
+ timeoutSeconds: number;
247
+ fileIds?: Array<string>;
248
+ }
249
+ interface Text {
250
+ text: string;
251
+ }
252
+ interface Question {
253
+ question: string;
254
+ }
255
+ interface Room {
256
+ id: string;
257
+ kind: 'direct' | 'group';
258
+ members: Array<Room.Member>;
259
+ }
260
+ namespace Room {
261
+ interface Member {
262
+ id: string;
263
+ agentId: string | null;
264
+ joinedAt: string;
265
+ leftAt: string | null;
266
+ participantType: 'agent' | 'user';
267
+ role: 'owner' | 'member';
268
+ userId: string | null;
269
+ }
270
+ }
271
+ }
272
+ export interface RequestListParams {
273
+ /**
274
+ * Opaque nextCursor from the previous page.
275
+ */
276
+ before?: string;
277
+ /**
278
+ * Maximum number of requests to return (1–100; default 50).
279
+ */
280
+ limit?: number;
281
+ }
282
+ export interface RequestListForAgentParams {
283
+ /**
284
+ * Opaque nextCursor from the previous page.
285
+ */
286
+ before?: string;
287
+ /**
288
+ * Maximum number of requests to return (1–100; default 50).
289
+ */
290
+ limit?: number;
291
+ }
292
+ export declare namespace Requests {
293
+ export { type RequestRetrieveResponse as RequestRetrieveResponse, type RequestListResponse as RequestListResponse, type RequestListForAgentResponse as RequestListForAgentResponse, type RequestRetrieveBySessionResponse as RequestRetrieveBySessionResponse, type RequestListParams as RequestListParams, type RequestListForAgentParams as RequestListForAgentParams, };
294
+ }
295
+ //# sourceMappingURL=requests.d.mts.map