@ksp-gonogo/sitrep-sdk 1.0.0 → 1.1.0-rc.52

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 (599) hide show
  1. package/dist/__generated__/command-map.d.ts +118 -2
  2. package/dist/__generated__/command-map.d.ts.map +1 -1
  3. package/dist/__generated__/command-map.js +36 -0
  4. package/dist/__generated__/command-map.js.map +1 -1
  5. package/dist/__generated__/contract.d.ts +2380 -186
  6. package/dist/__generated__/contract.d.ts.map +1 -1
  7. package/dist/__generated__/contract.js +39 -3
  8. package/dist/__generated__/contract.js.map +1 -1
  9. package/dist/__generated__/delay-roles.d.ts +2 -2
  10. package/dist/__generated__/delay-roles.d.ts.map +1 -1
  11. package/dist/__generated__/delay-roles.js +8 -0
  12. package/dist/__generated__/delay-roles.js.map +1 -1
  13. package/dist/__generated__/error-codes.d.ts +2 -3
  14. package/dist/__generated__/error-codes.d.ts.map +1 -1
  15. package/dist/__generated__/error-codes.js +6 -7
  16. package/dist/__generated__/error-codes.js.map +1 -1
  17. package/dist/__generated__/frames.d.ts +72 -0
  18. package/dist/__generated__/frames.d.ts.map +1 -1
  19. package/dist/__generated__/frames.js +36 -0
  20. package/dist/__generated__/frames.js.map +1 -1
  21. package/dist/__generated__/reckonability.d.ts +3 -3
  22. package/dist/__generated__/reckonability.d.ts.map +1 -1
  23. package/dist/__generated__/reckonability.js +2 -2
  24. package/dist/__generated__/reckonability.js.map +1 -1
  25. package/dist/__generated__/sample-kinds.d.ts +9 -0
  26. package/dist/__generated__/sample-kinds.d.ts.map +1 -1
  27. package/dist/__generated__/sample-kinds.js +9 -0
  28. package/dist/__generated__/sample-kinds.js.map +1 -1
  29. package/dist/__generated__/test-theme.d.ts +145 -0
  30. package/dist/__generated__/test-theme.d.ts.map +1 -1
  31. package/dist/__generated__/test-theme.js +172 -2
  32. package/dist/__generated__/test-theme.js.map +1 -1
  33. package/dist/__generated__/topic-map.d.ts +21 -3
  34. package/dist/__generated__/topic-map.d.ts.map +1 -1
  35. package/dist/__generated__/topic-map.js +9 -0
  36. package/dist/__generated__/topic-map.js.map +1 -1
  37. package/dist/__generated__/units.d.ts +210 -27
  38. package/dist/__generated__/units.d.ts.map +1 -1
  39. package/dist/__generated__/units.js +757 -7
  40. package/dist/__generated__/units.js.map +1 -1
  41. package/dist/api/aero-models.d.ts +198 -0
  42. package/dist/api/aero-models.d.ts.map +1 -0
  43. package/dist/api/aero-models.js +67 -0
  44. package/dist/api/aero-models.js.map +1 -0
  45. package/dist/api/biome-knowledge.d.ts +79 -0
  46. package/dist/api/biome-knowledge.d.ts.map +1 -0
  47. package/dist/api/biome-knowledge.js +61 -0
  48. package/dist/api/biome-knowledge.js.map +1 -0
  49. package/dist/api/bodies.d.ts +2 -0
  50. package/dist/api/bodies.d.ts.map +1 -1
  51. package/dist/api/bodies.js +2 -0
  52. package/dist/api/bodies.js.map +1 -1
  53. package/dist/api/comms-models.d.ts +264 -0
  54. package/dist/api/comms-models.d.ts.map +1 -0
  55. package/dist/api/comms-models.js +86 -0
  56. package/dist/api/comms-models.js.map +1 -0
  57. package/dist/api/flight-sources.d.ts +143 -0
  58. package/dist/api/flight-sources.d.ts.map +1 -0
  59. package/dist/api/flight-sources.js +76 -0
  60. package/dist/api/flight-sources.js.map +1 -0
  61. package/dist/api/flight-tags.d.ts +52 -0
  62. package/dist/api/flight-tags.d.ts.map +1 -0
  63. package/dist/api/flight-tags.js +43 -0
  64. package/dist/api/flight-tags.js.map +1 -0
  65. package/dist/api/index.d.ts +13 -2
  66. package/dist/api/index.d.ts.map +1 -1
  67. package/dist/api/index.js +11 -0
  68. package/dist/api/index.js.map +1 -1
  69. package/dist/api/modes.d.ts +1067 -0
  70. package/dist/api/modes.d.ts.map +1 -0
  71. package/dist/api/modes.js +73 -0
  72. package/dist/api/modes.js.map +1 -0
  73. package/dist/api/pilots.d.ts +656 -0
  74. package/dist/api/pilots.d.ts.map +1 -0
  75. package/dist/api/pilots.js +90 -0
  76. package/dist/api/pilots.js.map +1 -0
  77. package/dist/api/planning-events.d.ts +27 -0
  78. package/dist/api/planning-events.d.ts.map +1 -0
  79. package/dist/api/planning-events.js +38 -0
  80. package/dist/api/planning-events.js.map +1 -0
  81. package/dist/api/planning-resources.d.ts +83 -0
  82. package/dist/api/planning-resources.d.ts.map +1 -0
  83. package/dist/api/planning-resources.js +42 -0
  84. package/dist/api/planning-resources.js.map +1 -0
  85. package/dist/api/prediction-models.d.ts +1031 -0
  86. package/dist/api/prediction-models.d.ts.map +1 -0
  87. package/dist/api/prediction-models.js +77 -0
  88. package/dist/api/prediction-models.js.map +1 -0
  89. package/dist/api/slots.d.ts +32 -2
  90. package/dist/api/slots.d.ts.map +1 -1
  91. package/dist/api/stock-bodies.d.ts +4 -3
  92. package/dist/api/stock-bodies.d.ts.map +1 -1
  93. package/dist/api/stock-bodies.js +6 -19
  94. package/dist/api/stock-bodies.js.map +1 -1
  95. package/dist/api/theme.d.ts +453 -6
  96. package/dist/api/theme.d.ts.map +1 -1
  97. package/dist/api/types.d.ts +146 -11
  98. package/dist/api/types.d.ts.map +1 -1
  99. package/dist/api/wait-ends.d.ts +215 -0
  100. package/dist/api/wait-ends.d.ts.map +1 -0
  101. package/dist/api/wait-ends.js +78 -0
  102. package/dist/api/wait-ends.js.map +1 -0
  103. package/dist/command-delay.d.ts +2 -0
  104. package/dist/command-delay.d.ts.map +1 -1
  105. package/dist/command-delay.js.map +1 -1
  106. package/dist/commands.d.ts +1 -1
  107. package/dist/commands.d.ts.map +1 -1
  108. package/dist/compat-versions.d.ts.map +1 -1
  109. package/dist/compat-versions.js +1 -1
  110. package/dist/compat-versions.js.map +1 -1
  111. package/dist/contract-tags.d.ts.map +1 -1
  112. package/dist/contract-tags.js +1 -0
  113. package/dist/contract-tags.js.map +1 -1
  114. package/dist/delay-roles.d.ts +43 -0
  115. package/dist/delay-roles.d.ts.map +1 -1
  116. package/dist/delay-roles.js +58 -0
  117. package/dist/delay-roles.js.map +1 -1
  118. package/dist/event-timeline.d.ts.map +1 -1
  119. package/dist/event-timeline.js +14 -3
  120. package/dist/event-timeline.js.map +1 -1
  121. package/dist/flight/types.d.ts +30 -0
  122. package/dist/flight/types.d.ts.map +1 -1
  123. package/dist/flight/types.js.map +1 -1
  124. package/dist/frames/index.d.ts +2 -1
  125. package/dist/frames/index.d.ts.map +1 -1
  126. package/dist/frames/index.js +2 -1
  127. package/dist/frames/index.js.map +1 -1
  128. package/dist/index.d.ts +11 -7
  129. package/dist/index.d.ts.map +1 -1
  130. package/dist/index.js +12 -12
  131. package/dist/index.js.map +1 -1
  132. package/dist/maths/index.d.ts +16 -0
  133. package/dist/maths/index.d.ts.map +1 -0
  134. package/dist/maths/index.js +16 -0
  135. package/dist/maths/index.js.map +1 -0
  136. package/dist/reading.d.ts +61 -2
  137. package/dist/reading.d.ts.map +1 -1
  138. package/dist/reading.js +29 -0
  139. package/dist/reading.js.map +1 -1
  140. package/dist/reads-index.json +955 -86
  141. package/dist/registry/index.d.ts +14 -0
  142. package/dist/registry/index.d.ts.map +1 -1
  143. package/dist/registry/index.js +14 -0
  144. package/dist/registry/index.js.map +1 -1
  145. package/dist/runtime-topic-registry.d.ts.map +1 -1
  146. package/dist/runtime-topic-registry.js +11 -0
  147. package/dist/runtime-topic-registry.js.map +1 -1
  148. package/dist/spine/__fixtures__/stock-catalogue.d.ts +4 -0
  149. package/dist/spine/__fixtures__/stock-catalogue.d.ts.map +1 -0
  150. package/dist/spine/__fixtures__/stock-catalogue.js +29 -0
  151. package/dist/spine/__fixtures__/stock-catalogue.js.map +1 -0
  152. package/dist/spine/body-derivations.d.ts +21 -0
  153. package/dist/spine/body-derivations.d.ts.map +1 -1
  154. package/dist/spine/body-derivations.js +34 -1
  155. package/dist/spine/body-derivations.js.map +1 -1
  156. package/dist/spine/body-ephemeris.d.ts +152 -0
  157. package/dist/spine/body-ephemeris.d.ts.map +1 -0
  158. package/dist/spine/body-ephemeris.js +579 -0
  159. package/dist/spine/body-ephemeris.js.map +1 -0
  160. package/dist/spine/body-orbit-curve.d.ts +19 -0
  161. package/dist/spine/body-orbit-curve.d.ts.map +1 -0
  162. package/dist/spine/body-orbit-curve.js +53 -0
  163. package/dist/spine/body-orbit-curve.js.map +1 -0
  164. package/dist/spine/body-pose.d.ts +21 -0
  165. package/dist/spine/body-pose.d.ts.map +1 -1
  166. package/dist/spine/body-pose.js +98 -31
  167. package/dist/spine/body-pose.js.map +1 -1
  168. package/dist/spine/capability-lock.d.ts +5 -1
  169. package/dist/spine/capability-lock.d.ts.map +1 -1
  170. package/dist/spine/capability-lock.js +9 -1
  171. package/dist/spine/capability-lock.js.map +1 -1
  172. package/dist/spine/catalogue-elements.d.ts +1 -1
  173. package/dist/spine/catalogue-elements.d.ts.map +1 -1
  174. package/dist/spine/catalogue-elements.js +10 -5
  175. package/dist/spine/catalogue-elements.js.map +1 -1
  176. package/dist/spine/celestial-facts.d.ts +27 -1
  177. package/dist/spine/celestial-facts.d.ts.map +1 -1
  178. package/dist/spine/celestial-facts.js +37 -2
  179. package/dist/spine/celestial-facts.js.map +1 -1
  180. package/dist/spine/client-reading.d.ts +3 -3
  181. package/dist/spine/client-reading.d.ts.map +1 -1
  182. package/dist/spine/client-reading.js +9 -1
  183. package/dist/spine/client-reading.js.map +1 -1
  184. package/dist/spine/client-timeline.js +7 -4
  185. package/dist/spine/client-timeline.js.map +1 -1
  186. package/dist/spine/client.d.ts +43 -11
  187. package/dist/spine/client.d.ts.map +1 -1
  188. package/dist/spine/client.js +221 -40
  189. package/dist/spine/client.js.map +1 -1
  190. package/dist/spine/comms-path-geometry.d.ts +4 -4
  191. package/dist/spine/comms-path-geometry.js +5 -5
  192. package/dist/spine/comms-path-geometry.js.map +1 -1
  193. package/dist/spine/context.d.ts +7 -0
  194. package/dist/spine/context.d.ts.map +1 -1
  195. package/dist/spine/context.js +35 -6
  196. package/dist/spine/context.js.map +1 -1
  197. package/dist/spine/core-reckoners.d.ts +5 -0
  198. package/dist/spine/core-reckoners.d.ts.map +1 -1
  199. package/dist/spine/core-reckoners.js +5 -959
  200. package/dist/spine/core-reckoners.js.map +1 -1
  201. package/dist/spine/delay-estimate.js +2 -2
  202. package/dist/spine/delay-estimate.js.map +1 -1
  203. package/dist/spine/elements-from-state.d.ts +22 -0
  204. package/dist/spine/elements-from-state.d.ts.map +1 -0
  205. package/dist/spine/elements-from-state.js +97 -0
  206. package/dist/spine/elements-from-state.js.map +1 -0
  207. package/dist/spine/hermite.d.ts +9 -0
  208. package/dist/spine/hermite.d.ts.map +1 -0
  209. package/dist/spine/hermite.js +34 -0
  210. package/dist/spine/hermite.js.map +1 -0
  211. package/dist/spine/impact-point.d.ts +33 -0
  212. package/dist/spine/impact-point.d.ts.map +1 -1
  213. package/dist/spine/impact-point.js +157 -45
  214. package/dist/spine/impact-point.js.map +1 -1
  215. package/dist/spine/index.d.ts +17 -1
  216. package/dist/spine/index.d.ts.map +1 -1
  217. package/dist/spine/index.js +17 -1
  218. package/dist/spine/index.js.map +1 -1
  219. package/dist/spine/kepler-reckoning.d.ts.map +1 -1
  220. package/dist/spine/kepler-reckoning.js +4 -3
  221. package/dist/spine/kepler-reckoning.js.map +1 -1
  222. package/dist/spine/kepler.d.ts +2 -0
  223. package/dist/spine/kepler.d.ts.map +1 -1
  224. package/dist/spine/kepler.js +2 -0
  225. package/dist/spine/kepler.js.map +1 -1
  226. package/dist/spine/live-run-reckoners.d.ts +6 -0
  227. package/dist/spine/live-run-reckoners.d.ts.map +1 -0
  228. package/dist/spine/live-run-reckoners.js +596 -0
  229. package/dist/spine/live-run-reckoners.js.map +1 -0
  230. package/dist/spine/live-run-relay.d.ts +160 -0
  231. package/dist/spine/live-run-relay.d.ts.map +1 -0
  232. package/dist/spine/live-run-relay.js +292 -0
  233. package/dist/spine/live-run-relay.js.map +1 -0
  234. package/dist/spine/live-run.d.ts +185 -0
  235. package/dist/spine/live-run.d.ts.map +1 -0
  236. package/dist/spine/live-run.js +69 -0
  237. package/dist/spine/live-run.js.map +1 -0
  238. package/dist/spine/lock-scope.d.ts +7 -0
  239. package/dist/spine/lock-scope.d.ts.map +1 -1
  240. package/dist/spine/lock-scope.js +12 -1
  241. package/dist/spine/lock-scope.js.map +1 -1
  242. package/dist/spine/mode-command-gate.d.ts +16 -0
  243. package/dist/spine/mode-command-gate.d.ts.map +1 -0
  244. package/dist/spine/mode-command-gate.js +43 -0
  245. package/dist/spine/mode-command-gate.js.map +1 -0
  246. package/dist/spine/mode-view.d.ts +38 -0
  247. package/dist/spine/mode-view.d.ts.map +1 -0
  248. package/dist/spine/mode-view.js +335 -0
  249. package/dist/spine/mode-view.js.map +1 -0
  250. package/dist/spine/orbit-patches.d.ts +12 -0
  251. package/dist/spine/orbit-patches.d.ts.map +1 -1
  252. package/dist/spine/orbit-patches.js +12 -0
  253. package/dist/spine/orbit-patches.js.map +1 -1
  254. package/dist/spine/orbit-speed.d.ts +20 -0
  255. package/dist/spine/orbit-speed.d.ts.map +1 -0
  256. package/dist/spine/orbit-speed.js +29 -0
  257. package/dist/spine/orbit-speed.js.map +1 -0
  258. package/dist/spine/orbit-states.d.ts +54 -0
  259. package/dist/spine/orbit-states.d.ts.map +1 -0
  260. package/dist/spine/orbit-states.js +251 -0
  261. package/dist/spine/orbit-states.js.map +1 -0
  262. package/dist/spine/orbit-trajectory.d.ts +40 -4
  263. package/dist/spine/orbit-trajectory.d.ts.map +1 -1
  264. package/dist/spine/orbit-trajectory.js +82 -44
  265. package/dist/spine/orbit-trajectory.js.map +1 -1
  266. package/dist/spine/orbital-solve.d.ts +79 -9
  267. package/dist/spine/orbital-solve.d.ts.map +1 -1
  268. package/dist/spine/orbital-solve.js +157 -59
  269. package/dist/spine/orbital-solve.js.map +1 -1
  270. package/dist/spine/overlay-context.d.ts +105 -0
  271. package/dist/spine/overlay-context.d.ts.map +1 -0
  272. package/dist/spine/overlay-context.js +34 -0
  273. package/dist/spine/overlay-context.js.map +1 -0
  274. package/dist/spine/own-craft-vantage.js +6 -3
  275. package/dist/spine/own-craft-vantage.js.map +1 -1
  276. package/dist/spine/patch-chain.d.ts +33 -4
  277. package/dist/spine/patch-chain.d.ts.map +1 -1
  278. package/dist/spine/patch-chain.js +26 -6
  279. package/dist/spine/patch-chain.js.map +1 -1
  280. package/dist/spine/path-source-state.d.ts +243 -0
  281. package/dist/spine/path-source-state.d.ts.map +1 -0
  282. package/dist/spine/path-source-state.js +75 -0
  283. package/dist/spine/path-source-state.js.map +1 -0
  284. package/dist/spine/path-source.d.ts +18 -0
  285. package/dist/spine/path-source.d.ts.map +1 -0
  286. package/dist/spine/path-source.js +23 -0
  287. package/dist/spine/path-source.js.map +1 -0
  288. package/dist/spine/phase-angle.d.ts.map +1 -1
  289. package/dist/spine/phase-angle.js +1 -10
  290. package/dist/spine/phase-angle.js.map +1 -1
  291. package/dist/spine/plan.d.ts +11 -0
  292. package/dist/spine/plan.d.ts.map +1 -0
  293. package/dist/spine/plan.js +85 -0
  294. package/dist/spine/plan.js.map +1 -0
  295. package/dist/spine/pressure-profile.d.ts +38 -0
  296. package/dist/spine/pressure-profile.d.ts.map +1 -0
  297. package/dist/spine/pressure-profile.js +43 -0
  298. package/dist/spine/pressure-profile.js.map +1 -0
  299. package/dist/spine/provider-arc.d.ts +75 -0
  300. package/dist/spine/provider-arc.d.ts.map +1 -0
  301. package/dist/spine/provider-arc.js +187 -0
  302. package/dist/spine/provider-arc.js.map +1 -0
  303. package/dist/spine/provider-declines.d.ts +10 -0
  304. package/dist/spine/provider-declines.d.ts.map +1 -0
  305. package/dist/spine/provider-declines.js +35 -0
  306. package/dist/spine/provider-declines.js.map +1 -0
  307. package/dist/spine/provider-orbit-solver.d.ts +27 -0
  308. package/dist/spine/provider-orbit-solver.d.ts.map +1 -0
  309. package/dist/spine/provider-orbit-solver.js +55 -0
  310. package/dist/spine/provider-orbit-solver.js.map +1 -0
  311. package/dist/spine/provider-patches.d.ts +32 -0
  312. package/dist/spine/provider-patches.d.ts.map +1 -0
  313. package/dist/spine/provider-patches.js +119 -0
  314. package/dist/spine/provider-patches.js.map +1 -0
  315. package/dist/spine/reference-frame.d.ts +19 -0
  316. package/dist/spine/reference-frame.d.ts.map +1 -1
  317. package/dist/spine/reference-frame.js +55 -22
  318. package/dist/spine/reference-frame.js.map +1 -1
  319. package/dist/spine/replay-recorder.d.ts +11 -1
  320. package/dist/spine/replay-recorder.d.ts.map +1 -1
  321. package/dist/spine/replay-recorder.js +21 -0
  322. package/dist/spine/replay-recorder.js.map +1 -1
  323. package/dist/spine/replay-session.d.ts +5 -21
  324. package/dist/spine/replay-session.d.ts.map +1 -1
  325. package/dist/spine/replay-session.js +7 -31
  326. package/dist/spine/replay-session.js.map +1 -1
  327. package/dist/spine/replay-transport.d.ts +0 -1
  328. package/dist/spine/replay-transport.d.ts.map +1 -1
  329. package/dist/spine/replay-transport.js +32 -15
  330. package/dist/spine/replay-transport.js.map +1 -1
  331. package/dist/spine/screen-mode.d.ts +50 -0
  332. package/dist/spine/screen-mode.d.ts.map +1 -0
  333. package/dist/spine/screen-mode.js +121 -0
  334. package/dist/spine/screen-mode.js.map +1 -0
  335. package/dist/spine/screen.d.ts +14 -0
  336. package/dist/spine/screen.d.ts.map +1 -1
  337. package/dist/spine/screen.js +16 -0
  338. package/dist/spine/screen.js.map +1 -1
  339. package/dist/spine/slot-ids.d.ts +1 -1
  340. package/dist/spine/slot-ids.d.ts.map +1 -1
  341. package/dist/spine/slot-ids.js +11 -0
  342. package/dist/spine/slot-ids.js.map +1 -1
  343. package/dist/spine/soi-exit.d.ts +8 -0
  344. package/dist/spine/soi-exit.d.ts.map +1 -0
  345. package/dist/spine/soi-exit.js +33 -0
  346. package/dist/spine/soi-exit.js.map +1 -0
  347. package/dist/spine/state-at-epoch.d.ts +31 -0
  348. package/dist/spine/state-at-epoch.d.ts.map +1 -0
  349. package/dist/spine/state-at-epoch.js +44 -0
  350. package/dist/spine/state-at-epoch.js.map +1 -0
  351. package/dist/spine/telemetry-overlay.d.ts +15 -0
  352. package/dist/spine/telemetry-overlay.d.ts.map +1 -0
  353. package/dist/spine/telemetry-overlay.js +20 -0
  354. package/dist/spine/telemetry-overlay.js.map +1 -0
  355. package/dist/spine/timeline-store.d.ts +58 -0
  356. package/dist/spine/timeline-store.d.ts.map +1 -1
  357. package/dist/spine/timeline-store.js +144 -12
  358. package/dist/spine/timeline-store.js.map +1 -1
  359. package/dist/spine/uplink-health.d.ts +8 -0
  360. package/dist/spine/uplink-health.d.ts.map +1 -1
  361. package/dist/spine/uplink-health.js +1 -0
  362. package/dist/spine/uplink-health.js.map +1 -1
  363. package/dist/spine/use-command.d.ts.map +1 -1
  364. package/dist/spine/use-command.js +26 -4
  365. package/dist/spine/use-command.js.map +1 -1
  366. package/dist/spine/use-events.d.ts +29 -0
  367. package/dist/spine/use-events.d.ts.map +1 -0
  368. package/dist/spine/use-events.js +57 -0
  369. package/dist/spine/use-events.js.map +1 -0
  370. package/dist/spine/use-orbit-solve-at.d.ts +19 -0
  371. package/dist/spine/use-orbit-solve-at.d.ts.map +1 -0
  372. package/dist/spine/use-orbit-solve-at.js +50 -0
  373. package/dist/spine/use-orbit-solve-at.js.map +1 -0
  374. package/dist/spine/use-orbit-trajectory.d.ts.map +1 -1
  375. package/dist/spine/use-orbit-trajectory.js +261 -17
  376. package/dist/spine/use-orbit-trajectory.js.map +1 -1
  377. package/dist/spine/use-patch-chain.d.ts +4 -0
  378. package/dist/spine/use-patch-chain.d.ts.map +1 -1
  379. package/dist/spine/use-patch-chain.js +73 -5
  380. package/dist/spine/use-patch-chain.js.map +1 -1
  381. package/dist/spine/use-phase-angle.d.ts.map +1 -1
  382. package/dist/spine/use-phase-angle.js +81 -20
  383. package/dist/spine/use-phase-angle.js.map +1 -1
  384. package/dist/spine/use-processor.d.ts +1 -1
  385. package/dist/spine/use-processor.d.ts.map +1 -1
  386. package/dist/spine/use-processor.js +24 -2
  387. package/dist/spine/use-processor.js.map +1 -1
  388. package/dist/spine/use-stream.d.ts.map +1 -1
  389. package/dist/spine/use-stream.js +3 -3
  390. package/dist/spine/use-stream.js.map +1 -1
  391. package/dist/spine/use-telemetry.d.ts.map +1 -1
  392. package/dist/spine/use-telemetry.js +2 -3
  393. package/dist/spine/use-telemetry.js.map +1 -1
  394. package/dist/spine/vector-parts.d.ts +11 -0
  395. package/dist/spine/vector-parts.d.ts.map +1 -0
  396. package/dist/spine/vector-parts.js +19 -0
  397. package/dist/spine/vector-parts.js.map +1 -0
  398. package/dist/spine/vector.d.ts +38 -0
  399. package/dist/spine/vector.d.ts.map +1 -0
  400. package/dist/spine/vector.js +53 -0
  401. package/dist/spine/vector.js.map +1 -0
  402. package/dist/testing/body-ephemeris-stand-in.d.ts +14 -0
  403. package/dist/testing/body-ephemeris-stand-in.d.ts.map +1 -0
  404. package/dist/testing/body-ephemeris-stand-in.js +39 -0
  405. package/dist/testing/body-ephemeris-stand-in.js.map +1 -0
  406. package/dist/testing/index.d.ts +13 -1
  407. package/dist/testing/index.d.ts.map +1 -1
  408. package/dist/testing/index.js +13 -1
  409. package/dist/testing/index.js.map +1 -1
  410. package/dist/testing/legacy-orbit-solve.d.ts +18 -0
  411. package/dist/testing/legacy-orbit-solve.d.ts.map +1 -0
  412. package/dist/testing/legacy-orbit-solve.js +29 -0
  413. package/dist/testing/legacy-orbit-solve.js.map +1 -0
  414. package/dist/{spine/powered-reckoning.d.ts → testing/legacy-powered-reckoning.d.ts} +3 -14
  415. package/dist/testing/legacy-powered-reckoning.d.ts.map +1 -0
  416. package/dist/{spine/powered-reckoning.js → testing/legacy-powered-reckoning.js} +5 -106
  417. package/dist/testing/legacy-powered-reckoning.js.map +1 -0
  418. package/dist/testing/legacy-reckoners.d.ts +78 -0
  419. package/dist/testing/legacy-reckoners.d.ts.map +1 -0
  420. package/dist/testing/legacy-reckoners.js +729 -0
  421. package/dist/testing/legacy-reckoners.js.map +1 -0
  422. package/dist/{spine/target-range-reckoning.d.ts → testing/legacy-target-range-reckoning.d.ts} +4 -4
  423. package/dist/testing/legacy-target-range-reckoning.d.ts.map +1 -0
  424. package/dist/{spine/target-range-reckoning.js → testing/legacy-target-range-reckoning.js} +3 -3
  425. package/dist/testing/legacy-target-range-reckoning.js.map +1 -0
  426. package/dist/testing/orbit-live-run-stand-in.d.ts +23 -0
  427. package/dist/testing/orbit-live-run-stand-in.d.ts.map +1 -0
  428. package/dist/testing/orbit-live-run-stand-in.js +33 -0
  429. package/dist/testing/orbit-live-run-stand-in.js.map +1 -0
  430. package/dist/testing/path-source-stand-in.d.ts +15 -0
  431. package/dist/testing/path-source-stand-in.d.ts.map +1 -0
  432. package/dist/testing/path-source-stand-in.js +90 -0
  433. package/dist/testing/path-source-stand-in.js.map +1 -0
  434. package/dist/testing/recorded-live-run.d.ts +19 -0
  435. package/dist/testing/recorded-live-run.d.ts.map +1 -0
  436. package/dist/testing/recorded-live-run.js +23 -0
  437. package/dist/testing/recorded-live-run.js.map +1 -0
  438. package/dist/testing/render.d.ts +1 -1
  439. package/dist/testing/render.js +3 -3
  440. package/dist/testing/render.js.map +1 -1
  441. package/dist/testing/stream-fixture.d.ts +6 -0
  442. package/dist/testing/stream-fixture.d.ts.map +1 -1
  443. package/dist/testing/stream-fixture.js +7 -0
  444. package/dist/testing/stream-fixture.js.map +1 -1
  445. package/dist/testing/theme.d.ts +195 -8
  446. package/dist/testing/theme.d.ts.map +1 -1
  447. package/dist/testing/theme.js +35 -8
  448. package/dist/testing/theme.js.map +1 -1
  449. package/dist/topics.d.ts +1 -1
  450. package/dist/topics.d.ts.map +1 -1
  451. package/dist/unit-system/definitions.d.ts +14 -0
  452. package/dist/unit-system/definitions.d.ts.map +1 -1
  453. package/dist/unit-system/definitions.js +11 -0
  454. package/dist/unit-system/definitions.js.map +1 -1
  455. package/dist/unit-system/registry.d.ts.map +1 -1
  456. package/dist/unit-system/registry.js +20 -0
  457. package/dist/unit-system/registry.js.map +1 -1
  458. package/dist/uplink-load.d.ts +6 -0
  459. package/dist/uplink-load.d.ts.map +1 -1
  460. package/dist/uplink-load.js.map +1 -1
  461. package/dist/uplink-manifest.d.ts +20 -1
  462. package/dist/uplink-manifest.d.ts.map +1 -1
  463. package/dist/uplink-manifest.js +11 -2
  464. package/dist/uplink-manifest.js.map +1 -1
  465. package/package.json +7 -2
  466. package/src/__generated__/command-map.ts +97 -0
  467. package/src/__generated__/contract.ts +2374 -120
  468. package/src/__generated__/delay-roles.ts +8 -0
  469. package/src/__generated__/error-codes.ts +6 -7
  470. package/src/__generated__/frames.ts +36 -0
  471. package/src/__generated__/reckonability.ts +3 -2
  472. package/src/__generated__/sample-kinds.ts +9 -0
  473. package/src/__generated__/test-theme.ts +172 -2
  474. package/src/__generated__/topic-map.ts +37 -1
  475. package/src/__generated__/units.json +749 -14
  476. package/src/__generated__/units.ts +759 -7
  477. package/src/api/aero-models.ts +273 -0
  478. package/src/api/biome-knowledge.ts +125 -0
  479. package/src/api/bodies.ts +2 -0
  480. package/src/api/comms-models.ts +356 -0
  481. package/src/api/flight-sources.ts +219 -0
  482. package/src/api/flight-tags.ts +80 -0
  483. package/src/api/index.ts +197 -0
  484. package/src/api/modes.ts +1178 -0
  485. package/src/api/pilots.ts +759 -0
  486. package/src/api/planning-events.ts +66 -0
  487. package/src/api/planning-resources.ts +122 -0
  488. package/src/api/prediction-models.ts +1127 -0
  489. package/src/api/slots.ts +28 -2
  490. package/src/api/stock-bodies.ts +6 -20
  491. package/src/api/theme.ts +470 -6
  492. package/src/api/types.ts +153 -11
  493. package/src/api/wait-ends.ts +300 -0
  494. package/src/command-delay.ts +2 -0
  495. package/src/compat-versions.ts +1 -1
  496. package/src/contract-tags.ts +1 -0
  497. package/src/delay-roles.ts +74 -0
  498. package/src/event-timeline.ts +12 -3
  499. package/src/flight/types.ts +19 -0
  500. package/src/frames/index.ts +2 -0
  501. package/src/index.ts +43 -18
  502. package/src/maths/index.ts +32 -0
  503. package/src/reading.ts +77 -1
  504. package/src/registry/index.ts +23 -1
  505. package/src/runtime-topic-registry.ts +11 -0
  506. package/src/spine/__fixtures__/late-first-state-descent.json +504 -0
  507. package/src/spine/__fixtures__/n-body-bodies.json +1607 -0
  508. package/src/spine/__fixtures__/stock-catalogue.ts +29 -0
  509. package/src/spine/body-derivations.ts +45 -1
  510. package/src/spine/body-ephemeris.ts +828 -0
  511. package/src/spine/body-orbit-curve.ts +72 -0
  512. package/src/spine/body-pose.ts +129 -28
  513. package/src/spine/capability-lock.ts +13 -1
  514. package/src/spine/catalogue-elements.ts +14 -6
  515. package/src/spine/celestial-facts.ts +65 -3
  516. package/src/spine/client-reading.ts +12 -0
  517. package/src/spine/client-timeline.ts +7 -7
  518. package/src/spine/client.ts +228 -39
  519. package/src/spine/comms-path-geometry.ts +5 -5
  520. package/src/spine/context.tsx +35 -6
  521. package/src/spine/core-reckoners.ts +5 -1192
  522. package/src/spine/delay-estimate.ts +2 -2
  523. package/src/spine/elements-from-state.ts +127 -0
  524. package/src/spine/hermite.ts +53 -0
  525. package/src/spine/impact-point.ts +188 -55
  526. package/src/spine/index.ts +17 -1
  527. package/src/spine/kepler-reckoning.ts +4 -3
  528. package/src/spine/kepler.ts +2 -0
  529. package/src/spine/live-run-reckoners.ts +682 -0
  530. package/src/spine/live-run-relay.ts +484 -0
  531. package/src/spine/live-run.ts +234 -0
  532. package/src/spine/lock-scope.ts +15 -1
  533. package/src/spine/mode-command-gate.ts +45 -0
  534. package/src/spine/mode-view.ts +413 -0
  535. package/src/spine/orbit-patches.ts +12 -0
  536. package/src/spine/orbit-speed.ts +31 -0
  537. package/src/spine/orbit-states.ts +346 -0
  538. package/src/spine/orbit-trajectory.ts +123 -49
  539. package/src/spine/orbital-solve.ts +224 -88
  540. package/src/spine/overlay-context.ts +136 -0
  541. package/src/spine/own-craft-vantage.tsx +9 -3
  542. package/src/spine/patch-chain.ts +55 -6
  543. package/src/spine/path-source-state.ts +285 -0
  544. package/src/spine/path-source.ts +34 -0
  545. package/src/spine/phase-angle.ts +1 -12
  546. package/src/spine/plan.ts +98 -0
  547. package/src/spine/pressure-profile.ts +58 -0
  548. package/src/spine/provider-arc.ts +245 -0
  549. package/src/spine/provider-declines.ts +40 -0
  550. package/src/spine/provider-orbit-solver.ts +67 -0
  551. package/src/spine/provider-patches.ts +145 -0
  552. package/src/spine/reference-frame.ts +64 -28
  553. package/src/spine/replay-recorder.ts +21 -1
  554. package/src/spine/replay-session.tsx +7 -47
  555. package/src/spine/replay-transport.ts +33 -19
  556. package/src/spine/screen-mode.ts +158 -0
  557. package/src/spine/screen.tsx +29 -0
  558. package/src/spine/slot-ids.ts +11 -0
  559. package/src/spine/soi-exit.ts +37 -0
  560. package/src/spine/state-at-epoch.ts +51 -0
  561. package/src/spine/telemetry-overlay.tsx +55 -0
  562. package/src/spine/timeline-store.ts +207 -8
  563. package/src/spine/uplink-health.ts +9 -0
  564. package/src/spine/use-command.ts +29 -4
  565. package/src/spine/use-events.ts +88 -0
  566. package/src/spine/use-orbit-solve-at.ts +62 -0
  567. package/src/spine/use-orbit-trajectory.ts +342 -15
  568. package/src/spine/use-patch-chain.ts +106 -11
  569. package/src/spine/use-phase-angle.ts +117 -21
  570. package/src/spine/use-processor.ts +28 -3
  571. package/src/spine/use-stream.ts +3 -6
  572. package/src/spine/use-telemetry.ts +2 -6
  573. package/src/spine/vector-parts.ts +23 -0
  574. package/src/spine/vector.ts +59 -0
  575. package/src/testing/body-ephemeris-stand-in.ts +53 -0
  576. package/src/testing/index.ts +14 -1
  577. package/src/testing/legacy-orbit-solve.ts +56 -0
  578. package/src/{spine/powered-reckoning.ts → testing/legacy-powered-reckoning.ts} +13 -131
  579. package/src/testing/legacy-reckoners.ts +954 -0
  580. package/src/{spine/target-range-reckoning.ts → testing/legacy-target-range-reckoning.ts} +5 -5
  581. package/src/testing/orbit-live-run-stand-in.ts +45 -0
  582. package/src/testing/path-source-stand-in.ts +110 -0
  583. package/src/testing/recorded-live-run.ts +23 -0
  584. package/src/testing/render.tsx +3 -3
  585. package/src/testing/stream-fixture.tsx +13 -0
  586. package/src/testing/theme.ts +37 -8
  587. package/src/unit-system/definitions.ts +11 -0
  588. package/src/unit-system/registry.ts +21 -0
  589. package/src/uplink-load.ts +6 -0
  590. package/src/uplink-manifest.ts +34 -3
  591. package/dist/spine/powered-reckoning.d.ts.map +0 -1
  592. package/dist/spine/powered-reckoning.js.map +0 -1
  593. package/dist/spine/replay-session-controller.d.ts +0 -73
  594. package/dist/spine/replay-session-controller.d.ts.map +0 -1
  595. package/dist/spine/replay-session-controller.js +0 -253
  596. package/dist/spine/replay-session-controller.js.map +0 -1
  597. package/dist/spine/target-range-reckoning.d.ts.map +0 -1
  598. package/dist/spine/target-range-reckoning.js.map +0 -1
  599. package/src/spine/replay-session-controller.ts +0 -317
@@ -98,12 +98,12 @@ export interface BodyStatesRequest {
98
98
  */
99
99
  uts: Value<"ut">[];
100
100
  /**
101
- * Whether this caller accepts a result past the span the provider vouches for.
102
- * Only `PropagationCertification.Unbounded` is accepted.
101
+ * Which answer this caller wants. `PropagationCertification.Unbounded` is the
102
+ * provider's analytic answer at any instant.
103
+ * `PropagationCertification.CertifiedOnly` is the provider's accurate answer,
104
+ * and is refused when the provider cannot give one.
103
105
  *
104
- * `PropagationCertification.Unspecified` is refused rather than defaulted, and
105
- * so is `PropagationCertification.CertifiedOnly`, because the request carries
106
- * instants with no origin to measure a span from.
106
+ * `PropagationCertification.Unspecified` is refused rather than defaulted.
107
107
  */
108
108
  certification: PropagationCertification;
109
109
  }
@@ -140,6 +140,18 @@ export interface BodyStatesReply {
140
140
  */
141
141
  refusal?: string | null;
142
142
  /**
143
+ * True on a refusal that asking again shortly will answer, because the
144
+ * provider is still working the states out.
145
+ */
146
+ stillWorking: boolean;
147
+ /**
148
+ * On a refusal given because an instant asked is before the earliest one the
149
+ * provider holds for this body, that earliest instant: a request whose
150
+ * instants all fall at or after it is answered. Null on every other refusal
151
+ * and on a solved reply.
152
+ */
153
+ knownFromUt?: Value<"ut"> | null;
154
+ /**
143
155
  * A refusal carrying `why`, with `BodyStatesReply.states` empty: there is no
144
156
  * partial reply.
145
157
  */
@@ -169,6 +181,13 @@ export interface BodyState {
169
181
  vy: Value<"m/s">;
170
182
  /** Velocity along the frame's Z (up) axis, m/s, relative to the centre body. */
171
183
  vz: Value<"m/s">;
184
+ /**
185
+ * How the body placed is turned at this instant, as the unit quaternion [x, y,
186
+ * z, w] that carries a direction fixed to the body into the axes of a frame
187
+ * centred on it, as IBodyOrientationProvider.BodyOrientation gives it. Null
188
+ * where the propagation provider does not model the body's turning.
189
+ */
190
+ orientation?: number[] | null;
172
191
  }
173
192
  /**
174
193
  * Activate a strategy at a chosen commitment. Takes the strategy's stable id
@@ -782,6 +801,55 @@ export interface CareerContractParameter {
782
801
  * `null` when the milestone has no altitude, never 0.
783
802
  */
784
803
  targetAltitude?: Value<"m"> | null;
804
+ /**
805
+ * The game's own class name for this objective (`ReachAltitudeEnvelope`,
806
+ * `EnterOrbit`, `LandOnBody`, `ProgressTrackingParameter` and so on), which
807
+ * says what kind of thing it asks for. Useful for telling a flight objective
808
+ * from one about a crew, a part or a build. `null` when the capture carried
809
+ * none.
810
+ */
811
+ parameterType?: string | null;
812
+ /**
813
+ * The body this objective is about, by name, for the types that name one
814
+ * (reaching, entering the sphere of influence of, orbiting, landing on or
815
+ * planting a flag on a body). `null` for an objective that names none.
816
+ */
817
+ targetBody?: string | null;
818
+ /**
819
+ * The vessel situation this objective asks for, by the game's own name for it
820
+ * (`LANDED`, `SPLASHED`, `PRELAUNCH`, `FLYING`, `SUB_ORBITAL`, `ORBITING`,
821
+ * `ESCAPING`, `DOCKED`). `null` when it asks for none.
822
+ */
823
+ situation?: string | null;
824
+ /**
825
+ * What a destination objective asks the vessel to do at
826
+ * `CareerContractParameter.targetBody`, by the flight log's own name for it
827
+ * (`Flyby`, `Orbit`, `Land`, `Escape` and so on). `null` for any other
828
+ * objective.
829
+ */
830
+ reach?: string | null;
831
+ /**
832
+ * The lowest altitude above sea level this objective accepts, from the
833
+ * objective's own limits. `null` when it sets no lower altitude limit, never
834
+ * 0.
835
+ */
836
+ requiredMinAltitude?: Value<"m"> | null;
837
+ /**
838
+ * The highest altitude above sea level this objective accepts. `null` when it
839
+ * sets no upper altitude limit.
840
+ */
841
+ requiredMaxAltitude?: Value<"m"> | null;
842
+ /**
843
+ * The lowest speed this objective accepts, the game's speed over the surface
844
+ * or through the orbit as the objective measures it. `null` when it sets no
845
+ * lower speed limit.
846
+ */
847
+ requiredMinSpeed?: Value<"m/s"> | null;
848
+ /**
849
+ * The highest speed this objective accepts. `null` when it sets no upper speed
850
+ * limit.
851
+ */
852
+ requiredMaxSpeed?: Value<"m/s"> | null;
785
853
  }
786
854
  /**
787
855
  * Strategies sub-group of `CareerStatus`. Both lists are always present
@@ -2368,19 +2436,20 @@ export declare enum CommsHopKind {
2368
2436
  * client-side), and the other RealAntennas per-hop facts ride
2369
2437
  * `CommsHop.extensions` under `"realantennas"`.
2370
2438
  *
2371
- * A ground station carries its own name in `CommsHop.from` and `CommsHop.to`,
2372
- * not a shared "home" label, and an install with RealAntennas can have a dozen
2373
- * of them. Two consecutive samples that each show a one-hop direct link, one
2374
- * to Kourou and one to Canberra, are a handoff between stations, not one
2375
- * station whose range changed.
2439
+ * A ground station is named in `CommsHop.from` and `CommsHop.to` by its centre
2440
+ * id without `"ground:"`, not by a shared "home" label, and an install with
2441
+ * RealAntennas can have a dozen of them. Two consecutive samples that each
2442
+ * show a one-hop direct link, one to Kourou and one to Canberra, are a handoff
2443
+ * between stations, not one station whose range changed.
2376
2444
  *
2377
2445
  * @category Comms
2378
2446
  */
2379
2447
  export interface CommsHop {
2380
2448
  /**
2381
2449
  * The node id at the end of the hop nearer the vessel, in the same id space as
2382
- * `CommsNetworkNode.id`: a vessel's persistent id for a craft, the station's
2383
- * own name for a ground station.
2450
+ * `CommsNetworkNode.id`: a vessel's persistent id for a craft, and for a
2451
+ * ground station its centre id without `"ground:"`, so prefixing it with
2452
+ * `"ground:"` gives its id on `commandCentre.roster`.
2384
2453
  */
2385
2454
  from: string;
2386
2455
  /**
@@ -2482,9 +2551,9 @@ export interface CommsPath {
2482
2551
  export interface CommsNetworkNode {
2483
2552
  /**
2484
2553
  * A unique, stable join key in the same id space `CommsHop.from` and
2485
- * `CommsHop.to` use: a vessel's persistent id for a craft, the station's own
2486
- * name for a ground station. Never a vessel's display name, which two craft
2487
- * can share.
2554
+ * `CommsHop.to` use: a vessel's persistent id for a craft, and for a ground
2555
+ * station its centre id without `"ground:"`. Never a display name, which can
2556
+ * be localised and which two craft or two stations can share.
2488
2557
  */
2489
2558
  id: string;
2490
2559
  /**
@@ -2616,18 +2685,18 @@ export interface CommsDelay {
2616
2685
  * nothing is measurable, 0 for a measured or applied zero; this type's summary
2617
2686
  * says which case is which.
2618
2687
  *
2619
- * **Reckoning.** Between samples the value is carried forward by re-measuring
2620
- * only the route's first hop, the one with the craft on one end: `(route -
2621
- * firstHop + |craft - peer|) / c`. The other hops join ground stations and
2622
- * relays that barely move against each other in that time, so their lengths
2623
- * are kept as measured. The craft is propagated on `@vessel.orbit`, and its
2624
- * peer is placed from `@commandCentre.roster`, whose body-fixed latitude and
2625
- * longitude need the rotation phase on `@trackingStation.bodies`.
2626
- *
2627
- * A first hop that ends at a relay places the relay from its entry on
2628
- * `@trackingStation.catalog`: the orbit the command centre last heard for it,
2629
- * about the body whose gravitational parameter `@trackingStation.bodies`
2630
- * carries.
2688
+ * **Reckoning.** Between samples the value is modelled by the live run's pass
2689
+ * over the route home: at each instant the run is flown, the route is the one
2690
+ * the comms model picks among the links the contact plan has open
2691
+ * (`@comms.contacts`), or the shortest where the model states no figure to
2692
+ * pick by, between the craft and a ground station (`@comms.groundStations`),
2693
+ * each end placed where the run, the provider's body turning and the relays'
2694
+ * catalogued orbits (`@trackingStation.catalog`) put it, and the delay is that
2695
+ * route's length over `CommsOcclusion.signalSpeedMetersPerSecond`
2696
+ * (`@comms.occlusion`). A relay handover inside the run is a change in the
2697
+ * value at the sample where the run finds the new route. The value is not
2698
+ * known where no link is open, where the craft burns off the orbit the plan
2699
+ * holds it on, and where any end of a link cannot be placed.
2631
2700
  *
2632
2701
  * `CommsDelay.source` is an input because two of its members are a zero that
2633
2702
  * does not mean "no distance": delay switched off, or a save with no comms
@@ -2774,6 +2843,15 @@ export interface CommsContactPair {
2774
2843
  */
2775
2844
  noReachReason?: string;
2776
2845
  /**
2846
+ * The stretches, in time order, in which the pair's link model cannot say
2847
+ * whether the two are in contact, such as while a dish is aimed at a craft the
2848
+ * plan does not carry. Such a stretch is neither contact nor no contact, and
2849
+ * no window covers any of it. Absent when every moment is known. Useful for
2850
+ * showing the operator where the prediction does not know, rather than a gap
2851
+ * that reads as out of contact.
2852
+ */
2853
+ notKnown?: CommsNotKnownSpan[];
2854
+ /**
2777
2855
  * True while either end was last heard of with its orbit still changing. It is
2778
2856
  * reckoned on the orbit it reported mid-burn, which it has since left, so
2779
2857
  * these windows are a rough guide until its next report.
@@ -2781,6 +2859,21 @@ export interface CommsContactPair {
2781
2859
  lowConfidence: boolean;
2782
2860
  }
2783
2861
  /**
2862
+ * One stretch of a pair's plan in which its link model cannot say whether the
2863
+ * pair is in contact. Part of `CommsContactPair`.
2864
+ *
2865
+ * @category Comms
2866
+ */
2867
+ export interface CommsNotKnownSpan {
2868
+ /**
2869
+ * When the stretch begins, or `null` when it is already under way at the
2870
+ * plan's start.
2871
+ */
2872
+ fromUt?: Value<"ut"> | null;
2873
+ /** When the stretch ends, or `null` when it lasts to the pair's horizon. */
2874
+ toUt?: Value<"ut"> | null;
2875
+ }
2876
+ /**
2784
2877
  * One predicted stretch of contact.
2785
2878
  *
2786
2879
  * @category Comms
@@ -2863,6 +2956,89 @@ export interface CommsDegrade {
2863
2956
  level?: Value<"ratio"> | null;
2864
2957
  }
2865
2958
  /**
2959
+ * How far the craft in the editor would reach one node of the network: a
2960
+ * ground station, as the comms model in use limits a link between the two by
2961
+ * range.
2962
+ *
2963
+ * @category Comms
2964
+ */
2965
+ export interface CommsEditorLinkNode {
2966
+ /** The node's join key, the `CommsGroundStation.id` of the station it is. */
2967
+ id: string;
2968
+ /** The node's name as the player reads it in game. */
2969
+ name: string;
2970
+ /**
2971
+ * The greatest separation, in metres, at which the craft and the node carry a
2972
+ * link. `0` means nothing reaches, for a craft with no antenna say. `null`
2973
+ * means the model states no range limit for the pair, and a consumer predicts
2974
+ * from line of sight alone.
2975
+ */
2976
+ reachMeters?: Value<"m"> | null;
2977
+ /**
2978
+ * The longest range of the craft's relay antenna against the station's relay
2979
+ * antenna, from the game's range model, in metres. Null where either has no
2980
+ * power.
2981
+ */
2982
+ relayRelayRange?: Value<"m"> | null;
2983
+ /**
2984
+ * The longest range of the craft's relay antenna against the station's
2985
+ * transmit antenna, in metres. Null where either has no power.
2986
+ */
2987
+ craftRelayStationTransmitRange?: Value<"m"> | null;
2988
+ /**
2989
+ * The longest range of the station's relay antenna against the craft's
2990
+ * transmit antenna, in metres. Null where either has no power.
2991
+ */
2992
+ stationRelayCraftTransmitRange?: Value<"m"> | null;
2993
+ }
2994
+ /**
2995
+ * The `comms.editorLinks` payload: how far the craft open in the vehicle
2996
+ * editor would reach each ground station, from its antennas and the comms
2997
+ * model in use. Absent while no editor is open or no comms model is in use.
2998
+ * Useful for predicting when the craft on the pad can and cannot be reached
2999
+ * once it flies.
3000
+ *
3001
+ * Every antenna is taken as extended: a deployable antenna starts retracted in
3002
+ * flight, and the figures here are those once it is out.
3003
+ *
3004
+ * Held at the home command, like the craft it describes, so each command
3005
+ * centre reads it after its own delay home.
3006
+ *
3007
+ * @category Comms
3008
+ */
3009
+ export interface CommsEditorLinks {
3010
+ /**
3011
+ * The speed signals travel at under the game's delay setting, in metres per
3012
+ * second: the speed of light scaled by the setting. `null` when signal delay
3013
+ * is switched off. One-way delay over a distance is that distance divided by
3014
+ * this.
3015
+ */
3016
+ signalSpeed?: Value<"m/s"> | null;
3017
+ /**
3018
+ * The craft's reach to every ground station, in a stable order. Empty when the
3019
+ * model reads none, never null.
3020
+ */
3021
+ nodes: CommsEditorLinkNode[];
3022
+ /**
3023
+ * The craft's ranges to every other craft of the save that carries an antenna
3024
+ * the game links through, in a stable order: each `Id` is that craft's
3025
+ * `"vessel:<guid>"`, and the three ranges read the way a station's do, with
3026
+ * the other craft in the station's place. Empty where the save holds none or
3027
+ * the model reads none, never null.
3028
+ */
3029
+ craft: CommsEditorLinkNode[];
3030
+ /**
3031
+ * The range curve of the antenna that sets the craft's relay range. Null where
3032
+ * there is none.
3033
+ */
3034
+ relayCurve?: CommsStockCurveKey[] | null;
3035
+ /**
3036
+ * The range curve of the antenna that sets the craft's transmit range. Null
3037
+ * where there is none.
3038
+ */
3039
+ transmitCurve?: CommsStockCurveKey[] | null;
3040
+ }
3041
+ /**
2866
3042
  * One ground station of the comms network: where it stands on its body, under
2867
3043
  * the name the route and the network use for it.
2868
3044
  *
@@ -2892,6 +3068,13 @@ export interface CommsGroundStation {
2892
3068
  */
2893
3069
  longitude?: Value<"°"> | null;
2894
3070
  /**
3071
+ * The station's height above its body's reference sphere, the sphere of the
3072
+ * body's `radius`, as the game places the station's network node. Null when
3073
+ * the game gave none, which is not a height of zero: a line of sight to a
3074
+ * station cannot be worked out without it.
3075
+ */
3076
+ altitude?: Value<"m"> | null;
3077
+ /**
2895
3078
  * Per-station facts the comms mod in use reports beyond this shape, keyed by
2896
3079
  * that mod's name. A comms mod that knows more about its stations, such as
2897
3080
  * their radio equipment, fills its own namespace here, typed by that mod's
@@ -3234,10 +3417,14 @@ export interface CommsOcclusionBody {
3234
3417
  * Not delayed by signal delay: it is not an observation of the vessel but the
3235
3418
  * solar system's geometry and the rule the comms model in use applies to it.
3236
3419
  *
3420
+ * Also carries `CommsOcclusion.signalSpeedMetersPerSecond`, the game-wide
3421
+ * speed signals travel at, which a prediction needs to turn a route's length
3422
+ * into a delay.
3423
+ *
3237
3424
  * Effectively static within a session: the body set does not change and the
3238
- * multipliers change only if the player edits the difficulty settings. An
3239
- * unchanged declaration is not re-sent, so the channel costs a keyframe and
3240
- * nothing else.
3425
+ * multipliers and the signal speed change only if the player edits the
3426
+ * difficulty settings. An unchanged declaration is not re-sent, so the channel
3427
+ * costs a keyframe and nothing else.
3241
3428
  *
3242
3429
  * @category Comms
3243
3430
  */
@@ -3253,6 +3440,14 @@ export interface CommsOcclusion {
3253
3440
  */
3254
3441
  modelName: string;
3255
3442
  /**
3443
+ * The speed signals travel at under the game's delay setting, in metres per
3444
+ * second: the speed of light scaled by the setting. `null` when signal delay
3445
+ * is switched off, which is a signal that is not delayed and not a speed that
3446
+ * is unknown. One-way delay over a distance is that distance divided by this.
3447
+ * Useful for predicting the delay along a route that has not been taken yet.
3448
+ */
3449
+ signalSpeedMetersPerSecond?: Value<"m/s"> | null;
3450
+ /**
3256
3451
  * Every known celestial body, with the model applied. Empty before the game
3257
3452
  * has populated a body list, never null.
3258
3453
  */
@@ -3332,6 +3527,146 @@ export interface CommsRouteHold {
3332
3527
  departUt: Value<"ut">;
3333
3528
  }
3334
3529
  /**
3530
+ * One key of an antenna's range curve, as the game's own curve holds it with
3531
+ * its tangents worked out. The curve gives a link's strength from its
3532
+ * normalized range: `time` is the normalized range, 0 at the edge of range and
3533
+ * 1 at no separation, and `value` the strength there, 0 to 1.
3534
+ *
3535
+ * @category Comms
3536
+ */
3537
+ export interface CommsStockCurveKey {
3538
+ /** The normalized range this key sits at. */
3539
+ time: Value<"1">;
3540
+ /** The strength at this key. */
3541
+ value: Value<"ratio">;
3542
+ /**
3543
+ * The slope the curve arrives at this key with, in strength per unit of
3544
+ * normalized range.
3545
+ */
3546
+ inTangent: Value<"1">;
3547
+ /**
3548
+ * The slope the curve leaves this key with, in strength per unit of normalized
3549
+ * range.
3550
+ */
3551
+ outTangent: Value<"1">;
3552
+ }
3553
+ /**
3554
+ * What the game's range model says of one pair of nodes: the longest range of
3555
+ * each way the pair's antennas can be matched, and the scale on the pair's
3556
+ * signal.
3557
+ *
3558
+ * @category Comms
3559
+ */
3560
+ export interface CommsStockPair {
3561
+ /** The pair's first node, the lesser of the two ids in ordinal order. */
3562
+ first: string;
3563
+ /** The pair's second node. */
3564
+ second: string;
3565
+ /**
3566
+ * The longest range of the first node's relay antenna against the second's, in
3567
+ * metres. Null where either has no relay power, so that matching cannot carry.
3568
+ */
3569
+ relayRelayRange?: Value<"m"> | null;
3570
+ /**
3571
+ * The longest range of the first node's relay antenna against the second's
3572
+ * transmit antenna, in metres. Null where either has no power in that
3573
+ * matching.
3574
+ */
3575
+ firstRelaySecondTransmitRange?: Value<"m"> | null;
3576
+ /**
3577
+ * The longest range of the second node's relay antenna against the first's
3578
+ * transmit antenna, in metres. Null where either has no power in that
3579
+ * matching.
3580
+ */
3581
+ secondRelayFirstTransmitRange?: Value<"m"> | null;
3582
+ /** The scale the game puts on the pair's signal, 1 where nothing modifies it. */
3583
+ signalMultiplier: Value<"ratio">;
3584
+ }
3585
+ /**
3586
+ * One node of the network with the figures of its antennas that a link's
3587
+ * strength reads.
3588
+ *
3589
+ * @category Comms
3590
+ */
3591
+ export interface CommsStockNode {
3592
+ /** The node's id, as the network's pairs name it. */
3593
+ id: string;
3594
+ /**
3595
+ * The distance the game adds to the node's separation from any other, in
3596
+ * metres.
3597
+ */
3598
+ distanceOffset: Value<"m">;
3599
+ /**
3600
+ * The range curve of the node's relay antenna. Null where the node has no
3601
+ * relay antenna.
3602
+ */
3603
+ relayCurve?: CommsStockCurveKey[] | null;
3604
+ /**
3605
+ * The range curve of the node's transmit antenna. Null where the node has no
3606
+ * transmit antenna.
3607
+ */
3608
+ transmitCurve?: CommsStockCurveKey[] | null;
3609
+ /**
3610
+ * The node's links in the order the game holds them, by place: each entry is
3611
+ * the id of the node at the link's other end, or empty for a place holding no
3612
+ * link. The game's route search takes a node's links in this order. Null where
3613
+ * the order could not be read, which is not an empty list: a node with no
3614
+ * links has an empty list.
3615
+ */
3616
+ linkOrder?: string[] | null;
3617
+ /**
3618
+ * The places of `linkOrder` holding no link, in the order the game gives them
3619
+ * to the links the node forms next, the first to the next link. A link formed
3620
+ * when none is left takes a new place after the last. Null where `linkOrder`
3621
+ * is null.
3622
+ */
3623
+ freePlaces?: Value<"count">[] | null;
3624
+ }
3625
+ /**
3626
+ * A body as the game's network blocks a radio path with it: an ellipsoid about
3627
+ * the body's centre.
3628
+ *
3629
+ * @category Comms
3630
+ */
3631
+ export interface CommsStockOccluder {
3632
+ /** The body, by the index the propagation provider names it by. */
3633
+ bodyIndex: Value<"count">;
3634
+ /** The ellipsoid's semi-axis along the body's x axis, in metres. */
3635
+ radiusX: Value<"m">;
3636
+ /** The ellipsoid's semi-axis along the body's y axis, in metres. */
3637
+ radiusY: Value<"m">;
3638
+ /** The ellipsoid's semi-axis along the body's z axis, in metres. */
3639
+ radiusZ: Value<"m">;
3640
+ }
3641
+ /**
3642
+ * The `comms.stockModel` payload: everything a prediction needs to work out
3643
+ * the game's own link between any two nodes of its network at an instant it
3644
+ * has placed them for: each pair's longest ranges from the game's range model,
3645
+ * each node's range curves and distance offset, and the bodies that block a
3646
+ * path. Useful for predicting contact and signal strength of a flight, and so
3647
+ * which route home the game picks. Published only when the network, its
3648
+ * settings or a node's link order change, never as the craft move.
3649
+ *
3650
+ * @category Comms
3651
+ */
3652
+ export interface CommsStockModel {
3653
+ /**
3654
+ * Each pair of nodes the network considers, in a stable order. Empty, never
3655
+ * null.
3656
+ */
3657
+ pairs: CommsStockPair[];
3658
+ /** Each node's curves and offset, in a stable order. Empty, never null. */
3659
+ nodes: CommsStockNode[];
3660
+ /** Each body that blocks a radio path. Empty, never null. */
3661
+ occluders: CommsStockOccluder[];
3662
+ /**
3663
+ * The game time the nodes' link order was read at. The order has stood since
3664
+ * then: a link that forms or closes publishes the model again with a later
3665
+ * time. Null where no node states a link order.
3666
+ */
3667
+ linkOrderUt?: Value<"ut"> | null;
3668
+ }
3669
+ /**
3335
3670
  * The frame the game's own navigation view is expressed in, which is what the
3336
3671
  * player is looking at. A burn given relative to the control frame holds its
3337
3672
  * direction fixed against this frame.
@@ -3892,162 +4227,849 @@ export interface DataRateReport {
3892
4227
  topics: TopicDataRate[];
3893
4228
  }
3894
4229
  /**
3895
- * One Topic sample as the mod sends it: the Topic id, its payload, and the
3896
- * envelope `StreamData.meta` saying when the payload was true and when it
3897
- * arrived.
4230
+ * The craft open in the vehicle editor (the Vehicle Assembly Building or the
4231
+ * Spaceplane Hangar): its name, masses, centre of mass, the game's own
4232
+ * per-stage ΔV and the action groups its parts declare. A single object, or
4233
+ * `null` when no editor is open. Useful for any widget that judges a craft
4234
+ * before it is launched.
3898
4235
  *
3899
- * @category Stream messages
3900
- */
3901
- export interface StreamData<Payload> {
3902
- /** The frame type, always `"stream-data"`. */
3903
- type: "stream-data";
3904
- /** The Topic id this sample belongs to. */
3905
- topic: string;
3906
- /** The sample itself, in the Topic's own payload type. */
3907
- payload: Payload;
3908
- /** When the sample was true, when it arrived, and where it was observed from. */
3909
- meta: Meta;
3910
- /**
3911
- * The payload fields left out of this sample because they hold the same value
3912
- * as in the last sample of this Topic sent on this connection, such as the
3913
- * terrain grid on `vessel.landing` between the times it is retaken. A client
3914
- * keeps each one from that sample. Absent when nothing was left out; a field
3915
- * the sample holds as `null` is sent, never listed.
3916
- */
3917
- unchanged?: string[];
3918
- }
3919
- /**
3920
- * Something that happened to a subscription, sent on the Topic it happened to.
4236
+ * This is the craft as the player has built it so far and not a vessel: it has
4237
+ * no orbit, no position and no flight state, and nothing here is read from the
4238
+ * active vessel. Its parts are on `editor.parts`.
3921
4239
  *
3922
- * An event carries no payload of its own: `EventMsg.name` is the whole of what
3923
- * happened, and `EventMsg.meta` describes the delivery as it does on any other
3924
- * frame. The mod sends two names:
4240
+ * **Revision.** `EditorCraft.revision` moves once for each edit the player
4241
+ * makes, however many events the game raises for it. Anything derived from the
4242
+ * craft, such as a prediction, belongs with the revision it was derived from
4243
+ * and is stale once the revision moves. The sample is not sent on every frame:
4244
+ * it follows an edit, and the game's ΔV simulation finishing for that edit is
4245
+ * a second sample with the same revision.
3925
4246
  *
3926
- * - `subscribed` confirms a `subscribe`, once per subscribe. Wait for it
3927
- * rather than for the first `stream-data`: a channel with nothing to say yet
3928
- * sends the confirmation and then nothing. A `subscribe` to a channel
3929
- * nothing declares is answered with an `error` frame carrying `unknownTopic`
3930
- * and the topic instead
3931
- * - `timeline-reset` says the game quickloaded and time went backwards. It is
3932
- * sent for every Topic the connection holds, and anything built from frames
3933
- * before it should be discarded
4247
+ * Held at the home command, like `spaceCenter.savedShips`: the editor is a
4248
+ * screen of the game at the home command, so each command centre reads the
4249
+ * craft after its own delay home, and a blackout of the active vessel never
4250
+ * withholds it.
3934
4251
  *
3935
- * @category Stream messages
4252
+ * @category Editor
4253
+ * @categoryDescription Editor
4254
+ * The craft open in the vehicle editor, before it is a vessel: its masses, ΔV
4255
+ * and action groups, and its parts one at a time. Read here for anything that
4256
+ * judges or draws a craft that is still being built.
3936
4257
  */
3937
- export interface EventMsg {
3938
- /** The frame type, always `"event"`. */
3939
- type: "event";
3940
- /** The subscribed Topic the event happened to. */
3941
- topic: string;
3942
- /** What happened: `subscribed` or `timeline-reset`. */
3943
- name: string;
3944
- /** The delivery metadata, as on any other frame. */
3945
- meta: Meta;
4258
+ export interface EditorCraft {
3946
4259
  /**
3947
- * On `subscribed`, the most game time the Topic's channel lets pass between
3948
- * two samples before it sends one unconditionally, even when the value has not
3949
- * changed. A client judges a quiet change-driven Topic as overdue only once it
3950
- * has been silent longer than this. Absent when the channel declares no
3951
- * keyframe cadence, and on `timeline-reset`; absent means unknown, never zero.
4260
+ * Counts the edits the editor has reported since the game started, so it never
4261
+ * repeats and never goes down, including across leaving and re-entering the
4262
+ * editor. A sample whose revision equals the last one's describes the same
4263
+ * edit.
3952
4264
  */
3953
- keyframeIntervalUt?: number;
4265
+ revision: Value<"count">;
4266
+ /** The editor the craft is open in. */
4267
+ facility: KspEditorFacility;
3954
4268
  /**
3955
- * On `timeline-reset`, the latest game time from before the load that the new
3956
- * timeline still includes: a reading validated at or before it stands,
3957
- * anything after it is gone. Absent on a `timeline-reset` means the load kept
3958
- * no history at all (a different game was loaded). Always absent on
3959
- * `subscribed`.
4269
+ * The craft's name as the editor shows it. Empty for a craft that has not been
4270
+ * named.
3960
4271
  */
3961
- keptThroughUt?: number;
3962
- }
3963
- /**
3964
- * A command the client sends: the command id, its arguments, and a request id
3965
- * that the reply carries back.
3966
- *
3967
- * @category Stream messages
3968
- */
3969
- export interface CommandRequest<Args> {
3970
- /** The frame type, always `"command-request"`. */
3971
- type: "command-request";
3972
- /** An id the client chooses; the reply carries it back. */
3973
- requestId: string;
3974
- /** The command id, such as `vessel.control.setThrottle`. */
3975
- command: string;
4272
+ name: string;
4273
+ /** The craft's total mass with every resource as stocked (tonnes). */
4274
+ mass: Value<"t">;
4275
+ /** The craft's mass with every resource empty (tonnes). */
4276
+ dryMass: Value<"t">;
3976
4277
  /**
3977
- * Any text: the mod shows it back, unchanged, beside this command on
3978
- * `system.uplink.pending`, and never reads it otherwise. Send the command id
3979
- * if there is nothing better. When empty, show `CommandRequest.command`
3980
- * instead.
4278
+ * The centre of mass with every resource as stocked (metres), in the same
4279
+ * frame as the position of each part on `editor.parts`. `null` when the craft
4280
+ * has no mass.
3981
4281
  */
3982
- label: string;
4282
+ centreOfMass?: Vec3Of<"m"> | null;
3983
4283
  /**
3984
- * A channel to show beside this command on `system.uplink.pending`, unchanged;
3985
- * the mod never reads it otherwise. Send `""` if there is none.
4284
+ * Whether the game's ΔV simulation has finished for this edit. `false` means
4285
+ * `EditorCraft.stages` and `EditorCraft.deltaV` are not known yet, and does
4286
+ * not mean the craft has no ΔV.
3986
4287
  */
3987
- topic: string;
4288
+ dvReady: boolean;
3988
4289
  /**
3989
- * Per-call vantage override: the command centre id this command dispatches
3990
- * from, which decides its signal delay. Optional: null or empty uses the
3991
- * connection's own vantage (see `SetVantage`). A command about the space
3992
- * program rather than a craft (tech, strategy, contract) sends `"meta"`, which
3993
- * carries no delay whichever centre the operator has selected; sent from a
3994
- * centre instead, it rides that centre's delay to the home command, which is
3995
- * none for a ground station. `"active-craft"` dispatches from wherever the
3996
- * active craft stands at that moment, at no delay, and is refused with an
3997
- * `unknownVantage` error while there is no active craft. A centre that is not
3998
- * active is refused with an `unknownVantage` error.
4290
+ * The body the sea-level and current columns of `EditorCraft.stages` were
4291
+ * computed for: the one chosen in the game's ΔV app, which is not always the
4292
+ * home body. `null` when the game names none.
3999
4293
  */
4000
- vantage?: string;
4294
+ dvBody?: string | null;
4001
4295
  /**
4002
- * The vessel the operator was looking at when the command was pressed: the
4003
- * `vesselId` of the newest `vessel.identity` reading the client holds.
4004
- * Optional: null or empty states nothing and the command is not checked
4005
- * against it. A command for the active vessel is refused with `wrongState` at
4006
- * the press when the game's active vessel is not this one, because the
4007
- * operator's screen runs one signal delay behind the game and a switch inside
4008
- * that delay is not yet visible there. Commands that are not addressed to the
4009
- * active vessel ignore it.
4296
+ * The altitude above `EditorCraft.dvBody` the current column was computed for
4297
+ * (metres). `null` when the game gives none.
4010
4298
  */
4011
- seenVesselId?: string;
4299
+ dvAltitude?: Value<"m"> | null;
4012
4300
  /**
4013
- * The run of the mod the sending screen last heard from: the `Hello.bootId` it
4014
- * holds. Required. A delayed command or a scene change sent from another run,
4015
- * or with this empty, is refused with `undoneByLoad`; a command that is about
4016
- * the game rather than the flight, such as a pause, ignores it. A station
4017
- * forwarded through a host sends its own, not the host's.
4301
+ * The game's ΔV for each stage that produces any, in the row shape of
4302
+ * `dv.stages`. Empty while `EditorCraft.dvReady` is `false`.
4018
4303
  */
4019
- seenBootId: string;
4304
+ stages: StageDeltaVEntry[];
4020
4305
  /**
4021
- * The raw `Meta.timelineEpoch` the sending screen last received from the mod.
4022
- * A delayed command or a scene change sent from any other epoch is refused
4023
- * with `undoneByLoad`, because a game load replaced the timeline it was aimed
4024
- * at. Commands that ignore `CommandRequest.seenBootId` ignore this too.
4306
+ * The whole-craft ΔV rollup, in the shape of `dv.summary`. `null` while
4307
+ * `EditorCraft.dvReady` is `false`.
4025
4308
  */
4026
- seenEpoch: number;
4027
- /** The command's arguments, in the command's own argument type. */
4028
- args: Args;
4309
+ deltaV?: StageDeltaVSummary | null;
4029
4310
  /**
4030
- * When the client sent the command, in UT seconds (KSP universal time), the
4031
- * same base as `Meta.validAt`. Send 0 if you do not need it.
4032
- *
4033
- * The mod stamps the response's `Meta.deliveredAt` off its own clock, so a
4034
- * caller timing a round trip measures against its own clock rather than
4035
- * reading this back. The field is carried onto the response's `Meta.validAt`,
4036
- * which therefore reads 0 on a command response unless the client fills this
4037
- * in.
4311
+ * The action groups the parts declare, one entry per group with at least one
4312
+ * action bound to it, ordered by `EditorActionGroup.mask`. The same bindings
4313
+ * ride each part's `actionBindings` on `editor.parts`; this is the view from
4314
+ * the group. Empty when no action is bound.
4038
4315
  */
4039
- sentAt: number;
4316
+ actionGroups: EditorActionGroup[];
4317
+ /**
4318
+ * Every custom action group the craft's action-groups backend lists in the
4319
+ * editor, each with its 1-based index and name, in the shape of
4320
+ * `vessel.control.actionGroups` and with `ActionGroupState.state` always
4321
+ * `null` (nothing is engaged in a hangar). Stock lists none here and a backend
4322
+ * with more groups lists the ones it has assigned, up to 250, so a group above
4323
+ * 10 appears here and nowhere in `EditorCraft.actionGroups`, whose groups come
4324
+ * from the stock bitmask. `null` when no backend could be read, which does not
4325
+ * mean the craft has no groups. Useful for offering the operator every group a
4326
+ * plan can fire.
4327
+ */
4328
+ customGroups?: ActionGroupState[] | null;
4040
4329
  }
4041
4330
  /**
4042
- * Several commands the client sends as one message: they travel together,
4043
- * arrive whole or not at all, are refused together, and run in order within a
4044
- * single physics tick. Each member is an ordinary `CommandRequest` with its
4045
- * own `requestId`, and each is answered under that id as if it had been sent
4046
- * alone.
4331
+ * One action group on the editor craft and the part actions that fire with it,
4332
+ * in `EditorCraft.actionGroups`. Useful for showing the operator what a group
4333
+ * does before the craft flies.
4047
4334
  *
4048
- * Every member must be a delayed command addressed to the same craft and sent
4049
- * from the same command centre. A group that breaks either rule, or is empty,
4050
- * is refused whole. If any member is refused for any reason, none is sent.
4335
+ * @category Editor
4336
+ */
4337
+ export interface EditorActionGroup {
4338
+ /**
4339
+ * The `KSPActionGroup` member name (`"Custom01"`, `"Gear"`, `"Stage"` and so
4340
+ * on).
4341
+ */
4342
+ group: string;
4343
+ /**
4344
+ * The group's bit in `BaseAction.actionGroup`'s mask; `KspActionGroup` names
4345
+ * the bits.
4346
+ */
4347
+ mask: number;
4348
+ /** Every part action bound to this group, in part order. Never empty. */
4349
+ actions: EditorGroupAction[];
4350
+ }
4351
+ /**
4352
+ * One part action bound to an `EditorActionGroup`.
4353
+ *
4354
+ * @category Editor
4355
+ */
4356
+ export interface EditorGroupAction {
4357
+ /** The part's `Id` on `editor.parts` at the same revision. */
4358
+ partId: string;
4359
+ /** The action's label in the part's menu (`BaseAction.guiName`). */
4360
+ action: string;
4361
+ }
4362
+ /**
4363
+ * The parts of the craft open in the vehicle editor, one row per part, in the
4364
+ * row shape of `vessel.parts` so that anything which draws or counts the parts
4365
+ * of a flying vessel reads these the same way. A single object, or `null` when
4366
+ * no editor is open.
4367
+ *
4368
+ * Where a row field means something different on the editor floor it is stated
4369
+ * here: a part's `VesselPart.id` is its persistent id (an editor part has no
4370
+ * flight id until it is launched), and it is valid within one
4371
+ * `EditorParts.revision` only, since the game gives every part a new id when
4372
+ * an edit is undone or redone. Temperatures are `null` and no resource carries
4373
+ * a flow, because nothing runs in the editor. Resource amounts are what the
4374
+ * part is stocked with.
4375
+ *
4376
+ * Held at the home command, for the reason given on `editor.craft`.
4377
+ *
4378
+ * @category Editor
4379
+ */
4380
+ export interface EditorParts {
4381
+ /**
4382
+ * The `EditorCraft.revision` these parts belong to, so the two topics can be
4383
+ * joined without relying on which arrived first.
4384
+ */
4385
+ revision: Value<"count">;
4386
+ /**
4387
+ * Every part on the craft, root first, in the editor's part-list order. Never
4388
+ * `null`.
4389
+ */
4390
+ parts: VesselPart[];
4391
+ }
4392
+ /**
4393
+ * What a flight model needs of each part of the craft open in the vehicle
4394
+ * editor and is not already on `editor.parts`: how each part is turned, its
4395
+ * drag cube and centres, its attach nodes, and the figures of its engines,
4396
+ * lifting surfaces, reaction wheels, decouplers, launch clamps and parachutes.
4397
+ * A single object, or `null` when no editor is open. Useful for simulating the
4398
+ * craft's flight before it is launched.
4399
+ *
4400
+ * Keyed by `EditorPhysics.revision`, the revision of `editor.craft` and
4401
+ * `editor.parts` it was read at, and each row's `EditorPartPhysics.id` is the
4402
+ * part's `Id` on `editor.parts` at that revision.
4403
+ *
4404
+ * Held at the home command, for the reason given on `editor.craft`.
4405
+ *
4406
+ * @category Editor
4407
+ */
4408
+ export interface EditorPhysics {
4409
+ /** The `EditorCraft.revision` these figures belong to. */
4410
+ revision: Value<"count">;
4411
+ /**
4412
+ * The `Id` of the craft's root part, the part every other is positioned
4413
+ * against.
4414
+ */
4415
+ rootPartId: string;
4416
+ /**
4417
+ * The aerodynamics the game flies the craft with: `"stock"`, the id of the
4418
+ * mod's model when a mod replaces the game's own, or `"unmodelled"` when the
4419
+ * game's own drag does not act on the craft and no model stands in for it.
4420
+ */
4421
+ aerodynamics: string;
4422
+ /** One row per part of `editor.parts`, in the same order. */
4423
+ parts: EditorPartPhysics[];
4424
+ }
4425
+ /**
4426
+ * One part's figures for a flight model, in `EditorPhysics.parts`. Vectors
4427
+ * marked as in the part's frame are in the part's own axes; the part's place
4428
+ * in the craft is its `position` on `editor.parts` and its
4429
+ * `EditorPartPhysics.rotation`.
4430
+ *
4431
+ * @category Editor
4432
+ */
4433
+ export interface EditorPartPhysics {
4434
+ /** The part's `Id` on `editor.parts`. */
4435
+ id: string;
4436
+ /**
4437
+ * The turn of the part's own axes against the craft's frame, as a unit
4438
+ * quaternion `x, y, z, w`.
4439
+ */
4440
+ rotation: Value<"1">[];
4441
+ /**
4442
+ * Whether fuel flows across the part. `false` for a part such as a decoupler
4443
+ * that blocks it.
4444
+ */
4445
+ crossfeed: boolean;
4446
+ /** The part's `angularDrag`. */
4447
+ angularDrag: Value<"1">;
4448
+ /**
4449
+ * The speed the part can hit the ground at without being destroyed, the game's
4450
+ * `Part.crashTolerance`. A part that meets the ground faster than this is
4451
+ * lost. `null` when the capture carried none, never 0.
4452
+ */
4453
+ crashTolerance?: Value<"m/s"> | null;
4454
+ /** The part's `bodyLiftMultiplier`. */
4455
+ bodyLiftMultiplier: Value<"1">;
4456
+ /**
4457
+ * The part's centre of mass, as an offset from its origin (metres, in the
4458
+ * part's frame).
4459
+ */
4460
+ centreOfMassOffset: Vec3Of<"m">;
4461
+ /**
4462
+ * The part's centre of pressure, as an offset from its origin (metres, in the
4463
+ * part's frame).
4464
+ */
4465
+ centreOfPressureOffset: Vec3Of<"m">;
4466
+ /**
4467
+ * The part's centre of lift, as an offset from its origin (metres, in the
4468
+ * part's frame).
4469
+ */
4470
+ centreOfLiftOffset: Vec3Of<"m">;
4471
+ /**
4472
+ * The part's drag cube as the game weights it for the part as it stands.
4473
+ * `null` unless `EditorPartPhysics.dragModel` is `"cube"`.
4474
+ */
4475
+ dragCube?: EditorDragCube | null;
4476
+ /**
4477
+ * Where the part's drag comes from, and why `EditorPartPhysics.dragCube` is
4478
+ * absent when it is. `"cube"`: the weighted cube is on
4479
+ * `EditorPartPhysics.dragCube`. `"none"`: the game gives the part no drag of
4480
+ * its own (a strut, a fin whose drag is its lifting surface). `"procedural"`:
4481
+ * the game renders the part's cube while it flies, and has none to give in the
4482
+ * editor. `"unweighted"`: the part has cubes but none carries weight.
4483
+ * `"conic"`, `"cylindrical"` or `"spherical"`: the game computes the drag from
4484
+ * that shape and the part has no cube.
4485
+ */
4486
+ dragModel: string;
4487
+ /**
4488
+ * Each resource the part carries, with its density. The amounts are on
4489
+ * `editor.parts`.
4490
+ */
4491
+ resources: EditorResourceDensity[];
4492
+ /** The parts attached at this part's stack nodes. Empty when none is. */
4493
+ stackAttachments: EditorStackAttachment[];
4494
+ /** The part's engines, one per engine module. Empty for a part with none. */
4495
+ engines: EditorEngine[];
4496
+ /** The part's lifting surface, or `null` when it has none. */
4497
+ liftingSurface?: EditorLiftingSurface | null;
4498
+ /** The part's reaction wheel, or `null` when it has none. */
4499
+ reactionWheel?: EditorReactionWheel | null;
4500
+ /**
4501
+ * The part's reaction-control thrusters, one per RCS module. Empty for a part
4502
+ * with none.
4503
+ */
4504
+ rcs: EditorRcs[];
4505
+ /** The part's parachute, or `null` when it has none. */
4506
+ parachute?: EditorParachute | null;
4507
+ /** The part's wheel, or `null` when it has none. */
4508
+ wheel?: EditorWheel | null;
4509
+ /**
4510
+ * What the part draws and makes in electric charge, one entry per module that
4511
+ * does, at the rated figures of its config rather than what it does in the
4512
+ * editor, where nothing runs. Empty for a part with none.
4513
+ */
4514
+ power: EditorPowerFlow[];
4515
+ /** Whether the part separates the craft when its stage fires. */
4516
+ decoupler: boolean;
4517
+ /** Whether the part holds the craft on the pad until its stage fires. */
4518
+ launchClamp: boolean;
4519
+ }
4520
+ /**
4521
+ * A drag cube: the figures of its six faces in the game's order, +X, -X, +Y,
4522
+ * -Y, +Z, -Z.
4523
+ *
4524
+ * @category Editor
4525
+ */
4526
+ export interface EditorDragCube {
4527
+ /** The area of each face (m²). Always six. */
4528
+ area: Value<"m²">[];
4529
+ /** The drag coefficient of each face. Always six. */
4530
+ drag: Value<"1">[];
4531
+ /** The depth of each face (metres). Always six. */
4532
+ depth: Value<"m">[];
4533
+ }
4534
+ /**
4535
+ * One resource a part carries and how heavy a unit of it is.
4536
+ *
4537
+ * @category Editor
4538
+ */
4539
+ export interface EditorResourceDensity {
4540
+ /** The resource name, as on the part's `resources` on `editor.parts`. */
4541
+ name: string;
4542
+ /** The mass of one unit of the resource (tonnes). */
4543
+ density: Value<"t">;
4544
+ /**
4545
+ * The resource's name as the game shows it, in the game's language, such as
4546
+ * "Electric Charge" for `ElectricCharge`. `null` where the game gives none.
4547
+ */
4548
+ displayName?: string | null;
4549
+ }
4550
+ /**
4551
+ * A part attached at one of another part's stack nodes.
4552
+ *
4553
+ * @category Editor
4554
+ */
4555
+ export interface EditorStackAttachment {
4556
+ /** The attached part's `Id`. */
4557
+ partId: string;
4558
+ /** The node's outward direction, as a unit vector in the part's frame. */
4559
+ direction: Vec3Of<"1">;
4560
+ }
4561
+ /**
4562
+ * One engine module of a part.
4563
+ *
4564
+ * @category Editor
4565
+ */
4566
+ export interface EditorEngine {
4567
+ /** Thrust in vacuum at full throttle and a full limiter (kN). */
4568
+ maxThrust: Value<"kN">;
4569
+ /** The thrust limiter, 0 to 100. */
4570
+ thrustPercentage: Value<"%">;
4571
+ /** Whether the throttle cannot move it, as for a solid booster. */
4572
+ throttleLocked: boolean;
4573
+ /** The propellants it burns and their ratios. */
4574
+ propellants: EditorPropellant[];
4575
+ /**
4576
+ * Specific impulse against air pressure: the keys of the game's curve, with
4577
+ * the tangents it interpolates by.
4578
+ */
4579
+ ispCurve: EditorCurveKey[];
4580
+ /**
4581
+ * How far the gimbal turns the thrust each way (degrees). Zero for a fixed
4582
+ * engine.
4583
+ */
4584
+ gimbalRange: Value<"°">;
4585
+ /**
4586
+ * Where the thrust acts, the mean of the engine's thrust transforms (metres,
4587
+ * in the part's frame).
4588
+ */
4589
+ thrustPosition: Vec3Of<"m">;
4590
+ /** The way the thrust pushes the craft, as a unit vector in the part's frame. */
4591
+ thrustDirection: Vec3Of<"1">;
4592
+ /**
4593
+ * How an air-breathing engine's fuel flow scales with the air's density, as
4594
+ * the game's curve: the keys' `Time` is the density as a fraction of sea-level
4595
+ * air at Kerbin. Empty for an engine whose flow does not follow the air.
4596
+ */
4597
+ atmCurve: EditorCurveKey[];
4598
+ /**
4599
+ * How an air-breathing engine's fuel flow scales with the craft's speed, as
4600
+ * the game's curve: the keys' `Time` is the Mach number. Empty for an engine
4601
+ * whose flow does not follow speed.
4602
+ */
4603
+ velCurve: EditorCurveKey[];
4604
+ /**
4605
+ * How fast the engine's thrust follows a rising throttle, as the game's
4606
+ * `engineAccelerationSpeed` (the fraction of full throttle per second). `null`
4607
+ * for an engine that answers the throttle at once.
4608
+ */
4609
+ accelerationSpeed?: Value<"1"> | null;
4610
+ /**
4611
+ * How fast the engine's thrust follows a falling throttle, the counterpart of
4612
+ * `EditorEngine.accelerationSpeed`. `null` for an engine that answers the
4613
+ * throttle at once.
4614
+ */
4615
+ decelerationSpeed?: Value<"1"> | null;
4616
+ }
4617
+ /**
4618
+ * One propellant an engine burns.
4619
+ *
4620
+ * @category Editor
4621
+ */
4622
+ export interface EditorPropellant {
4623
+ /** The resource name. */
4624
+ name: string;
4625
+ /** The share of the mixture this propellant makes. */
4626
+ ratio: Value<"ratio">;
4627
+ }
4628
+ /**
4629
+ * One key of a game curve: the value at a point and the tangents to either
4630
+ * side.
4631
+ *
4632
+ * @category Editor
4633
+ */
4634
+ export interface EditorCurveKey {
4635
+ /**
4636
+ * The point on the curve's axis. For specific impulse, air pressure in
4637
+ * atmospheres.
4638
+ */
4639
+ time: Value<"1">;
4640
+ /** The curve's value at the point. For specific impulse, seconds. */
4641
+ value: Value<"1">;
4642
+ /** The slope arriving at the point. */
4643
+ inTangent: Value<"1">;
4644
+ /** The slope leaving the point. */
4645
+ outTangent: Value<"1">;
4646
+ }
4647
+ /**
4648
+ * A part's lifting surface, a wing or a control surface.
4649
+ *
4650
+ * @category Editor
4651
+ */
4652
+ export interface EditorLiftingSurface {
4653
+ /** The lift coefficient the game gives the surface (`deflectionLiftCoeff`). */
4654
+ deflectionLiftCoeff: Value<"1">;
4655
+ /**
4656
+ * The surface's normal, as a unit vector in the part's frame, with the
4657
+ * module's axis and sign applied.
4658
+ */
4659
+ normal: Vec3Of<"1">;
4660
+ /** Whether the surface makes its own drag in place of a drag cube. */
4661
+ useInternalDragModel: boolean;
4662
+ /**
4663
+ * How far a control surface deflects under control (degrees). `null` for a
4664
+ * fixed surface.
4665
+ */
4666
+ ctrlSurfaceRange?: Value<"°"> | null;
4667
+ /**
4668
+ * The share of a control surface's lift that turns with its deflection, 0 to 1
4669
+ * (`ctrlSurfaceArea`). `null` for a fixed surface.
4670
+ */
4671
+ ctrlSurfaceArea?: Value<"ratio"> | null;
4672
+ /**
4673
+ * Whether a control surface ignores pitch commands. `null` for a fixed
4674
+ * surface.
4675
+ */
4676
+ ignorePitch?: boolean | null;
4677
+ }
4678
+ /**
4679
+ * A part's wheel: where it meets the ground and what it can brake with.
4680
+ *
4681
+ * @category Editor
4682
+ */
4683
+ export interface EditorWheel {
4684
+ /** The wheel's radius (metres). */
4685
+ radius: Value<"m">;
4686
+ /** The wheel's centre, in the part's frame (metres). */
4687
+ centre: Vec3Of<"m">;
4688
+ /** The brake torque at full brakes, or `null` for a wheel with no brake (kN·m). */
4689
+ brakeTorque?: Value<"kN"> | null;
4690
+ /**
4691
+ * Whether the wheel is down in the editor. A retractable wheel that is up
4692
+ * carries no weight.
4693
+ */
4694
+ deployed: boolean;
4695
+ /**
4696
+ * The seconds a retractable wheel takes to deploy, or `null` for one that does
4697
+ * not retract or whose deployment could not be read (s).
4698
+ */
4699
+ deploySeconds?: Value<"s"> | null;
4700
+ /**
4701
+ * The seconds a retractable wheel takes to retract, or `null` for one that
4702
+ * does not retract or whose deployment could not be read (s).
4703
+ */
4704
+ retractSeconds?: Value<"s"> | null;
4705
+ }
4706
+ /**
4707
+ * A part's reaction wheel and the torque it gives about each axis.
4708
+ *
4709
+ * @category Editor
4710
+ */
4711
+ export interface EditorReactionWheel {
4712
+ /**
4713
+ * Pitch torque, the game's `PitchTorque`, in newton metres. The game states it
4714
+ * in kilonewton metres and the provider converts.
4715
+ */
4716
+ pitchTorque: Value<"N·m">;
4717
+ /** Yaw torque, in the same unit as `EditorReactionWheel.pitchTorque`. */
4718
+ yawTorque: Value<"N·m">;
4719
+ /** Roll torque, in the same unit as `EditorReactionWheel.pitchTorque`. */
4720
+ rollTorque: Value<"N·m">;
4721
+ }
4722
+ /**
4723
+ * One RCS module of a part: the thrusters it fires and what they burn.
4724
+ *
4725
+ * @category Editor
4726
+ */
4727
+ export interface EditorRcs {
4728
+ /** The thrust of one thruster at full power, the game's `thrusterPower` (kN). */
4729
+ thrusterPower: Value<"kN">;
4730
+ /** The thrust limiter, 0 to 100. */
4731
+ thrustPercentage: Value<"%">;
4732
+ /**
4733
+ * Whether a thruster that is asked for any share of its power above
4734
+ * `EditorRcs.fullThrustMin` fires at full power.
4735
+ */
4736
+ fullThrust: boolean;
4737
+ /**
4738
+ * The share of its power a thruster is asked for, from 0 to 1, from which it
4739
+ * fires at full power when `EditorRcs.fullThrust` is set.
4740
+ */
4741
+ fullThrustMin: Value<"1">;
4742
+ /** The propellants the thrusters burn and their ratios. */
4743
+ propellants: EditorPropellant[];
4744
+ /**
4745
+ * Specific impulse against air pressure: the keys of the game's curve, with
4746
+ * the tangents it interpolates by.
4747
+ */
4748
+ ispCurve: EditorCurveKey[];
4749
+ /**
4750
+ * The way each thruster pushes the craft, as unit vectors in the part's frame,
4751
+ * one per thruster.
4752
+ */
4753
+ thrusterDirections: Vec3[];
4754
+ }
4755
+ /**
4756
+ * A part's parachute.
4757
+ *
4758
+ * @category Editor
4759
+ */
4760
+ export interface EditorParachute {
4761
+ /** The lowest air pressure the canopy opens in (atmospheres). */
4762
+ minAirPressureToOpen: Value<"ratio">;
4763
+ /** The height above the ground the canopy opens fully at (metres). */
4764
+ deployAltitude: Value<"m">;
4765
+ /**
4766
+ * The part's drag cube with the canopy semi-deployed. `null` when the part has
4767
+ * none.
4768
+ */
4769
+ semiDeployed?: EditorDragCube | null;
4770
+ /**
4771
+ * The part's drag cube with the canopy fully deployed. `null` when the part
4772
+ * has none.
4773
+ */
4774
+ deployed?: EditorDragCube | null;
4775
+ }
4776
+ /**
4777
+ * One module of a part that draws or makes electric charge, at its rated
4778
+ * figure. Read from the module's config, so it is the same in the editor as in
4779
+ * flight. Useful for predicting the craft's charge over a flight. Used by the
4780
+ * flight prediction in planning mode.
4781
+ *
4782
+ * Only the modules named in `EditorPowerFlow.kind` are read. A solar panel's
4783
+ * temperature and age efficiency are not carried: the figure is the panel's
4784
+ * rate with both at 1.
4785
+ *
4786
+ * @category Editor
4787
+ */
4788
+ export interface EditorPowerFlow {
4789
+ /** The module's class name, for example `"ModuleCommand"`. */
4790
+ module: string;
4791
+ /**
4792
+ * What the module is. `"solarPanel"`, `"alternator"`, `"generator"` and
4793
+ * `"converter"` make charge (a converter or generator that also takes charge
4794
+ * in carries the net); `"command"`, `"reactionWheel"`, `"light"`, `"servo"` (a
4795
+ * robotic motor) and `"transmitter"` draw it. A converter's inputs other than
4796
+ * charge are not carried.
4797
+ */
4798
+ kind: string;
4799
+ /**
4800
+ * Charge per second at the module's rating: positive makes it, negative draws
4801
+ * it. A servo's is its draw at full motor output, as the game figures it from
4802
+ * the servo's base rate, motor output, speed and efficiency. A solar panel's
4803
+ * is its output facing the star head on at the distance where the sun curve
4804
+ * reads 1; a reaction wheel's is its draw under full steering demand; a
4805
+ * transmitter's is its draw while sending.
4806
+ */
4807
+ rate: Value<"units/s">;
4808
+ /**
4809
+ * Whether the module is running as the craft stands in the editor: a generator
4810
+ * that is always on, a panel that is out, a light that is lit.
4811
+ */
4812
+ onByDefault: boolean;
4813
+ /**
4814
+ * What the module's rate depends on. `"constant"`: the rate while it is on.
4815
+ * `"steering"`: the share of full steering demand. `"transmission"`: only
4816
+ * while data is sent. `"engine"`: while an engine on the craft is burning.
4817
+ * `"rotor"`: while the robotic rotor on the part turns, read at its rpm limit;
4818
+ * an alternator's output falls in proportion to the rotor's rpm below it.
4819
+ * `"servoMotion"`: only while a hinge, piston or rotation servo moves, at the
4820
+ * draw for its traverse velocity, the fastest it moves.
4821
+ */
4822
+ demand: string;
4823
+ /**
4824
+ * The panel's own figures. `null` unless `EditorPowerFlow.kind` is
4825
+ * `"solarPanel"`.
4826
+ */
4827
+ panel?: EditorSolarPanel | null;
4828
+ }
4829
+ /**
4830
+ * How a solar panel meets the light: which way it faces and how its output
4831
+ * falls off with distance from the star.
4832
+ *
4833
+ * @category Editor
4834
+ */
4835
+ export interface EditorSolarPanel {
4836
+ /**
4837
+ * `"flat"`: output follows the cosine of the angle between the star and
4838
+ * `EditorSolarPanel.normal`. `"cylindrical"`: output follows the sine of that
4839
+ * angle, taking `EditorSolarPanel.normal` as the cylinder's axis.
4840
+ * `"spherical"`: a fixed quarter of the rate, whichever way the craft turns.
4841
+ */
4842
+ shape: string;
4843
+ /**
4844
+ * Whether the panel turns to face the star by itself, so that its output does
4845
+ * not depend on how the craft is turned.
4846
+ */
4847
+ tracking: boolean;
4848
+ /**
4849
+ * The panel's face (or a cylindrical panel's axis) as a unit vector in the
4850
+ * part's frame.
4851
+ */
4852
+ normal: Vec3Of<"1">;
4853
+ /**
4854
+ * The output multiplier against distance from the star in metres, as the keys
4855
+ * of the game's curve. Empty when the panel has no curve, which is read as 1
4856
+ * everywhere.
4857
+ */
4858
+ sunCurve: EditorCurveKey[];
4859
+ }
4860
+ /**
4861
+ * The body the craft in the vehicle editor launches from and the site it
4862
+ * launches at: the body's size, gravity and spin, the air above the site, and
4863
+ * where the craft stands on the pad. A single object, or `null` when no editor
4864
+ * is open.
4865
+ *
4866
+ * Separate from `editor.physics` because it does not follow edits: it changes
4867
+ * when the launch site is changed, and the temperatures are as the game gives
4868
+ * them at the time they were read, so the table is read again each time the
4869
+ * site changes.
4870
+ *
4871
+ * Held at the home command, for the reason given on `editor.craft`.
4872
+ *
4873
+ * @category Editor
4874
+ */
4875
+ export interface EditorLaunch {
4876
+ /** The launch site's name as the game keys it. */
4877
+ siteName: string;
4878
+ /** The site's latitude on `EditorLaunch.bodyName` (degrees). */
4879
+ latitude: Value<"°">;
4880
+ /** The site's longitude on `EditorLaunch.bodyName` (degrees). */
4881
+ longitude: Value<"°">;
4882
+ /** The height of the site's pad above the body's datum (metres). */
4883
+ altitude: Value<"m">;
4884
+ /** The body the site is on. */
4885
+ bodyName: string;
4886
+ /** The body's air, or `null` for a body with none. */
4887
+ atmosphere?: EditorAtmosphere | null;
4888
+ /**
4889
+ * The compass heading a craft placed at the site points along, clockwise from
4890
+ * north (degrees). For a runway, the direction of take-off.
4891
+ */
4892
+ heading: Value<"°">;
4893
+ }
4894
+ /**
4895
+ * The air over a launch site, in `EditorLaunch.atmosphere`.
4896
+ *
4897
+ * @category Editor
4898
+ */
4899
+ export interface EditorAtmosphere {
4900
+ /** The height the air ends at (metres). */
4901
+ depth: Value<"m">;
4902
+ /** The air's molar mass (kg/mol). */
4903
+ molarMass: Value<"1">;
4904
+ /** The air's adiabatic index. */
4905
+ adiabaticIndex: Value<"1">;
4906
+ /**
4907
+ * The altitudes the pressure and temperature rows are read at, lowest first
4908
+ * (metres above the body's datum).
4909
+ */
4910
+ altitude: Value<"m">[];
4911
+ /** The air pressure at each altitude (kPa). */
4912
+ pressure: Value<"kPa">[];
4913
+ /** The air temperature at each altitude over the site as it is now (kelvin). */
4914
+ temperature: Value<"K">[];
4915
+ }
4916
+ /**
4917
+ * One Topic sample as the mod sends it: the Topic id, its payload, and the
4918
+ * envelope `StreamData.meta` saying when the payload was true and when it
4919
+ * arrived.
4920
+ *
4921
+ * @category Stream messages
4922
+ */
4923
+ export interface StreamData<Payload> {
4924
+ /** The frame type, always `"stream-data"`. */
4925
+ type: "stream-data";
4926
+ /** The Topic id this sample belongs to. */
4927
+ topic: string;
4928
+ /** The sample itself, in the Topic's own payload type. */
4929
+ payload: Payload;
4930
+ /** When the sample was true, when it arrived, and where it was observed from. */
4931
+ meta: Meta;
4932
+ /**
4933
+ * The payload fields left out of this sample because they hold the same value
4934
+ * as in the last sample of this Topic sent on this connection, such as the
4935
+ * terrain grid on `vessel.landing` between the times it is retaken. A client
4936
+ * keeps each one from that sample. Absent when nothing was left out; a field
4937
+ * the sample holds as `null` is sent, never listed.
4938
+ */
4939
+ unchanged?: string[];
4940
+ }
4941
+ /**
4942
+ * Something that happened to a subscription, sent on the Topic it happened to.
4943
+ *
4944
+ * An event carries no payload of its own: `EventMsg.name` is the whole of what
4945
+ * happened, and `EventMsg.meta` describes the delivery as it does on any other
4946
+ * frame. The mod sends two names:
4947
+ *
4948
+ * - `subscribed` confirms a `subscribe`, once per subscribe. Wait for it
4949
+ * rather than for the first `stream-data`: a channel with nothing to say yet
4950
+ * sends the confirmation and then nothing. A `subscribe` to a channel
4951
+ * nothing declares is answered with an `error` frame carrying `unknownTopic`
4952
+ * and the topic instead
4953
+ * - `timeline-reset` says the game quickloaded and time went backwards. It is
4954
+ * sent for every Topic the connection holds, and anything built from frames
4955
+ * before it should be discarded
4956
+ *
4957
+ * @category Stream messages
4958
+ */
4959
+ export interface EventMsg {
4960
+ /** The frame type, always `"event"`. */
4961
+ type: "event";
4962
+ /** The subscribed Topic the event happened to. */
4963
+ topic: string;
4964
+ /** What happened: `subscribed` or `timeline-reset`. */
4965
+ name: string;
4966
+ /** The delivery metadata, as on any other frame. */
4967
+ meta: Meta;
4968
+ /**
4969
+ * On `subscribed`, the most game time the Topic's channel lets pass between
4970
+ * two samples before it sends one unconditionally, even when the value has not
4971
+ * changed. A client judges a quiet change-driven Topic as overdue only once it
4972
+ * has been silent longer than this. Absent when the channel declares no
4973
+ * keyframe cadence, and on `timeline-reset`; absent means unknown, never zero.
4974
+ */
4975
+ keyframeIntervalUt?: number;
4976
+ /**
4977
+ * On `timeline-reset`, the latest game time from before the load that the new
4978
+ * timeline still includes: a reading validated at or before it stands,
4979
+ * anything after it is gone. Absent on a `timeline-reset` means the load kept
4980
+ * no history at all (a different game was loaded). Always absent on
4981
+ * `subscribed`.
4982
+ */
4983
+ keptThroughUt?: number;
4984
+ }
4985
+ /**
4986
+ * A command the client sends: the command id, its arguments, and a request id
4987
+ * that the reply carries back.
4988
+ *
4989
+ * @category Stream messages
4990
+ */
4991
+ export interface CommandRequest<Args> {
4992
+ /** The frame type, always `"command-request"`. */
4993
+ type: "command-request";
4994
+ /** An id the client chooses; the reply carries it back. */
4995
+ requestId: string;
4996
+ /** The command id, such as `vessel.control.setThrottle`. */
4997
+ command: string;
4998
+ /**
4999
+ * Any text: the mod shows it back, unchanged, beside this command on
5000
+ * `system.uplink.pending`, and never reads it otherwise. Send the command id
5001
+ * if there is nothing better. When empty, show `CommandRequest.command`
5002
+ * instead.
5003
+ */
5004
+ label: string;
5005
+ /**
5006
+ * A channel to show beside this command on `system.uplink.pending`, unchanged;
5007
+ * the mod never reads it otherwise. Send `""` if there is none.
5008
+ */
5009
+ topic: string;
5010
+ /**
5011
+ * Per-call vantage override: the command centre id this command dispatches
5012
+ * from, which decides its signal delay. Optional: null or empty uses the
5013
+ * connection's own vantage (see `SetVantage`). A command about the space
5014
+ * program rather than a craft (tech, strategy, contract) sends `"meta"`, which
5015
+ * carries no delay whichever centre the operator has selected; sent from a
5016
+ * centre instead, it rides that centre's delay to the home command, which is
5017
+ * none for a ground station. `"active-craft"` dispatches from wherever the
5018
+ * active craft stands at that moment, at no delay, and is refused with an
5019
+ * `unknownVantage` error while there is no active craft. A centre that is not
5020
+ * active is refused with an `unknownVantage` error.
5021
+ */
5022
+ vantage?: string;
5023
+ /**
5024
+ * The vessel the operator was looking at when the command was pressed: the
5025
+ * `vesselId` of the newest `vessel.identity` reading the client holds.
5026
+ * Optional: null or empty states nothing and the command is not checked
5027
+ * against it. A command for the active vessel is refused with `wrongState` at
5028
+ * the press when the game's active vessel is not this one, because the
5029
+ * operator's screen runs one signal delay behind the game and a switch inside
5030
+ * that delay is not yet visible there. Commands that are not addressed to the
5031
+ * active vessel ignore it.
5032
+ */
5033
+ seenVesselId?: string;
5034
+ /**
5035
+ * The run of the mod the sending screen last heard from: the `Hello.bootId` it
5036
+ * holds. Required. A delayed command or a scene change sent from another run,
5037
+ * or with this empty, is refused with `undoneByLoad`; a command that is about
5038
+ * the game rather than the flight, such as a pause, ignores it. A station
5039
+ * forwarded through a host sends its own, not the host's.
5040
+ */
5041
+ seenBootId: string;
5042
+ /**
5043
+ * The raw `Meta.timelineEpoch` the sending screen last received from the mod.
5044
+ * A delayed command or a scene change sent from any other epoch is refused
5045
+ * with `undoneByLoad`, because a game load replaced the timeline it was aimed
5046
+ * at. Commands that ignore `CommandRequest.seenBootId` ignore this too.
5047
+ */
5048
+ seenEpoch: number;
5049
+ /** The command's arguments, in the command's own argument type. */
5050
+ args: Args;
5051
+ /**
5052
+ * When the client sent the command, in UT seconds (KSP universal time), the
5053
+ * same base as `Meta.validAt`. Send 0 if you do not need it.
5054
+ *
5055
+ * The mod stamps the response's `Meta.deliveredAt` off its own clock, so a
5056
+ * caller timing a round trip measures against its own clock rather than
5057
+ * reading this back. The field is carried onto the response's `Meta.validAt`,
5058
+ * which therefore reads 0 on a command response unless the client fills this
5059
+ * in.
5060
+ */
5061
+ sentAt: number;
5062
+ }
5063
+ /**
5064
+ * Several commands the client sends as one message: they travel together,
5065
+ * arrive whole or not at all, are refused together, and run in order within a
5066
+ * single physics tick. Each member is an ordinary `CommandRequest` with its
5067
+ * own `requestId`, and each is answered under that id as if it had been sent
5068
+ * alone.
5069
+ *
5070
+ * Every member must be a delayed command addressed to the same craft and sent
5071
+ * from the same command centre. A group that breaks either rule, or is empty,
5072
+ * is refused whole. If any member is refused for any reason, none is sent.
4051
5073
  *
4052
5074
  * @category Stream messages
4053
5075
  */
@@ -4684,8 +5706,8 @@ export declare enum FlightEndReason {
4684
5706
  * of this reading, the craft they stepped out of stays it for as long as that
4685
5707
  * craft is in the world.
4686
5708
  *
4687
- * Nothing is published while there is no active vessel; the last value is
4688
- * held.
5709
+ * The payload is `null` while there is no active vessel, and a vessel out of
5710
+ * contact keeps its last value.
4689
5711
  *
4690
5712
  * @category Flights
4691
5713
  * @categoryDescription Flights
@@ -6067,6 +7089,18 @@ export interface Meta {
6067
7089
  * Unrelated to `Meta.seq`, which numbers frames rather than samples.
6068
7090
  */
6069
7091
  sampleId?: number;
7092
+ /**
7093
+ * The id of the mode that supplied the payload, such as `replay`. Absent on a
7094
+ * sample of the live game, which is every frame the mod sends for a Topic it
7095
+ * publishes.
7096
+ *
7097
+ * A frame carrying one did not come from the game as it is now: it was
7098
+ * supplied by the named mode's source, and `system.modes` says whether that
7099
+ * mode's values for the Topic are modelled or were observed. A client keeps
7100
+ * such a frame apart from the live samples of the same Topic. Omitted from the
7101
+ * wire when absent.
7102
+ */
7103
+ mode?: string;
6070
7104
  }
6071
7105
  /**
6072
7106
  * The provenance stamp carried inside a payload that describes one subject,
@@ -6116,9 +7150,9 @@ export declare enum MissionObjectiveState {
6116
7150
  /** The mission has not reached this objective yet. */
6117
7151
  Pending = 0,
6118
7152
  /**
6119
- * The mission is on this objective now and is still running. Once the mission
6120
- * ends, the objective it ended on is `MissionObjectiveState.Reached` or
6121
- * `MissionObjectiveState.Failed` instead.
7153
+ * The objective's test has been met and the mission is waiting at it, still
7154
+ * running. Once the mission ends, the objective it ended on is
7155
+ * `MissionObjectiveState.Reached` or `MissionObjectiveState.Failed` instead.
6122
7156
  */
6123
7157
  Active = 1,
6124
7158
  /**
@@ -6130,6 +7164,65 @@ export declare enum MissionObjectiveState {
6130
7164
  Failed = 3
6131
7165
  }
6132
7166
  /**
7167
+ * What one Making History objective tests for: the kind of test the mission
7168
+ * author set on the objective's node and the numbers that test carries. Useful
7169
+ * for a client that can say when a flight meets the objective, such as the
7170
+ * Flight Plan, which predicts an altitude, a landing or an orbit and falls
7171
+ * back to a step the operator marks done for any other kind.
7172
+ *
7173
+ * @category Missions
7174
+ */
7175
+ export interface MissionObjectiveTest {
7176
+ /**
7177
+ * The game's class name of the test, without its namespace, for example
7178
+ * `TestVesselAltitude`. A kind a client does not know is still named here.
7179
+ */
7180
+ kind?: string | null;
7181
+ /**
7182
+ * The numbers and names the test carries. A member the kind does not carry is
7183
+ * `null`, never 0.
7184
+ */
7185
+ fields: MissionTestFields;
7186
+ }
7187
+ /**
7188
+ * The values the test of a mission objective carries. Each is set only for the
7189
+ * kinds that have it and `null` otherwise, which is never the same as 0.
7190
+ *
7191
+ * @category Missions
7192
+ */
7193
+ export interface MissionTestFields {
7194
+ /**
7195
+ * The altitude a vessel altitude test compares against, above sea level, or
7196
+ * above the ground when `MissionTestFields.radar` is true.
7197
+ */
7198
+ altitude?: Value<"m"> | null;
7199
+ /**
7200
+ * Whether a vessel altitude test needs the altitude to be above (`greater`) or
7201
+ * below (`less`) `MissionTestFields.altitude`.
7202
+ */
7203
+ operator?: string | null;
7204
+ /**
7205
+ * Whether a vessel altitude test reads the radar altitude, the height above
7206
+ * the ground, rather than the altitude above sea level.
7207
+ */
7208
+ radar?: boolean | null;
7209
+ /**
7210
+ * The situation a landed or splashed test needs the vessel in, as the game
7211
+ * names it, for example `LANDED`.
7212
+ */
7213
+ situation?: string | null;
7214
+ /**
7215
+ * The celestial body a landed, splashed or orbit test is about, by its name.
7216
+ * `null` when the test accepts any body or its place is an area or a launch
7217
+ * site.
7218
+ */
7219
+ body?: string | null;
7220
+ /** Whether a landed or splashed test accepts any surface speed. */
7221
+ ignoreSurfaceVelocity?: boolean | null;
7222
+ /** The fastest surface speed a landed or splashed test accepts. */
7223
+ surfaceVelocity?: Value<"m/s"> | null;
7224
+ }
7225
+ /**
6133
7226
  * One objective of a Making History mission. A mission is a flow chart of
6134
7227
  * nodes, each node a step that leads to the next, and each objective is one
6135
7228
  * node. Objectives are listed in the order the flow chart leads through them.
@@ -6148,6 +7241,11 @@ export interface MissionObjectiveEntry {
6148
7241
  * read.
6149
7242
  */
6150
7243
  state?: MissionObjectiveState | null;
7244
+ /**
7245
+ * What the objective tests for. `null` when its node carries no single test
7246
+ * the game could read.
7247
+ */
7248
+ test?: MissionObjectiveTest | null;
6151
7249
  }
6152
7250
  /**
6153
7251
  * The Making History mission that is running, or has just ended, in the
@@ -6203,6 +7301,339 @@ export interface MissionStatus {
6203
7301
  objectives: MissionObjectiveEntry[];
6204
7302
  }
6205
7303
  /**
7304
+ * One mode: its name, when it is on, whether it answers for the craft and the
7305
+ * kind of timeline it has. An Uplink lists its modes in UplinkManifest.Modes,
7306
+ * and a client with no mod half sends one as the arguments to `mode.declare`.
7307
+ *
7308
+ * `ModeDeclaration.activation` is one of `"always"` (on in every scene),
7309
+ * `"scene"` (on while the game is in one of `ModeDeclaration.scenes`) and
7310
+ * `"entered"` (on from `mode.enter` until `mode.exit`, and only while the game
7311
+ * is in one of `ModeDeclaration.scenes` when any are named). When several
7312
+ * modes are on, the one with the lowest `ModeDeclaration.order` is the mode
7313
+ * the dashboard is in.
7314
+ *
7315
+ * `ModeDeclaration.timeline` is one of `"none"`, `"scrub"` (moved by
7316
+ * `mode.timeline.seek` only) and `"playback"` (also played and paused).
7317
+ *
7318
+ * `ModeDeclaration.answers` is one of `"nothing"` and `"craft"`. A mode
7319
+ * answers for the whole craft or for none of it: while a mode that answers
7320
+ * `"craft"` is on and has supplied anything, a screen reads every Topic about
7321
+ * the game from the mode, and a Topic the mode has no value for is not known.
7322
+ * Two kinds of Topic stay the live game's: the dashboard's own (`mode.`,
7323
+ * `system.`, `host.` and `settings.`), and those about the world rather than a
7324
+ * craft, which are the Topics declared live, with no signal delay, or held at
7325
+ * the home command centre. A mode that holds a value of such a Topic, as a
7326
+ * recording holds the scene its flight was in, supplies it in place of the
7327
+ * live game's.
7328
+ *
7329
+ * A mode that answers nothing and has no timeline leaves the dashboard showing
7330
+ * the live game. The mode `live` is that mode, always on at order 1000.
7331
+ *
7332
+ * @category Modes
7333
+ * @categoryDescription Modes
7334
+ * What the dashboard shows other than the live game: the modes an Uplink
7335
+ * declares, the mode that is on, its timeline, and the commands that enter a
7336
+ * mode and move its timeline.
7337
+ */
7338
+ export interface ModeDeclaration {
7339
+ /**
7340
+ * The mode's id, such as `replay`. An Uplink's own mode starts with the
7341
+ * Uplink's id and a dot.
7342
+ */
7343
+ id: string;
7344
+ /** The mode's name as the operator reads it, such as "Replay". */
7345
+ name: string;
7346
+ /** Lower wins when several modes are on. Zero takes 50. */
7347
+ order: Value<"count">;
7348
+ /** `"always"`, `"scene"` or `"entered"`. */
7349
+ activation: string;
7350
+ /**
7351
+ * KSP scene names, such as `"FLIGHT"` or `"EDITOR"`. Required for `"scene"`;
7352
+ * for `"entered"` it limits where the mode can be entered and stays on.
7353
+ */
7354
+ scenes: string[];
7355
+ /**
7356
+ * What the mode answers for: `"craft"` or `"nothing"`. Empty reads as
7357
+ * `"nothing"`.
7358
+ */
7359
+ answers: string;
7360
+ /**
7361
+ * True when the mode's values are worked out by a model, such as a predicted
7362
+ * flight. False when they were observed in a game at some time, such as a
7363
+ * recording.
7364
+ */
7365
+ modelled: boolean;
7366
+ /** `"none"`, `"scrub"` or `"playback"`. */
7367
+ timeline: string;
7368
+ }
7369
+ /**
7370
+ * One declared mode as `system.modes` lists it.
7371
+ *
7372
+ * @category Modes
7373
+ */
7374
+ export interface ModeListing {
7375
+ /** The mode as it was declared. */
7376
+ declaration: ModeDeclaration;
7377
+ /**
7378
+ * The id of the Uplink that declared the mode, `"gonogo"` for one of Gonogo's
7379
+ * own, or `"client"` for one declared with `mode.declare`.
7380
+ */
7381
+ owner: string;
7382
+ /**
7383
+ * Whether the mode's activation holds now. The mode the dashboard is in is the
7384
+ * eligible one with the lowest order, named by `mode.state`.
7385
+ */
7386
+ eligible: boolean;
7387
+ }
7388
+ /**
7389
+ * Every declared mode, lowest order first. Useful for listing the modes an
7390
+ * operator can enter. Never delayed by signal delay.
7391
+ *
7392
+ * @category Modes
7393
+ */
7394
+ export interface ModesModel {
7395
+ /** The declared modes, lowest order first. */
7396
+ modes: ModeListing[];
7397
+ }
7398
+ /**
7399
+ * A moment on a mode's timeline the operator can jump to, such as a stage of a
7400
+ * recorded flight.
7401
+ *
7402
+ * @category Modes
7403
+ */
7404
+ export interface ModeMark {
7405
+ /** The moment. */
7406
+ ut: Value<"ut">;
7407
+ /** What happens at the moment, such as "Node 1". */
7408
+ label: string;
7409
+ /**
7410
+ * How readily the Timeline prints this mark's label when the labels of the
7411
+ * timeline cannot all be printed: a mark with a higher value is labelled
7412
+ * first. Null counts as 0.
7413
+ */
7414
+ priority?: Value<"count"> | null;
7415
+ /**
7416
+ * The state this mark is about when it is not an ordinary moment: `caution`
7417
+ * for a condition the plan runs into, such as running out of power, or `no-go`
7418
+ * for a failure, such as a step the plan cannot carry out. Omitted for an
7419
+ * ordinary mark. A Timeline colours the mark by it and never merges a `no-go`
7420
+ * mark with another.
7421
+ */
7422
+ tone?: string | null;
7423
+ /**
7424
+ * The latest the moment can arrive, where `ModeMark.ut` is the earliest and
7425
+ * the moment is a range rather than one figure. Null for a moment that is one
7426
+ * figure. A Timeline draws the mark across the range.
7427
+ */
7428
+ latestUt?: Value<"ut"> | null;
7429
+ /**
7430
+ * True for a moment that may never come, such as a condition only some of the
7431
+ * predicted flights reach. Null or false for one that comes. A Timeline draws
7432
+ * such a mark apart from one that comes.
7433
+ */
7434
+ possible?: boolean | null;
7435
+ }
7436
+ /**
7437
+ * One value a mode's sections set for the mode's source to read, such as the
7438
+ * steps of a plan.
7439
+ *
7440
+ * @category Modes
7441
+ */
7442
+ export interface ModeInput {
7443
+ /** The input's name within its mode. */
7444
+ key: string;
7445
+ /** The value, as text the mode's own code reads. JSON for anything structured. */
7446
+ value: string;
7447
+ }
7448
+ /**
7449
+ * The stretch of time a mode covers and where every synced screen is in it.
7450
+ *
7451
+ * While `ModeTimelineState.playing` is true the position moves at
7452
+ * `ModeTimelineState.rate` seconds of the timeline per real second, and
7453
+ * `ModeTimelineState.atUt` is where it was when this value was sent: a screen
7454
+ * carries it forward from the moment it received the value. The value is sent
7455
+ * again about once a second while playing and at every control, and playing
7456
+ * stops at `ModeTimelineState.endUt`.
7457
+ *
7458
+ * @category Modes
7459
+ */
7460
+ export interface ModeTimelineState {
7461
+ /** The first moment the timeline covers. */
7462
+ startUt: Value<"ut">;
7463
+ /** The last moment the timeline covers. */
7464
+ endUt: Value<"ut">;
7465
+ /** The moment every synced screen shows, as of when this value was sent. */
7466
+ atUt: Value<"ut">;
7467
+ /** True while the timeline plays. */
7468
+ playing: boolean;
7469
+ /** Seconds of the timeline played per real second. */
7470
+ rate: Value<"ratio">;
7471
+ /**
7472
+ * The rates the operator can pick from. Empty for a timeline that does not
7473
+ * play.
7474
+ */
7475
+ rates: Value<"ratio">[];
7476
+ /** Moments the operator can jump to, earliest first. */
7477
+ marks: ModeMark[];
7478
+ /**
7479
+ * The moment that counts as T+0, so times read as mission time. Null reads
7480
+ * times from `ModeTimelineState.startUt`.
7481
+ */
7482
+ launchUt?: Value<"ut"> | null;
7483
+ }
7484
+ /**
7485
+ * The mode the dashboard is in, the Topics it answers, its inputs and its
7486
+ * timeline. Every screen of a game reads the same value, so they show the same
7487
+ * mode at the same moment. Never delayed by signal delay.
7488
+ *
7489
+ * The mod decides the mode: the eligible mode with the lowest order. The
7490
+ * values a mode answers with do not come from the mod. They are supplied by
7491
+ * the mode's source on the hosting screen, each frame carrying the mode's id
7492
+ * in `Meta.mode`.
7493
+ *
7494
+ * @category Modes
7495
+ */
7496
+ export interface ModeStateModel {
7497
+ /** The id of the mode the dashboard is in. `"live"` when no other mode is on. */
7498
+ mode: string;
7499
+ /** The mode's name as the operator reads it. */
7500
+ name: string;
7501
+ /** What the mode answers for: `"craft"` or `"nothing"`. `"nothing"` in `live`. */
7502
+ answers: string;
7503
+ /**
7504
+ * True when the mode's values are worked out by a model. False when they were
7505
+ * observed in a game at some time.
7506
+ */
7507
+ modelled: boolean;
7508
+ /** The mode's inputs, in the order they were first set. */
7509
+ inputs: ModeInput[];
7510
+ /**
7511
+ * The mode's timeline, or null while it has none: the mode declares none, or
7512
+ * its source has not yet said what stretch of time it covers.
7513
+ */
7514
+ timeline?: ModeTimelineState | null;
7515
+ /**
7516
+ * Why the mode has no timeline, in the source's words, such as "No recording
7517
+ * chosen". Empty when there is a timeline or nothing has been said.
7518
+ */
7519
+ noTimeline: string;
7520
+ /**
7521
+ * A number that rises each time the mode that is on changes, so a source can
7522
+ * tell a mode entered again from one that stayed on.
7523
+ */
7524
+ entry: Value<"count">;
7525
+ }
7526
+ /**
7527
+ * Names a mode. Arguments to `mode.enter` and `mode.exit`.
7528
+ *
7529
+ * `mode.enter` turns on a mode whose activation is `"entered"`, replacing any
7530
+ * other entered mode, and is refused outside the mode's scenes. `mode.exit`
7531
+ * turns it off. Never delayed by signal delay.
7532
+ *
7533
+ * @category Command arguments
7534
+ */
7535
+ export interface ModeRefArgs {
7536
+ /** The mode's id. */
7537
+ mode: string;
7538
+ }
7539
+ /**
7540
+ * Move a mode's timeline to a moment. Arguments to `mode.timeline.seek`. The
7541
+ * moment is held within the timeline's range. Refused unless the named mode is
7542
+ * the mode the dashboard is in and it has a timeline. Never delayed by signal
7543
+ * delay.
7544
+ *
7545
+ * @category Command arguments
7546
+ */
7547
+ export interface ModeSeekArgs {
7548
+ /** The mode's id. */
7549
+ mode: string;
7550
+ /** The moment to move to. */
7551
+ ut: number;
7552
+ }
7553
+ /**
7554
+ * Play a mode's timeline from where it is. Arguments to `mode.timeline.play`.
7555
+ * Refused unless the named mode is the mode the dashboard is in and its
7556
+ * timeline plays back. Playing from the end starts again from the start. Never
7557
+ * delayed by signal delay.
7558
+ *
7559
+ * @category Command arguments
7560
+ */
7561
+ export interface ModePlayArgs {
7562
+ /** The mode's id. */
7563
+ mode: string;
7564
+ /** Seconds of the timeline to play per real second. Zero keeps the rate it has. */
7565
+ rate: number;
7566
+ }
7567
+ /**
7568
+ * Hold a mode's timeline where it is. Arguments to `mode.timeline.pause`.
7569
+ * Refused unless the named mode is the mode the dashboard is in and it has a
7570
+ * timeline. With a rate, the timeline is also set to play at that rate when it
7571
+ * is next played, so a rate is chosen on a held timeline without moving it.
7572
+ * Never delayed by signal delay.
7573
+ *
7574
+ * @category Command arguments
7575
+ */
7576
+ export interface ModePauseArgs {
7577
+ /** The mode's id. */
7578
+ mode: string;
7579
+ /**
7580
+ * Seconds of the timeline to play per real second once it is played again.
7581
+ * Zero keeps the rate it has.
7582
+ */
7583
+ rate: number;
7584
+ }
7585
+ /**
7586
+ * Set one of a mode's inputs. Arguments to `mode.setInput`. An empty value
7587
+ * removes the input. A mode keeps its inputs while it is off, so it comes back
7588
+ * on with them. Never delayed by signal delay.
7589
+ *
7590
+ * @category Command arguments
7591
+ */
7592
+ export interface ModeInputArgs {
7593
+ /** The mode's id. */
7594
+ mode: string;
7595
+ /** The input's name within the mode. */
7596
+ key: string;
7597
+ /** The value, or empty to remove the input. */
7598
+ value: string;
7599
+ }
7600
+ /**
7601
+ * Say what stretch of time a mode covers. Arguments to
7602
+ * `mode.timeline.setRange`, sent by the mode's source once it knows. Refused
7603
+ * unless the named mode is the mode the dashboard is in and it declares a
7604
+ * timeline.
7605
+ *
7606
+ * An `ModeRangeArgs.endUt` at or before `ModeRangeArgs.startUt` says the mode
7607
+ * has no timeline for now, and `ModeRangeArgs.noTimeline` says why. A new
7608
+ * range keeps the position the timeline was at when it lies inside the range,
7609
+ * and otherwise starts at `ModeRangeArgs.startUt`. Never delayed by signal
7610
+ * delay.
7611
+ *
7612
+ * @category Command arguments
7613
+ */
7614
+ export interface ModeRangeArgs {
7615
+ /** The mode's id. */
7616
+ mode: string;
7617
+ /** The first moment the timeline covers. */
7618
+ startUt: number;
7619
+ /** The last moment the timeline covers. */
7620
+ endUt: number;
7621
+ /**
7622
+ * The moment that counts as T+0, or null to read times from
7623
+ * `ModeRangeArgs.startUt`.
7624
+ */
7625
+ launchUt?: number;
7626
+ /** Moments the operator can jump to. */
7627
+ marks: ModeMark[];
7628
+ /**
7629
+ * The rates the operator can pick from. Empty takes 1, 10, 100 and 1000 for a
7630
+ * timeline that plays back.
7631
+ */
7632
+ rates: number[];
7633
+ /** Why there is no timeline, when the range is empty. */
7634
+ noTimeline: string;
7635
+ }
7636
+ /**
6206
7637
  * The `settings.<uplink>` Topic payload: one Uplink's host mod's own settings,
6207
7638
  * as the Uplink read them.
6208
7639
  *
@@ -6503,6 +7934,55 @@ export interface InvokePartActionArgs {
6503
7934
  * `CommandErrorCode.NotFound`.
6504
7935
  */
6505
7936
  eventName: string;
7937
+ /**
7938
+ * The `PartActionEntry.moduleIndex` of the button, which names the module when
7939
+ * a part carries several of one class. Left out, the first module with an
7940
+ * event of that name is pressed, as before.
7941
+ */
7942
+ moduleIndex?: number;
7943
+ }
7944
+ /**
7945
+ * Set one field of one part's right-click Part Action Window on the craft, the
7946
+ * remote-control equivalent of the player moving a slider or flipping a toggle
7947
+ * in-game: a thrust limiter, a parachute's deploy altitude and pressure, an
7948
+ * engine's gimbal switch.
7949
+ *
7950
+ * It acts on a part aboard the craft, so it waits on the signal delay, like
7951
+ * `vessel.invokePartAction`. The value is written through the game's own field
7952
+ * path, and on the part's symmetry counterparts when the field's control says
7953
+ * the game does the same.
7954
+ *
7955
+ * The value rides the command queue as `commandedValue`, so a slider can draw
7956
+ * the value the operator sent beside the value the craft last reported.
7957
+ *
7958
+ * @category Command arguments
7959
+ */
7960
+ export interface SetPartFieldArgs {
7961
+ /**
7962
+ * The part's flight id, as a string: the same id `InvokePartActionArgs.partId`
7963
+ * and `VesselPart.id` carry. An id that no longer resolves fails with
7964
+ * `CommandErrorCode.NotFound`.
7965
+ */
7966
+ partId: string;
7967
+ /**
7968
+ * The module class name that owns the field (`ModuleEnginesFX`), or empty for
7969
+ * a field on the part itself. A module the part does not carry fails with
7970
+ * `CommandErrorCode.CapabilityMismatch`.
7971
+ */
7972
+ module: string;
7973
+ /**
7974
+ * The field's code name (`thrustPercentage`), never its localized label. A
7975
+ * field the module does not have, or one the game's window does not offer for
7976
+ * flight, fails with `CommandErrorCode.CapabilityMismatch`.
7977
+ */
7978
+ field: string;
7979
+ /**
7980
+ * The value to set. A switch takes 1 for on and 0 for off, a list of options
7981
+ * takes the option's position from 0, and a slider takes its own figure in the
7982
+ * field's own unit. A figure outside the field's range, or a switch or list
7983
+ * position it does not have, fails with `CommandErrorCode.Range`.
7984
+ */
7985
+ value: number;
6506
7986
  }
6507
7987
  /**
6508
7988
  * One button in a part's right-click Part Action Window (PAW): a single KSP
@@ -6549,31 +8029,106 @@ export interface PartActionEntry {
6549
8029
  */
6550
8030
  moduleName?: string | null;
6551
8031
  /**
8032
+ * The position of the owning module among the part's modules, or `null` for an
8033
+ * event on the part itself. A part can carry several modules of one class
8034
+ * (three process controllers), each with a button of the same name, and
8035
+ * `PartActionEntry.name` with `PartActionEntry.moduleName` alone cannot tell
8036
+ * them apart. `InvokePartActionArgs.moduleIndex` carries it back.
8037
+ */
8038
+ moduleIndex?: number | null;
8039
+ /**
6552
8040
  * `BaseEvent.active`: the button is currently enabled. A `false` entry is
6553
8041
  * present but inert, so render it disabled rather than hiding it (hiding would
6554
8042
  * make the list jump around as state changes).
6555
8043
  */
6556
8044
  active: boolean;
6557
8045
  /**
6558
- * `BaseEvent.guiActiveUnfocused`: the button also shows when near but not
6559
- * focused (the EVA-range set).
8046
+ * `BaseEvent.guiActiveUnfocused`: the button also shows when near but not
8047
+ * focused (the EVA-range set).
8048
+ */
8049
+ guiActiveUnfocused: boolean;
8050
+ /**
8051
+ * `BaseEvent.advancedTweakable`: KSP hides this behind its own
8052
+ * advanced-tweakables setting; a client can mirror that preference.
8053
+ */
8054
+ advancedTweakable: boolean;
8055
+ /**
8056
+ * `BaseEvent.requireFullControl`: the button needs full vessel control (not a
8057
+ * partially crewed or probe-limited state) to fire.
8058
+ */
8059
+ requireFullControl: boolean;
8060
+ /**
8061
+ * The button can be pressed from a console but opens a window on the game's
8062
+ * own screen, without locking the craft.
8063
+ */
8064
+ opensGameWindow: boolean;
8065
+ }
8066
+ /**
8067
+ * One row of a part's right-click Part Action Window that is not a button: a
8068
+ * label, a switch, a slider, a list of options, a cycle or a resource bar, in
8069
+ * the order the game draws them.
8070
+ *
8071
+ * `PartWindowItem.module` and `PartWindowItem.name` are the key
8072
+ * `SetPartFieldArgs` takes back, and `PartWindowItem.label` is the localized
8073
+ * text the player sees. Only rows the game offers in flight are listed. A row
8074
+ * with `PartWindowItem.editable` false is shown but cannot be changed from a
8075
+ * console.
8076
+ *
8077
+ * @category Parts
8078
+ */
8079
+ export interface PartWindowItem {
8080
+ /**
8081
+ * What the row is: `"label"`, `"toggle"`, `"slider"`, `"option"`, `"cycle"` or
8082
+ * `"resource"`.
8083
+ */
8084
+ kind: string;
8085
+ /**
8086
+ * The module class that owns the field, or empty for a field on the part
8087
+ * itself. For a resource, empty.
8088
+ */
8089
+ module: string;
8090
+ /** The field's code name, or the resource's name for a resource. */
8091
+ name: string;
8092
+ /** The localized text the player sees on the row. */
8093
+ label: string;
8094
+ /** The PAW group the row sits under, or `null` when it is ungrouped. */
8095
+ group?: string | null;
8096
+ /**
8097
+ * The value as the game prints it, with its unit and without the row's label.
8098
+ * Empty for a label whose owning mod has not given it a value: some mods fill
8099
+ * their labels only while the game's own window for the part is open, so an
8100
+ * empty label is not a reading of nothing. For an option or a cycle, the name
8101
+ * of the chosen entry with its localisation resolved.
6560
8102
  */
6561
- guiActiveUnfocused: boolean;
8103
+ text: string;
6562
8104
  /**
6563
- * `BaseEvent.advancedTweakable`: KSP hides this behind its own
6564
- * advanced-tweakables setting; a client can mirror that preference.
8105
+ * The value as a number: the figure of a slider, 1 or 0 for a switch, the
8106
+ * position of the chosen entry for an option or a cycle, the amount of a
8107
+ * resource. `null` for a label.
6565
8108
  */
6566
- advancedTweakable: boolean;
8109
+ number?: number | null;
8110
+ /** A slider's lowest figure. `null` for any other row. */
8111
+ min?: number | null;
8112
+ /** A slider's highest figure, or a resource's capacity. */
8113
+ max?: number | null;
8114
+ /** A slider's step. */
8115
+ step?: number | null;
6567
8116
  /**
6568
- * `BaseEvent.requireFullControl`: the button needs full vessel control (not a
6569
- * partially crewed or probe-limited state) to fire.
8117
+ * The entries of an option or a cycle, as the game prints them, localisation
8118
+ * resolved. For a switch, its two state words in order off then on (the game's
8119
+ * own, such as "Free" and "Locked"), and `PartWindowItem.text` is the one the
8120
+ * switch is at. `null` for any other row.
6570
8121
  */
6571
- requireFullControl: boolean;
8122
+ options?: string[] | null;
8123
+ /** A resource's flow switch: true when it flows. `null` for any other row. */
8124
+ flows?: boolean | null;
6572
8125
  /**
6573
- * The button can be pressed from a console but opens a window on the game's
6574
- * own screen, without locking the craft.
8126
+ * The game hides the row behind its advanced-tweakables setting, as it does
8127
+ * `PartActionEntry.advancedTweakable` for a button.
6575
8128
  */
6576
- opensGameWindow: boolean;
8129
+ advanced: boolean;
8130
+ /** The row can be changed from a console with `vessel.setPartField`. */
8131
+ editable: boolean;
6577
8132
  }
6578
8133
  /**
6579
8134
  * The payload of one `vessel.partActions.<flightId>` channel: the PAW buttons
@@ -6616,6 +8171,12 @@ export interface PartActions {
6616
8171
  */
6617
8172
  gameWindows: PartActionEntry[];
6618
8173
  /**
8174
+ * The part's window rows that are not buttons, in the order the game draws
8175
+ * them. Always present, possibly empty. A new list beside
8176
+ * `PartActions.actions`, which keeps carrying buttons only.
8177
+ */
8178
+ window: PartWindowItem[];
8179
+ /**
6619
8180
  * Payload provenance. `Source` is `"vessel:<guid>"` for the active vessel, or
6620
8181
  * `""` when no vessel id was known.
6621
8182
  */
@@ -6965,6 +8526,12 @@ export interface PropagatedPath {
6965
8526
  */
6966
8527
  stillWorking: boolean;
6967
8528
  /**
8529
+ * On a refusal given because the path was asked from before the earliest
8530
+ * instant the provider holds, that instant: asking from it on is answered.
8531
+ * Null on every other refusal and on a path.
8532
+ */
8533
+ knownFromUt?: Value<"ut"> | null;
8534
+ /**
6968
8535
  * A path carrying no points.
6969
8536
  *
6970
8537
  * @param why Why there is none, as a sentence.
@@ -6976,6 +8543,14 @@ export interface PropagatedPath {
6976
8543
  * @param why What it is waiting on, as a sentence.
6977
8544
  */
6978
8545
  Working(why: string): PropagatedPath;
8546
+ /**
8547
+ * A path carrying no points, asked from before the earliest instant the
8548
+ * provider holds.
8549
+ *
8550
+ * @param why Why there is none, as a sentence.
8551
+ * @param knownFromUt The earliest instant the provider holds, in UT seconds.
8552
+ */
8553
+ RefusedBefore(why: string, knownFromUt: number): PropagatedPath;
6979
8554
  }
6980
8555
  /**
6981
8556
  * Args for `vessel.trajectory.fromLastKnown`: where the active craft goes from
@@ -7042,6 +8617,126 @@ export interface LastKnownPathReply {
7042
8617
  Refused(why: string): LastKnownPathReply;
7043
8618
  }
7044
8619
  /**
8620
+ * Args for `system.trajectory.fromState`: the path a craft follows from each
8621
+ * of a list of states the caller gives, from the propagation provider in use
8622
+ * on this install. Useful for predicting where a planned craft coasts after a
8623
+ * burn.
8624
+ *
8625
+ * A question about the world, not a command to a craft: nothing reaches a
8626
+ * vessel and nothing is saved. Each seed gets its own path, in the order
8627
+ * asked. Asking the seeds in rising time suits a provider that integrates
8628
+ * forward.
8629
+ *
8630
+ * @category Command arguments
8631
+ */
8632
+ export interface StatePathsRequest {
8633
+ /** The states to start from. */
8634
+ seeds: StateSeed[];
8635
+ /** The most points to return for each path. Zero takes the default. */
8636
+ maxPoints: Value<"count">;
8637
+ /**
8638
+ * Whether the analytic answer will do: only
8639
+ * `PropagationCertification.Unbounded` accepts it. Every other value, the
8640
+ * default `PropagationCertification.Unspecified` included, asks for the
8641
+ * accurate answer, which a provider that integrates gives by integrating, or
8642
+ * refuses.
8643
+ */
8644
+ certification: PropagationCertification;
8645
+ }
8646
+ /**
8647
+ * One state a `StatePathsRequest` starts a path from: a craft's place and
8648
+ * velocity relative to the body it orbits, in the non-rotating Z-up frame
8649
+ * centred on that body.
8650
+ *
8651
+ * @category Command arguments
8652
+ */
8653
+ export interface StateSeed {
8654
+ /** The body the state is relative to, by its `trackingStation.bodies` index. */
8655
+ bodyIndex: number;
8656
+ /** That body's gravitational parameter. */
8657
+ mu: Value<"m³/s²">;
8658
+ /** The instant the state is true. */
8659
+ ut: Value<"ut">;
8660
+ /** Where to stop. */
8661
+ toUt: Value<"ut">;
8662
+ /**
8663
+ * The body the returned points are relative to, by its
8664
+ * `trackingStation.bodies` index. Null, or `StateSeed.bodyIndex`, reads them
8665
+ * relative to the body the state is.
8666
+ */
8667
+ centreBodyIndex?: number | null;
8668
+ /** The most points to return for this path. Zero takes the request's. */
8669
+ maxPoints: Value<"count">;
8670
+ /**
8671
+ * The engines' force over the path, one window after another, each held
8672
+ * constant from its own start. Null, or empty, is a coast. The path ends where
8673
+ * `StateSeed.toUt` says, which for a burn is where its last window ends.
8674
+ */
8675
+ burn?: ThrustWindow[] | null;
8676
+ /**
8677
+ * The instant the returned points have to cover from, at or after
8678
+ * `StateSeed.ut` and before `StateSeed.toUt`. The first point is at this
8679
+ * instant, or is the provider's last point at or before it. Null starts them
8680
+ * at `StateSeed.ut`. Ignored on a burn.
8681
+ */
8682
+ fromUt?: Value<"ut"> | null;
8683
+ /**
8684
+ * How the returned points are spread along the path. Null, and
8685
+ * `PathSpacing.Unspecified`, leave it to the provider. Ignored on a burn.
8686
+ */
8687
+ spacing?: PathSpacing | null;
8688
+ /** Position along the frame's X axis, metres from the body. */
8689
+ x: Value<"m">;
8690
+ /** Position along the frame's Y axis, metres from the body. */
8691
+ y: Value<"m">;
8692
+ /** Position along the frame's Z (up) axis, metres from the body. */
8693
+ z: Value<"m">;
8694
+ /** Velocity along the frame's X axis, relative to the body. */
8695
+ vx: Value<"m/s">;
8696
+ /** Velocity along the frame's Y axis, relative to the body. */
8697
+ vy: Value<"m/s">;
8698
+ /** Velocity along the frame's Z (up) axis, relative to the body. */
8699
+ vz: Value<"m/s">;
8700
+ }
8701
+ /**
8702
+ * The `system.trajectory.fromState` result: one path for each seed asked, in
8703
+ * the same order. Each path is solved or carries its own refusal; one that is
8704
+ * `PropagatedPath.stillWorking` will be there when asked again.
8705
+ *
8706
+ * @category Orbits and trajectories
8707
+ */
8708
+ export interface StatePathsReply {
8709
+ /** The paths, one for each seed, in the order asked. */
8710
+ paths: PropagatedPath[];
8711
+ /**
8712
+ * Id of the propagation provider that answered, so a path that looks wrong can
8713
+ * be attributed to it. Null when no provider answered.
8714
+ */
8715
+ providerId?: string | null;
8716
+ }
8717
+ /**
8718
+ * One window of a burn in a `StateSeed`: from its start, the engines' force on
8719
+ * the craft, held constant, in the same non-rotating Z-up frame as the seed's
8720
+ * state, with the craft's mass at the window's start and the mass it loses
8721
+ * each second.
8722
+ *
8723
+ * @category Command arguments
8724
+ */
8725
+ export interface ThrustWindow {
8726
+ /** The instant the window starts. */
8727
+ ut: Value<"ut">;
8728
+ /** The force along the frame's X axis. */
8729
+ forceX: Value<"kN">;
8730
+ /** The force along the frame's Y axis. */
8731
+ forceY: Value<"kN">;
8732
+ /** The force along the frame's Z (up) axis. */
8733
+ forceZ: Value<"kN">;
8734
+ /** The craft's mass at the window's start. */
8735
+ mass: Value<"t">;
8736
+ /** The mass the craft loses each second through the window. */
8737
+ massFlow: Value<"kg/s">;
8738
+ }
8739
+ /**
7045
8740
  * The payload for the `recovery.lastSummary` channel: the most recent vessel
7046
8741
  * recovery in the current save, as KSP's mission recovery dialog reports it.
7047
8742
  * Every value is delivered, in order, so a late subscriber is sent the last
@@ -7655,15 +9350,22 @@ export interface SaveSummary {
7655
9350
  ut: Value<"ut">;
7656
9351
  }
7657
9352
  /**
7658
- * The quicksave slot of the loaded game and the save it replaced. Null when no
7659
- * game is loaded. Useful for showing the operator what a quickload would
7660
- * return to and for offering the previous save after a stray quicksave. Sent
7661
- * only when it changes, and at no delay at any command centre: a save is a
7662
- * file outside the universe.
9353
+ * The loaded game's name, its quicksave slot and the save that slot replaced.
9354
+ * Null when no game is loaded. Useful for showing the operator what a
9355
+ * quickload would return to, for offering the previous save after a stray
9356
+ * quicksave, and for keeping what a screen stores with the game it belongs to.
9357
+ * Sent only when it changes, and at no delay at any command centre: a save is
9358
+ * a file outside the universe.
7663
9359
  *
7664
9360
  * @category Flights
7665
9361
  */
7666
9362
  export interface SaveSlots {
9363
+ /**
9364
+ * The loaded game, as the game names its save folder (the name under
9365
+ * `saves/`), the same name `ScetAlarm.save` carries. Null when the game has
9366
+ * not named a save yet.
9367
+ */
9368
+ save?: string | null;
7667
9369
  /** The quicksave slot, or null when this game has none. */
7668
9370
  quicksave?: SaveSummary | null;
7669
9371
  /**
@@ -8132,6 +9834,16 @@ export interface ScetAlarm {
8132
9834
  * never armed into another.
8133
9835
  */
8134
9836
  save: string;
9837
+ /**
9838
+ * Whether this alarm stops time warp when it comes due. True, the default,
9839
+ * stops the warp at the alarm's step-down instant and again when it fires, and
9840
+ * slows it on the way in so the instant is not carried past. False leaves the
9841
+ * warp as the operator set it, for an alarm that is a standing instruction to
9842
+ * the craft and not something to be told of. An alarm that does not stop warp
9843
+ * is also not copied into the game's own alarm clock: it is not an alarm the
9844
+ * player asked to see. Absent from an older save or client reads as true.
9845
+ */
9846
+ stopsWarp: boolean;
8135
9847
  }
8136
9848
  /**
8137
9849
  * The notice that an alarm judged on the craft's own clock (a SCET alarm, for
@@ -8227,6 +9939,30 @@ export interface ScetAlarmArmArgs {
8227
9939
  * craft, so empty resolves to its subject and any other craft is refused.
8228
9940
  */
8229
9941
  actsOn: string;
9942
+ /**
9943
+ * See `ScetAlarm.stopsWarp`. Absent, or true, is the alarm as it has always
9944
+ * been: it stops the warp. False arms an alarm that does not stop the warp and
9945
+ * is not copied into the game's alarm clock.
9946
+ */
9947
+ stopsWarp: boolean;
9948
+ /**
9949
+ * Whether a copy of the alarm is kept in the game's own alarm clock while it
9950
+ * stops the warp. False keeps it out. Absent reads as true.
9951
+ */
9952
+ inGameAlarmClock: boolean;
9953
+ /**
9954
+ * The id of the alarm this one follows, or empty for none. An alarm that
9955
+ * follows another is not judged until that one has fired. An alarm naming
9956
+ * itself follows none, and so does one that sends no leader. Re-arming an
9957
+ * active alarm with the same leader keeps the instant it became active, so a
9958
+ * delay or a sustain already running carries on.
9959
+ */
9960
+ after?: string;
9961
+ /**
9962
+ * Seconds on the craft's clock, counted from the instant the alarm becomes
9963
+ * active, before its condition is judged. Negative reads as zero.
9964
+ */
9965
+ afterSeconds: number;
8230
9966
  }
8231
9967
  /**
8232
9968
  * Forget the alarm with this id. Succeeds without an error for an id the host
@@ -8260,6 +9996,72 @@ export interface ScetAddressableTopic {
8260
9996
  topic: string;
8261
9997
  }
8262
9998
  /**
9999
+ * One step of a plan as the craft holds it: the alarm that ends the step,
10000
+ * judged aboard. A step follows the step listed before it in
10001
+ * `PlanUploadArgs.steps`, and the first follows none.
10002
+ *
10003
+ * @category Command arguments
10004
+ */
10005
+ export interface PlanUploadStep {
10006
+ /** The client's own id for the step's alarm, echoed as `ScetAlarm.id`. */
10007
+ id: string;
10008
+ /** The step's name, echoed as `ScetAlarm.name`. */
10009
+ name: string;
10010
+ /**
10011
+ * What ends the step, judged on the craft's own clock once the step is active.
10012
+ * See `ScetAlarmCondition`.
10013
+ */
10014
+ condition: ScetAlarmCondition;
10015
+ /** Seconds after the step becomes active before its condition is judged. */
10016
+ afterSeconds: Value<"s">;
10017
+ /**
10018
+ * What the craft does when the step ends, empty for a step that only moves the
10019
+ * plan on.
10020
+ */
10021
+ onFire: ScetAlarmAction[];
10022
+ /**
10023
+ * See `ScetAlarm.stopsWarp`. A step whose alarm stops the warp is never copied
10024
+ * into the game's alarm clock.
10025
+ */
10026
+ stopsWarp: boolean;
10027
+ /**
10028
+ * The universal time the step already ended at, as the client recorded its
10029
+ * fire, or null for a step that has not. A step that has ended is not armed
10030
+ * again, and the step after it is active from this instant.
10031
+ */
10032
+ endedAtUt?: Value<"ut"> | null;
10033
+ }
10034
+ /**
10035
+ * Send a plan to the craft, whole: the alarms that end each of its steps, in
10036
+ * order, which the craft then works through on its own clock.
10037
+ *
10038
+ * Rides the signal delay, and is withheld while the craft is out of contact:
10039
+ * the plan changes what the craft will do, so it reaches the craft when a
10040
+ * signal sent now would. On arrival it replaces the plan the craft held whole.
10041
+ * A step that has ended aboard stays ended and is never fired again, the step
10042
+ * that was active keeps the instant it became active, and every alarm of the
10043
+ * earlier plan that the new one does not list is removed. An upload with no
10044
+ * steps takes the plan off the craft. An upload of a revision lower than the
10045
+ * one the craft holds for the same plan is ignored.
10046
+ *
10047
+ * @category Command arguments
10048
+ */
10049
+ export interface PlanUploadArgs {
10050
+ /** See `ScetAlarmArmArgs.save`. */
10051
+ save: string;
10052
+ /**
10053
+ * The craft the plan is for, as `"vessel:<guid>"`. Every step is judged at
10054
+ * this craft's own vantage and acts on it.
10055
+ */
10056
+ vessel: string;
10057
+ /** The plan's id. */
10058
+ plan: string;
10059
+ /** Counts up with each upload of the plan to this craft. */
10060
+ revision: number;
10061
+ /** The steps, in the order the craft works through them. */
10062
+ steps: PlanUploadStep[];
10063
+ }
10064
+ /**
8263
10065
  * Act on a science experiment or lab on a part. Args shared by every science
8264
10066
  * actuation command (`science.experiment.deploy`,
8265
10067
  * `science.experiment.transmit`, `science.experiment.start`,
@@ -8671,6 +10473,24 @@ export interface LabEntry {
8671
10473
  */
8672
10474
  scienceRate?: Value<"science/day"> | null;
8673
10475
  /**
10476
+ * What `LabEntry.scienceRate` would be were the lab holding one Units.Mits of
10477
+ * data (KSP's `ModuleScienceConverter.CalculateScienceRate` asked for one
10478
+ * Mit). The rate is in proportion to the data held, so this is the constant of
10479
+ * that proportion: the data held at any moment makes this much science a day
10480
+ * for each Mit. `null` when the lab has no converter or it could not be read.
10481
+ */
10482
+ scienceRatePerMit?: Value<"science/day"> | null;
10483
+ /**
10484
+ * The science the lab makes from each Units.Mits of data it processes (KSP's
10485
+ * `ModuleScienceConverter.scienceMultiplier`). With `LabEntry.scienceRate` and
10486
+ * `LabEntry.dataStored` it gives how fast processing drains the data held: the
10487
+ * rate a day divided by this is the data processed a day, and that is in
10488
+ * proportion to the data left. A plain number, since it relates a currency to
10489
+ * a volume of data. `null` when the lab has no converter or it could not be
10490
+ * read.
10491
+ */
10492
+ scienceYield?: Value<"1"> | null;
10493
+ /**
8674
10494
  * Whether the lab can operate right now (KSP's
8675
10495
  * `ModuleScienceLab.IsOperational()`).
8676
10496
  */
@@ -10012,6 +11832,16 @@ export interface SwitchableVessels {
10012
11832
  export interface SystemBodies {
10013
11833
  /** Every body. The tree is expressed through `BodyEntry.parentIndex`. */
10014
11834
  bodies: BodyEntry[];
11835
+ /**
11836
+ * The star's total power output the game heats bodies and craft with
11837
+ * (`PhysicsGlobals.SolarLuminosity`). Null when it could not be read.
11838
+ */
11839
+ solarLuminosity?: Value<"W"> | null;
11840
+ /**
11841
+ * The temperature of empty space the game radiates against
11842
+ * (`PhysicsGlobals.SpaceTemperature`). Null when it could not be read.
11843
+ */
11844
+ spaceTemperature?: Value<"K"> | null;
10015
11845
  }
10016
11846
  /**
10017
11847
  * One celestial body in the `SystemBodies` tree: an explicit parent-index
@@ -10135,6 +11965,14 @@ export interface BodyEntry {
10135
11965
  */
10136
11966
  hasOcean?: boolean | null;
10137
11967
  /**
11968
+ * The most the body's terrain can stand above its datum, metres, as the game's
11969
+ * own bound on it: the sum of what each of its terrain modifiers can add.
11970
+ * Above it nothing of the body's ground can be met, so a craft that stays
11971
+ * higher cannot be at the ground. Null where the game has not set the bound up
11972
+ * for the body, never 0.
11973
+ */
11974
+ highestTerrain?: Value<"m"> | null;
11975
+ /**
10138
11976
  * KSP's per-body flavour text (`CelestialBody.bodyDescription`); null when
10139
11977
  * absent. May be a raw, unresolved `#autoLOC...` localization tag, which is
10140
11978
  * not text to show.
@@ -10155,6 +11993,131 @@ export interface BodyEntry {
10155
11993
  * treats as visited rather than as never reached.
10156
11994
  */
10157
11995
  visited?: boolean | null;
11996
+ /**
11997
+ * The figures the game heats a craft near this body with: the heat the body
11998
+ * gives off and the sunlight it reflects, as
11999
+ * `CelestialBody.GetAtmoThermalStats` works them out. Null when the body's
12000
+ * figures could not be read; the root star carries none.
12001
+ */
12002
+ thermal?: BodyThermal | null;
12003
+ }
12004
+ /**
12005
+ * The figures the game heats a craft near a body with, as
12006
+ * `CelestialBody.GetAtmoThermalStats` reads them. A curve with any key the
12007
+ * game evaluates other than as a plain cubic Hermite, or any figure it could
12008
+ * not read, leaves the whole block null rather than part of it.
12009
+ *
12010
+ * @category Solar system and fleet
12011
+ */
12012
+ export interface BodyThermal {
12013
+ /**
12014
+ * How well the body radiates its heat (`CelestialBody.emissivity`), from 0 to
12015
+ * 1.
12016
+ */
12017
+ emissivity: Value<"ratio">;
12018
+ /**
12019
+ * The share of sunlight the body reflects (`CelestialBody.albedo`), from 0 to
12020
+ * 1.
12021
+ */
12022
+ albedo: Value<"ratio">;
12023
+ /**
12024
+ * The length of the body's day from one noon to the next
12025
+ * (`CelestialBody.solarDayLength`).
12026
+ */
12027
+ solarDayLength: Value<"s">;
12028
+ /**
12029
+ * The heat of the body's own interior, added to its surface temperature
12030
+ * (`CelestialBody.coreTemperatureOffset`).
12031
+ */
12032
+ coreTemperatureOffset: Value<"K">;
12033
+ /**
12034
+ * The air's temperature at sea level (`CelestialBody.GetTemperature(0)`). Null
12035
+ * on a body with no air.
12036
+ */
12037
+ seaLevelTemperature?: Value<"K"> | null;
12038
+ /**
12039
+ * The temperature added at each latitude (`latitudeTemperatureBiasCurve`), by
12040
+ * latitude in degrees. Empty on a body with no air.
12041
+ */
12042
+ latitudeTemperatureBias: AngleTemperatureKey[];
12043
+ /**
12044
+ * The temperature added at each latitude in full sun, scaled by how much sun
12045
+ * the place gets (`latitudeTemperatureSunMultCurve`). Empty on a body with no
12046
+ * air.
12047
+ */
12048
+ latitudeTemperatureSunMult: AngleTemperatureKey[];
12049
+ /**
12050
+ * The temperature added by season, by the body's true anomaly in degrees
12051
+ * (`axialTemperatureSunBiasCurve`). Empty on a body with no air.
12052
+ */
12053
+ axialTemperatureSunBias: AngleTemperatureKey[];
12054
+ /**
12055
+ * How strongly each latitude feels the season, by latitude in degrees
12056
+ * (`axialTemperatureSunMultCurve`). The game also adds this curve's value to a
12057
+ * temperature in kelvin when it works out the body's day and night extremes,
12058
+ * so its value is read both ways. Empty on a body with no air.
12059
+ */
12060
+ axialTemperatureSunMult: AngleRatioKey[];
12061
+ /**
12062
+ * The temperature added by where the body is along an eccentric orbit, by 0 at
12063
+ * periapsis to 1 at apoapsis (`eccentricityTemperatureBiasCurve`). Empty on a
12064
+ * body with no air.
12065
+ */
12066
+ eccentricityTemperatureBias: ShareTemperatureKey[];
12067
+ }
12068
+ /**
12069
+ * One key of a curve of temperature by angle, evaluated as a cubic Hermite
12070
+ * between keys and held flat beyond the first and last.
12071
+ *
12072
+ * @category Solar system and fleet
12073
+ */
12074
+ export interface AngleTemperatureKey {
12075
+ /** Where the key sits on the curve. */
12076
+ angleDegrees: Value<"°">;
12077
+ /** The curve's temperature at the key. */
12078
+ temperature: Value<"K">;
12079
+ /** The change the curve's slope arriving at the key makes over one degree. */
12080
+ inSlope: Value<"K">;
12081
+ /** The change the curve's slope leaving the key makes over one degree. */
12082
+ outSlope: Value<"K">;
12083
+ }
12084
+ /**
12085
+ * One key of a curve of a multiplier by angle, evaluated as a cubic Hermite
12086
+ * between keys and held flat beyond the first and last.
12087
+ *
12088
+ * @category Solar system and fleet
12089
+ */
12090
+ export interface AngleRatioKey {
12091
+ /** Where the key sits on the curve. */
12092
+ angleDegrees: Value<"°">;
12093
+ /** The curve's ratio at the key. */
12094
+ ratio: Value<"ratio">;
12095
+ /** The change the curve's slope arriving at the key makes over one degree. */
12096
+ inSlope: Value<"ratio">;
12097
+ /** The change the curve's slope leaving the key makes over one degree. */
12098
+ outSlope: Value<"ratio">;
12099
+ }
12100
+ /**
12101
+ * One key of a curve of temperature by a share from 0 to 1, evaluated as a
12102
+ * cubic Hermite between keys and held flat beyond the first and last.
12103
+ *
12104
+ * @category Solar system and fleet
12105
+ */
12106
+ export interface ShareTemperatureKey {
12107
+ /** Where the key sits on the curve. */
12108
+ share: Value<"ratio">;
12109
+ /** The curve's temperature at the key. */
12110
+ temperature: Value<"K">;
12111
+ /**
12112
+ * The change the curve's slope arriving at the key makes over the whole share,
12113
+ * from 0 to 1.
12114
+ */
12115
+ inSlope: Value<"K">;
12116
+ /**
12117
+ * The change the curve's slope leaving the key makes over the whole share,
12118
+ * from 0 to 1.
12119
+ */
12120
+ outSlope: Value<"K">;
10158
12121
  }
10159
12122
  /**
10160
12123
  * A body's atmosphere, present on a `BodyEntry` only when the body actually
@@ -10245,6 +12208,13 @@ export interface OrbitEntry {
10245
12208
  meanAnomalyAtEpoch?: Value<"rad"> | null;
10246
12209
  /** Epoch UT, seconds. */
10247
12210
  epoch?: Value<"ut"> | null;
12211
+ /**
12212
+ * The gravitational parameter these elements are a conic about, in m³/s²,
12213
+ * where it is not the parent body's alone: a body whose own mass is included
12214
+ * states the parent's and its own together. Absent otherwise, and then the
12215
+ * elements are read with the parent body's `BodyEntry.gravParameter`.
12216
+ */
12217
+ orbitGravParameter?: Value<"m³/s²"> | null;
10248
12218
  }
10249
12219
  /**
10250
12220
  * Every object the receiving command centre knows of, craft and tracked space
@@ -10776,6 +12746,45 @@ export interface TargetAvailable {
10776
12746
  entries: TargetListEntry[];
10777
12747
  }
10778
12748
  /**
12749
+ * Ask for the height of the ground at a list of places on one body. Args for
12750
+ * `system.terrain.heights`. Refused with `CommandErrorCode.NotFound` for a
12751
+ * body the game does not have or one with no ground to stand on, and with
12752
+ * `CommandErrorCode.Range` for more than 256 places in one call.
12753
+ *
12754
+ * @category Command arguments
12755
+ */
12756
+ export interface TerrainHeightsArgs {
12757
+ /** The body's name, as `trackingStation.bodies` gives it. */
12758
+ body: string;
12759
+ /** The places to give a height for. */
12760
+ points: TerrainPoint[];
12761
+ }
12762
+ /**
12763
+ * One place on a body in a `TerrainHeightsArgs`.
12764
+ *
12765
+ * @category Command arguments
12766
+ */
12767
+ export interface TerrainPoint {
12768
+ /** Latitude, north positive. */
12769
+ latitude: Value<"°">;
12770
+ /** Longitude, east positive. */
12771
+ longitude: Value<"°">;
12772
+ }
12773
+ /**
12774
+ * The height of the ground at each place asked for, as
12775
+ * `system.terrain.heights` returns them.
12776
+ *
12777
+ * @category System
12778
+ */
12779
+ export interface TerrainHeights {
12780
+ /**
12781
+ * One height for each place, in the order asked, above the body's sea level.
12782
+ * On a body with an ocean a place under the sea reads 0, the water's surface.
12783
+ * On a body without one a place below the datum reads negative.
12784
+ */
12785
+ heights: Value<"m">[];
12786
+ }
12787
+ /**
10779
12788
  * How long a minute, hour, day and year are, and what real-world instant UT 0
10780
12789
  * is (when the game has one), as the running game defines them.
10781
12790
  *
@@ -11078,6 +13087,12 @@ export interface GateVerdict {
11078
13087
  * unlock it was.
11079
13088
  */
11080
13089
  missing?: MissingUnlock[];
13090
+ /**
13091
+ * On a `CommandErrorCode.NotUnlocked` Fail, what to say in place of naming
13092
+ * `GateVerdict.missing`, from the requirement that refused. Absent where the
13093
+ * requirement states nothing.
13094
+ */
13095
+ statement?: string;
11081
13096
  }
11082
13097
  /**
11083
13098
  * The one-way delay a delayed command takes from a command centre to the
@@ -11446,7 +13461,11 @@ export interface VesselAttitude {
11446
13461
  * clockwise from north.
11447
13462
  */
11448
13463
  heading: Value<"°">;
11449
- /** Roll, measured at the centre of mass. Degrees, -180 to 180. */
13464
+ /**
13465
+ * Roll, measured at the centre of mass. Degrees, -180 to 180, positive when
13466
+ * the vessel banks to the left (counter-clockwise seen from behind), as the
13467
+ * game measures it, so a vessel banked to the right reads negative.
13468
+ */
11450
13469
  roll: Value<"°">;
11451
13470
  /** As `VesselAttitude.pitch`, measured at the root part. Degrees, -90 to 90. */
11452
13471
  pitchRootFrame: Value<"°">;
@@ -11454,6 +13473,14 @@ export interface VesselAttitude {
11454
13473
  headingRootFrame: Value<"°">;
11455
13474
  /** As `VesselAttitude.roll`, measured at the root part. Degrees, -180 to 180. */
11456
13475
  rollRootFrame: Value<"°">;
13476
+ /**
13477
+ * The angle between where the vessel's nose points and the way it moves
13478
+ * through the air, in the plane of its nose and its up, in degrees, -180 to
13479
+ * 180: positive when the nose is above the airflow, negative below it, 0
13480
+ * flying nose-first along it. Absent while the vessel is not moving through
13481
+ * the air, and absence is not zero.
13482
+ */
13483
+ angleOfAttack?: Value<"°"> | null;
11457
13484
  /** The payload's provenance (`"vessel:<guid>"`). */
11458
13485
  meta: PayloadMeta;
11459
13486
  }
@@ -11718,6 +13745,22 @@ export interface VesselComms {
11718
13745
  meta: PayloadMeta;
11719
13746
  }
11720
13747
  /**
13748
+ * What the navball's speed readout is measured against: the orbit about the
13749
+ * body, the surface of the body or the current target. The directional SAS
13750
+ * modes follow it, so it says which velocity prograde and retrograde point
13751
+ * along. Read from the game's speed display mode.
13752
+ *
13753
+ * @category Vessel
13754
+ */
13755
+ export declare enum SpeedDisplayMode {
13756
+ /** Speed relative to the body's centre: the orbital velocity. */
13757
+ Orbit = 0,
13758
+ /** Speed relative to the body's surface: the velocity through its air. */
13759
+ Surface = 1,
13760
+ /** Speed relative to the current target. */
13761
+ Target = 2
13762
+ }
13763
+ /**
11721
13764
  * The SAS autopilot's hold mode, KSP's `VesselAutopilot.AutopilotMode` with
11722
13765
  * the same member names. The directional modes follow the navball's current
11723
13766
  * speed mode (orbit, surface or target). `SasMode.Unknown` stands for a value
@@ -11787,9 +13830,10 @@ export interface ActionGroupState {
11787
13830
  /**
11788
13831
  * The active vessel's control state (the stock toggles, SAS mode, throttle,
11789
13832
  * the commanded fly-by-wire axes and the custom action groups). The payload is
11790
- * present whenever there is an active vessel; each field is individually
11791
- * nullable, and `null` means that input could not be read this tick (for
11792
- * example no flight input state, or no action-group data), never a default.
13833
+ * present whenever there is an active vessel and `null` while there is none;
13834
+ * each field is individually nullable, and `null` means that input could not
13835
+ * be read this tick (for example no flight input state, or no action-group
13836
+ * data), never a default.
11793
13837
  *
11794
13838
  * Each control field that can be changed is paired with its command through
11795
13839
  * its control channel, so the confirmed state and the command that changes it
@@ -11822,6 +13866,12 @@ export interface VesselControl {
11822
13866
  /** The SAS hold mode. Changed with `vessel.control.setSasMode`. */
11823
13867
  sasMode?: SasMode | null;
11824
13868
  /**
13869
+ * What the navball's speed readout is measured against, which decides the
13870
+ * velocity the prograde and retrograde SAS modes point along. Null when the
13871
+ * game does not state it, never a default.
13872
+ */
13873
+ speedMode?: SpeedDisplayMode | null;
13874
+ /**
11825
13875
  * The SAS hold modes the vessel can be put in right now, by KSP's own per-mode
11826
13876
  * check: the Pilot's skill or the probe core's SAS tier, a target for the
11827
13877
  * target modes, a maneuver node for `Maneuver`. A mode left out is refused by
@@ -12102,6 +14152,46 @@ export interface DockAlignment {
12102
14152
  * when the game did not report it this tick.
12103
14153
  */
12104
14154
  targetPortPersistentId?: number | null;
14155
+ /**
14156
+ * The own port's local right axis (the port frame's `x`) as a unit vector in
14157
+ * the game's scene axes, the same axes `VesselTarget.relativePosition` is
14158
+ * given in. With `DockAlignment.ownPortUp` and `DockAlignment.ownPortForward`
14159
+ * it turns a vector of those axes into the own port's axes. Null only when the
14160
+ * port's transform was unavailable this tick.
14161
+ */
14162
+ ownPortRight?: Vec3Of<"1"> | null;
14163
+ /**
14164
+ * The own port's local up axis (the port frame's `y`) in the game's scene
14165
+ * axes, as `DockAlignment.ownPortRight`.
14166
+ */
14167
+ ownPortUp?: Vec3Of<"1"> | null;
14168
+ /**
14169
+ * The own port's docking axis (the port frame's `z`) in the game's scene axes,
14170
+ * as `DockAlignment.ownPortRight`.
14171
+ */
14172
+ ownPortForward?: Vec3Of<"1"> | null;
14173
+ /**
14174
+ * Whether the targeted port's vessel is loaded into the game's physics, so its
14175
+ * attitude and turn are simulated. A vessel that is not loaded has neither
14176
+ * this tick. Null only when the game did not report it.
14177
+ */
14178
+ targetLoaded?: boolean | null;
14179
+ /**
14180
+ * Whether SAS is on in the targeted port's vessel. Null when that vessel is
14181
+ * not loaded or the game did not report it.
14182
+ */
14183
+ targetSasOn?: boolean | null;
14184
+ /**
14185
+ * The SAS hold mode of the targeted port's vessel. Null when that vessel is
14186
+ * not loaded or the game did not report it.
14187
+ */
14188
+ targetSasMode?: SasMode | null;
14189
+ /**
14190
+ * Whether the targeted port's vessel has any translation input applied (RCS
14191
+ * right, up or forward and their opposites). Null when that vessel is not
14192
+ * loaded or the game did not report it.
14193
+ */
14194
+ targetTranslating?: boolean | null;
12105
14195
  /** The payload's provenance (`"vessel:<guid>"`). */
12106
14196
  meta: PayloadMeta;
12107
14197
  }
@@ -12273,6 +14363,15 @@ export interface VesselFlight {
12273
14363
  /** Altitude above sea level, metres (KSP's `Vessel.altitude`). */
12274
14364
  altitudeAsl: Value<"m">;
12275
14365
  /**
14366
+ * Altitude of the vessel's centre of mass above sea level, metres. The centre
14367
+ * of mass is the point `vessel.orbit` describes, so this is the altitude to
14368
+ * set beside an orbit. `VesselFlight.altitudeAsl` is the altitude the game's
14369
+ * altimeter shows, read at the vessel's root part, and the two differ by up to
14370
+ * the distance between those points. `null` when the game gives no finite
14371
+ * centre of mass.
14372
+ */
14373
+ altitudeAslCentreOfMass?: Value<"m"> | null;
14374
+ /**
12276
14375
  * Height above terrain (AGL, KSP's `Vessel.radarAltitude`), metres. Not
12277
14376
  * derivable from orbital elements, so it is streamed as measured.
12278
14377
  */
@@ -12322,12 +14421,52 @@ export interface VesselFlight {
12322
14421
  meta: PayloadMeta;
12323
14422
  }
12324
14423
  /**
14424
+ * What a flight model needs of the active vessel that is not already on
14425
+ * `vessel.parts`: each part's figures, in the shape `editor.physics` gives
14426
+ * them for the craft in the vehicle editor, and the air of the body the vessel
14427
+ * is about. A single object, or `null` when there is no active vessel. Useful
14428
+ * for predicting the flight of a craft already flying, such as the burns of
14429
+ * its manoeuvre nodes.
14430
+ *
14431
+ * Each row's `EditorPartPhysics.id` is the part's `Id` on `vessel.parts`. The
14432
+ * figures are read again whenever the vessel's parts change, so for a moment
14433
+ * around a staging or a docking the two Topics can list different parts.
14434
+ *
14435
+ * @category Parts
14436
+ */
14437
+ export interface VesselFlightModel {
14438
+ /**
14439
+ * The `Id` of the vessel's root part on `vessel.parts`, the part every other
14440
+ * is turned against.
14441
+ */
14442
+ rootPartId: string;
14443
+ /**
14444
+ * The aerodynamics the game flies the vessel with: `"stock"`, the id of the
14445
+ * mod's model when a mod replaces the game's own, or `"unmodelled"` when the
14446
+ * game's own drag does not act on the vessel and no model stands in for it.
14447
+ */
14448
+ aerodynamics: string;
14449
+ /** One row per part on the vessel, in the order of `vessel.parts`. */
14450
+ parts: EditorPartPhysics[];
14451
+ /** The body the vessel is about, by name. */
14452
+ bodyName: string;
14453
+ /** The air of that body, or `null` for a body with none. */
14454
+ atmosphere?: EditorAtmosphere | null;
14455
+ /** The payload's provenance, always `"vessel:<guid>"` for the active vessel. */
14456
+ meta: PayloadMeta;
14457
+ }
14458
+ /**
12325
14459
  * Who the active vessel is, what kind of craft it is, and where it is.
12326
14460
  *
12327
14461
  * There is no mission time field. `VesselIdentity.launchUt` is fixed after
12328
14462
  * liftoff, so mission elapsed time is the current UT (the `meta.validAt` of
12329
14463
  * the newest frame) minus `launchUt`, computed by the client.
12330
14464
  *
14465
+ * The payload is `null` while there is no active vessel: at the Space Center,
14466
+ * in an editor, in the tracking station with nothing flying, and after a
14467
+ * revert, a destroy or a recovery. A vessel out of contact is still the active
14468
+ * vessel and keeps its last value.
14469
+ *
12331
14470
  * @category Vessel
12332
14471
  */
12333
14472
  export interface VesselIdentity {
@@ -12885,6 +15024,11 @@ export interface VesselManeuver {
12885
15024
  * reckoning's `modelled` list says which paths its model moved, and a consumer
12886
15025
  * wanting a whole modelled orbit overlays those on the observed payload.
12887
15026
  *
15027
+ * The payload is `null` while there is no active vessel: at the Space Center,
15028
+ * in an editor, in the tracking station with nothing flying, and after a
15029
+ * revert, a destroy or a recovery. A vessel out of contact is still the active
15030
+ * vessel and keeps its last value.
15031
+ *
12888
15032
  * @category Orbits and trajectories
12889
15033
  * @categoryDescription Orbits and trajectories
12890
15034
  * Where a craft is and where it is going: its orbit and patches, its manoeuvre
@@ -13380,6 +15524,12 @@ export interface ActionBinding {
13380
15524
  */
13381
15525
  action: string;
13382
15526
  /**
15527
+ * The class name of the part module the action belongs to (e.g.
15528
+ * `"ModuleDeployableSolarPanel"`), which tells apart two modules' actions of
15529
+ * the same label. `null` for an action of the part itself.
15530
+ */
15531
+ module?: string | null;
15532
+ /**
13383
15533
  * Named `KSPActionGroup` groups this action is bound to (e.g.
13384
15534
  * `["SAS","Custom01"]`). Never empty: an action bound to no group is not
13385
15535
  * emitted. Display labels, and possibly incomplete; see
@@ -13606,6 +15756,11 @@ export interface VesselPhysicsMode {
13606
15756
  * TWR, maximum TWR and a vessel-level burn-time estimate are derived by the
13607
15757
  * client from these fields, and are not streamed here.
13608
15758
  *
15759
+ * The payload is `null` while there is no active vessel: at the Space Center,
15760
+ * in an editor, in the tracking station with nothing flying, and after a
15761
+ * revert, a destroy or a recovery. A vessel out of contact is still the active
15762
+ * vessel and keeps its last value.
15763
+ *
13609
15764
  * @category Vessel
13610
15765
  */
13611
15766
  export interface VesselPropulsion {
@@ -13714,6 +15869,11 @@ export interface ResourceAmount {
13714
15869
  * says nothing about flow or rate.
13715
15870
  */
13716
15871
  active: boolean;
15872
+ /**
15873
+ * The resource's name as the game shows it, in the game's language, such as
15874
+ * "Electric Charge" for `ElectricCharge`. `null` where the game gives none.
15875
+ */
15876
+ displayName?: string | null;
13717
15877
  }
13718
15878
  /**
13719
15879
  * What the active vessel carries, keyed by resource name, each with its
@@ -13968,6 +16128,22 @@ export interface VesselTarget {
13968
16128
  */
13969
16129
  orbitRelativeVelocity?: Vec3Of<"m/s"> | null;
13970
16130
  /**
16131
+ * The turn about the reference body's pole, in radians, that carries a vector
16132
+ * of the game's scene axes, with its components taken in the order (x, z, y)
16133
+ * as Frames.SubjectRelative values are laid out, into the game's non-rotating
16134
+ * axes the orbits are defined against. It is what turns
16135
+ * `VesselTarget.relativePosition` and `VesselTarget.relativeVelocity` into the
16136
+ * same axes as a vessel's orbit. Null when the game's frame is not a turn
16137
+ * about the pole this tick, never 0.
16138
+ */
16139
+ sceneTurn?: Value<"rad"> | null;
16140
+ /**
16141
+ * The height above the reference body's datum, in metres, below which the
16142
+ * scene axes turn with the body's spin and above which they stand still (the
16143
+ * body's inverse-rotation altitude). Null when the game states none.
16144
+ */
16145
+ sceneTurnsBelow?: Value<"m"> | null;
16146
+ /**
13971
16147
  * The target's orbit. Null when the target has no orbit (it is landed, say, or
13972
16148
  * its orbit could not be resolved this tick).
13973
16149
  */
@@ -14238,6 +16414,24 @@ export declare enum PropagationCertification {
14238
16414
  CertifiedOnly = 2
14239
16415
  }
14240
16416
  /**
16417
+ * How the points of a `StateSeed`'s path are spread along it.
16418
+ *
16419
+ * @category Command arguments
16420
+ */
16421
+ export declare enum PathSpacing {
16422
+ /** Nothing was chosen: the provider spreads them as it does. */
16423
+ Unspecified = 0,
16424
+ /** The same time apart. */
16425
+ EvenTime = 1,
16426
+ /**
16427
+ * Evenly along the orbit through the seed: the same eccentric anomaly apart on
16428
+ * a closed orbit, the same hyperbolic anomaly apart on an open one. A fast
16429
+ * periapsis pass gets as many points as the slow far side. A path with no such
16430
+ * anomaly, a circular or radial one, is spread in time.
16431
+ */
16432
+ EvenAnomaly = 2
16433
+ }
16434
+ /**
14241
16435
  * The kinds of reference frame a control frame can be: the five frame types an
14242
16436
  * n-body physics mod offers, plus `ControlFrameKind.Unspecified`.
14243
16437
  *