@ksp-gonogo/sitrep-sdk 1.0.0-rc.47 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__generated__/contract.d.ts +232 -79
- package/dist/__generated__/contract.d.ts.map +1 -1
- package/dist/__generated__/contract.js.map +1 -1
- package/dist/__generated__/delay-roles.d.ts +1 -1
- package/dist/__generated__/delay-roles.d.ts.map +1 -1
- package/dist/__generated__/delay-roles.js +2 -0
- package/dist/__generated__/delay-roles.js.map +1 -1
- package/dist/__generated__/error-codes.d.ts +11 -11
- package/dist/__generated__/error-codes.d.ts.map +1 -1
- package/dist/__generated__/error-codes.js +12 -12
- package/dist/__generated__/error-codes.js.map +1 -1
- package/dist/__generated__/sample-kinds.d.ts +3 -1
- package/dist/__generated__/sample-kinds.d.ts.map +1 -1
- package/dist/__generated__/sample-kinds.js +3 -1
- package/dist/__generated__/sample-kinds.js.map +1 -1
- package/dist/__generated__/topic-map.d.ts +15 -11
- package/dist/__generated__/topic-map.d.ts.map +1 -1
- package/dist/__generated__/topic-map.js +3 -1
- package/dist/__generated__/topic-map.js.map +1 -1
- package/dist/__generated__/units.d.ts +2 -0
- package/dist/__generated__/units.d.ts.map +1 -1
- package/dist/__generated__/units.js +66 -35
- package/dist/__generated__/units.js.map +1 -1
- package/dist/api/contribution-slots.d.ts +28 -30
- package/dist/api/contribution-slots.d.ts.map +1 -1
- package/dist/api/contribution-slots.js +4 -4
- package/dist/api/contribution-slots.js.map +1 -1
- package/dist/api/error-codes.d.ts +3 -2
- package/dist/api/error-codes.d.ts.map +1 -1
- package/dist/api/error-codes.js +3 -2
- package/dist/api/error-codes.js.map +1 -1
- package/dist/api/index.d.ts +9 -7
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +7 -5
- package/dist/api/index.js.map +1 -1
- package/dist/api/logger-contract.d.ts +2 -1
- package/dist/api/logger-contract.d.ts.map +1 -1
- package/dist/api/logger.d.ts +6 -3
- package/dist/api/logger.d.ts.map +1 -1
- package/dist/api/logger.js +6 -3
- package/dist/api/logger.js.map +1 -1
- package/dist/api/plot-layers.d.ts +1 -1
- package/dist/api/plot-layers.js +1 -1
- package/dist/api/registry.d.ts +4 -2
- package/dist/api/registry.d.ts.map +1 -1
- package/dist/api/registry.js +4 -2
- package/dist/api/registry.js.map +1 -1
- package/dist/api/slots.d.ts +37 -37
- package/dist/api/slots.d.ts.map +1 -1
- package/dist/api/station-brokers.d.ts +12 -10
- package/dist/api/station-brokers.d.ts.map +1 -1
- package/dist/api/station-brokers.js +12 -10
- package/dist/api/station-brokers.js.map +1 -1
- package/dist/api/tiny-size.d.ts +2 -1
- package/dist/api/tiny-size.d.ts.map +1 -1
- package/dist/api/tiny-size.js +2 -1
- package/dist/api/tiny-size.js.map +1 -1
- package/dist/api/tone.d.ts +1 -1
- package/dist/api/types.d.ts +26 -21
- package/dist/api/types.d.ts.map +1 -1
- package/dist/binary-frame.d.ts +4 -4
- package/dist/binary-frame.js +2 -2
- package/dist/combine-readings.d.ts +4 -3
- package/dist/combine-readings.d.ts.map +1 -1
- package/dist/combine-readings.js +4 -3
- package/dist/combine-readings.js.map +1 -1
- package/dist/compat-versions.d.ts +1 -1
- package/dist/compat-versions.js +3 -3
- package/dist/contract-enum-names.d.ts +2 -2
- package/dist/contract-enum-names.js +2 -2
- package/dist/delay-roles.d.ts +6 -0
- package/dist/delay-roles.d.ts.map +1 -1
- package/dist/delay-roles.js +1 -0
- package/dist/delay-roles.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/ksp-enum-names.d.ts +4 -3
- package/dist/ksp-enum-names.d.ts.map +1 -1
- package/dist/ksp-enum-names.js +4 -3
- package/dist/ksp-enum-names.js.map +1 -1
- package/dist/locked.d.ts +1 -1
- package/dist/locked.js +1 -1
- package/dist/media/radio-support.d.ts +8 -7
- package/dist/media/radio-support.d.ts.map +1 -1
- package/dist/media/radio-support.js +5 -6
- package/dist/media/radio-support.js.map +1 -1
- package/dist/perf/PerfBudget.d.ts +2 -2
- package/dist/perf/PerfBudget.js +2 -2
- package/dist/raw-field-split.d.ts +1 -1
- package/dist/raw-field-split.js +1 -1
- package/dist/reading.d.ts +6 -6
- package/dist/reading.js +5 -5
- package/dist/reads-index.json +28 -0
- package/dist/spine/capability-lock.d.ts +1 -1
- package/dist/spine/catalog-fallback.d.ts +28 -0
- package/dist/spine/catalog-fallback.d.ts.map +1 -0
- package/dist/spine/catalog-fallback.js +120 -0
- package/dist/spine/catalog-fallback.js.map +1 -0
- package/dist/spine/centre-commands.d.ts +4 -0
- package/dist/spine/centre-commands.d.ts.map +1 -1
- package/dist/spine/centre-commands.js +13 -1
- package/dist/spine/centre-commands.js.map +1 -1
- package/dist/spine/client-timeline.d.ts +21 -4
- package/dist/spine/client-timeline.d.ts.map +1 -1
- package/dist/spine/client-timeline.js +69 -7
- package/dist/spine/client-timeline.js.map +1 -1
- package/dist/spine/client.d.ts +4 -0
- package/dist/spine/client.d.ts.map +1 -1
- package/dist/spine/client.js +59 -4
- package/dist/spine/client.js.map +1 -1
- package/dist/spine/command-gate.d.ts +1 -1
- package/dist/spine/command-gate.d.ts.map +1 -1
- package/dist/spine/command-gate.js +2 -1
- package/dist/spine/command-gate.js.map +1 -1
- package/dist/spine/command-outcomes.d.ts +13 -0
- package/dist/spine/command-outcomes.d.ts.map +1 -1
- package/dist/spine/command-outcomes.js +58 -1
- package/dist/spine/command-outcomes.js.map +1 -1
- package/dist/spine/context.d.ts +19 -1
- package/dist/spine/context.d.ts.map +1 -1
- package/dist/spine/context.js +26 -0
- package/dist/spine/context.js.map +1 -1
- package/dist/spine/core-reckoners.d.ts.map +1 -1
- package/dist/spine/core-reckoners.js +1 -34
- package/dist/spine/core-reckoners.js.map +1 -1
- package/dist/spine/delay-estimate.d.ts +41 -0
- package/dist/spine/delay-estimate.d.ts.map +1 -0
- package/dist/spine/delay-estimate.js +70 -0
- package/dist/spine/delay-estimate.js.map +1 -0
- package/dist/spine/index.d.ts +1 -0
- package/dist/spine/index.d.ts.map +1 -1
- package/dist/spine/index.js +1 -0
- package/dist/spine/index.js.map +1 -1
- package/dist/spine/lock-scope.d.ts +2 -2
- package/dist/spine/processors.d.ts +1 -1
- package/dist/spine/processors.d.ts.map +1 -1
- package/dist/spine/slot-ids.d.ts +1 -1
- package/dist/spine/slot-ids.d.ts.map +1 -1
- package/dist/spine/slot-ids.js +4 -4
- package/dist/spine/slot-ids.js.map +1 -1
- package/dist/spine/timeline-store.d.ts +103 -5
- package/dist/spine/timeline-store.d.ts.map +1 -1
- package/dist/spine/timeline-store.js +392 -21
- package/dist/spine/timeline-store.js.map +1 -1
- package/dist/spine/uplink-clients.d.ts +1 -1
- package/dist/spine/uplink-clients.d.ts.map +1 -1
- package/dist/spine/uplink-health.d.ts +15 -4
- package/dist/spine/uplink-health.d.ts.map +1 -1
- package/dist/spine/uplink-health.js +4 -1
- package/dist/spine/uplink-health.js.map +1 -1
- package/dist/spine/use-command.d.ts.map +1 -1
- package/dist/spine/use-command.js +51 -3
- package/dist/spine/use-command.js.map +1 -1
- package/dist/testing/install-act-gate-stretch.d.ts +1 -2
- package/dist/testing/install-act-gate-stretch.d.ts.map +1 -1
- package/dist/testing/install-act-gate-stretch.js +1 -2
- package/dist/testing/install-act-gate-stretch.js.map +1 -1
- package/dist/testing/render.d.ts +16 -3
- package/dist/testing/render.d.ts.map +1 -1
- package/dist/testing/render.js +16 -3
- package/dist/testing/render.js.map +1 -1
- package/dist/topics.d.ts +10 -11
- package/dist/topics.d.ts.map +1 -1
- package/dist/topics.js +9 -10
- package/dist/topics.js.map +1 -1
- package/dist/uplink-externals.d.ts +17 -7
- package/dist/uplink-externals.d.ts.map +1 -1
- package/dist/uplink-externals.js +17 -7
- package/dist/uplink-externals.js.map +1 -1
- package/dist/uplink-manifest.d.ts +8 -3
- package/dist/uplink-manifest.d.ts.map +1 -1
- package/dist/uplink-manifest.js +5 -1
- package/dist/uplink-manifest.js.map +1 -1
- package/package.json +1 -1
- package/src/__generated__/contract.ts +230 -76
- package/src/__generated__/delay-roles.ts +2 -0
- package/src/__generated__/error-codes.ts +13 -13
- package/src/__generated__/sample-kinds.ts +3 -1
- package/src/__generated__/topic-map.ts +19 -11
- package/src/__generated__/units.json +66 -35
- package/src/__generated__/units.ts +66 -35
- package/src/api/contribution-slots.ts +32 -34
- package/src/api/error-codes.ts +3 -2
- package/src/api/index.ts +15 -13
- package/src/api/logger-contract.ts +2 -1
- package/src/api/logger.ts +6 -3
- package/src/api/plot-layers.ts +1 -1
- package/src/api/registry.ts +4 -2
- package/src/api/slots.ts +37 -37
- package/src/api/station-brokers.ts +12 -10
- package/src/api/tiny-size.ts +2 -1
- package/src/api/tone.ts +1 -1
- package/src/api/types.ts +26 -21
- package/src/binary-frame.ts +4 -4
- package/src/combine-readings.ts +4 -3
- package/src/compat-versions.ts +3 -3
- package/src/contract-enum-names.ts +2 -2
- package/src/delay-roles.ts +7 -0
- package/src/index.ts +1 -1
- package/src/ksp-enum-names.ts +4 -3
- package/src/locked.ts +1 -1
- package/src/media/radio-support.ts +8 -7
- package/src/perf/PerfBudget.ts +2 -2
- package/src/raw-field-split.ts +1 -1
- package/src/reading.ts +6 -6
- package/src/spine/__fixtures__/switch/back-to-craft.jsonl +101 -0
- package/src/spine/__fixtures__/switch/late-sent-frame.jsonl +16 -0
- package/src/spine/__fixtures__/switch/linked-craft.jsonl +63 -0
- package/src/spine/__fixtures__/switch/station-trim.jsonl +229 -0
- package/src/spine/__fixtures__/switch/switch-with-scene.jsonl +110 -0
- package/src/spine/__fixtures__/switch/unlinked-craft.jsonl +46 -0
- package/src/spine/capability-lock.ts +1 -1
- package/src/spine/catalog-fallback.ts +152 -0
- package/src/spine/centre-commands.ts +25 -1
- package/src/spine/client-timeline.ts +73 -7
- package/src/spine/client.ts +74 -4
- package/src/spine/command-gate.ts +3 -2
- package/src/spine/command-outcomes.ts +62 -1
- package/src/spine/context.tsx +35 -2
- package/src/spine/core-reckoners.ts +1 -40
- package/src/spine/delay-estimate.ts +88 -0
- package/src/spine/index.ts +1 -0
- package/src/spine/lock-scope.ts +2 -2
- package/src/spine/processors.ts +1 -1
- package/src/spine/slot-ids.ts +4 -4
- package/src/spine/timeline-store.ts +461 -18
- package/src/spine/uplink-clients.ts +1 -1
- package/src/spine/uplink-health.ts +16 -3
- package/src/spine/use-command.ts +67 -2
- package/src/testing/install-act-gate-stretch.ts +1 -2
- package/src/testing/render.tsx +16 -3
- package/src/topics.ts +9 -10
- package/src/uplink-externals.ts +17 -7
- package/src/uplink-manifest.ts +8 -3
|
@@ -2,6 +2,31 @@ import { Value, Vec3Of } from '../value.js';
|
|
|
2
2
|
import { ProviderExtensions } from '../extensions.js';
|
|
3
3
|
import { CommandErrorCode, FaultCode } from './error-codes.js';
|
|
4
4
|
/**
|
|
5
|
+
* Which vessel the game is flying right now: its id and name, and nothing of
|
|
6
|
+
* where it is or how it is doing. Changing the active vessel is a change of
|
|
7
|
+
* scene that every command centre can see whatever the radio link to the new
|
|
8
|
+
* vessel, so this is read with no signal delay and does not depend on a link.
|
|
9
|
+
* Useful for naming the craft the operator is flying while its telemetry has
|
|
10
|
+
* not arrived. Used by the dashboard header.
|
|
11
|
+
*
|
|
12
|
+
* The payload is `null` (no key emitted) outside the flight scene. It carries
|
|
13
|
+
* no per-payload `Meta` of its own (the envelope's applies). Position,
|
|
14
|
+
* situation, distance and link state of the vessel are not here and reach a
|
|
15
|
+
* centre only through `vessel.identity` and the other `vessel.*` Topics,
|
|
16
|
+
* delayed.
|
|
17
|
+
*
|
|
18
|
+
* @category Flights
|
|
19
|
+
*/
|
|
20
|
+
export interface ActiveVessel {
|
|
21
|
+
/**
|
|
22
|
+
* The vessel's stable guid, the same id `vessel.identity` carries once its
|
|
23
|
+
* telemetry arrives.
|
|
24
|
+
*/
|
|
25
|
+
vesselId: string;
|
|
26
|
+
/** The vessel's display name. */
|
|
27
|
+
name: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
5
30
|
* The JSON header of a binary frame: everything about the delivery except the
|
|
6
31
|
* bytes themselves.
|
|
7
32
|
*
|
|
@@ -1266,6 +1291,14 @@ export interface CommandCentreEntry {
|
|
|
1266
1291
|
* no delay to quote.
|
|
1267
1292
|
*/
|
|
1268
1293
|
delayQuality?: string | null;
|
|
1294
|
+
/**
|
|
1295
|
+
* Whether commands can be sent from this centre: absent or true for every
|
|
1296
|
+
* centre that can, false for a craft with a kerbal aboard that is listed only
|
|
1297
|
+
* so a message can be addressed to it. Such an entry is never a vantage to
|
|
1298
|
+
* choose, is not active, and has no command rights; what is said to it waits
|
|
1299
|
+
* in its ledger until a screen sits aboard.
|
|
1300
|
+
*/
|
|
1301
|
+
commandable?: boolean | null;
|
|
1269
1302
|
}
|
|
1270
1303
|
/**
|
|
1271
1304
|
* One command centre that was on `commandCentre.roster` earlier in this
|
|
@@ -1398,8 +1431,10 @@ export interface CentreDelayEntry {
|
|
|
1398
1431
|
* **Sparse.** A centre is listed only when it has a delay of its own. The home
|
|
1399
1432
|
* centre is never listed: its delay is `comms.delay`, which also carries the
|
|
1400
1433
|
* hold through a loss of signal. A centre other than home that is not listed
|
|
1401
|
-
* has no route to the craft
|
|
1402
|
-
*
|
|
1434
|
+
* has either no route to the craft or has not yet heard it, and
|
|
1435
|
+
* `CommandCentreActiveVesselDelay.noRoute` says which for the receiving
|
|
1436
|
+
* centre. Neither absence is a zero, so a client must not quote a delay for a
|
|
1437
|
+
* centre that is missing from the list.
|
|
1403
1438
|
*
|
|
1404
1439
|
* A crewed centre that is the active craft is listed at an explicit zero: a
|
|
1405
1440
|
* craft is no distance from itself.
|
|
@@ -1414,6 +1449,15 @@ export interface CentreDelayEntry {
|
|
|
1414
1449
|
export interface CommandCentreActiveVesselDelay {
|
|
1415
1450
|
/** Every centre with a delay of its own to the active craft. */
|
|
1416
1451
|
centres: CentreDelayEntry[];
|
|
1452
|
+
/**
|
|
1453
|
+
* Whether the command centre this payload is sent to has no route to the
|
|
1454
|
+
* active craft, so nothing the craft sends will ever reach it. False while the
|
|
1455
|
+
* centre has a route, including the first signal delay after a switch to it,
|
|
1456
|
+
* when the craft's first report is still on its way. A screen at a centre with
|
|
1457
|
+
* this set has no link to report on and should say so rather than wait for a
|
|
1458
|
+
* first signal.
|
|
1459
|
+
*/
|
|
1460
|
+
noRoute: boolean;
|
|
1417
1461
|
}
|
|
1418
1462
|
/**
|
|
1419
1463
|
* One gated command and what its gate says right now, evaluated with no
|
|
@@ -1802,7 +1846,7 @@ export interface CommcastMessageSendArgs {
|
|
|
1802
1846
|
/**
|
|
1803
1847
|
* What `commcast.message.send` (args `CommcastMessageSendArgs`) did with a
|
|
1804
1848
|
* message: which command centres it left for, and which it could not leave
|
|
1805
|
-
* for. `commcast.message.send` is the command, of the
|
|
1849
|
+
* for. `commcast.message.send` is the command, of Commcast, the Gonogo mod's
|
|
1806
1850
|
* group messaging and radio, that sends a text message to a group of command
|
|
1807
1851
|
* centres. A centre is a `commandCentre.roster` entry, a place commands are
|
|
1808
1852
|
* sent from. It says nothing of arrival: a listener is a centre that receives
|
|
@@ -1822,11 +1866,21 @@ export interface CommcastSendReceipt {
|
|
|
1822
1866
|
addressed: string[];
|
|
1823
1867
|
/**
|
|
1824
1868
|
* Every member it was meant for that no signal from the speaker could reach
|
|
1825
|
-
* when it was said, sorted by id
|
|
1826
|
-
*
|
|
1827
|
-
* naming them in
|
|
1869
|
+
* when it was said, sorted by id, and that the host cannot keep the message
|
|
1870
|
+
* for either. The message was never sent to these centres, so none of them
|
|
1871
|
+
* will ever acknowledge it; to reach them, send it again later naming them in
|
|
1872
|
+
* `to`. Empty on a host that keeps messages for centres it cannot reach yet,
|
|
1873
|
+
* which lists those in `CommcastSendReceipt.queued` instead.
|
|
1828
1874
|
*/
|
|
1829
1875
|
unreached: string[];
|
|
1876
|
+
/**
|
|
1877
|
+
* Every member it was meant for that no signal from the speaker could reach
|
|
1878
|
+
* when it was said, and that the host is keeping the message for, sorted by
|
|
1879
|
+
* id. It is carried to each as soon as a path opens, kept with the game until
|
|
1880
|
+
* then, and the member acknowledges it when a screen at its centre reads it.
|
|
1881
|
+
* Absent from a host that keeps nothing.
|
|
1882
|
+
*/
|
|
1883
|
+
queued?: string[] | null;
|
|
1830
1884
|
}
|
|
1831
1885
|
/**
|
|
1832
1886
|
* Tell a message's author it arrived. The acknowledgement travels back to the
|
|
@@ -1871,37 +1925,49 @@ export interface CommcastRadioTransmitArgs {
|
|
|
1871
1925
|
author: CommcastAuthor;
|
|
1872
1926
|
}
|
|
1873
1927
|
/**
|
|
1874
|
-
* One
|
|
1875
|
-
*
|
|
1876
|
-
*
|
|
1928
|
+
* One command centre's ledger of messages: what it said, and what reached it,
|
|
1929
|
+
* as the state `commcast.ledger` carries.
|
|
1930
|
+
*
|
|
1931
|
+
* **State, read like telemetry.** A message is a command from one centre to
|
|
1932
|
+
* another. It travels like any command, waiting for a path and cancellable
|
|
1933
|
+
* from the sender's uplink queue, and what it does on arrival is write this
|
|
1934
|
+
* ledger at the recipient. A screen reads the ledger as the latest value of a
|
|
1935
|
+
* state, and a screen that opens at a centre later is told the whole ledger on
|
|
1936
|
+
* connecting.
|
|
1877
1937
|
*
|
|
1878
|
-
* **Addressed, never broadcast.** A connection receives only the
|
|
1879
|
-
*
|
|
1880
|
-
* could see them when it spoke, so a centre added far away starts receiving
|
|
1881
|
-
* once word of it has reached the speaker, and a member with no path from the
|
|
1882
|
-
* speaker misses what was said.
|
|
1938
|
+
* **Addressed, never broadcast.** A connection receives only the ledger of its
|
|
1939
|
+
* own vantage.
|
|
1883
1940
|
*
|
|
1884
|
-
*
|
|
1885
|
-
|
|
1941
|
+
* @category Comms
|
|
1942
|
+
*/
|
|
1943
|
+
export interface CommcastLedger {
|
|
1944
|
+
/**
|
|
1945
|
+
* Every entry the ledger keeps, oldest first: what this centre said and what
|
|
1946
|
+
* reached it.
|
|
1947
|
+
*/
|
|
1948
|
+
items: CommcastLedgerItem[];
|
|
1949
|
+
}
|
|
1950
|
+
/**
|
|
1951
|
+
* One entry of a centre's ledger.
|
|
1952
|
+
*
|
|
1953
|
+
* Two kinds, by `CommcastLedgerItem.kind`:
|
|
1886
1954
|
*
|
|
1887
|
-
*
|
|
1955
|
+
* - `"members"`: a group opened or grew. `CommcastLedgerItem.members` is its
|
|
1956
|
+
* whole membership after the change, `CommcastLedgerItem.added` who came in
|
|
1957
|
+
* - `"text"`: a message, `CommcastLedgerItem.id` and `CommcastLedgerItem.body`
|
|
1888
1958
|
*
|
|
1889
|
-
*
|
|
1890
|
-
*
|
|
1891
|
-
*
|
|
1892
|
-
*
|
|
1893
|
-
* (`CommcastTraffic.to` names it), where another screen at that centre reads
|
|
1894
|
-
* it as an outgoing message rather than a received one
|
|
1895
|
-
* - `"ack"`: a member acknowledging `CommcastTraffic.messageId`, addressed to
|
|
1896
|
-
* that message's author alone
|
|
1959
|
+
* An entry this centre said has no `CommcastLedgerItem.arrivedUt` and carries
|
|
1960
|
+
* how each recipient stands: `CommcastLedgerItem.delivered`,
|
|
1961
|
+
* `CommcastLedgerItem.ended` and `CommcastLedgerItem.read`. An entry that
|
|
1962
|
+
* reached this centre has `CommcastLedgerItem.arrivedUt` and none of those.
|
|
1897
1963
|
*
|
|
1898
1964
|
* @category Comms
|
|
1899
1965
|
*/
|
|
1900
|
-
export interface
|
|
1901
|
-
/** `"members"
|
|
1966
|
+
export interface CommcastLedgerItem {
|
|
1967
|
+
/** `"members"` or `"text"`. */
|
|
1902
1968
|
kind: string;
|
|
1903
|
-
/** A text message's own id, or a membership change's.
|
|
1904
|
-
id
|
|
1969
|
+
/** A text message's own id, or a membership change's. */
|
|
1970
|
+
id: string;
|
|
1905
1971
|
/** The group, by the id it was opened with. */
|
|
1906
1972
|
groupId: string;
|
|
1907
1973
|
/**
|
|
@@ -1911,7 +1977,7 @@ export interface CommcastTraffic {
|
|
|
1911
1977
|
from: string;
|
|
1912
1978
|
/** How the speaker describes itself, for display only. */
|
|
1913
1979
|
author: CommcastAuthor;
|
|
1914
|
-
/** The UT it was said at
|
|
1980
|
+
/** The UT it was said at. */
|
|
1915
1981
|
sentUt: Value<"ut">;
|
|
1916
1982
|
/**
|
|
1917
1983
|
* Everyone it was addressed to, the speaker included, as the speaker could see
|
|
@@ -1924,26 +1990,53 @@ export interface CommcastTraffic {
|
|
|
1924
1990
|
added?: string[] | null;
|
|
1925
1991
|
/** A `"text"` message's words. Absent otherwise. */
|
|
1926
1992
|
body?: string | null;
|
|
1927
|
-
/** The
|
|
1928
|
-
|
|
1929
|
-
/**
|
|
1930
|
-
*
|
|
1931
|
-
*
|
|
1932
|
-
*
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1993
|
+
/** The UT it reached this centre. Absent from an entry this centre said. */
|
|
1994
|
+
arrivedUt?: Value<"ut"> | null;
|
|
1995
|
+
/**
|
|
1996
|
+
* For an entry this centre said: the UT each recipient's copy ran, keyed by
|
|
1997
|
+
* recipient, as the reply reached here. A recipient with no key has not been
|
|
1998
|
+
* heard from.
|
|
1999
|
+
*/
|
|
2000
|
+
delivered?: {
|
|
2001
|
+
[key: string]: Value<"ut">;
|
|
2002
|
+
} | null;
|
|
2003
|
+
/**
|
|
2004
|
+
* For an entry this centre said: how a recipient's copy ended without running,
|
|
2005
|
+
* `"cancelled"` or `"expired"`, keyed by recipient.
|
|
2006
|
+
*/
|
|
2007
|
+
ended?: {
|
|
2008
|
+
[key: string]: string;
|
|
2009
|
+
} | null;
|
|
2010
|
+
/**
|
|
2011
|
+
* For an entry this centre said: when a screen at each recipient read it,
|
|
2012
|
+
* keyed by recipient, as the notice reached here.
|
|
2013
|
+
*/
|
|
2014
|
+
read?: {
|
|
2015
|
+
[key: string]: CommcastRead;
|
|
1939
2016
|
} | null;
|
|
1940
2017
|
}
|
|
1941
2018
|
/**
|
|
2019
|
+
* A recipient's screen reading a message: when, and who read it.
|
|
2020
|
+
*
|
|
2021
|
+
* @category Comms
|
|
2022
|
+
*/
|
|
2023
|
+
export interface CommcastRead {
|
|
2024
|
+
/** The UT a screen at the recipient read it. */
|
|
2025
|
+
at: Value<"ut">;
|
|
2026
|
+
/** The reading device's own stable key. */
|
|
2027
|
+
stationKey: string;
|
|
2028
|
+
/**
|
|
2029
|
+
* Which end of the light-path the screen that read it sits at, in the client's
|
|
2030
|
+
* own vocabulary.
|
|
2031
|
+
*/
|
|
2032
|
+
seat: string;
|
|
2033
|
+
}
|
|
2034
|
+
/**
|
|
1942
2035
|
* The first segment of every `commcast.radio` frame, as UTF-8 JSON. The
|
|
1943
2036
|
* segments after it are that batch's raw Opus packets, 20 ms each, in order.
|
|
1944
2037
|
*
|
|
1945
2038
|
* `commcast.radio` is carried in BinaryLane frames and is addressed exactly as
|
|
1946
|
-
*
|
|
2039
|
+
* CommcastTraffic is: a connection hears only transmissions to groups its
|
|
1947
2040
|
* vantage belongs to, one signal delay after each batch was spoken. Every
|
|
1948
2041
|
* frame carries this whole description, so a listener that starts hearing
|
|
1949
2042
|
* partway through a keying places it from the first frame it gets.
|
|
@@ -2479,7 +2572,7 @@ export declare enum CommsDelaySource {
|
|
|
2479
2572
|
}
|
|
2480
2573
|
/**
|
|
2481
2574
|
* The `comms.delay` payload: the one-way signal delay to the active vessel,
|
|
2482
|
-
* gated by the `
|
|
2575
|
+
* gated by the `SIGNAL_DELAY/enabled` setting. `CommsDelay.oneWaySeconds`
|
|
2483
2576
|
* tells two different "no delay" cases apart by value:
|
|
2484
2577
|
*
|
|
2485
2578
|
* - **null**: no measurable `CommsPath` (no path home, or incomplete hop
|
|
@@ -2490,11 +2583,10 @@ export declare enum CommsDelaySource {
|
|
|
2490
2583
|
* says the vessel is connected; the last figure before that is the one to
|
|
2491
2584
|
* hold. A route its plan still holds through that stretch is offered as a
|
|
2492
2585
|
* prediction on `comms.route`, never as this delay.
|
|
2493
|
-
* - **0**: the delay feature is disabled (`
|
|
2494
|
-
*
|
|
2495
|
-
* `
|
|
2496
|
-
*
|
|
2497
|
-
* null.
|
|
2586
|
+
* - **0**: the delay feature is disabled (`SIGNAL_DELAY/enabled` is false). A
|
|
2587
|
+
* genuine "zero delay applied", not an absence. `CommsDelay.source` is also
|
|
2588
|
+
* `CommsDelaySource.None` here: the two cases share the same `Source` and
|
|
2589
|
+
* are told apart only by whether the value is null.
|
|
2498
2590
|
* - a real number: `CommsDelay.source` is `CommsDelaySource.SignalDelay`, a
|
|
2499
2591
|
* signal delay computed over the hop geometry of the comms model in use.
|
|
2500
2592
|
*
|
|
@@ -3859,6 +3951,14 @@ export interface EventMsg {
|
|
|
3859
3951
|
* keyframe cadence, and on `timeline-reset`; absent means unknown, never zero.
|
|
3860
3952
|
*/
|
|
3861
3953
|
keyframeIntervalUt?: number;
|
|
3954
|
+
/**
|
|
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`.
|
|
3960
|
+
*/
|
|
3961
|
+
keptThroughUt?: number;
|
|
3862
3962
|
}
|
|
3863
3963
|
/**
|
|
3864
3964
|
* A command the client sends: the command id, its arguments, and a request id
|
|
@@ -6069,8 +6169,8 @@ export interface MissionObjectiveEntry {
|
|
|
6069
6169
|
*
|
|
6070
6170
|
* @category Missions
|
|
6071
6171
|
* @categoryDescription Missions
|
|
6072
|
-
* A Making History
|
|
6073
|
-
* far each of its objectives has got.
|
|
6172
|
+
* A mission of KSP's Making History expansion in the current game: whether one
|
|
6173
|
+
* is running and how far each of its objectives has got.
|
|
6074
6174
|
*/
|
|
6075
6175
|
export interface MissionStatus {
|
|
6076
6176
|
/** The mission's title, localised. */
|
|
@@ -6174,6 +6274,23 @@ export interface ModSettingRow {
|
|
|
6174
6274
|
value?: string | null;
|
|
6175
6275
|
/** Why the value cannot be read right now, or null when it was. */
|
|
6176
6276
|
unavailable?: string | null;
|
|
6277
|
+
/**
|
|
6278
|
+
* The tags the Uplink gave the setting, such as `setup` for one offered among
|
|
6279
|
+
* the first-run setup's recommended settings. Empty for none; a client ignores
|
|
6280
|
+
* a tag it does not know.
|
|
6281
|
+
*/
|
|
6282
|
+
tags: string[];
|
|
6283
|
+
/**
|
|
6284
|
+
* The name of the Uplink holding the value where it is, or null when nothing
|
|
6285
|
+
* locks it. A locked setting cannot be changed, and `settings.mod.write`
|
|
6286
|
+
* refuses it.
|
|
6287
|
+
*/
|
|
6288
|
+
lockedBy?: string | null;
|
|
6289
|
+
/**
|
|
6290
|
+
* Why `ModSettingRow.lockedBy` holds the value, for the operator. Null when
|
|
6291
|
+
* nothing locks it.
|
|
6292
|
+
*/
|
|
6293
|
+
lockReason?: string | null;
|
|
6177
6294
|
}
|
|
6178
6295
|
/**
|
|
6179
6296
|
* Arguments to `settings.mod.write`: change one of a host mod's own settings
|
|
@@ -8932,9 +9049,9 @@ export interface ExperimentBreakdownEntry {
|
|
|
8932
9049
|
}
|
|
8933
9050
|
/**
|
|
8934
9051
|
* One entry in the `science.archive` Topic payload: a single subject out of
|
|
8935
|
-
* the whole-career R&D archive
|
|
8936
|
-
*
|
|
8937
|
-
*
|
|
9052
|
+
* the whole-career R&D archive. That is every subject the career has ever
|
|
9053
|
+
* collected or recovered, across every mission and every body, not scoped to
|
|
9054
|
+
* the active vessel.
|
|
8938
9055
|
*
|
|
8939
9056
|
* The Topic payload is a bare array (`ArchiveEntry[]`), or `null` when the
|
|
8940
9057
|
* save has no R&D to walk (Sandbox mode). A save with R&D but nothing
|
|
@@ -9047,8 +9164,9 @@ export interface ScienceArrival {
|
|
|
9047
9164
|
*
|
|
9048
9165
|
* @category Mod settings
|
|
9049
9166
|
* @categoryDescription Mod settings
|
|
9050
|
-
*
|
|
9051
|
-
*
|
|
9167
|
+
* Reading the operator's settings from a client. There are three kinds:
|
|
9168
|
+
* Gonogo's own with its Uplinks', a host mod's, and those that live only in
|
|
9169
|
+
* the browser. Gonogo's own settings and its Uplinks' are one Topic, read with
|
|
9052
9170
|
* `useTelemetry("settings.gonogo")`. A host mod's own settings, those of the
|
|
9053
9171
|
* KSP mod an Uplink wraps, are read through that Uplink with
|
|
9054
9172
|
* `useModSettings(uplinkId)`. A setting that lives only in the browser has no
|
|
@@ -9489,8 +9607,7 @@ export interface CrewRosterEntry {
|
|
|
9489
9607
|
}
|
|
9490
9608
|
/**
|
|
9491
9609
|
* One craft file in the `spaceCenter.savedShips` channel, a saved VAB or SPH
|
|
9492
|
-
* design the player can launch, read from the save's craft folders
|
|
9493
|
-
* stock `CraftProfileInfo` metadata loader.
|
|
9610
|
+
* design the player can launch, read from the save's craft folders.
|
|
9494
9611
|
*
|
|
9495
9612
|
* The channel is a bare array of these entries, one per `.craft` file keyed by
|
|
9496
9613
|
* `SavedShipEntry.file`. The whole payload is `null` (not an empty array) when
|
|
@@ -9691,7 +9808,7 @@ export interface AstronautComplexInfo {
|
|
|
9691
9808
|
* launch site (`ksc`/`launchSite` kinds, the same sites as `LaunchSiteEntry`,
|
|
9692
9809
|
* limited to sites with a set spawn-point coordinate) and every surface
|
|
9693
9810
|
* contract waypoint whose contract is Active or Offered (`contractTarget`
|
|
9694
|
-
* kind
|
|
9811
|
+
* kind).
|
|
9695
9812
|
*
|
|
9696
9813
|
* The channel is a bare array of these entries, one per POI keyed by
|
|
9697
9814
|
* `SpaceCenterPoiEntry.id`. The whole payload is `null` (not an empty array)
|
|
@@ -9815,13 +9932,12 @@ export interface StageDeltaVEntry {
|
|
|
9815
9932
|
} | null;
|
|
9816
9933
|
}
|
|
9817
9934
|
/**
|
|
9818
|
-
* The whole-vessel ΔV rollup the game's own ΔV simulation
|
|
9819
|
-
*
|
|
9820
|
-
*
|
|
9821
|
-
*
|
|
9822
|
-
*
|
|
9823
|
-
*
|
|
9824
|
-
* envelope.
|
|
9935
|
+
* The whole-vessel ΔV rollup the game's own ΔV simulation exposes alongside
|
|
9936
|
+
* the per-stage `StageDeltaVEntry` list: the ΔV-producing stage count plus the
|
|
9937
|
+
* vacuum, sea-level and current totals and total burn time. A single object,
|
|
9938
|
+
* or `null` when the stock simulation is not ready or there is no active
|
|
9939
|
+
* vessel. Every field is `null` when its raw value is absent or non-finite.
|
|
9940
|
+
* Carries no `meta` of its own: provenance rides the envelope.
|
|
9825
9941
|
*
|
|
9826
9942
|
* @category Vessel
|
|
9827
9943
|
*/
|
|
@@ -9844,6 +9960,42 @@ export interface StageDeltaVSummary {
|
|
|
9844
9960
|
totalBurnTime?: Value<"s"> | null;
|
|
9845
9961
|
}
|
|
9846
9962
|
/**
|
|
9963
|
+
* One vessel of the save the operator can switch to: who it is, and nothing of
|
|
9964
|
+
* where it is or how it is doing.
|
|
9965
|
+
*
|
|
9966
|
+
* @category Flights
|
|
9967
|
+
*/
|
|
9968
|
+
export interface SwitchableVessel {
|
|
9969
|
+
/** The vessel's stable guid, the id `ksp.switchVessel` takes. */
|
|
9970
|
+
vesselId: string;
|
|
9971
|
+
/** The vessel's display name. */
|
|
9972
|
+
name: string;
|
|
9973
|
+
/** The vessel's type. */
|
|
9974
|
+
vesselType?: VesselType | null;
|
|
9975
|
+
}
|
|
9976
|
+
/**
|
|
9977
|
+
* The other vessels in the save that the game's own vessel switching offers,
|
|
9978
|
+
* as `{ "entries": [ ... ] }`. Switching to a vessel is a change of scene,
|
|
9979
|
+
* which every command centre can do whatever the radio link to that vessel, so
|
|
9980
|
+
* this list does not depend on one: a vessel with no link to any centre is on
|
|
9981
|
+
* it. It names vessels and carries no position, distance, situation or any
|
|
9982
|
+
* other state of one, which a centre may learn only through delayed telemetry.
|
|
9983
|
+
*
|
|
9984
|
+
* The active vessel is not on the list. The payload is `null` (no key emitted)
|
|
9985
|
+
* outside the flight scene, where there is no vessel to switch from. Not
|
|
9986
|
+
* delayed by signal delay: it is a fact about the save, and carries no
|
|
9987
|
+
* per-payload `Meta` of its own (the envelope's applies).
|
|
9988
|
+
*
|
|
9989
|
+
* @category Flights
|
|
9990
|
+
*/
|
|
9991
|
+
export interface SwitchableVessels {
|
|
9992
|
+
/**
|
|
9993
|
+
* Every other vessel of the save the game offers to switch to, in id order.
|
|
9994
|
+
* Empty, never null, when there is none.
|
|
9995
|
+
*/
|
|
9996
|
+
entries: SwitchableVessel[];
|
|
9997
|
+
}
|
|
9998
|
+
/**
|
|
9847
9999
|
* Every celestial body in the game, as a tree, wrapped as `{ "bodies": [ ... ]
|
|
9848
10000
|
* }`. The whole payload is `null`, not an empty list, when no sample has been
|
|
9849
10001
|
* taken yet, so "no data yet" and "zero bodies" stay distinct.
|
|
@@ -12980,9 +13132,9 @@ export interface OrbitEncounter {
|
|
|
12980
13132
|
bodyIndex?: number | null;
|
|
12981
13133
|
}
|
|
12982
13134
|
/**
|
|
12983
|
-
* KSP's own maintained state vector for the active vessel
|
|
12984
|
-
*
|
|
12985
|
-
*
|
|
13135
|
+
* KSP's own maintained state vector for the active vessel, relative to the
|
|
13136
|
+
* body it orbits, in the fixed frame. Read `vessel.orbit` for altitude and
|
|
13137
|
+
* velocity.
|
|
12986
13138
|
*
|
|
12987
13139
|
* Absent when the state vector or the frame flag could not be read.
|
|
12988
13140
|
*
|
|
@@ -13738,9 +13890,9 @@ export interface ClosestApproach {
|
|
|
13738
13890
|
trajectoryKind: TrajectoryKind;
|
|
13739
13891
|
}
|
|
13740
13892
|
/**
|
|
13741
|
-
* The active vessel's current target
|
|
13742
|
-
* `VesselTarget.relativePosition`/`VesselTarget.relativeVelocity` both
|
|
13743
|
-
* one `Vec3` shape.
|
|
13893
|
+
* The active vessel's current target, with nothing about any other vessel's
|
|
13894
|
+
* target. `VesselTarget.relativePosition`/`VesselTarget.relativeVelocity` both
|
|
13895
|
+
* use the one `Vec3` shape.
|
|
13744
13896
|
*
|
|
13745
13897
|
* `VesselTarget.orbit` reuses `VesselOrbit` itself (not a separate "target
|
|
13746
13898
|
* orbit" shape), so a client propagates a target the same way as the active
|
|
@@ -14006,9 +14158,10 @@ export interface WarpState {
|
|
|
14006
14158
|
* when the game has no warp controller to read it off (no scene that can
|
|
14007
14159
|
* warp).
|
|
14008
14160
|
*
|
|
14009
|
-
* The table is configuration, not a constant:
|
|
14010
|
-
*
|
|
14011
|
-
* install. Read the rate here rather than
|
|
14161
|
+
* The table is configuration, not a constant: planet-pack mods such as
|
|
14162
|
+
* Kopernicus and RealSolarSystem republish it, so a rung stock runs at 100x
|
|
14163
|
+
* may run at 10000x on another install. Read the rate here rather than
|
|
14164
|
+
* assuming stock's table.
|
|
14012
14165
|
*/
|
|
14013
14166
|
warpRates?: Value<"1">[] | null;
|
|
14014
14167
|
/**
|
|
@@ -14046,10 +14199,10 @@ export interface WarpState {
|
|
|
14046
14199
|
* finest spacing the record ever has, and `WarpState.observationQuantumUt` at
|
|
14047
14200
|
* 1x. Constant for the life of the mod.
|
|
14048
14201
|
*
|
|
14049
|
-
*
|
|
14050
|
-
*
|
|
14051
|
-
*
|
|
14052
|
-
*
|
|
14202
|
+
* A straight line between two samples this far apart is as fine as the record
|
|
14203
|
+
* gets, so a chart can draw it. Where the quantum is wider, the span beyond
|
|
14204
|
+
* this is one the sampling skipped because of warp, and a line across it that
|
|
14205
|
+
* no model of the value carries asserts a path nothing observed.
|
|
14053
14206
|
*/
|
|
14054
14207
|
sampleIntervalUt: Value<"s">;
|
|
14055
14208
|
/** The payload's provenance (always `"game"`). */
|