@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,154 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { RouteRef } from "./Route";
3
+ import { VesselType } from "./VesselType";
4
+ import { Duration } from "./google/protobuf/duration";
5
+ /**
6
+ * Voyage lifecycle status. Prefixed to avoid collision with RouteStatus
7
+ * values that share the keelson package.
8
+ */
9
+ export declare enum VoyageStatus {
10
+ VOYAGE_STATUS_UNSPECIFIED = 0,
11
+ VOYAGE_STATUS_PLANNED = 1,
12
+ VOYAGE_STATUS_ACTIVE = 2,
13
+ VOYAGE_STATUS_PAUSED = 3,
14
+ VOYAGE_STATUS_COMPLETED = 4,
15
+ VOYAGE_STATUS_ABORTED = 5,
16
+ UNRECOGNIZED = -1
17
+ }
18
+ export declare function voyageStatusFromJSON(object: any): VoyageStatus;
19
+ export declare function voyageStatusToJSON(object: VoyageStatus): string;
20
+ /**
21
+ * Defined voyage audit actions. VOYAGE_AUDIT_ACTION_OTHER is the escape hatch
22
+ * when a publisher needs an action that isn't yet covered by this enum; the
23
+ * free-text `detail` field carries the specifics in that case.
24
+ */
25
+ export declare enum VoyageAuditAction {
26
+ VOYAGE_AUDIT_ACTION_UNSPECIFIED = 0,
27
+ VOYAGE_AUDIT_ACTION_ACTIVATED = 1,
28
+ VOYAGE_AUDIT_ACTION_PAUSED = 2,
29
+ VOYAGE_AUDIT_ACTION_RESUMED = 3,
30
+ VOYAGE_AUDIT_ACTION_EDITION_BUMP = 4,
31
+ VOYAGE_AUDIT_ACTION_DEVIATION = 5,
32
+ VOYAGE_AUDIT_ACTION_REROUTE_ACCEPTED = 6,
33
+ VOYAGE_AUDIT_ACTION_COMPLETED = 7,
34
+ VOYAGE_AUDIT_ACTION_ABORTED = 8,
35
+ VOYAGE_AUDIT_ACTION_OTHER = 99,
36
+ UNRECOGNIZED = -1
37
+ }
38
+ export declare function voyageAuditActionFromJSON(object: any): VoyageAuditAction;
39
+ export declare function voyageAuditActionToJSON(object: VoyageAuditAction): string;
40
+ /** Single entry in the voyage audit trail. */
41
+ export interface VoyageAuditEntry {
42
+ $type: "keelson.VoyageAuditEntry";
43
+ at: Date | undefined;
44
+ /** operatorId */
45
+ actorId: string;
46
+ /** ROC-1, vessel-bridge, ... */
47
+ actorSite: string;
48
+ action: VoyageAuditAction;
49
+ detail: string;
50
+ }
51
+ /**
52
+ * Auto-rerouting permissions and limits for autonomous execution of a voyage.
53
+ * Moved from keelson.Route — policy is per-execution, not per-plan, so the
54
+ * same Route may be sailed under different policies by different voyages.
55
+ */
56
+ export interface DynamicReroutingPolicy {
57
+ $type: "keelson.DynamicReroutingPolicy";
58
+ /** Whether autonomous re-routing is allowed at all. */
59
+ autoRerouteAllowed: boolean;
60
+ /**
61
+ * Maximum cross-track deviation from the planned route an auto-reroute may
62
+ * introduce, in metres.
63
+ */
64
+ maxCrossTrackDeviationM?: number | undefined;
65
+ /** Maximum acceptable additional arrival delay introduced by a reroute. */
66
+ maxArrivalDelay: Duration | undefined;
67
+ /** Whether autonomous speed-profile changes are allowed. */
68
+ speedProfileChangeAllowed: boolean;
69
+ /**
70
+ * Maximum allowed deviation from planned SOG when speed-profile changes are
71
+ * allowed, in knots.
72
+ */
73
+ maxSogDeviationKnots?: number | undefined;
74
+ }
75
+ export interface Voyage {
76
+ $type: "keelson.Voyage";
77
+ /** Schema version this Voyage conforms to. */
78
+ version: string;
79
+ /** Globally unique voyage identifier (UUID recommended). */
80
+ voyageId: string;
81
+ routeRef: RouteRef | undefined;
82
+ /** -- Vessel identity -------------------------------------------------------- */
83
+ vesselMmsi: number;
84
+ vesselName: string;
85
+ vesselCallSign: string;
86
+ vesselImo: number;
87
+ /**
88
+ * Canonical AIS-aligned vessel type (ITU-R M.1371-5 Table 53). The
89
+ * timestamp inside the VesselType message records when this assignment was
90
+ * last asserted.
91
+ */
92
+ vesselType: VesselType | undefined;
93
+ /** -- Lifecycle -------------------------------------------------------------- */
94
+ status: VoyageStatus;
95
+ plannedDeparture: Date | undefined;
96
+ plannedArrival: Date | undefined;
97
+ startedAt: Date | undefined;
98
+ completedAt: Date | undefined;
99
+ /** -- Ports (UN/LOCODE + display name) --------------------------------------- */
100
+ departurePortLocode: string;
101
+ arrivalPortLocode: string;
102
+ departurePortName: string;
103
+ arrivalPortName: string;
104
+ /**
105
+ * -- Actual execution -------------------------------------------------------
106
+ * Pointer (Zenoh key expression) to a time-series of foxglove.LocationFix
107
+ * samples representing the actual track sailed.
108
+ */
109
+ actualTrackKeyExpr: string;
110
+ /** Summary metrics — full deviations live in the audit trail / change log. */
111
+ deviationCount: number;
112
+ maxXtdObservedM: number;
113
+ /**
114
+ * -- Linked artefacts -------------------------------------------------------
115
+ * Checklist procedure ids associated with this voyage (departure, transit,
116
+ * arrival, port-state, ...).
117
+ */
118
+ linkedProcedureIds: string[];
119
+ /**
120
+ * Append-only audit trail; bounded by the publisher (rolling window).
121
+ * Durable per-edition-bump events live separately under
122
+ * keelson.RouteChangeEvent on a storage-manager-backed key tree.
123
+ */
124
+ auditTrail: VoyageAuditEntry[];
125
+ /**
126
+ * Autonomous re-routing policy for this voyage. Moved from keelson.Route
127
+ * so the same Route can be sailed under different policies by different
128
+ * voyages (e.g. crewed vs unmanned).
129
+ */
130
+ reroutingPolicy: DynamicReroutingPolicy | undefined;
131
+ }
132
+ export declare const VoyageAuditEntry: MessageFns<VoyageAuditEntry, "keelson.VoyageAuditEntry">;
133
+ export declare const DynamicReroutingPolicy: MessageFns<DynamicReroutingPolicy, "keelson.DynamicReroutingPolicy">;
134
+ export declare const Voyage: MessageFns<Voyage, "keelson.Voyage">;
135
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
136
+ 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 {} ? {
137
+ [K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]>;
138
+ } : Partial<T>;
139
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
140
+ type Exact<P, I extends P> = P extends Builtin ? P : P & {
141
+ [K in keyof P]: Exact<P[K], I[K]>;
142
+ } & {
143
+ [K in Exclude<keyof I, KeysOfUnion<P> | "$type">]: never;
144
+ };
145
+ interface MessageFns<T, V extends string> {
146
+ readonly $type: V;
147
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
148
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
149
+ fromJSON(object: any): T;
150
+ toJSON(message: T): unknown;
151
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
152
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
153
+ }
154
+ export {};