@mobilerun/sdk 5.5.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (502) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +0 -9
  3. package/client.d.mts +12 -30
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +12 -30
  6. package/client.d.ts.map +1 -1
  7. package/client.js +1 -18
  8. package/client.js.map +1 -1
  9. package/client.mjs +2 -19
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/apps.d.mts +39 -26
  13. package/resources/apps.d.mts.map +1 -1
  14. package/resources/apps.d.ts +39 -26
  15. package/resources/apps.d.ts.map +1 -1
  16. package/resources/apps.js +20 -7
  17. package/resources/apps.js.map +1 -1
  18. package/resources/apps.mjs +20 -7
  19. package/resources/apps.mjs.map +1 -1
  20. package/resources/assistant/conversations.d.mts +7 -17
  21. package/resources/assistant/conversations.d.mts.map +1 -1
  22. package/resources/assistant/conversations.d.ts +7 -17
  23. package/resources/assistant/conversations.d.ts.map +1 -1
  24. package/resources/assistant/conversations.js +4 -11
  25. package/resources/assistant/conversations.js.map +1 -1
  26. package/resources/assistant/conversations.mjs +4 -11
  27. package/resources/assistant/conversations.mjs.map +1 -1
  28. package/resources/connect/connect.d.mts +2 -2
  29. package/resources/connect/connect.d.mts.map +1 -1
  30. package/resources/connect/connect.d.ts +2 -2
  31. package/resources/connect/connect.d.ts.map +1 -1
  32. package/resources/connect/connect.js.map +1 -1
  33. package/resources/connect/connect.mjs.map +1 -1
  34. package/resources/connect/index.d.mts +1 -1
  35. package/resources/connect/index.d.mts.map +1 -1
  36. package/resources/connect/index.d.ts +1 -1
  37. package/resources/connect/index.d.ts.map +1 -1
  38. package/resources/connect/index.js.map +1 -1
  39. package/resources/connect/index.mjs.map +1 -1
  40. package/resources/connect/proxies.d.mts +102 -17
  41. package/resources/connect/proxies.d.mts.map +1 -1
  42. package/resources/connect/proxies.d.ts +102 -17
  43. package/resources/connect/proxies.d.ts.map +1 -1
  44. package/resources/connect/proxies.js +27 -14
  45. package/resources/connect/proxies.js.map +1 -1
  46. package/resources/connect/proxies.mjs +27 -14
  47. package/resources/connect/proxies.mjs.map +1 -1
  48. package/resources/connect/users.d.mts +4 -4
  49. package/resources/connect/users.d.ts +4 -4
  50. package/resources/connect/users.js +2 -2
  51. package/resources/connect/users.mjs +2 -2
  52. package/resources/devices/actions.d.mts +25 -5
  53. package/resources/devices/actions.d.mts.map +1 -1
  54. package/resources/devices/actions.d.ts +25 -5
  55. package/resources/devices/actions.d.ts.map +1 -1
  56. package/resources/devices/actions.js +5 -3
  57. package/resources/devices/actions.js.map +1 -1
  58. package/resources/devices/actions.mjs +5 -3
  59. package/resources/devices/actions.mjs.map +1 -1
  60. package/resources/devices/apps.d.mts +13 -0
  61. package/resources/devices/apps.d.mts.map +1 -1
  62. package/resources/devices/apps.d.ts +13 -0
  63. package/resources/devices/apps.d.ts.map +1 -1
  64. package/resources/devices/browser.d.mts +9 -3
  65. package/resources/devices/browser.d.mts.map +1 -1
  66. package/resources/devices/browser.d.ts +9 -3
  67. package/resources/devices/browser.d.ts.map +1 -1
  68. package/resources/devices/browser.js +9 -3
  69. package/resources/devices/browser.js.map +1 -1
  70. package/resources/devices/browser.mjs +9 -3
  71. package/resources/devices/browser.mjs.map +1 -1
  72. package/resources/devices/devices.d.mts +88 -36
  73. package/resources/devices/devices.d.mts.map +1 -1
  74. package/resources/devices/devices.d.ts +88 -36
  75. package/resources/devices/devices.d.ts.map +1 -1
  76. package/resources/devices/devices.js +30 -15
  77. package/resources/devices/devices.js.map +1 -1
  78. package/resources/devices/devices.mjs +30 -15
  79. package/resources/devices/devices.mjs.map +1 -1
  80. package/resources/devices/index.d.mts +3 -2
  81. package/resources/devices/index.d.mts.map +1 -1
  82. package/resources/devices/index.d.ts +3 -2
  83. package/resources/devices/index.d.ts.map +1 -1
  84. package/resources/devices/index.js +3 -1
  85. package/resources/devices/index.js.map +1 -1
  86. package/resources/devices/index.mjs +1 -0
  87. package/resources/devices/index.mjs.map +1 -1
  88. package/resources/devices/keyboard.d.mts +8 -2
  89. package/resources/devices/keyboard.d.mts.map +1 -1
  90. package/resources/devices/keyboard.d.ts +8 -2
  91. package/resources/devices/keyboard.d.ts.map +1 -1
  92. package/resources/devices/recordings.d.mts +29 -6
  93. package/resources/devices/recordings.d.mts.map +1 -1
  94. package/resources/devices/recordings.d.ts +29 -6
  95. package/resources/devices/recordings.d.ts.map +1 -1
  96. package/resources/devices/recordings.js +9 -0
  97. package/resources/devices/recordings.js.map +1 -1
  98. package/resources/devices/recordings.mjs +9 -0
  99. package/resources/devices/recordings.mjs.map +1 -1
  100. package/resources/devices/screenshots.d.mts +72 -0
  101. package/resources/devices/screenshots.d.mts.map +1 -0
  102. package/resources/devices/screenshots.d.ts +72 -0
  103. package/resources/devices/screenshots.d.ts.map +1 -0
  104. package/resources/devices/screenshots.js +57 -0
  105. package/resources/devices/screenshots.js.map +1 -0
  106. package/resources/devices/screenshots.mjs +53 -0
  107. package/resources/devices/screenshots.mjs.map +1 -0
  108. package/resources/devices/state.d.mts +11 -2
  109. package/resources/devices/state.d.mts.map +1 -1
  110. package/resources/devices/state.d.ts +11 -2
  111. package/resources/devices/state.d.ts.map +1 -1
  112. package/resources/devices/state.js +5 -2
  113. package/resources/devices/state.js.map +1 -1
  114. package/resources/devices/state.mjs +5 -2
  115. package/resources/devices/state.mjs.map +1 -1
  116. package/resources/devices/traffic-sessions.d.mts +1 -11
  117. package/resources/devices/traffic-sessions.d.mts.map +1 -1
  118. package/resources/devices/traffic-sessions.d.ts +1 -11
  119. package/resources/devices/traffic-sessions.d.ts.map +1 -1
  120. package/resources/devices/traffic-sessions.js +2 -8
  121. package/resources/devices/traffic-sessions.js.map +1 -1
  122. package/resources/devices/traffic-sessions.mjs +2 -8
  123. package/resources/devices/traffic-sessions.mjs.map +1 -1
  124. package/resources/files.d.mts +8 -22
  125. package/resources/files.d.mts.map +1 -1
  126. package/resources/files.d.ts +8 -22
  127. package/resources/files.d.ts.map +1 -1
  128. package/resources/files.js +5 -13
  129. package/resources/files.js.map +1 -1
  130. package/resources/files.mjs +5 -13
  131. package/resources/files.mjs.map +1 -1
  132. package/resources/index.d.mts +6 -11
  133. package/resources/index.d.mts.map +1 -1
  134. package/resources/index.d.ts +6 -11
  135. package/resources/index.d.ts.map +1 -1
  136. package/resources/index.js +1 -11
  137. package/resources/index.js.map +1 -1
  138. package/resources/index.mjs +1 -6
  139. package/resources/index.mjs.map +1 -1
  140. package/resources/mailboxes/connections.d.mts +58 -0
  141. package/resources/mailboxes/connections.d.mts.map +1 -0
  142. package/resources/mailboxes/connections.d.ts +58 -0
  143. package/resources/mailboxes/connections.d.ts.map +1 -0
  144. package/resources/mailboxes/connections.js +41 -0
  145. package/resources/mailboxes/connections.js.map +1 -0
  146. package/resources/mailboxes/connections.mjs +37 -0
  147. package/resources/mailboxes/connections.mjs.map +1 -0
  148. package/resources/mailboxes/index.d.mts +2 -1
  149. package/resources/mailboxes/index.d.mts.map +1 -1
  150. package/resources/mailboxes/index.d.ts +2 -1
  151. package/resources/mailboxes/index.d.ts.map +1 -1
  152. package/resources/mailboxes/index.js +3 -1
  153. package/resources/mailboxes/index.js.map +1 -1
  154. package/resources/mailboxes/index.mjs +1 -0
  155. package/resources/mailboxes/index.mjs.map +1 -1
  156. package/resources/mailboxes/mailboxes.d.mts +74 -24
  157. package/resources/mailboxes/mailboxes.d.mts.map +1 -1
  158. package/resources/mailboxes/mailboxes.d.ts +74 -24
  159. package/resources/mailboxes/mailboxes.d.ts.map +1 -1
  160. package/resources/mailboxes/mailboxes.js +26 -8
  161. package/resources/mailboxes/mailboxes.js.map +1 -1
  162. package/resources/mailboxes/mailboxes.mjs +26 -8
  163. package/resources/mailboxes/mailboxes.mjs.map +1 -1
  164. package/resources/messages/index.d.mts +1 -1
  165. package/resources/messages/index.d.mts.map +1 -1
  166. package/resources/messages/index.d.ts +1 -1
  167. package/resources/messages/index.d.ts.map +1 -1
  168. package/resources/messages/index.js.map +1 -1
  169. package/resources/messages/index.mjs +1 -1
  170. package/resources/messages/index.mjs.map +1 -1
  171. package/resources/messages/messages.d.mts +26 -1
  172. package/resources/messages/messages.d.mts.map +1 -1
  173. package/resources/messages/messages.d.ts +26 -1
  174. package/resources/messages/messages.d.ts.map +1 -1
  175. package/resources/messages/messages.js +9 -0
  176. package/resources/messages/messages.js.map +1 -1
  177. package/resources/messages/messages.mjs +9 -0
  178. package/resources/messages/messages.mjs.map +1 -1
  179. package/resources/models.d.mts +12 -23
  180. package/resources/models.d.mts.map +1 -1
  181. package/resources/models.d.ts +12 -23
  182. package/resources/models.d.ts.map +1 -1
  183. package/resources/models.js +3 -4
  184. package/resources/models.js.map +1 -1
  185. package/resources/models.mjs +3 -4
  186. package/resources/models.mjs.map +1 -1
  187. package/resources/numbers/index.d.mts +2 -2
  188. package/resources/numbers/index.d.mts.map +1 -1
  189. package/resources/numbers/index.d.ts +2 -2
  190. package/resources/numbers/index.d.ts.map +1 -1
  191. package/resources/numbers/index.js.map +1 -1
  192. package/resources/numbers/index.mjs +1 -1
  193. package/resources/numbers/index.mjs.map +1 -1
  194. package/resources/numbers/messages.d.mts +57 -1
  195. package/resources/numbers/messages.d.mts.map +1 -1
  196. package/resources/numbers/messages.d.ts +57 -1
  197. package/resources/numbers/messages.d.ts.map +1 -1
  198. package/resources/numbers/messages.js +23 -0
  199. package/resources/numbers/messages.js.map +1 -1
  200. package/resources/numbers/messages.mjs +23 -0
  201. package/resources/numbers/messages.mjs.map +1 -1
  202. package/resources/numbers/numbers.d.mts +148 -44
  203. package/resources/numbers/numbers.d.mts.map +1 -1
  204. package/resources/numbers/numbers.d.ts +148 -44
  205. package/resources/numbers/numbers.d.ts.map +1 -1
  206. package/resources/numbers/numbers.js +3 -23
  207. package/resources/numbers/numbers.js.map +1 -1
  208. package/resources/numbers/numbers.mjs +4 -24
  209. package/resources/numbers/numbers.mjs.map +1 -1
  210. package/resources/proxies.d.mts +1 -87
  211. package/resources/proxies.d.mts.map +1 -1
  212. package/resources/proxies.d.ts +1 -87
  213. package/resources/proxies.d.ts.map +1 -1
  214. package/resources/proxies.js +0 -6
  215. package/resources/proxies.js.map +1 -1
  216. package/resources/proxies.mjs +0 -6
  217. package/resources/proxies.mjs.map +1 -1
  218. package/resources/tasks/tasks.d.mts +51 -188
  219. package/resources/tasks/tasks.d.mts.map +1 -1
  220. package/resources/tasks/tasks.d.ts +51 -188
  221. package/resources/tasks/tasks.d.ts.map +1 -1
  222. package/resources/tasks/tasks.js +2 -10
  223. package/resources/tasks/tasks.js.map +1 -1
  224. package/resources/tasks/tasks.mjs +2 -10
  225. package/resources/tasks/tasks.mjs.map +1 -1
  226. package/resources/webhooks/deliveries.d.mts +22 -31
  227. package/resources/webhooks/deliveries.d.mts.map +1 -1
  228. package/resources/webhooks/deliveries.d.ts +22 -31
  229. package/resources/webhooks/deliveries.d.ts.map +1 -1
  230. package/resources/webhooks/deliveries.js +4 -30
  231. package/resources/webhooks/deliveries.js.map +1 -1
  232. package/resources/webhooks/deliveries.mjs +4 -30
  233. package/resources/webhooks/deliveries.mjs.map +1 -1
  234. package/resources/webhooks/index.d.mts +2 -1
  235. package/resources/webhooks/index.d.mts.map +1 -1
  236. package/resources/webhooks/index.d.ts +2 -1
  237. package/resources/webhooks/index.d.ts.map +1 -1
  238. package/resources/webhooks/index.js +3 -1
  239. package/resources/webhooks/index.js.map +1 -1
  240. package/resources/webhooks/index.mjs +1 -0
  241. package/resources/webhooks/index.mjs.map +1 -1
  242. package/resources/webhooks/integrations.d.mts +77 -0
  243. package/resources/webhooks/integrations.d.mts.map +1 -0
  244. package/resources/webhooks/integrations.d.ts +77 -0
  245. package/resources/webhooks/integrations.d.ts.map +1 -0
  246. package/resources/webhooks/integrations.js +26 -0
  247. package/resources/webhooks/integrations.js.map +1 -0
  248. package/resources/webhooks/integrations.mjs +22 -0
  249. package/resources/webhooks/integrations.mjs.map +1 -0
  250. package/resources/webhooks/webhooks.d.mts +276 -104
  251. package/resources/webhooks/webhooks.d.mts.map +1 -1
  252. package/resources/webhooks/webhooks.d.ts +276 -104
  253. package/resources/webhooks/webhooks.d.ts.map +1 -1
  254. package/resources/webhooks/webhooks.js +32 -68
  255. package/resources/webhooks/webhooks.js.map +1 -1
  256. package/resources/webhooks/webhooks.mjs +32 -68
  257. package/resources/webhooks/webhooks.mjs.map +1 -1
  258. package/resources/workflows/action-catalog.d.mts +7 -3
  259. package/resources/workflows/action-catalog.d.mts.map +1 -1
  260. package/resources/workflows/action-catalog.d.ts +7 -3
  261. package/resources/workflows/action-catalog.d.ts.map +1 -1
  262. package/resources/workflows/actions/actions.d.mts +9 -5
  263. package/resources/workflows/actions/actions.d.mts.map +1 -1
  264. package/resources/workflows/actions/actions.d.ts +9 -5
  265. package/resources/workflows/actions/actions.d.ts.map +1 -1
  266. package/resources/workflows/actions/actions.js +4 -0
  267. package/resources/workflows/actions/actions.js.map +1 -1
  268. package/resources/workflows/actions/actions.mjs +4 -0
  269. package/resources/workflows/actions/actions.mjs.map +1 -1
  270. package/resources/workflows/events.d.mts +52 -5
  271. package/resources/workflows/events.d.mts.map +1 -1
  272. package/resources/workflows/events.d.ts +52 -5
  273. package/resources/workflows/events.d.ts.map +1 -1
  274. package/resources/workflows/executions/executions.d.mts +330 -0
  275. package/resources/workflows/executions/executions.d.mts.map +1 -0
  276. package/resources/workflows/executions/executions.d.ts +330 -0
  277. package/resources/workflows/executions/executions.d.ts.map +1 -0
  278. package/resources/workflows/executions/executions.js +49 -0
  279. package/resources/workflows/executions/executions.js.map +1 -0
  280. package/resources/workflows/executions/executions.mjs +44 -0
  281. package/resources/workflows/executions/executions.mjs.map +1 -0
  282. package/resources/workflows/executions/index.d.mts +3 -0
  283. package/resources/workflows/executions/index.d.mts.map +1 -0
  284. package/resources/workflows/executions/index.d.ts +3 -0
  285. package/resources/workflows/executions/index.d.ts.map +1 -0
  286. package/resources/workflows/executions/index.js +9 -0
  287. package/resources/workflows/executions/index.js.map +1 -0
  288. package/resources/workflows/executions/index.mjs +4 -0
  289. package/resources/workflows/executions/index.mjs.map +1 -0
  290. package/resources/workflows/executions/screenshots.d.mts +18 -0
  291. package/resources/workflows/executions/screenshots.d.mts.map +1 -0
  292. package/resources/workflows/executions/screenshots.d.ts +18 -0
  293. package/resources/workflows/executions/screenshots.d.ts.map +1 -0
  294. package/resources/workflows/executions/screenshots.js +23 -0
  295. package/resources/workflows/executions/screenshots.js.map +1 -0
  296. package/resources/workflows/executions/screenshots.mjs +19 -0
  297. package/resources/workflows/executions/screenshots.mjs.map +1 -0
  298. package/resources/workflows/executions.d.mts +1 -269
  299. package/resources/workflows/executions.d.mts.map +1 -1
  300. package/resources/workflows/executions.d.ts +1 -269
  301. package/resources/workflows/executions.d.ts.map +1 -1
  302. package/resources/workflows/executions.js +2 -37
  303. package/resources/workflows/executions.js.map +1 -1
  304. package/resources/workflows/executions.mjs +1 -35
  305. package/resources/workflows/executions.mjs.map +1 -1
  306. package/resources/workflows/flows/actions.d.mts +39 -0
  307. package/resources/workflows/flows/actions.d.mts.map +1 -1
  308. package/resources/workflows/flows/actions.d.ts +39 -0
  309. package/resources/workflows/flows/actions.d.ts.map +1 -1
  310. package/resources/workflows/flows/actions.js +4 -0
  311. package/resources/workflows/flows/actions.js.map +1 -1
  312. package/resources/workflows/flows/actions.mjs +4 -0
  313. package/resources/workflows/flows/actions.mjs.map +1 -1
  314. package/resources/workflows/flows/flows.d.mts +574 -27
  315. package/resources/workflows/flows/flows.d.mts.map +1 -1
  316. package/resources/workflows/flows/flows.d.ts +574 -27
  317. package/resources/workflows/flows/flows.d.ts.map +1 -1
  318. package/resources/workflows/flows/flows.js +78 -3
  319. package/resources/workflows/flows/flows.js.map +1 -1
  320. package/resources/workflows/flows/flows.mjs +78 -3
  321. package/resources/workflows/flows/flows.mjs.map +1 -1
  322. package/resources/workflows/flows/index.d.mts +1 -1
  323. package/resources/workflows/flows/index.d.mts.map +1 -1
  324. package/resources/workflows/flows/index.d.ts +1 -1
  325. package/resources/workflows/flows/index.d.ts.map +1 -1
  326. package/resources/workflows/flows/index.js.map +1 -1
  327. package/resources/workflows/flows/index.mjs.map +1 -1
  328. package/resources/workflows/index.d.mts +2 -2
  329. package/resources/workflows/index.d.mts.map +1 -1
  330. package/resources/workflows/index.d.ts +2 -2
  331. package/resources/workflows/index.d.ts.map +1 -1
  332. package/resources/workflows/index.js +4 -4
  333. package/resources/workflows/index.js.map +1 -1
  334. package/resources/workflows/index.mjs +1 -1
  335. package/resources/workflows/index.mjs.map +1 -1
  336. package/resources/workflows/triggers.d.mts +110 -15
  337. package/resources/workflows/triggers.d.mts.map +1 -1
  338. package/resources/workflows/triggers.d.ts +110 -15
  339. package/resources/workflows/triggers.d.ts.map +1 -1
  340. package/resources/workflows/triggers.js +13 -1
  341. package/resources/workflows/triggers.js.map +1 -1
  342. package/resources/workflows/triggers.mjs +13 -1
  343. package/resources/workflows/triggers.mjs.map +1 -1
  344. package/resources/workflows/workflows.d.mts +4 -4
  345. package/resources/workflows/workflows.d.mts.map +1 -1
  346. package/resources/workflows/workflows.d.ts +4 -4
  347. package/resources/workflows/workflows.d.ts.map +1 -1
  348. package/resources/workflows/workflows.js +2 -2
  349. package/resources/workflows/workflows.js.map +1 -1
  350. package/resources/workflows/workflows.mjs +2 -2
  351. package/resources/workflows/workflows.mjs.map +1 -1
  352. package/src/client.ts +14 -103
  353. package/src/resources/apps.ts +39 -26
  354. package/src/resources/assistant/conversations.ts +12 -27
  355. package/src/resources/connect/connect.ts +6 -0
  356. package/src/resources/connect/index.ts +3 -0
  357. package/src/resources/connect/proxies.ts +127 -25
  358. package/src/resources/connect/users.ts +4 -4
  359. package/src/resources/devices/actions.ts +28 -5
  360. package/src/resources/devices/apps.ts +18 -0
  361. package/src/resources/devices/browser.ts +9 -3
  362. package/src/resources/devices/devices.ts +139 -41
  363. package/src/resources/devices/index.ts +13 -0
  364. package/src/resources/devices/keyboard.ts +9 -2
  365. package/src/resources/devices/recordings.ts +45 -5
  366. package/src/resources/devices/screenshots.ts +140 -0
  367. package/src/resources/devices/state.ts +12 -2
  368. package/src/resources/devices/traffic-sessions.ts +2 -19
  369. package/src/resources/files.ts +11 -32
  370. package/src/resources/index.ts +9 -43
  371. package/src/resources/mailboxes/connections.ts +84 -0
  372. package/src/resources/mailboxes/index.ts +7 -0
  373. package/src/resources/mailboxes/mailboxes.ts +147 -24
  374. package/src/resources/messages/index.ts +6 -1
  375. package/src/resources/messages/messages.ts +55 -1
  376. package/src/resources/models.ts +16 -23
  377. package/src/resources/numbers/index.ts +7 -2
  378. package/src/resources/numbers/messages.ts +88 -1
  379. package/src/resources/numbers/numbers.ts +171 -62
  380. package/src/resources/proxies.ts +0 -110
  381. package/src/resources/tasks/tasks.ts +57 -198
  382. package/src/resources/webhooks/deliveries.ts +26 -31
  383. package/src/resources/webhooks/index.ts +6 -1
  384. package/src/resources/webhooks/integrations.ts +107 -0
  385. package/src/resources/webhooks/webhooks.ts +315 -114
  386. package/src/resources/workflows/action-catalog.ts +11 -3
  387. package/src/resources/workflows/actions/actions.ts +9 -5
  388. package/src/resources/workflows/events.ts +66 -5
  389. package/src/resources/workflows/executions/executions.ts +510 -0
  390. package/src/resources/workflows/executions/index.ts +12 -0
  391. package/src/resources/workflows/executions/screenshots.ts +34 -0
  392. package/src/resources/workflows/executions.ts +1 -412
  393. package/src/resources/workflows/flows/actions.ts +46 -0
  394. package/src/resources/workflows/flows/flows.ts +811 -26
  395. package/src/resources/workflows/flows/index.ts +11 -0
  396. package/src/resources/workflows/index.ts +12 -1
  397. package/src/resources/workflows/triggers.ts +131 -16
  398. package/src/resources/workflows/workflows.ts +32 -10
  399. package/src/version.ts +1 -1
  400. package/version.d.mts +1 -1
  401. package/version.d.ts +1 -1
  402. package/version.js +1 -1
  403. package/version.mjs +1 -1
  404. package/resources/app-events/app-events.d.mts +0 -81
  405. package/resources/app-events/app-events.d.mts.map +0 -1
  406. package/resources/app-events/app-events.d.ts +0 -81
  407. package/resources/app-events/app-events.d.ts.map +0 -1
  408. package/resources/app-events/app-events.js +0 -33
  409. package/resources/app-events/app-events.js.map +0 -1
  410. package/resources/app-events/app-events.mjs +0 -28
  411. package/resources/app-events/app-events.mjs.map +0 -1
  412. package/resources/app-events/catalog.d.mts +0 -64
  413. package/resources/app-events/catalog.d.mts.map +0 -1
  414. package/resources/app-events/catalog.d.ts +0 -64
  415. package/resources/app-events/catalog.d.ts.map +0 -1
  416. package/resources/app-events/catalog.js +0 -25
  417. package/resources/app-events/catalog.js.map +0 -1
  418. package/resources/app-events/catalog.mjs +0 -21
  419. package/resources/app-events/catalog.mjs.map +0 -1
  420. package/resources/app-events/index.d.mts +0 -3
  421. package/resources/app-events/index.d.mts.map +0 -1
  422. package/resources/app-events/index.d.ts +0 -3
  423. package/resources/app-events/index.d.ts.map +0 -1
  424. package/resources/app-events/index.js +0 -9
  425. package/resources/app-events/index.js.map +0 -1
  426. package/resources/app-events/index.mjs +0 -4
  427. package/resources/app-events/index.mjs.map +0 -1
  428. package/resources/app-events.d.mts +0 -2
  429. package/resources/app-events.d.mts.map +0 -1
  430. package/resources/app-events.d.ts +0 -2
  431. package/resources/app-events.d.ts.map +0 -1
  432. package/resources/app-events.js +0 -6
  433. package/resources/app-events.js.map +0 -1
  434. package/resources/app-events.mjs +0 -3
  435. package/resources/app-events.mjs.map +0 -1
  436. package/resources/carriers.d.mts +0 -331
  437. package/resources/carriers.d.mts.map +0 -1
  438. package/resources/carriers.d.ts +0 -331
  439. package/resources/carriers.d.ts.map +0 -1
  440. package/resources/carriers.js +0 -46
  441. package/resources/carriers.js.map +0 -1
  442. package/resources/carriers.mjs +0 -42
  443. package/resources/carriers.mjs.map +0 -1
  444. package/resources/notifications.d.mts +0 -86
  445. package/resources/notifications.d.mts.map +0 -1
  446. package/resources/notifications.d.ts +0 -86
  447. package/resources/notifications.d.ts.map +0 -1
  448. package/resources/notifications.js +0 -55
  449. package/resources/notifications.js.map +0 -1
  450. package/resources/notifications.mjs +0 -51
  451. package/resources/notifications.mjs.map +0 -1
  452. package/resources/profiles.d.mts +0 -147
  453. package/resources/profiles.d.mts.map +0 -1
  454. package/resources/profiles.d.ts +0 -147
  455. package/resources/profiles.d.ts.map +0 -1
  456. package/resources/profiles.js +0 -40
  457. package/resources/profiles.js.map +0 -1
  458. package/resources/profiles.mjs +0 -36
  459. package/resources/profiles.mjs.map +0 -1
  460. package/resources/store/apps.d.mts +0 -119
  461. package/resources/store/apps.d.mts.map +0 -1
  462. package/resources/store/apps.d.ts +0 -119
  463. package/resources/store/apps.d.ts.map +0 -1
  464. package/resources/store/apps.js +0 -31
  465. package/resources/store/apps.js.map +0 -1
  466. package/resources/store/apps.mjs +0 -27
  467. package/resources/store/apps.mjs.map +0 -1
  468. package/resources/store/index.d.mts +0 -3
  469. package/resources/store/index.d.mts.map +0 -1
  470. package/resources/store/index.d.ts +0 -3
  471. package/resources/store/index.d.ts.map +0 -1
  472. package/resources/store/index.js +0 -9
  473. package/resources/store/index.js.map +0 -1
  474. package/resources/store/index.mjs +0 -4
  475. package/resources/store/index.mjs.map +0 -1
  476. package/resources/store/store.d.mts +0 -20
  477. package/resources/store/store.d.mts.map +0 -1
  478. package/resources/store/store.d.ts +0 -20
  479. package/resources/store/store.d.ts.map +0 -1
  480. package/resources/store/store.js +0 -23
  481. package/resources/store/store.js.map +0 -1
  482. package/resources/store/store.mjs +0 -18
  483. package/resources/store/store.mjs.map +0 -1
  484. package/resources/store.d.mts +0 -2
  485. package/resources/store.d.mts.map +0 -1
  486. package/resources/store.d.ts +0 -2
  487. package/resources/store.d.ts.map +0 -1
  488. package/resources/store.js +0 -6
  489. package/resources/store.js.map +0 -1
  490. package/resources/store.mjs +0 -3
  491. package/resources/store.mjs.map +0 -1
  492. package/src/resources/app-events/app-events.ts +0 -133
  493. package/src/resources/app-events/catalog.ts +0 -100
  494. package/src/resources/app-events/index.ts +0 -9
  495. package/src/resources/app-events.ts +0 -3
  496. package/src/resources/carriers.ts +0 -508
  497. package/src/resources/notifications.ts +0 -118
  498. package/src/resources/profiles.ts +0 -232
  499. package/src/resources/store/apps.ts +0 -704
  500. package/src/resources/store/index.ts +0 -10
  501. package/src/resources/store/store.ts +0 -36
  502. package/src/resources/store.ts +0 -3
@@ -17,14 +17,25 @@ export {
17
17
  type FlowUpdateResponse,
18
18
  type FlowListResponse,
19
19
  type FlowDeleteResponse,
20
+ type FlowActivateResponse,
20
21
  type FlowCapacityResponse,
21
22
  type FlowCloneResponse,
23
+ type FlowDeliveryOptionsResponse,
22
24
  type FlowDryRunResponse,
23
25
  type FlowListRepairsResponse,
26
+ type FlowRunResponse,
27
+ type FlowTemplateContextResponse,
24
28
  type FlowUnblockResponse,
29
+ type FlowValidateResponse,
30
+ type FlowVerifyResponse,
25
31
  type FlowCreateParams,
26
32
  type FlowUpdateParams,
27
33
  type FlowListParams,
34
+ type FlowActivateParams,
28
35
  type FlowCloneParams,
29
36
  type FlowDryRunParams,
37
+ type FlowRunParams,
38
+ type FlowTemplateContextParams,
39
+ type FlowValidateParams,
40
+ type FlowVerifyParams,
30
41
  } from './flows';
@@ -32,7 +32,7 @@ export {
32
32
  type ExecutionGetMetricsResponse,
33
33
  type ExecutionListParams,
34
34
  type ExecutionGetMetricsParams,
35
- } from './executions';
35
+ } from './executions/index';
36
36
  export {
37
37
  Flows,
38
38
  type FlowCreateResponse,
@@ -40,16 +40,27 @@ export {
40
40
  type FlowUpdateResponse,
41
41
  type FlowListResponse,
42
42
  type FlowDeleteResponse,
43
+ type FlowActivateResponse,
43
44
  type FlowCapacityResponse,
44
45
  type FlowCloneResponse,
46
+ type FlowDeliveryOptionsResponse,
45
47
  type FlowDryRunResponse,
46
48
  type FlowListRepairsResponse,
49
+ type FlowRunResponse,
50
+ type FlowTemplateContextResponse,
47
51
  type FlowUnblockResponse,
52
+ type FlowValidateResponse,
53
+ type FlowVerifyResponse,
48
54
  type FlowCreateParams,
49
55
  type FlowUpdateParams,
50
56
  type FlowListParams,
57
+ type FlowActivateParams,
51
58
  type FlowCloneParams,
52
59
  type FlowDryRunParams,
60
+ type FlowRunParams,
61
+ type FlowTemplateContextParams,
62
+ type FlowValidateParams,
63
+ type FlowVerifyParams,
53
64
  } from './flows/index';
54
65
  export { Timezones, type TimezoneListResponse } from './timezones';
55
66
  export {
@@ -12,6 +12,10 @@ export class Triggers extends APIResource {
12
12
  * Each type requires its own fields (e.g. `eventType` and optional `conditions`
13
13
  * for events, `scheduleRule` and `timezone` for schedules, `customPayloadSchema`
14
14
  * for custom triggers); mismatched fields are rejected.
15
+ *
16
+ * Supports an optional `Idempotency-Key` header (1-255 printable ASCII
17
+ * characters). Replays with the same key and an identical body return the original
18
+ * 201; a changed body under the same key returns 422 `idempotency_key_reused`.
15
19
  */
16
20
  create(body: TriggerCreateParams, options?: RequestOptions): APIPromise<TriggerCreateResponse> {
17
21
  return this._client.post('/triggers', { body, ...options });
@@ -68,12 +72,20 @@ export class Triggers extends APIResource {
68
72
  * Payload validation:
69
73
  *
70
74
  * - If the trigger has a `customPayloadSchema`, the payload is validated against
71
- * it (JSON Schema via AJV).
75
+ * it (JSON Schema).
72
76
  * - If no schema is configured, the payload only needs to be a JSON object — any
73
77
  * keys and values are accepted.
74
78
  *
75
79
  * Only triggers with `activation = "custom"` can be fired through this endpoint;
76
80
  * event and schedule triggers return 409.
81
+ *
82
+ * Supports an optional `Idempotency-Key` header (1-255 printable ASCII
83
+ * characters), which maps to the derived `invocationId` used for fan-out
84
+ * deduplication. The payload is bound to the key on the first accepted fire,
85
+ * before fan-out. A repeat with the same key and an identical payload returns 202
86
+ * with `Idempotent-Replayed: true` (`deduplicated: true` when flows were skipped;
87
+ * `enqueuedCount` counts only executions enqueued by that call); a changed payload
88
+ * under the same key returns 422 `idempotency_key_reused`.
77
89
  */
78
90
  fire(
79
91
  triggerID: string,
@@ -186,7 +198,7 @@ export namespace TriggerRetrieveResponse {
186
198
 
187
199
  ownerId: string;
188
200
 
189
- scheduleRule: unknown;
201
+ scheduleRule: Data.ScheduleRule;
190
202
 
191
203
  timezone: string | null;
192
204
 
@@ -201,6 +213,43 @@ export namespace TriggerRetrieveResponse {
201
213
 
202
214
  nextFireTime?: string | null;
203
215
  }
216
+
217
+ export namespace Data {
218
+ export interface ScheduleRule {
219
+ type: 'once' | 'cron' | 'recurring';
220
+
221
+ /**
222
+ * ISO 8601 datetime (for type=once)
223
+ */
224
+ dateTime?: string;
225
+
226
+ /**
227
+ * Cron expression (for type=cron)
228
+ */
229
+ expression?: string;
230
+
231
+ /**
232
+ * Optional per-occurrence random window around the nominal schedule time
233
+ */
234
+ jitter?: ScheduleRule.Jitter;
235
+
236
+ /**
237
+ * RRULE string (for type=recurring)
238
+ */
239
+ rrule?: string;
240
+ }
241
+
242
+ export namespace ScheduleRule {
243
+ /**
244
+ * Optional per-occurrence random window around the nominal schedule time
245
+ */
246
+ export interface Jitter {
247
+ afterMinutes?: number;
248
+
249
+ beforeMinutes?: number;
250
+ }
251
+ }
252
+ }
204
253
  }
205
254
 
206
255
  export interface TriggerUpdateResponse {
@@ -227,7 +276,7 @@ export namespace TriggerUpdateResponse {
227
276
 
228
277
  ownerId: string;
229
278
 
230
- scheduleRule: unknown;
279
+ scheduleRule: Data.ScheduleRule;
231
280
 
232
281
  timezone: string | null;
233
282
 
@@ -242,6 +291,43 @@ export namespace TriggerUpdateResponse {
242
291
 
243
292
  nextFireTime?: string | null;
244
293
  }
294
+
295
+ export namespace Data {
296
+ export interface ScheduleRule {
297
+ type: 'once' | 'cron' | 'recurring';
298
+
299
+ /**
300
+ * ISO 8601 datetime (for type=once)
301
+ */
302
+ dateTime?: string;
303
+
304
+ /**
305
+ * Cron expression (for type=cron)
306
+ */
307
+ expression?: string;
308
+
309
+ /**
310
+ * Optional per-occurrence random window around the nominal schedule time
311
+ */
312
+ jitter?: ScheduleRule.Jitter;
313
+
314
+ /**
315
+ * RRULE string (for type=recurring)
316
+ */
317
+ rrule?: string;
318
+ }
319
+
320
+ export namespace ScheduleRule {
321
+ /**
322
+ * Optional per-occurrence random window around the nominal schedule time
323
+ */
324
+ export interface Jitter {
325
+ afterMinutes?: number;
326
+
327
+ beforeMinutes?: number;
328
+ }
329
+ }
330
+ }
245
331
  }
246
332
 
247
333
  export interface TriggerListResponse {
@@ -270,7 +356,7 @@ export namespace TriggerListResponse {
270
356
 
271
357
  ownerId: string;
272
358
 
273
- scheduleRule: unknown;
359
+ scheduleRule: Item.ScheduleRule;
274
360
 
275
361
  timezone: string | null;
276
362
 
@@ -285,6 +371,43 @@ export namespace TriggerListResponse {
285
371
 
286
372
  nextFireTime?: string | null;
287
373
  }
374
+
375
+ export namespace Item {
376
+ export interface ScheduleRule {
377
+ type: 'once' | 'cron' | 'recurring';
378
+
379
+ /**
380
+ * ISO 8601 datetime (for type=once)
381
+ */
382
+ dateTime?: string;
383
+
384
+ /**
385
+ * Cron expression (for type=cron)
386
+ */
387
+ expression?: string;
388
+
389
+ /**
390
+ * Optional per-occurrence random window around the nominal schedule time
391
+ */
392
+ jitter?: ScheduleRule.Jitter;
393
+
394
+ /**
395
+ * RRULE string (for type=recurring)
396
+ */
397
+ rrule?: string;
398
+ }
399
+
400
+ export namespace ScheduleRule {
401
+ /**
402
+ * Optional per-occurrence random window around the nominal schedule time
403
+ */
404
+ export interface Jitter {
405
+ afterMinutes?: number;
406
+
407
+ beforeMinutes?: number;
408
+ }
409
+ }
410
+ }
288
411
  }
289
412
 
290
413
  export interface TriggerDeleteResponse {
@@ -294,8 +417,8 @@ export interface TriggerDeleteResponse {
294
417
  export interface TriggerFireResponse {
295
418
  /**
296
419
  * True when at least one attached flow was skipped because it already had an
297
- * execution for this (flow, invocationId). Only ever true when the client supplied
298
- * invocationId.
420
+ * execution for this (flow, invocationId). Only ever true when the request carried
421
+ * an `Idempotency-Key`.
299
422
  */
300
423
  deduplicated: boolean;
301
424
 
@@ -307,9 +430,8 @@ export interface TriggerFireResponse {
307
430
  enqueuedCount: number;
308
431
 
309
432
  /**
310
- * Unique ID for this fire invocation (echoes the client-supplied invocationId, or
311
- * a generated one). Job IDs in the execution queue are derived from it (one per
312
- * enqueued flow).
433
+ * Unique ID for this fire invocation (derived from the `Idempotency-Key` header
434
+ * when one is sent, otherwise generated).
313
435
  */
314
436
  invocationId: string;
315
437
  }
@@ -465,13 +587,6 @@ export interface TriggerFireParams {
465
587
  * otherwise only "must be a JSON object" is enforced.
466
588
  */
467
589
  payload: { [key: string]: unknown };
468
-
469
- /**
470
- * Optional client-supplied idempotency key. When provided, a flow that already has
471
- * an execution for this (flow, invocationId) is skipped and `deduplicated` is
472
- * true. When omitted a fresh server-side id is generated (no dedup).
473
- */
474
- invocationId?: string;
475
590
  }
476
591
 
477
592
  export declare namespace Triggers {
@@ -16,16 +16,6 @@ import {
16
16
  EventIngestResponse,
17
17
  Events,
18
18
  } from './events';
19
- import * as ExecutionsAPI from './executions';
20
- import {
21
- ExecutionAbortResponse,
22
- ExecutionGetMetricsParams,
23
- ExecutionGetMetricsResponse,
24
- ExecutionListParams,
25
- ExecutionListResponse,
26
- ExecutionRetrieveResponse,
27
- Executions,
28
- } from './executions';
29
19
  import * as TimezonesAPI from './timezones';
30
20
  import { TimezoneListResponse, Timezones } from './timezones';
31
21
  import * as TriggersAPI from './triggers';
@@ -54,23 +44,44 @@ import {
54
44
  ActionUpdateResponse,
55
45
  Actions,
56
46
  } from './actions/actions';
47
+ import * as ExecutionsAPI from './executions/executions';
48
+ import {
49
+ ExecutionAbortResponse,
50
+ ExecutionGetMetricsParams,
51
+ ExecutionGetMetricsResponse,
52
+ ExecutionListParams,
53
+ ExecutionListResponse,
54
+ ExecutionRetrieveResponse,
55
+ Executions,
56
+ } from './executions/executions';
57
57
  import * as FlowsAPI from './flows/flows';
58
58
  import {
59
+ FlowActivateParams,
60
+ FlowActivateResponse,
59
61
  FlowCapacityResponse,
60
62
  FlowCloneParams,
61
63
  FlowCloneResponse,
62
64
  FlowCreateParams,
63
65
  FlowCreateResponse,
64
66
  FlowDeleteResponse,
67
+ FlowDeliveryOptionsResponse,
65
68
  FlowDryRunParams,
66
69
  FlowDryRunResponse,
67
70
  FlowListParams,
68
71
  FlowListRepairsResponse,
69
72
  FlowListResponse,
70
73
  FlowRetrieveResponse,
74
+ FlowRunParams,
75
+ FlowRunResponse,
76
+ FlowTemplateContextParams,
77
+ FlowTemplateContextResponse,
71
78
  FlowUnblockResponse,
72
79
  FlowUpdateParams,
73
80
  FlowUpdateResponse,
81
+ FlowValidateParams,
82
+ FlowValidateResponse,
83
+ FlowVerifyParams,
84
+ FlowVerifyResponse,
74
85
  Flows,
75
86
  } from './flows/flows';
76
87
 
@@ -133,16 +144,27 @@ export declare namespace Workflows {
133
144
  type FlowUpdateResponse as FlowUpdateResponse,
134
145
  type FlowListResponse as FlowListResponse,
135
146
  type FlowDeleteResponse as FlowDeleteResponse,
147
+ type FlowActivateResponse as FlowActivateResponse,
136
148
  type FlowCapacityResponse as FlowCapacityResponse,
137
149
  type FlowCloneResponse as FlowCloneResponse,
150
+ type FlowDeliveryOptionsResponse as FlowDeliveryOptionsResponse,
138
151
  type FlowDryRunResponse as FlowDryRunResponse,
139
152
  type FlowListRepairsResponse as FlowListRepairsResponse,
153
+ type FlowRunResponse as FlowRunResponse,
154
+ type FlowTemplateContextResponse as FlowTemplateContextResponse,
140
155
  type FlowUnblockResponse as FlowUnblockResponse,
156
+ type FlowValidateResponse as FlowValidateResponse,
157
+ type FlowVerifyResponse as FlowVerifyResponse,
141
158
  type FlowCreateParams as FlowCreateParams,
142
159
  type FlowUpdateParams as FlowUpdateParams,
143
160
  type FlowListParams as FlowListParams,
161
+ type FlowActivateParams as FlowActivateParams,
144
162
  type FlowCloneParams as FlowCloneParams,
145
163
  type FlowDryRunParams as FlowDryRunParams,
164
+ type FlowRunParams as FlowRunParams,
165
+ type FlowTemplateContextParams as FlowTemplateContextParams,
166
+ type FlowValidateParams as FlowValidateParams,
167
+ type FlowVerifyParams as FlowVerifyParams,
146
168
  };
147
169
 
148
170
  export {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.5.0'; // x-release-please-version
1
+ export const VERSION = '6.0.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.5.0";
1
+ export declare const VERSION = "6.0.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.5.0";
1
+ export declare const VERSION = "6.0.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '5.5.0'; // x-release-please-version
4
+ exports.VERSION = '6.0.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.5.0'; // x-release-please-version
1
+ export const VERSION = '6.0.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,81 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as Shared from "../shared.mjs";
3
- import * as CatalogAPI from "./catalog.mjs";
4
- import { Catalog, CatalogListResponse, CatalogRetrieveResponse } from "./catalog.mjs";
5
- import { APIPromise } from "../../core/api-promise.mjs";
6
- import { RequestOptions } from "../../internal/request-options.mjs";
7
- export declare class AppEvents extends APIResource {
8
- catalog: CatalogAPI.Catalog;
9
- /**
10
- * Fetch a single structured app event by its ID, including its typed payload,
11
- * source, and originating device. Returns 404 if no event matches.
12
- */
13
- retrieve(id: string, options?: RequestOptions): APIPromise<AppEventRetrieveResponse>;
14
- /**
15
- * Structured, app-scoped events (e.g. app.whatsapp.message_received) derived from
16
- * raw device notifications. Typed columns — not raw payloads (those stay in the
17
- * event log).
18
- */
19
- list(query?: AppEventListParams | null | undefined, options?: RequestOptions): APIPromise<AppEventListResponse>;
20
- }
21
- export interface AppEventRetrieveResponse {
22
- data: AppEventRetrieveResponse.Data;
23
- }
24
- export declare namespace AppEventRetrieveResponse {
25
- interface Data {
26
- id: string;
27
- createdAt: string | null;
28
- createdBy: string | null;
29
- deviceId: string | null;
30
- eventType: string;
31
- occurredAt: string | null;
32
- ownerId: string;
33
- payload: {
34
- [key: string]: unknown;
35
- };
36
- rawEventId: string | null;
37
- source: 'app' | 'system' | 'device' | 'webhook';
38
- /**
39
- * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
40
- */
41
- userId: string;
42
- }
43
- }
44
- export interface AppEventListResponse {
45
- items: Array<AppEventListResponse.Item>;
46
- pagination: Shared.Pagination;
47
- }
48
- export declare namespace AppEventListResponse {
49
- interface Item {
50
- id: string;
51
- createdAt: string | null;
52
- createdBy: string | null;
53
- deviceId: string | null;
54
- eventType: string;
55
- occurredAt: string | null;
56
- ownerId: string;
57
- payload: {
58
- [key: string]: unknown;
59
- };
60
- rawEventId: string | null;
61
- source: 'app' | 'system' | 'device' | 'webhook';
62
- /**
63
- * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
64
- */
65
- userId: string;
66
- }
67
- }
68
- export interface AppEventListParams {
69
- deviceId?: string;
70
- eventType?: string;
71
- from?: string | null;
72
- page?: number;
73
- pageSize?: number;
74
- source?: 'app' | 'system' | 'device' | 'webhook';
75
- to?: string | null;
76
- }
77
- export declare namespace AppEvents {
78
- export { type AppEventRetrieveResponse as AppEventRetrieveResponse, type AppEventListResponse as AppEventListResponse, type AppEventListParams as AppEventListParams, };
79
- export { Catalog as Catalog, type CatalogRetrieveResponse as CatalogRetrieveResponse, type CatalogListResponse as CatalogListResponse, };
80
- }
81
- //# sourceMappingURL=app-events.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-events.d.mts","sourceRoot":"","sources":["../../src/resources/app-events/app-events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,UAAU,sBAAk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81 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as Shared from "../shared.js";
3
- import * as CatalogAPI from "./catalog.js";
4
- import { Catalog, CatalogListResponse, CatalogRetrieveResponse } from "./catalog.js";
5
- import { APIPromise } from "../../core/api-promise.js";
6
- import { RequestOptions } from "../../internal/request-options.js";
7
- export declare class AppEvents extends APIResource {
8
- catalog: CatalogAPI.Catalog;
9
- /**
10
- * Fetch a single structured app event by its ID, including its typed payload,
11
- * source, and originating device. Returns 404 if no event matches.
12
- */
13
- retrieve(id: string, options?: RequestOptions): APIPromise<AppEventRetrieveResponse>;
14
- /**
15
- * Structured, app-scoped events (e.g. app.whatsapp.message_received) derived from
16
- * raw device notifications. Typed columns — not raw payloads (those stay in the
17
- * event log).
18
- */
19
- list(query?: AppEventListParams | null | undefined, options?: RequestOptions): APIPromise<AppEventListResponse>;
20
- }
21
- export interface AppEventRetrieveResponse {
22
- data: AppEventRetrieveResponse.Data;
23
- }
24
- export declare namespace AppEventRetrieveResponse {
25
- interface Data {
26
- id: string;
27
- createdAt: string | null;
28
- createdBy: string | null;
29
- deviceId: string | null;
30
- eventType: string;
31
- occurredAt: string | null;
32
- ownerId: string;
33
- payload: {
34
- [key: string]: unknown;
35
- };
36
- rawEventId: string | null;
37
- source: 'app' | 'system' | 'device' | 'webhook';
38
- /**
39
- * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
40
- */
41
- userId: string;
42
- }
43
- }
44
- export interface AppEventListResponse {
45
- items: Array<AppEventListResponse.Item>;
46
- pagination: Shared.Pagination;
47
- }
48
- export declare namespace AppEventListResponse {
49
- interface Item {
50
- id: string;
51
- createdAt: string | null;
52
- createdBy: string | null;
53
- deviceId: string | null;
54
- eventType: string;
55
- occurredAt: string | null;
56
- ownerId: string;
57
- payload: {
58
- [key: string]: unknown;
59
- };
60
- rawEventId: string | null;
61
- source: 'app' | 'system' | 'device' | 'webhook';
62
- /**
63
- * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
64
- */
65
- userId: string;
66
- }
67
- }
68
- export interface AppEventListParams {
69
- deviceId?: string;
70
- eventType?: string;
71
- from?: string | null;
72
- page?: number;
73
- pageSize?: number;
74
- source?: 'app' | 'system' | 'device' | 'webhook';
75
- to?: string | null;
76
- }
77
- export declare namespace AppEvents {
78
- export { type AppEventRetrieveResponse as AppEventRetrieveResponse, type AppEventListResponse as AppEventListResponse, type AppEventListParams as AppEventListParams, };
79
- export { Catalog as Catalog, type CatalogRetrieveResponse as CatalogRetrieveResponse, type CatalogListResponse as CatalogListResponse, };
80
- }
81
- //# sourceMappingURL=app-events.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-events.d.ts","sourceRoot":"","sources":["../../src/resources/app-events/app-events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,qBAAkB;AAClF,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpF;;;;OAIG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;CAGpC;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,wBAAwB,CAAC,IAAI,CAAC;CACrC;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAA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,CAAC,EAAE,MAAM,CAAC;IAEnB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IAEjD,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB;AAID,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.AppEvents = void 0;
5
- const tslib_1 = require("../../internal/tslib.js");
6
- const resource_1 = require("../../core/resource.js");
7
- const CatalogAPI = tslib_1.__importStar(require("./catalog.js"));
8
- const catalog_1 = require("./catalog.js");
9
- const path_1 = require("../../internal/utils/path.js");
10
- class AppEvents extends resource_1.APIResource {
11
- constructor() {
12
- super(...arguments);
13
- this.catalog = new CatalogAPI.Catalog(this._client);
14
- }
15
- /**
16
- * Fetch a single structured app event by its ID, including its typed payload,
17
- * source, and originating device. Returns 404 if no event matches.
18
- */
19
- retrieve(id, options) {
20
- return this._client.get((0, path_1.path) `/app-events/${id}`, options);
21
- }
22
- /**
23
- * Structured, app-scoped events (e.g. app.whatsapp.message_received) derived from
24
- * raw device notifications. Typed columns — not raw payloads (those stay in the
25
- * event log).
26
- */
27
- list(query = {}, options) {
28
- return this._client.get('/app-events', { query, ...options });
29
- }
30
- }
31
- exports.AppEvents = AppEvents;
32
- AppEvents.Catalog = catalog_1.Catalog;
33
- //# sourceMappingURL=app-events.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-events.js","sourceRoot":"","sources":["../../src/resources/app-events/app-events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,iEAAwC;AACxC,0CAAkF;AAGlF,uDAAiD;AAEjD,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAqBrE,CAAC;IAnBC;;;OAGG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;CACF;AAtBD,8BAsBC;AAsFD,SAAS,CAAC,OAAO,GAAG,iBAAO,CAAC"}
@@ -1,28 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import * as CatalogAPI from "./catalog.mjs";
4
- import { Catalog } from "./catalog.mjs";
5
- import { path } from "../../internal/utils/path.mjs";
6
- export class AppEvents extends APIResource {
7
- constructor() {
8
- super(...arguments);
9
- this.catalog = new CatalogAPI.Catalog(this._client);
10
- }
11
- /**
12
- * Fetch a single structured app event by its ID, including its typed payload,
13
- * source, and originating device. Returns 404 if no event matches.
14
- */
15
- retrieve(id, options) {
16
- return this._client.get(path `/app-events/${id}`, options);
17
- }
18
- /**
19
- * Structured, app-scoped events (e.g. app.whatsapp.message_received) derived from
20
- * raw device notifications. Typed columns — not raw payloads (those stay in the
21
- * event log).
22
- */
23
- list(query = {}, options) {
24
- return this._client.get('/app-events', { query, ...options });
25
- }
26
- }
27
- AppEvents.Catalog = Catalog;
28
- //# sourceMappingURL=app-events.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-events.mjs","sourceRoot":"","sources":["../../src/resources/app-events/app-events.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,OAAO,EAAgD,sBAAkB;AAGlF,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAqBrE,CAAC;IAnBC;;;OAGG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;CACF;AAsFD,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC"}