@rise-maritime/keelson-js 0.6.0-alpha.282.dev.2 → 0.6.0-alpha.307.dev.2

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