@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,145 @@
1
+ import { z } from 'zod';
2
+ export interface ResolvedFieldMeta {
3
+ resolverKey: string;
4
+ min?: number;
5
+ max?: number;
6
+ /**
7
+ * DESIGN render floor — the count below which this collection surface looks
8
+ * sparse/broken (a grid with 3 items). Distinct from `min`, the HARD-DROP gate
9
+ * (a comparisonTable with 1 product is semantically invalid). `renderFloor` is
10
+ * the target for the compose evaluator-optimizer loop: the agent completes a
11
+ * short surface from its research pool up to this count. It never drops and
12
+ * never gates seed/code-owned layouts — only the agent's own live assembly.
13
+ */
14
+ renderFloor?: number;
15
+ /**
16
+ * Name of a sibling prop on the same component that, when non-empty,
17
+ * derives this field's value via a registered connector resolver
18
+ * (e.g. `derivedFrom: 'collectionSlug'` → boundary calls
19
+ * `useCollectionByHandle(collectionSlugValue)` and injects the
20
+ * returned products[]). The leaf renderer never knows about the
21
+ * sibling prop; it only sees the resolved entity array.
22
+ *
23
+ * When this meta is set AND the sibling prop is a non-empty string,
24
+ * the resolved field is treated as satisfied even when the agent ships
25
+ * it empty (server validator skips min-check; client boundary fills
26
+ * it from the connector). When the sibling prop is empty, the field
27
+ * behaves as a standard `resolved()` ref array.
28
+ */
29
+ derivedFrom?: string;
30
+ }
31
+ /**
32
+ * Shape of the `_def` slot that carries resolution metadata.
33
+ *
34
+ * The marker lives inside the schema's `_def` — NOT as an instance
35
+ * property — because of how Zod's fluent API produces new schemas:
36
+ *
37
+ * - `.describe()` CLONES: `new (this.constructor)({ ...this._def,
38
+ * description })`. `_def` entries survive the spread; instance
39
+ * properties are dropped.
40
+ * - `.optional()` / `.default()` WRAP: the original schema (and its
41
+ * `_def`) is reachable via `innerType`.
42
+ *
43
+ * An instance-level marker silently vanishes the moment a catalog author
44
+ * chains `.describe()` after `resolved()` — which real catalogs do — and
45
+ * the walker then falls through to the array's ELEMENT schema, picking up
46
+ * whatever marker happens to be there (see `resolved()`'s no-mutation
47
+ * rule below for why that was catastrophic).
48
+ */
49
+ export interface ResolvedMeta {
50
+ _resolved: ResolvedFieldMeta;
51
+ }
52
+ /** A Zod schema carrying a resolution marker (stored in its `_def`). */
53
+ export type ResolvedSchema<T extends z.ZodType = z.ZodType> = T;
54
+ /** A path segment from the props root to a resolved field.
55
+ * - string segment = object key
56
+ * - `'*'` segment = "every element of an array"
57
+ */
58
+ export type ResolvedPathSegment = string | '*';
59
+ export interface ResolvedPath {
60
+ path: ResolvedPathSegment[];
61
+ meta: ResolvedFieldMeta;
62
+ /** Zod schema of a SINGLE resolved entity — the contract the hydration
63
+ * boundary validates each hydrated entity against before it lands in
64
+ * props. For an array marker this is the element schema, not the array;
65
+ * for a `max: 1` marker it is the marker schema itself. */
66
+ schema: z.ZodType;
67
+ }
68
+ /**
69
+ * Marks a prop as requiring client-side hydration.
70
+ * The LLM outputs ref IDs; the client resolves them into full entity objects.
71
+ *
72
+ * - `max === 1` → returns the entity schema (singular prop)
73
+ * - otherwise → returns `z.array(schema)` (array prop)
74
+ *
75
+ * NO-MUTATION RULE: `resolved()` never writes to the caller's schema.
76
+ * Entity schemas (ProductSchema, ArticleSchema, …) are shared module-level
77
+ * instances used by many components — tagging the caller's instance in
78
+ * place leaks one component's constraints onto every other component that
79
+ * uses the same entity schema. (This exact leak — productDetail's
80
+ * `{ max: 1 }` contaminating the shared ProductSchema — made the commit
81
+ * path truncate every productGrid to a single product.) The `max: 1` form
82
+ * therefore tags a CLONE of the entity schema, never the original.
83
+ *
84
+ * @param schema - The Zod schema describing the resolved entity (e.g. ProductSchema)
85
+ * @param resolverKey - matches a registered hydrator (e.g. 'product', 'collection')
86
+ * @param opts - min/max constraints on entity count
87
+ */
88
+ export declare function resolved<T extends z.ZodType>(schema: T, resolverKey: string, opts?: {
89
+ min?: number;
90
+ max?: number;
91
+ renderFloor?: number;
92
+ derivedFrom?: string;
93
+ }): ResolvedSchema<T> | ResolvedSchema<z.ZodArray<T>>;
94
+ /**
95
+ * Walk a Zod props schema and return every resolved field along with the
96
+ * path from the props root to that field. Walks nested objects + array
97
+ * elements so a schema like
98
+ *
99
+ * z.object({
100
+ * items: z.array(z.object({
101
+ * product: resolved(ProductSchema, 'product', { max: 1 }),
102
+ * })),
103
+ * })
104
+ *
105
+ * yields a single entry:
106
+ * `{ path: ['items', '*', 'product'], meta: {...}, schema: EntitySchema }`.
107
+ *
108
+ * The hydration walker (FourtyCanvas) uses these paths to gather refs by
109
+ * resolverKey, batch-hydrate them, validate each hydrated entity against
110
+ * `schema`, and write the valid ones back to the same paths — components
111
+ * don't need their own useEffect/setState dance, and never see a
112
+ * malformed entity.
113
+ */
114
+ export declare function getResolvedPaths(schema: z.ZodType | undefined): ResolvedPath[];
115
+ /** A top-level entity-ref prop and its resolver meta. */
116
+ export interface ResolvedTopLevelProp {
117
+ prop: string;
118
+ meta: ResolvedFieldMeta;
119
+ }
120
+ /**
121
+ * Top-level entity-ref props of a component schema — the props whose values
122
+ * carry entity ids — in EITHER declaration form:
123
+ *
124
+ * `['products']` — resolved() marker on the prop schema itself
125
+ * `['products', '*']` — marker reached through the array's element schema
126
+ *
127
+ * With `_def`-stored markers the first form is the only one catalog code
128
+ * produces (markers survive `.describe()` and never leak onto shared
129
+ * element schemas), but the helper stays robust to the second form so a
130
+ * future marker-carrying element schema can't silently blind every walker
131
+ * again.
132
+ *
133
+ * Every walker that gathers/validates a component's entity refs MUST use
134
+ * this instead of filtering `getResolvedPaths` by `path.length === 1`.
135
+ */
136
+ export declare function resolvedTopLevelProps(schema: z.ZodType | undefined): ResolvedTopLevelProp[];
137
+ /** Write a resolution marker into a schema's `_def` (in place — callers
138
+ * pass schemas they own: a fresh `z.array()` or a `cloneSchema()` result). */
139
+ export declare function writeResolvedMeta(schema: z.ZodType, meta: ResolvedFieldMeta): void;
140
+ /**
141
+ * Read the `_resolved` marker off a schema's `_def`. Returns a fresh
142
+ * `ResolvedFieldMeta` (never the live marker object) — `undefined` when
143
+ * the schema carries no marker.
144
+ */
145
+ export declare function readResolvedMeta(schema: z.ZodType): ResolvedFieldMeta | undefined;
@@ -0,0 +1,7 @@
1
+ import type { ComponentCatalogStructural } from './catalog-schemas';
2
+ export declare const STRUCTURAL_BASELINE_CATALOG: ComponentCatalogStructural;
3
+ /**
4
+ * The builtin type keys — for callers that need to reason about what the platform
5
+ * seeds (e.g. asserting a brand catalog declares only its own bespoke surfaces).
6
+ */
7
+ export declare const STRUCTURAL_BASELINE_TYPES: string[];
@@ -0,0 +1,191 @@
1
+ import { z } from 'zod';
2
+ import type { ComponentCatalogStructural } from '../catalog-schemas';
3
+ import { type WireSchema } from './wire-schema';
4
+ /**
5
+ * A catalog entry as data: everything in `CatalogEntryStructural`, with the
6
+ * props schema in wire form.
7
+ */
8
+ export declare const WireCatalogEntrySchema: z.ZodObject<{
9
+ type: z.ZodString;
10
+ propsSchema: z.ZodOptional<z.ZodType<WireSchema, z.ZodTypeDef, WireSchema>>;
11
+ examples: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
12
+ renderedBy: z.ZodOptional<z.ZodString>;
13
+ alwaysInclude: z.ZodOptional<z.ZodBoolean>;
14
+ whenToUse: z.ZodOptional<z.ZodString>;
15
+ dontUseWhen: z.ZodOptional<z.ZodString>;
16
+ variants: z.ZodOptional<z.ZodString>;
17
+ dependencies: z.ZodOptional<z.ZodString>;
18
+ layout: z.ZodOptional<z.ZodEnum<["section", "fullbleed"]>>;
19
+ size: z.ZodOptional<z.ZodEnum<["full", "wide", "half", "narrow"]>>;
20
+ extendsPage: z.ZodOptional<z.ZodBoolean>;
21
+ bindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
22
+ source: z.ZodString;
23
+ prop: z.ZodString;
24
+ accumulate: z.ZodOptional<z.ZodEnum<["replace", "append", "concat-text"]>>;
25
+ mountAt: z.ZodOptional<z.ZodString>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ source: string;
28
+ prop: string;
29
+ accumulate?: "replace" | "append" | "concat-text" | undefined;
30
+ mountAt?: string | undefined;
31
+ }, {
32
+ source: string;
33
+ prop: string;
34
+ accumulate?: "replace" | "append" | "concat-text" | undefined;
35
+ mountAt?: string | undefined;
36
+ }>, "many">>;
37
+ defaultLayoutWeight: z.ZodOptional<z.ZodNumber>;
38
+ defaultMaxHeight: z.ZodOptional<z.ZodEnum<["sm", "md", "lg", "full"]>>;
39
+ category: z.ZodOptional<z.ZodString>;
40
+ progressLabel: z.ZodOptional<z.ZodString>;
41
+ isExperience: z.ZodOptional<z.ZodBoolean>;
42
+ requires: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43
+ provides: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44
+ }, "strict", z.ZodTypeAny, {
45
+ type: string;
46
+ layout?: "section" | "fullbleed" | undefined;
47
+ size?: "full" | "wide" | "half" | "narrow" | undefined;
48
+ propsSchema?: WireSchema | undefined;
49
+ bindings?: {
50
+ source: string;
51
+ prop: string;
52
+ accumulate?: "replace" | "append" | "concat-text" | undefined;
53
+ mountAt?: string | undefined;
54
+ }[] | undefined;
55
+ examples?: Record<string, unknown>[] | undefined;
56
+ renderedBy?: string | undefined;
57
+ alwaysInclude?: boolean | undefined;
58
+ whenToUse?: string | undefined;
59
+ dontUseWhen?: string | undefined;
60
+ variants?: string | undefined;
61
+ dependencies?: string | undefined;
62
+ extendsPage?: boolean | undefined;
63
+ defaultLayoutWeight?: number | undefined;
64
+ defaultMaxHeight?: "full" | "sm" | "md" | "lg" | undefined;
65
+ category?: string | undefined;
66
+ progressLabel?: string | undefined;
67
+ isExperience?: boolean | undefined;
68
+ requires?: string[] | undefined;
69
+ provides?: string[] | undefined;
70
+ }, {
71
+ type: string;
72
+ layout?: "section" | "fullbleed" | undefined;
73
+ size?: "full" | "wide" | "half" | "narrow" | undefined;
74
+ propsSchema?: WireSchema | undefined;
75
+ bindings?: {
76
+ source: string;
77
+ prop: string;
78
+ accumulate?: "replace" | "append" | "concat-text" | undefined;
79
+ mountAt?: string | undefined;
80
+ }[] | undefined;
81
+ examples?: Record<string, unknown>[] | undefined;
82
+ renderedBy?: string | undefined;
83
+ alwaysInclude?: boolean | undefined;
84
+ whenToUse?: string | undefined;
85
+ dontUseWhen?: string | undefined;
86
+ variants?: string | undefined;
87
+ dependencies?: string | undefined;
88
+ extendsPage?: boolean | undefined;
89
+ defaultLayoutWeight?: number | undefined;
90
+ defaultMaxHeight?: "full" | "sm" | "md" | "lg" | undefined;
91
+ category?: string | undefined;
92
+ progressLabel?: string | undefined;
93
+ isExperience?: boolean | undefined;
94
+ requires?: string[] | undefined;
95
+ provides?: string[] | undefined;
96
+ }>;
97
+ export type WireCatalogEntry = z.infer<typeof WireCatalogEntrySchema>;
98
+ export declare const WireCatalogSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
99
+ type: z.ZodString;
100
+ propsSchema: z.ZodOptional<z.ZodType<WireSchema, z.ZodTypeDef, WireSchema>>;
101
+ examples: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
102
+ renderedBy: z.ZodOptional<z.ZodString>;
103
+ alwaysInclude: z.ZodOptional<z.ZodBoolean>;
104
+ whenToUse: z.ZodOptional<z.ZodString>;
105
+ dontUseWhen: z.ZodOptional<z.ZodString>;
106
+ variants: z.ZodOptional<z.ZodString>;
107
+ dependencies: z.ZodOptional<z.ZodString>;
108
+ layout: z.ZodOptional<z.ZodEnum<["section", "fullbleed"]>>;
109
+ size: z.ZodOptional<z.ZodEnum<["full", "wide", "half", "narrow"]>>;
110
+ extendsPage: z.ZodOptional<z.ZodBoolean>;
111
+ bindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
112
+ source: z.ZodString;
113
+ prop: z.ZodString;
114
+ accumulate: z.ZodOptional<z.ZodEnum<["replace", "append", "concat-text"]>>;
115
+ mountAt: z.ZodOptional<z.ZodString>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ source: string;
118
+ prop: string;
119
+ accumulate?: "replace" | "append" | "concat-text" | undefined;
120
+ mountAt?: string | undefined;
121
+ }, {
122
+ source: string;
123
+ prop: string;
124
+ accumulate?: "replace" | "append" | "concat-text" | undefined;
125
+ mountAt?: string | undefined;
126
+ }>, "many">>;
127
+ defaultLayoutWeight: z.ZodOptional<z.ZodNumber>;
128
+ defaultMaxHeight: z.ZodOptional<z.ZodEnum<["sm", "md", "lg", "full"]>>;
129
+ category: z.ZodOptional<z.ZodString>;
130
+ progressLabel: z.ZodOptional<z.ZodString>;
131
+ isExperience: z.ZodOptional<z.ZodBoolean>;
132
+ requires: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
133
+ provides: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
134
+ }, "strict", z.ZodTypeAny, {
135
+ type: string;
136
+ layout?: "section" | "fullbleed" | undefined;
137
+ size?: "full" | "wide" | "half" | "narrow" | undefined;
138
+ propsSchema?: WireSchema | undefined;
139
+ bindings?: {
140
+ source: string;
141
+ prop: string;
142
+ accumulate?: "replace" | "append" | "concat-text" | undefined;
143
+ mountAt?: string | undefined;
144
+ }[] | undefined;
145
+ examples?: Record<string, unknown>[] | undefined;
146
+ renderedBy?: string | undefined;
147
+ alwaysInclude?: boolean | undefined;
148
+ whenToUse?: string | undefined;
149
+ dontUseWhen?: string | undefined;
150
+ variants?: string | undefined;
151
+ dependencies?: string | undefined;
152
+ extendsPage?: boolean | undefined;
153
+ defaultLayoutWeight?: number | undefined;
154
+ defaultMaxHeight?: "full" | "sm" | "md" | "lg" | undefined;
155
+ category?: string | undefined;
156
+ progressLabel?: string | undefined;
157
+ isExperience?: boolean | undefined;
158
+ requires?: string[] | undefined;
159
+ provides?: string[] | undefined;
160
+ }, {
161
+ type: string;
162
+ layout?: "section" | "fullbleed" | undefined;
163
+ size?: "full" | "wide" | "half" | "narrow" | undefined;
164
+ propsSchema?: WireSchema | undefined;
165
+ bindings?: {
166
+ source: string;
167
+ prop: string;
168
+ accumulate?: "replace" | "append" | "concat-text" | undefined;
169
+ mountAt?: string | undefined;
170
+ }[] | undefined;
171
+ examples?: Record<string, unknown>[] | undefined;
172
+ renderedBy?: string | undefined;
173
+ alwaysInclude?: boolean | undefined;
174
+ whenToUse?: string | undefined;
175
+ dontUseWhen?: string | undefined;
176
+ variants?: string | undefined;
177
+ dependencies?: string | undefined;
178
+ extendsPage?: boolean | undefined;
179
+ defaultLayoutWeight?: number | undefined;
180
+ defaultMaxHeight?: "full" | "sm" | "md" | "lg" | undefined;
181
+ category?: string | undefined;
182
+ progressLabel?: string | undefined;
183
+ isExperience?: boolean | undefined;
184
+ requires?: string[] | undefined;
185
+ provides?: string[] | undefined;
186
+ }>>;
187
+ export type WireCatalog = z.infer<typeof WireCatalogSchema>;
188
+ /** Serialize a catalog for publishing. Throws on a schema the wire cannot carry. */
189
+ export declare function catalogToWire(catalog: ComponentCatalogStructural): WireCatalog;
190
+ /** Rebuild a catalog whose props schemas are real Zod again. */
191
+ export declare function catalogFromWire(wire: WireCatalog): ComponentCatalogStructural;
@@ -0,0 +1,5 @@
1
+ export { WireSchemaSchema, type WireSchema, type WireResolved } from './wire-schema';
2
+ export { schemaToWire, UnsupportedSchemaError } from './schema-to-wire';
3
+ export { schemaFromWire } from './schema-from-wire';
4
+ export { WireCatalogSchema, WireCatalogEntrySchema, catalogToWire, catalogFromWire, type WireCatalog, type WireCatalogEntry, } from './catalog-wire';
5
+ export { PackageReleaseSchema, draftSourceId, isDraftSource, type PackageRelease } from './package-release';