@mobilerun/sdk 5.1.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (374) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/client.d.mts +4 -16
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -16
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -12
  7. package/client.js.map +1 -1
  8. package/client.mjs +1 -13
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/apps.d.mts +12 -7
  12. package/resources/apps.d.mts.map +1 -1
  13. package/resources/apps.d.ts +12 -7
  14. package/resources/apps.d.ts.map +1 -1
  15. package/resources/apps.js +0 -4
  16. package/resources/apps.js.map +1 -1
  17. package/resources/apps.mjs +0 -4
  18. package/resources/apps.mjs.map +1 -1
  19. package/resources/carriers.d.mts +0 -3
  20. package/resources/carriers.d.mts.map +1 -1
  21. package/resources/carriers.d.ts +0 -3
  22. package/resources/carriers.d.ts.map +1 -1
  23. package/resources/carriers.js +0 -3
  24. package/resources/carriers.js.map +1 -1
  25. package/resources/carriers.mjs +0 -3
  26. package/resources/carriers.mjs.map +1 -1
  27. package/resources/connect/countries.d.mts +8 -3
  28. package/resources/connect/countries.d.mts.map +1 -1
  29. package/resources/connect/countries.d.ts +8 -3
  30. package/resources/connect/countries.d.ts.map +1 -1
  31. package/resources/connect/countries.js +6 -1
  32. package/resources/connect/countries.js.map +1 -1
  33. package/resources/connect/countries.mjs +6 -1
  34. package/resources/connect/countries.mjs.map +1 -1
  35. package/resources/connect/proxies.d.mts +11 -9
  36. package/resources/connect/proxies.d.mts.map +1 -1
  37. package/resources/connect/proxies.d.ts +11 -9
  38. package/resources/connect/proxies.d.ts.map +1 -1
  39. package/resources/connect/proxies.js +7 -5
  40. package/resources/connect/proxies.js.map +1 -1
  41. package/resources/connect/proxies.mjs +7 -5
  42. package/resources/connect/proxies.mjs.map +1 -1
  43. package/resources/connect/users.d.mts +7 -2
  44. package/resources/connect/users.d.mts.map +1 -1
  45. package/resources/connect/users.d.ts +7 -2
  46. package/resources/connect/users.d.ts.map +1 -1
  47. package/resources/connect/users.js +7 -2
  48. package/resources/connect/users.js.map +1 -1
  49. package/resources/connect/users.mjs +7 -2
  50. package/resources/connect/users.mjs.map +1 -1
  51. package/resources/credentials/credentials.d.mts +3 -4
  52. package/resources/credentials/credentials.d.mts.map +1 -1
  53. package/resources/credentials/credentials.d.ts +3 -4
  54. package/resources/credentials/credentials.d.ts.map +1 -1
  55. package/resources/credentials/credentials.js +3 -4
  56. package/resources/credentials/credentials.js.map +1 -1
  57. package/resources/credentials/credentials.mjs +3 -4
  58. package/resources/credentials/credentials.mjs.map +1 -1
  59. package/resources/credentials/packages/credentials/credentials.d.mts +14 -7
  60. package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
  61. package/resources/credentials/packages/credentials/credentials.d.ts +14 -7
  62. package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
  63. package/resources/credentials/packages/credentials/credentials.js +7 -6
  64. package/resources/credentials/packages/credentials/credentials.js.map +1 -1
  65. package/resources/credentials/packages/credentials/credentials.mjs +7 -6
  66. package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
  67. package/resources/credentials/packages/credentials/fields.d.mts +8 -6
  68. package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
  69. package/resources/credentials/packages/credentials/fields.d.ts +8 -6
  70. package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
  71. package/resources/credentials/packages/credentials/fields.js +8 -6
  72. package/resources/credentials/packages/credentials/fields.js.map +1 -1
  73. package/resources/credentials/packages/credentials/fields.mjs +8 -6
  74. package/resources/credentials/packages/credentials/fields.mjs.map +1 -1
  75. package/resources/credentials/packages/packages.d.mts +5 -5
  76. package/resources/credentials/packages/packages.d.mts.map +1 -1
  77. package/resources/credentials/packages/packages.d.ts +5 -5
  78. package/resources/credentials/packages/packages.d.ts.map +1 -1
  79. package/resources/credentials/packages/packages.js +5 -5
  80. package/resources/credentials/packages/packages.js.map +1 -1
  81. package/resources/credentials/packages/packages.mjs +5 -5
  82. package/resources/credentials/packages/packages.mjs.map +1 -1
  83. package/resources/devices/actions.d.mts +10 -5
  84. package/resources/devices/actions.d.mts.map +1 -1
  85. package/resources/devices/actions.d.ts +10 -5
  86. package/resources/devices/actions.d.ts.map +1 -1
  87. package/resources/devices/actions.js +10 -5
  88. package/resources/devices/actions.js.map +1 -1
  89. package/resources/devices/actions.mjs +10 -5
  90. package/resources/devices/actions.mjs.map +1 -1
  91. package/resources/devices/apps.d.mts +38 -5
  92. package/resources/devices/apps.d.mts.map +1 -1
  93. package/resources/devices/apps.d.ts +38 -5
  94. package/resources/devices/apps.d.ts.map +1 -1
  95. package/resources/devices/apps.js +21 -5
  96. package/resources/devices/apps.js.map +1 -1
  97. package/resources/devices/apps.mjs +21 -5
  98. package/resources/devices/apps.mjs.map +1 -1
  99. package/resources/devices/devices.d.mts +76 -14
  100. package/resources/devices/devices.d.mts.map +1 -1
  101. package/resources/devices/devices.d.ts +76 -14
  102. package/resources/devices/devices.d.ts.map +1 -1
  103. package/resources/devices/devices.js +28 -12
  104. package/resources/devices/devices.js.map +1 -1
  105. package/resources/devices/devices.mjs +28 -12
  106. package/resources/devices/devices.mjs.map +1 -1
  107. package/resources/devices/esim.d.mts +6 -4
  108. package/resources/devices/esim.d.mts.map +1 -1
  109. package/resources/devices/esim.d.ts +6 -4
  110. package/resources/devices/esim.d.ts.map +1 -1
  111. package/resources/devices/esim.js +6 -4
  112. package/resources/devices/esim.js.map +1 -1
  113. package/resources/devices/esim.mjs +6 -4
  114. package/resources/devices/esim.mjs.map +1 -1
  115. package/resources/devices/files.d.mts +7 -4
  116. package/resources/devices/files.d.mts.map +1 -1
  117. package/resources/devices/files.d.ts +7 -4
  118. package/resources/devices/files.d.ts.map +1 -1
  119. package/resources/devices/files.js +7 -4
  120. package/resources/devices/files.js.map +1 -1
  121. package/resources/devices/files.mjs +7 -4
  122. package/resources/devices/files.mjs.map +1 -1
  123. package/resources/devices/keyboard.d.mts +5 -3
  124. package/resources/devices/keyboard.d.mts.map +1 -1
  125. package/resources/devices/keyboard.d.ts +5 -3
  126. package/resources/devices/keyboard.d.ts.map +1 -1
  127. package/resources/devices/keyboard.js +5 -3
  128. package/resources/devices/keyboard.js.map +1 -1
  129. package/resources/devices/keyboard.mjs +5 -3
  130. package/resources/devices/keyboard.mjs.map +1 -1
  131. package/resources/devices/language.d.mts +4 -2
  132. package/resources/devices/language.d.mts.map +1 -1
  133. package/resources/devices/language.d.ts +4 -2
  134. package/resources/devices/language.d.ts.map +1 -1
  135. package/resources/devices/language.js +4 -2
  136. package/resources/devices/language.js.map +1 -1
  137. package/resources/devices/language.mjs +4 -2
  138. package/resources/devices/language.mjs.map +1 -1
  139. package/resources/devices/location.d.mts +4 -2
  140. package/resources/devices/location.d.mts.map +1 -1
  141. package/resources/devices/location.d.ts +4 -2
  142. package/resources/devices/location.d.ts.map +1 -1
  143. package/resources/devices/location.js +4 -2
  144. package/resources/devices/location.js.map +1 -1
  145. package/resources/devices/location.mjs +4 -2
  146. package/resources/devices/location.mjs.map +1 -1
  147. package/resources/devices/packages.d.mts +2 -1
  148. package/resources/devices/packages.d.mts.map +1 -1
  149. package/resources/devices/packages.d.ts +2 -1
  150. package/resources/devices/packages.d.ts.map +1 -1
  151. package/resources/devices/packages.js +2 -1
  152. package/resources/devices/packages.js.map +1 -1
  153. package/resources/devices/packages.mjs +2 -1
  154. package/resources/devices/packages.mjs.map +1 -1
  155. package/resources/devices/proxy.d.mts +29 -3
  156. package/resources/devices/proxy.d.mts.map +1 -1
  157. package/resources/devices/proxy.d.ts +29 -3
  158. package/resources/devices/proxy.d.ts.map +1 -1
  159. package/resources/devices/proxy.js +7 -3
  160. package/resources/devices/proxy.js.map +1 -1
  161. package/resources/devices/proxy.mjs +7 -3
  162. package/resources/devices/proxy.mjs.map +1 -1
  163. package/resources/devices/state.d.mts +7 -3
  164. package/resources/devices/state.d.mts.map +1 -1
  165. package/resources/devices/state.d.ts +7 -3
  166. package/resources/devices/state.d.ts.map +1 -1
  167. package/resources/devices/state.js +6 -3
  168. package/resources/devices/state.js.map +1 -1
  169. package/resources/devices/state.mjs +6 -3
  170. package/resources/devices/state.mjs.map +1 -1
  171. package/resources/devices/tasks.d.mts +4 -12
  172. package/resources/devices/tasks.d.mts.map +1 -1
  173. package/resources/devices/tasks.d.ts +4 -12
  174. package/resources/devices/tasks.d.ts.map +1 -1
  175. package/resources/devices/tasks.js +2 -4
  176. package/resources/devices/tasks.js.map +1 -1
  177. package/resources/devices/tasks.mjs +2 -4
  178. package/resources/devices/tasks.mjs.map +1 -1
  179. package/resources/devices/timezone.d.mts +4 -2
  180. package/resources/devices/timezone.d.mts.map +1 -1
  181. package/resources/devices/timezone.d.ts +4 -2
  182. package/resources/devices/timezone.d.ts.map +1 -1
  183. package/resources/devices/timezone.js +4 -2
  184. package/resources/devices/timezone.js.map +1 -1
  185. package/resources/devices/timezone.mjs +4 -2
  186. package/resources/devices/timezone.mjs.map +1 -1
  187. package/resources/hooks.d.mts +0 -239
  188. package/resources/hooks.d.mts.map +1 -1
  189. package/resources/hooks.d.ts +0 -239
  190. package/resources/hooks.d.ts.map +1 -1
  191. package/resources/hooks.js +0 -57
  192. package/resources/hooks.js.map +1 -1
  193. package/resources/hooks.mjs +0 -57
  194. package/resources/hooks.mjs.map +1 -1
  195. package/resources/index.d.mts +2 -2
  196. package/resources/index.d.mts.map +1 -1
  197. package/resources/index.d.ts +2 -2
  198. package/resources/index.d.ts.map +1 -1
  199. package/resources/index.js.map +1 -1
  200. package/resources/index.mjs +1 -1
  201. package/resources/index.mjs.map +1 -1
  202. package/resources/profiles.d.mts +69 -6
  203. package/resources/profiles.d.mts.map +1 -1
  204. package/resources/profiles.d.ts +69 -6
  205. package/resources/profiles.d.ts.map +1 -1
  206. package/resources/profiles.js.map +1 -1
  207. package/resources/profiles.mjs.map +1 -1
  208. package/resources/proxies.d.mts +14 -8
  209. package/resources/proxies.d.mts.map +1 -1
  210. package/resources/proxies.d.ts +14 -8
  211. package/resources/proxies.d.ts.map +1 -1
  212. package/resources/proxies.js +14 -8
  213. package/resources/proxies.js.map +1 -1
  214. package/resources/proxies.mjs +14 -8
  215. package/resources/proxies.mjs.map +1 -1
  216. package/resources/shared.d.mts +14 -0
  217. package/resources/shared.d.mts.map +1 -1
  218. package/resources/shared.d.ts +14 -0
  219. package/resources/shared.d.ts.map +1 -1
  220. package/resources/tasks/tasks.d.mts +159 -64
  221. package/resources/tasks/tasks.d.mts.map +1 -1
  222. package/resources/tasks/tasks.d.ts +159 -64
  223. package/resources/tasks/tasks.d.ts.map +1 -1
  224. package/resources/tasks/tasks.js +10 -2
  225. package/resources/tasks/tasks.js.map +1 -1
  226. package/resources/tasks/tasks.mjs +10 -2
  227. package/resources/tasks/tasks.mjs.map +1 -1
  228. package/resources/webhooks/deliveries.d.mts +38 -4
  229. package/resources/webhooks/deliveries.d.mts.map +1 -1
  230. package/resources/webhooks/deliveries.d.ts +38 -4
  231. package/resources/webhooks/deliveries.d.ts.map +1 -1
  232. package/resources/webhooks/deliveries.js +15 -4
  233. package/resources/webhooks/deliveries.js.map +1 -1
  234. package/resources/webhooks/deliveries.mjs +15 -4
  235. package/resources/webhooks/deliveries.mjs.map +1 -1
  236. package/resources/webhooks/webhooks.d.mts +67 -9
  237. package/resources/webhooks/webhooks.d.mts.map +1 -1
  238. package/resources/webhooks/webhooks.d.ts +67 -9
  239. package/resources/webhooks/webhooks.d.ts.map +1 -1
  240. package/resources/webhooks/webhooks.js +26 -8
  241. package/resources/webhooks/webhooks.js.map +1 -1
  242. package/resources/webhooks/webhooks.mjs +26 -8
  243. package/resources/webhooks/webhooks.mjs.map +1 -1
  244. package/resources/workflows/action-catalog.d.mts +5 -2
  245. package/resources/workflows/action-catalog.d.mts.map +1 -1
  246. package/resources/workflows/action-catalog.d.ts +5 -2
  247. package/resources/workflows/action-catalog.d.ts.map +1 -1
  248. package/resources/workflows/action-catalog.js +5 -2
  249. package/resources/workflows/action-catalog.js.map +1 -1
  250. package/resources/workflows/action-catalog.mjs +5 -2
  251. package/resources/workflows/action-catalog.mjs.map +1 -1
  252. package/resources/workflows/actions/actions.d.mts +15 -5
  253. package/resources/workflows/actions/actions.d.mts.map +1 -1
  254. package/resources/workflows/actions/actions.d.ts +15 -5
  255. package/resources/workflows/actions/actions.d.ts.map +1 -1
  256. package/resources/workflows/actions/actions.js +10 -5
  257. package/resources/workflows/actions/actions.js.map +1 -1
  258. package/resources/workflows/actions/actions.mjs +10 -5
  259. package/resources/workflows/actions/actions.mjs.map +1 -1
  260. package/resources/workflows/actions/services.d.mts +5 -2
  261. package/resources/workflows/actions/services.d.mts.map +1 -1
  262. package/resources/workflows/actions/services.d.ts +5 -2
  263. package/resources/workflows/actions/services.d.ts.map +1 -1
  264. package/resources/workflows/actions/services.js +5 -2
  265. package/resources/workflows/actions/services.js.map +1 -1
  266. package/resources/workflows/actions/services.mjs +5 -2
  267. package/resources/workflows/actions/services.mjs.map +1 -1
  268. package/resources/workflows/events/catalog.d.mts +0 -51
  269. package/resources/workflows/events/catalog.d.mts.map +1 -1
  270. package/resources/workflows/events/catalog.d.ts +0 -51
  271. package/resources/workflows/events/catalog.d.ts.map +1 -1
  272. package/resources/workflows/events/catalog.js +0 -12
  273. package/resources/workflows/events/catalog.js.map +1 -1
  274. package/resources/workflows/events/catalog.mjs +0 -12
  275. package/resources/workflows/events/catalog.mjs.map +1 -1
  276. package/resources/workflows/events/events.d.mts +10 -20
  277. package/resources/workflows/events/events.d.mts.map +1 -1
  278. package/resources/workflows/events/events.d.ts +10 -20
  279. package/resources/workflows/events/events.d.ts.map +1 -1
  280. package/resources/workflows/events/events.js.map +1 -1
  281. package/resources/workflows/events/events.mjs +1 -1
  282. package/resources/workflows/events/events.mjs.map +1 -1
  283. package/resources/workflows/events/index.d.mts +1 -1
  284. package/resources/workflows/events/index.d.mts.map +1 -1
  285. package/resources/workflows/events/index.d.ts +1 -1
  286. package/resources/workflows/events/index.d.ts.map +1 -1
  287. package/resources/workflows/events/index.js.map +1 -1
  288. package/resources/workflows/events/index.mjs +1 -1
  289. package/resources/workflows/events/index.mjs.map +1 -1
  290. package/resources/workflows/executions.d.mts +43 -5
  291. package/resources/workflows/executions.d.mts.map +1 -1
  292. package/resources/workflows/executions.d.ts +43 -5
  293. package/resources/workflows/executions.d.ts.map +1 -1
  294. package/resources/workflows/executions.js +8 -3
  295. package/resources/workflows/executions.js.map +1 -1
  296. package/resources/workflows/executions.mjs +8 -3
  297. package/resources/workflows/executions.mjs.map +1 -1
  298. package/resources/workflows/flows/actions.d.mts +12 -4
  299. package/resources/workflows/flows/actions.d.mts.map +1 -1
  300. package/resources/workflows/flows/actions.d.ts +12 -4
  301. package/resources/workflows/flows/actions.d.ts.map +1 -1
  302. package/resources/workflows/flows/actions.js +12 -4
  303. package/resources/workflows/flows/actions.js.map +1 -1
  304. package/resources/workflows/flows/actions.mjs +12 -4
  305. package/resources/workflows/flows/actions.mjs.map +1 -1
  306. package/resources/workflows/flows/flows.d.mts +33 -7
  307. package/resources/workflows/flows/flows.d.mts.map +1 -1
  308. package/resources/workflows/flows/flows.d.ts +33 -7
  309. package/resources/workflows/flows/flows.d.ts.map +1 -1
  310. package/resources/workflows/flows/flows.js +18 -6
  311. package/resources/workflows/flows/flows.js.map +1 -1
  312. package/resources/workflows/flows/flows.mjs +18 -6
  313. package/resources/workflows/flows/flows.mjs.map +1 -1
  314. package/resources/workflows/triggers.d.mts +75 -63
  315. package/resources/workflows/triggers.d.mts.map +1 -1
  316. package/resources/workflows/triggers.d.ts +75 -63
  317. package/resources/workflows/triggers.d.ts.map +1 -1
  318. package/resources/workflows/triggers.js +12 -5
  319. package/resources/workflows/triggers.js.map +1 -1
  320. package/resources/workflows/triggers.mjs +12 -5
  321. package/resources/workflows/triggers.mjs.map +1 -1
  322. package/resources/workflows/workflows.d.mts +15 -0
  323. package/resources/workflows/workflows.d.mts.map +1 -1
  324. package/resources/workflows/workflows.d.ts +15 -0
  325. package/resources/workflows/workflows.d.ts.map +1 -1
  326. package/resources/workflows/workflows.js.map +1 -1
  327. package/resources/workflows/workflows.mjs.map +1 -1
  328. package/src/client.ts +8 -46
  329. package/src/resources/apps.ts +16 -8
  330. package/src/resources/carriers.ts +0 -3
  331. package/src/resources/connect/countries.ts +8 -3
  332. package/src/resources/connect/proxies.ts +11 -9
  333. package/src/resources/connect/users.ts +7 -2
  334. package/src/resources/credentials/credentials.ts +3 -4
  335. package/src/resources/credentials/packages/credentials/credentials.ts +16 -7
  336. package/src/resources/credentials/packages/credentials/fields.ts +8 -6
  337. package/src/resources/credentials/packages/packages.ts +5 -5
  338. package/src/resources/devices/actions.ts +10 -5
  339. package/src/resources/devices/apps.ts +41 -5
  340. package/src/resources/devices/devices.ts +97 -15
  341. package/src/resources/devices/esim.ts +6 -4
  342. package/src/resources/devices/files.ts +7 -4
  343. package/src/resources/devices/keyboard.ts +5 -3
  344. package/src/resources/devices/language.ts +4 -2
  345. package/src/resources/devices/location.ts +4 -2
  346. package/src/resources/devices/packages.ts +2 -1
  347. package/src/resources/devices/proxy.ts +32 -3
  348. package/src/resources/devices/state.ts +8 -3
  349. package/src/resources/devices/tasks.ts +4 -15
  350. package/src/resources/devices/timezone.ts +4 -2
  351. package/src/resources/hooks.ts +1 -333
  352. package/src/resources/index.ts +4 -17
  353. package/src/resources/profiles.ts +105 -6
  354. package/src/resources/proxies.ts +14 -8
  355. package/src/resources/shared.ts +17 -0
  356. package/src/resources/tasks/tasks.ts +198 -78
  357. package/src/resources/webhooks/deliveries.ts +43 -4
  358. package/src/resources/webhooks/webhooks.ts +79 -9
  359. package/src/resources/workflows/action-catalog.ts +5 -2
  360. package/src/resources/workflows/actions/actions.ts +17 -5
  361. package/src/resources/workflows/actions/services.ts +5 -2
  362. package/src/resources/workflows/events/catalog.ts +1 -84
  363. package/src/resources/workflows/events/events.ts +14 -36
  364. package/src/resources/workflows/events/index.ts +1 -7
  365. package/src/resources/workflows/executions.ts +50 -5
  366. package/src/resources/workflows/flows/actions.ts +12 -4
  367. package/src/resources/workflows/flows/flows.ts +41 -7
  368. package/src/resources/workflows/triggers.ts +92 -75
  369. package/src/resources/workflows/workflows.ts +21 -0
  370. package/src/version.ts +1 -1
  371. package/version.d.mts +1 -1
  372. package/version.d.ts +1 -1
  373. package/version.js +1 -1
  374. package/version.mjs +1 -1
@@ -23,7 +23,10 @@ export class Webhooks extends APIResource {
23
23
  deliveries: DeliveriesAPI.Deliveries = new DeliveriesAPI.Deliveries(this._client);
24
24
 
25
25
  /**
26
- * Register a webhook subscription
26
+ * Creates a webhook subscription with a delivery URL and an optional list of event
27
+ * types to subscribe to (defaults to all when omitted). The response includes the
28
+ * generated signing secret, which is returned only once at creation time and
29
+ * cannot be retrieved later.
27
30
  *
28
31
  * @example
29
32
  * ```ts
@@ -37,7 +40,9 @@ export class Webhooks extends APIResource {
37
40
  }
38
41
 
39
42
  /**
40
- * Get a webhook subscription
43
+ * Returns a single webhook subscription by id, including its URL, subscribed event
44
+ * types, state, and system-observed delivery health. The signing secret is never
45
+ * included.
41
46
  *
42
47
  * @example
43
48
  * ```ts
@@ -51,7 +56,10 @@ export class Webhooks extends APIResource {
51
56
  }
52
57
 
53
58
  /**
54
- * Update a webhook subscription
59
+ * Updates a webhook subscription. Any combination of the subscribed event types,
60
+ * state (ACTIVE or DISABLED), and description may be changed, and at least one
61
+ * field must be supplied. Setting state to ACTIVE re-enables a subscription that
62
+ * was auto-blocked after sustained delivery failures.
55
63
  *
56
64
  * @example
57
65
  * ```ts
@@ -69,7 +77,10 @@ export class Webhooks extends APIResource {
69
77
  }
70
78
 
71
79
  /**
72
- * List your webhook subscriptions
80
+ * Returns a paginated list of your webhook subscriptions, optionally filtered by
81
+ * status (active, failing, blocked, or disabled) and/or by `search` (a
82
+ * case-insensitive substring match against the URL or description). The response
83
+ * also includes per-status counts across all of your subscriptions.
73
84
  *
74
85
  * @example
75
86
  * ```ts
@@ -84,7 +95,8 @@ export class Webhooks extends APIResource {
84
95
  }
85
96
 
86
97
  /**
87
- * Delete a webhook subscription
98
+ * Deletes a webhook subscription so it stops receiving deliveries. Returns 204 No
99
+ * Content on success.
88
100
  *
89
101
  * @example
90
102
  * ```ts
@@ -101,7 +113,9 @@ export class Webhooks extends APIResource {
101
113
  }
102
114
 
103
115
  /**
104
- * List subscribable event types per source
116
+ * Returns the catalog of event types that webhook subscriptions can subscribe to,
117
+ * grouped by source. Use the returned type identifiers as the `eventTypes` values
118
+ * when creating or updating a webhook.
105
119
  *
106
120
  * @example
107
121
  * ```ts
@@ -113,7 +127,9 @@ export class Webhooks extends APIResource {
113
127
  }
114
128
 
115
129
  /**
116
- * Rotate the signing secret (returned once)
130
+ * Generates a new signing secret for the webhook subscription and returns it once
131
+ * in the response. The previous secret is replaced immediately, so any signature
132
+ * verification on your endpoint must be updated to use the new value.
117
133
  *
118
134
  * @example
119
135
  * ```ts
@@ -127,7 +143,9 @@ export class Webhooks extends APIResource {
127
143
  }
128
144
 
129
145
  /**
130
- * Send a one-shot test delivery
146
+ * Sends a single test payload to the webhook subscription URL to verify
147
+ * connectivity. The response reports whether the attempt succeeded along with the
148
+ * returned HTTP status code or error, if any.
131
149
  *
132
150
  * @example
133
151
  * ```ts
@@ -155,6 +173,11 @@ export namespace WebhookCreateResponse {
155
173
 
156
174
  createdAt: string;
157
175
 
176
+ /**
177
+ * Id of the actor who created this endpoint. Null when no creator was recorded.
178
+ */
179
+ createdBy: string | null;
180
+
158
181
  description: string | null;
159
182
 
160
183
  eventTypes: Array<string>;
@@ -194,6 +217,11 @@ export namespace WebhookRetrieveResponse {
194
217
 
195
218
  createdAt: string;
196
219
 
220
+ /**
221
+ * Id of the actor who created this endpoint. Null when no creator was recorded.
222
+ */
223
+ createdBy: string | null;
224
+
197
225
  description: string | null;
198
226
 
199
227
  eventTypes: Array<string>;
@@ -228,6 +256,11 @@ export namespace WebhookUpdateResponse {
228
256
 
229
257
  createdAt: string;
230
258
 
259
+ /**
260
+ * Id of the actor who created this endpoint. Null when no creator was recorded.
261
+ */
262
+ createdBy: string | null;
263
+
231
264
  description: string | null;
232
265
 
233
266
  eventTypes: Array<string>;
@@ -278,6 +311,11 @@ export namespace WebhookListResponse {
278
311
 
279
312
  createdAt: string;
280
313
 
314
+ /**
315
+ * Id of the actor who created this endpoint. Null when no creator was recorded.
316
+ */
317
+ createdBy: string | null;
318
+
281
319
  description: string | null;
282
320
 
283
321
  eventTypes: Array<string>;
@@ -304,7 +342,7 @@ export interface WebhookEventTypesResponse {
304
342
 
305
343
  export namespace WebhookEventTypesResponse {
306
344
  export interface Data {
307
- schemaVersion: number;
345
+ schemaVersion: 1;
308
346
 
309
347
  sources: Array<Data.Source>;
310
348
  }
@@ -320,8 +358,20 @@ export namespace WebhookEventTypesResponse {
320
358
  export interface Event {
321
359
  description: string;
322
360
 
361
+ surfaces: Event.Surfaces;
362
+
323
363
  type: string;
324
364
  }
365
+
366
+ export namespace Event {
367
+ export interface Surfaces {
368
+ feed: boolean;
369
+
370
+ toast: boolean;
371
+
372
+ webhook: boolean;
373
+ }
374
+ }
325
375
  }
326
376
  }
327
377
  }
@@ -340,6 +390,11 @@ export namespace WebhookRotateSecretResponse {
340
390
 
341
391
  createdAt: string;
342
392
 
393
+ /**
394
+ * Id of the actor who created this endpoint. Null when no creator was recorded.
395
+ */
396
+ createdBy: string | null;
397
+
343
398
  description: string | null;
344
399
 
345
400
  eventTypes: Array<string>;
@@ -396,10 +451,25 @@ export interface WebhookUpdateParams {
396
451
  }
397
452
 
398
453
  export interface WebhookListParams {
454
+ /**
455
+ * Only include webhooks created by this actor id. Mutually exclusive with `mine`.
456
+ */
457
+ createdBy?: string;
458
+
459
+ /**
460
+ * When true, only include webhooks created by you (not just owned by your org).
461
+ */
462
+ mine?: 'true' | 'false';
463
+
399
464
  page?: number;
400
465
 
401
466
  pageSize?: number;
402
467
 
468
+ /**
469
+ * Case-insensitive substring match against the URL or description.
470
+ */
471
+ search?: string;
472
+
403
473
  status?: 'active' | 'failing' | 'blocked' | 'disabled';
404
474
  }
405
475
 
@@ -8,14 +8,17 @@ import { path } from '../../internal/utils/path';
8
8
 
9
9
  export class ActionCatalog extends APIResource {
10
10
  /**
11
- * Get a catalog entry
11
+ * Fetch a single action catalog entry by its ID, including its service, method,
12
+ * and parameter schema. Returns 404 if no entry matches.
12
13
  */
13
14
  retrieve(catalogEntryID: string, options?: RequestOptions): APIPromise<ActionCatalogRetrieveResponse> {
14
15
  return this._client.get(path`/action-catalog/${catalogEntryID}`, options);
15
16
  }
16
17
 
17
18
  /**
18
- * List action catalog entries
19
+ * Return a paginated list of catalog entries — the service/method templates that
20
+ * actions are created from, each carrying its parameter schema. Supports filtering
21
+ * by `service`.
19
22
  */
20
23
  list(
21
24
  query: ActionCatalogListParams | null | undefined = {},
@@ -12,21 +12,25 @@ export class Actions extends APIResource {
12
12
  services: ServicesAPI.Services = new ServicesAPI.Services(this._client);
13
13
 
14
14
  /**
15
- * Create an action
15
+ * Create a reusable action from a catalog entry (`catalogEntryId`), with an
16
+ * optional `params` object supplying the values for that entry's service method.
17
+ * Returns 400 if the params are invalid for the chosen catalog entry.
16
18
  */
17
19
  create(body: ActionCreateParams, options?: RequestOptions): APIPromise<ActionCreateResponse> {
18
20
  return this._client.post('/actions', { body, ...options });
19
21
  }
20
22
 
21
23
  /**
22
- * Get an action
24
+ * Fetch a single action by its ID, including its configured service, method, and
25
+ * params. Returns 404 if no action matches.
23
26
  */
24
27
  retrieve(actionID: string, options?: RequestOptions): APIPromise<ActionRetrieveResponse> {
25
28
  return this._client.get(path`/actions/${actionID}`, options);
26
29
  }
27
30
 
28
31
  /**
29
- * Update an action
32
+ * Partially update an action's name, description, or params; all fields are
33
+ * optional. Returns 404 if the action does not exist.
30
34
  */
31
35
  update(
32
36
  actionID: string,
@@ -37,7 +41,8 @@ export class Actions extends APIResource {
37
41
  }
38
42
 
39
43
  /**
40
- * List actions
44
+ * Return a paginated list of actions. Supports filtering by `service`, free-text
45
+ * `search`, and ordering by name, createdAt, or updatedAt.
41
46
  */
42
47
  list(
43
48
  query: ActionListParams | null | undefined = {},
@@ -47,7 +52,7 @@ export class Actions extends APIResource {
47
52
  }
48
53
 
49
54
  /**
50
- * Delete an action
55
+ * Delete an action by its ID. Returns 404 if no action matches.
51
56
  */
52
57
  delete(actionID: string, options?: RequestOptions): APIPromise<ActionDeleteResponse> {
53
58
  return this._client.delete(path`/actions/${actionID}`, options);
@@ -61,16 +66,23 @@ export interface Action {
61
66
 
62
67
  createdAt: string | null;
63
68
 
69
+ createdBy: string | null;
70
+
64
71
  description: string | null;
65
72
 
66
73
  method: string;
67
74
 
68
75
  name: string;
69
76
 
77
+ ownerId: string;
78
+
70
79
  service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
71
80
 
72
81
  updatedAt: string | null;
73
82
 
83
+ /**
84
+ * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
85
+ */
74
86
  userId: string;
75
87
 
76
88
  params?: unknown;
@@ -7,14 +7,17 @@ import { path } from '../../../internal/utils/path';
7
7
 
8
8
  export class Services extends APIResource {
9
9
  /**
10
- * List available services
10
+ * Return the names of the services that actions can be built against. Use these
11
+ * values to look up each service's allowed methods.
11
12
  */
12
13
  list(options?: RequestOptions): APIPromise<ServiceListResponse> {
13
14
  return this._client.get('/actions/services', options);
14
15
  }
15
16
 
16
17
  /**
17
- * List allowed methods for a service
18
+ * Return the methods allowed for the given service, each with its parameter
19
+ * definitions (name, type, whether required, description, and optional
20
+ * default/example). Returns 404 if the service is unknown.
18
21
  */
19
22
  listMethods(service: string, options?: RequestOptions): APIPromise<ServiceListMethodsResponse> {
20
23
  return this._client.get(path`/actions/services/${service}/methods`, options);
@@ -1,88 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
- import * as Shared from '../../shared';
5
- import { APIPromise } from '../../../core/api-promise';
6
- import { RequestOptions } from '../../../internal/request-options';
7
4
 
8
- export class Catalog extends APIResource {
9
- /**
10
- * List event catalog
11
- */
12
- list(
13
- query: CatalogListParams | null | undefined = {},
14
- options?: RequestOptions,
15
- ): APIPromise<CatalogListResponse> {
16
- return this._client.get('/events/catalog', { query, ...options });
17
- }
18
-
19
- /**
20
- * Register event types in the catalog
21
- */
22
- register(body: CatalogRegisterParams, options?: RequestOptions): APIPromise<CatalogRegisterResponse> {
23
- return this._client.post('/events/catalog/register', { body, ...options });
24
- }
25
- }
26
-
27
- export interface CatalogListResponse {
28
- items: Array<CatalogListResponse.Item>;
29
-
30
- pagination: Shared.Pagination;
31
- }
32
-
33
- export namespace CatalogListResponse {
34
- export interface Item {
35
- createdAt: string | null;
36
-
37
- description: string | null;
38
-
39
- eventType: string;
40
-
41
- label: string;
42
-
43
- source: string | null;
44
-
45
- updatedAt: string | null;
46
-
47
- payloadSchema?: unknown;
48
- }
49
- }
50
-
51
- export interface CatalogRegisterResponse {
52
- message: string;
53
- }
54
-
55
- export interface CatalogListParams {
56
- page?: number;
57
-
58
- pageSize?: number;
59
-
60
- source?: 'device' | 'system' | 'webhook';
61
- }
62
-
63
- export interface CatalogRegisterParams {
64
- events: Array<CatalogRegisterParams.Event>;
65
- }
66
-
67
- export namespace CatalogRegisterParams {
68
- export interface Event {
69
- eventType: string;
70
-
71
- label: string;
72
-
73
- description?: string;
74
-
75
- payloadSchema?: { [key: string]: unknown };
76
-
77
- source?: 'device' | 'system' | 'webhook';
78
- }
79
- }
80
-
81
- export declare namespace Catalog {
82
- export {
83
- type CatalogListResponse as CatalogListResponse,
84
- type CatalogRegisterResponse as CatalogRegisterResponse,
85
- type CatalogListParams as CatalogListParams,
86
- type CatalogRegisterParams as CatalogRegisterParams,
87
- };
88
- }
5
+ export class Catalog extends APIResource {}
@@ -3,13 +3,7 @@
3
3
  import { APIResource } from '../../../core/resource';
4
4
  import * as WorkflowsAPI from '../workflows';
5
5
  import * as CatalogAPI from './catalog';
6
- import {
7
- Catalog,
8
- CatalogListParams,
9
- CatalogListResponse,
10
- CatalogRegisterParams,
11
- CatalogRegisterResponse,
12
- } from './catalog';
6
+ import { Catalog } from './catalog';
13
7
  import { APIPromise } from '../../../core/api-promise';
14
8
  import { RequestOptions } from '../../../internal/request-options';
15
9
 
@@ -94,6 +88,8 @@ export namespace EventDryRunResponse {
94
88
 
95
89
  createdAt: string | null;
96
90
 
91
+ createdBy: string | null;
92
+
97
93
  customPayloadSchema: { [key: string]: unknown } | null;
98
94
 
99
95
  description: string | null;
@@ -102,39 +98,23 @@ export namespace EventDryRunResponse {
102
98
 
103
99
  name: string;
104
100
 
105
- scheduleRule: Trigger.ScheduleRule | null;
101
+ ownerId: string;
102
+
103
+ scheduleRule: unknown;
106
104
 
107
105
  timezone: string | null;
108
106
 
109
107
  updatedAt: string | null;
110
108
 
109
+ /**
110
+ * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
111
+ */
111
112
  userId: string;
112
113
 
113
114
  conditions?: unknown;
114
115
 
115
116
  nextFireTime?: string | null;
116
117
  }
117
-
118
- export namespace Trigger {
119
- export interface ScheduleRule {
120
- type: 'once' | 'cron' | 'recurring';
121
-
122
- /**
123
- * ISO 8601 datetime (for type=once)
124
- */
125
- dateTime?: string;
126
-
127
- /**
128
- * Cron expression (for type=cron)
129
- */
130
- expression?: string;
131
-
132
- /**
133
- * RRULE string (for type=recurring)
134
- */
135
- rrule?: string;
136
- }
137
- }
138
118
  }
139
119
 
140
120
  export interface Validation {
@@ -160,12 +140,16 @@ export interface EventIngestResponse {
160
140
  export interface EventDryRunParams {
161
141
  eventType: string;
162
142
 
143
+ deviceId?: string;
144
+
163
145
  payload?: { [key: string]: unknown };
164
146
  }
165
147
 
166
148
  export interface EventIngestParams {
167
149
  eventType: string;
168
150
 
151
+ deviceId?: string;
152
+
169
153
  payload?: { [key: string]: unknown };
170
154
  }
171
155
 
@@ -179,11 +163,5 @@ export declare namespace Events {
179
163
  type EventIngestParams as EventIngestParams,
180
164
  };
181
165
 
182
- export {
183
- Catalog as Catalog,
184
- type CatalogListResponse as CatalogListResponse,
185
- type CatalogRegisterResponse as CatalogRegisterResponse,
186
- type CatalogListParams as CatalogListParams,
187
- type CatalogRegisterParams as CatalogRegisterParams,
188
- };
166
+ export { Catalog as Catalog };
189
167
  }
@@ -1,12 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export {
4
- Catalog,
5
- type CatalogListResponse,
6
- type CatalogRegisterResponse,
7
- type CatalogListParams,
8
- type CatalogRegisterParams,
9
- } from './catalog';
3
+ export { Catalog } from './catalog';
10
4
  export {
11
5
  Events,
12
6
  type EventDryRunResponse,
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
+ import * as ExecutionsAPI from './executions';
4
5
  import * as Shared from '../shared';
5
6
  import { APIPromise } from '../../core/api-promise';
6
7
  import { RequestOptions } from '../../internal/request-options';
@@ -8,14 +9,17 @@ import { path } from '../../internal/utils/path';
8
9
 
9
10
  export class Executions extends APIResource {
10
11
  /**
11
- * Get execution details
12
+ * Fetch a single flow execution by its ID, including its status, kind, result or
13
+ * error, and start/finish timestamps. Returns 404 if no execution matches.
12
14
  */
13
15
  retrieve(executionID: string, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse> {
14
16
  return this._client.get(path`/executions/${executionID}`, options);
15
17
  }
16
18
 
17
19
  /**
18
- * List flow executions
20
+ * Return a paginated history of flow executions. Supports filtering by `flowId`,
21
+ * `triggerId`, `status`, and a `from`/`to` time range, plus free-text `search` and
22
+ * ordering by startedAt, finishedAt, or status.
19
23
  */
20
24
  list(
21
25
  query: ExecutionListParams | null | undefined = {},
@@ -25,7 +29,9 @@ export class Executions extends APIResource {
25
29
  }
26
30
 
27
31
  /**
28
- * Get execution metrics
32
+ * Return aggregate execution metrics — total count, counts by status, average
33
+ * duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
34
+ * and a `from`/`to` time range.
29
35
  */
30
36
  getMetrics(
31
37
  query: ExecutionGetMetricsParams | null | undefined = {},
@@ -58,19 +64,58 @@ export interface FlowExecution {
58
64
 
59
65
  triggerName: string | null;
60
66
 
67
+ /**
68
+ * Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
69
+ * `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
70
+ * step that opted into a verdict — null otherwise. Table-backed steps (current
71
+ * executions) also carry a `status` string (e.g. success/failed/stopped, see
72
+ * deriveStepStatus); it is optional and absent on legacy blob-only executions, so
73
+ * clients must not assume its presence.
74
+ */
61
75
  result?: unknown;
62
76
  }
63
77
 
64
78
  export interface ExecutionRetrieveResponse {
65
- data: FlowExecution;
79
+ data: ExecutionRetrieveResponse.Data;
80
+ }
81
+
82
+ export namespace ExecutionRetrieveResponse {
83
+ export interface Data extends ExecutionsAPI.FlowExecution {
84
+ createdBy: string | null;
85
+
86
+ /**
87
+ * Files produced by files.upload steps, plus files an agent.run step reported on
88
+ * its terminal response (agent-created output or a workflow upload minted during
89
+ * the turn); derived server-side at read time.
90
+ */
91
+ files: Array<Data.File>;
92
+ }
93
+
94
+ export namespace Data {
95
+ export interface File {
96
+ fileId: string;
97
+
98
+ filename: string;
99
+
100
+ mimeType: string;
101
+
102
+ sizeBytes: number;
103
+ }
104
+ }
66
105
  }
67
106
 
68
107
  export interface ExecutionListResponse {
69
- items: Array<FlowExecution>;
108
+ items: Array<ExecutionListResponse.Item>;
70
109
 
71
110
  pagination: Shared.Pagination;
72
111
  }
73
112
 
113
+ export namespace ExecutionListResponse {
114
+ export interface Item extends ExecutionsAPI.FlowExecution {
115
+ createdBy: string | null;
116
+ }
117
+ }
118
+
74
119
  export interface ExecutionGetMetricsResponse {
75
120
  data: ExecutionGetMetricsResponse.Data;
76
121
  }
@@ -8,21 +8,26 @@ import { path } from '../../../internal/utils/path';
8
8
 
9
9
  export class Actions extends APIResource {
10
10
  /**
11
- * List actions for a flow
11
+ * Return the ordered list of actions attached to a flow, including any nested
12
+ * child actions. Returns 404 if the flow does not exist.
12
13
  */
13
14
  list(flowID: string, options?: RequestOptions): APIPromise<ActionListResponse> {
14
15
  return this._client.get(path`/flows/${flowID}/actions`, options);
15
16
  }
16
17
 
17
18
  /**
18
- * Add an action to a flow
19
+ * Append a single action to a flow at the given `position`, optionally nesting it
20
+ * under a `parentFlowActionId` or supplying its own `children`. Supports a
21
+ * `nameOverride`, param `overrides`, and `continueOnError`. Returns 404 if the
22
+ * flow does not exist.
19
23
  */
20
24
  add(flowID: string, body: ActionAddParams, options?: RequestOptions): APIPromise<ActionAddResponse> {
21
25
  return this._client.post(path`/flows/${flowID}/actions`, { body, ...options });
22
26
  }
23
27
 
24
28
  /**
25
- * Remove an action from a flow
29
+ * Remove a single action from a flow by its `flowActionId`. Returns 404 if the
30
+ * flow or flow action does not exist.
26
31
  */
27
32
  remove(
28
33
  flowActionID: string,
@@ -34,7 +39,10 @@ export class Actions extends APIResource {
34
39
  }
35
40
 
36
41
  /**
37
- * Replace all actions for a flow
42
+ * Replace a flow's entire action list with the supplied set (at least one
43
+ * required). Each action references an `actionId` and a unique `position`, and may
44
+ * include nested `children`, a `nameOverride`, param `overrides`, and a
45
+ * `continueOnError` flag. Returns 404 if the flow does not exist.
38
46
  */
39
47
  replace(
40
48
  flowID: string,