@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
@@ -21,11 +21,8 @@ export class Conversations extends APIResource {
21
21
 
22
22
  /**
23
23
  * Rename, change status, and/or pin. Title updates apply best-effort. Archiving
24
- * always clears the pinned flag. `title` is rejected with 409
25
- * `code: "session_title_managed_by_workflow"` when this chat is bound to a
26
- * workflow — a bound chat's title is managed by the workflow. Other fields
27
- * (description, status, pinned) remain updateable; archiving a bound chat stays
28
- * allowed.
24
+ * always clears the pinned flag. Archiving a session with an in-flight turn is
25
+ * rejected with 409.
29
26
  */
30
27
  update(
31
28
  id: string,
@@ -61,10 +58,11 @@ export class Conversations extends APIResource {
61
58
  /**
62
59
  * Deliver a HITL approval/rejection for an in-flight turn. Interactive HITL
63
60
  * clients must start the turn with `Accept: text/event-stream`, wait for a
64
- * `tool-hitl-approval` event, and send its `permissionId` here at
65
- * `/assistant/chat/permission`. Do not submit approval as free-form user text or
66
- * as `confirmed: true`. For `devices.reset`, only `once` and `reject` are allowed;
67
- * the generic `always` response is rejected with HTTP 400.
61
+ * `tool-input-available` event with `toolName: "hitl-approval"`, and send its
62
+ * `toolCallId` as `permissionId` here at `/assistant/chat/permission`. Do not
63
+ * submit approval as free-form user text or as `confirmed: true`. For
64
+ * `devices.reset`, only `once` and `reject` are allowed; the generic `always`
65
+ * response is rejected with HTTP 400.
68
66
  */
69
67
  answerPermission(
70
68
  body: ConversationAnswerPermissionParams,
@@ -85,14 +83,15 @@ export class Conversations extends APIResource {
85
83
  }
86
84
 
87
85
  /**
88
- * Return the user's chat history for the given session. History remains readable
89
- * after the session is no longer active.
86
+ * Return the user's chat history for the given session. Inactive chat sessions
87
+ * return 404; workflow transcripts remain readable after completion.
90
88
  */
91
89
  history(
92
- query: ConversationHistoryParams,
90
+ id: string,
91
+ query: ConversationHistoryParams | null | undefined = {},
93
92
  options?: RequestOptions,
94
93
  ): APIPromise<ConversationHistoryResponse> {
95
- return this._client.get('/assistant/chat/messages', { query, ...options });
94
+ return this._client.get(path`/assistant/chat/sessions/${id}/messages`, { query, ...options });
96
95
  }
97
96
 
98
97
  /**
@@ -109,12 +108,15 @@ export class Conversations extends APIResource {
109
108
  /**
110
109
  * Send a single user message. The response format follows the Accept header:
111
110
  * `text/event-stream` for SSE, `application/json` for a buffered assistant reply.
112
- * Interactive HITL requires `Accept: text/event-stream`: the stream can emit a
113
- * `tool-hitl-approval` event, whose decision must be delivered to
114
- * `/assistant/chat/permission`. Buffered JSON responses do not provide an
115
- * interactive HITL continuation contract. `sessionId` targets a concrete active
116
- * chat. The resolved chat session ID is returned as `chatSessionId` in the JSON
117
- * body and as the `X-Chat-Session-Id` response header on the SSE response.
111
+ * Interactive HITL requires `Accept: text/event-stream`. An approval request
112
+ * arrives as a `tool-input-available` event with `toolName: "hitl-approval"`. Its
113
+ * `toolCallId` (equal to `input.permissionID`) is the permission id; deliver the
114
+ * decision to `/assistant/chat/permission`. In the message history, the same
115
+ * request appears as a `tool-hitl-approval` part. Buffered JSON responses do not
116
+ * provide an interactive HITL continuation contract. `sessionId` targets a
117
+ * concrete active chat. The resolved chat session ID is returned as
118
+ * `chatSessionId` in the JSON body and as the `X-Chat-Session-Id` response header
119
+ * on the SSE response.
118
120
  */
119
121
  send(body: ConversationSendParams, options?: RequestOptions): APIPromise<ConversationSendResponse> {
120
122
  return this._client.post('/assistant/chat/message', { body, ...options });
@@ -150,6 +152,8 @@ export namespace ConversationCreateResponse {
150
152
 
151
153
  agent: string | null;
152
154
 
155
+ agentId: string | null;
156
+
153
157
  basePromptTokens: number | null;
154
158
 
155
159
  contextExhaustedAt: string | null;
@@ -194,6 +198,8 @@ export namespace ConversationUpdateResponse {
194
198
 
195
199
  agent: string | null;
196
200
 
201
+ agentId: string | null;
202
+
197
203
  basePromptTokens: number | null;
198
204
 
199
205
  contextExhaustedAt: string | null;
@@ -238,6 +244,8 @@ export namespace ConversationListResponse {
238
244
 
239
245
  agent: string | null;
240
246
 
247
+ agentId: string | null;
248
+
241
249
  basePromptTokens: number | null;
242
250
 
243
251
  contextExhaustedAt: string | null;
@@ -284,6 +292,8 @@ export namespace ConversationListResponse {
284
292
 
285
293
  agent: string | null;
286
294
 
295
+ agentId: string | null;
296
+
287
297
  basePromptTokens: number | null;
288
298
 
289
299
  contextExhaustedAt: string | null;
@@ -339,22 +349,88 @@ export interface ConversationAnswerQuestionResponse {
339
349
  }
340
350
 
341
351
  export interface ConversationHistoryResponse {
342
- messages: Array<ConversationHistoryResponse.Message>;
352
+ /**
353
+ * Session Agent identity, present on every page; null only when the session has no
354
+ * Agent.
355
+ */
356
+ agent: ConversationHistoryResponse.Agent | null;
343
357
 
344
- turnActive: boolean;
358
+ data: Array<ConversationHistoryResponse.Data>;
345
359
 
346
- lastTurnOutcome?: string | null;
360
+ /**
361
+ * Oldest real row in the page; pass as before to load older turns.
362
+ */
363
+ firstId: string | null;
347
364
 
348
- truncated?: boolean;
365
+ /**
366
+ * Older whole turns exist.
367
+ */
368
+ hasMore: boolean;
369
+
370
+ /**
371
+ * Newest real row in the page, before continuation collapse or synthetic rows.
372
+ */
373
+ lastId: string | null;
349
374
 
350
- turnState?: ConversationHistoryResponse.TurnState | null;
375
+ /**
376
+ * Newest-page turn snapshot; null when before is supplied.
377
+ */
378
+ turn: ConversationHistoryResponse.Turn | null;
351
379
  }
352
380
 
353
381
  export namespace ConversationHistoryResponse {
354
- export interface Message {
382
+ /**
383
+ * Session Agent identity, present on every page; null only when the session has no
384
+ * Agent.
385
+ */
386
+ export interface Agent {
387
+ id: string;
388
+
389
+ profile: Agent.Profile;
390
+ }
391
+
392
+ export namespace Agent {
393
+ export interface Profile {
394
+ /**
395
+ * Configuration of a `blob` avatar: its seed and optional user-chosen palette
396
+ * color. A color-only config retains the default seed fallback.
397
+ */
398
+ avatarConfig: Profile.AvatarConfig | null;
399
+
400
+ avatarKind: 'blob' | null;
401
+
402
+ displayName: string | null;
403
+ }
404
+
405
+ export namespace Profile {
406
+ /**
407
+ * Configuration of a `blob` avatar: its seed and optional user-chosen palette
408
+ * color. A color-only config retains the default seed fallback.
409
+ */
410
+ export interface AvatarConfig {
411
+ color?:
412
+ | 'slate'
413
+ | 'red'
414
+ | 'orange'
415
+ | 'amber'
416
+ | 'lime'
417
+ | 'green'
418
+ | 'teal'
419
+ | 'cyan'
420
+ | 'blue'
421
+ | 'indigo'
422
+ | 'violet'
423
+ | 'pink';
424
+
425
+ seed?: string | number;
426
+ }
427
+ }
428
+ }
429
+
430
+ export interface Data {
355
431
  id: string;
356
432
 
357
- parts: Array<Message.Part>;
433
+ parts: Array<Data.Part>;
358
434
 
359
435
  role: 'user' | 'assistant' | 'system';
360
436
 
@@ -364,7 +440,7 @@ export namespace ConversationHistoryResponse {
364
440
 
365
441
  feedback?: boolean | null;
366
442
 
367
- metadata?: Message.Metadata;
443
+ metadata?: Data.Metadata;
368
444
 
369
445
  source?: 'cloud' | 'telegram' | 'api' | 'workflow' | 'notification';
370
446
 
@@ -378,7 +454,7 @@ export namespace ConversationHistoryResponse {
378
454
  userId?: string | null;
379
455
  }
380
456
 
381
- export namespace Message {
457
+ export namespace Data {
382
458
  export interface Part {
383
459
  type: string;
384
460
 
@@ -392,6 +468,11 @@ export namespace ConversationHistoryResponse {
392
468
 
393
469
  agentSessionId?: string;
394
470
 
471
+ /**
472
+ * Backend notice classification on synthetic turn notes; user_stop is reserved.
473
+ */
474
+ notice?: 'user_stop' | 'interrupted' | 'no_progress' | 'tool_error' | 'error' | 'empty_answer';
475
+
395
476
  /**
396
477
  * Steer user rows appear directly above the collapsed assistant group of their
397
478
  * turn, matching live cloud ordering.
@@ -420,24 +501,41 @@ export namespace ConversationHistoryResponse {
420
501
  }
421
502
  }
422
503
 
423
- export interface TurnState {
424
- id: string;
504
+ /**
505
+ * Newest-page turn snapshot; null when before is supplied.
506
+ */
507
+ export interface Turn {
508
+ /**
509
+ * Whether this session owns an in-flight turn.
510
+ */
511
+ turnActive: boolean;
425
512
 
426
- abortRequested: boolean;
513
+ turnState: Turn.TurnState | null;
514
+ }
427
515
 
428
- attachable: boolean;
516
+ export namespace Turn {
517
+ export interface TurnState {
518
+ id: string;
429
519
 
430
- claimHeld: boolean;
520
+ abortRequested: boolean;
431
521
 
432
- outcome: string | null;
522
+ attachable: boolean;
433
523
 
434
- phase: 'created' | 'running' | 'closed' | 'delivered' | 'failed';
524
+ claimHeld: boolean;
435
525
 
436
- reaping: boolean;
526
+ /**
527
+ * Outcome of the latest turn, or null while it is still open.
528
+ */
529
+ outcome: string | null;
437
530
 
438
- revision: number;
531
+ phase: 'created' | 'running' | 'closed' | 'delivered' | 'failed';
439
532
 
440
- startedAt: string;
533
+ reaping: boolean;
534
+
535
+ revision: number;
536
+
537
+ startedAt: string;
538
+ }
441
539
  }
442
540
  }
443
541
 
@@ -491,6 +589,8 @@ export interface ConversationAnswerPermissionParams {
491
589
  permissionId: string;
492
590
 
493
591
  response: 'once' | 'always' | 'reject';
592
+
593
+ sessionId?: string;
494
594
  }
495
595
 
496
596
  export interface ConversationAnswerQuestionParams {
@@ -503,6 +603,8 @@ export interface ConversationAnswerQuestionParams {
503
603
  >;
504
604
 
505
605
  questionId: string;
606
+
607
+ sessionId?: string;
506
608
  }
507
609
 
508
610
  export namespace ConversationAnswerQuestionParams {
@@ -522,13 +624,18 @@ export namespace ConversationAnswerQuestionParams {
522
624
  }
523
625
 
524
626
  export interface ConversationHistoryParams {
525
- sessionId: string;
627
+ /**
628
+ * Any real row in this session; its containing turn is excluded.
629
+ */
630
+ before?: string;
526
631
 
527
632
  limit?: number;
528
633
  }
529
634
 
530
635
  export interface ConversationRejectQuestionParams {
531
636
  questionId: string;
637
+
638
+ sessionId?: string;
532
639
  }
533
640
 
534
641
  export interface ConversationSendParams {
@@ -537,6 +644,8 @@ export interface ConversationSendParams {
537
644
  sessionId: string;
538
645
 
539
646
  agent?: string;
647
+
648
+ model?: string;
540
649
  }
541
650
 
542
651
  export interface ConversationStreamParams {
@@ -8,6 +8,7 @@ import {
8
8
  Proxies,
9
9
  ProxyBuyParams,
10
10
  ProxyBuyResponse,
11
+ ProxyCheckoutResponse,
11
12
  ProxyEnsureHealthyResponse,
12
13
  ProxyListConnectionsParams,
13
14
  ProxyListConnectionsResponse,
@@ -55,6 +56,7 @@ export declare namespace Connect {
55
56
  type ProxyUpdateResponse as ProxyUpdateResponse,
56
57
  type ProxyListResponse as ProxyListResponse,
57
58
  type ProxyBuyResponse as ProxyBuyResponse,
59
+ type ProxyCheckoutResponse as ProxyCheckoutResponse,
58
60
  type ProxyEnsureHealthyResponse as ProxyEnsureHealthyResponse,
59
61
  type ProxyListConnectionsResponse as ProxyListConnectionsResponse,
60
62
  type ProxyPingResponse as ProxyPingResponse,
@@ -8,6 +8,7 @@ export {
8
8
  type ProxyUpdateResponse,
9
9
  type ProxyListResponse,
10
10
  type ProxyBuyResponse,
11
+ type ProxyCheckoutResponse,
11
12
  type ProxyEnsureHealthyResponse,
12
13
  type ProxyListConnectionsResponse,
13
14
  type ProxyPingResponse,
@@ -53,6 +53,15 @@ export class Proxies extends APIResource {
53
53
  });
54
54
  }
55
55
 
56
+ /**
57
+ * Refreshes a pending dedicated proxy's checkout on explicit payment intent.
58
+ * Already-paid proxies (provisioning, active, or cancelling) return their current
59
+ * status without a payment URL. An expired checkout requires a new purchase.
60
+ */
61
+ checkout(id: string, options?: RequestOptions): APIPromise<ProxyCheckoutResponse> {
62
+ return this._client.post(path`/connect/proxies/${id}/checkout`, options);
63
+ }
64
+
56
65
  /**
57
66
  * Checks right now that the proxy's upstream accepts a connection through its
58
67
  * current session. If the upstream refuses the session and the proxy is a rotating
@@ -321,6 +330,23 @@ export interface ProxyBuyResponse {
321
330
  paymentUrl?: string | null;
322
331
  }
323
332
 
333
+ export interface ProxyCheckoutResponse {
334
+ /**
335
+ * Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
336
+ * identity is being resolved — clients should poll until a `paymentUrl` or a later
337
+ * status appears — then `provisioning` — or `pending_payment` until the customer
338
+ * completes checkout — and becomes `active` once its upstream is assigned.
339
+ * `cancelling` retains full access through the paid period; when the subscription
340
+ * expires the proxy is `ended`. `error` marks a failed provisioning attempt.
341
+ */
342
+ status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
343
+
344
+ /**
345
+ * Payable checkout URL; omitted after payment.
346
+ */
347
+ paymentUrl?: string | null;
348
+ }
349
+
324
350
  /**
325
351
  * The outcome of an ensure-healthy check.
326
352
  */
@@ -717,6 +743,7 @@ export declare namespace Proxies {
717
743
  type ProxyUpdateResponse as ProxyUpdateResponse,
718
744
  type ProxyListResponse as ProxyListResponse,
719
745
  type ProxyBuyResponse as ProxyBuyResponse,
746
+ type ProxyCheckoutResponse as ProxyCheckoutResponse,
720
747
  type ProxyEnsureHealthyResponse as ProxyEnsureHealthyResponse,
721
748
  type ProxyListConnectionsResponse as ProxyListConnectionsResponse,
722
749
  type ProxyPingResponse as ProxyPingResponse,
@@ -2,6 +2,14 @@
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as Shared from '../shared';
5
+ import * as OnepasswordAPI from './onepassword/onepassword';
6
+ import {
7
+ Onepassword,
8
+ OnepasswordConnectParams,
9
+ OnepasswordConnectResponse,
10
+ OnepasswordDisconnectResponse,
11
+ OnepasswordRetrieveResponse,
12
+ } from './onepassword/onepassword';
5
13
  import * as PackagesAPI from './packages/packages';
6
14
  import {
7
15
  PackageCreateParams,
@@ -15,6 +23,7 @@ import { RequestOptions } from '../../internal/request-options';
15
23
 
16
24
  export class Credentials extends APIResource {
17
25
  packages: PackagesAPI.Packages = new PackagesAPI.Packages(this._client);
26
+ onepassword: OnepasswordAPI.Onepassword = new OnepasswordAPI.Onepassword(this._client);
18
27
 
19
28
  /**
20
29
  * Returns a paginated list of all credentials belonging to the authenticated user
@@ -54,6 +63,10 @@ export namespace CredentialListResponse {
54
63
  * for credentials created before rollout.
55
64
  */
56
65
  userId: string | null;
66
+
67
+ link?: Item.Link;
68
+
69
+ source?: 'mobilerun' | 'onepassword';
57
70
  }
58
71
 
59
72
  export namespace Item {
@@ -69,6 +82,35 @@ export namespace CredentialListResponse {
69
82
 
70
83
  value: string;
71
84
  }
85
+
86
+ export interface Link {
87
+ fieldMap: Array<Link.FieldMap>;
88
+
89
+ itemId: string;
90
+
91
+ itemTitle: string;
92
+
93
+ provider: 'onepassword';
94
+
95
+ vaultId: string;
96
+
97
+ vaultName: string;
98
+ }
99
+
100
+ export namespace Link {
101
+ export interface FieldMap {
102
+ fieldId: string;
103
+
104
+ fieldType:
105
+ | 'email'
106
+ | 'username'
107
+ | 'password'
108
+ | 'api_token'
109
+ | 'phone_number'
110
+ | 'two_factor_secret'
111
+ | 'backup_codes';
112
+ }
113
+ }
72
114
  }
73
115
  }
74
116
 
@@ -79,6 +121,7 @@ export interface CredentialListParams {
79
121
  }
80
122
 
81
123
  Credentials.Packages = Packages;
124
+ Credentials.Onepassword = Onepassword;
82
125
 
83
126
  export declare namespace Credentials {
84
127
  export {
@@ -93,4 +136,12 @@ export declare namespace Credentials {
93
136
  type PackageListAllResponse as PackageListAllResponse,
94
137
  type PackageCreateParams as PackageCreateParams,
95
138
  };
139
+
140
+ export {
141
+ Onepassword as Onepassword,
142
+ type OnepasswordRetrieveResponse as OnepasswordRetrieveResponse,
143
+ type OnepasswordConnectResponse as OnepasswordConnectResponse,
144
+ type OnepasswordDisconnectResponse as OnepasswordDisconnectResponse,
145
+ type OnepasswordConnectParams as OnepasswordConnectParams,
146
+ };
96
147
  }
@@ -1,6 +1,13 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export { Credentials, type CredentialListResponse, type CredentialListParams } from './credentials';
4
+ export {
5
+ Onepassword,
6
+ type OnepasswordRetrieveResponse,
7
+ type OnepasswordConnectResponse,
8
+ type OnepasswordDisconnectResponse,
9
+ type OnepasswordConnectParams,
10
+ } from './onepassword/index';
4
11
  export {
5
12
  Packages,
6
13
  type PackageCreateResponse,
@@ -0,0 +1,10 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ Onepassword,
5
+ type OnepasswordRetrieveResponse,
6
+ type OnepasswordConnectResponse,
7
+ type OnepasswordDisconnectResponse,
8
+ type OnepasswordConnectParams,
9
+ } from './onepassword';
10
+ export { Vaults } from './vaults/index';
@@ -0,0 +1,101 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import * as VaultsAPI from './vaults/vaults';
5
+ import { Vaults } from './vaults/vaults';
6
+ import { APIPromise } from '../../../core/api-promise';
7
+ import { RequestOptions } from '../../../internal/request-options';
8
+
9
+ export class Onepassword extends APIResource {
10
+ vaults: VaultsAPI.Vaults = new VaultsAPI.Vaults(this._client);
11
+
12
+ /**
13
+ * Get 1Password connection
14
+ */
15
+ retrieve(options?: RequestOptions): APIPromise<OnepasswordRetrieveResponse> {
16
+ return this._client.get('/credentials/onepassword', options);
17
+ }
18
+
19
+ /**
20
+ * Connect a 1Password service account
21
+ */
22
+ connect(body: OnepasswordConnectParams, options?: RequestOptions): APIPromise<OnepasswordConnectResponse> {
23
+ return this._client.put('/credentials/onepassword', { body, ...options });
24
+ }
25
+
26
+ /**
27
+ * Disconnect 1Password
28
+ */
29
+ disconnect(options?: RequestOptions): APIPromise<OnepasswordDisconnectResponse> {
30
+ return this._client.delete('/credentials/onepassword', options);
31
+ }
32
+ }
33
+
34
+ export interface OnepasswordRetrieveResponse {
35
+ data: OnepasswordRetrieveResponse.Data;
36
+ }
37
+
38
+ export namespace OnepasswordRetrieveResponse {
39
+ export interface Data {
40
+ connected: boolean;
41
+
42
+ connectedAt?: string;
43
+
44
+ connectedBy?: string;
45
+
46
+ vaults?: Array<Data.Vault>;
47
+ }
48
+
49
+ export namespace Data {
50
+ export interface Vault {
51
+ id: string;
52
+
53
+ title: string;
54
+ }
55
+ }
56
+ }
57
+
58
+ export interface OnepasswordConnectResponse {
59
+ data: OnepasswordConnectResponse.Data;
60
+ }
61
+
62
+ export namespace OnepasswordConnectResponse {
63
+ export interface Data {
64
+ connected: boolean;
65
+
66
+ connectedAt?: string;
67
+
68
+ connectedBy?: string;
69
+
70
+ vaults?: Array<Data.Vault>;
71
+ }
72
+
73
+ export namespace Data {
74
+ export interface Vault {
75
+ id: string;
76
+
77
+ title: string;
78
+ }
79
+ }
80
+ }
81
+
82
+ export interface OnepasswordDisconnectResponse {
83
+ message: string;
84
+ }
85
+
86
+ export interface OnepasswordConnectParams {
87
+ serviceAccountToken: string;
88
+ }
89
+
90
+ Onepassword.Vaults = Vaults;
91
+
92
+ export declare namespace Onepassword {
93
+ export {
94
+ type OnepasswordRetrieveResponse as OnepasswordRetrieveResponse,
95
+ type OnepasswordConnectResponse as OnepasswordConnectResponse,
96
+ type OnepasswordDisconnectResponse as OnepasswordDisconnectResponse,
97
+ type OnepasswordConnectParams as OnepasswordConnectParams,
98
+ };
99
+
100
+ export { Vaults as Vaults };
101
+ }
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { Items, type ItemListResponse } from './items/index';
4
+ export { Vaults } from './vaults';
@@ -0,0 +1,40 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../../../core/resource';
4
+ import { APIPromise } from '../../../../../core/api-promise';
5
+ import { RequestOptions } from '../../../../../internal/request-options';
6
+ import { path } from '../../../../../internal/utils/path';
7
+
8
+ export class Fields extends APIResource {
9
+ /**
10
+ * List 1Password field metadata
11
+ */
12
+ list(itemID: string, params: FieldListParams, options?: RequestOptions): APIPromise<FieldListResponse> {
13
+ const { vaultId } = params;
14
+ return this._client.get(path`/credentials/onepassword/vaults/${vaultId}/items/${itemID}/fields`, options);
15
+ }
16
+ }
17
+
18
+ export interface FieldListResponse {
19
+ data: Array<FieldListResponse.Data>;
20
+ }
21
+
22
+ export namespace FieldListResponse {
23
+ export interface Data {
24
+ id: string;
25
+
26
+ fieldType: string;
27
+
28
+ title: string;
29
+
30
+ sectionId?: string;
31
+ }
32
+ }
33
+
34
+ export interface FieldListParams {
35
+ vaultId: string;
36
+ }
37
+
38
+ export declare namespace Fields {
39
+ export { type FieldListResponse as FieldListResponse, type FieldListParams as FieldListParams };
40
+ }
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { Fields, type FieldListResponse, type FieldListParams } from './fields';
4
+ export { Items, type ItemListResponse } from './items';