linear-webhook-schemas 0.1.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 (436) hide show
  1. package/README.md +305 -0
  2. package/dist/chunk-0qr90tt3.js +5 -0
  3. package/dist/chunk-0qr90tt3.js.map +10 -0
  4. package/dist/chunk-10qc2z4z.js +5 -0
  5. package/dist/chunk-10qc2z4z.js.map +10 -0
  6. package/dist/chunk-121zs6wc.js +5 -0
  7. package/dist/chunk-121zs6wc.js.map +10 -0
  8. package/dist/chunk-2a8kdgrs.js +5 -0
  9. package/dist/chunk-2a8kdgrs.js.map +10 -0
  10. package/dist/chunk-2bb8wasr.js +5 -0
  11. package/dist/chunk-2bb8wasr.js.map +10 -0
  12. package/dist/chunk-2dv5yntc.js +5 -0
  13. package/dist/chunk-2dv5yntc.js.map +10 -0
  14. package/dist/chunk-2rknxvpt.js +5 -0
  15. package/dist/chunk-2rknxvpt.js.map +10 -0
  16. package/dist/chunk-38h1z3d7.js +5 -0
  17. package/dist/chunk-38h1z3d7.js.map +10 -0
  18. package/dist/chunk-43td17x8.js +5 -0
  19. package/dist/chunk-43td17x8.js.map +10 -0
  20. package/dist/chunk-4knhzr53.js +5 -0
  21. package/dist/chunk-4knhzr53.js.map +10 -0
  22. package/dist/chunk-52p88ndf.js +5 -0
  23. package/dist/chunk-52p88ndf.js.map +10 -0
  24. package/dist/chunk-5mwcbq58.js +5 -0
  25. package/dist/chunk-5mwcbq58.js.map +10 -0
  26. package/dist/chunk-785hc2kn.js +5 -0
  27. package/dist/chunk-785hc2kn.js.map +10 -0
  28. package/dist/chunk-7h02gnfh.js +5 -0
  29. package/dist/chunk-7h02gnfh.js.map +10 -0
  30. package/dist/chunk-7ztadp9q.js +5 -0
  31. package/dist/chunk-7ztadp9q.js.map +10 -0
  32. package/dist/chunk-8aaskwt4.js +5 -0
  33. package/dist/chunk-8aaskwt4.js.map +10 -0
  34. package/dist/chunk-8f8wwkzn.js +5 -0
  35. package/dist/chunk-8f8wwkzn.js.map +10 -0
  36. package/dist/chunk-8m83b853.js +5 -0
  37. package/dist/chunk-8m83b853.js.map +10 -0
  38. package/dist/chunk-8rk4xcjc.js +5 -0
  39. package/dist/chunk-8rk4xcjc.js.map +10 -0
  40. package/dist/chunk-8w4xdr6e.js +5 -0
  41. package/dist/chunk-8w4xdr6e.js.map +10 -0
  42. package/dist/chunk-8zacppr8.js +5 -0
  43. package/dist/chunk-8zacppr8.js.map +10 -0
  44. package/dist/chunk-965chxgp.js +5 -0
  45. package/dist/chunk-965chxgp.js.map +10 -0
  46. package/dist/chunk-a2bnbnx7.js +5 -0
  47. package/dist/chunk-a2bnbnx7.js.map +10 -0
  48. package/dist/chunk-abmpb94z.js +5 -0
  49. package/dist/chunk-abmpb94z.js.map +10 -0
  50. package/dist/chunk-acsjd945.js +5 -0
  51. package/dist/chunk-acsjd945.js.map +10 -0
  52. package/dist/chunk-aemv2ehs.js +5 -0
  53. package/dist/chunk-aemv2ehs.js.map +10 -0
  54. package/dist/chunk-bs12ntcj.js +5 -0
  55. package/dist/chunk-bs12ntcj.js.map +10 -0
  56. package/dist/chunk-cmj73gcv.js +5 -0
  57. package/dist/chunk-cmj73gcv.js.map +10 -0
  58. package/dist/chunk-cv11yh1b.js +5 -0
  59. package/dist/chunk-cv11yh1b.js.map +10 -0
  60. package/dist/chunk-d3bt4tkx.js +5 -0
  61. package/dist/chunk-d3bt4tkx.js.map +10 -0
  62. package/dist/chunk-d3sevqk2.js +5 -0
  63. package/dist/chunk-d3sevqk2.js.map +10 -0
  64. package/dist/chunk-dvz4cbrh.js +5 -0
  65. package/dist/chunk-dvz4cbrh.js.map +10 -0
  66. package/dist/chunk-e3zrnhqk.js +5 -0
  67. package/dist/chunk-e3zrnhqk.js.map +10 -0
  68. package/dist/chunk-ep9988q4.js +5 -0
  69. package/dist/chunk-ep9988q4.js.map +10 -0
  70. package/dist/chunk-fjp93q1m.js +3 -0
  71. package/dist/chunk-fjp93q1m.js.map +9 -0
  72. package/dist/chunk-fkw0h7y4.js +5 -0
  73. package/dist/chunk-fkw0h7y4.js.map +10 -0
  74. package/dist/chunk-g03gbbd7.js +5 -0
  75. package/dist/chunk-g03gbbd7.js.map +10 -0
  76. package/dist/chunk-g0we75pb.js +5 -0
  77. package/dist/chunk-g0we75pb.js.map +10 -0
  78. package/dist/chunk-gv89cr71.js +5 -0
  79. package/dist/chunk-gv89cr71.js.map +10 -0
  80. package/dist/chunk-h04vfzkq.js +5 -0
  81. package/dist/chunk-h04vfzkq.js.map +10 -0
  82. package/dist/chunk-hf9mxh05.js +5 -0
  83. package/dist/chunk-hf9mxh05.js.map +10 -0
  84. package/dist/chunk-hgy8gcrr.js +5 -0
  85. package/dist/chunk-hgy8gcrr.js.map +10 -0
  86. package/dist/chunk-hmp10qd6.js +5 -0
  87. package/dist/chunk-hmp10qd6.js.map +10 -0
  88. package/dist/chunk-hr1x68nd.js +5 -0
  89. package/dist/chunk-hr1x68nd.js.map +10 -0
  90. package/dist/chunk-j2q8669x.js +5 -0
  91. package/dist/chunk-j2q8669x.js.map +10 -0
  92. package/dist/chunk-jrez9dwa.js +3 -0
  93. package/dist/chunk-jrez9dwa.js.map +9 -0
  94. package/dist/chunk-jxf3fe8r.js +5 -0
  95. package/dist/chunk-jxf3fe8r.js.map +10 -0
  96. package/dist/chunk-kxa08enh.js +5 -0
  97. package/dist/chunk-kxa08enh.js.map +10 -0
  98. package/dist/chunk-m9rm416s.js +5 -0
  99. package/dist/chunk-m9rm416s.js.map +10 -0
  100. package/dist/chunk-nbefnfmz.js +5 -0
  101. package/dist/chunk-nbefnfmz.js.map +10 -0
  102. package/dist/chunk-ncy9vx0v.js +5 -0
  103. package/dist/chunk-ncy9vx0v.js.map +10 -0
  104. package/dist/chunk-nd26gc1w.js +5 -0
  105. package/dist/chunk-nd26gc1w.js.map +10 -0
  106. package/dist/chunk-nwjjynpx.js +5 -0
  107. package/dist/chunk-nwjjynpx.js.map +10 -0
  108. package/dist/chunk-p0mr62v1.js +5 -0
  109. package/dist/chunk-p0mr62v1.js.map +10 -0
  110. package/dist/chunk-prkw4je1.js +5 -0
  111. package/dist/chunk-prkw4je1.js.map +10 -0
  112. package/dist/chunk-qk9x32xv.js +5 -0
  113. package/dist/chunk-qk9x32xv.js.map +10 -0
  114. package/dist/chunk-qpzj4ks7.js +5 -0
  115. package/dist/chunk-qpzj4ks7.js.map +10 -0
  116. package/dist/chunk-s44yz2ck.js +5 -0
  117. package/dist/chunk-s44yz2ck.js.map +10 -0
  118. package/dist/chunk-sg291rn7.js +5 -0
  119. package/dist/chunk-sg291rn7.js.map +10 -0
  120. package/dist/chunk-t2nwyt9f.js +5 -0
  121. package/dist/chunk-t2nwyt9f.js.map +10 -0
  122. package/dist/chunk-trbzx292.js +5 -0
  123. package/dist/chunk-trbzx292.js.map +10 -0
  124. package/dist/chunk-v4yyydaj.js +5 -0
  125. package/dist/chunk-v4yyydaj.js.map +10 -0
  126. package/dist/chunk-vx90dpjq.js +5 -0
  127. package/dist/chunk-vx90dpjq.js.map +10 -0
  128. package/dist/chunk-wkaev1pd.js +5 -0
  129. package/dist/chunk-wkaev1pd.js.map +10 -0
  130. package/dist/chunk-x5qpdv2m.js +5 -0
  131. package/dist/chunk-x5qpdv2m.js.map +10 -0
  132. package/dist/chunk-xkrpfzn7.js +5 -0
  133. package/dist/chunk-xkrpfzn7.js.map +10 -0
  134. package/dist/chunk-y8s93sa5.js +5 -0
  135. package/dist/chunk-y8s93sa5.js.map +10 -0
  136. package/dist/chunk-yj5vhjze.js +5 -0
  137. package/dist/chunk-yj5vhjze.js.map +10 -0
  138. package/dist/chunk-ymtzfmhz.js +5 -0
  139. package/dist/chunk-ymtzfmhz.js.map +10 -0
  140. package/dist/chunk-z9psvpxg.js +5 -0
  141. package/dist/chunk-z9psvpxg.js.map +10 -0
  142. package/dist/chunk-zv5zqp8t.js +5 -0
  143. package/dist/chunk-zv5zqp8t.js.map +10 -0
  144. package/dist/event-types.d.ts +4 -0
  145. package/dist/event-types.d.ts.map +1 -0
  146. package/dist/event-types.js +4 -0
  147. package/dist/event-types.js.map +9 -0
  148. package/dist/fixtures/index.d.ts +56 -0
  149. package/dist/fixtures/index.d.ts.map +1 -0
  150. package/dist/fixtures/index.js +4 -0
  151. package/dist/fixtures/index.js.map +10 -0
  152. package/dist/index.d.ts +5 -0
  153. package/dist/index.d.ts.map +1 -0
  154. package/dist/index.js +4 -0
  155. package/dist/index.js.map +9 -0
  156. package/dist/registry.d.ts +161 -0
  157. package/dist/registry.d.ts.map +1 -0
  158. package/dist/registry.js +4 -0
  159. package/dist/registry.js.map +9 -0
  160. package/dist/schemas/agent-session-event.d.ts +134 -0
  161. package/dist/schemas/agent-session-event.d.ts.map +1 -0
  162. package/dist/schemas/agent-session-event.js +4 -0
  163. package/dist/schemas/agent-session-event.js.map +9 -0
  164. package/dist/schemas/app-user-notification-event.d.ts +134 -0
  165. package/dist/schemas/app-user-notification-event.d.ts.map +1 -0
  166. package/dist/schemas/app-user-notification-event.js +4 -0
  167. package/dist/schemas/app-user-notification-event.js.map +9 -0
  168. package/dist/schemas/attachment-create-event.d.ts +278 -0
  169. package/dist/schemas/attachment-create-event.d.ts.map +1 -0
  170. package/dist/schemas/attachment-create-event.js +4 -0
  171. package/dist/schemas/attachment-create-event.js.map +9 -0
  172. package/dist/schemas/attachment-remove-event.d.ts +278 -0
  173. package/dist/schemas/attachment-remove-event.d.ts.map +1 -0
  174. package/dist/schemas/attachment-remove-event.js +4 -0
  175. package/dist/schemas/attachment-remove-event.js.map +9 -0
  176. package/dist/schemas/attachment-update-event.d.ts +278 -0
  177. package/dist/schemas/attachment-update-event.d.ts.map +1 -0
  178. package/dist/schemas/attachment-update-event.js +4 -0
  179. package/dist/schemas/attachment-update-event.js.map +9 -0
  180. package/dist/schemas/audit-entry-create-event.d.ts +242 -0
  181. package/dist/schemas/audit-entry-create-event.d.ts.map +1 -0
  182. package/dist/schemas/audit-entry-create-event.js +4 -0
  183. package/dist/schemas/audit-entry-create-event.js.map +9 -0
  184. package/dist/schemas/audit-entry-remove-event.d.ts +242 -0
  185. package/dist/schemas/audit-entry-remove-event.d.ts.map +1 -0
  186. package/dist/schemas/audit-entry-remove-event.js +4 -0
  187. package/dist/schemas/audit-entry-remove-event.js.map +9 -0
  188. package/dist/schemas/audit-entry-update-event.d.ts +242 -0
  189. package/dist/schemas/audit-entry-update-event.d.ts.map +1 -0
  190. package/dist/schemas/audit-entry-update-event.js +4 -0
  191. package/dist/schemas/audit-entry-update-event.js.map +9 -0
  192. package/dist/schemas/comment-create-event.d.ts +854 -0
  193. package/dist/schemas/comment-create-event.d.ts.map +1 -0
  194. package/dist/schemas/comment-create-event.js +4 -0
  195. package/dist/schemas/comment-create-event.js.map +9 -0
  196. package/dist/schemas/comment-remove-event.d.ts +854 -0
  197. package/dist/schemas/comment-remove-event.d.ts.map +1 -0
  198. package/dist/schemas/comment-remove-event.js +4 -0
  199. package/dist/schemas/comment-remove-event.js.map +9 -0
  200. package/dist/schemas/comment-update-event.d.ts +854 -0
  201. package/dist/schemas/comment-update-event.d.ts.map +1 -0
  202. package/dist/schemas/comment-update-event.js +4 -0
  203. package/dist/schemas/comment-update-event.js.map +9 -0
  204. package/dist/schemas/customer-create-event.d.ts +485 -0
  205. package/dist/schemas/customer-create-event.d.ts.map +1 -0
  206. package/dist/schemas/customer-create-event.js +4 -0
  207. package/dist/schemas/customer-create-event.js.map +9 -0
  208. package/dist/schemas/customer-need-create-event.d.ts +602 -0
  209. package/dist/schemas/customer-need-create-event.d.ts.map +1 -0
  210. package/dist/schemas/customer-need-create-event.js +4 -0
  211. package/dist/schemas/customer-need-create-event.js.map +9 -0
  212. package/dist/schemas/customer-need-remove-event.d.ts +602 -0
  213. package/dist/schemas/customer-need-remove-event.d.ts.map +1 -0
  214. package/dist/schemas/customer-need-remove-event.js +4 -0
  215. package/dist/schemas/customer-need-remove-event.js.map +9 -0
  216. package/dist/schemas/customer-need-update-event.d.ts +602 -0
  217. package/dist/schemas/customer-need-update-event.d.ts.map +1 -0
  218. package/dist/schemas/customer-need-update-event.js +4 -0
  219. package/dist/schemas/customer-need-update-event.js.map +9 -0
  220. package/dist/schemas/customer-remove-event.d.ts +485 -0
  221. package/dist/schemas/customer-remove-event.d.ts.map +1 -0
  222. package/dist/schemas/customer-remove-event.js +4 -0
  223. package/dist/schemas/customer-remove-event.js.map +9 -0
  224. package/dist/schemas/customer-update-event.d.ts +485 -0
  225. package/dist/schemas/customer-update-event.d.ts.map +1 -0
  226. package/dist/schemas/customer-update-event.js +4 -0
  227. package/dist/schemas/customer-update-event.js.map +9 -0
  228. package/dist/schemas/cycle-create-event.d.ts +314 -0
  229. package/dist/schemas/cycle-create-event.d.ts.map +1 -0
  230. package/dist/schemas/cycle-create-event.js +4 -0
  231. package/dist/schemas/cycle-create-event.js.map +9 -0
  232. package/dist/schemas/cycle-remove-event.d.ts +314 -0
  233. package/dist/schemas/cycle-remove-event.d.ts.map +1 -0
  234. package/dist/schemas/cycle-remove-event.js +4 -0
  235. package/dist/schemas/cycle-remove-event.js.map +9 -0
  236. package/dist/schemas/cycle-update-event.d.ts +314 -0
  237. package/dist/schemas/cycle-update-event.d.ts.map +1 -0
  238. package/dist/schemas/cycle-update-event.js +4 -0
  239. package/dist/schemas/cycle-update-event.js.map +9 -0
  240. package/dist/schemas/document-create-event.d.ts +323 -0
  241. package/dist/schemas/document-create-event.d.ts.map +1 -0
  242. package/dist/schemas/document-create-event.js +4 -0
  243. package/dist/schemas/document-create-event.js.map +9 -0
  244. package/dist/schemas/document-remove-event.d.ts +323 -0
  245. package/dist/schemas/document-remove-event.d.ts.map +1 -0
  246. package/dist/schemas/document-remove-event.js +4 -0
  247. package/dist/schemas/document-remove-event.js.map +9 -0
  248. package/dist/schemas/document-update-event.d.ts +323 -0
  249. package/dist/schemas/document-update-event.d.ts.map +1 -0
  250. package/dist/schemas/document-update-event.js +4 -0
  251. package/dist/schemas/document-update-event.js.map +9 -0
  252. package/dist/schemas/index.d.ts +102 -0
  253. package/dist/schemas/index.d.ts.map +1 -0
  254. package/dist/schemas/index.js +4 -0
  255. package/dist/schemas/index.js.map +9 -0
  256. package/dist/schemas/initiative-create-event.d.ts +827 -0
  257. package/dist/schemas/initiative-create-event.d.ts.map +1 -0
  258. package/dist/schemas/initiative-create-event.js +4 -0
  259. package/dist/schemas/initiative-create-event.js.map +9 -0
  260. package/dist/schemas/initiative-remove-event.d.ts +827 -0
  261. package/dist/schemas/initiative-remove-event.d.ts.map +1 -0
  262. package/dist/schemas/initiative-remove-event.js +4 -0
  263. package/dist/schemas/initiative-remove-event.js.map +9 -0
  264. package/dist/schemas/initiative-update-create-event.d.ts +413 -0
  265. package/dist/schemas/initiative-update-create-event.d.ts.map +1 -0
  266. package/dist/schemas/initiative-update-create-event.js +4 -0
  267. package/dist/schemas/initiative-update-create-event.js.map +9 -0
  268. package/dist/schemas/initiative-update-event.d.ts +827 -0
  269. package/dist/schemas/initiative-update-event.d.ts.map +1 -0
  270. package/dist/schemas/initiative-update-event.js +4 -0
  271. package/dist/schemas/initiative-update-event.js.map +9 -0
  272. package/dist/schemas/initiative-update-remove-event.d.ts +413 -0
  273. package/dist/schemas/initiative-update-remove-event.d.ts.map +1 -0
  274. package/dist/schemas/initiative-update-remove-event.js +4 -0
  275. package/dist/schemas/initiative-update-remove-event.js.map +9 -0
  276. package/dist/schemas/initiative-update-update-event.d.ts +413 -0
  277. package/dist/schemas/initiative-update-update-event.d.ts.map +1 -0
  278. package/dist/schemas/initiative-update-update-event.js +4 -0
  279. package/dist/schemas/initiative-update-update-event.js.map +9 -0
  280. package/dist/schemas/issue-create-event.d.ts +1529 -0
  281. package/dist/schemas/issue-create-event.d.ts.map +1 -0
  282. package/dist/schemas/issue-create-event.js +4 -0
  283. package/dist/schemas/issue-create-event.js.map +9 -0
  284. package/dist/schemas/issue-label-create-event.d.ts +251 -0
  285. package/dist/schemas/issue-label-create-event.d.ts.map +1 -0
  286. package/dist/schemas/issue-label-create-event.js +4 -0
  287. package/dist/schemas/issue-label-create-event.js.map +9 -0
  288. package/dist/schemas/issue-label-remove-event.d.ts +251 -0
  289. package/dist/schemas/issue-label-remove-event.d.ts.map +1 -0
  290. package/dist/schemas/issue-label-remove-event.js +4 -0
  291. package/dist/schemas/issue-label-remove-event.js.map +9 -0
  292. package/dist/schemas/issue-label-update-event.d.ts +251 -0
  293. package/dist/schemas/issue-label-update-event.d.ts.map +1 -0
  294. package/dist/schemas/issue-label-update-event.js +4 -0
  295. package/dist/schemas/issue-label-update-event.js.map +9 -0
  296. package/dist/schemas/issue-remove-event.d.ts +1529 -0
  297. package/dist/schemas/issue-remove-event.d.ts.map +1 -0
  298. package/dist/schemas/issue-remove-event.js +4 -0
  299. package/dist/schemas/issue-remove-event.js.map +9 -0
  300. package/dist/schemas/issue-sla-event.d.ts +1529 -0
  301. package/dist/schemas/issue-sla-event.d.ts.map +1 -0
  302. package/dist/schemas/issue-sla-event.js +4 -0
  303. package/dist/schemas/issue-sla-event.js.map +9 -0
  304. package/dist/schemas/issue-update-event.d.ts +1529 -0
  305. package/dist/schemas/issue-update-event.d.ts.map +1 -0
  306. package/dist/schemas/issue-update-event.js +4 -0
  307. package/dist/schemas/issue-update-event.js.map +9 -0
  308. package/dist/schemas/oauth-app-revoked-event.d.ts +29 -0
  309. package/dist/schemas/oauth-app-revoked-event.d.ts.map +1 -0
  310. package/dist/schemas/oauth-app-revoked-event.js +4 -0
  311. package/dist/schemas/oauth-app-revoked-event.js.map +9 -0
  312. package/dist/schemas/permission-change-event.d.ts +134 -0
  313. package/dist/schemas/permission-change-event.d.ts.map +1 -0
  314. package/dist/schemas/permission-change-event.js +4 -0
  315. package/dist/schemas/permission-change-event.js.map +9 -0
  316. package/dist/schemas/project-create-event.d.ts +872 -0
  317. package/dist/schemas/project-create-event.d.ts.map +1 -0
  318. package/dist/schemas/project-create-event.js +4 -0
  319. package/dist/schemas/project-create-event.js.map +9 -0
  320. package/dist/schemas/project-remove-event.d.ts +872 -0
  321. package/dist/schemas/project-remove-event.d.ts.map +1 -0
  322. package/dist/schemas/project-remove-event.js +4 -0
  323. package/dist/schemas/project-remove-event.js.map +9 -0
  324. package/dist/schemas/project-update-create-event.d.ts +413 -0
  325. package/dist/schemas/project-update-create-event.d.ts.map +1 -0
  326. package/dist/schemas/project-update-create-event.js +4 -0
  327. package/dist/schemas/project-update-create-event.js.map +9 -0
  328. package/dist/schemas/project-update-event.d.ts +872 -0
  329. package/dist/schemas/project-update-event.d.ts.map +1 -0
  330. package/dist/schemas/project-update-event.js +4 -0
  331. package/dist/schemas/project-update-event.js.map +9 -0
  332. package/dist/schemas/project-update-remove-event.d.ts +413 -0
  333. package/dist/schemas/project-update-remove-event.d.ts.map +1 -0
  334. package/dist/schemas/project-update-remove-event.js +4 -0
  335. package/dist/schemas/project-update-remove-event.js.map +9 -0
  336. package/dist/schemas/project-update-update-event.d.ts +413 -0
  337. package/dist/schemas/project-update-update-event.d.ts.map +1 -0
  338. package/dist/schemas/project-update-update-event.js +4 -0
  339. package/dist/schemas/project-update-update-event.js.map +9 -0
  340. package/dist/schemas/reaction-create-event.d.ts +584 -0
  341. package/dist/schemas/reaction-create-event.d.ts.map +1 -0
  342. package/dist/schemas/reaction-create-event.js +4 -0
  343. package/dist/schemas/reaction-create-event.js.map +9 -0
  344. package/dist/schemas/reaction-remove-event.d.ts +584 -0
  345. package/dist/schemas/reaction-remove-event.d.ts.map +1 -0
  346. package/dist/schemas/reaction-remove-event.js +4 -0
  347. package/dist/schemas/reaction-remove-event.js.map +9 -0
  348. package/dist/schemas/reaction-update-event.d.ts +584 -0
  349. package/dist/schemas/reaction-update-event.d.ts.map +1 -0
  350. package/dist/schemas/reaction-update-event.js +4 -0
  351. package/dist/schemas/reaction-update-event.js.map +9 -0
  352. package/dist/schemas/shared/actor.d.ts +77 -0
  353. package/dist/schemas/shared/actor.d.ts.map +1 -0
  354. package/dist/schemas/shared/actor.js +4 -0
  355. package/dist/schemas/shared/actor.js.map +9 -0
  356. package/dist/schemas/shared/attachment.d.ts +53 -0
  357. package/dist/schemas/shared/attachment.d.ts.map +1 -0
  358. package/dist/schemas/shared/attachment.js +4 -0
  359. package/dist/schemas/shared/attachment.js.map +9 -0
  360. package/dist/schemas/shared/audit-entry.d.ts +41 -0
  361. package/dist/schemas/shared/audit-entry.d.ts.map +1 -0
  362. package/dist/schemas/shared/audit-entry.js +4 -0
  363. package/dist/schemas/shared/audit-entry.js.map +9 -0
  364. package/dist/schemas/shared/comment.d.ts +245 -0
  365. package/dist/schemas/shared/comment.d.ts.map +1 -0
  366. package/dist/schemas/shared/comment.js +4 -0
  367. package/dist/schemas/shared/comment.js.map +9 -0
  368. package/dist/schemas/shared/customer-need.d.ts +161 -0
  369. package/dist/schemas/shared/customer-need.d.ts.map +1 -0
  370. package/dist/schemas/shared/customer-need.js +4 -0
  371. package/dist/schemas/shared/customer-need.js.map +9 -0
  372. package/dist/schemas/shared/customer.d.ts +122 -0
  373. package/dist/schemas/shared/customer.d.ts.map +1 -0
  374. package/dist/schemas/shared/customer.js +4 -0
  375. package/dist/schemas/shared/customer.js.map +9 -0
  376. package/dist/schemas/shared/cycle.d.ts +65 -0
  377. package/dist/schemas/shared/cycle.d.ts.map +1 -0
  378. package/dist/schemas/shared/cycle.js +4 -0
  379. package/dist/schemas/shared/cycle.js.map +9 -0
  380. package/dist/schemas/shared/document.d.ts +68 -0
  381. package/dist/schemas/shared/document.d.ts.map +1 -0
  382. package/dist/schemas/shared/document.js +4 -0
  383. package/dist/schemas/shared/document.js.map +9 -0
  384. package/dist/schemas/shared/index.d.ts +34 -0
  385. package/dist/schemas/shared/index.d.ts.map +1 -0
  386. package/dist/schemas/shared/index.js +4 -0
  387. package/dist/schemas/shared/index.js.map +9 -0
  388. package/dist/schemas/shared/initiative-update.d.ts +98 -0
  389. package/dist/schemas/shared/initiative-update.d.ts.map +1 -0
  390. package/dist/schemas/shared/initiative-update.js +4 -0
  391. package/dist/schemas/shared/initiative-update.js.map +9 -0
  392. package/dist/schemas/shared/initiative.d.ts +236 -0
  393. package/dist/schemas/shared/initiative.d.ts.map +1 -0
  394. package/dist/schemas/shared/initiative.js +4 -0
  395. package/dist/schemas/shared/initiative.js.map +9 -0
  396. package/dist/schemas/shared/issue-label.d.ts +44 -0
  397. package/dist/schemas/shared/issue-label.d.ts.map +1 -0
  398. package/dist/schemas/shared/issue-label.js +4 -0
  399. package/dist/schemas/shared/issue-label.js.map +9 -0
  400. package/dist/schemas/shared/issue.d.ts +470 -0
  401. package/dist/schemas/shared/issue.d.ts.map +1 -0
  402. package/dist/schemas/shared/issue.js +4 -0
  403. package/dist/schemas/shared/issue.js.map +9 -0
  404. package/dist/schemas/shared/project-update.d.ts +98 -0
  405. package/dist/schemas/shared/project-update.d.ts.map +1 -0
  406. package/dist/schemas/shared/project-update.js +4 -0
  407. package/dist/schemas/shared/project-update.js.map +9 -0
  408. package/dist/schemas/shared/project.d.ts +251 -0
  409. package/dist/schemas/shared/project.d.ts.map +1 -0
  410. package/dist/schemas/shared/project.js +4 -0
  411. package/dist/schemas/shared/project.js.map +9 -0
  412. package/dist/schemas/shared/reaction.d.ts +155 -0
  413. package/dist/schemas/shared/reaction.d.ts.map +1 -0
  414. package/dist/schemas/shared/reaction.js +4 -0
  415. package/dist/schemas/shared/reaction.js.map +9 -0
  416. package/dist/schemas/shared/user.d.ts +59 -0
  417. package/dist/schemas/shared/user.d.ts.map +1 -0
  418. package/dist/schemas/shared/user.js +4 -0
  419. package/dist/schemas/shared/user.js.map +9 -0
  420. package/dist/schemas/shared/webhook-envelope.d.ts +134 -0
  421. package/dist/schemas/shared/webhook-envelope.d.ts.map +1 -0
  422. package/dist/schemas/shared/webhook-envelope.js +4 -0
  423. package/dist/schemas/shared/webhook-envelope.js.map +9 -0
  424. package/dist/schemas/user-create-event.d.ts +296 -0
  425. package/dist/schemas/user-create-event.d.ts.map +1 -0
  426. package/dist/schemas/user-create-event.js +4 -0
  427. package/dist/schemas/user-create-event.js.map +9 -0
  428. package/dist/schemas/user-remove-event.d.ts +296 -0
  429. package/dist/schemas/user-remove-event.d.ts.map +1 -0
  430. package/dist/schemas/user-remove-event.js +4 -0
  431. package/dist/schemas/user-remove-event.js.map +9 -0
  432. package/dist/schemas/user-update-event.d.ts +296 -0
  433. package/dist/schemas/user-update-event.d.ts.map +1 -0
  434. package/dist/schemas/user-update-event.js +4 -0
  435. package/dist/schemas/user-update-event.js.map +9 -0
  436. package/package.json +474 -0
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/registry.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { linearWebhookEventTypes } from './event-types.js';\nimport type { LinearWebhookEventType } from './event-types.js';\nimport { isLinearWebhookEventType } from './event-types.js';\n\n// Standard data-change event schemas\nimport { IssueCreateEventSchema } from './schemas/issue-create-event.js';\nimport { IssueUpdateEventSchema } from './schemas/issue-update-event.js';\nimport { IssueRemoveEventSchema } from './schemas/issue-remove-event.js';\nimport { CommentCreateEventSchema } from './schemas/comment-create-event.js';\nimport { CommentUpdateEventSchema } from './schemas/comment-update-event.js';\nimport { CommentRemoveEventSchema } from './schemas/comment-remove-event.js';\nimport { AttachmentCreateEventSchema } from './schemas/attachment-create-event.js';\nimport { AttachmentUpdateEventSchema } from './schemas/attachment-update-event.js';\nimport { AttachmentRemoveEventSchema } from './schemas/attachment-remove-event.js';\nimport { IssueLabelCreateEventSchema } from './schemas/issue-label-create-event.js';\nimport { IssueLabelUpdateEventSchema } from './schemas/issue-label-update-event.js';\nimport { IssueLabelRemoveEventSchema } from './schemas/issue-label-remove-event.js';\nimport { ReactionCreateEventSchema } from './schemas/reaction-create-event.js';\nimport { ReactionUpdateEventSchema } from './schemas/reaction-update-event.js';\nimport { ReactionRemoveEventSchema } from './schemas/reaction-remove-event.js';\nimport { ProjectCreateEventSchema } from './schemas/project-create-event.js';\nimport { ProjectUpdateEventSchema } from './schemas/project-update-event.js';\nimport { ProjectRemoveEventSchema } from './schemas/project-remove-event.js';\nimport { ProjectUpdateCreateEventSchema } from './schemas/project-update-create-event.js';\nimport { ProjectUpdateUpdateEventSchema } from './schemas/project-update-update-event.js';\nimport { ProjectUpdateRemoveEventSchema } from './schemas/project-update-remove-event.js';\nimport { CycleCreateEventSchema } from './schemas/cycle-create-event.js';\nimport { CycleUpdateEventSchema } from './schemas/cycle-update-event.js';\nimport { CycleRemoveEventSchema } from './schemas/cycle-remove-event.js';\nimport { DocumentCreateEventSchema } from './schemas/document-create-event.js';\nimport { DocumentUpdateEventSchema } from './schemas/document-update-event.js';\nimport { DocumentRemoveEventSchema } from './schemas/document-remove-event.js';\nimport { UserCreateEventSchema } from './schemas/user-create-event.js';\nimport { UserUpdateEventSchema } from './schemas/user-update-event.js';\nimport { UserRemoveEventSchema } from './schemas/user-remove-event.js';\nimport { InitiativeCreateEventSchema } from './schemas/initiative-create-event.js';\nimport { InitiativeUpdateEventSchema } from './schemas/initiative-update-event.js';\nimport { InitiativeRemoveEventSchema } from './schemas/initiative-remove-event.js';\nimport { InitiativeUpdateCreateEventSchema } from './schemas/initiative-update-create-event.js';\nimport { InitiativeUpdateUpdateEventSchema } from './schemas/initiative-update-update-event.js';\nimport { InitiativeUpdateRemoveEventSchema } from './schemas/initiative-update-remove-event.js';\nimport { CustomerCreateEventSchema } from './schemas/customer-create-event.js';\nimport { CustomerUpdateEventSchema } from './schemas/customer-update-event.js';\nimport { CustomerRemoveEventSchema } from './schemas/customer-remove-event.js';\nimport { CustomerNeedCreateEventSchema } from './schemas/customer-need-create-event.js';\nimport { CustomerNeedUpdateEventSchema } from './schemas/customer-need-update-event.js';\nimport { CustomerNeedRemoveEventSchema } from './schemas/customer-need-remove-event.js';\nimport { AuditEntryCreateEventSchema } from './schemas/audit-entry-create-event.js';\nimport { AuditEntryUpdateEventSchema } from './schemas/audit-entry-update-event.js';\nimport { AuditEntryRemoveEventSchema } from './schemas/audit-entry-remove-event.js';\n\n// Special-case event schemas\nimport { IssueSlaEventSchema } from './schemas/issue-sla-event.js';\nimport { OAuthAppRevokedEventSchema } from './schemas/oauth-app-revoked-event.js';\nimport { AppUserNotificationEventSchema } from './schemas/app-user-notification-event.js';\nimport { PermissionChangeEventSchema } from './schemas/permission-change-event.js';\nimport { AgentSessionEventSchema } from './schemas/agent-session-event.js';\n\n// Re-export event types\nexport { linearWebhookEventTypes, isLinearWebhookEventType };\nexport type { LinearWebhookEventType };\n\n/**\n * Maps each LinearWebhookEventType to a union of its possible event schemas.\n */\nconst schemaRegistryMap = new Map<LinearWebhookEventType, z.ZodTypeAny>([\n ['Issue', z.union([IssueCreateEventSchema, IssueUpdateEventSchema, IssueRemoveEventSchema])],\n ['Comment', z.union([CommentCreateEventSchema, CommentUpdateEventSchema, CommentRemoveEventSchema])],\n ['Attachment', z.union([AttachmentCreateEventSchema, AttachmentUpdateEventSchema, AttachmentRemoveEventSchema])],\n ['IssueLabel', z.union([IssueLabelCreateEventSchema, IssueLabelUpdateEventSchema, IssueLabelRemoveEventSchema])],\n ['Reaction', z.union([ReactionCreateEventSchema, ReactionUpdateEventSchema, ReactionRemoveEventSchema])],\n ['Project', z.union([ProjectCreateEventSchema, ProjectUpdateEventSchema, ProjectRemoveEventSchema])],\n ['ProjectUpdate', z.union([ProjectUpdateCreateEventSchema, ProjectUpdateUpdateEventSchema, ProjectUpdateRemoveEventSchema])],\n ['Cycle', z.union([CycleCreateEventSchema, CycleUpdateEventSchema, CycleRemoveEventSchema])],\n ['Document', z.union([DocumentCreateEventSchema, DocumentUpdateEventSchema, DocumentRemoveEventSchema])],\n ['User', z.union([UserCreateEventSchema, UserUpdateEventSchema, UserRemoveEventSchema])],\n ['Initiative', z.union([InitiativeCreateEventSchema, InitiativeUpdateEventSchema, InitiativeRemoveEventSchema])],\n ['InitiativeUpdate', z.union([InitiativeUpdateCreateEventSchema, InitiativeUpdateUpdateEventSchema, InitiativeUpdateRemoveEventSchema])],\n ['Customer', z.union([CustomerCreateEventSchema, CustomerUpdateEventSchema, CustomerRemoveEventSchema])],\n ['CustomerNeed', z.union([CustomerNeedCreateEventSchema, CustomerNeedUpdateEventSchema, CustomerNeedRemoveEventSchema])],\n ['AuditEntry', z.union([AuditEntryCreateEventSchema, AuditEntryUpdateEventSchema, AuditEntryRemoveEventSchema])],\n ['IssueSLA', IssueSlaEventSchema],\n ['OAuthApp', OAuthAppRevokedEventSchema],\n ['AppUserNotification', AppUserNotificationEventSchema],\n ['PermissionChange', PermissionChangeEventSchema],\n ['AgentSessionEvent', AgentSessionEventSchema],\n]);\n\n/**\n * All event schemas as a flat array (for trial-parsing).\n */\nexport const allEventSchemas: z.ZodTypeAny[] = [\n IssueCreateEventSchema, IssueUpdateEventSchema, IssueRemoveEventSchema,\n CommentCreateEventSchema, CommentUpdateEventSchema, CommentRemoveEventSchema,\n AttachmentCreateEventSchema, AttachmentUpdateEventSchema, AttachmentRemoveEventSchema,\n IssueLabelCreateEventSchema, IssueLabelUpdateEventSchema, IssueLabelRemoveEventSchema,\n ReactionCreateEventSchema, ReactionUpdateEventSchema, ReactionRemoveEventSchema,\n ProjectCreateEventSchema, ProjectUpdateEventSchema, ProjectRemoveEventSchema,\n ProjectUpdateCreateEventSchema, ProjectUpdateUpdateEventSchema, ProjectUpdateRemoveEventSchema,\n CycleCreateEventSchema, CycleUpdateEventSchema, CycleRemoveEventSchema,\n DocumentCreateEventSchema, DocumentUpdateEventSchema, DocumentRemoveEventSchema,\n UserCreateEventSchema, UserUpdateEventSchema, UserRemoveEventSchema,\n InitiativeCreateEventSchema, InitiativeUpdateEventSchema, InitiativeRemoveEventSchema,\n InitiativeUpdateCreateEventSchema, InitiativeUpdateUpdateEventSchema, InitiativeUpdateRemoveEventSchema,\n CustomerCreateEventSchema, CustomerUpdateEventSchema, CustomerRemoveEventSchema,\n CustomerNeedCreateEventSchema, CustomerNeedUpdateEventSchema, CustomerNeedRemoveEventSchema,\n AuditEntryCreateEventSchema, AuditEntryUpdateEventSchema, AuditEntryRemoveEventSchema,\n IssueSlaEventSchema,\n OAuthAppRevokedEventSchema,\n AppUserNotificationEventSchema,\n PermissionChangeEventSchema,\n AgentSessionEventSchema,\n];\n\n/**\n * Typed schema lookup by event type.\n */\nexport const schemas = {\n get(eventType: LinearWebhookEventType): z.ZodTypeAny {\n const schema = schemaRegistryMap.get(eventType);\n if (!schema) {\n throw new Error(`No schema registered for event type: ${eventType}`);\n }\n return schema;\n },\n};\n\n// ── Route Key types ──\n\ninterface RouteKeyInfo {\n eventType: LinearWebhookEventType;\n action?: 'create' | 'update' | 'remove';\n}\n\n/**\n * Maps camelCase route keys to their event type and optional action.\n * E.g., `issue` → { eventType: 'Issue' }, `issueCreate` → { eventType: 'Issue', action: 'create' }\n */\nexport const routeKeyInfoMap: ReadonlyMap<string, RouteKeyInfo> = new Map([\n // Base keys (match any action)\n ['issue', { eventType: 'Issue' }],\n ['comment', { eventType: 'Comment' }],\n ['attachment', { eventType: 'Attachment' }],\n ['issueLabel', { eventType: 'IssueLabel' }],\n ['reaction', { eventType: 'Reaction' }],\n ['project', { eventType: 'Project' }],\n ['projectUpdate', { eventType: 'ProjectUpdate' }],\n ['cycle', { eventType: 'Cycle' }],\n ['document', { eventType: 'Document' }],\n ['user', { eventType: 'User' }],\n ['initiative', { eventType: 'Initiative' }],\n ['initiativeUpdate', { eventType: 'InitiativeUpdate' }],\n ['customer', { eventType: 'Customer' }],\n ['customerNeed', { eventType: 'CustomerNeed' }],\n ['auditEntry', { eventType: 'AuditEntry' }],\n ['issueSla', { eventType: 'IssueSLA' }],\n ['oauthApp', { eventType: 'OAuthApp' }],\n ['appUserNotification', { eventType: 'AppUserNotification' }],\n ['permissionChange', { eventType: 'PermissionChange' }],\n ['agentSessionEvent', { eventType: 'AgentSessionEvent' }],\n\n // Action-specific keys\n ['issueCreate', { eventType: 'Issue', action: 'create' }],\n ['issueUpdate', { eventType: 'Issue', action: 'update' }],\n ['issueRemove', { eventType: 'Issue', action: 'remove' }],\n ['commentCreate', { eventType: 'Comment', action: 'create' }],\n ['commentUpdate', { eventType: 'Comment', action: 'update' }],\n ['commentRemove', { eventType: 'Comment', action: 'remove' }],\n ['attachmentCreate', { eventType: 'Attachment', action: 'create' }],\n ['attachmentUpdate', { eventType: 'Attachment', action: 'update' }],\n ['attachmentRemove', { eventType: 'Attachment', action: 'remove' }],\n ['issueLabelCreate', { eventType: 'IssueLabel', action: 'create' }],\n ['issueLabelUpdate', { eventType: 'IssueLabel', action: 'update' }],\n ['issueLabelRemove', { eventType: 'IssueLabel', action: 'remove' }],\n ['reactionCreate', { eventType: 'Reaction', action: 'create' }],\n ['reactionUpdate', { eventType: 'Reaction', action: 'update' }],\n ['reactionRemove', { eventType: 'Reaction', action: 'remove' }],\n ['projectCreate', { eventType: 'Project', action: 'create' }],\n ['projectUpdate_Update', { eventType: 'Project', action: 'update' }],\n ['projectRemove', { eventType: 'Project', action: 'remove' }],\n ['projectUpdateCreate', { eventType: 'ProjectUpdate', action: 'create' }],\n ['projectUpdateUpdate', { eventType: 'ProjectUpdate', action: 'update' }],\n ['projectUpdateRemove', { eventType: 'ProjectUpdate', action: 'remove' }],\n ['cycleCreate', { eventType: 'Cycle', action: 'create' }],\n ['cycleUpdate', { eventType: 'Cycle', action: 'update' }],\n ['cycleRemove', { eventType: 'Cycle', action: 'remove' }],\n ['documentCreate', { eventType: 'Document', action: 'create' }],\n ['documentUpdate', { eventType: 'Document', action: 'update' }],\n ['documentRemove', { eventType: 'Document', action: 'remove' }],\n ['userCreate', { eventType: 'User', action: 'create' }],\n ['userUpdate', { eventType: 'User', action: 'update' }],\n ['userRemove', { eventType: 'User', action: 'remove' }],\n ['initiativeCreate', { eventType: 'Initiative', action: 'create' }],\n ['initiativeUpdate_Update', { eventType: 'Initiative', action: 'update' }],\n ['initiativeRemove', { eventType: 'Initiative', action: 'remove' }],\n ['initiativeUpdateCreate', { eventType: 'InitiativeUpdate', action: 'create' }],\n ['initiativeUpdateUpdate', { eventType: 'InitiativeUpdate', action: 'update' }],\n ['initiativeUpdateRemove', { eventType: 'InitiativeUpdate', action: 'remove' }],\n ['customerCreate', { eventType: 'Customer', action: 'create' }],\n ['customerUpdate', { eventType: 'Customer', action: 'update' }],\n ['customerRemove', { eventType: 'Customer', action: 'remove' }],\n ['customerNeedCreate', { eventType: 'CustomerNeed', action: 'create' }],\n ['customerNeedUpdate', { eventType: 'CustomerNeed', action: 'update' }],\n ['customerNeedRemove', { eventType: 'CustomerNeed', action: 'remove' }],\n ['auditEntryCreate', { eventType: 'AuditEntry', action: 'create' }],\n ['auditEntryUpdate', { eventType: 'AuditEntry', action: 'update' }],\n ['auditEntryRemove', { eventType: 'AuditEntry', action: 'remove' }],\n]);\n\nexport type WebhookRouteKey = keyof WebhookRouteKeyEventMap;\n\nexport interface WebhookRouteKeyEventMap {\n issue: z.infer<typeof IssueCreateEventSchema> | z.infer<typeof IssueUpdateEventSchema> | z.infer<typeof IssueRemoveEventSchema>;\n issueCreate: z.infer<typeof IssueCreateEventSchema>;\n issueUpdate: z.infer<typeof IssueUpdateEventSchema>;\n issueRemove: z.infer<typeof IssueRemoveEventSchema>;\n comment: z.infer<typeof CommentCreateEventSchema> | z.infer<typeof CommentUpdateEventSchema> | z.infer<typeof CommentRemoveEventSchema>;\n commentCreate: z.infer<typeof CommentCreateEventSchema>;\n commentUpdate: z.infer<typeof CommentUpdateEventSchema>;\n commentRemove: z.infer<typeof CommentRemoveEventSchema>;\n attachment: z.infer<typeof AttachmentCreateEventSchema> | z.infer<typeof AttachmentUpdateEventSchema> | z.infer<typeof AttachmentRemoveEventSchema>;\n attachmentCreate: z.infer<typeof AttachmentCreateEventSchema>;\n attachmentUpdate: z.infer<typeof AttachmentUpdateEventSchema>;\n attachmentRemove: z.infer<typeof AttachmentRemoveEventSchema>;\n issueLabel: z.infer<typeof IssueLabelCreateEventSchema> | z.infer<typeof IssueLabelUpdateEventSchema> | z.infer<typeof IssueLabelRemoveEventSchema>;\n issueLabelCreate: z.infer<typeof IssueLabelCreateEventSchema>;\n issueLabelUpdate: z.infer<typeof IssueLabelUpdateEventSchema>;\n issueLabelRemove: z.infer<typeof IssueLabelRemoveEventSchema>;\n reaction: z.infer<typeof ReactionCreateEventSchema> | z.infer<typeof ReactionUpdateEventSchema> | z.infer<typeof ReactionRemoveEventSchema>;\n reactionCreate: z.infer<typeof ReactionCreateEventSchema>;\n reactionUpdate: z.infer<typeof ReactionUpdateEventSchema>;\n reactionRemove: z.infer<typeof ReactionRemoveEventSchema>;\n project: z.infer<typeof ProjectCreateEventSchema> | z.infer<typeof ProjectUpdateEventSchema> | z.infer<typeof ProjectRemoveEventSchema>;\n projectCreate: z.infer<typeof ProjectCreateEventSchema>;\n projectRemove: z.infer<typeof ProjectRemoveEventSchema>;\n projectUpdate: z.infer<typeof ProjectUpdateCreateEventSchema> | z.infer<typeof ProjectUpdateUpdateEventSchema> | z.infer<typeof ProjectUpdateRemoveEventSchema>;\n projectUpdateCreate: z.infer<typeof ProjectUpdateCreateEventSchema>;\n projectUpdateUpdate: z.infer<typeof ProjectUpdateUpdateEventSchema>;\n projectUpdateRemove: z.infer<typeof ProjectUpdateRemoveEventSchema>;\n cycle: z.infer<typeof CycleCreateEventSchema> | z.infer<typeof CycleUpdateEventSchema> | z.infer<typeof CycleRemoveEventSchema>;\n cycleCreate: z.infer<typeof CycleCreateEventSchema>;\n cycleUpdate: z.infer<typeof CycleUpdateEventSchema>;\n cycleRemove: z.infer<typeof CycleRemoveEventSchema>;\n document: z.infer<typeof DocumentCreateEventSchema> | z.infer<typeof DocumentUpdateEventSchema> | z.infer<typeof DocumentRemoveEventSchema>;\n documentCreate: z.infer<typeof DocumentCreateEventSchema>;\n documentUpdate: z.infer<typeof DocumentUpdateEventSchema>;\n documentRemove: z.infer<typeof DocumentRemoveEventSchema>;\n user: z.infer<typeof UserCreateEventSchema> | z.infer<typeof UserUpdateEventSchema> | z.infer<typeof UserRemoveEventSchema>;\n userCreate: z.infer<typeof UserCreateEventSchema>;\n userUpdate: z.infer<typeof UserUpdateEventSchema>;\n userRemove: z.infer<typeof UserRemoveEventSchema>;\n initiative: z.infer<typeof InitiativeCreateEventSchema> | z.infer<typeof InitiativeUpdateEventSchema> | z.infer<typeof InitiativeRemoveEventSchema>;\n initiativeCreate: z.infer<typeof InitiativeCreateEventSchema>;\n initiativeRemove: z.infer<typeof InitiativeRemoveEventSchema>;\n initiativeUpdate: z.infer<typeof InitiativeUpdateCreateEventSchema> | z.infer<typeof InitiativeUpdateUpdateEventSchema> | z.infer<typeof InitiativeUpdateRemoveEventSchema>;\n initiativeUpdateCreate: z.infer<typeof InitiativeUpdateCreateEventSchema>;\n initiativeUpdateUpdate: z.infer<typeof InitiativeUpdateUpdateEventSchema>;\n initiativeUpdateRemove: z.infer<typeof InitiativeUpdateRemoveEventSchema>;\n customer: z.infer<typeof CustomerCreateEventSchema> | z.infer<typeof CustomerUpdateEventSchema> | z.infer<typeof CustomerRemoveEventSchema>;\n customerCreate: z.infer<typeof CustomerCreateEventSchema>;\n customerUpdate: z.infer<typeof CustomerUpdateEventSchema>;\n customerRemove: z.infer<typeof CustomerRemoveEventSchema>;\n customerNeed: z.infer<typeof CustomerNeedCreateEventSchema> | z.infer<typeof CustomerNeedUpdateEventSchema> | z.infer<typeof CustomerNeedRemoveEventSchema>;\n customerNeedCreate: z.infer<typeof CustomerNeedCreateEventSchema>;\n customerNeedUpdate: z.infer<typeof CustomerNeedUpdateEventSchema>;\n customerNeedRemove: z.infer<typeof CustomerNeedRemoveEventSchema>;\n auditEntry: z.infer<typeof AuditEntryCreateEventSchema> | z.infer<typeof AuditEntryUpdateEventSchema> | z.infer<typeof AuditEntryRemoveEventSchema>;\n auditEntryCreate: z.infer<typeof AuditEntryCreateEventSchema>;\n auditEntryUpdate: z.infer<typeof AuditEntryUpdateEventSchema>;\n auditEntryRemove: z.infer<typeof AuditEntryRemoveEventSchema>;\n issueSla: z.infer<typeof IssueSlaEventSchema>;\n oauthApp: z.infer<typeof OAuthAppRevokedEventSchema>;\n appUserNotification: z.infer<typeof AppUserNotificationEventSchema>;\n permissionChange: z.infer<typeof PermissionChangeEventSchema>;\n agentSessionEvent: z.infer<typeof AgentSessionEventSchema>;\n}\n\nexport type WebhookRouteEvent<K extends WebhookRouteKey> = WebhookRouteKeyEventMap[K];\n\nexport type WebhookHandler<K extends WebhookRouteKey> = (\n event: WebhookRouteEvent<K>,\n) => void | Promise<void>;\n\nexport type WebhookErrorHandler = (error: unknown) => void;\n\nexport type WebhookRouteHandlers = Partial<{\n [K in WebhookRouteKey]: WebhookHandler<K>;\n}>;\n\n// ── Type guard ──\n\nexport function isLinearWebhookEvent(value: unknown): boolean {\n if (typeof value !== 'object' || value === null) return false;\n const obj = value as Record<string, unknown>;\n const eventType = obj['type'];\n if (!isLinearWebhookEventType(eventType)) return false;\n const schema = schemaRegistryMap.get(eventType);\n if (!schema) return false;\n return schema.safeParse(value).success;\n}\n\n// ── Precomputed dispatch index ──\n// Maps eventType → { base route keys, action-specific route keys }\n// Enables O(1) lookup instead of iterating routeKeyInfoMap on every receive.\n\nconst eventTypeRouteKeys = new Map<\n string,\n { base: string[]; byAction: Map<string, string[]> }\n>();\n\nfor (const [key, info] of routeKeyInfoMap) {\n let entry = eventTypeRouteKeys.get(info.eventType);\n if (!entry) {\n entry = { base: [], byAction: new Map() };\n eventTypeRouteKeys.set(info.eventType, entry);\n }\n if (info.action) {\n let list = entry.byAction.get(info.action);\n if (!list) {\n list = [];\n entry.byAction.set(info.action, list);\n }\n list.push(key);\n } else {\n entry.base.push(key);\n }\n}\n\n// ── Webhook Router ──\n\nexport interface WebhookRouter {\n (payload: unknown): void;\n on<K extends WebhookRouteKey>(event: K, handler: WebhookHandler<K>): WebhookRouter;\n on(event: 'error', handler: WebhookErrorHandler): WebhookRouter;\n off<K extends WebhookRouteKey>(event: K, handler: WebhookHandler<K>): WebhookRouter;\n off(event: 'error', handler: WebhookErrorHandler): WebhookRouter;\n removeAllListeners(event?: string): WebhookRouter;\n}\n\nexport function createLinearWebhookRouter(handlers?: WebhookRouteHandlers): WebhookRouter {\n type Handler = (arg: unknown) => void | Promise<void>;\n const listeners = new Map<string, Set<Handler>>();\n\n function getListeners(event: string): Set<Handler> {\n let set = listeners.get(event);\n if (!set) {\n set = new Set();\n listeners.set(event, set);\n }\n return set;\n }\n\n function handleError(error: unknown): void {\n const errorListeners = listeners.get('error');\n if (errorListeners && errorListeners.size > 0) {\n for (const handler of errorListeners) {\n void handler(error);\n }\n } else {\n throw error;\n }\n }\n\n function callHandler(handler: Handler, data: unknown): void {\n try {\n const result = handler(data);\n if (result instanceof Promise) {\n result.catch(handleError);\n }\n } catch (err) {\n handleError(err);\n }\n }\n\n // Register initial handlers from config object\n if (handlers) {\n for (const [key, handler] of Object.entries(handlers)) {\n if (typeof handler === 'function') {\n getListeners(key).add(handler as Handler);\n }\n }\n }\n\n const receive = function receive(payload: unknown): void {\n if (typeof payload !== 'object' || payload === null) return;\n const obj = payload as Record<string, unknown>;\n const eventType = obj['type'] as string | undefined;\n const action = obj['action'] as string | undefined;\n\n if (!eventType || !isLinearWebhookEventType(eventType)) return;\n\n // O(1) schema lookup via type field\n const schema = schemaRegistryMap.get(eventType);\n if (!schema) return;\n const parsed = schema.safeParse(payload);\n if (!parsed.success) return;\n\n const routeKeys = eventTypeRouteKeys.get(eventType);\n if (!routeKeys) return;\n\n // Fire action-specific handlers first (more specific)\n if (action) {\n const actionKeys = routeKeys.byAction.get(action);\n if (actionKeys) {\n for (const key of actionKeys) {\n const set = listeners.get(key);\n if (!set) continue;\n for (const handler of set) {\n callHandler(handler, parsed.data);\n }\n }\n }\n }\n\n // Fire base handlers\n for (const key of routeKeys.base) {\n const set = listeners.get(key);\n if (!set) continue;\n for (const handler of set) {\n callHandler(handler, parsed.data);\n }\n }\n };\n\n const router = receive as WebhookRouter;\n\n router.on = (event: string, handler: Handler) => {\n getListeners(event).add(handler);\n return router;\n };\n\n router.off = (event: string, handler: Handler) => {\n listeners.get(event)?.delete(handler);\n return router;\n };\n\n router.removeAllListeners = (event?: string) => {\n if (event) {\n listeners.delete(event);\n } else {\n listeners.clear();\n }\n return router;\n };\n\n return router;\n}\n\n// ── Signature verification ──\n\nconst LINEAR_WEBHOOK_SIGNATURE_HEADER = 'linear-signature';\nconst ENCODER = new TextEncoder();\n\nexport { LINEAR_WEBHOOK_SIGNATURE_HEADER };\n\nexport async function verifyWebhookSignature(\n body: string,\n signature: string,\n secret: string,\n): Promise<boolean> {\n const key = await crypto.subtle.importKey(\n 'raw',\n ENCODER.encode(secret),\n { name: 'HMAC', hash: 'SHA-256' },\n false,\n ['sign'],\n );\n\n const sig = await crypto.subtle.sign('HMAC', key, ENCODER.encode(body));\n const digest = Array.from(new Uint8Array(sig))\n .map((b) => b.toString(16).padStart(2, '0'))\n .join('');\n\n return timingSafeEqual(digest, signature);\n}\n\nfunction timingSafeEqual(a: string, b: string): boolean {\n if (a.length !== b.length) return false;\n let result = 0;\n for (let i = 0; i < a.length; i++) {\n result |= a.charCodeAt(i) ^ b.charCodeAt(i);\n }\n return result === 0;\n}\n"
6
+ ],
7
+ "mappings": ";i0EAAA,MAAS,MAmET,FAAM,HAAoB,FAAI,FAA0C,LACtE,LAAC,EAAS,JAAE,AAAM,LAAC,JAAwB,JAAwB,LAAsB,LAAC,LAAC,JAC3F,LAAC,IAAW,JAAE,AAAM,LAAC,JAA0B,JAA0B,LAAwB,LAAC,LAAC,JACnG,LAAC,OAAc,JAAE,AAAM,LAAC,JAA6B,JAA6B,LAA2B,LAAC,LAAC,JAC/G,LAAC,OAAc,JAAE,AAAM,LAAC,JAA6B,JAA6B,LAA2B,LAAC,LAAC,EAC/G,CAAC,WAAY,EAAE,MAAM,CAAC,EAA2B,EAA2B,CAAyB,CAAC,CAAC,EACvG,CAAC,UAAW,EAAE,MAAM,CAAC,EAA0B,EAA0B,CAAwB,CAAC,CAAC,EACnG,CAAC,gBAAiB,EAAE,MAAM,CAAC,EAAgC,EAAgC,CAA8B,CAAC,CAAC,EAC3H,CAAC,QAAS,EAAE,MAAM,CAAC,EAAwB,EAAwB,CAAsB,CAAC,CA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E,EAAE,SAAS,EAAG,GAAG,CAAC,EAC1C,KAAK,EAAE,EAEV,OAAO,GAAgB,GAAQ,CAAS,EAG1C,SAAS,EAAe,CAAC,EAAW,EAAoB,CACtD,GAAI,EAAE,SAAW,EAAE,OAAQ,MAAO,GAClC,IAAI,EAAS,EACb,QAAS,EAAI,EAAG,EAAI,EAAE,OAAQ,IAC5B,GAAU,EAAE,WAAW,CAAC,EAAI,EAAE,WAAW,CAAC,EAE5C,OAAO,IAAW",
8
+ "debugId": "E591949BBD05882564756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{ta as t}from"./chunk-vx90dpjq.js";import{Fb as e}from"./chunk-qk9x32xv.js";var n=e("Attachment","create",t);function m(a){return n.safeParse(a).success}
3
+ export{n as F,m as G};
4
+
5
+ //# debugId=DA035BA5BFED28FE64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/attachment-create-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { AttachmentWebhookPayloadSchema } from './shared/attachment.js';\nimport { createEnvelopeSchema } from './shared/webhook-envelope.js';\n\nexport const AttachmentCreateEventSchema = createEnvelopeSchema('Attachment', 'create', AttachmentWebhookPayloadSchema);\n\nexport type AttachmentCreateEvent = z.infer<typeof AttachmentCreateEventSchema>;\n\nexport function isAttachmentCreateEvent(value: unknown): value is AttachmentCreateEvent {\n\treturn AttachmentCreateEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";wFAKO,FAAM,EAA8B,EAAqB,aAAc,SAAU,CAA8B,EAI/G,SAAS,CAAuB,CAAC,EAAgD,CACvF,OAAO,EAA4B,UAAU,CAAK,EAAE",
8
+ "debugId": "DA035BA5BFED28FE64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,3 @@
1
+ // @bun
2
+
3
+ //# debugId=C841E1905289C02964756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "C841E1905289C02964756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{P as t}from"./chunk-8m83b853.js";import{Fb as e}from"./chunk-qk9x32xv.js";var a=e("Initiative","update",t);function p(i){return a.safeParse(i).success}
3
+ export{a as H,p as I};
4
+
5
+ //# debugId=31E35158B2D1382964756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/initiative-update-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { InitiativeWebhookPayloadSchema } from './shared/initiative.js';\nimport { createEnvelopeSchema } from './shared/webhook-envelope.js';\n\nexport const InitiativeUpdateEventSchema = createEnvelopeSchema('Initiative', 'update', InitiativeWebhookPayloadSchema);\n\nexport type InitiativeUpdateEvent = z.infer<typeof InitiativeUpdateEventSchema>;\n\nexport function isInitiativeUpdateEvent(value: unknown): value is InitiativeUpdateEvent {\n return InitiativeUpdateEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";uFAKO,FAAM,EAA8B,EAAqB,aAAc,SAAU,CAA8B,EAI/G,SAAS,CAAuB,CAAC,EAAgD,CACtF,OAAO,EAA4B,UAAU,CAAK,EAAE",
8
+ "debugId": "31E35158B2D1382964756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ var t=["Attachment","AuditEntry","Comment","Customer","CustomerNeed","Cycle","Document","Initiative","InitiativeUpdate","Issue","IssueLabel","Project","ProjectUpdate","Reaction","User","IssueSLA","OAuthApp","AppUserNotification","PermissionChange","AgentSessionEvent"];function n(e){return typeof e==="string"&&t.includes(e)}
3
+ export{t as lb,n as mb};
4
+
5
+ //# debugId=27721816F17EAA9C64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/event-types.ts"],
4
+ "sourcesContent": [
5
+ "export const linearWebhookEventTypes = [\n 'Attachment',\n 'AuditEntry',\n 'Comment',\n 'Customer',\n 'CustomerNeed',\n 'Cycle',\n 'Document',\n 'Initiative',\n 'InitiativeUpdate',\n 'Issue',\n 'IssueLabel',\n 'Project',\n 'ProjectUpdate',\n 'Reaction',\n 'User',\n 'IssueSLA',\n 'OAuthApp',\n 'AppUserNotification',\n 'PermissionChange',\n 'AgentSessionEvent',\n] as const;\n\nexport type LinearWebhookEventType = (typeof linearWebhookEventTypes)[number];\n\nexport function isLinearWebhookEventType(value: unknown): value is LinearWebhookEventType {\n return (\n typeof value === 'string' &&\n (linearWebhookEventTypes as readonly string[]).includes(value)\n );\n}\n"
6
+ ],
7
+ "mappings": ";AAAO,IAAM,EAA0B,CACrC,aACA,aACA,UACA,WACA,eACA,QACA,WACA,aACA,mBACA,QACA,aACA,UACA,gBACA,WACA,OACA,WACA,WACA,sBACA,mBACA,mBACF,EAIO,SAAS,CAAwB,CAAC,EAAiD,CACxF,OACE,OAAO,IAAU,UAChB,EAA8C,SAAS,CAAK",
8
+ "debugId": "27721816F17EAA9C64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{fb as a}from"./chunk-965chxgp.js";import{Fb as e}from"./chunk-qk9x32xv.js";var s=e("IssueLabel","create",a);function n(t){return s.safeParse(t).success}
3
+ export{s as db,n as eb};
4
+
5
+ //# debugId=16921C6BC0D7F49964756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/issue-label-create-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { IssueLabelWebhookPayloadSchema } from './shared/issue-label.js';\nimport { createEnvelopeSchema } from './shared/webhook-envelope.js';\n\nexport const IssueLabelCreateEventSchema = createEnvelopeSchema('IssueLabel', 'create', IssueLabelWebhookPayloadSchema);\n\nexport type IssueLabelCreateEvent = z.infer<typeof IssueLabelCreateEventSchema>;\n\nexport function isIssueLabelCreateEvent(value: unknown): value is IssueLabelCreateEvent {\n\treturn IssueLabelCreateEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";wFAKO,FAAM,EAA8B,EAAqB,aAAc,SAAU,CAA8B,EAI/G,SAAS,CAAuB,CAAC,EAAgD,CACvF,OAAO,EAA4B,UAAU,CAAK,EAAE",
8
+ "debugId": "16921C6BC0D7F49964756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{xa as t}from"./chunk-2dv5yntc.js";import{Fb as e}from"./chunk-qk9x32xv.js";var o=e("Comment","create",t);function a(m){return o.safeParse(m).success}
3
+ export{o as j,a as k};
4
+
5
+ //# debugId=3F1BA468F6CF01D064756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/comment-create-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { CommentWebhookPayloadSchema } from './shared/comment.js';\nimport { createEnvelopeSchema } from './shared/webhook-envelope.js';\n\nexport const CommentCreateEventSchema = createEnvelopeSchema('Comment', 'create', CommentWebhookPayloadSchema);\n\nexport type CommentCreateEvent = z.infer<typeof CommentCreateEventSchema>;\n\nexport function isCommentCreateEvent(value: unknown): value is CommentCreateEvent {\n\treturn CommentCreateEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";wFAKO,FAAM,EAA2B,EAAqB,UAAW,SAAU,CAA2B,EAItG,SAAS,CAAoB,CAAC,EAA6C,CACjF,OAAO,EAAyB,UAAU,CAAK,EAAE",
8
+ "debugId": "3F1BA468F6CF01D064756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{tb as g}from"./chunk-2rknxvpt.js";import{Fb as f}from"./chunk-qk9x32xv.js";var j=f("CustomerNeed","update",g);function x(i){return j.safeParse(i).success}
3
+ export{j as rb,x as sb};
4
+
5
+ //# debugId=EE609E95AEF8FA4D64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/customer-need-update-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { CustomerNeedWebhookPayloadSchema } from './shared/customer-need.js';\nimport { createEnvelopeSchema } from './shared/webhook-envelope.js';\n\nexport const CustomerNeedUpdateEventSchema = createEnvelopeSchema('CustomerNeed', 'update', CustomerNeedWebhookPayloadSchema);\n\nexport type CustomerNeedUpdateEvent = z.infer<typeof CustomerNeedUpdateEventSchema>;\n\nexport function isCustomerNeedUpdateEvent(value: unknown): value is CustomerNeedUpdateEvent {\n return CustomerNeedUpdateEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";wFAKO,FAAM,EAAgC,EAAqB,eAAgB,SAAU,CAAgC,EAIrH,SAAS,CAAyB,CAAC,EAAkD,CAC1F,OAAO,EAA8B,UAAU,CAAK,EAAE",
8
+ "debugId": "EE609E95AEF8FA4D64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{pa as o}from"./chunk-7ztadp9q.js";import{Fb as e}from"./chunk-qk9x32xv.js";var t=e("Issue","remove",o);function n(s){return t.safeParse(s).success}
3
+ export{t as x,n as y};
4
+
5
+ //# debugId=BB9D1FF439E73EAF64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/issue-remove-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { IssueWebhookPayloadSchema } from './shared/issue.js';\nimport { createEnvelopeSchema } from './shared/webhook-envelope.js';\n\nexport const IssueRemoveEventSchema = createEnvelopeSchema('Issue', 'remove', IssueWebhookPayloadSchema);\n\nexport type IssueRemoveEvent = z.infer<typeof IssueRemoveEventSchema>;\n\nexport function isIssueRemoveEvent(value: unknown): value is IssueRemoveEvent {\n\treturn IssueRemoveEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";wFAKO,FAAM,EAAyB,EAAqB,QAAS,SAAU,CAAyB,EAIhG,SAAS,CAAkB,CAAC,EAA2C,CAC7E,OAAO,EAAuB,UAAU,CAAK,EAAE",
8
+ "debugId": "BB9D1FF439E73EAF64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{pb as t}from"./chunk-dvz4cbrh.js";import{Fb as e}from"./chunk-qk9x32xv.js";var a=e("Reaction","update",t);function p(o){return a.safeParse(o).success}
3
+ export{a as nb,p as ob};
4
+
5
+ //# debugId=5F64A8DFC3F6F7E864756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/reaction-update-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { ReactionWebhookPayloadSchema } from './shared/reaction.js';\nimport { createEnvelopeSchema } from './shared/webhook-envelope.js';\n\nexport const ReactionUpdateEventSchema = createEnvelopeSchema('Reaction', 'update', ReactionWebhookPayloadSchema);\n\nexport type ReactionUpdateEvent = z.infer<typeof ReactionUpdateEventSchema>;\n\nexport function isReactionUpdateEvent(value: unknown): value is ReactionUpdateEvent {\n\treturn ReactionUpdateEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";wFAKO,FAAM,EAA4B,EAAqB,WAAY,SAAU,CAA4B,EAIzG,SAAS,CAAqB,CAAC,EAA8C,CACnF,OAAO,EAA0B,UAAU,CAAK,EAAE",
8
+ "debugId": "5F64A8DFC3F6F7E864756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{z as f}from"zod";var n=f.object({id:f.string(),name:f.string().optional()}).passthrough(),q=f.object({id:f.string()}).passthrough(),s=f.object({id:f.string(),createdAt:f.string(),updatedAt:f.string(),body:f.string(),bodyData:f.string(),editedAt:f.string(),health:f.string(),slugId:f.string(),project:q,projectId:f.string(),user:n,userId:f.string(),reactionData:f.record(f.string(),f.unknown()),archivedAt:f.string().optional(),url:f.string().optional()}).passthrough();function x(g){return s.safeParse(g).success}
3
+ export{s as ha,x as ia};
4
+
5
+ //# debugId=FF88145A4B7C12F064756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/shared/project-update.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nconst UserChildSchema = z.object({ id: z.string(), name: z.string().optional() }).passthrough();\nconst ProjectChildSchema = z.object({ id: z.string() }).passthrough();\n\nexport const ProjectUpdateWebhookPayloadSchema = z.object({\n id: z.string(),\n createdAt: z.string(),\n updatedAt: z.string(),\n body: z.string(),\n bodyData: z.string(),\n editedAt: z.string(),\n health: z.string(),\n slugId: z.string(),\n project: ProjectChildSchema,\n projectId: z.string(),\n user: UserChildSchema,\n userId: z.string(),\n reactionData: z.record(z.string(), z.unknown()),\n // Optional\n archivedAt: z.string().optional(),\n url: z.string().optional(),\n}).passthrough();\n\nexport type ProjectUpdateWebhookPayload = z.infer<typeof ProjectUpdateWebhookPayloadSchema>;\n\nexport function isProjectUpdateWebhookPayload(value: unknown): value is ProjectUpdateWebhookPayload {\n return ProjectUpdateWebhookPayloadSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";AAAA,YAAS,YAET,IAAM,EAAkB,EAAE,OAAO,CAAE,GAAI,EAAE,OAAO,EAAG,KAAM,EAAE,OAAO,EAAE,SAAS,CAAE,CAAC,EAAE,YAAY,EACxF,EAAqB,EAAE,OAAO,CAAE,GAAI,EAAE,OAAO,CAAE,CAAC,EAAE,YAAY,EAEvD,EAAoC,EAAE,OAAO,CACxD,GAAI,EAAE,OAAO,EACb,UAAW,EAAE,OAAO,EACpB,UAAW,EAAE,OAAO,EACpB,KAAM,EAAE,OAAO,EACf,SAAU,EAAE,OAAO,EACnB,SAAU,EAAE,OAAO,EACnB,OAAQ,EAAE,OAAO,EACjB,OAAQ,EAAE,OAAO,EACjB,QAAS,EACT,UAAW,EAAE,OAAO,EACpB,KAAM,EACN,OAAQ,EAAE,OAAO,EACjB,aAAc,EAAE,OAAO,EAAE,OAAO,EAAG,EAAE,QAAQ,CAAC,EAE9C,WAAY,EAAE,OAAO,EAAE,SAAS,EAChC,IAAK,EAAE,OAAO,EAAE,SAAS,CAC3B,CAAC,EAAE,YAAY,EAIR,SAAS,CAA6B,CAAC,EAAsD,CAClG,OAAO,EAAkC,UAAU,CAAK,EAAE",
8
+ "debugId": "FF88145A4B7C12F064756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{Jb as n}from"./chunk-8aaskwt4.js";import{z as e}from"zod";var o=e.object({action:e.string(),type:e.literal("PermissionChange"),actor:n.optional(),createdAt:e.string(),data:e.record(e.string(),e.unknown()),url:e.string().optional(),webhookTimestamp:e.number(),organizationId:e.string(),webhookId:e.string()}).passthrough();function s(t){return o.safeParse(t).success}
3
+ export{o as z,s as A};
4
+
5
+ //# debugId=D70797DAF2D1C83D64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/permission-change-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { ActorSchema } from './shared/actor.js';\n\nexport const PermissionChangeEventSchema = z\n .object({\n action: z.string(),\n type: z.literal('PermissionChange'),\n actor: ActorSchema.optional(),\n createdAt: z.string(),\n data: z.record(z.string(), z.unknown()),\n url: z.string().optional(),\n webhookTimestamp: z.number(),\n organizationId: z.string(),\n webhookId: z.string(),\n })\n .passthrough();\n\nexport type PermissionChangeEvent = z.infer<typeof PermissionChangeEventSchema>;\n\nexport function isPermissionChangeEvent(value: unknown): value is PermissionChangeEvent {\n return PermissionChangeEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";yCAAA,YAAS,YAIF,IAAM,EAA8B,EACxC,OAAO,CACN,OAAQ,EAAE,OAAO,EACjB,KAAM,EAAE,QAAQ,kBAAkB,EAClC,MAAO,EAAY,SAAS,EAC5B,UAAW,EAAE,OAAO,EACpB,KAAM,EAAE,OAAO,EAAE,OAAO,EAAG,EAAE,QAAQ,CAAC,EACtC,IAAK,EAAE,OAAO,EAAE,SAAS,EACzB,iBAAkB,EAAE,OAAO,EAC3B,eAAgB,EAAE,OAAO,EACzB,UAAW,EAAE,OAAO,CACtB,CAAC,EACA,YAAY,EAIR,SAAS,CAAuB,CAAC,EAAgD,CACtF,OAAO,EAA4B,UAAU,CAAK,EAAE",
8
+ "debugId": "D70797DAF2D1C83D64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{Jb as r}from"./chunk-8aaskwt4.js";import{z as t}from"zod";function s(n,e,a){let o=t.object({action:t.literal(e),type:t.literal(n),actor:r.optional(),createdAt:t.string(),data:a,url:t.string(),webhookTimestamp:t.number(),organizationId:t.string(),webhookId:t.string()});if(e==="update")return o.extend({updatedFrom:t.record(t.string(),t.unknown()).optional()}).passthrough();return o.passthrough()}
3
+ export{s as Fb};
4
+
5
+ //# debugId=95AEC2B93A5137AF64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/shared/webhook-envelope.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { ActorSchema } from './actor.js';\n\ntype WebhookAction = 'create' | 'update' | 'remove';\n\nexport function createEnvelopeSchema<\n TType extends string,\n TAction extends WebhookAction,\n TData extends z.ZodTypeAny,\n>(type: TType, action: TAction, dataSchema: TData) {\n const base = z.object({\n action: z.literal(action),\n type: z.literal(type),\n actor: ActorSchema.optional(),\n createdAt: z.string(),\n data: dataSchema,\n url: z.string(),\n webhookTimestamp: z.number(),\n organizationId: z.string(),\n webhookId: z.string(),\n });\n\n if (action === 'update') {\n return base\n .extend({\n updatedFrom: z.record(z.string(), z.unknown()).optional(),\n })\n .passthrough();\n }\n\n return base.passthrough();\n}\n"
6
+ ],
7
+ "mappings": ";yCAAA,YAAS,YAMF,SAAS,CAIf,CAAC,EAAa,EAAiB,EAAmB,CACjD,IAAM,EAAO,EAAE,OAAO,CACpB,OAAQ,EAAE,QAAQ,CAAM,EACxB,KAAM,EAAE,QAAQ,CAAI,EACpB,MAAO,EAAY,SAAS,EAC5B,UAAW,EAAE,OAAO,EACpB,KAAM,EACN,IAAK,EAAE,OAAO,EACd,iBAAkB,EAAE,OAAO,EAC3B,eAAgB,EAAE,OAAO,EACzB,UAAW,EAAE,OAAO,CACtB,CAAC,EAED,GAAI,IAAW,SACb,OAAO,EACJ,OAAO,CACN,YAAa,EAAE,OAAO,EAAE,OAAO,EAAG,EAAE,QAAQ,CAAC,EAAE,SAAS,CAC1D,CAAC,EACA,YAAY,EAGjB,OAAO,EAAK,YAAY",
8
+ "debugId": "95AEC2B93A5137AF64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{Jb as t}from"./chunk-8aaskwt4.js";import{z as e}from"zod";var o=e.object({action:e.string(),type:e.literal("AgentSessionEvent"),actor:t.optional(),createdAt:e.string(),data:e.record(e.string(),e.unknown()),url:e.string().optional(),webhookTimestamp:e.number(),organizationId:e.string(),webhookId:e.string()}).passthrough();function i(n){return o.safeParse(n).success}
3
+ export{o as za,i as Aa};
4
+
5
+ //# debugId=669999E54E0295D164756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/agent-session-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { ActorSchema } from './shared/actor.js';\n\nexport const AgentSessionEventSchema = z\n .object({\n action: z.string(),\n type: z.literal('AgentSessionEvent'),\n actor: ActorSchema.optional(),\n createdAt: z.string(),\n data: z.record(z.string(), z.unknown()),\n url: z.string().optional(),\n webhookTimestamp: z.number(),\n organizationId: z.string(),\n webhookId: z.string(),\n })\n .passthrough();\n\nexport type AgentSessionEvent = z.infer<typeof AgentSessionEventSchema>;\n\nexport function isAgentSessionEvent(value: unknown): value is AgentSessionEvent {\n return AgentSessionEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";yCAAA,YAAS,YAIF,IAAM,EAA0B,EACpC,OAAO,CACN,OAAQ,EAAE,OAAO,EACjB,KAAM,EAAE,QAAQ,mBAAmB,EACnC,MAAO,EAAY,SAAS,EAC5B,UAAW,EAAE,OAAO,EACpB,KAAM,EAAE,OAAO,EAAE,OAAO,EAAG,EAAE,QAAQ,CAAC,EACtC,IAAK,EAAE,OAAO,EAAE,SAAS,EACzB,iBAAkB,EAAE,OAAO,EAC3B,eAAgB,EAAE,OAAO,EACzB,UAAW,EAAE,OAAO,CACtB,CAAC,EACA,YAAY,EAIR,SAAS,CAAmB,CAAC,EAA4C,CAC9E,OAAO,EAAwB,UAAU,CAAK,EAAE",
8
+ "debugId": "669999E54E0295D164756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{ta as e}from"./chunk-vx90dpjq.js";import{Fb as t}from"./chunk-qk9x32xv.js";var n=t("Attachment","update",e);function c(a){return n.safeParse(a).success}
3
+ export{n as ra,c as sa};
4
+
5
+ //# debugId=2991C9205DAC4FE864756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/attachment-update-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { AttachmentWebhookPayloadSchema } from './shared/attachment.js';\nimport { createEnvelopeSchema } from './shared/webhook-envelope.js';\n\nexport const AttachmentUpdateEventSchema = createEnvelopeSchema('Attachment', 'update', AttachmentWebhookPayloadSchema);\n\nexport type AttachmentUpdateEvent = z.infer<typeof AttachmentUpdateEventSchema>;\n\nexport function isAttachmentUpdateEvent(value: unknown): value is AttachmentUpdateEvent {\n\treturn AttachmentUpdateEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";wFAKO,FAAM,EAA8B,EAAqB,aAAc,SAAU,CAA8B,EAI/G,SAAS,CAAuB,CAAC,EAAgD,CACvF,OAAO,EAA4B,UAAU,CAAK,EAAE",
8
+ "debugId": "2991C9205DAC4FE864756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{la as g}from"./chunk-785hc2kn.js";import{Fb as f}from"./chunk-qk9x32xv.js";var q=f("InitiativeUpdate","update",g);function x(j){return q.safeParse(j).success}
3
+ export{q as ja,x as ka};
4
+
5
+ //# debugId=8D7AC70FC242083A64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/initiative-update-update-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { InitiativeUpdateWebhookPayloadSchema } from './shared/initiative-update.js';\nimport { createEnvelopeSchema } from './shared/webhook-envelope.js';\n\nexport const InitiativeUpdateUpdateEventSchema = createEnvelopeSchema('InitiativeUpdate', 'update', InitiativeUpdateWebhookPayloadSchema);\n\nexport type InitiativeUpdateUpdateEvent = z.infer<typeof InitiativeUpdateUpdateEventSchema>;\n\nexport function isInitiativeUpdateUpdateEvent(value: unknown): value is InitiativeUpdateUpdateEvent {\n return InitiativeUpdateUpdateEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";wFAKO,FAAM,EAAoC,EAAqB,mBAAoB,SAAU,CAAoC,EAIjI,SAAS,CAA6B,CAAC,EAAsD,CAClG,OAAO,EAAkC,UAAU,CAAK,EAAE",
8
+ "debugId": "8D7AC70FC242083A64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{la as f}from"./chunk-785hc2kn.js";import{Fb as b}from"./chunk-qk9x32xv.js";var j=b("InitiativeUpdate","create",f);function s(g){return j.safeParse(g).success}
3
+ export{j as r,s};
4
+
5
+ //# debugId=434E6F8066C01B3E64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/initiative-update-create-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { InitiativeUpdateWebhookPayloadSchema } from './shared/initiative-update.js';\nimport { createEnvelopeSchema } from './shared/webhook-envelope.js';\n\nexport const InitiativeUpdateCreateEventSchema = createEnvelopeSchema('InitiativeUpdate', 'create', InitiativeUpdateWebhookPayloadSchema);\n\nexport type InitiativeUpdateCreateEvent = z.infer<typeof InitiativeUpdateCreateEventSchema>;\n\nexport function isInitiativeUpdateCreateEvent(value: unknown): value is InitiativeUpdateCreateEvent {\n return InitiativeUpdateCreateEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";wFAKO,FAAM,EAAoC,EAAqB,mBAAoB,SAAU,CAAoC,EAIjI,SAAS,CAA6B,CAAC,EAAsD,CAClG,OAAO,EAAkC,UAAU,CAAK,EAAE",
8
+ "debugId": "434E6F8066C01B3E64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{Xa as t}from"./chunk-8zacppr8.js";import{Fb as e}from"./chunk-qk9x32xv.js";var o=e("Customer","create",t);function s(r){return o.safeParse(r).success}
3
+ export{o as Va,s as Wa};
4
+
5
+ //# debugId=90595C5FB94A6EAA64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/customer-create-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { CustomerWebhookPayloadSchema } from './shared/customer.js';\nimport { createEnvelopeSchema } from './shared/webhook-envelope.js';\n\nexport const CustomerCreateEventSchema = createEnvelopeSchema('Customer', 'create', CustomerWebhookPayloadSchema);\n\nexport type CustomerCreateEvent = z.infer<typeof CustomerCreateEventSchema>;\n\nexport function isCustomerCreateEvent(value: unknown): value is CustomerCreateEvent {\n return CustomerCreateEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";wFAKO,FAAM,EAA4B,EAAqB,WAAY,SAAU,CAA4B,EAIzG,SAAS,CAAqB,CAAC,EAA8C,CAClF,OAAO,EAA0B,UAAU,CAAK,EAAE",
8
+ "debugId": "90595C5FB94A6EAA64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{z as t}from"zod";var n=t.object({id:t.string(),createdAt:t.string(),updatedAt:t.string(),type:t.string(),organizationId:t.string(),actorId:t.string().optional(),archivedAt:t.string().optional(),countryCode:t.string().optional(),ip:t.string().optional(),metadata:t.record(t.string(),t.unknown()).optional(),requestInformation:t.record(t.string(),t.unknown()).optional()}).passthrough();function i(o){return n.safeParse(o).success}
3
+ export{n as Db,i as Eb};
4
+
5
+ //# debugId=9BB40529CD8F158364756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/shared/audit-entry.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nexport const AuditEntryWebhookPayloadSchema = z.object({\n id: z.string(),\n createdAt: z.string(),\n updatedAt: z.string(),\n type: z.string(),\n organizationId: z.string(),\n // Optional\n actorId: z.string().optional(),\n archivedAt: z.string().optional(),\n countryCode: z.string().optional(),\n ip: z.string().optional(),\n metadata: z.record(z.string(), z.unknown()).optional(),\n requestInformation: z.record(z.string(), z.unknown()).optional(),\n}).passthrough();\n\nexport type AuditEntryWebhookPayload = z.infer<typeof AuditEntryWebhookPayloadSchema>;\n\nexport function isAuditEntryWebhookPayload(value: unknown): value is AuditEntryWebhookPayload {\n return AuditEntryWebhookPayloadSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";AAAA,YAAS,YAEF,IAAM,EAAiC,EAAE,OAAO,CACrD,GAAI,EAAE,OAAO,EACb,UAAW,EAAE,OAAO,EACpB,UAAW,EAAE,OAAO,EACpB,KAAM,EAAE,OAAO,EACf,eAAgB,EAAE,OAAO,EAEzB,QAAS,EAAE,OAAO,EAAE,SAAS,EAC7B,WAAY,EAAE,OAAO,EAAE,SAAS,EAChC,YAAa,EAAE,OAAO,EAAE,SAAS,EACjC,GAAI,EAAE,OAAO,EAAE,SAAS,EACxB,SAAU,EAAE,OAAO,EAAE,OAAO,EAAG,EAAE,QAAQ,CAAC,EAAE,SAAS,EACrD,mBAAoB,EAAE,OAAO,EAAE,OAAO,EAAG,EAAE,QAAQ,CAAC,EAAE,SAAS,CACjE,CAAC,EAAE,YAAY,EAIR,SAAS,CAA0B,CAAC,EAAmD,CAC5F,OAAO,EAA+B,UAAU,CAAK,EAAE",
8
+ "debugId": "9BB40529CD8F158364756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{z as t}from"zod";var e=t.object({id:t.string(),createdAt:t.string(),updatedAt:t.string(),title:t.string(),url:t.string(),issueId:t.string(),groupBySource:t.boolean(),metadata:t.record(t.string(),t.unknown()),archivedAt:t.string().optional(),creatorId:t.string().optional(),externalUserCreatorId:t.string().optional(),originalIssueId:t.string().optional(),source:t.record(t.string(),t.unknown()).optional(),sourceType:t.string().optional(),subtitle:t.string().optional()}).passthrough();function r(o){return e.safeParse(o).success}
3
+ export{e as ta,r as ua};
4
+
5
+ //# debugId=C11F38191173B8F064756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/shared/attachment.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nexport const AttachmentWebhookPayloadSchema = z.object({\n id: z.string(),\n createdAt: z.string(),\n updatedAt: z.string(),\n title: z.string(),\n url: z.string(),\n issueId: z.string(),\n groupBySource: z.boolean(),\n metadata: z.record(z.string(), z.unknown()),\n // Optional\n archivedAt: z.string().optional(),\n creatorId: z.string().optional(),\n externalUserCreatorId: z.string().optional(),\n originalIssueId: z.string().optional(),\n source: z.record(z.string(), z.unknown()).optional(),\n sourceType: z.string().optional(),\n subtitle: z.string().optional(),\n}).passthrough();\n\nexport type AttachmentWebhookPayload = z.infer<typeof AttachmentWebhookPayloadSchema>;\n\nexport function isAttachmentWebhookPayload(value: unknown): value is AttachmentWebhookPayload {\n return AttachmentWebhookPayloadSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";AAAA,YAAS,YAEF,IAAM,EAAiC,EAAE,OAAO,CACrD,GAAI,EAAE,OAAO,EACb,UAAW,EAAE,OAAO,EACpB,UAAW,EAAE,OAAO,EACpB,MAAO,EAAE,OAAO,EAChB,IAAK,EAAE,OAAO,EACd,QAAS,EAAE,OAAO,EAClB,cAAe,EAAE,QAAQ,EACzB,SAAU,EAAE,OAAO,EAAE,OAAO,EAAG,EAAE,QAAQ,CAAC,EAE1C,WAAY,EAAE,OAAO,EAAE,SAAS,EAChC,UAAW,EAAE,OAAO,EAAE,SAAS,EAC/B,sBAAuB,EAAE,OAAO,EAAE,SAAS,EAC3C,gBAAiB,EAAE,OAAO,EAAE,SAAS,EACrC,OAAQ,EAAE,OAAO,EAAE,OAAO,EAAG,EAAE,QAAQ,CAAC,EAAE,SAAS,EACnD,WAAY,EAAE,OAAO,EAAE,SAAS,EAChC,SAAU,EAAE,OAAO,EAAE,SAAS,CAChC,CAAC,EAAE,YAAY,EAIR,SAAS,CAA0B,CAAC,EAAmD,CAC5F,OAAO,EAA+B,UAAU,CAAK,EAAE",
8
+ "debugId": "C11F38191173B8F064756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{pb as o}from"./chunk-dvz4cbrh.js";import{Fb as e}from"./chunk-qk9x32xv.js";var n=e("Reaction","remove",o);function m(t){return n.safeParse(t).success}
3
+ export{n as $a,m as ab};
4
+
5
+ //# debugId=64C6E950EA72E49264756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/reaction-remove-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { ReactionWebhookPayloadSchema } from './shared/reaction.js';\nimport { createEnvelopeSchema } from './shared/webhook-envelope.js';\n\nexport const ReactionRemoveEventSchema = createEnvelopeSchema('Reaction', 'remove', ReactionWebhookPayloadSchema);\n\nexport type ReactionRemoveEvent = z.infer<typeof ReactionRemoveEventSchema>;\n\nexport function isReactionRemoveEvent(value: unknown): value is ReactionRemoveEvent {\n\treturn ReactionRemoveEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";wFAKO,FAAM,EAA4B,EAAqB,WAAY,SAAU,CAA4B,EAIzG,SAAS,CAAqB,CAAC,EAA8C,CACnF,OAAO,EAA0B,UAAU,CAAK,EAAE",
8
+ "debugId": "64C6E950EA72E49264756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{z as t}from"zod";var r=t.object({id:t.string(),name:t.string().optional()}).passthrough(),n=t.object({id:t.string()}).passthrough(),i=t.object({id:t.string(),name:t.string().optional()}).passthrough(),a=t.object({id:t.string(),name:t.string().optional(),color:t.string().optional()}).passthrough(),e=t.object({id:t.string(),createdAt:t.string(),updatedAt:t.string(),name:t.string(),description:t.string(),color:t.string(),priority:t.number(),prioritySortOrder:t.number(),sortOrder:t.number(),slugId:t.string(),statusId:t.string(),url:t.string(),labelIds:t.array(t.string()),memberIds:t.array(t.string()),teamIds:t.array(t.string()),completedIssueCountHistory:t.array(t.number()),completedScopeHistory:t.array(t.number()),inProgressScopeHistory:t.array(t.number()),issueCountHistory:t.array(t.number()),scopeHistory:t.array(t.number()),archivedAt:t.string().optional(),autoArchivedAt:t.string().optional(),canceledAt:t.string().optional(),completedAt:t.string().optional(),content:t.string().optional(),convertedFromIssueId:t.string().optional(),creatorId:t.string().optional(),documentContentId:t.string().optional(),health:t.string().optional(),healthUpdatedAt:t.string().optional(),icon:t.string().optional(),lastAppliedTemplateId:t.string().optional(),lastUpdateId:t.string().optional(),lead:r.optional(),leadId:t.string().optional(),initiatives:t.array(n).optional(),milestones:t.array(i).optional(),projectUpdateRemindersPausedUntilAt:t.string().optional(),startDate:t.string().optional(),startDateResolution:t.string().optional(),startedAt:t.string().optional(),status:a.optional(),targetDate:t.string().optional(),targetDateResolution:t.string().optional(),trashed:t.boolean().optional()}).passthrough();function l(o){return e.safeParse(o).success}
3
+ export{e as jb,l as kb};
4
+
5
+ //# debugId=32A6B11250B63BD464756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/shared/project.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nconst UserChildSchema = z.object({ id: z.string(), name: z.string().optional() }).passthrough();\nconst InitiativeChildSchema = z.object({ id: z.string() }).passthrough();\nconst ProjectMilestoneChildSchema = z.object({ id: z.string(), name: z.string().optional() }).passthrough();\nconst ProjectStatusChildSchema = z.object({ id: z.string(), name: z.string().optional(), color: z.string().optional() }).passthrough();\n\nexport const ProjectWebhookPayloadSchema = z.object({\n id: z.string(),\n createdAt: z.string(),\n updatedAt: z.string(),\n name: z.string(),\n description: z.string(),\n color: z.string(),\n priority: z.number(),\n prioritySortOrder: z.number(),\n sortOrder: z.number(),\n slugId: z.string(),\n statusId: z.string(),\n url: z.string(),\n labelIds: z.array(z.string()),\n memberIds: z.array(z.string()),\n teamIds: z.array(z.string()),\n completedIssueCountHistory: z.array(z.number()),\n completedScopeHistory: z.array(z.number()),\n inProgressScopeHistory: z.array(z.number()),\n issueCountHistory: z.array(z.number()),\n scopeHistory: z.array(z.number()),\n // Optional\n archivedAt: z.string().optional(),\n autoArchivedAt: z.string().optional(),\n canceledAt: z.string().optional(),\n completedAt: z.string().optional(),\n content: z.string().optional(),\n convertedFromIssueId: z.string().optional(),\n creatorId: z.string().optional(),\n documentContentId: z.string().optional(),\n health: z.string().optional(),\n healthUpdatedAt: z.string().optional(),\n icon: z.string().optional(),\n lastAppliedTemplateId: z.string().optional(),\n lastUpdateId: z.string().optional(),\n lead: UserChildSchema.optional(),\n leadId: z.string().optional(),\n initiatives: z.array(InitiativeChildSchema).optional(),\n milestones: z.array(ProjectMilestoneChildSchema).optional(),\n projectUpdateRemindersPausedUntilAt: z.string().optional(),\n startDate: z.string().optional(),\n startDateResolution: z.string().optional(),\n startedAt: z.string().optional(),\n status: ProjectStatusChildSchema.optional(),\n targetDate: z.string().optional(),\n targetDateResolution: z.string().optional(),\n trashed: z.boolean().optional(),\n}).passthrough();\n\nexport type ProjectWebhookPayload = z.infer<typeof ProjectWebhookPayloadSchema>;\n\nexport function isProjectWebhookPayload(value: unknown): value is ProjectWebhookPayload {\n return ProjectWebhookPayloadSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";AAAA,YAAS,YAET,IAAM,EAAkB,EAAE,OAAO,CAAE,GAAI,EAAE,OAAO,EAAG,KAAM,EAAE,OAAO,EAAE,SAAS,CAAE,CAAC,EAAE,YAAY,EACxF,EAAwB,EAAE,OAAO,CAAE,GAAI,EAAE,OAAO,CAAE,CAAC,EAAE,YAAY,EACjE,EAA8B,EAAE,OAAO,CAAE,GAAI,EAAE,OAAO,EAAG,KAAM,EAAE,OAAO,EAAE,SAAS,CAAE,CAAC,EAAE,YAAY,EACpG,EAA2B,EAAE,OAAO,CAAE,GAAI,EAAE,OAAO,EAAG,KAAM,EAAE,OAAO,EAAE,SAAS,EAAG,MAAO,EAAE,OAAO,EAAE,SAAS,CAAE,CAAC,EAAE,YAAY,EAExH,EAA8B,EAAE,OAAO,CAClD,GAAI,EAAE,OAAO,EACb,UAAW,EAAE,OAAO,EACpB,UAAW,EAAE,OAAO,EACpB,KAAM,EAAE,OAAO,EACf,YAAa,EAAE,OAAO,EACtB,MAAO,EAAE,OAAO,EAChB,SAAU,EAAE,OAAO,EACnB,kBAAmB,EAAE,OAAO,EAC5B,UAAW,EAAE,OAAO,EACpB,OAAQ,EAAE,OAAO,EACjB,SAAU,EAAE,OAAO,EACnB,IAAK,EAAE,OAAO,EACd,SAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAC5B,UAAW,EAAE,M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AAC,EAAE,YAAY,EAIR,SAAS,CAAuB,CAAC,EAAgD,CACtF,OAAO,EAA4B,UAAU,CAAK,EAAE",
8
+ "debugId": "32A6B11250B63BD464756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{pb as t}from"./chunk-dvz4cbrh.js";import{Fb as e}from"./chunk-qk9x32xv.js";var a=e("Reaction","create",t);function c(o){return a.safeParse(o).success}
3
+ export{a as Pa,c as Qa};
4
+
5
+ //# debugId=68536BB7CEE5767C64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/reaction-create-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { ReactionWebhookPayloadSchema } from './shared/reaction.js';\nimport { createEnvelopeSchema } from './shared/webhook-envelope.js';\n\nexport const ReactionCreateEventSchema = createEnvelopeSchema('Reaction', 'create', ReactionWebhookPayloadSchema);\n\nexport type ReactionCreateEvent = z.infer<typeof ReactionCreateEventSchema>;\n\nexport function isReactionCreateEvent(value: unknown): value is ReactionCreateEvent {\n\treturn ReactionCreateEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";wFAKO,FAAM,EAA4B,EAAqB,WAAY,SAAU,CAA4B,EAIzG,SAAS,CAAqB,CAAC,EAA8C,CACnF,OAAO,EAA0B,UAAU,CAAK,EAAE",
8
+ "debugId": "68536BB7CEE5767C64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{ta as t}from"./chunk-vx90dpjq.js";import{Fb as e}from"./chunk-qk9x32xv.js";var o=e("Attachment","remove",t);function c(m){return o.safeParse(m).success}
3
+ export{o as J,c as K};
4
+
5
+ //# debugId=18C95EB2714281D464756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/attachment-remove-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { AttachmentWebhookPayloadSchema } from './shared/attachment.js';\nimport { createEnvelopeSchema } from './shared/webhook-envelope.js';\n\nexport const AttachmentRemoveEventSchema = createEnvelopeSchema('Attachment', 'remove', AttachmentWebhookPayloadSchema);\n\nexport type AttachmentRemoveEvent = z.infer<typeof AttachmentRemoveEventSchema>;\n\nexport function isAttachmentRemoveEvent(value: unknown): value is AttachmentRemoveEvent {\n\treturn AttachmentRemoveEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";wFAKO,FAAM,EAA8B,EAAqB,aAAc,SAAU,CAA8B,EAI/G,SAAS,CAAuB,CAAC,EAAgD,CACvF,OAAO,EAA4B,UAAU,CAAK,EAAE",
8
+ "debugId": "18C95EB2714281D464756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{ha as g}from"./chunk-p0mr62v1.js";import{Fb as f}from"./chunk-qk9x32xv.js";var q=f("ProjectUpdate","remove",g);function x(i){return q.safeParse(i).success}
3
+ export{q as $,x as aa};
4
+
5
+ //# debugId=037CE6619E0BDA8E64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/schemas/project-update-remove-event.ts"],
4
+ "sourcesContent": [
5
+ "import { z } from 'zod';\n\nimport { ProjectUpdateWebhookPayloadSchema } from './shared/project-update.js';\nimport { createEnvelopeSchema } from './shared/webhook-envelope.js';\n\nexport const ProjectUpdateRemoveEventSchema = createEnvelopeSchema('ProjectUpdate', 'remove', ProjectUpdateWebhookPayloadSchema);\n\nexport type ProjectUpdateRemoveEvent = z.infer<typeof ProjectUpdateRemoveEventSchema>;\n\nexport function isProjectUpdateRemoveEvent(value: unknown): value is ProjectUpdateRemoveEvent {\n return ProjectUpdateRemoveEventSchema.safeParse(value).success;\n}\n"
6
+ ],
7
+ "mappings": ";wFAKO,FAAM,EAAiC,EAAqB,gBAAiB,SAAU,CAAiC,EAIxH,SAAS,CAA0B,CAAC,EAAmD,CAC5F,OAAO,EAA+B,UAAU,CAAK,EAAE",
8
+ "debugId": "037CE6619E0BDA8E64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,5 @@
1
+ // @bun
2
+ import{Db as e}from"./chunk-v4yyydaj.js";import{Fb as t}from"./chunk-qk9x32xv.js";var r=t("AuditEntry","update",e);function p(n){return r.safeParse(n).success}
3
+ export{r as Bb,p as Cb};
4
+
5
+ //# debugId=FFE57D4EFA507FF964756E2164756E21