@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
@@ -0,0 +1,161 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { CommandResult } from "./VehicleCommon";
3
+ export declare const protobufPackage = "keelson.interfaces.navigation_risk_control";
4
+ /** Why the producer is assessing a vessel. */
5
+ export declare enum Origin {
6
+ ORIGIN_UNSPECIFIED = 0,
7
+ /** ORIGIN_DEPLOYMENT - from the producer's own configuration; cannot be stopped remotely */
8
+ ORIGIN_DEPLOYMENT = 1,
9
+ /** ORIGIN_ENROLLED - started through start_assessment */
10
+ ORIGIN_ENROLLED = 2,
11
+ UNRECOGNIZED = -1
12
+ }
13
+ export declare function originFromJSON(object: any): Origin;
14
+ export declare function originToJSON(object: Origin): string;
15
+ /** One own-ship input: which source on the assessed vessel to read `subject` from. */
16
+ export interface InputSource {
17
+ /** e.g. location_fix, heading_true_north_deg, course_over_ground_deg */
18
+ subject: string;
19
+ /** exactly one source on the vessel's entity; never a wildcard */
20
+ sourceId: string;
21
+ }
22
+ /** One traffic feed: targets published under `{entity_id}/pubsub/{subject}/{source_id}/@target/*`. */
23
+ export interface TrafficFeed {
24
+ entityId: string;
25
+ sourceId: string;
26
+ }
27
+ /**
28
+ * The own ship's particulars the model needs. Absent means not known, never zero: a missing
29
+ * draught makes grounding not measurable, it does not make it safe.
30
+ */
31
+ export interface OwnShipParticulars {
32
+ lengthOverAllM?: number | undefined;
33
+ breadthOverAllM?: number | undefined;
34
+ draughtMaxM?: number | undefined;
35
+ /**
36
+ * Where the figures came from, in words, for the record: e.g. "registry sf18; draught from pilot
37
+ * card pc_… signed 2026-09-20".
38
+ */
39
+ basis: string;
40
+ }
41
+ /** What to assess and from which data. */
42
+ export interface AssessmentSpec {
43
+ /** the vessel assessed */
44
+ entityId: string;
45
+ /** location_fix is required */
46
+ ownShipInputs: InputSource[];
47
+ trafficFeeds: TrafficFeed[];
48
+ ownShip: OwnShipParticulars | undefined;
49
+ /**
50
+ * Target ids never assessed as traffic — typically the vessel's own MMSI, so it is not its own
51
+ * target.
52
+ */
53
+ excludeTargetIds: string[];
54
+ }
55
+ export interface Assessment {
56
+ spec: AssessmentSpec | undefined;
57
+ origin: Origin;
58
+ /** Bumped each time the spec is replaced. The value if_revision must match. */
59
+ revision: number;
60
+ startedAt: Date | undefined;
61
+ /** requested_by of the start that created or last replaced it */
62
+ enrolledBy: string;
63
+ }
64
+ export interface ListAssessmentsRequest {
65
+ }
66
+ export interface ListAssessmentsResponse {
67
+ assessments: Assessment[];
68
+ /** How many vessels this producer will assess at once; 0 = not declared. */
69
+ capacity: number;
70
+ }
71
+ export interface StartAssessmentRequest {
72
+ spec: AssessmentSpec | undefined;
73
+ /** Who asked, for the record (e.g. a station or operator id). Not an authorisation. */
74
+ requestedBy: string;
75
+ /** Replace an existing assessment of spec.entity_id. Only honoured with a matching if_revision. */
76
+ replace: boolean;
77
+ ifRevision?: number | undefined;
78
+ }
79
+ export interface StartAssessmentResponse {
80
+ /**
81
+ * ACCEPTED: assessing (now, or already with this spec). DENIED: already assessed with a
82
+ * different spec, or a revision mismatch — see `assessment`. TEMPORARILY_REJECTED: at capacity.
83
+ */
84
+ result: CommandResult;
85
+ detail: string;
86
+ /** The assessment as it now stands: the new one on ACCEPTED, the existing one on DENIED. */
87
+ assessment?: Assessment | undefined;
88
+ }
89
+ export interface StopAssessmentRequest {
90
+ entityId: string;
91
+ requestedBy: string;
92
+ }
93
+ export interface StopAssessmentResponse {
94
+ /**
95
+ * ACCEPTED: no longer assessed (including when it was not assessed). DENIED: the vessel is
96
+ * ORIGIN_DEPLOYMENT and is stopped only by reconfiguring the producer.
97
+ */
98
+ result: CommandResult;
99
+ detail: string;
100
+ }
101
+ export declare const InputSource: MessageFns<InputSource>;
102
+ export declare const TrafficFeed: MessageFns<TrafficFeed>;
103
+ export declare const OwnShipParticulars: MessageFns<OwnShipParticulars>;
104
+ export declare const AssessmentSpec: MessageFns<AssessmentSpec>;
105
+ export declare const Assessment: MessageFns<Assessment>;
106
+ export declare const ListAssessmentsRequest: MessageFns<ListAssessmentsRequest>;
107
+ export declare const ListAssessmentsResponse: MessageFns<ListAssessmentsResponse>;
108
+ export declare const StartAssessmentRequest: MessageFns<StartAssessmentRequest>;
109
+ export declare const StartAssessmentResponse: MessageFns<StartAssessmentResponse>;
110
+ export declare const StopAssessmentRequest: MessageFns<StopAssessmentRequest>;
111
+ export declare const StopAssessmentResponse: MessageFns<StopAssessmentResponse>;
112
+ export type NavigationRiskControlDefinition = typeof NavigationRiskControlDefinition;
113
+ export declare const NavigationRiskControlDefinition: {
114
+ readonly name: "NavigationRiskControl";
115
+ readonly fullName: "keelson.interfaces.navigation_risk_control.NavigationRiskControl";
116
+ readonly methods: {
117
+ readonly list_assessments: {
118
+ readonly name: "list_assessments";
119
+ readonly requestType: MessageFns<ListAssessmentsRequest>;
120
+ readonly requestStream: false;
121
+ readonly responseType: MessageFns<ListAssessmentsResponse>;
122
+ readonly responseStream: false;
123
+ readonly options: {};
124
+ };
125
+ readonly start_assessment: {
126
+ readonly name: "start_assessment";
127
+ readonly requestType: MessageFns<StartAssessmentRequest>;
128
+ readonly requestStream: false;
129
+ readonly responseType: MessageFns<StartAssessmentResponse>;
130
+ readonly responseStream: false;
131
+ readonly options: {};
132
+ };
133
+ readonly stop_assessment: {
134
+ readonly name: "stop_assessment";
135
+ readonly requestType: MessageFns<StopAssessmentRequest>;
136
+ readonly requestStream: false;
137
+ readonly responseType: MessageFns<StopAssessmentResponse>;
138
+ readonly responseStream: false;
139
+ readonly options: {};
140
+ };
141
+ };
142
+ };
143
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
144
+ 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 {} ? {
145
+ [K in keyof T]?: DeepPartial<T[K]>;
146
+ } : Partial<T>;
147
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
148
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
149
+ [K in keyof P]: Exact<P[K], I[K]>;
150
+ } & {
151
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
152
+ };
153
+ export interface MessageFns<T> {
154
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
155
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
156
+ fromJSON(object: any): T;
157
+ toJSON(message: T): unknown;
158
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
159
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
160
+ }
161
+ export {};