@40rty/ams-sdk 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 (317) hide show
  1. package/dist/index.js +11918 -0
  2. package/dist/types/ecommerce/src/attribute-buckets.d.ts +79 -0
  3. package/dist/types/ecommerce/src/base-attributes.d.ts +42 -0
  4. package/dist/types/ecommerce/src/bucket-labels.d.ts +37 -0
  5. package/dist/types/ecommerce/src/cart-line-selections.d.ts +24 -0
  6. package/dist/types/ecommerce/src/commerce-schemas.d.ts +1813 -0
  7. package/dist/types/ecommerce/src/format-variant-value.d.ts +1 -0
  8. package/dist/types/ecommerce/src/index.d.ts +13 -0
  9. package/dist/types/ecommerce/src/locale.d.ts +31 -0
  10. package/dist/types/ecommerce/src/optimistic-cart-line.d.ts +38 -0
  11. package/dist/types/ecommerce/src/pdp-companions.d.ts +21 -0
  12. package/dist/types/ecommerce/src/pick-product-card-action.d.ts +38 -0
  13. package/dist/types/ecommerce/src/product-lookup.d.ts +34 -0
  14. package/dist/types/ecommerce/src/projection-spec.d.ts +38 -0
  15. package/dist/types/ecommerce/src/review-schemas.d.ts +425 -0
  16. package/dist/types/sdk/src/analytics/consent.d.ts +52 -0
  17. package/dist/types/sdk/src/analytics/drops.d.ts +98 -0
  18. package/dist/types/sdk/src/analytics/emitting-scope.d.ts +2 -0
  19. package/dist/types/sdk/src/analytics/index.d.ts +12 -0
  20. package/dist/types/sdk/src/analytics/inert-scope.d.ts +2 -0
  21. package/dist/types/sdk/src/analytics/notify.d.ts +41 -0
  22. package/dist/types/sdk/src/analytics/outbox.d.ts +118 -0
  23. package/dist/types/sdk/src/analytics/scope-context.d.ts +24 -0
  24. package/dist/types/sdk/src/analytics/scope.d.ts +149 -0
  25. package/dist/types/sdk/src/analytics/surface.d.ts +77 -0
  26. package/dist/types/sdk/src/analytics/transport.d.ts +91 -0
  27. package/dist/types/sdk/src/animation/index.d.ts +2 -0
  28. package/dist/types/sdk/src/animation/useListTransition.d.ts +16 -0
  29. package/dist/types/sdk/src/animation/useUpdateTransition.d.ts +16 -0
  30. package/dist/types/sdk/src/canvas/ElementIdContext.d.ts +13 -0
  31. package/dist/types/sdk/src/canvas/GenerationStyleContext.d.ts +13 -0
  32. package/dist/types/sdk/src/canvas/ShimmerSweep.d.ts +18 -0
  33. package/dist/types/sdk/src/canvas/TransitionContext.d.ts +52 -0
  34. package/dist/types/sdk/src/canvas/canvas-arrangement.d.ts +20 -0
  35. package/dist/types/sdk/src/canvas/canvas-motion-style.d.ts +18 -0
  36. package/dist/types/sdk/src/canvas/canvas-outlet.d.ts +14 -0
  37. package/dist/types/sdk/src/canvas/canvas-tail.d.ts +31 -0
  38. package/dist/types/sdk/src/canvas/dom-targets.d.ts +140 -0
  39. package/dist/types/sdk/src/canvas/generation-entrance.d.ts +26 -0
  40. package/dist/types/sdk/src/canvas/generation-style.d.ts +62 -0
  41. package/dist/types/sdk/src/canvas/index.d.ts +21 -0
  42. package/dist/types/sdk/src/canvas/item-motion/ItemTransitionGroup.d.ts +72 -0
  43. package/dist/types/sdk/src/canvas/item-motion/classify-items.d.ts +24 -0
  44. package/dist/types/sdk/src/canvas/item-motion/index.d.ts +5 -0
  45. package/dist/types/sdk/src/canvas/item-motion/plugins/wipe.d.ts +11 -0
  46. package/dist/types/sdk/src/canvas/item-motion/profile.d.ts +77 -0
  47. package/dist/types/sdk/src/canvas/item-motion/wipe.d.ts +57 -0
  48. package/dist/types/sdk/src/canvas/nav-direction.d.ts +22 -0
  49. package/dist/types/sdk/src/canvas/runtime-context.d.ts +15 -0
  50. package/dist/types/sdk/src/canvas/runtime-hooks.d.ts +106 -0
  51. package/dist/types/sdk/src/canvas/runtime-types.d.ts +183 -0
  52. package/dist/types/sdk/src/canvas/scroll-event-target.d.ts +21 -0
  53. package/dist/types/sdk/src/canvas/turn-change-anchor.d.ts +34 -0
  54. package/dist/types/sdk/src/canvas/turn-edit.d.ts +8 -0
  55. package/dist/types/sdk/src/canvas/use-canvas-actions.d.ts +41 -0
  56. package/dist/types/sdk/src/canvas/use-fourty-layout.d.ts +19 -0
  57. package/dist/types/sdk/src/catalog/CatalogContext.d.ts +7 -0
  58. package/dist/types/sdk/src/catalog/DebugContext.d.ts +5 -0
  59. package/dist/types/sdk/src/catalog/HydrationStateContext.d.ts +45 -0
  60. package/dist/types/sdk/src/catalog/HydratorContext.d.ts +7 -0
  61. package/dist/types/sdk/src/catalog/component-library.d.ts +32 -0
  62. package/dist/types/sdk/src/catalog/define.d.ts +149 -0
  63. package/dist/types/sdk/src/catalog/hydrator-registry.d.ts +91 -0
  64. package/dist/types/sdk/src/catalog/index.d.ts +14 -0
  65. package/dist/types/sdk/src/catalog/interaction-contract.d.ts +78 -0
  66. package/dist/types/sdk/src/catalog/normalize-components.d.ts +17 -0
  67. package/dist/types/sdk/src/catalog/prose-value.d.ts +22 -0
  68. package/dist/types/sdk/src/catalog/registration/index.d.ts +4 -0
  69. package/dist/types/sdk/src/catalog/registration/register-component.d.ts +35 -0
  70. package/dist/types/sdk/src/catalog/registration/registry.d.ts +27 -0
  71. package/dist/types/sdk/src/catalog/registration/types.d.ts +83 -0
  72. package/dist/types/sdk/src/catalog/registry.d.ts +22 -0
  73. package/dist/types/sdk/src/catalog/render-inline.d.ts +39 -0
  74. package/dist/types/sdk/src/catalog/resolve-hydrators.d.ts +27 -0
  75. package/dist/types/sdk/src/chat/chat-context.d.ts +40 -0
  76. package/dist/types/sdk/src/chat/index.d.ts +1 -0
  77. package/dist/types/sdk/src/client-state/index.d.ts +2 -0
  78. package/dist/types/sdk/src/client-state/server-store.d.ts +38 -0
  79. package/dist/types/sdk/src/client-state/store.d.ts +20 -0
  80. package/dist/types/sdk/src/commerce/commerce-context.d.ts +62 -0
  81. package/dist/types/sdk/src/commerce/commerce-shapes.d.ts +170 -0
  82. package/dist/types/sdk/src/commerce/ecommerce/agentic-overlay.d.ts +27 -0
  83. package/dist/types/sdk/src/commerce/ecommerce/buy-now-exit.d.ts +36 -0
  84. package/dist/types/sdk/src/commerce/ecommerce/cart-action-failures.d.ts +54 -0
  85. package/dist/types/sdk/src/commerce/ecommerce/cart-drawer-store.d.ts +18 -0
  86. package/dist/types/sdk/src/commerce/ecommerce/checkout-handoff-reasons.d.ts +54 -0
  87. package/dist/types/sdk/src/commerce/ecommerce/checkout-handoff-shape.d.ts +73 -0
  88. package/dist/types/sdk/src/commerce/ecommerce/checkout-handoff-store.d.ts +39 -0
  89. package/dist/types/sdk/src/commerce/ecommerce/comparison-rows.d.ts +30 -0
  90. package/dist/types/sdk/src/commerce/ecommerce/index.d.ts +21 -0
  91. package/dist/types/sdk/src/commerce/ecommerce/normalize-collection.d.ts +17 -0
  92. package/dist/types/sdk/src/commerce/ecommerce/preselect-from-facts.d.ts +25 -0
  93. package/dist/types/sdk/src/commerce/ecommerce/product-filters.d.ts +40 -0
  94. package/dist/types/sdk/src/commerce/ecommerce/use-buy-now.d.ts +33 -0
  95. package/dist/types/sdk/src/commerce/ecommerce/use-cart-drawer.d.ts +35 -0
  96. package/dist/types/sdk/src/commerce/ecommerce/use-cart-line-row.d.ts +30 -0
  97. package/dist/types/sdk/src/commerce/ecommerce/use-comparison-table.d.ts +22 -0
  98. package/dist/types/sdk/src/commerce/ecommerce/use-look-card.d.ts +80 -0
  99. package/dist/types/sdk/src/commerce/ecommerce/use-product-card.d.ts +62 -0
  100. package/dist/types/sdk/src/commerce/ecommerce/use-product-carousel-scroll.d.ts +13 -0
  101. package/dist/types/sdk/src/commerce/ecommerce/use-product-detail.d.ts +48 -0
  102. package/dist/types/sdk/src/commerce/ecommerce/use-product-grid-filter.d.ts +17 -0
  103. package/dist/types/sdk/src/commerce/ecommerce/use-selected-variants-state.d.ts +8 -0
  104. package/dist/types/sdk/src/commerce/ecommerce/use-wishlist-drawer.d.ts +34 -0
  105. package/dist/types/sdk/src/commerce/ecommerce/variant-option-axes.d.ts +56 -0
  106. package/dist/types/sdk/src/commerce/ecommerce/variant-resolution.d.ts +83 -0
  107. package/dist/types/sdk/src/commerce/ecommerce/variant-selection.d.ts +22 -0
  108. package/dist/types/sdk/src/commerce/external-navigation.d.ts +41 -0
  109. package/dist/types/sdk/src/commerce/index.d.ts +9 -0
  110. package/dist/types/sdk/src/commerce/option-selection-store.d.ts +8 -0
  111. package/dist/types/sdk/src/commerce/pending-variant-choice-store.d.ts +20 -0
  112. package/dist/types/sdk/src/commerce/variant-selection-store.d.ts +7 -0
  113. package/dist/types/sdk/src/content/index.d.ts +2 -0
  114. package/dist/types/sdk/src/content/use-faq-accordion.d.ts +11 -0
  115. package/dist/types/sdk/src/content/use-newsletter-form.d.ts +16 -0
  116. package/dist/types/sdk/src/host/Spacefront.d.ts +11 -0
  117. package/dist/types/sdk/src/host/engine-loader.d.ts +14 -0
  118. package/dist/types/sdk/src/host/host-modules.d.ts +5833 -0
  119. package/dist/types/sdk/src/host/index.d.ts +4 -0
  120. package/dist/types/sdk/src/host/types.d.ts +52 -0
  121. package/dist/types/sdk/src/index.d.ts +21 -0
  122. package/dist/types/sdk/src/interaction/haptics.d.ts +8 -0
  123. package/dist/types/sdk/src/interaction/index.d.ts +3 -0
  124. package/dist/types/sdk/src/interaction/normalize-signals.d.ts +8 -0
  125. package/dist/types/sdk/src/interaction/withInteractionTracking.d.ts +48 -0
  126. package/dist/types/sdk/src/npm.d.ts +3 -0
  127. package/dist/types/sdk/src/projection/ProjectionSignalBridge.d.ts +5 -0
  128. package/dist/types/sdk/src/projection/index.d.ts +1 -0
  129. package/dist/types/sdk/src/projection/preferences.d.ts +12 -0
  130. package/dist/types/sdk/src/projection/transform.d.ts +7 -0
  131. package/dist/types/sdk/src/provider/AgentAsk.d.ts +16 -0
  132. package/dist/types/sdk/src/provider/index.d.ts +4 -0
  133. package/dist/types/sdk/src/provider/providers/handler-registry.d.ts +11 -0
  134. package/dist/types/sdk/src/provider/use-clamp-toggle.d.ts +22 -0
  135. package/dist/types/sdk/src/provider/use-timed-flag.d.ts +16 -0
  136. package/dist/types/sdk/src/rendering/index.d.ts +1 -0
  137. package/dist/types/sdk/src/rendering/post-hydration.d.ts +37 -0
  138. package/dist/types/sdk/src/session/FourtySessionContext.d.ts +228 -0
  139. package/dist/types/sdk/src/session/clear-registry.d.ts +6 -0
  140. package/dist/types/sdk/src/session/index.d.ts +4 -0
  141. package/dist/types/sdk/src/session/use-action.d.ts +25 -0
  142. package/dist/types/sdk/src/session/visitor-locale.d.ts +2 -0
  143. package/dist/types/sdk/src/shared/index.d.ts +2 -0
  144. package/dist/types/sdk/src/shared/use-expandable.d.ts +9 -0
  145. package/dist/types/sdk/src/shared/use-image-hover.d.ts +13 -0
  146. package/dist/types/sdk/src/shell/ScrollContainerContext.d.ts +25 -0
  147. package/dist/types/sdk/src/shell/ShellRegistry.d.ts +25 -0
  148. package/dist/types/sdk/src/shell/ShellRootContext.d.ts +15 -0
  149. package/dist/types/sdk/src/shell/dock-persistence.d.ts +49 -0
  150. package/dist/types/sdk/src/shell/exclusive-overlay.d.ts +16 -0
  151. package/dist/types/sdk/src/shell/index.d.ts +12 -0
  152. package/dist/types/sdk/src/shell/thread-scroll/ThreadHeadroom.d.ts +11 -0
  153. package/dist/types/sdk/src/shell/thread-scroll/headroom.d.ts +4 -0
  154. package/dist/types/sdk/src/shell/thread-scroll/index.d.ts +6 -0
  155. package/dist/types/sdk/src/shell/thread-scroll/pin-turn-head.d.ts +12 -0
  156. package/dist/types/sdk/src/shell/thread-scroll/settle-thread-row.d.ts +23 -0
  157. package/dist/types/sdk/src/shell/thread-scroll/thread-geometry.d.ts +27 -0
  158. package/dist/types/sdk/src/shell/thread-scroll/thread-row-attr.d.ts +4 -0
  159. package/dist/types/sdk/src/shell/thread-scroll/use-pin-turn-to-top.d.ts +22 -0
  160. package/dist/types/sdk/src/shell/thread-scroll/use-scroll-has-more-below.d.ts +19 -0
  161. package/dist/types/sdk/src/shell/thread-scroll/use-thread-jump-marks.d.ts +28 -0
  162. package/dist/types/sdk/src/shell/thread-scroll/use-thread-landing.d.ts +1 -0
  163. package/dist/types/sdk/src/shell/use-composer-chip-select.d.ts +21 -0
  164. package/dist/types/sdk/src/shell/use-go-home.d.ts +11 -0
  165. package/dist/types/sdk/src/shell/use-hydrated.d.ts +19 -0
  166. package/dist/types/sdk/src/shell/use-menu-item-select.d.ts +13 -0
  167. package/dist/types/sdk/src/shell/use-overridable-toggle.d.ts +24 -0
  168. package/dist/types/sdk/src/shell/use-thread-rows.d.ts +41 -0
  169. package/dist/types/sdk/src/social/index.d.ts +2 -0
  170. package/dist/types/sdk/src/social/use-review-helpful.d.ts +10 -0
  171. package/dist/types/sdk/src/social/use-testimonials-carousel.d.ts +15 -0
  172. package/dist/types/sdk/src/utils/core-utils/format-distance.d.ts +6 -0
  173. package/dist/types/sdk/src/utils/core-utils/format-price.d.ts +7 -0
  174. package/dist/types/sdk/src/utils/core-utils/index.d.ts +10 -0
  175. package/dist/types/sdk/src/utils/core-utils/inject-google-fonts.d.ts +17 -0
  176. package/dist/types/sdk/src/utils/core-utils/is-on-sale.d.ts +6 -0
  177. package/dist/types/sdk/src/utils/core-utils/is-video-url.d.ts +6 -0
  178. package/dist/types/sdk/src/utils/core-utils/maps-directions-url.d.ts +5 -0
  179. package/dist/types/sdk/src/utils/core-utils/mint-id.d.ts +10 -0
  180. package/dist/types/sdk/src/utils/core-utils/resolve-swatch-color.d.ts +2 -0
  181. package/dist/types/sdk/src/utils/core-utils/validate-all.d.ts +13 -0
  182. package/dist/types/sdk/src/utils/index.d.ts +10 -0
  183. package/dist/types/sdk/src/utils/storage.d.ts +9 -0
  184. package/dist/types/sdk/src/utils/use-document-visible.d.ts +9 -0
  185. package/dist/types/sdk/src/utils/use-form-factor.d.ts +24 -0
  186. package/dist/types/sdk/src/utils/use-inline-completion.d.ts +48 -0
  187. package/dist/types/sdk/src/utils/use-interval.d.ts +7 -0
  188. package/dist/types/sdk/src/utils/use-success-flash.d.ts +35 -0
  189. package/dist/types/sdk/src/utils/use-wake-lock.d.ts +15 -0
  190. package/dist/types/sdk/src/utils/viewport-window.d.ts +39 -0
  191. package/dist/types/sdk/src/voice/index.d.ts +2 -0
  192. package/dist/types/sdk/src/voice/use-dictation.d.ts +80 -0
  193. package/dist/types/sdk/src/voice/use-voice-capture.d.ts +65 -0
  194. package/dist/types/sdk/src/widgets/presence/core-presence/fact-form-registry.d.ts +43 -0
  195. package/dist/types/sdk/src/widgets/presence/core-presence/fact-shape.d.ts +70 -0
  196. package/dist/types/sdk/src/widgets/presence/core-presence/form-registry.d.ts +28 -0
  197. package/dist/types/sdk/src/widgets/presence/core-presence/knowledge.d.ts +18 -0
  198. package/dist/types/sdk/src/widgets/presence/core-presence/presence-restore.d.ts +13 -0
  199. package/dist/types/sdk/src/widgets/presence/core-presence/presence-stream.d.ts +64 -0
  200. package/dist/types/sdk/src/widgets/presence/core-presence/source-form-registry.d.ts +129 -0
  201. package/dist/types/sdk/src/widgets/presence/core-presence/standing-signal-store.d.ts +19 -0
  202. package/dist/types/sdk/src/widgets/presence/flows/flow-store.d.ts +22 -0
  203. package/dist/types/sdk/src/widgets/presence/index.d.ts +17 -0
  204. package/dist/types/sdk/src/widgets/presence/runtime-context.d.ts +109 -0
  205. package/dist/types/sdk/src/widgets/presence/use-layout-entity-ids.d.ts +12 -0
  206. package/dist/types/sdk/src/widgets/presence/use-optimistic-facts.d.ts +43 -0
  207. package/dist/types/sdk/src/widgets/presence/use-optimistic-flow-set.d.ts +24 -0
  208. package/dist/types/sdk/src/widgets/presence/use-presence-notch.d.ts +75 -0
  209. package/dist/types/sdk/src/widgets/presence/use-presence.d.ts +45 -0
  210. package/dist/types/sdk/src/widgets/presence/use-standing-signal.d.ts +12 -0
  211. package/dist/types/spacestation/src/analytics/catalog.d.ts +89 -0
  212. package/dist/types/spacestation/src/analytics/ecommerce/events.d.ts +183 -0
  213. package/dist/types/spacestation/src/analytics/ecommerce/funnel.d.ts +22 -0
  214. package/dist/types/spacestation/src/analytics/ecommerce/index.d.ts +14 -0
  215. package/dist/types/spacestation/src/analytics/ecommerce/surfacing.d.ts +42 -0
  216. package/dist/types/spacestation/src/analytics/envelope.d.ts +222 -0
  217. package/dist/types/spacestation/src/analytics/index.d.ts +28 -0
  218. package/dist/types/spacestation/src/analytics/kind.d.ts +155 -0
  219. package/dist/types/spacestation/src/analytics/session.d.ts +35 -0
  220. package/dist/types/spacestation/src/attachment/attachment.d.ts +83 -0
  221. package/dist/types/spacestation/src/catalog/attribute-registry.d.ts +148 -0
  222. package/dist/types/spacestation/src/catalog/attribute-scope.d.ts +41 -0
  223. package/dist/types/spacestation/src/catalog/canvas-arrangement.d.ts +43 -0
  224. package/dist/types/spacestation/src/catalog/catalog-schemas.d.ts +264 -0
  225. package/dist/types/spacestation/src/catalog/config.d.ts +13 -0
  226. package/dist/types/spacestation/src/catalog/derive-props-doc.d.ts +11 -0
  227. package/dist/types/spacestation/src/catalog/element-filled.d.ts +77 -0
  228. package/dist/types/spacestation/src/catalog/entity-refs.d.ts +14 -0
  229. package/dist/types/spacestation/src/catalog/function-props.d.ts +23 -0
  230. package/dist/types/spacestation/src/catalog/hydration-paths.d.ts +19 -0
  231. package/dist/types/spacestation/src/catalog/prose.d.ts +60 -0
  232. package/dist/types/spacestation/src/catalog/ref-sites.d.ts +45 -0
  233. package/dist/types/spacestation/src/catalog/required-props.d.ts +31 -0
  234. package/dist/types/spacestation/src/catalog/resolved.d.ts +145 -0
  235. package/dist/types/spacestation/src/catalog/structural-baseline.d.ts +7 -0
  236. package/dist/types/spacestation/src/catalog/wire/catalog-wire.d.ts +191 -0
  237. package/dist/types/spacestation/src/catalog/wire/index.d.ts +5 -0
  238. package/dist/types/spacestation/src/catalog/wire/package-release.d.ts +351 -0
  239. package/dist/types/spacestation/src/catalog/wire/schema-from-wire.d.ts +7 -0
  240. package/dist/types/spacestation/src/catalog/wire/schema-to-wire.d.ts +8 -0
  241. package/dist/types/spacestation/src/catalog/wire/wire-schema.d.ts +78 -0
  242. package/dist/types/spacestation/src/commerce/cart-add-signal.d.ts +125 -0
  243. package/dist/types/spacestation/src/commerce/cart-state.d.ts +87 -0
  244. package/dist/types/spacestation/src/commerce/cart-verb-signals.d.ts +80 -0
  245. package/dist/types/spacestation/src/commerce/page-kinds.d.ts +40 -0
  246. package/dist/types/spacestation/src/commerce/selection-signal.d.ts +25 -0
  247. package/dist/types/spacestation/src/contracts/entry-context.d.ts +35 -0
  248. package/dist/types/spacestation/src/contracts/knowledge/index.d.ts +12 -0
  249. package/dist/types/spacestation/src/contracts/knowledge/types.d.ts +238 -0
  250. package/dist/types/spacestation/src/contracts/retrieval/core/knowledge-source.d.ts +36 -0
  251. package/dist/types/spacestation/src/contracts/retrieval/core/platform-connector.d.ts +49 -0
  252. package/dist/types/spacestation/src/contracts/retrieval/ecommerce/articles/source.d.ts +3 -0
  253. package/dist/types/spacestation/src/contracts/retrieval/ecommerce/articles/types.d.ts +29 -0
  254. package/dist/types/spacestation/src/contracts/retrieval/ecommerce/client.d.ts +238 -0
  255. package/dist/types/spacestation/src/contracts/retrieval/ecommerce/collections/source.d.ts +3 -0
  256. package/dist/types/spacestation/src/contracts/retrieval/ecommerce/collections/types.d.ts +23 -0
  257. package/dist/types/spacestation/src/contracts/retrieval/ecommerce/connector.d.ts +11 -0
  258. package/dist/types/spacestation/src/contracts/retrieval/ecommerce/domains.d.ts +27 -0
  259. package/dist/types/spacestation/src/contracts/retrieval/ecommerce/faq/source.d.ts +3 -0
  260. package/dist/types/spacestation/src/contracts/retrieval/ecommerce/faq/types.d.ts +21 -0
  261. package/dist/types/spacestation/src/contracts/retrieval/ecommerce/option-values.d.ts +71 -0
  262. package/dist/types/spacestation/src/contracts/retrieval/ecommerce/policies/source.d.ts +3 -0
  263. package/dist/types/spacestation/src/contracts/retrieval/ecommerce/policies/types.d.ts +18 -0
  264. package/dist/types/spacestation/src/contracts/retrieval/ecommerce/products/source.d.ts +5 -0
  265. package/dist/types/spacestation/src/contracts/retrieval/ecommerce/products/types.d.ts +47 -0
  266. package/dist/types/spacestation/src/contracts/retrieval/index.d.ts +25 -0
  267. package/dist/types/spacestation/src/contracts/session-arrival-params.d.ts +32 -0
  268. package/dist/types/spacestation/src/contracts/session-arrival.d.ts +215 -0
  269. package/dist/types/spacestation/src/contracts/tools/definitions.d.ts +139 -0
  270. package/dist/types/spacestation/src/contracts/tools/execution-context.d.ts +135 -0
  271. package/dist/types/spacestation/src/contracts/tools/index.d.ts +9 -0
  272. package/dist/types/spacestation/src/contracts/tools/types.d.ts +163 -0
  273. package/dist/types/spacestation/src/focus/focus.d.ts +12 -0
  274. package/dist/types/spacestation/src/hydration/hydration.d.ts +46 -0
  275. package/dist/types/spacestation/src/index.d.ts +71 -0
  276. package/dist/types/spacestation/src/layout/apply-patch.d.ts +17 -0
  277. package/dist/types/spacestation/src/layout/conversation.d.ts +136 -0
  278. package/dist/types/spacestation/src/layout/layout-diff.d.ts +17 -0
  279. package/dist/types/spacestation/src/layout/layout.d.ts +275 -0
  280. package/dist/types/spacestation/src/layout/page.d.ts +244 -0
  281. package/dist/types/spacestation/src/layout/patch.d.ts +92 -0
  282. package/dist/types/spacestation/src/layout/reduce-patch.d.ts +19 -0
  283. package/dist/types/spacestation/src/layout/reserved-ids.d.ts +13 -0
  284. package/dist/types/spacestation/src/projection/projection.d.ts +249 -0
  285. package/dist/types/spacestation/src/shell/shell.d.ts +109 -0
  286. package/dist/types/spacestation/src/signal/agent-signals.d.ts +539 -0
  287. package/dist/types/spacestation/src/space/connector.d.ts +61 -0
  288. package/dist/types/spacestation/src/space/generation-job.d.ts +4 -0
  289. package/dist/types/spacestation/src/space/hosting.d.ts +36 -0
  290. package/dist/types/spacestation/src/space/manifest.d.ts +8 -0
  291. package/dist/types/spacestation/src/space/package-version.d.ts +18 -0
  292. package/dist/types/spacestation/src/space/package.d.ts +35 -0
  293. package/dist/types/spacestation/src/space/prompt-config.d.ts +17 -0
  294. package/dist/types/spacestation/src/space/session-activity.d.ts +71 -0
  295. package/dist/types/spacestation/src/space/session-queue.d.ts +2147 -0
  296. package/dist/types/spacestation/src/space/space-config.d.ts +96 -0
  297. package/dist/types/spacestation/src/space/space-otp.d.ts +18 -0
  298. package/dist/types/spacestation/src/space/space.d.ts +104 -0
  299. package/dist/types/spacestation/src/space/tool-manifest.d.ts +8 -0
  300. package/dist/types/spacestation/src/space/trace.d.ts +555 -0
  301. package/dist/types/spacestation/src/space/workspace-catalog.d.ts +112 -0
  302. package/dist/types/spacestation/src/tool-compression/compress.d.ts +88 -0
  303. package/dist/types/spacestation/src/tool-compression/index.d.ts +11 -0
  304. package/dist/types/spacestation/src/tool-compression/scoring.d.ts +38 -0
  305. package/dist/types/spacestation/src/tool-compression/tokenize.d.ts +29 -0
  306. package/dist/types/spacestation/src/trace/trace-data.d.ts +126 -0
  307. package/dist/types/spacestation/src/trace/trace-diagnostics.d.ts +224 -0
  308. package/dist/types/spacestation/src/trace/trace-envelopes.d.ts +144 -0
  309. package/dist/types/spacestation/src/trace/trace-events.d.ts +450 -0
  310. package/dist/types/spacestation/src/types.d.ts +253 -0
  311. package/dist/types/spacestation/src/view/continuation.d.ts +45 -0
  312. package/dist/types/spacestation/src/widgets/presence/element.d.ts +241 -0
  313. package/dist/types/spacestation/src/widgets/presence/frame.d.ts +56 -0
  314. package/dist/types/spacestation/src/widgets/presence/index.d.ts +4 -0
  315. package/dist/types/spacestation/src/widgets/presence/profile.d.ts +75 -0
  316. package/dist/types/spacestation/src/widgets/presence/scan.d.ts +45 -0
  317. package/package.json +43 -0
@@ -0,0 +1,2147 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * The session review queue's wire contract (40R-204).
4
+ *
5
+ * The console's Sessions screen is a REVIEW QUEUE, not a log viewer: it exists
6
+ * to surface sessions nobody knew were broken, and to carry each one to a
7
+ * verdict or a filed bug without leaving the screen. That shape decides these
8
+ * types — every field here is either something the queue ranks and filters on,
9
+ * or something the review loop records.
10
+ *
11
+ * Two representations, split on list-vs-get (architecture invariant §XIII.6):
12
+ * · `SessionSummary` — one queue row.
13
+ * · `SessionDetail` — one session opened, adding the capture context, the
14
+ * verdict history and the bugs filed from it.
15
+ *
16
+ * VOCABULARY. This is console-altitude, so it says *visitor*, *space* and
17
+ * *entity* — never shopper, store or product (§XIII.4, north-star §0.3). The
18
+ * one place a vertical word survives is `signalCounts`, whose KEYS are the open
19
+ * `SignalType` the space itself emitted (`cart.add`). The console renders the
20
+ * identifier verbatim rather than translating it into prose, which is exactly
21
+ * how a vertical's vocabulary stays inside the vertical.
22
+ */
23
+ /**
24
+ * What an operator concluded about a session.
25
+ *
26
+ * `unreviewed` is the ABSENCE of a verdict rather than a recorded one — no row
27
+ * in `session_review_events` produces it. It is in the union because the queue
28
+ * filters on it, and a filter option that maps to "no row exists" still needs a
29
+ * name on the wire.
30
+ */
31
+ export declare const SessionVerdictSchema: z.ZodEnum<["unreviewed", "viewed", "bug"]>;
32
+ export type SessionVerdict = z.infer<typeof SessionVerdictSchema>;
33
+ /** The two verdicts an operator can actually record. */
34
+ export declare const RecordableVerdictSchema: z.ZodEnum<["viewed", "bug"]>;
35
+ export type RecordableVerdict = z.infer<typeof RecordableVerdictSchema>;
36
+ export declare const SessionReviewEventSchema: z.ZodObject<{
37
+ id: z.ZodString;
38
+ verdict: z.ZodEnum<["viewed", "bug"]>;
39
+ /** Account email of the operator who judged it. Attribution is the reason the
40
+ * log is append-only rather than a mutable current-state row. */
41
+ reviewer: z.ZodString;
42
+ note: z.ZodNullable<z.ZodString>;
43
+ createdAt: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ id: string;
46
+ createdAt: string;
47
+ verdict: "viewed" | "bug";
48
+ reviewer: string;
49
+ note: string | null;
50
+ }, {
51
+ id: string;
52
+ createdAt: string;
53
+ verdict: "viewed" | "bug";
54
+ reviewer: string;
55
+ note: string | null;
56
+ }>;
57
+ export type SessionReviewEvent = z.infer<typeof SessionReviewEventSchema>;
58
+ export declare const BugSeveritySchema: z.ZodEnum<["high", "medium", "low"]>;
59
+ export type BugSeverity = z.infer<typeof BugSeveritySchema>;
60
+ /**
61
+ * Where on the rendered canvas a bug was pinned.
62
+ *
63
+ * `elementId` is the Spec-tree element key the canvas already tags every
64
+ * rendered component wrapper with (`data-tracked-component`) — the same key
65
+ * `readRenderParts` walks off `Spec.elements`. The offset is a PERCENTAGE of
66
+ * that element's own box, not raw pixels, so a pin re-anchors to the right
67
+ * spot after a resize or reflow instead of drifting.
68
+ */
69
+ /**
70
+ * Where a pin sits.
71
+ *
72
+ * ANCHORED TO AN ELEMENT when the drop landed inside one the render pipeline
73
+ * tracks: the offsets are a fraction of that element's own box, which is what
74
+ * lets the pin re-find its spot after a resize or a reflow.
75
+ *
76
+ * ANCHORED TO THE PAGE (`elementId` null) when it did not. A reviewer needs to
77
+ * point at the brand's own chrome too — the header, the composer, the cart, the
78
+ * margins — and requiring a tracked element meant a click there did nothing at
79
+ * all, silently. The offsets are then a fraction of the scrollable page box:
80
+ * less reflow-proof, and the honest best available for a spot that belongs to
81
+ * no component.
82
+ *
83
+ * One shape rather than a tagged union because rows written before the page
84
+ * anchor existed carry element ids and must keep parsing unchanged.
85
+ */
86
+ export declare const BugLocationSchema: z.ZodEffects<z.ZodObject<{
87
+ elementId: z.ZodNullable<z.ZodString>;
88
+ /** Display only — the catalog component type, e.g. "productGrid". Null
89
+ * alongside a null `elementId`. */
90
+ elementType: z.ZodNullable<z.ZodString>;
91
+ /** Fraction of the ELEMENT's own box. Null for a page anchor. */
92
+ offsetXPct: z.ZodNullable<z.ZodNumber>;
93
+ offsetYPct: z.ZodNullable<z.ZodNumber>;
94
+ /**
95
+ * ABSOLUTE document pixels, for a pin with no element under it. Null for an
96
+ * element anchor.
97
+ *
98
+ * Absolute, and NOT a fraction of the page, because the page's total size is
99
+ * not stable: a hover scale, a late-loading image, an expanding card or a
100
+ * scrollbar all change it, and a fraction of a moving total drags every pin
101
+ * on the page with it. Measured before this was fixed: growing the page 9%
102
+ * slid a pin 32px, so a pin ran away from the cursor reaching for it.
103
+ */
104
+ pageX: z.ZodNullable<z.ZodNumber>;
105
+ pageY: z.ZodNullable<z.ZodNumber>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ elementId: string | null;
108
+ elementType: string | null;
109
+ offsetXPct: number | null;
110
+ offsetYPct: number | null;
111
+ pageX: number | null;
112
+ pageY: number | null;
113
+ }, {
114
+ elementId: string | null;
115
+ elementType: string | null;
116
+ offsetXPct: number | null;
117
+ offsetYPct: number | null;
118
+ pageX: number | null;
119
+ pageY: number | null;
120
+ }>, {
121
+ elementId: string | null;
122
+ elementType: string | null;
123
+ offsetXPct: number | null;
124
+ offsetYPct: number | null;
125
+ pageX: number | null;
126
+ pageY: number | null;
127
+ }, {
128
+ elementId: string | null;
129
+ elementType: string | null;
130
+ offsetXPct: number | null;
131
+ offsetYPct: number | null;
132
+ pageX: number | null;
133
+ pageY: number | null;
134
+ }>;
135
+ export type BugLocation = z.infer<typeof BugLocationSchema>;
136
+ /**
137
+ * A bug filed from a session, and the issue it became.
138
+ *
139
+ * `issueKey`/`issueUrl` are null between the moment the composer is submitted
140
+ * and the moment the tracker accepts the issue — and STAY null if it never
141
+ * does. That is the point: a failed hand-off leaves a visible, retryable row
142
+ * instead of discarding what the operator typed.
143
+ */
144
+ export declare const SessionBugSchema: z.ZodObject<{
145
+ id: z.ZodString;
146
+ /** 1-based turn the fault was observed on; null when the fault is session-wide. */
147
+ turnIndex: z.ZodNullable<z.ZodNumber>;
148
+ /** Where on that turn's canvas the pin was dropped; null for a bug filed
149
+ * without pinning a spot. */
150
+ location: z.ZodNullable<z.ZodEffects<z.ZodObject<{
151
+ elementId: z.ZodNullable<z.ZodString>;
152
+ /** Display only — the catalog component type, e.g. "productGrid". Null
153
+ * alongside a null `elementId`. */
154
+ elementType: z.ZodNullable<z.ZodString>;
155
+ /** Fraction of the ELEMENT's own box. Null for a page anchor. */
156
+ offsetXPct: z.ZodNullable<z.ZodNumber>;
157
+ offsetYPct: z.ZodNullable<z.ZodNumber>;
158
+ /**
159
+ * ABSOLUTE document pixels, for a pin with no element under it. Null for an
160
+ * element anchor.
161
+ *
162
+ * Absolute, and NOT a fraction of the page, because the page's total size is
163
+ * not stable: a hover scale, a late-loading image, an expanding card or a
164
+ * scrollbar all change it, and a fraction of a moving total drags every pin
165
+ * on the page with it. Measured before this was fixed: growing the page 9%
166
+ * slid a pin 32px, so a pin ran away from the cursor reaching for it.
167
+ */
168
+ pageX: z.ZodNullable<z.ZodNumber>;
169
+ pageY: z.ZodNullable<z.ZodNumber>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ elementId: string | null;
172
+ elementType: string | null;
173
+ offsetXPct: number | null;
174
+ offsetYPct: number | null;
175
+ pageX: number | null;
176
+ pageY: number | null;
177
+ }, {
178
+ elementId: string | null;
179
+ elementType: string | null;
180
+ offsetXPct: number | null;
181
+ offsetYPct: number | null;
182
+ pageX: number | null;
183
+ pageY: number | null;
184
+ }>, {
185
+ elementId: string | null;
186
+ elementType: string | null;
187
+ offsetXPct: number | null;
188
+ offsetYPct: number | null;
189
+ pageX: number | null;
190
+ pageY: number | null;
191
+ }, {
192
+ elementId: string | null;
193
+ elementType: string | null;
194
+ offsetXPct: number | null;
195
+ offsetYPct: number | null;
196
+ pageX: number | null;
197
+ pageY: number | null;
198
+ }>>;
199
+ provider: z.ZodString;
200
+ issueKey: z.ZodNullable<z.ZodString>;
201
+ issueUrl: z.ZodNullable<z.ZodString>;
202
+ /** The tracker's own state word ('Todo', 'Done', …) — their vocabulary, so
203
+ * open text. Null until first synced. */
204
+ issueState: z.ZodNullable<z.ZodString>;
205
+ title: z.ZodString;
206
+ body: z.ZodString;
207
+ severity: z.ZodEnum<["high", "medium", "low"]>;
208
+ createdBy: z.ZodString;
209
+ createdAt: z.ZodString;
210
+ /**
211
+ * When this bug was resolved from the console; null means still OPEN.
212
+ *
213
+ * Resolution belongs to the bug, not to the session: the session verdict
214
+ * answers "did anyone look at this conversation", which says nothing about
215
+ * whether a particular fault is still live. The timestamp IS the state, so
216
+ * no boolean can contradict it.
217
+ */
218
+ resolvedAt: z.ZodNullable<z.ZodString>;
219
+ resolvedBy: z.ZodNullable<z.ZodString>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ id: string;
222
+ title: string;
223
+ createdAt: string;
224
+ provider: string;
225
+ turnIndex: number | null;
226
+ location: {
227
+ elementId: string | null;
228
+ elementType: string | null;
229
+ offsetXPct: number | null;
230
+ offsetYPct: number | null;
231
+ pageX: number | null;
232
+ pageY: number | null;
233
+ } | null;
234
+ issueKey: string | null;
235
+ issueUrl: string | null;
236
+ issueState: string | null;
237
+ body: string;
238
+ severity: "high" | "medium" | "low";
239
+ createdBy: string;
240
+ resolvedAt: string | null;
241
+ resolvedBy: string | null;
242
+ }, {
243
+ id: string;
244
+ title: string;
245
+ createdAt: string;
246
+ provider: string;
247
+ turnIndex: number | null;
248
+ location: {
249
+ elementId: string | null;
250
+ elementType: string | null;
251
+ offsetXPct: number | null;
252
+ offsetYPct: number | null;
253
+ pageX: number | null;
254
+ pageY: number | null;
255
+ } | null;
256
+ issueKey: string | null;
257
+ issueUrl: string | null;
258
+ issueState: string | null;
259
+ body: string;
260
+ severity: "high" | "medium" | "low";
261
+ createdBy: string;
262
+ resolvedAt: string | null;
263
+ resolvedBy: string | null;
264
+ }>;
265
+ export type SessionBug = z.infer<typeof SessionBugSchema>;
266
+ /**
267
+ * A bug as the SPACE-WIDE list reads it: the same bug, plus the session it was
268
+ * filed from. The per-session reads already know the session id from the URL
269
+ * they were fetched by; a cross-session list does not, and without it a row
270
+ * cannot be opened.
271
+ */
272
+ export declare const SpaceBugSchema: z.ZodObject<{
273
+ id: z.ZodString;
274
+ /** 1-based turn the fault was observed on; null when the fault is session-wide. */
275
+ turnIndex: z.ZodNullable<z.ZodNumber>;
276
+ /** Where on that turn's canvas the pin was dropped; null for a bug filed
277
+ * without pinning a spot. */
278
+ location: z.ZodNullable<z.ZodEffects<z.ZodObject<{
279
+ elementId: z.ZodNullable<z.ZodString>;
280
+ /** Display only — the catalog component type, e.g. "productGrid". Null
281
+ * alongside a null `elementId`. */
282
+ elementType: z.ZodNullable<z.ZodString>;
283
+ /** Fraction of the ELEMENT's own box. Null for a page anchor. */
284
+ offsetXPct: z.ZodNullable<z.ZodNumber>;
285
+ offsetYPct: z.ZodNullable<z.ZodNumber>;
286
+ /**
287
+ * ABSOLUTE document pixels, for a pin with no element under it. Null for an
288
+ * element anchor.
289
+ *
290
+ * Absolute, and NOT a fraction of the page, because the page's total size is
291
+ * not stable: a hover scale, a late-loading image, an expanding card or a
292
+ * scrollbar all change it, and a fraction of a moving total drags every pin
293
+ * on the page with it. Measured before this was fixed: growing the page 9%
294
+ * slid a pin 32px, so a pin ran away from the cursor reaching for it.
295
+ */
296
+ pageX: z.ZodNullable<z.ZodNumber>;
297
+ pageY: z.ZodNullable<z.ZodNumber>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ elementId: string | null;
300
+ elementType: string | null;
301
+ offsetXPct: number | null;
302
+ offsetYPct: number | null;
303
+ pageX: number | null;
304
+ pageY: number | null;
305
+ }, {
306
+ elementId: string | null;
307
+ elementType: string | null;
308
+ offsetXPct: number | null;
309
+ offsetYPct: number | null;
310
+ pageX: number | null;
311
+ pageY: number | null;
312
+ }>, {
313
+ elementId: string | null;
314
+ elementType: string | null;
315
+ offsetXPct: number | null;
316
+ offsetYPct: number | null;
317
+ pageX: number | null;
318
+ pageY: number | null;
319
+ }, {
320
+ elementId: string | null;
321
+ elementType: string | null;
322
+ offsetXPct: number | null;
323
+ offsetYPct: number | null;
324
+ pageX: number | null;
325
+ pageY: number | null;
326
+ }>>;
327
+ provider: z.ZodString;
328
+ issueKey: z.ZodNullable<z.ZodString>;
329
+ issueUrl: z.ZodNullable<z.ZodString>;
330
+ /** The tracker's own state word ('Todo', 'Done', …) — their vocabulary, so
331
+ * open text. Null until first synced. */
332
+ issueState: z.ZodNullable<z.ZodString>;
333
+ title: z.ZodString;
334
+ body: z.ZodString;
335
+ severity: z.ZodEnum<["high", "medium", "low"]>;
336
+ createdBy: z.ZodString;
337
+ createdAt: z.ZodString;
338
+ /**
339
+ * When this bug was resolved from the console; null means still OPEN.
340
+ *
341
+ * Resolution belongs to the bug, not to the session: the session verdict
342
+ * answers "did anyone look at this conversation", which says nothing about
343
+ * whether a particular fault is still live. The timestamp IS the state, so
344
+ * no boolean can contradict it.
345
+ */
346
+ resolvedAt: z.ZodNullable<z.ZodString>;
347
+ resolvedBy: z.ZodNullable<z.ZodString>;
348
+ } & {
349
+ sessionId: z.ZodString;
350
+ }, "strip", z.ZodTypeAny, {
351
+ sessionId: string;
352
+ id: string;
353
+ title: string;
354
+ createdAt: string;
355
+ provider: string;
356
+ turnIndex: number | null;
357
+ location: {
358
+ elementId: string | null;
359
+ elementType: string | null;
360
+ offsetXPct: number | null;
361
+ offsetYPct: number | null;
362
+ pageX: number | null;
363
+ pageY: number | null;
364
+ } | null;
365
+ issueKey: string | null;
366
+ issueUrl: string | null;
367
+ issueState: string | null;
368
+ body: string;
369
+ severity: "high" | "medium" | "low";
370
+ createdBy: string;
371
+ resolvedAt: string | null;
372
+ resolvedBy: string | null;
373
+ }, {
374
+ sessionId: string;
375
+ id: string;
376
+ title: string;
377
+ createdAt: string;
378
+ provider: string;
379
+ turnIndex: number | null;
380
+ location: {
381
+ elementId: string | null;
382
+ elementType: string | null;
383
+ offsetXPct: number | null;
384
+ offsetYPct: number | null;
385
+ pageX: number | null;
386
+ pageY: number | null;
387
+ } | null;
388
+ issueKey: string | null;
389
+ issueUrl: string | null;
390
+ issueState: string | null;
391
+ body: string;
392
+ severity: "high" | "medium" | "low";
393
+ createdBy: string;
394
+ resolvedAt: string | null;
395
+ resolvedBy: string | null;
396
+ }>;
397
+ export type SpaceBug = z.infer<typeof SpaceBugSchema>;
398
+ export declare const SessionCommentSchema: z.ZodObject<{
399
+ id: z.ZodString;
400
+ /** Set = a reply in that bug's thread. Null = a standalone comment pin. */
401
+ bugId: z.ZodNullable<z.ZodString>;
402
+ /** 1-based turn the comment was left on; null for a reply (it reads its
403
+ * parent bug's turn). */
404
+ turnIndex: z.ZodNullable<z.ZodNumber>;
405
+ /** The canvas anchor for a STANDALONE comment's own pin; null for a reply. */
406
+ location: z.ZodNullable<z.ZodEffects<z.ZodObject<{
407
+ elementId: z.ZodNullable<z.ZodString>;
408
+ /** Display only — the catalog component type, e.g. "productGrid". Null
409
+ * alongside a null `elementId`. */
410
+ elementType: z.ZodNullable<z.ZodString>;
411
+ /** Fraction of the ELEMENT's own box. Null for a page anchor. */
412
+ offsetXPct: z.ZodNullable<z.ZodNumber>;
413
+ offsetYPct: z.ZodNullable<z.ZodNumber>;
414
+ /**
415
+ * ABSOLUTE document pixels, for a pin with no element under it. Null for an
416
+ * element anchor.
417
+ *
418
+ * Absolute, and NOT a fraction of the page, because the page's total size is
419
+ * not stable: a hover scale, a late-loading image, an expanding card or a
420
+ * scrollbar all change it, and a fraction of a moving total drags every pin
421
+ * on the page with it. Measured before this was fixed: growing the page 9%
422
+ * slid a pin 32px, so a pin ran away from the cursor reaching for it.
423
+ */
424
+ pageX: z.ZodNullable<z.ZodNumber>;
425
+ pageY: z.ZodNullable<z.ZodNumber>;
426
+ }, "strip", z.ZodTypeAny, {
427
+ elementId: string | null;
428
+ elementType: string | null;
429
+ offsetXPct: number | null;
430
+ offsetYPct: number | null;
431
+ pageX: number | null;
432
+ pageY: number | null;
433
+ }, {
434
+ elementId: string | null;
435
+ elementType: string | null;
436
+ offsetXPct: number | null;
437
+ offsetYPct: number | null;
438
+ pageX: number | null;
439
+ pageY: number | null;
440
+ }>, {
441
+ elementId: string | null;
442
+ elementType: string | null;
443
+ offsetXPct: number | null;
444
+ offsetYPct: number | null;
445
+ pageX: number | null;
446
+ pageY: number | null;
447
+ }, {
448
+ elementId: string | null;
449
+ elementType: string | null;
450
+ offsetXPct: number | null;
451
+ offsetYPct: number | null;
452
+ pageX: number | null;
453
+ pageY: number | null;
454
+ }>>;
455
+ body: z.ZodString;
456
+ createdBy: z.ZodString;
457
+ createdAt: z.ZodString;
458
+ }, "strip", z.ZodTypeAny, {
459
+ id: string;
460
+ createdAt: string;
461
+ turnIndex: number | null;
462
+ location: {
463
+ elementId: string | null;
464
+ elementType: string | null;
465
+ offsetXPct: number | null;
466
+ offsetYPct: number | null;
467
+ pageX: number | null;
468
+ pageY: number | null;
469
+ } | null;
470
+ body: string;
471
+ createdBy: string;
472
+ bugId: string | null;
473
+ }, {
474
+ id: string;
475
+ createdAt: string;
476
+ turnIndex: number | null;
477
+ location: {
478
+ elementId: string | null;
479
+ elementType: string | null;
480
+ offsetXPct: number | null;
481
+ offsetYPct: number | null;
482
+ pageX: number | null;
483
+ pageY: number | null;
484
+ } | null;
485
+ body: string;
486
+ createdBy: string;
487
+ bugId: string | null;
488
+ }>;
489
+ export type SessionComment = z.infer<typeof SessionCommentSchema>;
490
+ export declare const CreateCommentInputSchema: z.ZodEffects<z.ZodObject<{
491
+ bugId: z.ZodNullable<z.ZodString>;
492
+ turnIndex: z.ZodNullable<z.ZodNumber>;
493
+ location: z.ZodNullable<z.ZodEffects<z.ZodObject<{
494
+ elementId: z.ZodNullable<z.ZodString>;
495
+ /** Display only — the catalog component type, e.g. "productGrid". Null
496
+ * alongside a null `elementId`. */
497
+ elementType: z.ZodNullable<z.ZodString>;
498
+ /** Fraction of the ELEMENT's own box. Null for a page anchor. */
499
+ offsetXPct: z.ZodNullable<z.ZodNumber>;
500
+ offsetYPct: z.ZodNullable<z.ZodNumber>;
501
+ /**
502
+ * ABSOLUTE document pixels, for a pin with no element under it. Null for an
503
+ * element anchor.
504
+ *
505
+ * Absolute, and NOT a fraction of the page, because the page's total size is
506
+ * not stable: a hover scale, a late-loading image, an expanding card or a
507
+ * scrollbar all change it, and a fraction of a moving total drags every pin
508
+ * on the page with it. Measured before this was fixed: growing the page 9%
509
+ * slid a pin 32px, so a pin ran away from the cursor reaching for it.
510
+ */
511
+ pageX: z.ZodNullable<z.ZodNumber>;
512
+ pageY: z.ZodNullable<z.ZodNumber>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ elementId: string | null;
515
+ elementType: string | null;
516
+ offsetXPct: number | null;
517
+ offsetYPct: number | null;
518
+ pageX: number | null;
519
+ pageY: number | null;
520
+ }, {
521
+ elementId: string | null;
522
+ elementType: string | null;
523
+ offsetXPct: number | null;
524
+ offsetYPct: number | null;
525
+ pageX: number | null;
526
+ pageY: number | null;
527
+ }>, {
528
+ elementId: string | null;
529
+ elementType: string | null;
530
+ offsetXPct: number | null;
531
+ offsetYPct: number | null;
532
+ pageX: number | null;
533
+ pageY: number | null;
534
+ }, {
535
+ elementId: string | null;
536
+ elementType: string | null;
537
+ offsetXPct: number | null;
538
+ offsetYPct: number | null;
539
+ pageX: number | null;
540
+ pageY: number | null;
541
+ }>>;
542
+ body: z.ZodString;
543
+ }, "strip", z.ZodTypeAny, {
544
+ turnIndex: number | null;
545
+ location: {
546
+ elementId: string | null;
547
+ elementType: string | null;
548
+ offsetXPct: number | null;
549
+ offsetYPct: number | null;
550
+ pageX: number | null;
551
+ pageY: number | null;
552
+ } | null;
553
+ body: string;
554
+ bugId: string | null;
555
+ }, {
556
+ turnIndex: number | null;
557
+ location: {
558
+ elementId: string | null;
559
+ elementType: string | null;
560
+ offsetXPct: number | null;
561
+ offsetYPct: number | null;
562
+ pageX: number | null;
563
+ pageY: number | null;
564
+ } | null;
565
+ body: string;
566
+ bugId: string | null;
567
+ }>, {
568
+ turnIndex: number | null;
569
+ location: {
570
+ elementId: string | null;
571
+ elementType: string | null;
572
+ offsetXPct: number | null;
573
+ offsetYPct: number | null;
574
+ pageX: number | null;
575
+ pageY: number | null;
576
+ } | null;
577
+ body: string;
578
+ bugId: string | null;
579
+ }, {
580
+ turnIndex: number | null;
581
+ location: {
582
+ elementId: string | null;
583
+ elementType: string | null;
584
+ offsetXPct: number | null;
585
+ offsetYPct: number | null;
586
+ pageX: number | null;
587
+ pageY: number | null;
588
+ } | null;
589
+ body: string;
590
+ bugId: string | null;
591
+ }>;
592
+ export type CreateCommentInput = z.infer<typeof CreateCommentInputSchema>;
593
+ /**
594
+ * Editing a comment: any subset of body, thread and anchor.
595
+ *
596
+ * Every field optional because the console sends only what changed — a plain
597
+ * edit sends `body`, "Attach to bug" sends `bugId`, a drag sends `location`.
598
+ * Lives here rather than in a route file because BOTH planes serve this patch
599
+ * (the operator routes and the member-plane ones) and it was written out twice.
600
+ */
601
+ export declare const UpdateCommentInputSchema: z.ZodObject<{
602
+ body: z.ZodOptional<z.ZodString>;
603
+ bugId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
604
+ location: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
605
+ elementId: z.ZodNullable<z.ZodString>;
606
+ /** Display only — the catalog component type, e.g. "productGrid". Null
607
+ * alongside a null `elementId`. */
608
+ elementType: z.ZodNullable<z.ZodString>;
609
+ /** Fraction of the ELEMENT's own box. Null for a page anchor. */
610
+ offsetXPct: z.ZodNullable<z.ZodNumber>;
611
+ offsetYPct: z.ZodNullable<z.ZodNumber>;
612
+ /**
613
+ * ABSOLUTE document pixels, for a pin with no element under it. Null for an
614
+ * element anchor.
615
+ *
616
+ * Absolute, and NOT a fraction of the page, because the page's total size is
617
+ * not stable: a hover scale, a late-loading image, an expanding card or a
618
+ * scrollbar all change it, and a fraction of a moving total drags every pin
619
+ * on the page with it. Measured before this was fixed: growing the page 9%
620
+ * slid a pin 32px, so a pin ran away from the cursor reaching for it.
621
+ */
622
+ pageX: z.ZodNullable<z.ZodNumber>;
623
+ pageY: z.ZodNullable<z.ZodNumber>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ elementId: string | null;
626
+ elementType: string | null;
627
+ offsetXPct: number | null;
628
+ offsetYPct: number | null;
629
+ pageX: number | null;
630
+ pageY: number | null;
631
+ }, {
632
+ elementId: string | null;
633
+ elementType: string | null;
634
+ offsetXPct: number | null;
635
+ offsetYPct: number | null;
636
+ pageX: number | null;
637
+ pageY: number | null;
638
+ }>, {
639
+ elementId: string | null;
640
+ elementType: string | null;
641
+ offsetXPct: number | null;
642
+ offsetYPct: number | null;
643
+ pageX: number | null;
644
+ pageY: number | null;
645
+ }, {
646
+ elementId: string | null;
647
+ elementType: string | null;
648
+ offsetXPct: number | null;
649
+ offsetYPct: number | null;
650
+ pageX: number | null;
651
+ pageY: number | null;
652
+ }>>>;
653
+ }, "strip", z.ZodTypeAny, {
654
+ location?: {
655
+ elementId: string | null;
656
+ elementType: string | null;
657
+ offsetXPct: number | null;
658
+ offsetYPct: number | null;
659
+ pageX: number | null;
660
+ pageY: number | null;
661
+ } | null | undefined;
662
+ body?: string | undefined;
663
+ bugId?: string | null | undefined;
664
+ }, {
665
+ location?: {
666
+ elementId: string | null;
667
+ elementType: string | null;
668
+ offsetXPct: number | null;
669
+ offsetYPct: number | null;
670
+ pageX: number | null;
671
+ pageY: number | null;
672
+ } | null | undefined;
673
+ body?: string | undefined;
674
+ bugId?: string | null | undefined;
675
+ }>;
676
+ export type UpdateCommentInput = z.infer<typeof UpdateCommentInputSchema>;
677
+ /**
678
+ * One row of the review queue.
679
+ *
680
+ * `durationMs` is WALL CLOCK (last turn − first turn), which is not
681
+ * `totalLatencyMs` (the sum of the agent's own time). A visitor who asks one
682
+ * question, leaves for ten minutes and returns has ~4s of latency and a 10m
683
+ * session; the queue's Length column means the second one. Both ship because
684
+ * the review loop reads both.
685
+ */
686
+ /**
687
+ * The widest viewport still read as a PHONE.
688
+ *
689
+ * The SDK's own phone breakpoint (`MOBILE_QUERY` in
690
+ * `packages/sdk/src/utils/use-form-factor.ts`) — the query that decided which
691
+ * shell a session actually rendered. It lives on the wire contract because
692
+ * three surfaces now answer the same question about one session and must
693
+ * answer it identically: the queue labels the row, the replay flips its split,
694
+ * and the replay's frame decides whether the document or an inner box scrolls.
695
+ */
696
+ export declare const MOBILE_VIEWPORT_MAX = 720;
697
+ /**
698
+ * Which shell a session rendered — derived from the captured viewport, never
699
+ * from the user agent (a narrow desktop window IS the mobile shell, and a
700
+ * tablet in landscape is not).
701
+ *
702
+ * `null` for a session captured before viewports were recorded: absent is not
703
+ * "desktop", and a queue that guessed would be asserting something about a
704
+ * visitor nobody measured.
705
+ */
706
+ export declare const SessionFormFactorSchema: z.ZodNullable<z.ZodEnum<["mobile", "desktop"]>>;
707
+ export type SessionFormFactor = z.infer<typeof SessionFormFactorSchema>;
708
+ export declare function formFactorFromViewport(width: number | null): SessionFormFactor;
709
+ export declare const SessionSummarySchema: z.ZodObject<{
710
+ sessionId: z.ZodString;
711
+ /** Stable per-browser id — the join key across a visitor's sessions. Null when
712
+ * the session row is gone (pruned) or predates the `sessions` table. */
713
+ visitorId: z.ZodNullable<z.ZodString>;
714
+ /** Provider-qualified identity anchor, present only once the visitor
715
+ * identified themselves. Both null together means "not identified yet". */
716
+ identityProvider: z.ZodNullable<z.ZodString>;
717
+ identityKey: z.ZodNullable<z.ZodString>;
718
+ /** Team/test traffic. The queue hides these by default. */
719
+ isInternal: z.ZodBoolean;
720
+ /** Build that served the session. Null = not captured; a version filter must
721
+ * therefore EXCLUDE it rather than let it match an arbitrary bucket. */
722
+ clientVersion: z.ZodNullable<z.ZodString>;
723
+ /** Commit-shaped interaction signals, counted, keyed by open `SignalType`. */
724
+ signalCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
725
+ /**
726
+ * Did this conversation ACQUIRE anything, and how many times?
727
+ *
728
+ * The count of DISTINCT acquisition attempts on the session's client-event
729
+ * rail — the same population, at the same grain, that the analytics funnel's
730
+ * `cart` step counts (`client_sessions_scoped`, and the migration that made a
731
+ * registry hand-off count alongside an on-site add). Reading both surfaces
732
+ * from one definition is the point: `signalCounts` above is the AGENT'S
733
+ * announcement, and a registry hand-off announces nothing, so this is the
734
+ * only field on the row that can answer the question for a space whose
735
+ * visitors convert off-site.
736
+ *
737
+ * NULL means NOT MEASURED — a console talking to a queue function that
738
+ * predates the column — and renders as no mark at all. It never means zero:
739
+ * zero is a real, recorded answer and the rail reports it as one.
740
+ */
741
+ conversionAttempts: z.ZodNullable<z.ZodNumber>;
742
+ /**
743
+ * The same attempts split by EVENT KIND, keyed by the kind's own name
744
+ * (`commerce.cart_line_added`, `commerce.registry_clicked`), counted distinct
745
+ * WITHIN each kind.
746
+ *
747
+ * The kinds stay distinct even though the metric merges: an outbound click to
748
+ * a partner and an on-site write are not the same act. The console renders
749
+ * each key VERBATIM rather than translating it — the same discipline
750
+ * `outcomeLabel` follows for signals, and what keeps the platform from
751
+ * learning what either kind means (§XIII.4).
752
+ *
753
+ * Does NOT sum to `conversionAttempts`: that total is distinct over both
754
+ * kinds together, and one attempt id appearing under both would be counted
755
+ * once there and twice here.
756
+ */
757
+ conversionKinds: z.ZodRecord<z.ZodString, z.ZodNumber>;
758
+ /**
759
+ * Every analytics funnel step this session reached, in funnel order — the
760
+ * dashboard's own step ids, read by the same per-step predicates, so a queue
761
+ * filtered to a step lists the sessions the dashboard counts there. An open
762
+ * set of strings for the reason `conversionKinds` is: the contract does not
763
+ * learn what a step means. Empty only when read from a pre-column database.
764
+ */
765
+ funnelSteps: z.ZodArray<z.ZodString, "many">;
766
+ /**
767
+ * The connector's opaque handle for what this session produced in its back
768
+ * office — present only once a checkout actually reached the platform. The
769
+ * console hands it to the back-office link registry; nothing else reads it.
770
+ */
771
+ backOfficeRef: z.ZodNullable<z.ZodString>;
772
+ /**
773
+ * The order this session produced, when the connector's back office reported
774
+ * it (`session_orders`): its opaque id and the back office's own name for it.
775
+ * Both null when no order is known — the cart handle above is then the door.
776
+ */
777
+ orderRef: z.ZodNullable<z.ZodString>;
778
+ orderLabel: z.ZodNullable<z.ZodString>;
779
+ /**
780
+ * Which shell this session rendered — the one thing about the CAPTURE a list
781
+ * needs.
782
+ *
783
+ * The rest of the capture stays off the queue on purpose (§XIII.6: a list
784
+ * representation carrying a detail representation's fields is how the two
785
+ * stop being distinguishable). This is not that: it is a derived
786
+ * classification, one word wide, and it changes how a reviewer reads every
787
+ * other field in the row — a 3-turn session on a phone and a 3-turn session
788
+ * on a desktop are not the same session.
789
+ */
790
+ formFactor: z.ZodNullable<z.ZodEnum<["mobile", "desktop"]>>;
791
+ turnCount: z.ZodNumber;
792
+ /** The visitor's opening message — the single most informative field for
793
+ * deciding whether a session is worth opening, hence the widest column. */
794
+ firstPrompt: z.ZodString;
795
+ startedAt: z.ZodString;
796
+ lastRunAt: z.ZodString;
797
+ /**
798
+ * The VISITOR's own IANA zone (`America/New_York`), read from their browser
799
+ * at session create — what the two timestamps above should be read in.
800
+ *
801
+ * ── WHY THIS IS ON THE SUMMARY AND NOT THE CAPTURE (§XIII.6) ────────────
802
+ *
803
+ * It is not a detail about how the session was captured; it is the UNIT of a
804
+ * field the summary already carries. A timestamp without its zone is money
805
+ * without its currency, and this contract is emphatic about that everywhere
806
+ * else — `cartValueMinor` never travels without `currency` and its exponent.
807
+ * The queue renders `lastRunAt` in its own column, so a zone reachable only
808
+ * from the detail would leave the list rendering an instant it cannot label.
809
+ * `clientVersion` and `isInternal` are already read from the queue row for
810
+ * the same kind of reason.
811
+ *
812
+ * Named `visitorTimeZone` and not `timeZone` because the console already has
813
+ * another one: the analytics screen reports in the SPACE's reporting zone.
814
+ * Two clocks with one name is how a screen ends up quietly mixing them.
815
+ *
816
+ * NULL means not captured, and every session recorded before 2026-09-06 is
817
+ * null forever — `locale` spans three US hours and the ingest path keeps only
818
+ * a keyed hash of the address, so it cannot be backfilled. The console
819
+ * renders those in the READER's zone and says so.
820
+ *
821
+ * Client-asserted and never validated against a zone table, so every consumer
822
+ * must tolerate an unknown name: `Intl` throws a RangeError on one.
823
+ */
824
+ visitorTimeZone: z.ZodNullable<z.ZodString>;
825
+ /**
826
+ * Mean TIME TO FIRST PATCH, over the turns that recorded one — the first
827
+ * layout op reaching the visitor, and THE latency the project is managed on.
828
+ * mainDone is free to run long (a richer page costs mainDone, not this), and
829
+ * `totalLatencyMs` carries the chip-gen tail that runs after the visitor is
830
+ * already reading. Null when no turn in the session recorded a patch.
831
+ */
832
+ avgTtftMs: z.ZodNullable<z.ZodNumber>;
833
+ /** Mean `main_done_ms` — layout + prose complete. Context for the TTFT, not
834
+ * a budget: null on sessions older than the mark's recording. */
835
+ avgMainDoneMs: z.ZodNullable<z.ZodNumber>;
836
+ /** Mean `chip_gen_ms` — the pass that runs AFTER mainDone and is out of the
837
+ * budget. On the row only to explain the gap to `totalLatencyMs`. */
838
+ avgChipGenMs: z.ZodNullable<z.ZodNumber>;
839
+ totalLatencyMs: z.ZodNumber;
840
+ durationMs: z.ZodNumber;
841
+ /** Inferred from recent activity — nothing writes a session-end marker. A
842
+ * live session streams and cannot be given a verdict until it ends. */
843
+ isLive: z.ZodBoolean;
844
+ verdict: z.ZodEnum<["unreviewed", "viewed", "bug"]>;
845
+ reviewedBy: z.ZodNullable<z.ZodString>;
846
+ reviewedAt: z.ZodNullable<z.ZodString>;
847
+ /** Latest filed bug, flattened onto the row so the queue can show its live
848
+ * state without a second request. */
849
+ bugIssueKey: z.ZodNullable<z.ZodString>;
850
+ bugIssueUrl: z.ZodNullable<z.ZodString>;
851
+ bugIssueState: z.ZodNullable<z.ZodString>;
852
+ }, "strip", z.ZodTypeAny, {
853
+ sessionId: string;
854
+ backOfficeRef: string | null;
855
+ turnCount: number;
856
+ firstPrompt: string;
857
+ startedAt: string;
858
+ lastRunAt: string;
859
+ totalLatencyMs: number;
860
+ verdict: "unreviewed" | "viewed" | "bug";
861
+ visitorId: string | null;
862
+ identityProvider: string | null;
863
+ identityKey: string | null;
864
+ isInternal: boolean;
865
+ clientVersion: string | null;
866
+ signalCounts: Record<string, number>;
867
+ conversionAttempts: number | null;
868
+ conversionKinds: Record<string, number>;
869
+ funnelSteps: string[];
870
+ orderRef: string | null;
871
+ orderLabel: string | null;
872
+ formFactor: "mobile" | "desktop" | null;
873
+ visitorTimeZone: string | null;
874
+ avgTtftMs: number | null;
875
+ avgMainDoneMs: number | null;
876
+ avgChipGenMs: number | null;
877
+ durationMs: number;
878
+ isLive: boolean;
879
+ reviewedBy: string | null;
880
+ reviewedAt: string | null;
881
+ bugIssueKey: string | null;
882
+ bugIssueUrl: string | null;
883
+ bugIssueState: string | null;
884
+ }, {
885
+ sessionId: string;
886
+ backOfficeRef: string | null;
887
+ turnCount: number;
888
+ firstPrompt: string;
889
+ startedAt: string;
890
+ lastRunAt: string;
891
+ totalLatencyMs: number;
892
+ verdict: "unreviewed" | "viewed" | "bug";
893
+ visitorId: string | null;
894
+ identityProvider: string | null;
895
+ identityKey: string | null;
896
+ isInternal: boolean;
897
+ clientVersion: string | null;
898
+ signalCounts: Record<string, number>;
899
+ conversionAttempts: number | null;
900
+ conversionKinds: Record<string, number>;
901
+ funnelSteps: string[];
902
+ orderRef: string | null;
903
+ orderLabel: string | null;
904
+ formFactor: "mobile" | "desktop" | null;
905
+ visitorTimeZone: string | null;
906
+ avgTtftMs: number | null;
907
+ avgMainDoneMs: number | null;
908
+ avgChipGenMs: number | null;
909
+ durationMs: number;
910
+ isLive: boolean;
911
+ reviewedBy: string | null;
912
+ reviewedAt: string | null;
913
+ bugIssueKey: string | null;
914
+ bugIssueUrl: string | null;
915
+ bugIssueState: string | null;
916
+ }>;
917
+ export type SessionSummary = z.infer<typeof SessionSummarySchema>;
918
+ /**
919
+ * One page of the queue.
920
+ *
921
+ * All three counts ride WITH the rows rather than in a second request: each is
922
+ * read against the page under it and must be computed from the same predicate
923
+ * that produced it.
924
+ *
925
+ * The console renders `totalCount` and no longer renders `hiddenInternalCount`
926
+ * — the "hiding N test sessions" line beside the switch was removed. The field
927
+ * stays because it is the honest answer to "what did that switch remove", and
928
+ * a caller that wants to say so again should not have to add an endpoint back.
929
+ */
930
+ export declare const SessionQueuePageSchema: z.ZodObject<{
931
+ sessions: z.ZodArray<z.ZodObject<{
932
+ sessionId: z.ZodString;
933
+ /** Stable per-browser id — the join key across a visitor's sessions. Null when
934
+ * the session row is gone (pruned) or predates the `sessions` table. */
935
+ visitorId: z.ZodNullable<z.ZodString>;
936
+ /** Provider-qualified identity anchor, present only once the visitor
937
+ * identified themselves. Both null together means "not identified yet". */
938
+ identityProvider: z.ZodNullable<z.ZodString>;
939
+ identityKey: z.ZodNullable<z.ZodString>;
940
+ /** Team/test traffic. The queue hides these by default. */
941
+ isInternal: z.ZodBoolean;
942
+ /** Build that served the session. Null = not captured; a version filter must
943
+ * therefore EXCLUDE it rather than let it match an arbitrary bucket. */
944
+ clientVersion: z.ZodNullable<z.ZodString>;
945
+ /** Commit-shaped interaction signals, counted, keyed by open `SignalType`. */
946
+ signalCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
947
+ /**
948
+ * Did this conversation ACQUIRE anything, and how many times?
949
+ *
950
+ * The count of DISTINCT acquisition attempts on the session's client-event
951
+ * rail — the same population, at the same grain, that the analytics funnel's
952
+ * `cart` step counts (`client_sessions_scoped`, and the migration that made a
953
+ * registry hand-off count alongside an on-site add). Reading both surfaces
954
+ * from one definition is the point: `signalCounts` above is the AGENT'S
955
+ * announcement, and a registry hand-off announces nothing, so this is the
956
+ * only field on the row that can answer the question for a space whose
957
+ * visitors convert off-site.
958
+ *
959
+ * NULL means NOT MEASURED — a console talking to a queue function that
960
+ * predates the column — and renders as no mark at all. It never means zero:
961
+ * zero is a real, recorded answer and the rail reports it as one.
962
+ */
963
+ conversionAttempts: z.ZodNullable<z.ZodNumber>;
964
+ /**
965
+ * The same attempts split by EVENT KIND, keyed by the kind's own name
966
+ * (`commerce.cart_line_added`, `commerce.registry_clicked`), counted distinct
967
+ * WITHIN each kind.
968
+ *
969
+ * The kinds stay distinct even though the metric merges: an outbound click to
970
+ * a partner and an on-site write are not the same act. The console renders
971
+ * each key VERBATIM rather than translating it — the same discipline
972
+ * `outcomeLabel` follows for signals, and what keeps the platform from
973
+ * learning what either kind means (§XIII.4).
974
+ *
975
+ * Does NOT sum to `conversionAttempts`: that total is distinct over both
976
+ * kinds together, and one attempt id appearing under both would be counted
977
+ * once there and twice here.
978
+ */
979
+ conversionKinds: z.ZodRecord<z.ZodString, z.ZodNumber>;
980
+ /**
981
+ * Every analytics funnel step this session reached, in funnel order — the
982
+ * dashboard's own step ids, read by the same per-step predicates, so a queue
983
+ * filtered to a step lists the sessions the dashboard counts there. An open
984
+ * set of strings for the reason `conversionKinds` is: the contract does not
985
+ * learn what a step means. Empty only when read from a pre-column database.
986
+ */
987
+ funnelSteps: z.ZodArray<z.ZodString, "many">;
988
+ /**
989
+ * The connector's opaque handle for what this session produced in its back
990
+ * office — present only once a checkout actually reached the platform. The
991
+ * console hands it to the back-office link registry; nothing else reads it.
992
+ */
993
+ backOfficeRef: z.ZodNullable<z.ZodString>;
994
+ /**
995
+ * The order this session produced, when the connector's back office reported
996
+ * it (`session_orders`): its opaque id and the back office's own name for it.
997
+ * Both null when no order is known — the cart handle above is then the door.
998
+ */
999
+ orderRef: z.ZodNullable<z.ZodString>;
1000
+ orderLabel: z.ZodNullable<z.ZodString>;
1001
+ /**
1002
+ * Which shell this session rendered — the one thing about the CAPTURE a list
1003
+ * needs.
1004
+ *
1005
+ * The rest of the capture stays off the queue on purpose (§XIII.6: a list
1006
+ * representation carrying a detail representation's fields is how the two
1007
+ * stop being distinguishable). This is not that: it is a derived
1008
+ * classification, one word wide, and it changes how a reviewer reads every
1009
+ * other field in the row — a 3-turn session on a phone and a 3-turn session
1010
+ * on a desktop are not the same session.
1011
+ */
1012
+ formFactor: z.ZodNullable<z.ZodEnum<["mobile", "desktop"]>>;
1013
+ turnCount: z.ZodNumber;
1014
+ /** The visitor's opening message — the single most informative field for
1015
+ * deciding whether a session is worth opening, hence the widest column. */
1016
+ firstPrompt: z.ZodString;
1017
+ startedAt: z.ZodString;
1018
+ lastRunAt: z.ZodString;
1019
+ /**
1020
+ * The VISITOR's own IANA zone (`America/New_York`), read from their browser
1021
+ * at session create — what the two timestamps above should be read in.
1022
+ *
1023
+ * ── WHY THIS IS ON THE SUMMARY AND NOT THE CAPTURE (§XIII.6) ────────────
1024
+ *
1025
+ * It is not a detail about how the session was captured; it is the UNIT of a
1026
+ * field the summary already carries. A timestamp without its zone is money
1027
+ * without its currency, and this contract is emphatic about that everywhere
1028
+ * else — `cartValueMinor` never travels without `currency` and its exponent.
1029
+ * The queue renders `lastRunAt` in its own column, so a zone reachable only
1030
+ * from the detail would leave the list rendering an instant it cannot label.
1031
+ * `clientVersion` and `isInternal` are already read from the queue row for
1032
+ * the same kind of reason.
1033
+ *
1034
+ * Named `visitorTimeZone` and not `timeZone` because the console already has
1035
+ * another one: the analytics screen reports in the SPACE's reporting zone.
1036
+ * Two clocks with one name is how a screen ends up quietly mixing them.
1037
+ *
1038
+ * NULL means not captured, and every session recorded before 2026-09-06 is
1039
+ * null forever — `locale` spans three US hours and the ingest path keeps only
1040
+ * a keyed hash of the address, so it cannot be backfilled. The console
1041
+ * renders those in the READER's zone and says so.
1042
+ *
1043
+ * Client-asserted and never validated against a zone table, so every consumer
1044
+ * must tolerate an unknown name: `Intl` throws a RangeError on one.
1045
+ */
1046
+ visitorTimeZone: z.ZodNullable<z.ZodString>;
1047
+ /**
1048
+ * Mean TIME TO FIRST PATCH, over the turns that recorded one — the first
1049
+ * layout op reaching the visitor, and THE latency the project is managed on.
1050
+ * mainDone is free to run long (a richer page costs mainDone, not this), and
1051
+ * `totalLatencyMs` carries the chip-gen tail that runs after the visitor is
1052
+ * already reading. Null when no turn in the session recorded a patch.
1053
+ */
1054
+ avgTtftMs: z.ZodNullable<z.ZodNumber>;
1055
+ /** Mean `main_done_ms` — layout + prose complete. Context for the TTFT, not
1056
+ * a budget: null on sessions older than the mark's recording. */
1057
+ avgMainDoneMs: z.ZodNullable<z.ZodNumber>;
1058
+ /** Mean `chip_gen_ms` — the pass that runs AFTER mainDone and is out of the
1059
+ * budget. On the row only to explain the gap to `totalLatencyMs`. */
1060
+ avgChipGenMs: z.ZodNullable<z.ZodNumber>;
1061
+ totalLatencyMs: z.ZodNumber;
1062
+ durationMs: z.ZodNumber;
1063
+ /** Inferred from recent activity — nothing writes a session-end marker. A
1064
+ * live session streams and cannot be given a verdict until it ends. */
1065
+ isLive: z.ZodBoolean;
1066
+ verdict: z.ZodEnum<["unreviewed", "viewed", "bug"]>;
1067
+ reviewedBy: z.ZodNullable<z.ZodString>;
1068
+ reviewedAt: z.ZodNullable<z.ZodString>;
1069
+ /** Latest filed bug, flattened onto the row so the queue can show its live
1070
+ * state without a second request. */
1071
+ bugIssueKey: z.ZodNullable<z.ZodString>;
1072
+ bugIssueUrl: z.ZodNullable<z.ZodString>;
1073
+ bugIssueState: z.ZodNullable<z.ZodString>;
1074
+ }, "strip", z.ZodTypeAny, {
1075
+ sessionId: string;
1076
+ backOfficeRef: string | null;
1077
+ turnCount: number;
1078
+ firstPrompt: string;
1079
+ startedAt: string;
1080
+ lastRunAt: string;
1081
+ totalLatencyMs: number;
1082
+ verdict: "unreviewed" | "viewed" | "bug";
1083
+ visitorId: string | null;
1084
+ identityProvider: string | null;
1085
+ identityKey: string | null;
1086
+ isInternal: boolean;
1087
+ clientVersion: string | null;
1088
+ signalCounts: Record<string, number>;
1089
+ conversionAttempts: number | null;
1090
+ conversionKinds: Record<string, number>;
1091
+ funnelSteps: string[];
1092
+ orderRef: string | null;
1093
+ orderLabel: string | null;
1094
+ formFactor: "mobile" | "desktop" | null;
1095
+ visitorTimeZone: string | null;
1096
+ avgTtftMs: number | null;
1097
+ avgMainDoneMs: number | null;
1098
+ avgChipGenMs: number | null;
1099
+ durationMs: number;
1100
+ isLive: boolean;
1101
+ reviewedBy: string | null;
1102
+ reviewedAt: string | null;
1103
+ bugIssueKey: string | null;
1104
+ bugIssueUrl: string | null;
1105
+ bugIssueState: string | null;
1106
+ }, {
1107
+ sessionId: string;
1108
+ backOfficeRef: string | null;
1109
+ turnCount: number;
1110
+ firstPrompt: string;
1111
+ startedAt: string;
1112
+ lastRunAt: string;
1113
+ totalLatencyMs: number;
1114
+ verdict: "unreviewed" | "viewed" | "bug";
1115
+ visitorId: string | null;
1116
+ identityProvider: string | null;
1117
+ identityKey: string | null;
1118
+ isInternal: boolean;
1119
+ clientVersion: string | null;
1120
+ signalCounts: Record<string, number>;
1121
+ conversionAttempts: number | null;
1122
+ conversionKinds: Record<string, number>;
1123
+ funnelSteps: string[];
1124
+ orderRef: string | null;
1125
+ orderLabel: string | null;
1126
+ formFactor: "mobile" | "desktop" | null;
1127
+ visitorTimeZone: string | null;
1128
+ avgTtftMs: number | null;
1129
+ avgMainDoneMs: number | null;
1130
+ avgChipGenMs: number | null;
1131
+ durationMs: number;
1132
+ isLive: boolean;
1133
+ reviewedBy: string | null;
1134
+ reviewedAt: string | null;
1135
+ bugIssueKey: string | null;
1136
+ bugIssueUrl: string | null;
1137
+ bugIssueState: string | null;
1138
+ }>, "many">;
1139
+ totalCount: z.ZodNumber;
1140
+ hiddenInternalCount: z.ZodNumber;
1141
+ /**
1142
+ * Bounced sessions the queue left out — no turn and no add, the default.
1143
+ *
1144
+ * This one IS rendered, because unlike the internal switch the omission is on
1145
+ * by default and a total that silently excluded most of a space's arrivals
1146
+ * would be the definitional gap the log's population was fixed to close.
1147
+ * `totalCount + hiddenBouncedCount` is that population, and this count is the
1148
+ * analytics dashboard's bounce over the same window.
1149
+ */
1150
+ hiddenBouncedCount: z.ZodNumber;
1151
+ }, "strip", z.ZodTypeAny, {
1152
+ sessions: {
1153
+ sessionId: string;
1154
+ backOfficeRef: string | null;
1155
+ turnCount: number;
1156
+ firstPrompt: string;
1157
+ startedAt: string;
1158
+ lastRunAt: string;
1159
+ totalLatencyMs: number;
1160
+ verdict: "unreviewed" | "viewed" | "bug";
1161
+ visitorId: string | null;
1162
+ identityProvider: string | null;
1163
+ identityKey: string | null;
1164
+ isInternal: boolean;
1165
+ clientVersion: string | null;
1166
+ signalCounts: Record<string, number>;
1167
+ conversionAttempts: number | null;
1168
+ conversionKinds: Record<string, number>;
1169
+ funnelSteps: string[];
1170
+ orderRef: string | null;
1171
+ orderLabel: string | null;
1172
+ formFactor: "mobile" | "desktop" | null;
1173
+ visitorTimeZone: string | null;
1174
+ avgTtftMs: number | null;
1175
+ avgMainDoneMs: number | null;
1176
+ avgChipGenMs: number | null;
1177
+ durationMs: number;
1178
+ isLive: boolean;
1179
+ reviewedBy: string | null;
1180
+ reviewedAt: string | null;
1181
+ bugIssueKey: string | null;
1182
+ bugIssueUrl: string | null;
1183
+ bugIssueState: string | null;
1184
+ }[];
1185
+ totalCount: number;
1186
+ hiddenInternalCount: number;
1187
+ hiddenBouncedCount: number;
1188
+ }, {
1189
+ sessions: {
1190
+ sessionId: string;
1191
+ backOfficeRef: string | null;
1192
+ turnCount: number;
1193
+ firstPrompt: string;
1194
+ startedAt: string;
1195
+ lastRunAt: string;
1196
+ totalLatencyMs: number;
1197
+ verdict: "unreviewed" | "viewed" | "bug";
1198
+ visitorId: string | null;
1199
+ identityProvider: string | null;
1200
+ identityKey: string | null;
1201
+ isInternal: boolean;
1202
+ clientVersion: string | null;
1203
+ signalCounts: Record<string, number>;
1204
+ conversionAttempts: number | null;
1205
+ conversionKinds: Record<string, number>;
1206
+ funnelSteps: string[];
1207
+ orderRef: string | null;
1208
+ orderLabel: string | null;
1209
+ formFactor: "mobile" | "desktop" | null;
1210
+ visitorTimeZone: string | null;
1211
+ avgTtftMs: number | null;
1212
+ avgMainDoneMs: number | null;
1213
+ avgChipGenMs: number | null;
1214
+ durationMs: number;
1215
+ isLive: boolean;
1216
+ reviewedBy: string | null;
1217
+ reviewedAt: string | null;
1218
+ bugIssueKey: string | null;
1219
+ bugIssueUrl: string | null;
1220
+ bugIssueState: string | null;
1221
+ }[];
1222
+ totalCount: number;
1223
+ hiddenInternalCount: number;
1224
+ hiddenBouncedCount: number;
1225
+ }>;
1226
+ export type SessionQueuePage = z.infer<typeof SessionQueuePageSchema>;
1227
+ /**
1228
+ * Per-option counts for the filter menus.
1229
+ *
1230
+ * `turns` and `durationS` return RAW values, not buckets: the console owns the
1231
+ * bucket boundaries and their labels, so re-cutting them never touches the API
1232
+ * or the database.
1233
+ */
1234
+ export declare const SessionQueueFacetsSchema: z.ZodObject<{
1235
+ review: z.ZodRecord<z.ZodString, z.ZodNumber>;
1236
+ version: z.ZodRecord<z.ZodString, z.ZodNumber>;
1237
+ turns: z.ZodRecord<z.ZodString, z.ZodNumber>;
1238
+ durationS: z.ZodRecord<z.ZodString, z.ZodNumber>;
1239
+ /** Sessions per funnel step reached — a session counts under every step it reached. */
1240
+ funnel: z.ZodRecord<z.ZodString, z.ZodNumber>;
1241
+ }, "strip", z.ZodTypeAny, {
1242
+ version: Record<string, number>;
1243
+ turns: Record<string, number>;
1244
+ review: Record<string, number>;
1245
+ durationS: Record<string, number>;
1246
+ funnel: Record<string, number>;
1247
+ }, {
1248
+ version: Record<string, number>;
1249
+ turns: Record<string, number>;
1250
+ review: Record<string, number>;
1251
+ durationS: Record<string, number>;
1252
+ funnel: Record<string, number>;
1253
+ }>;
1254
+ export type SessionQueueFacets = z.infer<typeof SessionQueueFacetsSchema>;
1255
+ /**
1256
+ * How the session was captured — the reference material under the transcript
1257
+ * and the replay.
1258
+ *
1259
+ * `viewportWidth` is load-bearing, not decorative: a replay at the wrong width
1260
+ * is not a replay (a width-dependent overflow fault does not reproduce at
1261
+ * desktop). Null means NOT CAPTURED, and the replay must say so rather than
1262
+ * pick a default that renders correctly while lying.
1263
+ *
1264
+ * `userAgent` ships raw and is parsed for display in the console. A parse
1265
+ * stored at write time cannot be corrected when the rules change.
1266
+ */
1267
+ export declare const SessionCaptureSchema: z.ZodObject<{
1268
+ viewportWidth: z.ZodNullable<z.ZodNumber>;
1269
+ viewportHeight: z.ZodNullable<z.ZodNumber>;
1270
+ userAgent: z.ZodNullable<z.ZodString>;
1271
+ locale: z.ZodNullable<z.ZodString>;
1272
+ /** Referrer at session create — separates agentic traffic from organic. */
1273
+ referrer: z.ZodNullable<z.ZodString>;
1274
+ }, "strip", z.ZodTypeAny, {
1275
+ viewportWidth: number | null;
1276
+ viewportHeight: number | null;
1277
+ userAgent: string | null;
1278
+ locale: string | null;
1279
+ referrer: string | null;
1280
+ }, {
1281
+ viewportWidth: number | null;
1282
+ viewportHeight: number | null;
1283
+ userAgent: string | null;
1284
+ locale: string | null;
1285
+ referrer: string | null;
1286
+ }>;
1287
+ export type SessionCapture = z.infer<typeof SessionCaptureSchema>;
1288
+ /**
1289
+ * What a host reports at session create.
1290
+ *
1291
+ * Wider than `SessionCapture` because two of these fields are read from the
1292
+ * QUEUE row rather than the detail: `clientVersion` is a filter and
1293
+ * `isInternal` decides whether the session is shown at all.
1294
+ *
1295
+ * `isInternal` is ADVISORY and client-declared. That is a deliberate limit, not
1296
+ * an oversight: the browser is the only layer that knows it is the console's
1297
+ * own preview rather than a visitor, and the flag exists to keep a go-live
1298
+ * queue readable — it gates nothing and grants nothing, so a client that lies
1299
+ * about it only makes its own triage worse.
1300
+ */
1301
+ export declare const SessionCaptureInputSchema: z.ZodObject<{
1302
+ viewportWidth: z.ZodOptional<z.ZodNumber>;
1303
+ viewportHeight: z.ZodOptional<z.ZodNumber>;
1304
+ userAgent: z.ZodOptional<z.ZodString>;
1305
+ locale: z.ZodOptional<z.ZodString>;
1306
+ /** IANA zone name from the visitor's browser. Bounded rather than validated:
1307
+ * the zone database grows, and refusing a name this build has not heard of
1308
+ * would drop a real session's capture over a table that is out of date. */
1309
+ timeZone: z.ZodOptional<z.ZodString>;
1310
+ referrer: z.ZodOptional<z.ZodString>;
1311
+ clientVersion: z.ZodOptional<z.ZodString>;
1312
+ isInternal: z.ZodOptional<z.ZodBoolean>;
1313
+ }, "strip", z.ZodTypeAny, {
1314
+ isInternal?: boolean | undefined;
1315
+ clientVersion?: string | undefined;
1316
+ viewportWidth?: number | undefined;
1317
+ viewportHeight?: number | undefined;
1318
+ userAgent?: string | undefined;
1319
+ locale?: string | undefined;
1320
+ referrer?: string | undefined;
1321
+ timeZone?: string | undefined;
1322
+ }, {
1323
+ isInternal?: boolean | undefined;
1324
+ clientVersion?: string | undefined;
1325
+ viewportWidth?: number | undefined;
1326
+ viewportHeight?: number | undefined;
1327
+ userAgent?: string | undefined;
1328
+ locale?: string | undefined;
1329
+ referrer?: string | undefined;
1330
+ timeZone?: string | undefined;
1331
+ }>;
1332
+ export type SessionCaptureInput = z.infer<typeof SessionCaptureInputSchema>;
1333
+ export declare const SessionDetailSchema: z.ZodObject<{
1334
+ session: z.ZodObject<{
1335
+ sessionId: z.ZodString;
1336
+ /** Stable per-browser id — the join key across a visitor's sessions. Null when
1337
+ * the session row is gone (pruned) or predates the `sessions` table. */
1338
+ visitorId: z.ZodNullable<z.ZodString>;
1339
+ /** Provider-qualified identity anchor, present only once the visitor
1340
+ * identified themselves. Both null together means "not identified yet". */
1341
+ identityProvider: z.ZodNullable<z.ZodString>;
1342
+ identityKey: z.ZodNullable<z.ZodString>;
1343
+ /** Team/test traffic. The queue hides these by default. */
1344
+ isInternal: z.ZodBoolean;
1345
+ /** Build that served the session. Null = not captured; a version filter must
1346
+ * therefore EXCLUDE it rather than let it match an arbitrary bucket. */
1347
+ clientVersion: z.ZodNullable<z.ZodString>;
1348
+ /** Commit-shaped interaction signals, counted, keyed by open `SignalType`. */
1349
+ signalCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
1350
+ /**
1351
+ * Did this conversation ACQUIRE anything, and how many times?
1352
+ *
1353
+ * The count of DISTINCT acquisition attempts on the session's client-event
1354
+ * rail — the same population, at the same grain, that the analytics funnel's
1355
+ * `cart` step counts (`client_sessions_scoped`, and the migration that made a
1356
+ * registry hand-off count alongside an on-site add). Reading both surfaces
1357
+ * from one definition is the point: `signalCounts` above is the AGENT'S
1358
+ * announcement, and a registry hand-off announces nothing, so this is the
1359
+ * only field on the row that can answer the question for a space whose
1360
+ * visitors convert off-site.
1361
+ *
1362
+ * NULL means NOT MEASURED — a console talking to a queue function that
1363
+ * predates the column — and renders as no mark at all. It never means zero:
1364
+ * zero is a real, recorded answer and the rail reports it as one.
1365
+ */
1366
+ conversionAttempts: z.ZodNullable<z.ZodNumber>;
1367
+ /**
1368
+ * The same attempts split by EVENT KIND, keyed by the kind's own name
1369
+ * (`commerce.cart_line_added`, `commerce.registry_clicked`), counted distinct
1370
+ * WITHIN each kind.
1371
+ *
1372
+ * The kinds stay distinct even though the metric merges: an outbound click to
1373
+ * a partner and an on-site write are not the same act. The console renders
1374
+ * each key VERBATIM rather than translating it — the same discipline
1375
+ * `outcomeLabel` follows for signals, and what keeps the platform from
1376
+ * learning what either kind means (§XIII.4).
1377
+ *
1378
+ * Does NOT sum to `conversionAttempts`: that total is distinct over both
1379
+ * kinds together, and one attempt id appearing under both would be counted
1380
+ * once there and twice here.
1381
+ */
1382
+ conversionKinds: z.ZodRecord<z.ZodString, z.ZodNumber>;
1383
+ /**
1384
+ * Every analytics funnel step this session reached, in funnel order — the
1385
+ * dashboard's own step ids, read by the same per-step predicates, so a queue
1386
+ * filtered to a step lists the sessions the dashboard counts there. An open
1387
+ * set of strings for the reason `conversionKinds` is: the contract does not
1388
+ * learn what a step means. Empty only when read from a pre-column database.
1389
+ */
1390
+ funnelSteps: z.ZodArray<z.ZodString, "many">;
1391
+ /**
1392
+ * The connector's opaque handle for what this session produced in its back
1393
+ * office — present only once a checkout actually reached the platform. The
1394
+ * console hands it to the back-office link registry; nothing else reads it.
1395
+ */
1396
+ backOfficeRef: z.ZodNullable<z.ZodString>;
1397
+ /**
1398
+ * The order this session produced, when the connector's back office reported
1399
+ * it (`session_orders`): its opaque id and the back office's own name for it.
1400
+ * Both null when no order is known — the cart handle above is then the door.
1401
+ */
1402
+ orderRef: z.ZodNullable<z.ZodString>;
1403
+ orderLabel: z.ZodNullable<z.ZodString>;
1404
+ /**
1405
+ * Which shell this session rendered — the one thing about the CAPTURE a list
1406
+ * needs.
1407
+ *
1408
+ * The rest of the capture stays off the queue on purpose (§XIII.6: a list
1409
+ * representation carrying a detail representation's fields is how the two
1410
+ * stop being distinguishable). This is not that: it is a derived
1411
+ * classification, one word wide, and it changes how a reviewer reads every
1412
+ * other field in the row — a 3-turn session on a phone and a 3-turn session
1413
+ * on a desktop are not the same session.
1414
+ */
1415
+ formFactor: z.ZodNullable<z.ZodEnum<["mobile", "desktop"]>>;
1416
+ turnCount: z.ZodNumber;
1417
+ /** The visitor's opening message — the single most informative field for
1418
+ * deciding whether a session is worth opening, hence the widest column. */
1419
+ firstPrompt: z.ZodString;
1420
+ startedAt: z.ZodString;
1421
+ lastRunAt: z.ZodString;
1422
+ /**
1423
+ * The VISITOR's own IANA zone (`America/New_York`), read from their browser
1424
+ * at session create — what the two timestamps above should be read in.
1425
+ *
1426
+ * ── WHY THIS IS ON THE SUMMARY AND NOT THE CAPTURE (§XIII.6) ────────────
1427
+ *
1428
+ * It is not a detail about how the session was captured; it is the UNIT of a
1429
+ * field the summary already carries. A timestamp without its zone is money
1430
+ * without its currency, and this contract is emphatic about that everywhere
1431
+ * else — `cartValueMinor` never travels without `currency` and its exponent.
1432
+ * The queue renders `lastRunAt` in its own column, so a zone reachable only
1433
+ * from the detail would leave the list rendering an instant it cannot label.
1434
+ * `clientVersion` and `isInternal` are already read from the queue row for
1435
+ * the same kind of reason.
1436
+ *
1437
+ * Named `visitorTimeZone` and not `timeZone` because the console already has
1438
+ * another one: the analytics screen reports in the SPACE's reporting zone.
1439
+ * Two clocks with one name is how a screen ends up quietly mixing them.
1440
+ *
1441
+ * NULL means not captured, and every session recorded before 2026-09-06 is
1442
+ * null forever — `locale` spans three US hours and the ingest path keeps only
1443
+ * a keyed hash of the address, so it cannot be backfilled. The console
1444
+ * renders those in the READER's zone and says so.
1445
+ *
1446
+ * Client-asserted and never validated against a zone table, so every consumer
1447
+ * must tolerate an unknown name: `Intl` throws a RangeError on one.
1448
+ */
1449
+ visitorTimeZone: z.ZodNullable<z.ZodString>;
1450
+ /**
1451
+ * Mean TIME TO FIRST PATCH, over the turns that recorded one — the first
1452
+ * layout op reaching the visitor, and THE latency the project is managed on.
1453
+ * mainDone is free to run long (a richer page costs mainDone, not this), and
1454
+ * `totalLatencyMs` carries the chip-gen tail that runs after the visitor is
1455
+ * already reading. Null when no turn in the session recorded a patch.
1456
+ */
1457
+ avgTtftMs: z.ZodNullable<z.ZodNumber>;
1458
+ /** Mean `main_done_ms` — layout + prose complete. Context for the TTFT, not
1459
+ * a budget: null on sessions older than the mark's recording. */
1460
+ avgMainDoneMs: z.ZodNullable<z.ZodNumber>;
1461
+ /** Mean `chip_gen_ms` — the pass that runs AFTER mainDone and is out of the
1462
+ * budget. On the row only to explain the gap to `totalLatencyMs`. */
1463
+ avgChipGenMs: z.ZodNullable<z.ZodNumber>;
1464
+ totalLatencyMs: z.ZodNumber;
1465
+ durationMs: z.ZodNumber;
1466
+ /** Inferred from recent activity — nothing writes a session-end marker. A
1467
+ * live session streams and cannot be given a verdict until it ends. */
1468
+ isLive: z.ZodBoolean;
1469
+ verdict: z.ZodEnum<["unreviewed", "viewed", "bug"]>;
1470
+ reviewedBy: z.ZodNullable<z.ZodString>;
1471
+ reviewedAt: z.ZodNullable<z.ZodString>;
1472
+ /** Latest filed bug, flattened onto the row so the queue can show its live
1473
+ * state without a second request. */
1474
+ bugIssueKey: z.ZodNullable<z.ZodString>;
1475
+ bugIssueUrl: z.ZodNullable<z.ZodString>;
1476
+ bugIssueState: z.ZodNullable<z.ZodString>;
1477
+ }, "strip", z.ZodTypeAny, {
1478
+ sessionId: string;
1479
+ backOfficeRef: string | null;
1480
+ turnCount: number;
1481
+ firstPrompt: string;
1482
+ startedAt: string;
1483
+ lastRunAt: string;
1484
+ totalLatencyMs: number;
1485
+ verdict: "unreviewed" | "viewed" | "bug";
1486
+ visitorId: string | null;
1487
+ identityProvider: string | null;
1488
+ identityKey: string | null;
1489
+ isInternal: boolean;
1490
+ clientVersion: string | null;
1491
+ signalCounts: Record<string, number>;
1492
+ conversionAttempts: number | null;
1493
+ conversionKinds: Record<string, number>;
1494
+ funnelSteps: string[];
1495
+ orderRef: string | null;
1496
+ orderLabel: string | null;
1497
+ formFactor: "mobile" | "desktop" | null;
1498
+ visitorTimeZone: string | null;
1499
+ avgTtftMs: number | null;
1500
+ avgMainDoneMs: number | null;
1501
+ avgChipGenMs: number | null;
1502
+ durationMs: number;
1503
+ isLive: boolean;
1504
+ reviewedBy: string | null;
1505
+ reviewedAt: string | null;
1506
+ bugIssueKey: string | null;
1507
+ bugIssueUrl: string | null;
1508
+ bugIssueState: string | null;
1509
+ }, {
1510
+ sessionId: string;
1511
+ backOfficeRef: string | null;
1512
+ turnCount: number;
1513
+ firstPrompt: string;
1514
+ startedAt: string;
1515
+ lastRunAt: string;
1516
+ totalLatencyMs: number;
1517
+ verdict: "unreviewed" | "viewed" | "bug";
1518
+ visitorId: string | null;
1519
+ identityProvider: string | null;
1520
+ identityKey: string | null;
1521
+ isInternal: boolean;
1522
+ clientVersion: string | null;
1523
+ signalCounts: Record<string, number>;
1524
+ conversionAttempts: number | null;
1525
+ conversionKinds: Record<string, number>;
1526
+ funnelSteps: string[];
1527
+ orderRef: string | null;
1528
+ orderLabel: string | null;
1529
+ formFactor: "mobile" | "desktop" | null;
1530
+ visitorTimeZone: string | null;
1531
+ avgTtftMs: number | null;
1532
+ avgMainDoneMs: number | null;
1533
+ avgChipGenMs: number | null;
1534
+ durationMs: number;
1535
+ isLive: boolean;
1536
+ reviewedBy: string | null;
1537
+ reviewedAt: string | null;
1538
+ bugIssueKey: string | null;
1539
+ bugIssueUrl: string | null;
1540
+ bugIssueState: string | null;
1541
+ }>;
1542
+ capture: z.ZodObject<{
1543
+ viewportWidth: z.ZodNullable<z.ZodNumber>;
1544
+ viewportHeight: z.ZodNullable<z.ZodNumber>;
1545
+ userAgent: z.ZodNullable<z.ZodString>;
1546
+ locale: z.ZodNullable<z.ZodString>;
1547
+ /** Referrer at session create — separates agentic traffic from organic. */
1548
+ referrer: z.ZodNullable<z.ZodString>;
1549
+ }, "strip", z.ZodTypeAny, {
1550
+ viewportWidth: number | null;
1551
+ viewportHeight: number | null;
1552
+ userAgent: string | null;
1553
+ locale: string | null;
1554
+ referrer: string | null;
1555
+ }, {
1556
+ viewportWidth: number | null;
1557
+ viewportHeight: number | null;
1558
+ userAgent: string | null;
1559
+ locale: string | null;
1560
+ referrer: string | null;
1561
+ }>;
1562
+ /** Full verdict history, newest first. Verdicts are revisable, and a session
1563
+ * re-judged after a fix is the evidence the fix worked. */
1564
+ reviews: z.ZodArray<z.ZodObject<{
1565
+ id: z.ZodString;
1566
+ verdict: z.ZodEnum<["viewed", "bug"]>;
1567
+ /** Account email of the operator who judged it. Attribution is the reason the
1568
+ * log is append-only rather than a mutable current-state row. */
1569
+ reviewer: z.ZodString;
1570
+ note: z.ZodNullable<z.ZodString>;
1571
+ createdAt: z.ZodString;
1572
+ }, "strip", z.ZodTypeAny, {
1573
+ id: string;
1574
+ createdAt: string;
1575
+ verdict: "viewed" | "bug";
1576
+ reviewer: string;
1577
+ note: string | null;
1578
+ }, {
1579
+ id: string;
1580
+ createdAt: string;
1581
+ verdict: "viewed" | "bug";
1582
+ reviewer: string;
1583
+ note: string | null;
1584
+ }>, "many">;
1585
+ bugs: z.ZodArray<z.ZodObject<{
1586
+ id: z.ZodString;
1587
+ /** 1-based turn the fault was observed on; null when the fault is session-wide. */
1588
+ turnIndex: z.ZodNullable<z.ZodNumber>;
1589
+ /** Where on that turn's canvas the pin was dropped; null for a bug filed
1590
+ * without pinning a spot. */
1591
+ location: z.ZodNullable<z.ZodEffects<z.ZodObject<{
1592
+ elementId: z.ZodNullable<z.ZodString>;
1593
+ /** Display only — the catalog component type, e.g. "productGrid". Null
1594
+ * alongside a null `elementId`. */
1595
+ elementType: z.ZodNullable<z.ZodString>;
1596
+ /** Fraction of the ELEMENT's own box. Null for a page anchor. */
1597
+ offsetXPct: z.ZodNullable<z.ZodNumber>;
1598
+ offsetYPct: z.ZodNullable<z.ZodNumber>;
1599
+ /**
1600
+ * ABSOLUTE document pixels, for a pin with no element under it. Null for an
1601
+ * element anchor.
1602
+ *
1603
+ * Absolute, and NOT a fraction of the page, because the page's total size is
1604
+ * not stable: a hover scale, a late-loading image, an expanding card or a
1605
+ * scrollbar all change it, and a fraction of a moving total drags every pin
1606
+ * on the page with it. Measured before this was fixed: growing the page 9%
1607
+ * slid a pin 32px, so a pin ran away from the cursor reaching for it.
1608
+ */
1609
+ pageX: z.ZodNullable<z.ZodNumber>;
1610
+ pageY: z.ZodNullable<z.ZodNumber>;
1611
+ }, "strip", z.ZodTypeAny, {
1612
+ elementId: string | null;
1613
+ elementType: string | null;
1614
+ offsetXPct: number | null;
1615
+ offsetYPct: number | null;
1616
+ pageX: number | null;
1617
+ pageY: number | null;
1618
+ }, {
1619
+ elementId: string | null;
1620
+ elementType: string | null;
1621
+ offsetXPct: number | null;
1622
+ offsetYPct: number | null;
1623
+ pageX: number | null;
1624
+ pageY: number | null;
1625
+ }>, {
1626
+ elementId: string | null;
1627
+ elementType: string | null;
1628
+ offsetXPct: number | null;
1629
+ offsetYPct: number | null;
1630
+ pageX: number | null;
1631
+ pageY: number | null;
1632
+ }, {
1633
+ elementId: string | null;
1634
+ elementType: string | null;
1635
+ offsetXPct: number | null;
1636
+ offsetYPct: number | null;
1637
+ pageX: number | null;
1638
+ pageY: number | null;
1639
+ }>>;
1640
+ provider: z.ZodString;
1641
+ issueKey: z.ZodNullable<z.ZodString>;
1642
+ issueUrl: z.ZodNullable<z.ZodString>;
1643
+ /** The tracker's own state word ('Todo', 'Done', …) — their vocabulary, so
1644
+ * open text. Null until first synced. */
1645
+ issueState: z.ZodNullable<z.ZodString>;
1646
+ title: z.ZodString;
1647
+ body: z.ZodString;
1648
+ severity: z.ZodEnum<["high", "medium", "low"]>;
1649
+ createdBy: z.ZodString;
1650
+ createdAt: z.ZodString;
1651
+ /**
1652
+ * When this bug was resolved from the console; null means still OPEN.
1653
+ *
1654
+ * Resolution belongs to the bug, not to the session: the session verdict
1655
+ * answers "did anyone look at this conversation", which says nothing about
1656
+ * whether a particular fault is still live. The timestamp IS the state, so
1657
+ * no boolean can contradict it.
1658
+ */
1659
+ resolvedAt: z.ZodNullable<z.ZodString>;
1660
+ resolvedBy: z.ZodNullable<z.ZodString>;
1661
+ }, "strip", z.ZodTypeAny, {
1662
+ id: string;
1663
+ title: string;
1664
+ createdAt: string;
1665
+ provider: string;
1666
+ turnIndex: number | null;
1667
+ location: {
1668
+ elementId: string | null;
1669
+ elementType: string | null;
1670
+ offsetXPct: number | null;
1671
+ offsetYPct: number | null;
1672
+ pageX: number | null;
1673
+ pageY: number | null;
1674
+ } | null;
1675
+ issueKey: string | null;
1676
+ issueUrl: string | null;
1677
+ issueState: string | null;
1678
+ body: string;
1679
+ severity: "high" | "medium" | "low";
1680
+ createdBy: string;
1681
+ resolvedAt: string | null;
1682
+ resolvedBy: string | null;
1683
+ }, {
1684
+ id: string;
1685
+ title: string;
1686
+ createdAt: string;
1687
+ provider: string;
1688
+ turnIndex: number | null;
1689
+ location: {
1690
+ elementId: string | null;
1691
+ elementType: string | null;
1692
+ offsetXPct: number | null;
1693
+ offsetYPct: number | null;
1694
+ pageX: number | null;
1695
+ pageY: number | null;
1696
+ } | null;
1697
+ issueKey: string | null;
1698
+ issueUrl: string | null;
1699
+ issueState: string | null;
1700
+ body: string;
1701
+ severity: "high" | "medium" | "low";
1702
+ createdBy: string;
1703
+ resolvedAt: string | null;
1704
+ resolvedBy: string | null;
1705
+ }>, "many">;
1706
+ comments: z.ZodArray<z.ZodObject<{
1707
+ id: z.ZodString;
1708
+ /** Set = a reply in that bug's thread. Null = a standalone comment pin. */
1709
+ bugId: z.ZodNullable<z.ZodString>;
1710
+ /** 1-based turn the comment was left on; null for a reply (it reads its
1711
+ * parent bug's turn). */
1712
+ turnIndex: z.ZodNullable<z.ZodNumber>;
1713
+ /** The canvas anchor for a STANDALONE comment's own pin; null for a reply. */
1714
+ location: z.ZodNullable<z.ZodEffects<z.ZodObject<{
1715
+ elementId: z.ZodNullable<z.ZodString>;
1716
+ /** Display only — the catalog component type, e.g. "productGrid". Null
1717
+ * alongside a null `elementId`. */
1718
+ elementType: z.ZodNullable<z.ZodString>;
1719
+ /** Fraction of the ELEMENT's own box. Null for a page anchor. */
1720
+ offsetXPct: z.ZodNullable<z.ZodNumber>;
1721
+ offsetYPct: z.ZodNullable<z.ZodNumber>;
1722
+ /**
1723
+ * ABSOLUTE document pixels, for a pin with no element under it. Null for an
1724
+ * element anchor.
1725
+ *
1726
+ * Absolute, and NOT a fraction of the page, because the page's total size is
1727
+ * not stable: a hover scale, a late-loading image, an expanding card or a
1728
+ * scrollbar all change it, and a fraction of a moving total drags every pin
1729
+ * on the page with it. Measured before this was fixed: growing the page 9%
1730
+ * slid a pin 32px, so a pin ran away from the cursor reaching for it.
1731
+ */
1732
+ pageX: z.ZodNullable<z.ZodNumber>;
1733
+ pageY: z.ZodNullable<z.ZodNumber>;
1734
+ }, "strip", z.ZodTypeAny, {
1735
+ elementId: string | null;
1736
+ elementType: string | null;
1737
+ offsetXPct: number | null;
1738
+ offsetYPct: number | null;
1739
+ pageX: number | null;
1740
+ pageY: number | null;
1741
+ }, {
1742
+ elementId: string | null;
1743
+ elementType: string | null;
1744
+ offsetXPct: number | null;
1745
+ offsetYPct: number | null;
1746
+ pageX: number | null;
1747
+ pageY: number | null;
1748
+ }>, {
1749
+ elementId: string | null;
1750
+ elementType: string | null;
1751
+ offsetXPct: number | null;
1752
+ offsetYPct: number | null;
1753
+ pageX: number | null;
1754
+ pageY: number | null;
1755
+ }, {
1756
+ elementId: string | null;
1757
+ elementType: string | null;
1758
+ offsetXPct: number | null;
1759
+ offsetYPct: number | null;
1760
+ pageX: number | null;
1761
+ pageY: number | null;
1762
+ }>>;
1763
+ body: z.ZodString;
1764
+ createdBy: z.ZodString;
1765
+ createdAt: z.ZodString;
1766
+ }, "strip", z.ZodTypeAny, {
1767
+ id: string;
1768
+ createdAt: string;
1769
+ turnIndex: number | null;
1770
+ location: {
1771
+ elementId: string | null;
1772
+ elementType: string | null;
1773
+ offsetXPct: number | null;
1774
+ offsetYPct: number | null;
1775
+ pageX: number | null;
1776
+ pageY: number | null;
1777
+ } | null;
1778
+ body: string;
1779
+ createdBy: string;
1780
+ bugId: string | null;
1781
+ }, {
1782
+ id: string;
1783
+ createdAt: string;
1784
+ turnIndex: number | null;
1785
+ location: {
1786
+ elementId: string | null;
1787
+ elementType: string | null;
1788
+ offsetXPct: number | null;
1789
+ offsetYPct: number | null;
1790
+ pageX: number | null;
1791
+ pageY: number | null;
1792
+ } | null;
1793
+ body: string;
1794
+ createdBy: string;
1795
+ bugId: string | null;
1796
+ }>, "many">;
1797
+ /** Optional during API/console rolling deployment. Absent is unavailable,
1798
+ * not evidence of zero visitor activity. */
1799
+ activity: z.ZodOptional<z.ZodObject<{
1800
+ events: z.ZodArray<z.ZodObject<{
1801
+ id: z.ZodString;
1802
+ kind: z.ZodString;
1803
+ occurredAt: z.ZodString;
1804
+ source: z.ZodString;
1805
+ surface: z.ZodString;
1806
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1807
+ }, "strip", z.ZodTypeAny, {
1808
+ kind: string;
1809
+ payload: Record<string, unknown>;
1810
+ occurredAt: string;
1811
+ surface: string;
1812
+ id: string;
1813
+ source: string;
1814
+ }, {
1815
+ kind: string;
1816
+ payload: Record<string, unknown>;
1817
+ occurredAt: string;
1818
+ surface: string;
1819
+ id: string;
1820
+ source: string;
1821
+ }>, "many">;
1822
+ hasMore: z.ZodBoolean;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ events: {
1825
+ kind: string;
1826
+ payload: Record<string, unknown>;
1827
+ occurredAt: string;
1828
+ surface: string;
1829
+ id: string;
1830
+ source: string;
1831
+ }[];
1832
+ hasMore: boolean;
1833
+ }, {
1834
+ events: {
1835
+ kind: string;
1836
+ payload: Record<string, unknown>;
1837
+ occurredAt: string;
1838
+ surface: string;
1839
+ id: string;
1840
+ source: string;
1841
+ }[];
1842
+ hasMore: boolean;
1843
+ }>>;
1844
+ }, "strip", z.ZodTypeAny, {
1845
+ session: {
1846
+ sessionId: string;
1847
+ backOfficeRef: string | null;
1848
+ turnCount: number;
1849
+ firstPrompt: string;
1850
+ startedAt: string;
1851
+ lastRunAt: string;
1852
+ totalLatencyMs: number;
1853
+ verdict: "unreviewed" | "viewed" | "bug";
1854
+ visitorId: string | null;
1855
+ identityProvider: string | null;
1856
+ identityKey: string | null;
1857
+ isInternal: boolean;
1858
+ clientVersion: string | null;
1859
+ signalCounts: Record<string, number>;
1860
+ conversionAttempts: number | null;
1861
+ conversionKinds: Record<string, number>;
1862
+ funnelSteps: string[];
1863
+ orderRef: string | null;
1864
+ orderLabel: string | null;
1865
+ formFactor: "mobile" | "desktop" | null;
1866
+ visitorTimeZone: string | null;
1867
+ avgTtftMs: number | null;
1868
+ avgMainDoneMs: number | null;
1869
+ avgChipGenMs: number | null;
1870
+ durationMs: number;
1871
+ isLive: boolean;
1872
+ reviewedBy: string | null;
1873
+ reviewedAt: string | null;
1874
+ bugIssueKey: string | null;
1875
+ bugIssueUrl: string | null;
1876
+ bugIssueState: string | null;
1877
+ };
1878
+ capture: {
1879
+ viewportWidth: number | null;
1880
+ viewportHeight: number | null;
1881
+ userAgent: string | null;
1882
+ locale: string | null;
1883
+ referrer: string | null;
1884
+ };
1885
+ reviews: {
1886
+ id: string;
1887
+ createdAt: string;
1888
+ verdict: "viewed" | "bug";
1889
+ reviewer: string;
1890
+ note: string | null;
1891
+ }[];
1892
+ bugs: {
1893
+ id: string;
1894
+ title: string;
1895
+ createdAt: string;
1896
+ provider: string;
1897
+ turnIndex: number | null;
1898
+ location: {
1899
+ elementId: string | null;
1900
+ elementType: string | null;
1901
+ offsetXPct: number | null;
1902
+ offsetYPct: number | null;
1903
+ pageX: number | null;
1904
+ pageY: number | null;
1905
+ } | null;
1906
+ issueKey: string | null;
1907
+ issueUrl: string | null;
1908
+ issueState: string | null;
1909
+ body: string;
1910
+ severity: "high" | "medium" | "low";
1911
+ createdBy: string;
1912
+ resolvedAt: string | null;
1913
+ resolvedBy: string | null;
1914
+ }[];
1915
+ comments: {
1916
+ id: string;
1917
+ createdAt: string;
1918
+ turnIndex: number | null;
1919
+ location: {
1920
+ elementId: string | null;
1921
+ elementType: string | null;
1922
+ offsetXPct: number | null;
1923
+ offsetYPct: number | null;
1924
+ pageX: number | null;
1925
+ pageY: number | null;
1926
+ } | null;
1927
+ body: string;
1928
+ createdBy: string;
1929
+ bugId: string | null;
1930
+ }[];
1931
+ activity?: {
1932
+ events: {
1933
+ kind: string;
1934
+ payload: Record<string, unknown>;
1935
+ occurredAt: string;
1936
+ surface: string;
1937
+ id: string;
1938
+ source: string;
1939
+ }[];
1940
+ hasMore: boolean;
1941
+ } | undefined;
1942
+ }, {
1943
+ session: {
1944
+ sessionId: string;
1945
+ backOfficeRef: string | null;
1946
+ turnCount: number;
1947
+ firstPrompt: string;
1948
+ startedAt: string;
1949
+ lastRunAt: string;
1950
+ totalLatencyMs: number;
1951
+ verdict: "unreviewed" | "viewed" | "bug";
1952
+ visitorId: string | null;
1953
+ identityProvider: string | null;
1954
+ identityKey: string | null;
1955
+ isInternal: boolean;
1956
+ clientVersion: string | null;
1957
+ signalCounts: Record<string, number>;
1958
+ conversionAttempts: number | null;
1959
+ conversionKinds: Record<string, number>;
1960
+ funnelSteps: string[];
1961
+ orderRef: string | null;
1962
+ orderLabel: string | null;
1963
+ formFactor: "mobile" | "desktop" | null;
1964
+ visitorTimeZone: string | null;
1965
+ avgTtftMs: number | null;
1966
+ avgMainDoneMs: number | null;
1967
+ avgChipGenMs: number | null;
1968
+ durationMs: number;
1969
+ isLive: boolean;
1970
+ reviewedBy: string | null;
1971
+ reviewedAt: string | null;
1972
+ bugIssueKey: string | null;
1973
+ bugIssueUrl: string | null;
1974
+ bugIssueState: string | null;
1975
+ };
1976
+ capture: {
1977
+ viewportWidth: number | null;
1978
+ viewportHeight: number | null;
1979
+ userAgent: string | null;
1980
+ locale: string | null;
1981
+ referrer: string | null;
1982
+ };
1983
+ reviews: {
1984
+ id: string;
1985
+ createdAt: string;
1986
+ verdict: "viewed" | "bug";
1987
+ reviewer: string;
1988
+ note: string | null;
1989
+ }[];
1990
+ bugs: {
1991
+ id: string;
1992
+ title: string;
1993
+ createdAt: string;
1994
+ provider: string;
1995
+ turnIndex: number | null;
1996
+ location: {
1997
+ elementId: string | null;
1998
+ elementType: string | null;
1999
+ offsetXPct: number | null;
2000
+ offsetYPct: number | null;
2001
+ pageX: number | null;
2002
+ pageY: number | null;
2003
+ } | null;
2004
+ issueKey: string | null;
2005
+ issueUrl: string | null;
2006
+ issueState: string | null;
2007
+ body: string;
2008
+ severity: "high" | "medium" | "low";
2009
+ createdBy: string;
2010
+ resolvedAt: string | null;
2011
+ resolvedBy: string | null;
2012
+ }[];
2013
+ comments: {
2014
+ id: string;
2015
+ createdAt: string;
2016
+ turnIndex: number | null;
2017
+ location: {
2018
+ elementId: string | null;
2019
+ elementType: string | null;
2020
+ offsetXPct: number | null;
2021
+ offsetYPct: number | null;
2022
+ pageX: number | null;
2023
+ pageY: number | null;
2024
+ } | null;
2025
+ body: string;
2026
+ createdBy: string;
2027
+ bugId: string | null;
2028
+ }[];
2029
+ activity?: {
2030
+ events: {
2031
+ kind: string;
2032
+ payload: Record<string, unknown>;
2033
+ occurredAt: string;
2034
+ surface: string;
2035
+ id: string;
2036
+ source: string;
2037
+ }[];
2038
+ hasMore: boolean;
2039
+ } | undefined;
2040
+ }>;
2041
+ export type SessionDetail = z.infer<typeof SessionDetailSchema>;
2042
+ export declare const RecordVerdictInputSchema: z.ZodObject<{
2043
+ verdict: z.ZodEnum<["viewed", "bug"]>;
2044
+ note: z.ZodOptional<z.ZodString>;
2045
+ }, "strip", z.ZodTypeAny, {
2046
+ verdict: "viewed" | "bug";
2047
+ note?: string | undefined;
2048
+ }, {
2049
+ verdict: "viewed" | "bug";
2050
+ note?: string | undefined;
2051
+ }>;
2052
+ export type RecordVerdictInput = z.infer<typeof RecordVerdictInputSchema>;
2053
+ /**
2054
+ * The bug composer's submission.
2055
+ *
2056
+ * `payload` is the auto-attached context — trace id, viewport, tool calls with
2057
+ * the faulting call marked, transcript, render payload — frozen at filing time.
2058
+ * Frozen deliberately: run rows are pruned on a retention schedule, and an
2059
+ * issue that stops being reproducible the week after it is filed is worth very
2060
+ * little.
2061
+ */
2062
+ export declare const FileBugInputSchema: z.ZodObject<{
2063
+ turnIndex: z.ZodNullable<z.ZodNumber>;
2064
+ /** Optional — a bug filed without dropping a pin has no location. */
2065
+ location: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
2066
+ elementId: z.ZodNullable<z.ZodString>;
2067
+ /** Display only — the catalog component type, e.g. "productGrid". Null
2068
+ * alongside a null `elementId`. */
2069
+ elementType: z.ZodNullable<z.ZodString>;
2070
+ /** Fraction of the ELEMENT's own box. Null for a page anchor. */
2071
+ offsetXPct: z.ZodNullable<z.ZodNumber>;
2072
+ offsetYPct: z.ZodNullable<z.ZodNumber>;
2073
+ /**
2074
+ * ABSOLUTE document pixels, for a pin with no element under it. Null for an
2075
+ * element anchor.
2076
+ *
2077
+ * Absolute, and NOT a fraction of the page, because the page's total size is
2078
+ * not stable: a hover scale, a late-loading image, an expanding card or a
2079
+ * scrollbar all change it, and a fraction of a moving total drags every pin
2080
+ * on the page with it. Measured before this was fixed: growing the page 9%
2081
+ * slid a pin 32px, so a pin ran away from the cursor reaching for it.
2082
+ */
2083
+ pageX: z.ZodNullable<z.ZodNumber>;
2084
+ pageY: z.ZodNullable<z.ZodNumber>;
2085
+ }, "strip", z.ZodTypeAny, {
2086
+ elementId: string | null;
2087
+ elementType: string | null;
2088
+ offsetXPct: number | null;
2089
+ offsetYPct: number | null;
2090
+ pageX: number | null;
2091
+ pageY: number | null;
2092
+ }, {
2093
+ elementId: string | null;
2094
+ elementType: string | null;
2095
+ offsetXPct: number | null;
2096
+ offsetYPct: number | null;
2097
+ pageX: number | null;
2098
+ pageY: number | null;
2099
+ }>, {
2100
+ elementId: string | null;
2101
+ elementType: string | null;
2102
+ offsetXPct: number | null;
2103
+ offsetYPct: number | null;
2104
+ pageX: number | null;
2105
+ pageY: number | null;
2106
+ }, {
2107
+ elementId: string | null;
2108
+ elementType: string | null;
2109
+ offsetXPct: number | null;
2110
+ offsetYPct: number | null;
2111
+ pageX: number | null;
2112
+ pageY: number | null;
2113
+ }>>>;
2114
+ title: z.ZodString;
2115
+ body: z.ZodString;
2116
+ severity: z.ZodEnum<["high", "medium", "low"]>;
2117
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2118
+ }, "strip", z.ZodTypeAny, {
2119
+ payload: Record<string, unknown>;
2120
+ title: string;
2121
+ turnIndex: number | null;
2122
+ body: string;
2123
+ severity: "high" | "medium" | "low";
2124
+ location?: {
2125
+ elementId: string | null;
2126
+ elementType: string | null;
2127
+ offsetXPct: number | null;
2128
+ offsetYPct: number | null;
2129
+ pageX: number | null;
2130
+ pageY: number | null;
2131
+ } | null | undefined;
2132
+ }, {
2133
+ payload: Record<string, unknown>;
2134
+ title: string;
2135
+ turnIndex: number | null;
2136
+ body: string;
2137
+ severity: "high" | "medium" | "low";
2138
+ location?: {
2139
+ elementId: string | null;
2140
+ elementType: string | null;
2141
+ offsetXPct: number | null;
2142
+ offsetYPct: number | null;
2143
+ pageX: number | null;
2144
+ pageY: number | null;
2145
+ } | null | undefined;
2146
+ }>;
2147
+ export type FileBugInput = z.infer<typeof FileBugInputSchema>;