@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.
- package/dist/index.d.ts +31 -31
- package/dist/interfaces/ContainerControl.d.ts +7 -0
- package/dist/interfaces/ContainerControl.js +18 -1
- package/dist/interfaces/ContainerHost.d.ts +45 -0
- package/dist/interfaces/ContainerHost.js +332 -1
- package/dist/interfaces/NavigationRiskControl.d.ts +161 -0
- package/dist/interfaces/NavigationRiskControl.js +1007 -0
- package/dist/interfaces/ReplayControl.d.ts +49 -1
- package/dist/interfaces/ReplayControl.js +274 -1
- package/dist/interfaces/Route.d.ts +3 -0
- package/dist/interfaces/serviceRegistry.d.ts +33 -33
- package/dist/interfaces/serviceRegistry.js +2 -2
- package/dist/interfaces.json +1 -1
- package/dist/payloads/AdviceDisposition.d.ts +20 -5
- package/dist/payloads/AdviceDisposition.js +7 -0
- package/dist/payloads/ContainerHost.d.ts +48 -0
- package/dist/payloads/ContainerHost.js +341 -1
- package/dist/payloads/NavigationAdvice.d.ts +24 -0
- package/dist/payloads/NavigationAdvice.js +91 -1
- package/dist/payloads/NavigationRisk.d.ts +341 -0
- package/dist/payloads/NavigationRisk.js +2530 -0
- package/dist/payloads/NavigationState.d.ts +0 -46
- package/dist/payloads/NavigationState.js +1 -252
- package/dist/payloads/Route.d.ts +3 -0
- package/dist/payloads/index.keelson.d.ts +1 -0
- package/dist/payloads/index.keelson.js +1 -0
- package/dist/subjects.json +1 -0
- package/package.json +1 -1
- package/dist/interfaces/NavigationControl.d.ts +0 -169
- package/dist/interfaces/NavigationControl.js +0 -806
- package/dist/interfaces/NavigationState.d.ts +0 -132
- package/dist/interfaces/NavigationState.js +0 -615
- package/dist/interfaces/OperationalAuthority.d.ts +0 -217
- package/dist/interfaces/OperationalAuthority.js +0 -807
- package/dist/interfaces/VesselType.d.ts +0 -133
- package/dist/interfaces/VesselType.js +0 -726
- package/dist/interfaces/Voyage.d.ts +0 -151
- package/dist/interfaces/Voyage.js +0 -855
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "keelson";
|
|
3
|
-
/**
|
|
4
|
-
* The vessel's own view of how much operating authority it can currently
|
|
5
|
-
* justify. Distinct from command_authority (who holds the conn) and
|
|
6
|
-
* roc_status (intent) — this is the vessel's veto on accepting remote
|
|
7
|
-
* control, and it is therefore computed on the vessel.
|
|
8
|
-
*
|
|
9
|
-
* The determination has two independent halves, and they are reported
|
|
10
|
-
* separately on purpose:
|
|
11
|
-
*
|
|
12
|
-
* composite_score how healthy the monitored fleet is, in aggregate.
|
|
13
|
-
* Compensatory: healthy components offset unhealthy ones.
|
|
14
|
-
*
|
|
15
|
-
* authority_score what the vessel is actually permitted to claim.
|
|
16
|
-
* Non-compensatory: an unsatisfied safety prerequisite
|
|
17
|
-
* caps this outright, and no amount of healthy unrelated
|
|
18
|
-
* equipment can buy the cap back.
|
|
19
|
-
*
|
|
20
|
-
* The two legitimately disagree. One hard-down essential component out of
|
|
21
|
-
* twelve leaves composite_score at 0.917 while authority_score is 0.0 — the
|
|
22
|
-
* fleet really is mostly healthy, and the vessel really may not accept remote
|
|
23
|
-
* control. Consumers deciding whether to grant control MUST read `level` (or
|
|
24
|
-
* authority_score), never composite_score.
|
|
25
|
-
*/
|
|
26
|
-
export interface OperationalAuthority {
|
|
27
|
-
/** The source timestamp of the authority determination */
|
|
28
|
-
timestamp: Date | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* The maximum authority level currently permitted. This is the field a
|
|
31
|
-
* consumer acts on.
|
|
32
|
-
*/
|
|
33
|
-
level: OperationalAuthority_AuthorityLevel;
|
|
34
|
-
/**
|
|
35
|
-
* Aggregate health, evidence-adjusted and UNCAPPED by essential
|
|
36
|
-
* constraints (0.0 = all failed, 1.0 = all healthy).
|
|
37
|
-
*
|
|
38
|
-
* Each source contributes score(level) * coverage_fraction, and the
|
|
39
|
-
* composite is their mean — one vote per source, so the number of
|
|
40
|
-
* diagnostic subjects a source happens to publish is not a safety weight.
|
|
41
|
-
* Deliberately left uncapped: overwriting it when an essential component
|
|
42
|
-
* fails would falsely report that all monitored health had failed.
|
|
43
|
-
*
|
|
44
|
-
* `optional` because not every policy publishing on this subject scores:
|
|
45
|
-
* a policy that derives `level` from claim standings rather than from a
|
|
46
|
-
* score (see the warrant_aggregator connector) publishes no
|
|
47
|
-
* composite_score at all, and its absence must be distinguishable from
|
|
48
|
-
* 0.0, which asserts that all monitored health failed.
|
|
49
|
-
*/
|
|
50
|
-
compositeScore?: number | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Human-readable explanation. For operators and logs only — consumers
|
|
53
|
-
* MUST NOT parse this. Everything it says is available structurally in
|
|
54
|
-
* source_assessments and active_constraints.
|
|
55
|
-
*/
|
|
56
|
-
reason: string;
|
|
57
|
-
/**
|
|
58
|
-
* Per-source effective scores (key = source id, value = 0.0-1.0), i.e.
|
|
59
|
-
* health already multiplied by coverage. Sources excluded from the
|
|
60
|
-
* composite do not appear.
|
|
61
|
-
*/
|
|
62
|
-
componentScores: {
|
|
63
|
-
[key: string]: number;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* composite_score after every active authority ceiling has been applied;
|
|
67
|
-
* this is what `level` is derived from.
|
|
68
|
-
*
|
|
69
|
-
* Absent when no valid determination could be made (see
|
|
70
|
-
* AUTHORITY_LEVEL_UNKNOWN). `optional` matters here: 0.0 is a perfectly
|
|
71
|
-
* ordinary value meaning "all stop", and must be distinguishable from
|
|
72
|
-
* "not determined".
|
|
73
|
-
*/
|
|
74
|
-
authorityScore?: number | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* Per-source arithmetic, so an auditor can reconstruct the decision
|
|
77
|
-
* without parsing `reason`.
|
|
78
|
-
*/
|
|
79
|
-
sourceAssessments: OperationalAuthority_SourceAssessment[];
|
|
80
|
-
/**
|
|
81
|
-
* Every ceiling currently limiting authority, and why. Empty when nothing
|
|
82
|
-
* is capping the vessel.
|
|
83
|
-
*/
|
|
84
|
-
activeConstraints: OperationalAuthority_AuthorityConstraint[];
|
|
85
|
-
/**
|
|
86
|
-
* Identifies the policy that produced this determination, so a recorded
|
|
87
|
-
* message can be replayed against the rules that were actually in force.
|
|
88
|
-
*/
|
|
89
|
-
policyId?: string | undefined;
|
|
90
|
-
policyConfigDigest?: Uint8Array | undefined;
|
|
91
|
-
}
|
|
92
|
-
export declare enum OperationalAuthority_AuthorityLevel {
|
|
93
|
-
/**
|
|
94
|
-
* AUTHORITY_LEVEL_UNKNOWN - No valid determination could be made — not a determination that the
|
|
95
|
-
* minimum is permissible. Raised when an essential requirement is not
|
|
96
|
-
* even advertised, so the monitor cannot tell whether it is satisfied.
|
|
97
|
-
* Consumers MUST treat this as non-authorizing, exactly like
|
|
98
|
-
* MINIMAL_SAFE_MODE, and MUST NOT treat it as "no constraints known".
|
|
99
|
-
*/
|
|
100
|
-
AUTHORITY_LEVEL_UNKNOWN = 0,
|
|
101
|
-
AUTHORITY_LEVEL_MINIMAL_SAFE_MODE = 1,
|
|
102
|
-
AUTHORITY_LEVEL_SUPERVISED_REMOTE = 2,
|
|
103
|
-
AUTHORITY_LEVEL_REMOTE_CONTROLLED = 3,
|
|
104
|
-
AUTHORITY_LEVEL_ASSISTED_AUTONOMOUS = 4,
|
|
105
|
-
AUTHORITY_LEVEL_FULL_AUTONOMOUS = 5,
|
|
106
|
-
UNRECOGNIZED = -1
|
|
107
|
-
}
|
|
108
|
-
export declare function operationalAuthority_AuthorityLevelFromJSON(object: any): OperationalAuthority_AuthorityLevel;
|
|
109
|
-
export declare function operationalAuthority_AuthorityLevelToJSON(object: OperationalAuthority_AuthorityLevel): string;
|
|
110
|
-
export interface OperationalAuthority_ComponentScoresEntry {
|
|
111
|
-
key: string;
|
|
112
|
-
value: number;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* One source's contribution to composite_score, with the arithmetic left
|
|
116
|
-
* visible: effective_score = health_score * coverage_fraction.
|
|
117
|
-
*
|
|
118
|
-
* Keeping all three distinguishes 0.5 "half the subsystems are degraded" from
|
|
119
|
-
* 0.5 "everything we could see was fine, and we could see half of it" — which
|
|
120
|
-
* the composite alone cannot express.
|
|
121
|
-
*/
|
|
122
|
-
export interface OperationalAuthority_SourceAssessment {
|
|
123
|
-
sourceId: string;
|
|
124
|
-
/** score(source.level) before the coverage discount. */
|
|
125
|
-
healthScore?: number | undefined;
|
|
126
|
-
/**
|
|
127
|
-
* assessed_subject_count / eligible_subject_count. The proportion of
|
|
128
|
-
* watched subjects that reached a determinate verdict — NOT a calibrated
|
|
129
|
-
* confidence, and NOT IEC 61508 diagnostic coverage.
|
|
130
|
-
*
|
|
131
|
-
* A known failure counts as assessed: CRITICAL and INACTIVE already score
|
|
132
|
-
* zero and do not reduce coverage. Only "we learned nothing" does.
|
|
133
|
-
*/
|
|
134
|
-
coverageFraction?: number | undefined;
|
|
135
|
-
/** health_score * coverage_fraction — what actually enters the mean. */
|
|
136
|
-
effectiveScore?: number | undefined;
|
|
137
|
-
/**
|
|
138
|
-
* Denominator: watched subjects that could in principle be assessed.
|
|
139
|
-
* Subjects this source does not advertise are excluded, since those are
|
|
140
|
-
* facts about the monitor's config rather than about the vessel.
|
|
141
|
-
*/
|
|
142
|
-
eligibleSubjectCount: number;
|
|
143
|
-
assessedSubjectCount: number;
|
|
144
|
-
/**
|
|
145
|
-
* Named so an operator can act. Subjects that reached no verdict, and
|
|
146
|
-
* subjects the source never claimed (typically a config typo).
|
|
147
|
-
*/
|
|
148
|
-
unassessedSubjects: string[];
|
|
149
|
-
notAdvertisedSubjects: string[];
|
|
150
|
-
/**
|
|
151
|
-
* Whether this source carries an essential requirement, and the ceiling
|
|
152
|
-
* it currently imposes if so.
|
|
153
|
-
*/
|
|
154
|
-
essential: boolean;
|
|
155
|
-
authorityCap?: number | undefined;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* A prerequisite that is limiting authority. Non-compensatory: this ceiling
|
|
159
|
-
* applies regardless of how healthy everything else is.
|
|
160
|
-
*/
|
|
161
|
-
export interface OperationalAuthority_AuthorityConstraint {
|
|
162
|
-
/** The source carrying the requirement. */
|
|
163
|
-
componentId: string;
|
|
164
|
-
/** The ceiling this constraint imposes. */
|
|
165
|
-
capLevel: OperationalAuthority_AuthorityLevel;
|
|
166
|
-
capScore?: number | undefined;
|
|
167
|
-
cause: OperationalAuthority_AuthorityConstraint_Cause;
|
|
168
|
-
/**
|
|
169
|
-
* Set when the requirement is one subject rather than the whole source —
|
|
170
|
-
* a GNSS source's position fix may be essential while its ancillary
|
|
171
|
-
* diagnostics are not.
|
|
172
|
-
*/
|
|
173
|
-
subjectId?: string | undefined;
|
|
174
|
-
}
|
|
175
|
-
export declare enum OperationalAuthority_AuthorityConstraint_Cause {
|
|
176
|
-
CAUSE_UNSPECIFIED = 0,
|
|
177
|
-
CAUSE_DEGRADED = 1,
|
|
178
|
-
CAUSE_CRITICAL = 2,
|
|
179
|
-
CAUSE_INACTIVE = 3,
|
|
180
|
-
/**
|
|
181
|
-
* CAUSE_UNKNOWN - No evidence either way. Capped because absence of evidence is not
|
|
182
|
-
* evidence of health for a component something depends on.
|
|
183
|
-
*/
|
|
184
|
-
CAUSE_UNKNOWN = 4,
|
|
185
|
-
/**
|
|
186
|
-
* CAUSE_NOT_ADVERTISED - Expected but never advertised — the monitor cannot tell whether the
|
|
187
|
-
* requirement is met, so no valid determination exists.
|
|
188
|
-
*/
|
|
189
|
-
CAUSE_NOT_ADVERTISED = 5,
|
|
190
|
-
CAUSE_CONFIGURATION_INVALID = 6,
|
|
191
|
-
UNRECOGNIZED = -1
|
|
192
|
-
}
|
|
193
|
-
export declare function operationalAuthority_AuthorityConstraint_CauseFromJSON(object: any): OperationalAuthority_AuthorityConstraint_Cause;
|
|
194
|
-
export declare function operationalAuthority_AuthorityConstraint_CauseToJSON(object: OperationalAuthority_AuthorityConstraint_Cause): string;
|
|
195
|
-
export declare const OperationalAuthority: MessageFns<OperationalAuthority>;
|
|
196
|
-
export declare const OperationalAuthority_ComponentScoresEntry: MessageFns<OperationalAuthority_ComponentScoresEntry>;
|
|
197
|
-
export declare const OperationalAuthority_SourceAssessment: MessageFns<OperationalAuthority_SourceAssessment>;
|
|
198
|
-
export declare const OperationalAuthority_AuthorityConstraint: MessageFns<OperationalAuthority_AuthorityConstraint>;
|
|
199
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
200
|
-
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 {} ? {
|
|
201
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
202
|
-
} : Partial<T>;
|
|
203
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
204
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
205
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
206
|
-
} & {
|
|
207
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
208
|
-
};
|
|
209
|
-
export interface MessageFns<T> {
|
|
210
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
211
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
212
|
-
fromJSON(object: any): T;
|
|
213
|
-
toJSON(message: T): unknown;
|
|
214
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
215
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
216
|
-
}
|
|
217
|
-
export {};
|