@openrobops/iso21423 0.0.0-stage → 0.1.3
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/README.md +358 -2
- package/dist/ccs-CU8XD5sl.d.cts +69 -0
- package/dist/ccs-CU8XD5sl.d.ts +69 -0
- package/dist/chunk-3JNSIJSX.js +31 -0
- package/dist/chunk-3JNSIJSX.js.map +1 -0
- package/dist/chunk-5ZIUSUHF.js +55 -0
- package/dist/chunk-5ZIUSUHF.js.map +1 -0
- package/dist/chunk-DMJ6T3RX.js +445 -0
- package/dist/chunk-DMJ6T3RX.js.map +1 -0
- package/dist/chunk-GPNR37CI.js +1915 -0
- package/dist/chunk-GPNR37CI.js.map +1 -0
- package/dist/chunk-JDO725KR.js +210 -0
- package/dist/chunk-JDO725KR.js.map +1 -0
- package/dist/chunk-JIYCTQXR.js +1 -0
- package/dist/chunk-JIYCTQXR.js.map +1 -0
- package/dist/chunk-JLUENXGS.js +48 -0
- package/dist/chunk-JLUENXGS.js.map +1 -0
- package/dist/chunk-JQAMNFAF.js +1 -0
- package/dist/chunk-JQAMNFAF.js.map +1 -0
- package/dist/chunk-LTPOAVGF.js +44 -0
- package/dist/chunk-LTPOAVGF.js.map +1 -0
- package/dist/chunk-ODBIFZN3.js +65 -0
- package/dist/chunk-ODBIFZN3.js.map +1 -0
- package/dist/chunk-OH2DOPKJ.js +107 -0
- package/dist/chunk-OH2DOPKJ.js.map +1 -0
- package/dist/chunk-QAA44UNO.js +1 -0
- package/dist/chunk-QAA44UNO.js.map +1 -0
- package/dist/chunk-RD7PYTIT.js +107 -0
- package/dist/chunk-RD7PYTIT.js.map +1 -0
- package/dist/chunk-UJC46NTA.js +13 -0
- package/dist/chunk-UJC46NTA.js.map +1 -0
- package/dist/chunk-UW6WTEPT.js +293 -0
- package/dist/chunk-UW6WTEPT.js.map +1 -0
- package/dist/chunk-W7DIDPTG.js +1 -0
- package/dist/chunk-W7DIDPTG.js.map +1 -0
- package/dist/core.cjs +2874 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.d.cts +996 -0
- package/dist/core.d.ts +996 -0
- package/dist/core.js +59 -0
- package/dist/core.js.map +1 -0
- package/dist/gateway.cjs +2937 -0
- package/dist/gateway.cjs.map +1 -0
- package/dist/gateway.d.cts +165 -0
- package/dist/gateway.d.ts +165 -0
- package/dist/gateway.js +21 -0
- package/dist/gateway.js.map +1 -0
- package/dist/geometry.cjs +98 -0
- package/dist/geometry.cjs.map +1 -0
- package/dist/geometry.d.cts +38 -0
- package/dist/geometry.d.ts +38 -0
- package/dist/geometry.js +14 -0
- package/dist/geometry.js.map +1 -0
- package/dist/identity-BGr2FJmC.d.cts +258 -0
- package/dist/identity-Bw8Dik5S.d.ts +258 -0
- package/dist/index.cjs +3327 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +118 -0
- package/dist/index.d.ts +118 -0
- package/dist/index.js +193 -0
- package/dist/index.js.map +1 -0
- package/dist/schema.cjs +375 -0
- package/dist/schema.cjs.map +1 -0
- package/dist/schema.d.cts +28 -0
- package/dist/schema.d.ts +28 -0
- package/dist/schema.js +14 -0
- package/dist/schema.js.map +1 -0
- package/dist/session-RV32MFpV.d.cts +139 -0
- package/dist/session-ueiESY7Y.d.ts +139 -0
- package/dist/session.cjs +855 -0
- package/dist/session.cjs.map +1 -0
- package/dist/session.d.cts +94 -0
- package/dist/session.d.ts +94 -0
- package/dist/session.js +20 -0
- package/dist/session.js.map +1 -0
- package/dist/testing.cjs +205 -0
- package/dist/testing.cjs.map +1 -0
- package/dist/testing.d.cts +94 -0
- package/dist/testing.d.ts +94 -0
- package/dist/testing.js +169 -0
- package/dist/testing.js.map +1 -0
- package/dist/topics-BiVeZyTW.d.cts +43 -0
- package/dist/topics-BiVeZyTW.d.ts +43 -0
- package/dist/topics.cjs +134 -0
- package/dist/topics.cjs.map +1 -0
- package/dist/topics.d.cts +41 -0
- package/dist/topics.d.ts +41 -0
- package/dist/topics.js +30 -0
- package/dist/topics.js.map +1 -0
- package/dist/transport-BT4AjTn9.d.cts +61 -0
- package/dist/transport-BT4AjTn9.d.ts +61 -0
- package/dist/types.cjs +186 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +83 -0
- package/dist/types.d.ts +83 -0
- package/dist/types.js +50 -0
- package/dist/types.js.map +1 -0
- package/dist/validators-Be0ce1b8.d.cts +29 -0
- package/dist/validators-Be0ce1b8.d.ts +29 -0
- package/package.json +48 -4
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import {
|
|
2
|
+
KNOWN_OPERATING_STATES
|
|
3
|
+
} from "./chunk-RD7PYTIT.js";
|
|
4
|
+
import {
|
|
5
|
+
ValidationError
|
|
6
|
+
} from "./chunk-JLUENXGS.js";
|
|
7
|
+
|
|
8
|
+
// src/schema/normalize.ts
|
|
9
|
+
var TIMESTAMP_KEYS = /* @__PURE__ */ new Set(["timestamp", "arrivalTime"]);
|
|
10
|
+
var COMMA_TS = /^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}),(\d+)(Z|[+-]\d{2}:?\d{2})$/;
|
|
11
|
+
function fixTimestamps(value, warnings, path) {
|
|
12
|
+
if (Array.isArray(value)) return value.map((v, i) => fixTimestamps(v, warnings, `${path}[${i}]`));
|
|
13
|
+
if (value === null || typeof value !== "object") return value;
|
|
14
|
+
const out = {};
|
|
15
|
+
for (const [k, v] of Object.entries(value)) {
|
|
16
|
+
if (TIMESTAMP_KEYS.has(k) && typeof v === "string" && COMMA_TS.test(v)) {
|
|
17
|
+
out[k] = v.replace(COMMA_TS, "$1.$2$3");
|
|
18
|
+
warnings.push(`${path}.${k}: comma-decimal timestamp normalized to dot form`);
|
|
19
|
+
} else {
|
|
20
|
+
out[k] = fixTimestamps(v, warnings, `${path}.${k}`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return out;
|
|
24
|
+
}
|
|
25
|
+
function normalizeInbound(kind, value) {
|
|
26
|
+
const warnings = [];
|
|
27
|
+
let v = fixTimestamps(value, warnings, kind);
|
|
28
|
+
if (kind === "entityStatus" && v !== null && typeof v === "object" && !Array.isArray(v)) {
|
|
29
|
+
const o = v;
|
|
30
|
+
if (o.entityId === void 0 && typeof o.id === "string") {
|
|
31
|
+
const { id, ...rest } = o;
|
|
32
|
+
v = { ...rest, entityId: id };
|
|
33
|
+
warnings.push('entityStatus: legacy field "id" renamed to "entityId" (spec \xA73.1)');
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return { value: v, warnings };
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// src/schema/validators.ts
|
|
40
|
+
import { Ajv2020 } from "ajv/dist/2020.js";
|
|
41
|
+
import addFormats from "ajv-formats";
|
|
42
|
+
|
|
43
|
+
// src/schema/iso21423.schema.json
|
|
44
|
+
var iso21423_schema_default = {
|
|
45
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
46
|
+
$id: "https://openrobops.org/schemas/iso21423/v1.json",
|
|
47
|
+
$defs: {
|
|
48
|
+
uuid: { type: "string", pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$" },
|
|
49
|
+
timestamp: { type: "string", format: "date-time" },
|
|
50
|
+
point: {
|
|
51
|
+
type: "object",
|
|
52
|
+
required: ["x", "y"],
|
|
53
|
+
properties: { x: { type: "number" }, y: { type: "number" } }
|
|
54
|
+
},
|
|
55
|
+
locationPoint: {
|
|
56
|
+
type: "object",
|
|
57
|
+
required: ["ccsId", "x", "y", "z"],
|
|
58
|
+
properties: {
|
|
59
|
+
ccsId: { $ref: "#/$defs/uuid" },
|
|
60
|
+
x: { type: "number" },
|
|
61
|
+
y: { type: "number" },
|
|
62
|
+
z: { type: "number" }
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
orientation: {
|
|
66
|
+
type: "object",
|
|
67
|
+
required: ["yaw", "pitch", "roll"],
|
|
68
|
+
properties: { yaw: { type: "number" }, pitch: { type: "number" }, roll: { type: "number" } }
|
|
69
|
+
},
|
|
70
|
+
capabilities: {
|
|
71
|
+
type: "object",
|
|
72
|
+
required: ["provides", "accepts"],
|
|
73
|
+
properties: {
|
|
74
|
+
provides: { type: "array", items: { type: "string" } },
|
|
75
|
+
accepts: {
|
|
76
|
+
type: "object",
|
|
77
|
+
required: ["requests"],
|
|
78
|
+
properties: { requests: { type: "array", items: { type: "string" } } }
|
|
79
|
+
},
|
|
80
|
+
manages: { type: "array", items: { $ref: "#/$defs/uuid" } },
|
|
81
|
+
managedBy: { $ref: "#/$defs/uuid" }
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
softwareVersion: {
|
|
85
|
+
type: "object",
|
|
86
|
+
required: ["moduleName", "moduleVersion"],
|
|
87
|
+
properties: { moduleName: { type: "string" }, moduleVersion: { type: "string" } }
|
|
88
|
+
},
|
|
89
|
+
locationPointStamped: {
|
|
90
|
+
type: "object",
|
|
91
|
+
required: ["timestamp", "locationPoint"],
|
|
92
|
+
properties: {
|
|
93
|
+
timestamp: { $ref: "#/$defs/timestamp" },
|
|
94
|
+
locationPoint: { $ref: "#/$defs/locationPoint" }
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
requestDetail: {
|
|
98
|
+
type: "object",
|
|
99
|
+
required: ["type", "version"],
|
|
100
|
+
properties: {
|
|
101
|
+
type: { type: "string" },
|
|
102
|
+
version: { type: "string" },
|
|
103
|
+
format: { type: "string" },
|
|
104
|
+
blocking: { type: "boolean" },
|
|
105
|
+
atomic: { type: "boolean" },
|
|
106
|
+
properties: { type: "object" }
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
requestDetailStatus: {
|
|
110
|
+
type: "object",
|
|
111
|
+
required: ["type", "version", "status"],
|
|
112
|
+
properties: {
|
|
113
|
+
type: { type: "string" },
|
|
114
|
+
version: { type: "string" },
|
|
115
|
+
blocking: { type: "boolean" },
|
|
116
|
+
status: {
|
|
117
|
+
type: "object",
|
|
118
|
+
required: ["code"],
|
|
119
|
+
properties: {
|
|
120
|
+
code: { enum: ["RECEIVED", "ACCEPTED", "EXECUTING", "CANCELED", "SUCCEEDED", "ABORTED"] },
|
|
121
|
+
reason: { type: "string" },
|
|
122
|
+
message: { type: "string" }
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
properties: { type: "object" }
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
entityIdentity: {
|
|
129
|
+
type: "object",
|
|
130
|
+
required: ["id", "timestamp", "entityType", "manufacturerName", "capabilities", "details"],
|
|
131
|
+
properties: {
|
|
132
|
+
id: { $ref: "#/$defs/uuid" },
|
|
133
|
+
timestamp: { $ref: "#/$defs/timestamp" },
|
|
134
|
+
entityType: { type: "string" },
|
|
135
|
+
manufacturerName: { type: "string" },
|
|
136
|
+
iso21423Version: { type: "string" },
|
|
137
|
+
capabilities: { $ref: "#/$defs/capabilities" },
|
|
138
|
+
details: { type: "object" }
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
entityStatus: {
|
|
142
|
+
type: "object",
|
|
143
|
+
required: ["entityId", "timestamp", "states"],
|
|
144
|
+
properties: {
|
|
145
|
+
entityId: { $ref: "#/$defs/uuid" },
|
|
146
|
+
timestamp: { $ref: "#/$defs/timestamp" },
|
|
147
|
+
states: { type: "array", items: { type: "string", pattern: "^[A-Z0-9_]+$" } },
|
|
148
|
+
disabledCapabilities: { $ref: "#/$defs/capabilities" }
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
batteryStatus: {
|
|
152
|
+
type: "object",
|
|
153
|
+
required: ["timestamp", "batterySoc"],
|
|
154
|
+
properties: {
|
|
155
|
+
timestamp: { $ref: "#/$defs/timestamp" },
|
|
156
|
+
batterySoc: { type: "number", minimum: 0, maximum: 1 },
|
|
157
|
+
batteryHealth: { type: "string" },
|
|
158
|
+
batteryTemperature: { type: "number" },
|
|
159
|
+
batteryVoltage: { type: "number" },
|
|
160
|
+
batteryCurrent: { type: "number" },
|
|
161
|
+
batteryChargingState: { type: "string" }
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
odometry: {
|
|
165
|
+
type: "object",
|
|
166
|
+
required: ["timestamp", "pose", "velocity"],
|
|
167
|
+
properties: {
|
|
168
|
+
timestamp: { $ref: "#/$defs/timestamp" },
|
|
169
|
+
pose: {
|
|
170
|
+
type: "object",
|
|
171
|
+
required: ["locationPoint", "orientation"],
|
|
172
|
+
properties: {
|
|
173
|
+
locationPoint: { $ref: "#/$defs/locationPoint" },
|
|
174
|
+
orientation: { $ref: "#/$defs/orientation" }
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
velocity: {
|
|
178
|
+
type: "object",
|
|
179
|
+
required: ["linear", "angular"],
|
|
180
|
+
properties: { linear: { type: "number" }, angular: { type: "number" } }
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
localTrajectory: {
|
|
185
|
+
type: "object",
|
|
186
|
+
required: ["timestamp", "localTrajectory"],
|
|
187
|
+
properties: {
|
|
188
|
+
timestamp: { $ref: "#/$defs/timestamp" },
|
|
189
|
+
localTrajectory: { type: "array", items: { $ref: "#/$defs/locationPointStamped" } }
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
globalPath: {
|
|
193
|
+
type: "object",
|
|
194
|
+
required: ["timestamp", "globalPath"],
|
|
195
|
+
properties: {
|
|
196
|
+
timestamp: { $ref: "#/$defs/timestamp" },
|
|
197
|
+
globalPath: {
|
|
198
|
+
type: "object",
|
|
199
|
+
required: ["degree", "controlPoints", "knots"],
|
|
200
|
+
properties: {
|
|
201
|
+
degree: { type: "integer", minimum: 1 },
|
|
202
|
+
controlPoints: {
|
|
203
|
+
type: "array",
|
|
204
|
+
items: {
|
|
205
|
+
type: "object",
|
|
206
|
+
required: ["locationPoint"],
|
|
207
|
+
properties: {
|
|
208
|
+
locationPoint: { $ref: "#/$defs/locationPoint" },
|
|
209
|
+
weight: { type: "number" }
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
knots: { type: "array", items: { type: "number" }, minItems: 4 }
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
globalPlan: {
|
|
219
|
+
type: "object",
|
|
220
|
+
required: ["timestamp", "globalPlan"],
|
|
221
|
+
properties: {
|
|
222
|
+
timestamp: { $ref: "#/$defs/timestamp" },
|
|
223
|
+
globalPlan: { type: "array", items: { $ref: "#/$defs/locationPointStamped" } }
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
request: {
|
|
227
|
+
type: "object",
|
|
228
|
+
required: ["destination", "source", "sequenceId", "timestamp", "details"],
|
|
229
|
+
properties: {
|
|
230
|
+
destination: { anyOf: [{ $ref: "#/$defs/uuid" }, { const: "" }] },
|
|
231
|
+
source: { $ref: "#/$defs/uuid" },
|
|
232
|
+
sequenceId: { type: "integer", minimum: 0 },
|
|
233
|
+
timestamp: { $ref: "#/$defs/timestamp" },
|
|
234
|
+
priority: { type: "integer", minimum: 0, maximum: 255 },
|
|
235
|
+
atomic: { type: "boolean" },
|
|
236
|
+
details: { type: "array", minItems: 1, items: { $ref: "#/$defs/requestDetail" } },
|
|
237
|
+
recoveries: { type: "array", items: { $ref: "#/$defs/requestDetail" } }
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
requestStatus: {
|
|
241
|
+
type: "object",
|
|
242
|
+
required: ["source", "destination", "sequenceId", "requestSequenceId", "timestamp", "status", "detailStatuses"],
|
|
243
|
+
properties: {
|
|
244
|
+
source: { $ref: "#/$defs/uuid" },
|
|
245
|
+
destination: { $ref: "#/$defs/uuid" },
|
|
246
|
+
sequenceId: { type: "integer", minimum: 0 },
|
|
247
|
+
requestSequenceId: { type: "integer", minimum: 0 },
|
|
248
|
+
timestamp: { $ref: "#/$defs/timestamp" },
|
|
249
|
+
status: { enum: ["RECEIVED", "ACCEPTED", "EXECUTING", "CANCELED", "SUCCEEDED", "ABORTED", "RECOVERY"] },
|
|
250
|
+
detailStatuses: { type: "array", items: { $ref: "#/$defs/requestDetailStatus" } },
|
|
251
|
+
recoveryStatuses: { type: "array", items: { $ref: "#/$defs/requestDetailStatus" } }
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
requestStatusArray: { type: "array", items: { $ref: "#/$defs/requestStatus" } }
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
// src/schema/validators.ts
|
|
259
|
+
var ajv = new Ajv2020({ allErrors: true, strict: false });
|
|
260
|
+
addFormats(ajv);
|
|
261
|
+
ajv.addSchema(iso21423_schema_default);
|
|
262
|
+
var KNOWN_STATES = new Set(KNOWN_OPERATING_STATES);
|
|
263
|
+
function collectWarnings(kind, value, warnings) {
|
|
264
|
+
if (kind !== "entityStatus") return;
|
|
265
|
+
const states = value?.states;
|
|
266
|
+
if (!Array.isArray(states)) return;
|
|
267
|
+
for (const s of states) {
|
|
268
|
+
if (typeof s === "string" && !KNOWN_STATES.has(s)) {
|
|
269
|
+
warnings.push(`entityStatus: unknown operating state "${s}" (deployment extension?)`);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
function validateMessage(kind, raw) {
|
|
274
|
+
const { value, warnings } = normalizeInbound(kind, raw);
|
|
275
|
+
const validate = ajv.getSchema(`https://openrobops.org/schemas/iso21423/v1.json#/$defs/${kind}`);
|
|
276
|
+
if (!validate) throw new Error(`No schema for message kind: ${kind}`);
|
|
277
|
+
const ok = validate(value);
|
|
278
|
+
collectWarnings(kind, value, warnings);
|
|
279
|
+
return ok ? { ok: true, value, warnings } : { ok: false, value, warnings, errors: validate.errors ?? [] };
|
|
280
|
+
}
|
|
281
|
+
function assertValid(kind, value) {
|
|
282
|
+
const r = validateMessage(kind, value);
|
|
283
|
+
if (!r.ok) {
|
|
284
|
+
throw new ValidationError(`outbound ${kind} message is not ISO 21423 conformant`, r.errors ?? []);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export {
|
|
289
|
+
normalizeInbound,
|
|
290
|
+
validateMessage,
|
|
291
|
+
assertValid
|
|
292
|
+
};
|
|
293
|
+
//# sourceMappingURL=chunk-UW6WTEPT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schema/normalize.ts","../src/schema/validators.ts","../src/schema/iso21423.schema.json"],"sourcesContent":["/**\n * Copyright 2026 InOrbit, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst TIMESTAMP_KEYS = new Set(['timestamp', 'arrivalTime']);\nconst COMMA_TS = /^(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}),(\\d+)(Z|[+-]\\d{2}:?\\d{2})$/;\n\n/** Recursively rewrites comma-decimal timestamps (e.g. \"12:00:00,500Z\") to dot-decimal form, recording a warning per fix. */\nfunction fixTimestamps(value: unknown, warnings: string[], path: string): unknown {\n if (Array.isArray(value)) return value.map((v, i) => fixTimestamps(v, warnings, `${path}[${i}]`));\n if (value === null || typeof value !== 'object') return value;\n const out: Record<string, unknown> = {};\n for (const [k, v] of Object.entries(value as Record<string, unknown>)) {\n if (TIMESTAMP_KEYS.has(k) && typeof v === 'string' && COMMA_TS.test(v)) {\n out[k] = v.replace(COMMA_TS, '$1.$2$3');\n warnings.push(`${path}.${k}: comma-decimal timestamp normalized to dot form`);\n } else {\n out[k] = fixTimestamps(v, warnings, `${path}.${k}`);\n }\n }\n return out;\n}\n\n/**\n * Best-effort cleanup of inbound wire payloads before schema validation: fixes comma-decimal\n * timestamps and, for `entityStatus`, renames the legacy `id` field to `entityId` (spec §3.1).\n * Never throws; returns the corrected value plus human-readable warnings for anything it touched.\n */\nexport function normalizeInbound(kind: string, value: unknown): { value: unknown; warnings: string[] } {\n const warnings: string[] = [];\n let v = fixTimestamps(value, warnings, kind);\n if (kind === 'entityStatus' && v !== null && typeof v === 'object' && !Array.isArray(v)) {\n const o = v as Record<string, unknown>;\n if (o.entityId === undefined && typeof o.id === 'string') {\n const { id, ...rest } = o;\n v = { ...rest, entityId: id };\n warnings.push('entityStatus: legacy field \"id\" renamed to \"entityId\" (spec §3.1)');\n }\n }\n return { value: v, warnings };\n}\n","/**\n * Copyright 2026 InOrbit, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Ajv2020 } from 'ajv/dist/2020.js';\nimport addFormats from 'ajv-formats';\nimport schema from './iso21423.schema.json' with { type: 'json' };\nimport { KNOWN_OPERATING_STATES } from '../types/constants.js';\nimport { ValidationError } from '../errors.js';\nimport { normalizeInbound } from './normalize.js';\n\nexport type MessageKind =\n | 'entityIdentity' | 'entityStatus' | 'batteryStatus' | 'odometry'\n | 'localTrajectory' | 'globalPath' | 'globalPlan'\n | 'request' | 'requestStatus' | 'requestStatusArray';\n\n/** Result of {@link validateMessage}: `value` is the normalized payload (present whether or not it validated). */\nexport interface ValidationResult {\n ok: boolean;\n value?: unknown;\n warnings: string[];\n errors?: unknown[];\n}\n\nconst ajv = new Ajv2020({ allErrors: true, strict: false });\n(addFormats as unknown as (ajv: Ajv2020) => void)(ajv);\najv.addSchema(schema);\n\nconst KNOWN_STATES = new Set<string>(KNOWN_OPERATING_STATES);\n\n/** Appends a warning (mutating `warnings`) for each `entityStatus.states` entry not in {@link KNOWN_OPERATING_STATES} — schema-valid but possibly a deployment-specific extension. */\nfunction collectWarnings(kind: MessageKind, value: unknown, warnings: string[]): void {\n if (kind !== 'entityStatus') return;\n const states = (value as { states?: unknown })?.states;\n if (!Array.isArray(states)) return;\n for (const s of states) {\n if (typeof s === 'string' && !KNOWN_STATES.has(s)) {\n warnings.push(`entityStatus: unknown operating state \"${s}\" (deployment extension?)`);\n }\n }\n}\n\n/** Normalizes then validates a raw wire payload against the ISO 21423 JSON Schema for `kind`. Throws if `kind` has no registered schema. */\nexport function validateMessage(kind: MessageKind, raw: unknown): ValidationResult {\n const { value, warnings } = normalizeInbound(kind, raw);\n const validate = ajv.getSchema(`https://openrobops.org/schemas/iso21423/v1.json#/$defs/${kind}`);\n if (!validate) throw new Error(`No schema for message kind: ${kind}`);\n const ok = validate(value) as boolean;\n collectWarnings(kind, value, warnings);\n return ok\n ? { ok: true, value, warnings }\n : { ok: false, value, warnings, errors: validate.errors ?? [] };\n}\n\n/** Egress guard: throws on non-conformant outbound payloads. */\nexport function assertValid(kind: MessageKind, value: unknown): void {\n const r = validateMessage(kind, value);\n if (!r.ok) {\n throw new ValidationError(`outbound ${kind} message is not ISO 21423 conformant`, r.errors ?? []);\n }\n}\n","{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://openrobops.org/schemas/iso21423/v1.json\",\n \"$defs\": {\n \"uuid\": { \"type\": \"string\", \"pattern\": \"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$\" },\n \"timestamp\": { \"type\": \"string\", \"format\": \"date-time\" },\n \"point\": {\n \"type\": \"object\", \"required\": [\"x\", \"y\"],\n \"properties\": { \"x\": { \"type\": \"number\" }, \"y\": { \"type\": \"number\" } }\n },\n \"locationPoint\": {\n \"type\": \"object\", \"required\": [\"ccsId\", \"x\", \"y\", \"z\"],\n \"properties\": {\n \"ccsId\": { \"$ref\": \"#/$defs/uuid\" },\n \"x\": { \"type\": \"number\" }, \"y\": { \"type\": \"number\" }, \"z\": { \"type\": \"number\" }\n }\n },\n \"orientation\": {\n \"type\": \"object\", \"required\": [\"yaw\", \"pitch\", \"roll\"],\n \"properties\": { \"yaw\": { \"type\": \"number\" }, \"pitch\": { \"type\": \"number\" }, \"roll\": { \"type\": \"number\" } }\n },\n \"capabilities\": {\n \"type\": \"object\", \"required\": [\"provides\", \"accepts\"],\n \"properties\": {\n \"provides\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } },\n \"accepts\": {\n \"type\": \"object\", \"required\": [\"requests\"],\n \"properties\": { \"requests\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } } }\n },\n \"manages\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/uuid\" } },\n \"managedBy\": { \"$ref\": \"#/$defs/uuid\" }\n }\n },\n \"softwareVersion\": {\n \"type\": \"object\", \"required\": [\"moduleName\", \"moduleVersion\"],\n \"properties\": { \"moduleName\": { \"type\": \"string\" }, \"moduleVersion\": { \"type\": \"string\" } }\n },\n \"locationPointStamped\": {\n \"type\": \"object\", \"required\": [\"timestamp\", \"locationPoint\"],\n \"properties\": {\n \"timestamp\": { \"$ref\": \"#/$defs/timestamp\" },\n \"locationPoint\": { \"$ref\": \"#/$defs/locationPoint\" }\n }\n },\n \"requestDetail\": {\n \"type\": \"object\", \"required\": [\"type\", \"version\"],\n \"properties\": {\n \"type\": { \"type\": \"string\" },\n \"version\": { \"type\": \"string\" },\n \"format\": { \"type\": \"string\" },\n \"blocking\": { \"type\": \"boolean\" },\n \"atomic\": { \"type\": \"boolean\" },\n \"properties\": { \"type\": \"object\" }\n }\n },\n \"requestDetailStatus\": {\n \"type\": \"object\", \"required\": [\"type\", \"version\", \"status\"],\n \"properties\": {\n \"type\": { \"type\": \"string\" },\n \"version\": { \"type\": \"string\" },\n \"blocking\": { \"type\": \"boolean\" },\n \"status\": {\n \"type\": \"object\", \"required\": [\"code\"],\n \"properties\": {\n \"code\": { \"enum\": [\"RECEIVED\", \"ACCEPTED\", \"EXECUTING\", \"CANCELED\", \"SUCCEEDED\", \"ABORTED\"] },\n \"reason\": { \"type\": \"string\" },\n \"message\": { \"type\": \"string\" }\n }\n },\n \"properties\": { \"type\": \"object\" }\n }\n },\n \"entityIdentity\": {\n \"type\": \"object\",\n \"required\": [\"id\", \"timestamp\", \"entityType\", \"manufacturerName\", \"capabilities\", \"details\"],\n \"properties\": {\n \"id\": { \"$ref\": \"#/$defs/uuid\" },\n \"timestamp\": { \"$ref\": \"#/$defs/timestamp\" },\n \"entityType\": { \"type\": \"string\" },\n \"manufacturerName\": { \"type\": \"string\" },\n \"iso21423Version\": { \"type\": \"string\" },\n \"capabilities\": { \"$ref\": \"#/$defs/capabilities\" },\n \"details\": { \"type\": \"object\" }\n }\n },\n \"entityStatus\": {\n \"type\": \"object\", \"required\": [\"entityId\", \"timestamp\", \"states\"],\n \"properties\": {\n \"entityId\": { \"$ref\": \"#/$defs/uuid\" },\n \"timestamp\": { \"$ref\": \"#/$defs/timestamp\" },\n \"states\": { \"type\": \"array\", \"items\": { \"type\": \"string\", \"pattern\": \"^[A-Z0-9_]+$\" } },\n \"disabledCapabilities\": { \"$ref\": \"#/$defs/capabilities\" }\n }\n },\n \"batteryStatus\": {\n \"type\": \"object\", \"required\": [\"timestamp\", \"batterySoc\"],\n \"properties\": {\n \"timestamp\": { \"$ref\": \"#/$defs/timestamp\" },\n \"batterySoc\": { \"type\": \"number\", \"minimum\": 0, \"maximum\": 1 },\n \"batteryHealth\": { \"type\": \"string\" },\n \"batteryTemperature\": { \"type\": \"number\" },\n \"batteryVoltage\": { \"type\": \"number\" },\n \"batteryCurrent\": { \"type\": \"number\" },\n \"batteryChargingState\": { \"type\": \"string\" }\n }\n },\n \"odometry\": {\n \"type\": \"object\", \"required\": [\"timestamp\", \"pose\", \"velocity\"],\n \"properties\": {\n \"timestamp\": { \"$ref\": \"#/$defs/timestamp\" },\n \"pose\": {\n \"type\": \"object\", \"required\": [\"locationPoint\", \"orientation\"],\n \"properties\": {\n \"locationPoint\": { \"$ref\": \"#/$defs/locationPoint\" },\n \"orientation\": { \"$ref\": \"#/$defs/orientation\" }\n }\n },\n \"velocity\": {\n \"type\": \"object\", \"required\": [\"linear\", \"angular\"],\n \"properties\": { \"linear\": { \"type\": \"number\" }, \"angular\": { \"type\": \"number\" } }\n }\n }\n },\n \"localTrajectory\": {\n \"type\": \"object\", \"required\": [\"timestamp\", \"localTrajectory\"],\n \"properties\": {\n \"timestamp\": { \"$ref\": \"#/$defs/timestamp\" },\n \"localTrajectory\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/locationPointStamped\" } }\n }\n },\n \"globalPath\": {\n \"type\": \"object\", \"required\": [\"timestamp\", \"globalPath\"],\n \"properties\": {\n \"timestamp\": { \"$ref\": \"#/$defs/timestamp\" },\n \"globalPath\": {\n \"type\": \"object\", \"required\": [\"degree\", \"controlPoints\", \"knots\"],\n \"properties\": {\n \"degree\": { \"type\": \"integer\", \"minimum\": 1 },\n \"controlPoints\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\", \"required\": [\"locationPoint\"],\n \"properties\": {\n \"locationPoint\": { \"$ref\": \"#/$defs/locationPoint\" },\n \"weight\": { \"type\": \"number\" }\n }\n }\n },\n \"knots\": { \"type\": \"array\", \"items\": { \"type\": \"number\" }, \"minItems\": 4 }\n }\n }\n }\n },\n \"globalPlan\": {\n \"type\": \"object\", \"required\": [\"timestamp\", \"globalPlan\"],\n \"properties\": {\n \"timestamp\": { \"$ref\": \"#/$defs/timestamp\" },\n \"globalPlan\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/locationPointStamped\" } }\n }\n },\n \"request\": {\n \"type\": \"object\",\n \"required\": [\"destination\", \"source\", \"sequenceId\", \"timestamp\", \"details\"],\n \"properties\": {\n \"destination\": { \"anyOf\": [{ \"$ref\": \"#/$defs/uuid\" }, { \"const\": \"\" }] },\n \"source\": { \"$ref\": \"#/$defs/uuid\" },\n \"sequenceId\": { \"type\": \"integer\", \"minimum\": 0 },\n \"timestamp\": { \"$ref\": \"#/$defs/timestamp\" },\n \"priority\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 255 },\n \"atomic\": { \"type\": \"boolean\" },\n \"details\": { \"type\": \"array\", \"minItems\": 1, \"items\": { \"$ref\": \"#/$defs/requestDetail\" } },\n \"recoveries\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/requestDetail\" } }\n }\n },\n \"requestStatus\": {\n \"type\": \"object\",\n \"required\": [\"source\", \"destination\", \"sequenceId\", \"requestSequenceId\", \"timestamp\", \"status\", \"detailStatuses\"],\n \"properties\": {\n \"source\": { \"$ref\": \"#/$defs/uuid\" },\n \"destination\": { \"$ref\": \"#/$defs/uuid\" },\n \"sequenceId\": { \"type\": \"integer\", \"minimum\": 0 },\n \"requestSequenceId\": { \"type\": \"integer\", \"minimum\": 0 },\n \"timestamp\": { \"$ref\": \"#/$defs/timestamp\" },\n \"status\": { \"enum\": [\"RECEIVED\", \"ACCEPTED\", \"EXECUTING\", \"CANCELED\", \"SUCCEEDED\", \"ABORTED\", \"RECOVERY\"] },\n \"detailStatuses\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/requestDetailStatus\" } },\n \"recoveryStatuses\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/requestDetailStatus\" } }\n }\n },\n \"requestStatusArray\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/requestStatus\" } }\n }\n}\n"],"mappings":";;;;;;;;AAgBA,IAAM,iBAAiB,oBAAI,IAAI,CAAC,aAAa,aAAa,CAAC;AAC3D,IAAM,WAAW;AAGjB,SAAS,cAAc,OAAgB,UAAoB,MAAuB;AAChF,MAAI,MAAM,QAAQ,KAAK,EAAG,QAAO,MAAM,IAAI,CAAC,GAAG,MAAM,cAAc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