@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.
- package/dist/index.d.ts +524 -1
- package/dist/index.js +114 -5
- package/dist/index.test.js +57 -0
- package/dist/interfaces/AlarmAck.d.ts +62 -0
- package/dist/interfaces/AlarmAck.js +218 -0
- package/dist/interfaces/Configurable.d.ts +24 -18
- package/dist/interfaces/Configurable.js +24 -22
- package/dist/interfaces/Coordinate.d.ts +38 -0
- package/dist/interfaces/Coordinate.js +82 -0
- package/dist/interfaces/ErrorResponse.d.ts +1 -1
- package/dist/interfaces/ErrorResponse.js +1 -1
- package/dist/interfaces/MavlinkCommand.d.ts +24 -18
- package/dist/interfaces/MavlinkCommand.js +24 -22
- package/dist/interfaces/Mission.d.ts +128 -0
- package/dist/interfaces/Mission.js +800 -0
- package/dist/interfaces/NetworkPingPong.d.ts +16 -16
- package/dist/interfaces/NetworkPingPong.js +16 -16
- package/dist/interfaces/ReplayControl.d.ts +72 -30
- package/dist/interfaces/ReplayControl.js +72 -58
- package/dist/interfaces/Route.d.ts +640 -0
- package/dist/interfaces/Route.js +4180 -0
- package/dist/interfaces/RoutePlanner.d.ts +152 -0
- package/dist/interfaces/RoutePlanner.js +268 -0
- package/dist/interfaces/ScenarioCheckpoint.d.ts +154 -0
- package/dist/interfaces/ScenarioCheckpoint.js +694 -0
- package/dist/interfaces/ScenarioControl.d.ts +144 -0
- package/dist/interfaces/ScenarioControl.js +552 -0
- package/dist/interfaces/Severity.d.ts +22 -0
- package/dist/interfaces/Severity.js +72 -0
- package/dist/interfaces/SimulationControl.d.ts +69 -0
- package/dist/interfaces/SimulationControl.js +153 -0
- package/dist/interfaces/Subscriber.d.ts +24 -18
- package/dist/interfaces/Subscriber.js +24 -22
- package/dist/interfaces/VehicleCommon.d.ts +1 -32
- package/dist/interfaces/VehicleCommon.js +2 -74
- package/dist/interfaces/VehicleControl.d.ts +34 -28
- package/dist/interfaces/VehicleControl.js +34 -22
- package/dist/interfaces/VehicleGeofence.d.ts +26 -19
- package/dist/interfaces/VehicleGeofence.js +40 -37
- package/dist/interfaces/VehicleLifecycle.d.ts +32 -20
- package/dist/interfaces/VehicleLifecycle.js +32 -28
- package/dist/interfaces/VehicleMission.d.ts +42 -97
- package/dist/interfaces/VehicleMission.js +41 -696
- package/dist/interfaces/VehicleNavigation.d.ts +30 -24
- package/dist/interfaces/VehicleNavigation.js +30 -22
- package/dist/interfaces/VehicleParam.d.ts +48 -24
- package/dist/interfaces/VehicleParam.js +48 -40
- package/dist/interfaces/VehicleSimulatorControl.d.ts +57 -0
- package/dist/interfaces/VehicleSimulatorControl.js +155 -0
- package/dist/interfaces/WHEPProxy.d.ts +16 -16
- package/dist/interfaces/WHEPProxy.js +16 -16
- package/dist/interfaces/foxglove/GeoJSON.d.ts +27 -0
- package/dist/interfaces/foxglove/GeoJSON.js +65 -0
- package/dist/interfaces/foxglove/LocationFix.d.ts +49 -0
- package/dist/interfaces/foxglove/LocationFix.js +246 -0
- package/dist/interfaces/google/protobuf/any.d.ts +144 -0
- package/dist/interfaces/google/protobuf/any.js +107 -0
- package/dist/interfaces/google/protobuf/duration.d.ts +99 -0
- package/dist/interfaces/google/protobuf/duration.js +92 -0
- package/dist/interfaces/serviceRegistry.d.ts +520 -0
- package/dist/interfaces/serviceRegistry.js +40 -0
- package/dist/interfaces.json +19 -0
- package/dist/payloads/Alarm.d.ts +7 -12
- package/dist/payloads/Alarm.js +4 -54
- package/dist/payloads/ChecklistEvent.d.ts +152 -0
- package/dist/payloads/ChecklistEvent.js +524 -0
- package/dist/payloads/ChecklistEvidence.d.ts +79 -0
- package/dist/payloads/ChecklistEvidence.js +287 -0
- package/dist/payloads/ChecklistPresence.d.ts +68 -0
- package/dist/payloads/ChecklistPresence.js +286 -0
- package/dist/payloads/ChecklistProcedure.d.ts +81 -0
- package/dist/payloads/ChecklistProcedure.js +364 -0
- package/dist/payloads/ChecklistState.d.ts +178 -0
- package/dist/payloads/ChecklistState.js +838 -0
- package/dist/payloads/CommandAuthority.d.ts +82 -0
- package/dist/payloads/CommandAuthority.js +364 -0
- package/dist/payloads/Coordinate.d.ts +39 -0
- package/dist/payloads/Coordinate.js +85 -0
- package/dist/payloads/EntityHealth.d.ts +9 -0
- package/dist/payloads/EntityHealth.js +14 -0
- package/dist/payloads/Mission.d.ts +137 -0
- package/dist/payloads/Mission.js +826 -0
- package/dist/payloads/OperationalAuthority.d.ts +172 -5
- package/dist/payloads/OperationalAuthority.js +525 -6
- package/dist/payloads/Route.d.ts +662 -0
- package/dist/payloads/Route.js +4289 -0
- package/dist/payloads/RouteChangeEvent.d.ts +42 -0
- package/dist/payloads/RouteChangeEvent.js +223 -0
- package/dist/payloads/RouteEditAuthority.d.ts +87 -0
- package/dist/payloads/RouteEditAuthority.js +380 -0
- package/dist/payloads/RouteExecution.d.ts +64 -0
- package/dist/payloads/RouteExecution.js +310 -0
- package/dist/payloads/ScenarioStatus.d.ts +160 -0
- package/dist/payloads/ScenarioStatus.js +654 -0
- package/dist/payloads/Severity.d.ts +13 -6
- package/dist/payloads/Severity.js +30 -18
- package/dist/payloads/SimulationStatus.d.ts +3 -4
- package/dist/payloads/SimulationStatus.js +12 -18
- package/dist/payloads/TestObjectStatus.d.ts +154 -0
- package/dist/payloads/TestObjectStatus.js +580 -0
- package/dist/payloads/VesselType.d.ts +2 -1
- package/dist/payloads/VesselType.js +1 -1
- package/dist/payloads/Voyage.d.ts +154 -0
- package/dist/payloads/Voyage.js +866 -0
- package/dist/payloads/WarrantRecord.d.ts +168 -0
- package/dist/payloads/WarrantRecord.js +781 -0
- package/dist/payloads/foxglove/CompressedPointCloud.d.ts +37 -0
- package/dist/payloads/foxglove/CompressedPointCloud.js +185 -0
- package/dist/payloads/google/protobuf/any.d.ts +145 -0
- package/dist/payloads/google/protobuf/any.js +110 -0
- package/dist/payloads/google/protobuf/empty.d.ts +34 -0
- package/dist/payloads/google/protobuf/empty.js +50 -0
- package/dist/payloads/index.foxglove.d.ts +1 -0
- package/dist/payloads/index.foxglove.js +1 -0
- package/dist/payloads/index.google.protobuf.d.ts +2 -0
- package/dist/payloads/index.google.protobuf.js +2 -0
- package/dist/payloads/index.keelson.d.ts +17 -1
- package/dist/payloads/index.keelson.js +17 -1
- package/dist/qos.json +95 -0
- package/dist/subjects.json +38 -1
- package/package.json +2 -1
|
@@ -0,0 +1,654 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.6.1
|
|
5
|
+
// protoc v6.30.2
|
|
6
|
+
// source: ScenarioStatus.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ScenarioStatus = exports.ScenarioParticipant = exports.scenarioStatus_ModeToJSON = exports.scenarioStatus_ModeFromJSON = exports.ScenarioStatus_Mode = exports.scenarioStatus_StateToJSON = exports.scenarioStatus_StateFromJSON = exports.ScenarioStatus_State = exports.scenarioParticipant_RoleToJSON = exports.scenarioParticipant_RoleFromJSON = exports.ScenarioParticipant_Role = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const duration_1 = require("./google/protobuf/duration");
|
|
12
|
+
const timestamp_1 = require("./google/protobuf/timestamp");
|
|
13
|
+
const typeRegistry_1 = require("./typeRegistry");
|
|
14
|
+
/**
|
|
15
|
+
* How this participant relates to the clock. A fixed-step run is only
|
|
16
|
+
* reproducible if it is explicit about who may hold it up.
|
|
17
|
+
*/
|
|
18
|
+
var ScenarioParticipant_Role;
|
|
19
|
+
(function (ScenarioParticipant_Role) {
|
|
20
|
+
ScenarioParticipant_Role[ScenarioParticipant_Role["ROLE_UNKNOWN"] = 0] = "ROLE_UNKNOWN";
|
|
21
|
+
/** OBSERVING - Never holds the clock. UIs, recorders in real-time mode. */
|
|
22
|
+
ScenarioParticipant_Role[ScenarioParticipant_Role["OBSERVING"] = 1] = "OBSERVING";
|
|
23
|
+
/**
|
|
24
|
+
* BLOCKING - The clock waits for this participant to acknowledge each tick.
|
|
25
|
+
* Dynamics and any sensor whose output must exist for every tick.
|
|
26
|
+
*/
|
|
27
|
+
ScenarioParticipant_Role[ScenarioParticipant_Role["BLOCKING"] = 2] = "BLOCKING";
|
|
28
|
+
/**
|
|
29
|
+
* DECIMATING - May skip work to keep up, and says so, but never stalls the clock.
|
|
30
|
+
* Render-derived sensors in real-time mode.
|
|
31
|
+
*/
|
|
32
|
+
ScenarioParticipant_Role[ScenarioParticipant_Role["DECIMATING"] = 3] = "DECIMATING";
|
|
33
|
+
ScenarioParticipant_Role[ScenarioParticipant_Role["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
34
|
+
})(ScenarioParticipant_Role || (exports.ScenarioParticipant_Role = ScenarioParticipant_Role = {}));
|
|
35
|
+
function scenarioParticipant_RoleFromJSON(object) {
|
|
36
|
+
switch (object) {
|
|
37
|
+
case 0:
|
|
38
|
+
case "ROLE_UNKNOWN":
|
|
39
|
+
return ScenarioParticipant_Role.ROLE_UNKNOWN;
|
|
40
|
+
case 1:
|
|
41
|
+
case "OBSERVING":
|
|
42
|
+
return ScenarioParticipant_Role.OBSERVING;
|
|
43
|
+
case 2:
|
|
44
|
+
case "BLOCKING":
|
|
45
|
+
return ScenarioParticipant_Role.BLOCKING;
|
|
46
|
+
case 3:
|
|
47
|
+
case "DECIMATING":
|
|
48
|
+
return ScenarioParticipant_Role.DECIMATING;
|
|
49
|
+
case -1:
|
|
50
|
+
case "UNRECOGNIZED":
|
|
51
|
+
default:
|
|
52
|
+
return ScenarioParticipant_Role.UNRECOGNIZED;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.scenarioParticipant_RoleFromJSON = scenarioParticipant_RoleFromJSON;
|
|
56
|
+
function scenarioParticipant_RoleToJSON(object) {
|
|
57
|
+
switch (object) {
|
|
58
|
+
case ScenarioParticipant_Role.ROLE_UNKNOWN:
|
|
59
|
+
return "ROLE_UNKNOWN";
|
|
60
|
+
case ScenarioParticipant_Role.OBSERVING:
|
|
61
|
+
return "OBSERVING";
|
|
62
|
+
case ScenarioParticipant_Role.BLOCKING:
|
|
63
|
+
return "BLOCKING";
|
|
64
|
+
case ScenarioParticipant_Role.DECIMATING:
|
|
65
|
+
return "DECIMATING";
|
|
66
|
+
case ScenarioParticipant_Role.UNRECOGNIZED:
|
|
67
|
+
default:
|
|
68
|
+
return "UNRECOGNIZED";
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.scenarioParticipant_RoleToJSON = scenarioParticipant_RoleToJSON;
|
|
72
|
+
var ScenarioStatus_State;
|
|
73
|
+
(function (ScenarioStatus_State) {
|
|
74
|
+
ScenarioStatus_State[ScenarioStatus_State["UNKNOWN"] = 0] = "UNKNOWN";
|
|
75
|
+
ScenarioStatus_State[ScenarioStatus_State["NO_SCENARIO"] = 1] = "NO_SCENARIO";
|
|
76
|
+
ScenarioStatus_State[ScenarioStatus_State["LOADING"] = 2] = "LOADING";
|
|
77
|
+
ScenarioStatus_State[ScenarioStatus_State["STOPPED"] = 3] = "STOPPED";
|
|
78
|
+
ScenarioStatus_State[ScenarioStatus_State["RUNNING"] = 4] = "RUNNING";
|
|
79
|
+
ScenarioStatus_State[ScenarioStatus_State["PAUSED"] = 5] = "PAUSED";
|
|
80
|
+
/**
|
|
81
|
+
* FINISHED - The scenario reached its declared end. Distinct from STOPPED, which
|
|
82
|
+
* is an operator decision — an evaluator needs to tell "it finished"
|
|
83
|
+
* from "someone halted it".
|
|
84
|
+
*/
|
|
85
|
+
ScenarioStatus_State[ScenarioStatus_State["FINISHED"] = 6] = "FINISHED";
|
|
86
|
+
ScenarioStatus_State[ScenarioStatus_State["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
87
|
+
})(ScenarioStatus_State || (exports.ScenarioStatus_State = ScenarioStatus_State = {}));
|
|
88
|
+
function scenarioStatus_StateFromJSON(object) {
|
|
89
|
+
switch (object) {
|
|
90
|
+
case 0:
|
|
91
|
+
case "UNKNOWN":
|
|
92
|
+
return ScenarioStatus_State.UNKNOWN;
|
|
93
|
+
case 1:
|
|
94
|
+
case "NO_SCENARIO":
|
|
95
|
+
return ScenarioStatus_State.NO_SCENARIO;
|
|
96
|
+
case 2:
|
|
97
|
+
case "LOADING":
|
|
98
|
+
return ScenarioStatus_State.LOADING;
|
|
99
|
+
case 3:
|
|
100
|
+
case "STOPPED":
|
|
101
|
+
return ScenarioStatus_State.STOPPED;
|
|
102
|
+
case 4:
|
|
103
|
+
case "RUNNING":
|
|
104
|
+
return ScenarioStatus_State.RUNNING;
|
|
105
|
+
case 5:
|
|
106
|
+
case "PAUSED":
|
|
107
|
+
return ScenarioStatus_State.PAUSED;
|
|
108
|
+
case 6:
|
|
109
|
+
case "FINISHED":
|
|
110
|
+
return ScenarioStatus_State.FINISHED;
|
|
111
|
+
case -1:
|
|
112
|
+
case "UNRECOGNIZED":
|
|
113
|
+
default:
|
|
114
|
+
return ScenarioStatus_State.UNRECOGNIZED;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
exports.scenarioStatus_StateFromJSON = scenarioStatus_StateFromJSON;
|
|
118
|
+
function scenarioStatus_StateToJSON(object) {
|
|
119
|
+
switch (object) {
|
|
120
|
+
case ScenarioStatus_State.UNKNOWN:
|
|
121
|
+
return "UNKNOWN";
|
|
122
|
+
case ScenarioStatus_State.NO_SCENARIO:
|
|
123
|
+
return "NO_SCENARIO";
|
|
124
|
+
case ScenarioStatus_State.LOADING:
|
|
125
|
+
return "LOADING";
|
|
126
|
+
case ScenarioStatus_State.STOPPED:
|
|
127
|
+
return "STOPPED";
|
|
128
|
+
case ScenarioStatus_State.RUNNING:
|
|
129
|
+
return "RUNNING";
|
|
130
|
+
case ScenarioStatus_State.PAUSED:
|
|
131
|
+
return "PAUSED";
|
|
132
|
+
case ScenarioStatus_State.FINISHED:
|
|
133
|
+
return "FINISHED";
|
|
134
|
+
case ScenarioStatus_State.UNRECOGNIZED:
|
|
135
|
+
default:
|
|
136
|
+
return "UNRECOGNIZED";
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
exports.scenarioStatus_StateToJSON = scenarioStatus_StateToJSON;
|
|
140
|
+
/**
|
|
141
|
+
* How the clock is currently being driven. Emergent rather than
|
|
142
|
+
* commanded: a rate of 0.0 is FAST_TIME, hand-driven steps are STEPPED.
|
|
143
|
+
*/
|
|
144
|
+
var ScenarioStatus_Mode;
|
|
145
|
+
(function (ScenarioStatus_Mode) {
|
|
146
|
+
ScenarioStatus_Mode[ScenarioStatus_Mode["MODE_UNKNOWN"] = 0] = "MODE_UNKNOWN";
|
|
147
|
+
ScenarioStatus_Mode[ScenarioStatus_Mode["REAL_TIME"] = 1] = "REAL_TIME";
|
|
148
|
+
ScenarioStatus_Mode[ScenarioStatus_Mode["STEPPED"] = 2] = "STEPPED";
|
|
149
|
+
ScenarioStatus_Mode[ScenarioStatus_Mode["FAST_TIME"] = 3] = "FAST_TIME";
|
|
150
|
+
ScenarioStatus_Mode[ScenarioStatus_Mode["REPLAY"] = 4] = "REPLAY";
|
|
151
|
+
ScenarioStatus_Mode[ScenarioStatus_Mode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
152
|
+
})(ScenarioStatus_Mode || (exports.ScenarioStatus_Mode = ScenarioStatus_Mode = {}));
|
|
153
|
+
function scenarioStatus_ModeFromJSON(object) {
|
|
154
|
+
switch (object) {
|
|
155
|
+
case 0:
|
|
156
|
+
case "MODE_UNKNOWN":
|
|
157
|
+
return ScenarioStatus_Mode.MODE_UNKNOWN;
|
|
158
|
+
case 1:
|
|
159
|
+
case "REAL_TIME":
|
|
160
|
+
return ScenarioStatus_Mode.REAL_TIME;
|
|
161
|
+
case 2:
|
|
162
|
+
case "STEPPED":
|
|
163
|
+
return ScenarioStatus_Mode.STEPPED;
|
|
164
|
+
case 3:
|
|
165
|
+
case "FAST_TIME":
|
|
166
|
+
return ScenarioStatus_Mode.FAST_TIME;
|
|
167
|
+
case 4:
|
|
168
|
+
case "REPLAY":
|
|
169
|
+
return ScenarioStatus_Mode.REPLAY;
|
|
170
|
+
case -1:
|
|
171
|
+
case "UNRECOGNIZED":
|
|
172
|
+
default:
|
|
173
|
+
return ScenarioStatus_Mode.UNRECOGNIZED;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
exports.scenarioStatus_ModeFromJSON = scenarioStatus_ModeFromJSON;
|
|
177
|
+
function scenarioStatus_ModeToJSON(object) {
|
|
178
|
+
switch (object) {
|
|
179
|
+
case ScenarioStatus_Mode.MODE_UNKNOWN:
|
|
180
|
+
return "MODE_UNKNOWN";
|
|
181
|
+
case ScenarioStatus_Mode.REAL_TIME:
|
|
182
|
+
return "REAL_TIME";
|
|
183
|
+
case ScenarioStatus_Mode.STEPPED:
|
|
184
|
+
return "STEPPED";
|
|
185
|
+
case ScenarioStatus_Mode.FAST_TIME:
|
|
186
|
+
return "FAST_TIME";
|
|
187
|
+
case ScenarioStatus_Mode.REPLAY:
|
|
188
|
+
return "REPLAY";
|
|
189
|
+
case ScenarioStatus_Mode.UNRECOGNIZED:
|
|
190
|
+
default:
|
|
191
|
+
return "UNRECOGNIZED";
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
exports.scenarioStatus_ModeToJSON = scenarioStatus_ModeToJSON;
|
|
195
|
+
function createBaseScenarioParticipant() {
|
|
196
|
+
return {
|
|
197
|
+
$type: "keelson.ScenarioParticipant",
|
|
198
|
+
entityId: "",
|
|
199
|
+
sourceId: "",
|
|
200
|
+
role: 0,
|
|
201
|
+
acknowledgedTick: 0,
|
|
202
|
+
healthy: false,
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
exports.ScenarioParticipant = {
|
|
206
|
+
$type: "keelson.ScenarioParticipant",
|
|
207
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
208
|
+
if (message.entityId !== "") {
|
|
209
|
+
writer.uint32(10).string(message.entityId);
|
|
210
|
+
}
|
|
211
|
+
if (message.sourceId !== "") {
|
|
212
|
+
writer.uint32(18).string(message.sourceId);
|
|
213
|
+
}
|
|
214
|
+
if (message.role !== 0) {
|
|
215
|
+
writer.uint32(24).int32(message.role);
|
|
216
|
+
}
|
|
217
|
+
if (message.acknowledgedTick !== 0) {
|
|
218
|
+
writer.uint32(32).uint64(message.acknowledgedTick);
|
|
219
|
+
}
|
|
220
|
+
if (message.healthy !== false) {
|
|
221
|
+
writer.uint32(40).bool(message.healthy);
|
|
222
|
+
}
|
|
223
|
+
return writer;
|
|
224
|
+
},
|
|
225
|
+
decode(input, length) {
|
|
226
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
227
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
228
|
+
const message = createBaseScenarioParticipant();
|
|
229
|
+
while (reader.pos < end) {
|
|
230
|
+
const tag = reader.uint32();
|
|
231
|
+
switch (tag >>> 3) {
|
|
232
|
+
case 1: {
|
|
233
|
+
if (tag !== 10) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
message.entityId = reader.string();
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
case 2: {
|
|
240
|
+
if (tag !== 18) {
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
message.sourceId = reader.string();
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
case 3: {
|
|
247
|
+
if (tag !== 24) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
message.role = reader.int32();
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
case 4: {
|
|
254
|
+
if (tag !== 32) {
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
message.acknowledgedTick = longToNumber(reader.uint64());
|
|
258
|
+
continue;
|
|
259
|
+
}
|
|
260
|
+
case 5: {
|
|
261
|
+
if (tag !== 40) {
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
message.healthy = reader.bool();
|
|
265
|
+
continue;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
reader.skip(tag & 7);
|
|
272
|
+
}
|
|
273
|
+
return message;
|
|
274
|
+
},
|
|
275
|
+
fromJSON(object) {
|
|
276
|
+
return {
|
|
277
|
+
$type: exports.ScenarioParticipant.$type,
|
|
278
|
+
entityId: isSet(object.entityId) ? globalThis.String(object.entityId) : "",
|
|
279
|
+
sourceId: isSet(object.sourceId) ? globalThis.String(object.sourceId) : "",
|
|
280
|
+
role: isSet(object.role) ? scenarioParticipant_RoleFromJSON(object.role) : 0,
|
|
281
|
+
acknowledgedTick: isSet(object.acknowledgedTick) ? globalThis.Number(object.acknowledgedTick) : 0,
|
|
282
|
+
healthy: isSet(object.healthy) ? globalThis.Boolean(object.healthy) : false,
|
|
283
|
+
};
|
|
284
|
+
},
|
|
285
|
+
toJSON(message) {
|
|
286
|
+
const obj = {};
|
|
287
|
+
if (message.entityId !== "") {
|
|
288
|
+
obj.entityId = message.entityId;
|
|
289
|
+
}
|
|
290
|
+
if (message.sourceId !== "") {
|
|
291
|
+
obj.sourceId = message.sourceId;
|
|
292
|
+
}
|
|
293
|
+
if (message.role !== 0) {
|
|
294
|
+
obj.role = scenarioParticipant_RoleToJSON(message.role);
|
|
295
|
+
}
|
|
296
|
+
if (message.acknowledgedTick !== 0) {
|
|
297
|
+
obj.acknowledgedTick = Math.round(message.acknowledgedTick);
|
|
298
|
+
}
|
|
299
|
+
if (message.healthy !== false) {
|
|
300
|
+
obj.healthy = message.healthy;
|
|
301
|
+
}
|
|
302
|
+
return obj;
|
|
303
|
+
},
|
|
304
|
+
create(base) {
|
|
305
|
+
return exports.ScenarioParticipant.fromPartial(base ?? {});
|
|
306
|
+
},
|
|
307
|
+
fromPartial(object) {
|
|
308
|
+
const message = createBaseScenarioParticipant();
|
|
309
|
+
message.entityId = object.entityId ?? "";
|
|
310
|
+
message.sourceId = object.sourceId ?? "";
|
|
311
|
+
message.role = object.role ?? 0;
|
|
312
|
+
message.acknowledgedTick = object.acknowledgedTick ?? 0;
|
|
313
|
+
message.healthy = object.healthy ?? false;
|
|
314
|
+
return message;
|
|
315
|
+
},
|
|
316
|
+
};
|
|
317
|
+
typeRegistry_1.messageTypeRegistry.set(exports.ScenarioParticipant.$type, exports.ScenarioParticipant);
|
|
318
|
+
function createBaseScenarioStatus() {
|
|
319
|
+
return {
|
|
320
|
+
$type: "keelson.ScenarioStatus",
|
|
321
|
+
timestamp: undefined,
|
|
322
|
+
state: 0,
|
|
323
|
+
mode: 0,
|
|
324
|
+
scenarioId: "",
|
|
325
|
+
scenarioHash: "",
|
|
326
|
+
runId: "",
|
|
327
|
+
tick: 0,
|
|
328
|
+
stepSize: undefined,
|
|
329
|
+
simulationTime: undefined,
|
|
330
|
+
seed: 0,
|
|
331
|
+
commandedRate: 0,
|
|
332
|
+
measuredRate: 0,
|
|
333
|
+
lag: undefined,
|
|
334
|
+
participants: [],
|
|
335
|
+
parentRunId: "",
|
|
336
|
+
parentTick: 0,
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
exports.ScenarioStatus = {
|
|
340
|
+
$type: "keelson.ScenarioStatus",
|
|
341
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
342
|
+
if (message.timestamp !== undefined) {
|
|
343
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();
|
|
344
|
+
}
|
|
345
|
+
if (message.state !== 0) {
|
|
346
|
+
writer.uint32(16).int32(message.state);
|
|
347
|
+
}
|
|
348
|
+
if (message.mode !== 0) {
|
|
349
|
+
writer.uint32(24).int32(message.mode);
|
|
350
|
+
}
|
|
351
|
+
if (message.scenarioId !== "") {
|
|
352
|
+
writer.uint32(34).string(message.scenarioId);
|
|
353
|
+
}
|
|
354
|
+
if (message.scenarioHash !== "") {
|
|
355
|
+
writer.uint32(42).string(message.scenarioHash);
|
|
356
|
+
}
|
|
357
|
+
if (message.runId !== "") {
|
|
358
|
+
writer.uint32(50).string(message.runId);
|
|
359
|
+
}
|
|
360
|
+
if (message.tick !== 0) {
|
|
361
|
+
writer.uint32(56).uint64(message.tick);
|
|
362
|
+
}
|
|
363
|
+
if (message.stepSize !== undefined) {
|
|
364
|
+
duration_1.Duration.encode(message.stepSize, writer.uint32(66).fork()).join();
|
|
365
|
+
}
|
|
366
|
+
if (message.simulationTime !== undefined) {
|
|
367
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.simulationTime), writer.uint32(74).fork()).join();
|
|
368
|
+
}
|
|
369
|
+
if (message.seed !== 0) {
|
|
370
|
+
writer.uint32(80).uint64(message.seed);
|
|
371
|
+
}
|
|
372
|
+
if (message.commandedRate !== 0) {
|
|
373
|
+
writer.uint32(89).double(message.commandedRate);
|
|
374
|
+
}
|
|
375
|
+
if (message.measuredRate !== 0) {
|
|
376
|
+
writer.uint32(97).double(message.measuredRate);
|
|
377
|
+
}
|
|
378
|
+
if (message.lag !== undefined) {
|
|
379
|
+
duration_1.Duration.encode(message.lag, writer.uint32(106).fork()).join();
|
|
380
|
+
}
|
|
381
|
+
for (const v of message.participants) {
|
|
382
|
+
exports.ScenarioParticipant.encode(v, writer.uint32(114).fork()).join();
|
|
383
|
+
}
|
|
384
|
+
if (message.parentRunId !== "") {
|
|
385
|
+
writer.uint32(122).string(message.parentRunId);
|
|
386
|
+
}
|
|
387
|
+
if (message.parentTick !== 0) {
|
|
388
|
+
writer.uint32(128).uint64(message.parentTick);
|
|
389
|
+
}
|
|
390
|
+
return writer;
|
|
391
|
+
},
|
|
392
|
+
decode(input, length) {
|
|
393
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
394
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
395
|
+
const message = createBaseScenarioStatus();
|
|
396
|
+
while (reader.pos < end) {
|
|
397
|
+
const tag = reader.uint32();
|
|
398
|
+
switch (tag >>> 3) {
|
|
399
|
+
case 1: {
|
|
400
|
+
if (tag !== 10) {
|
|
401
|
+
break;
|
|
402
|
+
}
|
|
403
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
case 2: {
|
|
407
|
+
if (tag !== 16) {
|
|
408
|
+
break;
|
|
409
|
+
}
|
|
410
|
+
message.state = reader.int32();
|
|
411
|
+
continue;
|
|
412
|
+
}
|
|
413
|
+
case 3: {
|
|
414
|
+
if (tag !== 24) {
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
message.mode = reader.int32();
|
|
418
|
+
continue;
|
|
419
|
+
}
|
|
420
|
+
case 4: {
|
|
421
|
+
if (tag !== 34) {
|
|
422
|
+
break;
|
|
423
|
+
}
|
|
424
|
+
message.scenarioId = reader.string();
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
case 5: {
|
|
428
|
+
if (tag !== 42) {
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
431
|
+
message.scenarioHash = reader.string();
|
|
432
|
+
continue;
|
|
433
|
+
}
|
|
434
|
+
case 6: {
|
|
435
|
+
if (tag !== 50) {
|
|
436
|
+
break;
|
|
437
|
+
}
|
|
438
|
+
message.runId = reader.string();
|
|
439
|
+
continue;
|
|
440
|
+
}
|
|
441
|
+
case 7: {
|
|
442
|
+
if (tag !== 56) {
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
message.tick = longToNumber(reader.uint64());
|
|
446
|
+
continue;
|
|
447
|
+
}
|
|
448
|
+
case 8: {
|
|
449
|
+
if (tag !== 66) {
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
message.stepSize = duration_1.Duration.decode(reader, reader.uint32());
|
|
453
|
+
continue;
|
|
454
|
+
}
|
|
455
|
+
case 9: {
|
|
456
|
+
if (tag !== 74) {
|
|
457
|
+
break;
|
|
458
|
+
}
|
|
459
|
+
message.simulationTime = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
460
|
+
continue;
|
|
461
|
+
}
|
|
462
|
+
case 10: {
|
|
463
|
+
if (tag !== 80) {
|
|
464
|
+
break;
|
|
465
|
+
}
|
|
466
|
+
message.seed = longToNumber(reader.uint64());
|
|
467
|
+
continue;
|
|
468
|
+
}
|
|
469
|
+
case 11: {
|
|
470
|
+
if (tag !== 89) {
|
|
471
|
+
break;
|
|
472
|
+
}
|
|
473
|
+
message.commandedRate = reader.double();
|
|
474
|
+
continue;
|
|
475
|
+
}
|
|
476
|
+
case 12: {
|
|
477
|
+
if (tag !== 97) {
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
message.measuredRate = reader.double();
|
|
481
|
+
continue;
|
|
482
|
+
}
|
|
483
|
+
case 13: {
|
|
484
|
+
if (tag !== 106) {
|
|
485
|
+
break;
|
|
486
|
+
}
|
|
487
|
+
message.lag = duration_1.Duration.decode(reader, reader.uint32());
|
|
488
|
+
continue;
|
|
489
|
+
}
|
|
490
|
+
case 14: {
|
|
491
|
+
if (tag !== 114) {
|
|
492
|
+
break;
|
|
493
|
+
}
|
|
494
|
+
message.participants.push(exports.ScenarioParticipant.decode(reader, reader.uint32()));
|
|
495
|
+
continue;
|
|
496
|
+
}
|
|
497
|
+
case 15: {
|
|
498
|
+
if (tag !== 122) {
|
|
499
|
+
break;
|
|
500
|
+
}
|
|
501
|
+
message.parentRunId = reader.string();
|
|
502
|
+
continue;
|
|
503
|
+
}
|
|
504
|
+
case 16: {
|
|
505
|
+
if (tag !== 128) {
|
|
506
|
+
break;
|
|
507
|
+
}
|
|
508
|
+
message.parentTick = longToNumber(reader.uint64());
|
|
509
|
+
continue;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
513
|
+
break;
|
|
514
|
+
}
|
|
515
|
+
reader.skip(tag & 7);
|
|
516
|
+
}
|
|
517
|
+
return message;
|
|
518
|
+
},
|
|
519
|
+
fromJSON(object) {
|
|
520
|
+
return {
|
|
521
|
+
$type: exports.ScenarioStatus.$type,
|
|
522
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
523
|
+
state: isSet(object.state) ? scenarioStatus_StateFromJSON(object.state) : 0,
|
|
524
|
+
mode: isSet(object.mode) ? scenarioStatus_ModeFromJSON(object.mode) : 0,
|
|
525
|
+
scenarioId: isSet(object.scenarioId) ? globalThis.String(object.scenarioId) : "",
|
|
526
|
+
scenarioHash: isSet(object.scenarioHash) ? globalThis.String(object.scenarioHash) : "",
|
|
527
|
+
runId: isSet(object.runId) ? globalThis.String(object.runId) : "",
|
|
528
|
+
tick: isSet(object.tick) ? globalThis.Number(object.tick) : 0,
|
|
529
|
+
stepSize: isSet(object.stepSize) ? duration_1.Duration.fromJSON(object.stepSize) : undefined,
|
|
530
|
+
simulationTime: isSet(object.simulationTime) ? fromJsonTimestamp(object.simulationTime) : undefined,
|
|
531
|
+
seed: isSet(object.seed) ? globalThis.Number(object.seed) : 0,
|
|
532
|
+
commandedRate: isSet(object.commandedRate) ? globalThis.Number(object.commandedRate) : 0,
|
|
533
|
+
measuredRate: isSet(object.measuredRate) ? globalThis.Number(object.measuredRate) : 0,
|
|
534
|
+
lag: isSet(object.lag) ? duration_1.Duration.fromJSON(object.lag) : undefined,
|
|
535
|
+
participants: globalThis.Array.isArray(object?.participants)
|
|
536
|
+
? object.participants.map((e) => exports.ScenarioParticipant.fromJSON(e))
|
|
537
|
+
: [],
|
|
538
|
+
parentRunId: isSet(object.parentRunId) ? globalThis.String(object.parentRunId) : "",
|
|
539
|
+
parentTick: isSet(object.parentTick) ? globalThis.Number(object.parentTick) : 0,
|
|
540
|
+
};
|
|
541
|
+
},
|
|
542
|
+
toJSON(message) {
|
|
543
|
+
const obj = {};
|
|
544
|
+
if (message.timestamp !== undefined) {
|
|
545
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
546
|
+
}
|
|
547
|
+
if (message.state !== 0) {
|
|
548
|
+
obj.state = scenarioStatus_StateToJSON(message.state);
|
|
549
|
+
}
|
|
550
|
+
if (message.mode !== 0) {
|
|
551
|
+
obj.mode = scenarioStatus_ModeToJSON(message.mode);
|
|
552
|
+
}
|
|
553
|
+
if (message.scenarioId !== "") {
|
|
554
|
+
obj.scenarioId = message.scenarioId;
|
|
555
|
+
}
|
|
556
|
+
if (message.scenarioHash !== "") {
|
|
557
|
+
obj.scenarioHash = message.scenarioHash;
|
|
558
|
+
}
|
|
559
|
+
if (message.runId !== "") {
|
|
560
|
+
obj.runId = message.runId;
|
|
561
|
+
}
|
|
562
|
+
if (message.tick !== 0) {
|
|
563
|
+
obj.tick = Math.round(message.tick);
|
|
564
|
+
}
|
|
565
|
+
if (message.stepSize !== undefined) {
|
|
566
|
+
obj.stepSize = duration_1.Duration.toJSON(message.stepSize);
|
|
567
|
+
}
|
|
568
|
+
if (message.simulationTime !== undefined) {
|
|
569
|
+
obj.simulationTime = message.simulationTime.toISOString();
|
|
570
|
+
}
|
|
571
|
+
if (message.seed !== 0) {
|
|
572
|
+
obj.seed = Math.round(message.seed);
|
|
573
|
+
}
|
|
574
|
+
if (message.commandedRate !== 0) {
|
|
575
|
+
obj.commandedRate = message.commandedRate;
|
|
576
|
+
}
|
|
577
|
+
if (message.measuredRate !== 0) {
|
|
578
|
+
obj.measuredRate = message.measuredRate;
|
|
579
|
+
}
|
|
580
|
+
if (message.lag !== undefined) {
|
|
581
|
+
obj.lag = duration_1.Duration.toJSON(message.lag);
|
|
582
|
+
}
|
|
583
|
+
if (message.participants?.length) {
|
|
584
|
+
obj.participants = message.participants.map((e) => exports.ScenarioParticipant.toJSON(e));
|
|
585
|
+
}
|
|
586
|
+
if (message.parentRunId !== "") {
|
|
587
|
+
obj.parentRunId = message.parentRunId;
|
|
588
|
+
}
|
|
589
|
+
if (message.parentTick !== 0) {
|
|
590
|
+
obj.parentTick = Math.round(message.parentTick);
|
|
591
|
+
}
|
|
592
|
+
return obj;
|
|
593
|
+
},
|
|
594
|
+
create(base) {
|
|
595
|
+
return exports.ScenarioStatus.fromPartial(base ?? {});
|
|
596
|
+
},
|
|
597
|
+
fromPartial(object) {
|
|
598
|
+
const message = createBaseScenarioStatus();
|
|
599
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
600
|
+
message.state = object.state ?? 0;
|
|
601
|
+
message.mode = object.mode ?? 0;
|
|
602
|
+
message.scenarioId = object.scenarioId ?? "";
|
|
603
|
+
message.scenarioHash = object.scenarioHash ?? "";
|
|
604
|
+
message.runId = object.runId ?? "";
|
|
605
|
+
message.tick = object.tick ?? 0;
|
|
606
|
+
message.stepSize = (object.stepSize !== undefined && object.stepSize !== null)
|
|
607
|
+
? duration_1.Duration.fromPartial(object.stepSize)
|
|
608
|
+
: undefined;
|
|
609
|
+
message.simulationTime = object.simulationTime ?? undefined;
|
|
610
|
+
message.seed = object.seed ?? 0;
|
|
611
|
+
message.commandedRate = object.commandedRate ?? 0;
|
|
612
|
+
message.measuredRate = object.measuredRate ?? 0;
|
|
613
|
+
message.lag = (object.lag !== undefined && object.lag !== null) ? duration_1.Duration.fromPartial(object.lag) : undefined;
|
|
614
|
+
message.participants = object.participants?.map((e) => exports.ScenarioParticipant.fromPartial(e)) || [];
|
|
615
|
+
message.parentRunId = object.parentRunId ?? "";
|
|
616
|
+
message.parentTick = object.parentTick ?? 0;
|
|
617
|
+
return message;
|
|
618
|
+
},
|
|
619
|
+
};
|
|
620
|
+
typeRegistry_1.messageTypeRegistry.set(exports.ScenarioStatus.$type, exports.ScenarioStatus);
|
|
621
|
+
function toTimestamp(date) {
|
|
622
|
+
const seconds = Math.trunc(date.getTime() / 1000);
|
|
623
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
|
624
|
+
return { $type: "google.protobuf.Timestamp", seconds, nanos };
|
|
625
|
+
}
|
|
626
|
+
function fromTimestamp(t) {
|
|
627
|
+
let millis = (t.seconds || 0) * 1000;
|
|
628
|
+
millis += (t.nanos || 0) / 1000000;
|
|
629
|
+
return new globalThis.Date(millis);
|
|
630
|
+
}
|
|
631
|
+
function fromJsonTimestamp(o) {
|
|
632
|
+
if (o instanceof globalThis.Date) {
|
|
633
|
+
return o;
|
|
634
|
+
}
|
|
635
|
+
else if (typeof o === "string") {
|
|
636
|
+
return new globalThis.Date(o);
|
|
637
|
+
}
|
|
638
|
+
else {
|
|
639
|
+
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
function longToNumber(int64) {
|
|
643
|
+
const num = globalThis.Number(int64.toString());
|
|
644
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
645
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
646
|
+
}
|
|
647
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
648
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
649
|
+
}
|
|
650
|
+
return num;
|
|
651
|
+
}
|
|
652
|
+
function isSet(value) {
|
|
653
|
+
return value !== null && value !== undefined;
|
|
654
|
+
}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Shared severity vocabulary for alerts and events across
|
|
3
|
-
* (weather, route, ...). Keep this the single source of
|
|
4
|
-
* does not accumulate per-domain severity scales.
|
|
2
|
+
* Shared severity vocabulary for alarms, alerts and events across
|
|
3
|
+
* payloads (alarm, weather, route, ...). Keep this the single source of
|
|
4
|
+
* truth so the bus does not accumulate per-domain severity scales.
|
|
5
|
+
*
|
|
6
|
+
* Four levels, unified from the previously-parallel Alarm.Severity
|
|
7
|
+
* (LOW/MEDIUM/HIGH/CRITICAL) and the 3-level alert scale
|
|
8
|
+
* (INFO/WARNING/CRITICAL): informational maps to LOW, warning-grade
|
|
9
|
+
* maps to MEDIUM or HIGH per the emitter's judgement, CRITICAL stays
|
|
10
|
+
* CRITICAL.
|
|
5
11
|
*/
|
|
6
12
|
export declare enum SeverityLevel {
|
|
7
13
|
SEVERITY_LEVEL_UNSPECIFIED = 0,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
SEVERITY_LEVEL_LOW = 1,
|
|
15
|
+
SEVERITY_LEVEL_MEDIUM = 2,
|
|
16
|
+
SEVERITY_LEVEL_HIGH = 3,
|
|
17
|
+
SEVERITY_LEVEL_CRITICAL = 4,
|
|
11
18
|
UNRECOGNIZED = -1
|
|
12
19
|
}
|
|
13
20
|
export declare function severityLevelFromJSON(object: any): SeverityLevel;
|