@vibesdotdev/hq 0.0.0-stage → 1.0.0-rc.2

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 (627) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +49 -2
  3. package/dist/agent-events/descriptors.d.ts +33 -0
  4. package/dist/agent-events/descriptors.d.ts.map +1 -0
  5. package/dist/agent-events/descriptors.js +34 -0
  6. package/dist/agent-events/descriptors.js.map +1 -0
  7. package/dist/app/auth/cloud-sync.consumer.d.ts +12 -0
  8. package/dist/app/auth/cloud-sync.consumer.d.ts.map +1 -0
  9. package/dist/app/auth/cloud-sync.consumer.js +31 -0
  10. package/dist/app/auth/cloud-sync.consumer.js.map +1 -0
  11. package/dist/app/auth/hq.app-auth-machine.record.descriptor.d.ts +5 -0
  12. package/dist/app/auth/hq.app-auth-machine.record.descriptor.d.ts.map +1 -0
  13. package/dist/app/auth/hq.app-auth-machine.record.descriptor.js +39 -0
  14. package/dist/app/auth/hq.app-auth-machine.record.descriptor.js.map +1 -0
  15. package/dist/app/auth/hq.app-auth-pairings.record.descriptor.d.ts +5 -0
  16. package/dist/app/auth/hq.app-auth-pairings.record.descriptor.d.ts.map +1 -0
  17. package/dist/app/auth/hq.app-auth-pairings.record.descriptor.js +43 -0
  18. package/dist/app/auth/hq.app-auth-pairings.record.descriptor.js.map +1 -0
  19. package/dist/app/auth/hq.app-auth-tokens.record.descriptor.d.ts +5 -0
  20. package/dist/app/auth/hq.app-auth-tokens.record.descriptor.d.ts.map +1 -0
  21. package/dist/app/auth/hq.app-auth-tokens.record.descriptor.js +42 -0
  22. package/dist/app/auth/hq.app-auth-tokens.record.descriptor.js.map +1 -0
  23. package/dist/app/auth/schemas/auth.d.ts +146 -0
  24. package/dist/app/auth/schemas/auth.d.ts.map +1 -0
  25. package/dist/app/auth/schemas/auth.js +53 -0
  26. package/dist/app/auth/schemas/auth.js.map +1 -0
  27. package/dist/app/auth/service.consumer.d.ts +17 -0
  28. package/dist/app/auth/service.consumer.d.ts.map +1 -0
  29. package/dist/app/auth/service.consumer.js +79 -0
  30. package/dist/app/auth/service.consumer.js.map +1 -0
  31. package/dist/app/auth/sync.consumer.d.ts +2 -0
  32. package/dist/app/auth/sync.consumer.d.ts.map +1 -0
  33. package/dist/app/auth/sync.consumer.js +2 -0
  34. package/dist/app/auth/sync.consumer.js.map +1 -0
  35. package/dist/app/auth/sync.d.ts +23 -0
  36. package/dist/app/auth/sync.d.ts.map +1 -0
  37. package/dist/app/auth/sync.js +290 -0
  38. package/dist/app/auth/sync.js.map +1 -0
  39. package/dist/app/auth/types.d.ts +20 -0
  40. package/dist/app/auth/types.d.ts.map +1 -0
  41. package/dist/app/auth/types.js +7 -0
  42. package/dist/app/auth/types.js.map +1 -0
  43. package/dist/app/sync/hq.app-auth.sync-bridge.descriptor.d.ts +9 -0
  44. package/dist/app/sync/hq.app-auth.sync-bridge.descriptor.d.ts.map +1 -0
  45. package/dist/app/sync/hq.app-auth.sync-bridge.descriptor.js +45 -0
  46. package/dist/app/sync/hq.app-auth.sync-bridge.descriptor.js.map +1 -0
  47. package/dist/applets/component-ref.d.ts +6 -0
  48. package/dist/applets/component-ref.d.ts.map +1 -0
  49. package/dist/applets/component-ref.js +6 -0
  50. package/dist/applets/component-ref.js.map +1 -0
  51. package/dist/applets/index.d.ts +3 -0
  52. package/dist/applets/index.d.ts.map +1 -0
  53. package/dist/applets/index.js +3 -0
  54. package/dist/applets/index.js.map +1 -0
  55. package/dist/approval/approval-resolved.event.descriptor.d.ts +11 -0
  56. package/dist/approval/approval-resolved.event.descriptor.d.ts.map +1 -0
  57. package/dist/approval/approval-resolved.event.descriptor.js +11 -0
  58. package/dist/approval/approval-resolved.event.descriptor.js.map +1 -0
  59. package/dist/approval/approval-resolved.job.descriptor.d.ts +36 -0
  60. package/dist/approval/approval-resolved.job.descriptor.d.ts.map +1 -0
  61. package/dist/approval/approval-resolved.job.descriptor.js +24 -0
  62. package/dist/approval/approval-resolved.job.descriptor.js.map +1 -0
  63. package/dist/approval/approval-resolved.job.impl.d.ts +19 -0
  64. package/dist/approval/approval-resolved.job.impl.d.ts.map +1 -0
  65. package/dist/approval/approval-resolved.job.impl.js +26 -0
  66. package/dist/approval/approval-resolved.job.impl.js.map +1 -0
  67. package/dist/approval/approval-resolved.subscription.descriptor.d.ts +21 -0
  68. package/dist/approval/approval-resolved.subscription.descriptor.d.ts.map +1 -0
  69. package/dist/approval/approval-resolved.subscription.descriptor.js +20 -0
  70. package/dist/approval/approval-resolved.subscription.descriptor.js.map +1 -0
  71. package/dist/approval/schemas.d.ts +45 -0
  72. package/dist/approval/schemas.d.ts.map +1 -0
  73. package/dist/approval/schemas.js +27 -0
  74. package/dist/approval/schemas.js.map +1 -0
  75. package/dist/approval/surface-approval-channel.descriptor.d.ts +14 -0
  76. package/dist/approval/surface-approval-channel.descriptor.d.ts.map +1 -0
  77. package/dist/approval/surface-approval-channel.descriptor.js +16 -0
  78. package/dist/approval/surface-approval-channel.descriptor.js.map +1 -0
  79. package/dist/approval/surface-approval-channel.impl.d.ts +19 -0
  80. package/dist/approval/surface-approval-channel.impl.d.ts.map +1 -0
  81. package/dist/approval/surface-approval-channel.impl.js +101 -0
  82. package/dist/approval/surface-approval-channel.impl.js.map +1 -0
  83. package/dist/cli/app/handoff/hq.app.handoff.descriptor.d.ts +40 -0
  84. package/dist/cli/app/handoff/hq.app.handoff.descriptor.d.ts.map +1 -0
  85. package/dist/cli/app/handoff/hq.app.handoff.descriptor.js +23 -0
  86. package/dist/cli/app/handoff/hq.app.handoff.descriptor.js.map +1 -0
  87. package/dist/cli/app/handoff/hq.app.handoff.impl.consumer.d.ts +7 -0
  88. package/dist/cli/app/handoff/hq.app.handoff.impl.consumer.d.ts.map +1 -0
  89. package/dist/cli/app/handoff/hq.app.handoff.impl.consumer.js +107 -0
  90. package/dist/cli/app/handoff/hq.app.handoff.impl.consumer.js.map +1 -0
  91. package/dist/cli/app/hq.app.cli-group.descriptor.d.ts +12 -0
  92. package/dist/cli/app/hq.app.cli-group.descriptor.d.ts.map +1 -0
  93. package/dist/cli/app/hq.app.cli-group.descriptor.js +12 -0
  94. package/dist/cli/app/hq.app.cli-group.descriptor.js.map +1 -0
  95. package/dist/cli/app/pair/hq.app.pair.descriptor.d.ts +43 -0
  96. package/dist/cli/app/pair/hq.app.pair.descriptor.d.ts.map +1 -0
  97. package/dist/cli/app/pair/hq.app.pair.descriptor.js +27 -0
  98. package/dist/cli/app/pair/hq.app.pair.descriptor.js.map +1 -0
  99. package/dist/cli/app/pair/hq.app.pair.impl.consumer.d.ts +7 -0
  100. package/dist/cli/app/pair/hq.app.pair.impl.consumer.d.ts.map +1 -0
  101. package/dist/cli/app/pair/hq.app.pair.impl.consumer.js +89 -0
  102. package/dist/cli/app/pair/hq.app.pair.impl.consumer.js.map +1 -0
  103. package/dist/cli/app/shared/options.d.ts +70 -0
  104. package/dist/cli/app/shared/options.d.ts.map +1 -0
  105. package/dist/cli/app/shared/options.js +7 -0
  106. package/dist/cli/app/shared/options.js.map +1 -0
  107. package/dist/cli/app/token/hq.app.token.descriptor.d.ts +40 -0
  108. package/dist/cli/app/token/hq.app.token.descriptor.d.ts.map +1 -0
  109. package/dist/cli/app/token/hq.app.token.descriptor.js +23 -0
  110. package/dist/cli/app/token/hq.app.token.descriptor.js.map +1 -0
  111. package/dist/cli/app/token/hq.app.token.impl.consumer.d.ts +7 -0
  112. package/dist/cli/app/token/hq.app.token.impl.consumer.d.ts.map +1 -0
  113. package/dist/cli/app/token/hq.app.token.impl.consumer.js +89 -0
  114. package/dist/cli/app/token/hq.app.token.impl.consumer.js.map +1 -0
  115. package/dist/cli/channel/hq.channel.cli-group.descriptor.d.ts +12 -0
  116. package/dist/cli/channel/hq.channel.cli-group.descriptor.d.ts.map +1 -0
  117. package/dist/cli/channel/hq.channel.cli-group.descriptor.js +12 -0
  118. package/dist/cli/channel/hq.channel.cli-group.descriptor.js.map +1 -0
  119. package/dist/cli/channel/hq.channel.enable.descriptor.d.ts +21 -0
  120. package/dist/cli/channel/hq.channel.enable.descriptor.d.ts.map +1 -0
  121. package/dist/cli/channel/hq.channel.enable.descriptor.js +16 -0
  122. package/dist/cli/channel/hq.channel.enable.descriptor.js.map +1 -0
  123. package/dist/cli/channel/hq.channel.enable.impl.d.ts +7 -0
  124. package/dist/cli/channel/hq.channel.enable.impl.d.ts.map +1 -0
  125. package/dist/cli/channel/hq.channel.enable.impl.js +23 -0
  126. package/dist/cli/channel/hq.channel.enable.impl.js.map +1 -0
  127. package/dist/cli/channel/hq.channel.fire.descriptor.d.ts +17 -0
  128. package/dist/cli/channel/hq.channel.fire.descriptor.d.ts.map +1 -0
  129. package/dist/cli/channel/hq.channel.fire.descriptor.js +13 -0
  130. package/dist/cli/channel/hq.channel.fire.descriptor.js.map +1 -0
  131. package/dist/cli/channel/hq.channel.fire.impl.d.ts +7 -0
  132. package/dist/cli/channel/hq.channel.fire.impl.d.ts.map +1 -0
  133. package/dist/cli/channel/hq.channel.fire.impl.js +26 -0
  134. package/dist/cli/channel/hq.channel.fire.impl.js.map +1 -0
  135. package/dist/cli/channel/hq.channel.list.descriptor.d.ts +16 -0
  136. package/dist/cli/channel/hq.channel.list.descriptor.d.ts.map +1 -0
  137. package/dist/cli/channel/hq.channel.list.descriptor.js +13 -0
  138. package/dist/cli/channel/hq.channel.list.descriptor.js.map +1 -0
  139. package/dist/cli/channel/hq.channel.list.impl.d.ts +7 -0
  140. package/dist/cli/channel/hq.channel.list.impl.d.ts.map +1 -0
  141. package/dist/cli/channel/hq.channel.list.impl.js +30 -0
  142. package/dist/cli/channel/hq.channel.list.impl.js.map +1 -0
  143. package/dist/cli/channel/hq.channel.logs.descriptor.d.ts +24 -0
  144. package/dist/cli/channel/hq.channel.logs.descriptor.d.ts.map +1 -0
  145. package/dist/cli/channel/hq.channel.logs.descriptor.js +17 -0
  146. package/dist/cli/channel/hq.channel.logs.descriptor.js.map +1 -0
  147. package/dist/cli/channel/hq.channel.logs.impl.d.ts +9 -0
  148. package/dist/cli/channel/hq.channel.logs.impl.d.ts.map +1 -0
  149. package/dist/cli/channel/hq.channel.logs.impl.js +74 -0
  150. package/dist/cli/channel/hq.channel.logs.impl.js.map +1 -0
  151. package/dist/cli/friction/_store-hint.d.ts +7 -0
  152. package/dist/cli/friction/_store-hint.d.ts.map +1 -0
  153. package/dist/cli/friction/_store-hint.js +13 -0
  154. package/dist/cli/friction/_store-hint.js.map +1 -0
  155. package/dist/cli/friction/hq.friction.cli-group.descriptor.d.ts +11 -0
  156. package/dist/cli/friction/hq.friction.cli-group.descriptor.d.ts.map +1 -0
  157. package/dist/cli/friction/hq.friction.cli-group.descriptor.js +15 -0
  158. package/dist/cli/friction/hq.friction.cli-group.descriptor.js.map +1 -0
  159. package/dist/cli/friction/hq.friction.disposition.d.ts +5 -0
  160. package/dist/cli/friction/hq.friction.disposition.d.ts.map +1 -0
  161. package/dist/cli/friction/hq.friction.disposition.js +64 -0
  162. package/dist/cli/friction/hq.friction.disposition.js.map +1 -0
  163. package/dist/cli/friction/hq.friction.emit.descriptor.d.ts +65 -0
  164. package/dist/cli/friction/hq.friction.emit.descriptor.d.ts.map +1 -0
  165. package/dist/cli/friction/hq.friction.emit.descriptor.js +70 -0
  166. package/dist/cli/friction/hq.friction.emit.descriptor.js.map +1 -0
  167. package/dist/cli/friction/hq.friction.emit.impl.d.ts +7 -0
  168. package/dist/cli/friction/hq.friction.emit.impl.d.ts.map +1 -0
  169. package/dist/cli/friction/hq.friction.emit.impl.js +85 -0
  170. package/dist/cli/friction/hq.friction.emit.impl.js.map +1 -0
  171. package/dist/cli/friction/hq.friction.list.descriptor.d.ts +37 -0
  172. package/dist/cli/friction/hq.friction.list.descriptor.d.ts.map +1 -0
  173. package/dist/cli/friction/hq.friction.list.descriptor.js +22 -0
  174. package/dist/cli/friction/hq.friction.list.descriptor.js.map +1 -0
  175. package/dist/cli/friction/hq.friction.list.impl.d.ts +7 -0
  176. package/dist/cli/friction/hq.friction.list.impl.d.ts.map +1 -0
  177. package/dist/cli/friction/hq.friction.list.impl.js +73 -0
  178. package/dist/cli/friction/hq.friction.list.impl.js.map +1 -0
  179. package/dist/cli/friction/hq.friction.promote.descriptor.d.ts +21 -0
  180. package/dist/cli/friction/hq.friction.promote.descriptor.d.ts.map +1 -0
  181. package/dist/cli/friction/hq.friction.promote.descriptor.js +14 -0
  182. package/dist/cli/friction/hq.friction.promote.descriptor.js.map +1 -0
  183. package/dist/cli/friction/hq.friction.promote.impl.d.ts +7 -0
  184. package/dist/cli/friction/hq.friction.promote.impl.d.ts.map +1 -0
  185. package/dist/cli/friction/hq.friction.promote.impl.js +47 -0
  186. package/dist/cli/friction/hq.friction.promote.impl.js.map +1 -0
  187. package/dist/cli/friction/hq.friction.reassign-org.descriptor.d.ts +25 -0
  188. package/dist/cli/friction/hq.friction.reassign-org.descriptor.d.ts.map +1 -0
  189. package/dist/cli/friction/hq.friction.reassign-org.descriptor.js +18 -0
  190. package/dist/cli/friction/hq.friction.reassign-org.descriptor.js.map +1 -0
  191. package/dist/cli/friction/hq.friction.reassign-org.impl.d.ts +6 -0
  192. package/dist/cli/friction/hq.friction.reassign-org.impl.d.ts.map +1 -0
  193. package/dist/cli/friction/hq.friction.reassign-org.impl.js +27 -0
  194. package/dist/cli/friction/hq.friction.reassign-org.impl.js.map +1 -0
  195. package/dist/cli/friction/hq.friction.reject.descriptor.d.ts +24 -0
  196. package/dist/cli/friction/hq.friction.reject.descriptor.d.ts.map +1 -0
  197. package/dist/cli/friction/hq.friction.reject.descriptor.js +17 -0
  198. package/dist/cli/friction/hq.friction.reject.descriptor.js.map +1 -0
  199. package/dist/cli/friction/hq.friction.reject.impl.d.ts +6 -0
  200. package/dist/cli/friction/hq.friction.reject.impl.d.ts.map +1 -0
  201. package/dist/cli/friction/hq.friction.reject.impl.js +7 -0
  202. package/dist/cli/friction/hq.friction.reject.impl.js.map +1 -0
  203. package/dist/cli/friction/hq.friction.resolve.descriptor.d.ts +27 -0
  204. package/dist/cli/friction/hq.friction.resolve.descriptor.d.ts.map +1 -0
  205. package/dist/cli/friction/hq.friction.resolve.descriptor.js +18 -0
  206. package/dist/cli/friction/hq.friction.resolve.descriptor.js.map +1 -0
  207. package/dist/cli/friction/hq.friction.resolve.impl.d.ts +6 -0
  208. package/dist/cli/friction/hq.friction.resolve.impl.d.ts.map +1 -0
  209. package/dist/cli/friction/hq.friction.resolve.impl.js +7 -0
  210. package/dist/cli/friction/hq.friction.resolve.impl.js.map +1 -0
  211. package/dist/cli/friction/hq.friction.show.descriptor.d.ts +24 -0
  212. package/dist/cli/friction/hq.friction.show.descriptor.d.ts.map +1 -0
  213. package/dist/cli/friction/hq.friction.show.descriptor.js +17 -0
  214. package/dist/cli/friction/hq.friction.show.descriptor.js.map +1 -0
  215. package/dist/cli/friction/hq.friction.show.impl.d.ts +7 -0
  216. package/dist/cli/friction/hq.friction.show.impl.d.ts.map +1 -0
  217. package/dist/cli/friction/hq.friction.show.impl.js +64 -0
  218. package/dist/cli/friction/hq.friction.show.impl.js.map +1 -0
  219. package/dist/cli/friction/hq.friction.sync.descriptor.d.ts +16 -0
  220. package/dist/cli/friction/hq.friction.sync.descriptor.d.ts.map +1 -0
  221. package/dist/cli/friction/hq.friction.sync.descriptor.js +13 -0
  222. package/dist/cli/friction/hq.friction.sync.descriptor.js.map +1 -0
  223. package/dist/cli/friction/hq.friction.sync.impl.d.ts +7 -0
  224. package/dist/cli/friction/hq.friction.sync.impl.d.ts.map +1 -0
  225. package/dist/cli/friction/hq.friction.sync.impl.js +29 -0
  226. package/dist/cli/friction/hq.friction.sync.impl.js.map +1 -0
  227. package/dist/cli/friction/hq.friction.triage.descriptor.d.ts +27 -0
  228. package/dist/cli/friction/hq.friction.triage.descriptor.d.ts.map +1 -0
  229. package/dist/cli/friction/hq.friction.triage.descriptor.js +18 -0
  230. package/dist/cli/friction/hq.friction.triage.descriptor.js.map +1 -0
  231. package/dist/cli/friction/hq.friction.triage.impl.d.ts +6 -0
  232. package/dist/cli/friction/hq.friction.triage.impl.d.ts.map +1 -0
  233. package/dist/cli/friction/hq.friction.triage.impl.js +7 -0
  234. package/dist/cli/friction/hq.friction.triage.impl.js.map +1 -0
  235. package/dist/cli/friction/invocation.d.ts +17 -0
  236. package/dist/cli/friction/invocation.d.ts.map +1 -0
  237. package/dist/cli/friction/invocation.js +76 -0
  238. package/dist/cli/friction/invocation.js.map +1 -0
  239. package/dist/cli/health/hq.health.descriptor.d.ts +19 -0
  240. package/dist/cli/health/hq.health.descriptor.d.ts.map +1 -0
  241. package/dist/cli/health/hq.health.descriptor.js +16 -0
  242. package/dist/cli/health/hq.health.descriptor.js.map +1 -0
  243. package/dist/cli/health/hq.health.impl.d.ts +3 -0
  244. package/dist/cli/health/hq.health.impl.d.ts.map +1 -0
  245. package/dist/cli/health/hq.health.impl.js +151 -0
  246. package/dist/cli/health/hq.health.impl.js.map +1 -0
  247. package/dist/cli/host-platform.d.ts +14 -0
  248. package/dist/cli/host-platform.d.ts.map +1 -0
  249. package/dist/cli/host-platform.js +30 -0
  250. package/dist/cli/host-platform.js.map +1 -0
  251. package/dist/cli/hq.cli-group.descriptor.d.ts +11 -0
  252. package/dist/cli/hq.cli-group.descriptor.d.ts.map +1 -0
  253. package/dist/cli/hq.cli-group.descriptor.js +11 -0
  254. package/dist/cli/hq.cli-group.descriptor.js.map +1 -0
  255. package/dist/cli/init/hq.init.descriptor.d.ts +7 -0
  256. package/dist/cli/init/hq.init.descriptor.d.ts.map +1 -0
  257. package/dist/cli/init/hq.init.descriptor.js +36 -0
  258. package/dist/cli/init/hq.init.descriptor.js.map +1 -0
  259. package/dist/cli/init/hq.init.impl.d.ts +7 -0
  260. package/dist/cli/init/hq.init.impl.d.ts.map +1 -0
  261. package/dist/cli/init/hq.init.impl.js +163 -0
  262. package/dist/cli/init/hq.init.impl.js.map +1 -0
  263. package/dist/cli/install/hq.install.descriptor.d.ts +9 -0
  264. package/dist/cli/install/hq.install.descriptor.d.ts.map +1 -0
  265. package/dist/cli/install/hq.install.descriptor.js +34 -0
  266. package/dist/cli/install/hq.install.descriptor.js.map +1 -0
  267. package/dist/cli/install/hq.install.impl.d.ts +6 -0
  268. package/dist/cli/install/hq.install.impl.d.ts.map +1 -0
  269. package/dist/cli/install/hq.install.impl.js +110 -0
  270. package/dist/cli/install/hq.install.impl.js.map +1 -0
  271. package/dist/cli/permissions/hq.permissions.descriptor.d.ts +9 -0
  272. package/dist/cli/permissions/hq.permissions.descriptor.d.ts.map +1 -0
  273. package/dist/cli/permissions/hq.permissions.descriptor.js +25 -0
  274. package/dist/cli/permissions/hq.permissions.descriptor.js.map +1 -0
  275. package/dist/cli/permissions/hq.permissions.impl.d.ts +3 -0
  276. package/dist/cli/permissions/hq.permissions.impl.d.ts.map +1 -0
  277. package/dist/cli/permissions/hq.permissions.impl.js +113 -0
  278. package/dist/cli/permissions/hq.permissions.impl.js.map +1 -0
  279. package/dist/cli/plugin.d.ts +3 -0
  280. package/dist/cli/plugin.d.ts.map +1 -0
  281. package/dist/cli/plugin.js +79 -0
  282. package/dist/cli/plugin.js.map +1 -0
  283. package/dist/cli/schemas/input.d.ts +119 -0
  284. package/dist/cli/schemas/input.d.ts.map +1 -0
  285. package/dist/cli/schemas/input.js +67 -0
  286. package/dist/cli/schemas/input.js.map +1 -0
  287. package/dist/cli/service/hq.service.cli-group.descriptor.d.ts +12 -0
  288. package/dist/cli/service/hq.service.cli-group.descriptor.d.ts.map +1 -0
  289. package/dist/cli/service/hq.service.cli-group.descriptor.js +12 -0
  290. package/dist/cli/service/hq.service.cli-group.descriptor.js.map +1 -0
  291. package/dist/cli/service/hq.service.list.descriptor.d.ts +16 -0
  292. package/dist/cli/service/hq.service.list.descriptor.d.ts.map +1 -0
  293. package/dist/cli/service/hq.service.list.descriptor.js +13 -0
  294. package/dist/cli/service/hq.service.list.descriptor.js.map +1 -0
  295. package/dist/cli/service/hq.service.list.impl.d.ts +7 -0
  296. package/dist/cli/service/hq.service.list.impl.d.ts.map +1 -0
  297. package/dist/cli/service/hq.service.list.impl.js +31 -0
  298. package/dist/cli/service/hq.service.list.impl.js.map +1 -0
  299. package/dist/cli/service/hq.service.manage.descriptor.d.ts +25 -0
  300. package/dist/cli/service/hq.service.manage.descriptor.d.ts.map +1 -0
  301. package/dist/cli/service/hq.service.manage.descriptor.js +23 -0
  302. package/dist/cli/service/hq.service.manage.descriptor.js.map +1 -0
  303. package/dist/cli/service/hq.service.manage.impl.d.ts +7 -0
  304. package/dist/cli/service/hq.service.manage.impl.d.ts.map +1 -0
  305. package/dist/cli/service/hq.service.manage.impl.js +64 -0
  306. package/dist/cli/service/hq.service.manage.impl.js.map +1 -0
  307. package/dist/cli/service/hq.service.register.descriptor.d.ts +21 -0
  308. package/dist/cli/service/hq.service.register.descriptor.d.ts.map +1 -0
  309. package/dist/cli/service/hq.service.register.descriptor.js +20 -0
  310. package/dist/cli/service/hq.service.register.descriptor.js.map +1 -0
  311. package/dist/cli/service/hq.service.register.impl.d.ts +7 -0
  312. package/dist/cli/service/hq.service.register.impl.d.ts.map +1 -0
  313. package/dist/cli/service/hq.service.register.impl.js +35 -0
  314. package/dist/cli/service/hq.service.register.impl.js.map +1 -0
  315. package/dist/cli/setup/hq.setup.descriptor.d.ts +9 -0
  316. package/dist/cli/setup/hq.setup.descriptor.d.ts.map +1 -0
  317. package/dist/cli/setup/hq.setup.descriptor.js +22 -0
  318. package/dist/cli/setup/hq.setup.descriptor.js.map +1 -0
  319. package/dist/cli/setup/hq.setup.impl.d.ts +7 -0
  320. package/dist/cli/setup/hq.setup.impl.d.ts.map +1 -0
  321. package/dist/cli/setup/hq.setup.impl.js +57 -0
  322. package/dist/cli/setup/hq.setup.impl.js.map +1 -0
  323. package/dist/cli/setup/index.d.ts +2 -0
  324. package/dist/cli/setup/index.d.ts.map +1 -0
  325. package/dist/cli/setup/index.js +2 -0
  326. package/dist/cli/setup/index.js.map +1 -0
  327. package/dist/cli/surface/hq.surface.cli-group.descriptor.d.ts +12 -0
  328. package/dist/cli/surface/hq.surface.cli-group.descriptor.d.ts.map +1 -0
  329. package/dist/cli/surface/hq.surface.cli-group.descriptor.js +12 -0
  330. package/dist/cli/surface/hq.surface.cli-group.descriptor.js.map +1 -0
  331. package/dist/cli/surface/hq.surface.list.descriptor.d.ts +20 -0
  332. package/dist/cli/surface/hq.surface.list.descriptor.d.ts.map +1 -0
  333. package/dist/cli/surface/hq.surface.list.descriptor.js +20 -0
  334. package/dist/cli/surface/hq.surface.list.descriptor.js.map +1 -0
  335. package/dist/cli/surface/hq.surface.list.impl.d.ts +7 -0
  336. package/dist/cli/surface/hq.surface.list.impl.d.ts.map +1 -0
  337. package/dist/cli/surface/hq.surface.list.impl.js +35 -0
  338. package/dist/cli/surface/hq.surface.list.impl.js.map +1 -0
  339. package/dist/cli/surface/hq.surface.resolve.descriptor.d.ts +22 -0
  340. package/dist/cli/surface/hq.surface.resolve.descriptor.d.ts.map +1 -0
  341. package/dist/cli/surface/hq.surface.resolve.descriptor.js +20 -0
  342. package/dist/cli/surface/hq.surface.resolve.descriptor.js.map +1 -0
  343. package/dist/cli/surface/hq.surface.resolve.impl.d.ts +7 -0
  344. package/dist/cli/surface/hq.surface.resolve.impl.d.ts.map +1 -0
  345. package/dist/cli/surface/hq.surface.resolve.impl.js +29 -0
  346. package/dist/cli/surface/hq.surface.resolve.impl.js.map +1 -0
  347. package/dist/client/friction/index.d.ts +58 -0
  348. package/dist/client/friction/index.d.ts.map +1 -0
  349. package/dist/client/friction/index.js +146 -0
  350. package/dist/client/friction/index.js.map +1 -0
  351. package/dist/client/friction.client.descriptor.d.ts +14 -0
  352. package/dist/client/friction.client.descriptor.d.ts.map +1 -0
  353. package/dist/client/friction.client.descriptor.js +14 -0
  354. package/dist/client/friction.client.descriptor.js.map +1 -0
  355. package/dist/client/hq.client.descriptor.d.ts +14 -0
  356. package/dist/client/hq.client.descriptor.d.ts.map +1 -0
  357. package/dist/client/hq.client.descriptor.js +14 -0
  358. package/dist/client/hq.client.descriptor.js.map +1 -0
  359. package/dist/client/index.d.ts +95 -0
  360. package/dist/client/index.d.ts.map +1 -0
  361. package/dist/client/index.js +144 -0
  362. package/dist/client/index.js.map +1 -0
  363. package/dist/config/hq-friction.config.descriptor.d.ts +227 -0
  364. package/dist/config/hq-friction.config.descriptor.d.ts.map +1 -0
  365. package/dist/config/hq-friction.config.descriptor.js +116 -0
  366. package/dist/config/hq-friction.config.descriptor.js.map +1 -0
  367. package/dist/dashboard.d.ts +133 -0
  368. package/dist/dashboard.d.ts.map +1 -0
  369. package/dist/dashboard.js +371 -0
  370. package/dist/dashboard.js.map +1 -0
  371. package/dist/docs/hq.machines.docs.descriptor.d.ts +22 -0
  372. package/dist/docs/hq.machines.docs.descriptor.d.ts.map +1 -0
  373. package/dist/docs/hq.machines.docs.descriptor.js +65 -0
  374. package/dist/docs/hq.machines.docs.descriptor.js.map +1 -0
  375. package/dist/docs/hq.sessions.docs.descriptor.d.ts +22 -0
  376. package/dist/docs/hq.sessions.docs.descriptor.d.ts.map +1 -0
  377. package/dist/docs/hq.sessions.docs.descriptor.js +74 -0
  378. package/dist/docs/hq.sessions.docs.descriptor.js.map +1 -0
  379. package/dist/docs/hq.surfaces.docs.descriptor.d.ts +38 -0
  380. package/dist/docs/hq.surfaces.docs.descriptor.d.ts.map +1 -0
  381. package/dist/docs/hq.surfaces.docs.descriptor.js +161 -0
  382. package/dist/docs/hq.surfaces.docs.descriptor.js.map +1 -0
  383. package/dist/docs/hq.terminal.docs.descriptor.d.ts +22 -0
  384. package/dist/docs/hq.terminal.docs.descriptor.d.ts.map +1 -0
  385. package/dist/docs/hq.terminal.docs.descriptor.js +86 -0
  386. package/dist/docs/hq.terminal.docs.descriptor.js.map +1 -0
  387. package/dist/friction/clusters.d.ts +23 -0
  388. package/dist/friction/clusters.d.ts.map +1 -0
  389. package/dist/friction/clusters.js +56 -0
  390. package/dist/friction/clusters.js.map +1 -0
  391. package/dist/friction/fingerprint.d.ts +56 -0
  392. package/dist/friction/fingerprint.d.ts.map +1 -0
  393. package/dist/friction/fingerprint.js +113 -0
  394. package/dist/friction/fingerprint.js.map +1 -0
  395. package/dist/friction/friction-dispositions.record.descriptor.d.ts +4 -0
  396. package/dist/friction/friction-dispositions.record.descriptor.d.ts.map +1 -0
  397. package/dist/friction/friction-dispositions.record.descriptor.js +36 -0
  398. package/dist/friction/friction-dispositions.record.descriptor.js.map +1 -0
  399. package/dist/friction/friction-signals.record.descriptor.d.ts +12 -0
  400. package/dist/friction/friction-signals.record.descriptor.d.ts.map +1 -0
  401. package/dist/friction/friction-signals.record.descriptor.js +52 -0
  402. package/dist/friction/friction-signals.record.descriptor.js.map +1 -0
  403. package/dist/friction/intake.d.ts +79 -0
  404. package/dist/friction/intake.d.ts.map +1 -0
  405. package/dist/friction/intake.js +459 -0
  406. package/dist/friction/intake.js.map +1 -0
  407. package/dist/friction/jobs/friction-clusters.job.descriptor.d.ts +71 -0
  408. package/dist/friction/jobs/friction-clusters.job.descriptor.d.ts.map +1 -0
  409. package/dist/friction/jobs/friction-clusters.job.descriptor.js +34 -0
  410. package/dist/friction/jobs/friction-clusters.job.descriptor.js.map +1 -0
  411. package/dist/friction/jobs/friction-clusters.job.impl.d.ts +22 -0
  412. package/dist/friction/jobs/friction-clusters.job.impl.d.ts.map +1 -0
  413. package/dist/friction/jobs/friction-clusters.job.impl.js +33 -0
  414. package/dist/friction/jobs/friction-clusters.job.impl.js.map +1 -0
  415. package/dist/friction/promote-input.d.ts +37 -0
  416. package/dist/friction/promote-input.d.ts.map +1 -0
  417. package/dist/friction/promote-input.js +58 -0
  418. package/dist/friction/promote-input.js.map +1 -0
  419. package/dist/friction/promotion-visibility.d.ts +34 -0
  420. package/dist/friction/promotion-visibility.d.ts.map +1 -0
  421. package/dist/friction/promotion-visibility.js +57 -0
  422. package/dist/friction/promotion-visibility.js.map +1 -0
  423. package/dist/friction/read.d.ts +21 -0
  424. package/dist/friction/read.d.ts.map +1 -0
  425. package/dist/friction/read.js +23 -0
  426. package/dist/friction/read.js.map +1 -0
  427. package/dist/friction/reassign-org.d.ts +21 -0
  428. package/dist/friction/reassign-org.d.ts.map +1 -0
  429. package/dist/friction/reassign-org.js +121 -0
  430. package/dist/friction/reassign-org.js.map +1 -0
  431. package/dist/friction/schemas/disposition.d.ts +42 -0
  432. package/dist/friction/schemas/disposition.d.ts.map +1 -0
  433. package/dist/friction/schemas/disposition.js +22 -0
  434. package/dist/friction/schemas/disposition.js.map +1 -0
  435. package/dist/friction/schemas/intake.d.ts +167 -0
  436. package/dist/friction/schemas/intake.d.ts.map +1 -0
  437. package/dist/friction/schemas/intake.js +69 -0
  438. package/dist/friction/schemas/intake.js.map +1 -0
  439. package/dist/friction/schemas/report.d.ts +138 -0
  440. package/dist/friction/schemas/report.d.ts.map +1 -0
  441. package/dist/friction/schemas/report.js +63 -0
  442. package/dist/friction/schemas/report.js.map +1 -0
  443. package/dist/friction/schemas/signal.d.ts +170 -0
  444. package/dist/friction/schemas/signal.d.ts.map +1 -0
  445. package/dist/friction/schemas/signal.js +77 -0
  446. package/dist/friction/schemas/signal.js.map +1 -0
  447. package/dist/friction/signal-recorded.event.descriptor.d.ts +53 -0
  448. package/dist/friction/signal-recorded.event.descriptor.d.ts.map +1 -0
  449. package/dist/friction/signal-recorded.event.descriptor.js +38 -0
  450. package/dist/friction/signal-recorded.event.descriptor.js.map +1 -0
  451. package/dist/friction/store.d.ts +109 -0
  452. package/dist/friction/store.d.ts.map +1 -0
  453. package/dist/friction/store.js +466 -0
  454. package/dist/friction/store.js.map +1 -0
  455. package/dist/host-guidance/descriptors/accessibility.host-permission-guidance.descriptor.d.ts +8 -0
  456. package/dist/host-guidance/descriptors/accessibility.host-permission-guidance.descriptor.d.ts.map +1 -0
  457. package/dist/host-guidance/descriptors/accessibility.host-permission-guidance.descriptor.js +18 -0
  458. package/dist/host-guidance/descriptors/accessibility.host-permission-guidance.descriptor.js.map +1 -0
  459. package/dist/host-guidance/descriptors/disk.host-permission-guidance.descriptor.d.ts +8 -0
  460. package/dist/host-guidance/descriptors/disk.host-permission-guidance.descriptor.d.ts.map +1 -0
  461. package/dist/host-guidance/descriptors/disk.host-permission-guidance.descriptor.js +18 -0
  462. package/dist/host-guidance/descriptors/disk.host-permission-guidance.descriptor.js.map +1 -0
  463. package/dist/host-guidance/descriptors/homebrew.host-health-check.descriptor.d.ts +8 -0
  464. package/dist/host-guidance/descriptors/homebrew.host-health-check.descriptor.d.ts.map +1 -0
  465. package/dist/host-guidance/descriptors/homebrew.host-health-check.descriptor.js +14 -0
  466. package/dist/host-guidance/descriptors/homebrew.host-health-check.descriptor.js.map +1 -0
  467. package/dist/host-guidance/descriptors/microphone.host-permission-guidance.descriptor.d.ts +8 -0
  468. package/dist/host-guidance/descriptors/microphone.host-permission-guidance.descriptor.d.ts.map +1 -0
  469. package/dist/host-guidance/descriptors/microphone.host-permission-guidance.descriptor.js +18 -0
  470. package/dist/host-guidance/descriptors/microphone.host-permission-guidance.descriptor.js.map +1 -0
  471. package/dist/host-guidance/kinds/host-health-check.kind.d.ts +17 -0
  472. package/dist/host-guidance/kinds/host-health-check.kind.d.ts.map +1 -0
  473. package/dist/host-guidance/kinds/host-health-check.kind.js +22 -0
  474. package/dist/host-guidance/kinds/host-health-check.kind.js.map +1 -0
  475. package/dist/host-guidance/kinds/host-permission-guidance.kind.d.ts +17 -0
  476. package/dist/host-guidance/kinds/host-permission-guidance.kind.d.ts.map +1 -0
  477. package/dist/host-guidance/kinds/host-permission-guidance.kind.js +22 -0
  478. package/dist/host-guidance/kinds/host-permission-guidance.kind.js.map +1 -0
  479. package/dist/host-guidance/registry.d.ts +16 -0
  480. package/dist/host-guidance/registry.d.ts.map +1 -0
  481. package/dist/host-guidance/registry.js +24 -0
  482. package/dist/host-guidance/registry.js.map +1 -0
  483. package/dist/hq.cloud.plugin.d.ts +3 -0
  484. package/dist/hq.cloud.plugin.d.ts.map +1 -0
  485. package/dist/hq.cloud.plugin.js +40 -0
  486. package/dist/hq.cloud.plugin.js.map +1 -0
  487. package/dist/hq.consumer.plugin.d.ts +3 -0
  488. package/dist/hq.consumer.plugin.d.ts.map +1 -0
  489. package/dist/hq.consumer.plugin.js +15 -0
  490. package/dist/hq.consumer.plugin.js.map +1 -0
  491. package/dist/hq.plugin.d.ts +9 -0
  492. package/dist/hq.plugin.d.ts.map +1 -0
  493. package/dist/hq.plugin.js +99 -0
  494. package/dist/hq.plugin.js.map +1 -0
  495. package/dist/installers/builtin/ai-runtimes/installer.d.ts +21 -0
  496. package/dist/installers/builtin/ai-runtimes/installer.d.ts.map +1 -0
  497. package/dist/installers/builtin/ai-runtimes/installer.js +244 -0
  498. package/dist/installers/builtin/ai-runtimes/installer.js.map +1 -0
  499. package/dist/installers/builtin/index.d.ts +9 -0
  500. package/dist/installers/builtin/index.d.ts.map +1 -0
  501. package/dist/installers/builtin/index.js +15 -0
  502. package/dist/installers/builtin/index.js.map +1 -0
  503. package/dist/installers/builtin/language-servers/installer.d.ts +18 -0
  504. package/dist/installers/builtin/language-servers/installer.d.ts.map +1 -0
  505. package/dist/installers/builtin/language-servers/installer.js +139 -0
  506. package/dist/installers/builtin/language-servers/installer.js.map +1 -0
  507. package/dist/installers/builtin/system-deps/installer.d.ts +8 -0
  508. package/dist/installers/builtin/system-deps/installer.d.ts.map +1 -0
  509. package/dist/installers/builtin/system-deps/installer.js +78 -0
  510. package/dist/installers/builtin/system-deps/installer.js.map +1 -0
  511. package/dist/installers/compatibility.consumer.plugin.d.ts +3 -0
  512. package/dist/installers/compatibility.consumer.plugin.d.ts.map +1 -0
  513. package/dist/installers/compatibility.consumer.plugin.js +26 -0
  514. package/dist/installers/compatibility.consumer.plugin.js.map +1 -0
  515. package/dist/installers/core/index.d.ts +3 -0
  516. package/dist/installers/core/index.d.ts.map +1 -0
  517. package/dist/installers/core/index.js +3 -0
  518. package/dist/installers/core/index.js.map +1 -0
  519. package/dist/installers/core/installer-result.d.ts +10 -0
  520. package/dist/installers/core/installer-result.d.ts.map +1 -0
  521. package/dist/installers/core/installer-result.js +14 -0
  522. package/dist/installers/core/installer-result.js.map +1 -0
  523. package/dist/installers/core/installer-runtime.d.ts +18 -0
  524. package/dist/installers/core/installer-runtime.d.ts.map +1 -0
  525. package/dist/installers/core/installer-runtime.js +5 -0
  526. package/dist/installers/core/installer-runtime.js.map +1 -0
  527. package/dist/installers/core/platform.d.ts +6 -0
  528. package/dist/installers/core/platform.d.ts.map +1 -0
  529. package/dist/installers/core/platform.js +19 -0
  530. package/dist/installers/core/platform.js.map +1 -0
  531. package/dist/installers/core/workspace.d.ts +4 -0
  532. package/dist/installers/core/workspace.d.ts.map +1 -0
  533. package/dist/installers/core/workspace.js +11 -0
  534. package/dist/installers/core/workspace.js.map +1 -0
  535. package/dist/installers/index.d.ts +6 -0
  536. package/dist/installers/index.d.ts.map +1 -0
  537. package/dist/installers/index.js +6 -0
  538. package/dist/installers/index.js.map +1 -0
  539. package/dist/installers/schemas/index.d.ts +2 -0
  540. package/dist/installers/schemas/index.d.ts.map +1 -0
  541. package/dist/installers/schemas/index.js +2 -0
  542. package/dist/installers/schemas/index.js.map +1 -0
  543. package/dist/installers/schemas/platform.d.ts +10 -0
  544. package/dist/installers/schemas/platform.d.ts.map +1 -0
  545. package/dist/installers/schemas/platform.js +9 -0
  546. package/dist/installers/schemas/platform.js.map +1 -0
  547. package/dist/installers/schemas/types.d.ts +4 -0
  548. package/dist/installers/schemas/types.d.ts.map +1 -0
  549. package/dist/installers/schemas/types.js +4 -0
  550. package/dist/installers/schemas/types.js.map +1 -0
  551. package/dist/os-wall/channels.wall.d.ts +9 -0
  552. package/dist/os-wall/channels.wall.d.ts.map +1 -0
  553. package/dist/os-wall/channels.wall.js +9 -0
  554. package/dist/os-wall/channels.wall.js.map +1 -0
  555. package/dist/os-wall/surface-store.wall.d.ts +3 -0
  556. package/dist/os-wall/surface-store.wall.d.ts.map +1 -0
  557. package/dist/os-wall/surface-store.wall.js +3 -0
  558. package/dist/os-wall/surface-store.wall.js.map +1 -0
  559. package/dist/runtime-path.d.ts +7 -0
  560. package/dist/runtime-path.d.ts.map +1 -0
  561. package/dist/runtime-path.js +7 -0
  562. package/dist/runtime-path.js.map +1 -0
  563. package/dist/schemas/host-guidance.d.ts +48 -0
  564. package/dist/schemas/host-guidance.d.ts.map +1 -0
  565. package/dist/schemas/host-guidance.js +48 -0
  566. package/dist/schemas/host-guidance.js.map +1 -0
  567. package/dist/services/backends/index.d.ts +24 -0
  568. package/dist/services/backends/index.d.ts.map +1 -0
  569. package/dist/services/backends/index.js +17 -0
  570. package/dist/services/backends/index.js.map +1 -0
  571. package/dist/services/builtin/index.d.ts +78 -0
  572. package/dist/services/builtin/index.d.ts.map +1 -0
  573. package/dist/services/builtin/index.js +44 -0
  574. package/dist/services/builtin/index.js.map +1 -0
  575. package/dist/services/descriptors/vibes-bridge.os-service.descriptor.d.ts +8 -0
  576. package/dist/services/descriptors/vibes-bridge.os-service.descriptor.d.ts.map +1 -0
  577. package/dist/services/descriptors/vibes-bridge.os-service.descriptor.js +21 -0
  578. package/dist/services/descriptors/vibes-bridge.os-service.descriptor.js.map +1 -0
  579. package/dist/services/descriptors/vibes-mcp.os-service.descriptor.d.ts +8 -0
  580. package/dist/services/descriptors/vibes-mcp.os-service.descriptor.d.ts.map +1 -0
  581. package/dist/services/descriptors/vibes-mcp.os-service.descriptor.js +20 -0
  582. package/dist/services/descriptors/vibes-mcp.os-service.descriptor.js.map +1 -0
  583. package/dist/services/descriptors/vibes-pm.os-service.descriptor.d.ts +8 -0
  584. package/dist/services/descriptors/vibes-pm.os-service.descriptor.d.ts.map +1 -0
  585. package/dist/services/descriptors/vibes-pm.os-service.descriptor.js +20 -0
  586. package/dist/services/descriptors/vibes-pm.os-service.descriptor.js.map +1 -0
  587. package/dist/services/index.d.ts +14 -0
  588. package/dist/services/index.d.ts.map +1 -0
  589. package/dist/services/index.js +12 -0
  590. package/dist/services/index.js.map +1 -0
  591. package/dist/services/kinds/os-service.kind.d.ts +19 -0
  592. package/dist/services/kinds/os-service.kind.d.ts.map +1 -0
  593. package/dist/services/kinds/os-service.kind.js +24 -0
  594. package/dist/services/kinds/os-service.kind.js.map +1 -0
  595. package/dist/services/registry.d.ts +45 -0
  596. package/dist/services/registry.d.ts.map +1 -0
  597. package/dist/services/registry.js +141 -0
  598. package/dist/services/registry.js.map +1 -0
  599. package/dist/services/schemas/service.d.ts +79 -0
  600. package/dist/services/schemas/service.d.ts.map +1 -0
  601. package/dist/services/schemas/service.js +82 -0
  602. package/dist/services/schemas/service.js.map +1 -0
  603. package/dist/svelte/report/ReportProblemDialog.svelte +205 -0
  604. package/dist/svelte/report/ReportProblemDialog.svelte.d.ts +5 -0
  605. package/dist/svelte/report/ReportProblemDialog.svelte.d.ts.map +1 -0
  606. package/dist/svelte/report/capture-context.d.ts +61 -0
  607. package/dist/svelte/report/capture-context.d.ts.map +1 -0
  608. package/dist/svelte/report/capture-context.js +100 -0
  609. package/dist/svelte/report/report.plugin.d.ts +68 -0
  610. package/dist/svelte/report/report.plugin.d.ts.map +1 -0
  611. package/dist/svelte/report/report.plugin.js +109 -0
  612. package/dist/svelte/report/severity.d.ts +32 -0
  613. package/dist/svelte/report/severity.d.ts.map +1 -0
  614. package/dist/svelte/report/severity.js +13 -0
  615. package/dist/tools/applet/applet.schemas.d.ts +6 -0
  616. package/dist/tools/applet/applet.schemas.d.ts.map +1 -0
  617. package/dist/tools/applet/applet.schemas.js +6 -0
  618. package/dist/tools/applet/applet.schemas.js.map +1 -0
  619. package/dist/utils/exec.d.ts +22 -0
  620. package/dist/utils/exec.d.ts.map +1 -0
  621. package/dist/utils/exec.js +38 -0
  622. package/dist/utils/exec.js.map +1 -0
  623. package/dist/utils/fs.d.ts +10 -0
  624. package/dist/utils/fs.d.ts.map +1 -0
  625. package/dist/utils/fs.js +25 -0
  626. package/dist/utils/fs.js.map +1 -0
  627. package/package.json +268 -4
@@ -0,0 +1,42 @@
1
+ import type { VibesLink } from '@vibesdotdev/shared/schemas';
2
+ import * as z from 'zod/v4';
3
+ export declare const FrictionDispositionLinkSchema: z.ZodObject<{
4
+ kind: z.ZodString;
5
+ id: z.ZodString;
6
+ source: z.ZodString;
7
+ role: z.ZodDefault<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ export declare const FrictionDispositionKindSchema: z.ZodEnum<{
10
+ duplicate: "duplicate";
11
+ rejected: "rejected";
12
+ resolved: "resolved";
13
+ new: "new";
14
+ triaged: "triaged";
15
+ promoted: "promoted";
16
+ }>;
17
+ export declare const FrictionDispositionSchema: z.ZodObject<{
18
+ id: z.ZodString;
19
+ signalId: z.ZodString;
20
+ disposition: z.ZodEnum<{
21
+ duplicate: "duplicate";
22
+ rejected: "rejected";
23
+ resolved: "resolved";
24
+ new: "new";
25
+ triaged: "triaged";
26
+ promoted: "promoted";
27
+ }>;
28
+ triagedBy: z.ZodString;
29
+ note: z.ZodOptional<z.ZodString>;
30
+ workItemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
31
+ links: z.ZodDefault<z.ZodArray<z.ZodObject<{
32
+ kind: z.ZodString;
33
+ id: z.ZodString;
34
+ source: z.ZodString;
35
+ role: z.ZodDefault<z.ZodString>;
36
+ }, z.core.$strip>>>;
37
+ createdAt: z.ZodString;
38
+ }, z.core.$strip>;
39
+ export type FrictionDispositionKind = z.infer<typeof FrictionDispositionKindSchema>;
40
+ export type FrictionDisposition = z.infer<typeof FrictionDispositionSchema>;
41
+ export type FrictionDispositionLink = VibesLink;
42
+ //# sourceMappingURL=disposition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disposition.d.ts","sourceRoot":"","sources":["../../../src/friction/schemas/disposition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,eAAO,MAAM,6BAA6B;;;;;iBAAkB,CAAC;AAC7D,eAAO,MAAM,6BAA6B;;;;;;;EAOxC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;iBASpC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { VibesLinkSchema, VibesLinksSchema } from '@vibesdotdev/shared/schemas';
2
+ import * as z from 'zod/v4';
3
+ export const FrictionDispositionLinkSchema = VibesLinkSchema;
4
+ export const FrictionDispositionKindSchema = z.enum([
5
+ 'new',
6
+ 'triaged',
7
+ 'promoted',
8
+ 'duplicate',
9
+ 'resolved',
10
+ 'rejected'
11
+ ]);
12
+ export const FrictionDispositionSchema = z.object({
13
+ id: z.string().min(1),
14
+ signalId: z.string().min(1),
15
+ disposition: FrictionDispositionKindSchema,
16
+ triagedBy: z.string().min(1),
17
+ note: z.string().min(1).optional(),
18
+ workItemIds: z.array(z.string().min(1)).default([]),
19
+ links: VibesLinksSchema.default([]),
20
+ createdAt: z.string()
21
+ });
22
+ //# sourceMappingURL=disposition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disposition.js","sourceRoot":"","sources":["../../../src/friction/schemas/disposition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEhF,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,6BAA6B,GAAG,eAAe,CAAC;AAC7D,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,IAAI,CAAC;IACnD,KAAK;IACL,SAAS;IACT,UAAU;IACV,WAAW;IACX,UAAU;IACV,UAAU;CACV,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,WAAW,EAAE,6BAA6B;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACnD,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC;IACnC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC"}
@@ -0,0 +1,167 @@
1
+ import * as z from 'zod/v4';
2
+ /** The canonical body accepted by HQ's authenticated internal friction intake. */
3
+ export declare const FrictionIntakeInputSchema: z.ZodObject<{
4
+ orgId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
5
+ source: z.ZodDefault<z.ZodEnum<{
6
+ "agent-self-observed": "agent-self-observed";
7
+ "agent-watched-user": "agent-watched-user";
8
+ "rum-error": "rum-error";
9
+ "chat-confusion": "chat-confusion";
10
+ "incomplete-marker": "incomplete-marker";
11
+ "user-explicit": "user-explicit";
12
+ "support-ticket": "support-ticket";
13
+ "telemetry-signal": "telemetry-signal";
14
+ }>>;
15
+ audience: z.ZodDefault<z.ZodEnum<{
16
+ user: "user";
17
+ agent: "agent";
18
+ both: "both";
19
+ }>>;
20
+ surface: z.ZodString;
21
+ severity: z.ZodDefault<z.ZodEnum<{
22
+ blocker: "blocker";
23
+ annoyance: "annoyance";
24
+ "nice-to-have": "nice-to-have";
25
+ confusion: "confusion";
26
+ }>>;
27
+ observed: z.ZodString;
28
+ expected: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
29
+ repro: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
30
+ workaround: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
31
+ evidenceLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
32
+ kind: z.ZodEnum<{
33
+ url: "url";
34
+ other: "other";
35
+ "session-id": "session-id";
36
+ "run-id": "run-id";
37
+ "file-line": "file-line";
38
+ "ticket-id": "ticket-id";
39
+ "error-event-id": "error-event-id";
40
+ "commit-sha": "commit-sha";
41
+ "friction-signal": "friction-signal";
42
+ }>;
43
+ ref: z.ZodString;
44
+ }, z.core.$strip>>>;
45
+ evidence: z.ZodOptional<z.ZodType<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue, z.core.$ZodTypeInternals<import("@vibesdotdev/kernel/bootstrap").JsonValue, import("@vibesdotdev/kernel/bootstrap").JsonValue>>>;
46
+ context: z.ZodOptional<z.ZodObject<{
47
+ route: z.ZodString;
48
+ url: z.ZodString;
49
+ appVersion: z.ZodOptional<z.ZodString>;
50
+ viewport: z.ZodOptional<z.ZodObject<{
51
+ width: z.ZodNumber;
52
+ height: z.ZodNumber;
53
+ }, z.core.$strict>>;
54
+ userAgent: z.ZodOptional<z.ZodString>;
55
+ locale: z.ZodOptional<z.ZodString>;
56
+ errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
57
+ message: z.ZodString;
58
+ stack: z.ZodOptional<z.ZodString>;
59
+ at: z.ZodString;
60
+ source: z.ZodEnum<{
61
+ request: "request";
62
+ sveltekit: "sveltekit";
63
+ "window.onerror": "window.onerror";
64
+ unhandledrejection: "unhandledrejection";
65
+ }>;
66
+ }, z.core.$strict>>>;
67
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
68
+ uploadId: z.ZodString;
69
+ kind: z.ZodEnum<{
70
+ file: "file";
71
+ screenshot: "screenshot";
72
+ }>;
73
+ }, z.core.$strict>>>;
74
+ }, z.core.$strict>>;
75
+ page: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
76
+ createdBy: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
77
+ agentRunId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
78
+ userSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
79
+ occurrenceId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
80
+ }, z.core.$strip>;
81
+ export declare const FrictionIntakeResponseSchema: z.ZodObject<{
82
+ id: z.ZodString;
83
+ severity: z.ZodEnum<{
84
+ blocker: "blocker";
85
+ annoyance: "annoyance";
86
+ "nice-to-have": "nice-to-have";
87
+ confusion: "confusion";
88
+ }>;
89
+ surface: z.ZodString;
90
+ }, z.core.$strip>;
91
+ /** The body `POST /api/hq/reports` accepts from the "Report a problem" dialog. */
92
+ export declare const FrictionReportInputSchema: z.ZodObject<{
93
+ severity: z.ZodDefault<z.ZodEnum<{
94
+ blocker: "blocker";
95
+ annoyance: "annoyance";
96
+ "nice-to-have": "nice-to-have";
97
+ confusion: "confusion";
98
+ }>>;
99
+ observed: z.ZodString;
100
+ expected: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
101
+ repro: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
102
+ surface: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
103
+ context: z.ZodObject<{
104
+ route: z.ZodString;
105
+ url: z.ZodString;
106
+ appVersion: z.ZodOptional<z.ZodString>;
107
+ viewport: z.ZodOptional<z.ZodObject<{
108
+ width: z.ZodNumber;
109
+ height: z.ZodNumber;
110
+ }, z.core.$strict>>;
111
+ userAgent: z.ZodOptional<z.ZodString>;
112
+ locale: z.ZodOptional<z.ZodString>;
113
+ errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
114
+ message: z.ZodString;
115
+ stack: z.ZodOptional<z.ZodString>;
116
+ at: z.ZodString;
117
+ source: z.ZodEnum<{
118
+ request: "request";
119
+ sveltekit: "sveltekit";
120
+ "window.onerror": "window.onerror";
121
+ unhandledrejection: "unhandledrejection";
122
+ }>;
123
+ }, z.core.$strict>>>;
124
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
125
+ uploadId: z.ZodString;
126
+ kind: z.ZodEnum<{
127
+ file: "file";
128
+ screenshot: "screenshot";
129
+ }>;
130
+ }, z.core.$strict>>>;
131
+ }, z.core.$strict>;
132
+ occurrenceId: z.ZodOptional<z.ZodString>;
133
+ }, z.core.$strict>;
134
+ /** What a recorded report answers. Counts are the merged aggregate's. */
135
+ export declare const FrictionReportResponseSchema: z.ZodObject<{
136
+ id: z.ZodString;
137
+ severity: z.ZodEnum<{
138
+ blocker: "blocker";
139
+ annoyance: "annoyance";
140
+ "nice-to-have": "nice-to-have";
141
+ confusion: "confusion";
142
+ }>;
143
+ surface: z.ZodString;
144
+ personalDataLevel: z.ZodEnum<{
145
+ redacted: "redacted";
146
+ none: "none";
147
+ identified: "identified";
148
+ }>;
149
+ occurrenceCount: z.ZodNumber;
150
+ }, z.core.$strict>;
151
+ export declare const FrictionPromoteInputSchema: z.ZodObject<{
152
+ signalId: z.ZodString;
153
+ projectId: z.ZodOptional<z.ZodUUID>;
154
+ }, z.core.$strict>;
155
+ export declare const FrictionPromoteResponseSchema: z.ZodObject<{
156
+ signalId: z.ZodString;
157
+ projectId: z.ZodUUID;
158
+ disposition: z.ZodLiteral<"promoted">;
159
+ workItemIds: z.ZodArray<z.ZodUUID>;
160
+ }, z.core.$strict>;
161
+ export type FrictionPromoteInput = z.infer<typeof FrictionPromoteInputSchema>;
162
+ export type FrictionPromoteResponse = z.infer<typeof FrictionPromoteResponseSchema>;
163
+ export type FrictionIntakeInput = z.input<typeof FrictionIntakeInputSchema>;
164
+ export type FrictionReportInput = z.input<typeof FrictionReportInputSchema>;
165
+ export type FrictionReportResponse = z.infer<typeof FrictionReportResponseSchema>;
166
+ export type FrictionIntakeResponse = z.infer<typeof FrictionIntakeResponseSchema>;
167
+ //# sourceMappingURL=intake.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intake.d.ts","sourceRoot":"","sources":["../../../src/friction/schemas/intake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAiB5B,kFAAkF;AAClF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBpC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;iBAIvC,CAAC;AAEH,kFAAkF;AAClF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAWpC,CAAC;AAEH,yEAAyE;AACzE,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;kBAMvC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;kBAIrC,CAAC;AACH,eAAO,MAAM,6BAA6B;;;;;kBAKxC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -0,0 +1,69 @@
1
+ import * as z from 'zod/v4';
2
+ import { JsonValueSchema } from '@vibesdotdev/kernel/schemas/json';
3
+ import { FrictionAudienceSchema, FrictionEvidenceLinkSchema, FrictionSeveritySchema, FrictionPersonalDataLevelSchema, FrictionSourceSchema } from "./signal.js";
4
+ import { FrictionReportCaptureSchema } from "./report.js";
5
+ const optionalText = z
6
+ .string()
7
+ .trim()
8
+ .transform((value) => value || undefined)
9
+ .optional();
10
+ /** The canonical body accepted by HQ's authenticated internal friction intake. */
11
+ export const FrictionIntakeInputSchema = z.object({
12
+ orgId: optionalText,
13
+ source: FrictionSourceSchema.default('user-explicit'),
14
+ audience: FrictionAudienceSchema.default('both'),
15
+ surface: z.string().trim().min(1),
16
+ severity: FrictionSeveritySchema.default('annoyance'),
17
+ observed: z.string().trim().min(5),
18
+ expected: optionalText,
19
+ repro: optionalText,
20
+ workaround: optionalText,
21
+ evidenceLinks: z.array(FrictionEvidenceLinkSchema).default([]),
22
+ /** Structured context is evidence, never part of the causal fingerprint. */
23
+ evidence: JsonValueSchema.optional(),
24
+ /** Typed page context. Only the capture: the intake derives app, tenancy and reporter org itself. */
25
+ context: FrictionReportCaptureSchema.optional(),
26
+ page: optionalText,
27
+ createdBy: optionalText,
28
+ agentRunId: optionalText,
29
+ userSessionId: optionalText,
30
+ occurrenceId: optionalText
31
+ });
32
+ export const FrictionIntakeResponseSchema = z.object({
33
+ id: z.string().min(1),
34
+ severity: FrictionSeveritySchema,
35
+ surface: z.string().min(1)
36
+ });
37
+ /** The body `POST /api/hq/reports` accepts from the "Report a problem" dialog. */
38
+ export const FrictionReportInputSchema = z.strictObject({
39
+ severity: FrictionSeveritySchema.default('annoyance'),
40
+ /** The reporter's description. */
41
+ observed: z.string().trim().min(5).max(8000),
42
+ expected: z.string().trim().max(8000).transform((value) => value || undefined).optional(),
43
+ repro: z.string().trim().max(8000).transform((value) => value || undefined).optional(),
44
+ /** The product surface; the intake defaults it to the route template. */
45
+ surface: z.string().trim().max(500).transform((value) => value || undefined).optional(),
46
+ context: FrictionReportCaptureSchema,
47
+ /** A per-submit id (a random UUID) so a retried submit stays one occurrence. */
48
+ occurrenceId: z.string().trim().min(1).max(200).optional()
49
+ });
50
+ /** What a recorded report answers. Counts are the merged aggregate's. */
51
+ export const FrictionReportResponseSchema = z.strictObject({
52
+ id: z.string().min(1),
53
+ severity: FrictionSeveritySchema,
54
+ surface: z.string().min(1),
55
+ personalDataLevel: FrictionPersonalDataLevelSchema,
56
+ occurrenceCount: z.number().int().positive()
57
+ });
58
+ export const FrictionPromoteInputSchema = z.strictObject({
59
+ signalId: z.string().min(1),
60
+ /** Explicit target, or the receiving HQ deployment's configured project. */
61
+ projectId: z.uuid().optional()
62
+ });
63
+ export const FrictionPromoteResponseSchema = z.strictObject({
64
+ signalId: z.string().min(1),
65
+ projectId: z.uuid(),
66
+ disposition: z.literal('promoted'),
67
+ workItemIds: z.array(z.uuid()).min(1)
68
+ });
69
+ //# sourceMappingURL=intake.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intake.js","sourceRoot":"","sources":["../../../src/friction/schemas/intake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EACN,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,+BAA+B,EAC/B,oBAAoB,EACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE1D,MAAM,YAAY,GAAG,CAAC;KACpB,MAAM,EAAE;KACR,IAAI,EAAE;KACN,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,SAAS,CAAC;KACxC,QAAQ,EAAE,C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AE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACxD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,4EAA4E;IAC5E,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE;IACnB,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAClC,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CACrC,CAAC,CAAC"}
@@ -0,0 +1,138 @@
1
+ /**
2
+ * Friction report context: the typed page facts a "Report a problem" submit
3
+ * carries. The browser sends a {@link FrictionReportCaptureSchema}; the
4
+ * package intake adds the server-derived facts (the registered app, the
5
+ * tenancy decision, the reporter's org) to make the stored
6
+ * {@link FrictionReportContextSchema}. The body never decides tenancy.
7
+ *
8
+ * The POST body and response that carry this context live with the other
9
+ * intake bodies in `./intake.ts`.
10
+ */
11
+ import * as z from 'zod/v4';
12
+ /** Where a captured error came from. The first three match logging's browser ring buffer. */
13
+ export declare const FrictionReportErrorSourceSchema: z.ZodEnum<{
14
+ request: "request";
15
+ sveltekit: "sveltekit";
16
+ "window.onerror": "window.onerror";
17
+ unhandledrejection: "unhandledrejection";
18
+ }>;
19
+ export declare const FrictionReportErrorSchema: z.ZodObject<{
20
+ message: z.ZodString;
21
+ stack: z.ZodOptional<z.ZodString>;
22
+ at: z.ZodString;
23
+ source: z.ZodEnum<{
24
+ request: "request";
25
+ sveltekit: "sveltekit";
26
+ "window.onerror": "window.onerror";
27
+ unhandledrejection: "unhandledrejection";
28
+ }>;
29
+ }, z.core.$strict>;
30
+ export declare const FrictionReportAttachmentKindSchema: z.ZodEnum<{
31
+ file: "file";
32
+ screenshot: "screenshot";
33
+ }>;
34
+ /** A private `uploads/store` object the reporter attached. */
35
+ export declare const FrictionReportAttachmentSchema: z.ZodObject<{
36
+ uploadId: z.ZodString;
37
+ kind: z.ZodEnum<{
38
+ file: "file";
39
+ screenshot: "screenshot";
40
+ }>;
41
+ }, z.core.$strict>;
42
+ export declare const FrictionReportViewportSchema: z.ZodObject<{
43
+ width: z.ZodNumber;
44
+ height: z.ZodNumber;
45
+ }, z.core.$strict>;
46
+ export declare const FRICTION_REPORT_MAX_ERRORS = 20;
47
+ export declare const FRICTION_REPORT_MAX_ATTACHMENTS = 5;
48
+ /** What the browser captures. Every field is evidence; none of it decides tenancy. */
49
+ export declare const FrictionReportCaptureSchema: z.ZodObject<{
50
+ route: z.ZodString;
51
+ url: z.ZodString;
52
+ appVersion: z.ZodOptional<z.ZodString>;
53
+ viewport: z.ZodOptional<z.ZodObject<{
54
+ width: z.ZodNumber;
55
+ height: z.ZodNumber;
56
+ }, z.core.$strict>>;
57
+ userAgent: z.ZodOptional<z.ZodString>;
58
+ locale: z.ZodOptional<z.ZodString>;
59
+ errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
60
+ message: z.ZodString;
61
+ stack: z.ZodOptional<z.ZodString>;
62
+ at: z.ZodString;
63
+ source: z.ZodEnum<{
64
+ request: "request";
65
+ sveltekit: "sveltekit";
66
+ "window.onerror": "window.onerror";
67
+ unhandledrejection: "unhandledrejection";
68
+ }>;
69
+ }, z.core.$strict>>>;
70
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
71
+ uploadId: z.ZodString;
72
+ kind: z.ZodEnum<{
73
+ file: "file";
74
+ screenshot: "screenshot";
75
+ }>;
76
+ }, z.core.$strict>>>;
77
+ }, z.core.$strict>;
78
+ /**
79
+ * How the intake chose the report's org:
80
+ * - `app-owner`: the registered app's owning org.
81
+ * - `upstream-fallback`: the app has no owning org, so it went to `hq.friction.upstreamOrgId`.
82
+ * - `upstream-copy`: this row is the redacted Vibes copy of a report filed elsewhere.
83
+ * - `dev-loopback`: a dev host's unregistered loopback origin, sent to `upstreamOrgId`.
84
+ * - `caller`: the internal intake took the verified caller's (or service-named) org.
85
+ */
86
+ export declare const FrictionReportTenancySchema: z.ZodEnum<{
87
+ caller: "caller";
88
+ "app-owner": "app-owner";
89
+ "upstream-fallback": "upstream-fallback";
90
+ "upstream-copy": "upstream-copy";
91
+ "dev-loopback": "dev-loopback";
92
+ }>;
93
+ /** The stored report context: the capture plus the server-derived facts. */
94
+ export declare const FrictionReportContextSchema: z.ZodObject<{
95
+ route: z.ZodString;
96
+ url: z.ZodString;
97
+ appVersion: z.ZodOptional<z.ZodString>;
98
+ viewport: z.ZodOptional<z.ZodObject<{
99
+ width: z.ZodNumber;
100
+ height: z.ZodNumber;
101
+ }, z.core.$strict>>;
102
+ userAgent: z.ZodOptional<z.ZodString>;
103
+ locale: z.ZodOptional<z.ZodString>;
104
+ errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
105
+ message: z.ZodString;
106
+ stack: z.ZodOptional<z.ZodString>;
107
+ at: z.ZodString;
108
+ source: z.ZodEnum<{
109
+ request: "request";
110
+ sveltekit: "sveltekit";
111
+ "window.onerror": "window.onerror";
112
+ unhandledrejection: "unhandledrejection";
113
+ }>;
114
+ }, z.core.$strict>>>;
115
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
116
+ uploadId: z.ZodString;
117
+ kind: z.ZodEnum<{
118
+ file: "file";
119
+ screenshot: "screenshot";
120
+ }>;
121
+ }, z.core.$strict>>>;
122
+ appClientId: z.ZodOptional<z.ZodString>;
123
+ tenancy: z.ZodOptional<z.ZodEnum<{
124
+ caller: "caller";
125
+ "app-owner": "app-owner";
126
+ "upstream-fallback": "upstream-fallback";
127
+ "upstream-copy": "upstream-copy";
128
+ "dev-loopback": "dev-loopback";
129
+ }>>;
130
+ reporterOrgId: z.ZodOptional<z.ZodString>;
131
+ }, z.core.$strict>;
132
+ export type FrictionReportErrorSource = z.infer<typeof FrictionReportErrorSourceSchema>;
133
+ export type FrictionReportError = z.infer<typeof FrictionReportErrorSchema>;
134
+ export type FrictionReportAttachment = z.infer<typeof FrictionReportAttachmentSchema>;
135
+ export type FrictionReportCapture = z.output<typeof FrictionReportCaptureSchema>;
136
+ export type FrictionReportTenancy = z.infer<typeof FrictionReportTenancySchema>;
137
+ export type FrictionReportContext = z.output<typeof FrictionReportContextSchema>;
138
+ //# sourceMappingURL=report.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../src/friction/schemas/report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,6FAA6F;AAC7F,eAAO,MAAM,+BAA+B;;;;;EAA2E,CAAC;AAExH,eAAO,MAAM,yBAAyB;;;;;;;;;;kBAMpC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;EAAiC,CAAC;AAEjF,8DAA8D;AAC9D,eAAO,MAAM,8BAA8B;;;;;;kBAGzC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;kBAGvC,CAAC;AAEH,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAC7C,eAAO,MAAM,+BAA+B,IAAI,CAAC;AAEjD,sFAAsF;AACtF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAWtC,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B;;;;;;EAAwF,CAAC;AAEjI,4EAA4E;AAC5E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAMtC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,2BAA2B,CAAC,CAAC;AACjF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Friction report context: the typed page facts a "Report a problem" submit
3
+ * carries. The browser sends a {@link FrictionReportCaptureSchema}; the
4
+ * package intake adds the server-derived facts (the registered app, the
5
+ * tenancy decision, the reporter's org) to make the stored
6
+ * {@link FrictionReportContextSchema}. The body never decides tenancy.
7
+ *
8
+ * The POST body and response that carry this context live with the other
9
+ * intake bodies in `./intake.ts`.
10
+ */
11
+ import * as z from 'zod/v4';
12
+ /** Where a captured error came from. The first three match logging's browser ring buffer. */
13
+ export const FrictionReportErrorSourceSchema = z.enum(['sveltekit', 'window.onerror', 'unhandledrejection', 'request']);
14
+ export const FrictionReportErrorSchema = z.strictObject({
15
+ message: z.string().min(1).max(2000),
16
+ stack: z.string().max(8000).optional(),
17
+ /** ISO timestamp of the error. */
18
+ at: z.string().min(1).max(64),
19
+ source: FrictionReportErrorSourceSchema
20
+ });
21
+ export const FrictionReportAttachmentKindSchema = z.enum(['screenshot', 'file']);
22
+ /** A private `uploads/store` object the reporter attached. */
23
+ export const FrictionReportAttachmentSchema = z.strictObject({
24
+ uploadId: z.string().min(1).max(200),
25
+ kind: FrictionReportAttachmentKindSchema
26
+ });
27
+ export const FrictionReportViewportSchema = z.strictObject({
28
+ width: z.number().int().nonnegative().max(100_000),
29
+ height: z.number().int().nonnegative().max(100_000)
30
+ });
31
+ export const FRICTION_REPORT_MAX_ERRORS = 20;
32
+ export const FRICTION_REPORT_MAX_ATTACHMENTS = 5;
33
+ /** What the browser captures. Every field is evidence; none of it decides tenancy. */
34
+ export const FrictionReportCaptureSchema = z.strictObject({
35
+ /** The route template (`/projects/[id]`), not the concrete path. */
36
+ route: z.string().trim().min(1).max(500),
37
+ /** The page URL. The intake strips its query and fragment before storing it. */
38
+ url: z.string().trim().min(1).max(2000),
39
+ appVersion: z.string().trim().min(1).max(200).optional(),
40
+ viewport: FrictionReportViewportSchema.optional(),
41
+ userAgent: z.string().max(500).optional(),
42
+ locale: z.string().max(35).optional(),
43
+ errors: z.array(FrictionReportErrorSchema).max(FRICTION_REPORT_MAX_ERRORS).default([]),
44
+ attachments: z.array(FrictionReportAttachmentSchema).max(FRICTION_REPORT_MAX_ATTACHMENTS).default([])
45
+ });
46
+ /**
47
+ * How the intake chose the report's org:
48
+ * - `app-owner`: the registered app's owning org.
49
+ * - `upstream-fallback`: the app has no owning org, so it went to `hq.friction.upstreamOrgId`.
50
+ * - `upstream-copy`: this row is the redacted Vibes copy of a report filed elsewhere.
51
+ * - `dev-loopback`: a dev host's unregistered loopback origin, sent to `upstreamOrgId`.
52
+ * - `caller`: the internal intake took the verified caller's (or service-named) org.
53
+ */
54
+ export const FrictionReportTenancySchema = z.enum(['app-owner', 'upstream-fallback', 'upstream-copy', 'dev-loopback', 'caller']);
55
+ /** The stored report context: the capture plus the server-derived facts. */
56
+ export const FrictionReportContextSchema = FrictionReportCaptureSchema.extend({
57
+ /** The registered app (Auth app registry `clientId`) the report came from. */
58
+ appClientId: z.string().min(1).optional(),
59
+ tenancy: FrictionReportTenancySchema.optional(),
60
+ /** The verified reporter's own org, when it differs from the target org. */
61
+ reporterOrgId: z.string().min(1).optional()
62
+ });
63
+ //# sourceMappingURL=report.js.map
@@ -0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