@rise-maritime/keelson-js 0.5.3 → 0.6.0-alpha.202.dev.1

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 (121) hide show
  1. package/dist/index.d.ts +524 -1
  2. package/dist/index.js +114 -5
  3. package/dist/index.test.js +57 -0
  4. package/dist/interfaces/AlarmAck.d.ts +62 -0
  5. package/dist/interfaces/AlarmAck.js +218 -0
  6. package/dist/interfaces/Configurable.d.ts +24 -18
  7. package/dist/interfaces/Configurable.js +24 -22
  8. package/dist/interfaces/Coordinate.d.ts +38 -0
  9. package/dist/interfaces/Coordinate.js +82 -0
  10. package/dist/interfaces/ErrorResponse.d.ts +1 -1
  11. package/dist/interfaces/ErrorResponse.js +1 -1
  12. package/dist/interfaces/MavlinkCommand.d.ts +24 -18
  13. package/dist/interfaces/MavlinkCommand.js +24 -22
  14. package/dist/interfaces/Mission.d.ts +128 -0
  15. package/dist/interfaces/Mission.js +800 -0
  16. package/dist/interfaces/NetworkPingPong.d.ts +16 -16
  17. package/dist/interfaces/NetworkPingPong.js +16 -16
  18. package/dist/interfaces/ReplayControl.d.ts +72 -30
  19. package/dist/interfaces/ReplayControl.js +72 -58
  20. package/dist/interfaces/Route.d.ts +640 -0
  21. package/dist/interfaces/Route.js +4180 -0
  22. package/dist/interfaces/RoutePlanner.d.ts +152 -0
  23. package/dist/interfaces/RoutePlanner.js +268 -0
  24. package/dist/interfaces/ScenarioCheckpoint.d.ts +154 -0
  25. package/dist/interfaces/ScenarioCheckpoint.js +694 -0
  26. package/dist/interfaces/ScenarioControl.d.ts +144 -0
  27. package/dist/interfaces/ScenarioControl.js +552 -0
  28. package/dist/interfaces/Severity.d.ts +22 -0
  29. package/dist/interfaces/Severity.js +72 -0
  30. package/dist/interfaces/SimulationControl.d.ts +69 -0
  31. package/dist/interfaces/SimulationControl.js +153 -0
  32. package/dist/interfaces/Subscriber.d.ts +24 -18
  33. package/dist/interfaces/Subscriber.js +24 -22
  34. package/dist/interfaces/VehicleCommon.d.ts +1 -32
  35. package/dist/interfaces/VehicleCommon.js +2 -74
  36. package/dist/interfaces/VehicleControl.d.ts +34 -28
  37. package/dist/interfaces/VehicleControl.js +34 -22
  38. package/dist/interfaces/VehicleGeofence.d.ts +26 -19
  39. package/dist/interfaces/VehicleGeofence.js +40 -37
  40. package/dist/interfaces/VehicleLifecycle.d.ts +32 -20
  41. package/dist/interfaces/VehicleLifecycle.js +32 -28
  42. package/dist/interfaces/VehicleMission.d.ts +42 -97
  43. package/dist/interfaces/VehicleMission.js +41 -696
  44. package/dist/interfaces/VehicleNavigation.d.ts +30 -24
  45. package/dist/interfaces/VehicleNavigation.js +30 -22
  46. package/dist/interfaces/VehicleParam.d.ts +48 -24
  47. package/dist/interfaces/VehicleParam.js +48 -40
  48. package/dist/interfaces/VehicleSimulatorControl.d.ts +57 -0
  49. package/dist/interfaces/VehicleSimulatorControl.js +155 -0
  50. package/dist/interfaces/WHEPProxy.d.ts +16 -16
  51. package/dist/interfaces/WHEPProxy.js +16 -16
  52. package/dist/interfaces/foxglove/GeoJSON.d.ts +27 -0
  53. package/dist/interfaces/foxglove/GeoJSON.js +65 -0
  54. package/dist/interfaces/foxglove/LocationFix.d.ts +49 -0
  55. package/dist/interfaces/foxglove/LocationFix.js +246 -0
  56. package/dist/interfaces/google/protobuf/any.d.ts +144 -0
  57. package/dist/interfaces/google/protobuf/any.js +107 -0
  58. package/dist/interfaces/google/protobuf/duration.d.ts +99 -0
  59. package/dist/interfaces/google/protobuf/duration.js +92 -0
  60. package/dist/interfaces/serviceRegistry.d.ts +520 -0
  61. package/dist/interfaces/serviceRegistry.js +40 -0
  62. package/dist/interfaces.json +19 -0
  63. package/dist/payloads/Alarm.d.ts +7 -12
  64. package/dist/payloads/Alarm.js +4 -54
  65. package/dist/payloads/ChecklistEvent.d.ts +152 -0
  66. package/dist/payloads/ChecklistEvent.js +524 -0
  67. package/dist/payloads/ChecklistEvidence.d.ts +79 -0
  68. package/dist/payloads/ChecklistEvidence.js +287 -0
  69. package/dist/payloads/ChecklistPresence.d.ts +68 -0
  70. package/dist/payloads/ChecklistPresence.js +286 -0
  71. package/dist/payloads/ChecklistProcedure.d.ts +81 -0
  72. package/dist/payloads/ChecklistProcedure.js +364 -0
  73. package/dist/payloads/ChecklistState.d.ts +178 -0
  74. package/dist/payloads/ChecklistState.js +838 -0
  75. package/dist/payloads/CommandAuthority.d.ts +82 -0
  76. package/dist/payloads/CommandAuthority.js +364 -0
  77. package/dist/payloads/Coordinate.d.ts +39 -0
  78. package/dist/payloads/Coordinate.js +85 -0
  79. package/dist/payloads/EntityHealth.d.ts +9 -0
  80. package/dist/payloads/EntityHealth.js +14 -0
  81. package/dist/payloads/Mission.d.ts +137 -0
  82. package/dist/payloads/Mission.js +826 -0
  83. package/dist/payloads/OperationalAuthority.d.ts +172 -5
  84. package/dist/payloads/OperationalAuthority.js +525 -6
  85. package/dist/payloads/Route.d.ts +662 -0
  86. package/dist/payloads/Route.js +4289 -0
  87. package/dist/payloads/RouteChangeEvent.d.ts +42 -0
  88. package/dist/payloads/RouteChangeEvent.js +223 -0
  89. package/dist/payloads/RouteEditAuthority.d.ts +87 -0
  90. package/dist/payloads/RouteEditAuthority.js +380 -0
  91. package/dist/payloads/RouteExecution.d.ts +64 -0
  92. package/dist/payloads/RouteExecution.js +310 -0
  93. package/dist/payloads/ScenarioStatus.d.ts +160 -0
  94. package/dist/payloads/ScenarioStatus.js +654 -0
  95. package/dist/payloads/Severity.d.ts +13 -6
  96. package/dist/payloads/Severity.js +30 -18
  97. package/dist/payloads/SimulationStatus.d.ts +3 -4
  98. package/dist/payloads/SimulationStatus.js +12 -18
  99. package/dist/payloads/TestObjectStatus.d.ts +154 -0
  100. package/dist/payloads/TestObjectStatus.js +580 -0
  101. package/dist/payloads/VesselType.d.ts +2 -1
  102. package/dist/payloads/VesselType.js +1 -1
  103. package/dist/payloads/Voyage.d.ts +154 -0
  104. package/dist/payloads/Voyage.js +866 -0
  105. package/dist/payloads/WarrantRecord.d.ts +168 -0
  106. package/dist/payloads/WarrantRecord.js +781 -0
  107. package/dist/payloads/foxglove/CompressedPointCloud.d.ts +37 -0
  108. package/dist/payloads/foxglove/CompressedPointCloud.js +185 -0
  109. package/dist/payloads/google/protobuf/any.d.ts +145 -0
  110. package/dist/payloads/google/protobuf/any.js +110 -0
  111. package/dist/payloads/google/protobuf/empty.d.ts +34 -0
  112. package/dist/payloads/google/protobuf/empty.js +50 -0
  113. package/dist/payloads/index.foxglove.d.ts +1 -0
  114. package/dist/payloads/index.foxglove.js +1 -0
  115. package/dist/payloads/index.google.protobuf.d.ts +2 -0
  116. package/dist/payloads/index.google.protobuf.js +2 -0
  117. package/dist/payloads/index.keelson.d.ts +17 -1
  118. package/dist/payloads/index.keelson.js +17 -1
  119. package/dist/qos.json +95 -0
  120. package/dist/subjects.json +38 -1
  121. package/package.json +2 -1
@@ -0,0 +1,168 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ /**
3
+ * WarrantRecord is the append-only audit stream for claim standings: the
4
+ * record of why a conclusion held, reduced or lapsed, produced by any
5
+ * evaluator aboard that maintains justification for its conclusions. The
6
+ * warrant_aggregator connector is its first producer; the subject is
7
+ * deliberately producer-neutral and the source_id names the evaluator:
8
+ *
9
+ * {base_path}/@v0/{entity_id}/pubsub/warrant_record/{source_id}
10
+ *
11
+ * so the entity's entire justification record is one subject family and an
12
+ * auditor or recorder watches one place, however many evaluators run.
13
+ *
14
+ * This stream is a reconstruction artifact, never a control input:
15
+ * statements, warrants, backing and evidence are strings by design, and
16
+ * consumers that act on determinations use the typed subjects the producing
17
+ * evaluator also publishes (the warrant_aggregator publishes
18
+ * operational_authority). Durability is a router storage_manager
19
+ * responsibility, not a payload one (protocol-specification.md section 6.3).
20
+ * Events are immutable once published: any future attestation must sign the
21
+ * stored Envelope bytes, never re-serialized state (section 6.3.1).
22
+ */
23
+ export interface WarrantRecord {
24
+ $type: "keelson.WarrantRecord";
25
+ /** The source timestamp of the event. */
26
+ timestamp: Date | undefined;
27
+ standingTransition?: WarrantRecord_StandingTransition | undefined;
28
+ snapshot?: WarrantRecord_Snapshot | undefined;
29
+ }
30
+ /**
31
+ * The standing of a claim. Every claim starts WITHDRAWN: standing must
32
+ * be positively established, and absence of evidence counts against a
33
+ * claim, never for it.
34
+ */
35
+ export declare enum WarrantRecord_Standing {
36
+ STANDING_UNSPECIFIED = 0,
37
+ STANDING_WITHDRAWN = 1,
38
+ STANDING_REDUCED = 2,
39
+ STANDING_LICENSED = 3,
40
+ UNRECOGNIZED = -1
41
+ }
42
+ export declare function warrantRecord_StandingFromJSON(object: any): WarrantRecord_Standing;
43
+ export declare function warrantRecord_StandingToJSON(object: WarrantRecord_Standing): string;
44
+ /** A rebuttal condition that fired, with the evidence that fired it. */
45
+ export interface WarrantRecord_RebuttalFired {
46
+ $type: "keelson.WarrantRecord.RebuttalFired";
47
+ id: string;
48
+ description: string;
49
+ /** Human-readable rendering of the evidence at firing time. */
50
+ evidence: string;
51
+ /**
52
+ * The health level of the evidence when determinable (the
53
+ * HealthLevel enum name from EntityHealth.proto), empty when the
54
+ * rebuttal fired on absence of evidence.
55
+ */
56
+ evidenceLevel: string;
57
+ }
58
+ /** The standing of one ground at evaluation time. */
59
+ export interface WarrantRecord_GroundStanding {
60
+ $type: "keelson.WarrantRecord.GroundStanding";
61
+ claimId: string;
62
+ standing: WarrantRecord_Standing;
63
+ }
64
+ /**
65
+ * One claim changed standing. Lean by design: justification prose lives
66
+ * in the periodic Snapshot, which makes the stream self-contained.
67
+ */
68
+ export interface WarrantRecord_StandingTransition {
69
+ $type: "keelson.WarrantRecord.StandingTransition";
70
+ claimId: string;
71
+ fromStanding: WarrantRecord_Standing;
72
+ toStanding: WarrantRecord_Standing;
73
+ rebuttalsFired: WarrantRecord_RebuttalFired[];
74
+ grounds: WarrantRecord_GroundStanding[];
75
+ }
76
+ /** The full state of one claim, carried in snapshots. */
77
+ export interface WarrantRecord_ClaimState {
78
+ $type: "keelson.WarrantRecord.ClaimState";
79
+ claimId: string;
80
+ standing: WarrantRecord_Standing;
81
+ /**
82
+ * When this claim last entered `standing`, never when this snapshot
83
+ * was taken. Snapshots are not on a fixed cadence (see
84
+ * target_standing), so a reader that treats this as a snapshot time
85
+ * reports hold durations as snapshot intervals.
86
+ */
87
+ since: Date | undefined;
88
+ rebuttalsFired: WarrantRecord_RebuttalFired[];
89
+ grounds: WarrantRecord_GroundStanding[];
90
+ /**
91
+ * The configured justification, carried for legibility so the
92
+ * stream reconstructs without access to the evaluator's config.
93
+ */
94
+ statement: string;
95
+ warrant: string;
96
+ backing: string;
97
+ /**
98
+ * The standing the rule assigns on current evidence, before the
99
+ * requalification hold is applied. Equal to `standing` except while
100
+ * an upgrade is being held, where `standing` is the published value
101
+ * and this is what the evidence already supports. Without it a held
102
+ * claim and an unsupported claim are indistinguishable in the record,
103
+ * and a reader reconstructing mid-hold reads the previous snapshot's
104
+ * value and concludes the evidence did not support an upgrade, which
105
+ * is a denial rather than a silence.
106
+ *
107
+ * STANDING_UNSPECIFIED means a producer that did not record it, not
108
+ * equality with `standing`.
109
+ *
110
+ * Derived claims cannot be held at all: they are evaluated after
111
+ * their grounds and transition immediately in both directions, so
112
+ * for them the two are always equal. Only source claims are held.
113
+ *
114
+ * The producer emits a snapshot whenever the set of claims in this
115
+ * condition changes, so a hold is on the wire when it opens and when
116
+ * it closes rather than only at the periodic cadence. That makes the
117
+ * snapshot rate depend on how volatile the evidence is, which on a
118
+ * bounded channel trades against completeness: a producer that can
119
+ * drop records must say so rather than leave a silent gap.
120
+ *
121
+ * The ladder level has a hold of its own and is NOT covered here.
122
+ * The level rides operational_authority, not this stream, so a held
123
+ * level still cannot be told from an unsupported one.
124
+ */
125
+ targetStanding: WarrantRecord_Standing;
126
+ }
127
+ /**
128
+ * Periodic full state, so reconstruction needs only the stream: the
129
+ * state at any instant is the latest snapshot at or before it plus the
130
+ * transitions since.
131
+ */
132
+ export interface WarrantRecord_Snapshot {
133
+ $type: "keelson.WarrantRecord.Snapshot";
134
+ claims: WarrantRecord_ClaimState[];
135
+ /**
136
+ * Identify the evaluator policy and configuration that produced
137
+ * this state, for replay and audit (same convention as
138
+ * OperationalAuthority).
139
+ */
140
+ policyConfigDigest?: Uint8Array | undefined;
141
+ policyId?: string | undefined;
142
+ }
143
+ export declare const WarrantRecord: MessageFns<WarrantRecord, "keelson.WarrantRecord">;
144
+ export declare const WarrantRecord_RebuttalFired: MessageFns<WarrantRecord_RebuttalFired, "keelson.WarrantRecord.RebuttalFired">;
145
+ export declare const WarrantRecord_GroundStanding: MessageFns<WarrantRecord_GroundStanding, "keelson.WarrantRecord.GroundStanding">;
146
+ export declare const WarrantRecord_StandingTransition: MessageFns<WarrantRecord_StandingTransition, "keelson.WarrantRecord.StandingTransition">;
147
+ export declare const WarrantRecord_ClaimState: MessageFns<WarrantRecord_ClaimState, "keelson.WarrantRecord.ClaimState">;
148
+ export declare const WarrantRecord_Snapshot: MessageFns<WarrantRecord_Snapshot, "keelson.WarrantRecord.Snapshot">;
149
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
150
+ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
151
+ [K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]>;
152
+ } : Partial<T>;
153
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
154
+ type Exact<P, I extends P> = P extends Builtin ? P : P & {
155
+ [K in keyof P]: Exact<P[K], I[K]>;
156
+ } & {
157
+ [K in Exclude<keyof I, KeysOfUnion<P> | "$type">]: never;
158
+ };
159
+ interface MessageFns<T, V extends string> {
160
+ readonly $type: V;
161
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
162
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
163
+ fromJSON(object: any): T;
164
+ toJSON(message: T): unknown;
165
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
166
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
167
+ }
168
+ export {};