@continuonai/rcan-ts 0.5.0 → 0.8.0
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 +90 -182
- package/dist/browser.d.mts +337 -16
- package/dist/browser.mjs +758 -16
- package/dist/browser.mjs.map +1 -1
- package/dist/index.d.mts +337 -16
- package/dist/index.d.ts +337 -16
- package/dist/index.js +798 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +756 -16
- package/dist/index.mjs.map +1 -1
- package/dist/rcan-validate.js +17 -2
- package/dist/rcan.iife.js +3 -3
- package/package.json +3 -3
package/dist/browser.d.mts
CHANGED
|
@@ -56,18 +56,18 @@ declare enum MessageType {
|
|
|
56
56
|
HEARTBEAT = 4,
|
|
57
57
|
CONFIG = 5,
|
|
58
58
|
SAFETY = 6,
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
AUTH = 7,
|
|
60
|
+
ERROR = 8,
|
|
61
61
|
DISCOVER = 9,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
PENDING_AUTH = 10,
|
|
63
|
+
INVOKE = 11,
|
|
64
|
+
INVOKE_RESULT = 12,
|
|
65
|
+
INVOKE_CANCEL = 13,
|
|
66
|
+
REGISTRY_REGISTER = 14,
|
|
67
|
+
REGISTRY_RESOLVE = 15,
|
|
68
|
+
TRANSPARENCY = 16,// EU AI Act Art. 13 audit record
|
|
69
69
|
COMMAND_ACK = 17,
|
|
70
|
-
|
|
70
|
+
COMMAND_NACK = 18,
|
|
71
71
|
ROBOT_REVOCATION = 19,
|
|
72
72
|
CONSENT_REQUEST = 20,
|
|
73
73
|
CONSENT_GRANT = 21,
|
|
@@ -76,7 +76,22 @@ declare enum MessageType {
|
|
|
76
76
|
SUBSCRIBE = 24,
|
|
77
77
|
UNSUBSCRIBE = 25,
|
|
78
78
|
FAULT_REPORT = 26,
|
|
79
|
-
|
|
79
|
+
KEY_ROTATION = 27,
|
|
80
|
+
COMMAND_COMMIT = 28,
|
|
81
|
+
SENSOR_DATA = 29,
|
|
82
|
+
TRAINING_CONSENT_REQUEST = 30,
|
|
83
|
+
TRAINING_CONSENT_GRANT = 31,
|
|
84
|
+
TRAINING_CONSENT_DENY = 32,
|
|
85
|
+
CONTRIBUTE_REQUEST = 33,
|
|
86
|
+
CONTRIBUTE_RESULT = 34,
|
|
87
|
+
CONTRIBUTE_CANCEL = 35,
|
|
88
|
+
TRAINING_DATA = 36,
|
|
89
|
+
/** @deprecated Use FLEET_COMMAND (23) */
|
|
90
|
+
FEDERATION_SYNC = 23,
|
|
91
|
+
/** @deprecated Use FAULT_REPORT (26) */
|
|
92
|
+
ALERT = 26,
|
|
93
|
+
/** @deprecated Use TRANSPARENCY (16) */
|
|
94
|
+
AUDIT = 16
|
|
80
95
|
}
|
|
81
96
|
/** §8.5 — Sender Type and Service Identity */
|
|
82
97
|
type SenderType = "robot" | "human" | "cloud_function" | "system";
|
|
@@ -121,6 +136,12 @@ interface RCANMessageData {
|
|
|
121
136
|
proximityMeters?: number;
|
|
122
137
|
/** v1.5: GAP-15 observer */
|
|
123
138
|
readOnly?: boolean;
|
|
139
|
+
/** v1.6: GAP-14 level of assurance */
|
|
140
|
+
loa?: number;
|
|
141
|
+
/** v1.6: GAP-17 transport encoding hint */
|
|
142
|
+
transportEncoding?: string;
|
|
143
|
+
/** v1.6: GAP-18 multi-modal media chunks */
|
|
144
|
+
mediaChunks?: Array<Record<string, unknown>>;
|
|
124
145
|
[key: string]: unknown;
|
|
125
146
|
}
|
|
126
147
|
declare class RCANMessageError extends Error {
|
|
@@ -147,6 +168,12 @@ declare class RCANMessage {
|
|
|
147
168
|
readonly presenceVerified: boolean | undefined;
|
|
148
169
|
readonly proximityMeters: number | undefined;
|
|
149
170
|
readonly readOnly: boolean | undefined;
|
|
171
|
+
/** v1.6: GAP-14 level of assurance */
|
|
172
|
+
readonly loa: number | undefined;
|
|
173
|
+
/** v1.6: GAP-17 transport encoding hint */
|
|
174
|
+
readonly transportEncoding: string | undefined;
|
|
175
|
+
/** v1.6: GAP-18 multi-modal media chunks */
|
|
176
|
+
readonly mediaChunks: Array<Record<string, unknown>> | undefined;
|
|
150
177
|
constructor(data: RCANMessageData);
|
|
151
178
|
/** Whether this message has a signature block */
|
|
152
179
|
get isSigned(): boolean;
|
|
@@ -714,7 +741,9 @@ declare function makeTransparencyMessage(ruri: string, disclosure: string, deleg
|
|
|
714
741
|
* §3.5 — Protocol Version Compatibility
|
|
715
742
|
*/
|
|
716
743
|
/** The RCAN spec version this SDK implements. */
|
|
717
|
-
declare const SPEC_VERSION = "1.
|
|
744
|
+
declare const SPEC_VERSION = "1.9.0";
|
|
745
|
+
/** The SDK release version. */
|
|
746
|
+
declare const SDK_VERSION = "0.8.0";
|
|
718
747
|
/**
|
|
719
748
|
* Validate version compatibility.
|
|
720
749
|
*
|
|
@@ -1176,15 +1205,307 @@ interface AuditExportRequest {
|
|
|
1176
1205
|
}
|
|
1177
1206
|
|
|
1178
1207
|
/**
|
|
1179
|
-
*
|
|
1208
|
+
* RCAN Identity & Level of Assurance (LoA) — GAP-14.
|
|
1209
|
+
*
|
|
1210
|
+
* Provides JWT-based LoA extraction and per-scope policy enforcement.
|
|
1211
|
+
* Backward compatible: DEFAULT_LOA_POLICY requires only ANONYMOUS (LoA 1).
|
|
1212
|
+
*/
|
|
1213
|
+
declare enum LevelOfAssurance {
|
|
1214
|
+
ANONYMOUS = 1,
|
|
1215
|
+
EMAIL_VERIFIED = 2,
|
|
1216
|
+
HARDWARE_TOKEN = 3
|
|
1217
|
+
}
|
|
1218
|
+
interface LoaPolicy {
|
|
1219
|
+
minLoaDiscover: LevelOfAssurance;
|
|
1220
|
+
minLoaStatus: LevelOfAssurance;
|
|
1221
|
+
minLoaChat: LevelOfAssurance;
|
|
1222
|
+
minLoaControl: LevelOfAssurance;
|
|
1223
|
+
minLoaSafety: LevelOfAssurance;
|
|
1224
|
+
}
|
|
1225
|
+
/** Backward-compatible policy — every scope accepts anonymous callers. */
|
|
1226
|
+
declare const DEFAULT_LOA_POLICY: LoaPolicy;
|
|
1227
|
+
/** Production-hardened policy — control needs e-mail, safety needs hardware token. */
|
|
1228
|
+
declare const PRODUCTION_LOA_POLICY: LoaPolicy;
|
|
1229
|
+
/**
|
|
1230
|
+
* Decode a JWT (header.payload.sig) and return the `loa` claim.
|
|
1231
|
+
* Defaults to ANONYMOUS when the claim is absent or the token is malformed.
|
|
1232
|
+
*/
|
|
1233
|
+
declare function extractLoaFromJwt(token: string): LevelOfAssurance;
|
|
1234
|
+
/**
|
|
1235
|
+
* Check whether `loa` satisfies the minimum required for `scope`.
|
|
1236
|
+
*
|
|
1237
|
+
* @param loa - Caller's assurance level
|
|
1238
|
+
* @param scope - One of discover | status | chat | control | safety
|
|
1239
|
+
* @param policy - Defaults to DEFAULT_LOA_POLICY (backward compatible)
|
|
1240
|
+
*/
|
|
1241
|
+
declare function validateLoaForScope(loa: LevelOfAssurance, scope: string, policy?: LoaPolicy): {
|
|
1242
|
+
valid: boolean;
|
|
1243
|
+
reason: string;
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1246
|
+
/**
|
|
1247
|
+
* RCAN Federation — cross-registry trust and sync (GAP-16).
|
|
1248
|
+
*
|
|
1249
|
+
* Provides:
|
|
1250
|
+
* - Registry tier model (root / authoritative / community)
|
|
1251
|
+
* - TrustAnchorCache with 24-hour TTL and DNS-TXT discovery
|
|
1252
|
+
* - JWT verification against a trusted registry
|
|
1253
|
+
* - Cross-registry command validation (LoA ≥ 2 required; ESTOP always allowed)
|
|
1254
|
+
*/
|
|
1255
|
+
|
|
1256
|
+
declare enum RegistryTier {
|
|
1257
|
+
ROOT = "root",
|
|
1258
|
+
AUTHORITATIVE = "authoritative",
|
|
1259
|
+
COMMUNITY = "community"
|
|
1260
|
+
}
|
|
1261
|
+
declare enum FederationSyncType {
|
|
1262
|
+
CONSENT = "consent",
|
|
1263
|
+
REVOCATION = "revocation",
|
|
1264
|
+
KEY = "key"
|
|
1265
|
+
}
|
|
1266
|
+
interface RegistryIdentity {
|
|
1267
|
+
registryUrl: string;
|
|
1268
|
+
tier: RegistryTier;
|
|
1269
|
+
publicKeyPem: string;
|
|
1270
|
+
domain: string;
|
|
1271
|
+
verifiedAt?: string;
|
|
1272
|
+
}
|
|
1273
|
+
interface FederationSyncPayload {
|
|
1274
|
+
sourceRegistry: string;
|
|
1275
|
+
targetRegistry: string;
|
|
1276
|
+
syncType: FederationSyncType;
|
|
1277
|
+
payload: Record<string, unknown>;
|
|
1278
|
+
signature: string;
|
|
1279
|
+
}
|
|
1280
|
+
/**
|
|
1281
|
+
* In-memory cache of trusted registry identities.
|
|
1282
|
+
*
|
|
1283
|
+
* Entries expire after 24 hours. Discovery via DNS TXT records
|
|
1284
|
+
* (_rcan-registry.<domain>) is supported in Node.js environments.
|
|
1285
|
+
*/
|
|
1286
|
+
declare class TrustAnchorCache {
|
|
1287
|
+
private readonly store;
|
|
1288
|
+
/** Store or refresh a registry identity. */
|
|
1289
|
+
set(identity: RegistryIdentity): void;
|
|
1290
|
+
/**
|
|
1291
|
+
* Look up a registry URL.
|
|
1292
|
+
* Returns undefined when absent or when the TTL has expired.
|
|
1293
|
+
*/
|
|
1294
|
+
lookup(url: string): RegistryIdentity | undefined;
|
|
1295
|
+
/**
|
|
1296
|
+
* Discover a registry via DNS TXT record `_rcan-registry.<domain>`.
|
|
1297
|
+
*
|
|
1298
|
+
* The TXT record is expected to contain a JSON object with the
|
|
1299
|
+
* RegistryIdentity fields. Returns the identity and caches it.
|
|
1300
|
+
*
|
|
1301
|
+
* Node.js only — returns undefined in environments without `dns.promises`.
|
|
1302
|
+
*/
|
|
1303
|
+
discoverViaDns(domain: string): Promise<RegistryIdentity | undefined>;
|
|
1304
|
+
/**
|
|
1305
|
+
* Verify a JWT was issued by the registry at `url`.
|
|
1306
|
+
*
|
|
1307
|
+
* Validates the `iss` claim and checks the registry is in the trust cache.
|
|
1308
|
+
* Full cryptographic signature verification requires the registry's public
|
|
1309
|
+
* key material — callers should perform additional checks using `publicKeyPem`
|
|
1310
|
+
* from the returned identity.
|
|
1311
|
+
*/
|
|
1312
|
+
verifyRegistryJwt(token: string, url: string): Promise<RegistryIdentity>;
|
|
1313
|
+
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Build a FEDERATION_SYNC message (MessageType 12).
|
|
1316
|
+
*/
|
|
1317
|
+
declare function makeFederationSync(source: string, target: string, syncType: FederationSyncType, payload: FederationSyncPayload): RCANMessage;
|
|
1318
|
+
/**
|
|
1319
|
+
* Validate a cross-registry command against the local trust anchor cache.
|
|
1320
|
+
*
|
|
1321
|
+
* Rules:
|
|
1322
|
+
* - ESTOP (SAFETY type 6 or cmd=estop) always returns valid (P66 invariant).
|
|
1323
|
+
* - All other cross-registry commands require LoA ≥ 2 (EMAIL_VERIFIED).
|
|
1324
|
+
* - If the message originates from `localRegistry` it is not cross-registry.
|
|
1325
|
+
*/
|
|
1326
|
+
declare function validateCrossRegistryCommand(msg: RCANMessage, localRegistry: string, trustCache: TrustAnchorCache): Promise<{
|
|
1327
|
+
valid: boolean;
|
|
1328
|
+
reason: string;
|
|
1329
|
+
}>;
|
|
1330
|
+
|
|
1331
|
+
/**
|
|
1332
|
+
* RCAN Constrained-Transport Encodings — GAP-17.
|
|
1333
|
+
*
|
|
1334
|
+
* Provides compact JSON, 32-byte minimal (ESTOP-only), BLE frame fragmentation,
|
|
1335
|
+
* and a transport-selection helper. No external runtime dependencies.
|
|
1336
|
+
*/
|
|
1337
|
+
|
|
1338
|
+
declare class TransportError extends Error {
|
|
1339
|
+
constructor(message: string);
|
|
1340
|
+
}
|
|
1341
|
+
declare enum TransportEncoding {
|
|
1342
|
+
HTTP = "http",
|
|
1343
|
+
COMPACT = "compact",
|
|
1344
|
+
MINIMAL = "minimal",
|
|
1345
|
+
BLE = "ble"
|
|
1346
|
+
}
|
|
1347
|
+
/** Serialize a RCANMessage to compact JSON bytes. */
|
|
1348
|
+
declare function encodeCompact(message: RCANMessage): Uint8Array;
|
|
1349
|
+
/** Deserialize compact JSON bytes to a RCANMessage. */
|
|
1350
|
+
declare function decodeCompact(data: Uint8Array): RCANMessage;
|
|
1351
|
+
/**
|
|
1352
|
+
* Encode a SAFETY (type 6) message to a 32-byte minimal frame.
|
|
1353
|
+
*
|
|
1354
|
+
* Layout: [2B type][8B from_hash][8B to_hash][4B unix32][8B sig_truncated][2B checksum]
|
|
1355
|
+
*
|
|
1356
|
+
* - Only SAFETY (type 6) messages are accepted; throws `TransportError` for others.
|
|
1357
|
+
* - Runtime assertion: output MUST be exactly 32 bytes.
|
|
1358
|
+
*/
|
|
1359
|
+
declare function encodeMinimal(message: RCANMessage): Promise<Uint8Array>;
|
|
1360
|
+
/**
|
|
1361
|
+
* Decode a 32-byte minimal frame to a partial RCANMessage.
|
|
1362
|
+
*/
|
|
1363
|
+
declare function decodeMinimal(data: Uint8Array): Partial<RCANMessage>;
|
|
1364
|
+
/**
|
|
1365
|
+
* Fragment a RCANMessage into BLE advertisement frames.
|
|
1366
|
+
* Compact JSON encoding is used for the payload; each chunk is ≤ `mtu` bytes.
|
|
1367
|
+
*/
|
|
1368
|
+
declare function encodeBleFrames(message: RCANMessage, mtu?: number): Uint8Array[];
|
|
1369
|
+
/**
|
|
1370
|
+
* Reassemble BLE frames (in order) into a RCANMessage.
|
|
1371
|
+
*/
|
|
1372
|
+
declare function decodeBleFrames(frames: Uint8Array[]): RCANMessage;
|
|
1373
|
+
/**
|
|
1374
|
+
* Select the most appropriate transport encoding from an availability list.
|
|
1375
|
+
*
|
|
1376
|
+
* Priority:
|
|
1377
|
+
* - SAFETY (type 6) messages: prefer MINIMAL → BLE → COMPACT → HTTP
|
|
1378
|
+
* - All others: prefer HTTP → COMPACT → BLE
|
|
1379
|
+
*/
|
|
1380
|
+
declare function selectTransport(available: TransportEncoding[], message: RCANMessage): TransportEncoding;
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* RCAN Multi-modal Data — GAP-18.
|
|
1384
|
+
*
|
|
1385
|
+
* Provides inline and by-reference media attachment for RCANMessage,
|
|
1386
|
+
* streaming chunk helpers, and training-data message construction.
|
|
1387
|
+
* SHA-256 is computed via the Web Crypto API (built-in Node 18+).
|
|
1388
|
+
*/
|
|
1389
|
+
|
|
1390
|
+
declare enum MediaEncoding {
|
|
1391
|
+
BASE64 = "base64",
|
|
1392
|
+
REF = "ref"
|
|
1393
|
+
}
|
|
1394
|
+
interface MediaChunk {
|
|
1395
|
+
chunkId: string;
|
|
1396
|
+
mimeType: string;
|
|
1397
|
+
encoding: MediaEncoding;
|
|
1398
|
+
hashSha256: string;
|
|
1399
|
+
dataB64?: string;
|
|
1400
|
+
refUrl?: string;
|
|
1401
|
+
sizeBytes: number;
|
|
1402
|
+
}
|
|
1403
|
+
interface StreamChunk {
|
|
1404
|
+
streamId: string;
|
|
1405
|
+
chunkIndex: number;
|
|
1406
|
+
isFinal: boolean;
|
|
1407
|
+
chunk: MediaChunk;
|
|
1408
|
+
}
|
|
1409
|
+
/**
|
|
1410
|
+
* Attach inline (base64-encoded) media to a message.
|
|
1411
|
+
* SHA-256 is computed via Web Crypto API.
|
|
1412
|
+
*/
|
|
1413
|
+
declare function addMediaInline(message: RCANMessage, data: Uint8Array, mimeType: string): Promise<RCANMessage>;
|
|
1414
|
+
/**
|
|
1415
|
+
* Attach a media reference (URL + pre-computed hash) to a message.
|
|
1416
|
+
*/
|
|
1417
|
+
declare function addMediaRef(message: RCANMessage, refUrl: string, mimeType: string, hashSha256: string, sizeBytes: number): RCANMessage;
|
|
1418
|
+
/**
|
|
1419
|
+
* Validate media chunks on a message.
|
|
1420
|
+
* Checks that inline chunks have dataB64 and ref chunks have refUrl.
|
|
1421
|
+
*/
|
|
1422
|
+
declare function validateMediaChunks(message: RCANMessage): Promise<{
|
|
1423
|
+
valid: boolean;
|
|
1424
|
+
reason: string;
|
|
1425
|
+
}>;
|
|
1426
|
+
/**
|
|
1427
|
+
* Build a TRAINING_DATA message (MessageType 10) with multiple media attachments.
|
|
1428
|
+
*/
|
|
1429
|
+
declare function makeTrainingDataMessage(media: Array<{
|
|
1430
|
+
data: Uint8Array;
|
|
1431
|
+
mimeType: string;
|
|
1432
|
+
}>): Promise<RCANMessage>;
|
|
1433
|
+
/**
|
|
1434
|
+
* Build a streaming chunk message wrapping a single media item.
|
|
1435
|
+
*/
|
|
1436
|
+
declare function makeStreamChunk(streamId: string, data: Uint8Array, mimeType: string, chunkIndex: number, isFinal: boolean): Promise<RCANMessage>;
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
* rcan/contribute — Idle Compute Contribution messages and scope.
|
|
1440
|
+
*
|
|
1441
|
+
* Implements the contribute scope and message types for RCAN v1.7+.
|
|
1442
|
+
* Robots can donate idle NPU/GPU/CPU compute to distributed science projects.
|
|
1443
|
+
*
|
|
1444
|
+
* Spec: §3 MessageTypes 33–35, Identity scope level 2.5
|
|
1445
|
+
*/
|
|
1446
|
+
|
|
1447
|
+
/** Contribute scope level — between chat (2) and control (3). */
|
|
1448
|
+
declare const CONTRIBUTE_SCOPE_LEVEL = 2.5;
|
|
1449
|
+
type WorkUnitStatus = "pending" | "running" | "completed" | "failed" | "cancelled" | "preempted";
|
|
1450
|
+
type ComputeResource = "npu" | "gpu" | "cpu" | "sensor";
|
|
1451
|
+
interface ContributeRequest {
|
|
1452
|
+
type: typeof MessageType.CONTRIBUTE_REQUEST;
|
|
1453
|
+
request_id: string;
|
|
1454
|
+
project_id: string;
|
|
1455
|
+
project_name: string;
|
|
1456
|
+
work_unit_id: string;
|
|
1457
|
+
resource_type: ComputeResource;
|
|
1458
|
+
estimated_duration_s: number;
|
|
1459
|
+
priority: number;
|
|
1460
|
+
payload: Record<string, unknown>;
|
|
1461
|
+
timestamp: number;
|
|
1462
|
+
}
|
|
1463
|
+
interface ContributeResult {
|
|
1464
|
+
type: typeof MessageType.CONTRIBUTE_RESULT;
|
|
1465
|
+
request_id: string;
|
|
1466
|
+
work_unit_id: string;
|
|
1467
|
+
status: WorkUnitStatus;
|
|
1468
|
+
resource_type: ComputeResource;
|
|
1469
|
+
duration_s: number;
|
|
1470
|
+
compute_units: number;
|
|
1471
|
+
result_payload: Record<string, unknown>;
|
|
1472
|
+
error_message?: string;
|
|
1473
|
+
timestamp: number;
|
|
1474
|
+
}
|
|
1475
|
+
interface ContributeCancel {
|
|
1476
|
+
type: typeof MessageType.CONTRIBUTE_CANCEL;
|
|
1477
|
+
request_id: string;
|
|
1478
|
+
work_unit_id: string;
|
|
1479
|
+
reason: string;
|
|
1480
|
+
timestamp: number;
|
|
1481
|
+
}
|
|
1482
|
+
declare function makeContributeRequest(params?: Partial<Omit<ContributeRequest, "type">>): ContributeRequest;
|
|
1483
|
+
declare function makeContributeResult(params?: Partial<Omit<ContributeResult, "type">>): ContributeResult;
|
|
1484
|
+
declare function makeContributeCancel(params?: Partial<Omit<ContributeCancel, "type">>): ContributeCancel;
|
|
1485
|
+
/**
|
|
1486
|
+
* Check if the given scope level permits contribute operations.
|
|
1487
|
+
*
|
|
1488
|
+
* Contribute requires scope >= 2.5 (between chat and control).
|
|
1489
|
+
*/
|
|
1490
|
+
declare function validateContributeScope(scopeLevel: number, action?: "request" | "result" | "cancel"): boolean;
|
|
1491
|
+
/**
|
|
1492
|
+
* Check if the given scope level preempts contribution.
|
|
1493
|
+
*
|
|
1494
|
+
* Any scope >= control (3.0) preempts contribute immediately.
|
|
1495
|
+
* This is the P66 safety invariant — non-negotiable.
|
|
1496
|
+
*/
|
|
1497
|
+
declare function isPreemptedBy(scopeLevel: number): boolean;
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* rcan-ts — Official TypeScript SDK for RCAN v1.6
|
|
1180
1501
|
* Robot Communication and Accountability Network
|
|
1181
1502
|
*
|
|
1182
1503
|
* @see https://rcan.dev
|
|
1183
1504
|
* @see https://github.com/continuonai/rcan-ts
|
|
1184
1505
|
*/
|
|
1185
1506
|
|
|
1186
|
-
declare const VERSION = "0.
|
|
1507
|
+
declare const VERSION = "0.6.0";
|
|
1187
1508
|
/** @deprecated Use SPEC_VERSION from ./version instead */
|
|
1188
|
-
declare const RCAN_VERSION = "1.
|
|
1509
|
+
declare const RCAN_VERSION = "1.6";
|
|
1189
1510
|
|
|
1190
|
-
export { type ApprovalStatus, AuditChain, AuditError, type AuditExportRequest, type CachedKey, type ChainVerifyResult, ClockDriftError, type ClockSyncStatus, CommitmentRecord, type CommitmentRecordData, type CommitmentRecordJSON, ConfidenceGate, type ConsentRequestParams, type ConsentResponseParams, type ConsentType, DataCategory, type DelegationHop, FaultCode, type FaultReportParams, type FaultSeverity, GateError, HiTLGate, type JWKEntry, type JWKSDocument, KeyStore, type ListResult, MessageType, NodeClient, type OfflineCommandResult, OfflineModeManager, type OfflineState, type PendingApproval, QoSAckTimeoutError, QoSLevel, QoSManager, type QoSResult, type QoSSendOptions, RCANAddressError, type RCANAgentConfig, type RCANConfig, RCANConfigAuthorizationError, RCANDelegationChainError, RCANError, RCANGateError, RCANMessage, type RCANMessageData, type RCANMessageEnvelope, RCANMessageError, type RCANMetadata, RCANNodeError, RCANNodeNotFoundError, RCANNodeSyncError, RCANNodeTrustError, RCANRegistryError, type RCANRegistryNode, RCANReplayAttackError, type RCANResolveResult, RCANSignatureError, RCANValidationError, RCANVersionIncompatibleError, RCAN_VERSION, type RegistrationResult, RegistryClient, ReplayCache, type ReplayCheckResult, type ReplayableMessage, RevocationCache, type RevocationStatus, type RevocationStatusValue, type Robot, type RobotRegistration, RobotURI, RobotURIError, type RobotURIOptions, SAFETY_MESSAGE_TYPE, SPEC_VERSION, type SafetyEvent, type SafetyMessage, type SenderType, type SignatureBlock, type TrainingConsentRequestParams, type TransparencyMessage, VERSION, type ValidationResult, addDelegationHop, assertClockSynced, checkClockSync, checkRevocation, fetchCanonicalSchema, isSafetyMessage, makeCloudRelayMessage, makeConfigUpdate, makeConsentDeny, makeConsentGrant, makeConsentRequest, makeEstopMessage, makeEstopWithQoS, makeFaultReport, makeKeyRotationMessage, makeResumeMessage, makeRevocationBroadcast, makeStopMessage, makeTrainingConsentDeny, makeTrainingConsentGrant, makeTrainingConsentRequest, makeTransparencyMessage, validateConfig, validateConfigAgainstSchema, validateConfigUpdate, validateConsentMessage, validateDelegationChain, validateMessage, validateNodeAgainstSchema, validateReplay, validateSafetyMessage, validateTrainingDataMessage, validateURI, validateVersionCompat };
|
|
1511
|
+
export { type ApprovalStatus, AuditChain, AuditError, type AuditExportRequest, CONTRIBUTE_SCOPE_LEVEL, type CachedKey, type ChainVerifyResult, ClockDriftError, type ClockSyncStatus, CommitmentRecord, type CommitmentRecordData, type CommitmentRecordJSON, type ComputeResource, ConfidenceGate, type ConsentRequestParams, type ConsentResponseParams, type ConsentType, type ContributeCancel, type ContributeRequest, type ContributeResult, DEFAULT_LOA_POLICY, DataCategory, type DelegationHop, FaultCode, type FaultReportParams, type FaultSeverity, type FederationSyncPayload, FederationSyncType, GateError, HiTLGate, type JWKEntry, type JWKSDocument, KeyStore, LevelOfAssurance, type ListResult, type LoaPolicy, type MediaChunk, MediaEncoding, MessageType, NodeClient, type OfflineCommandResult, OfflineModeManager, type OfflineState, PRODUCTION_LOA_POLICY, type PendingApproval, QoSAckTimeoutError, QoSLevel, QoSManager, type QoSResult, type QoSSendOptions, RCANAddressError, type RCANAgentConfig, type RCANConfig, RCANConfigAuthorizationError, RCANDelegationChainError, RCANError, RCANGateError, RCANMessage, type RCANMessageData, type RCANMessageEnvelope, RCANMessageError, type RCANMetadata, RCANNodeError, RCANNodeNotFoundError, RCANNodeSyncError, RCANNodeTrustError, RCANRegistryError, type RCANRegistryNode, RCANReplayAttackError, type RCANResolveResult, RCANSignatureError, RCANValidationError, RCANVersionIncompatibleError, RCAN_VERSION, type RegistrationResult, RegistryClient, type RegistryIdentity, RegistryTier, ReplayCache, type ReplayCheckResult, type ReplayableMessage, RevocationCache, type RevocationStatus, type RevocationStatusValue, type Robot, type RobotRegistration, RobotURI, RobotURIError, type RobotURIOptions, SAFETY_MESSAGE_TYPE, SDK_VERSION, SPEC_VERSION, type SafetyEvent, type SafetyMessage, type SenderType, type SignatureBlock, type StreamChunk, type TrainingConsentRequestParams, type TransparencyMessage, TransportEncoding, TransportError, TrustAnchorCache, VERSION, type ValidationResult, type WorkUnitStatus, addDelegationHop, addMediaInline, addMediaRef, assertClockSynced, checkClockSync, checkRevocation, decodeBleFrames, decodeCompact, decodeMinimal, encodeBleFrames, encodeCompact, encodeMinimal, extractLoaFromJwt, fetchCanonicalSchema, isPreemptedBy, isSafetyMessage, makeCloudRelayMessage, makeConfigUpdate, makeConsentDeny, makeConsentGrant, makeConsentRequest, makeContributeCancel, makeContributeRequest, makeContributeResult, makeEstopMessage, makeEstopWithQoS, makeFaultReport, makeFederationSync, makeKeyRotationMessage, makeResumeMessage, makeRevocationBroadcast, makeStopMessage, makeStreamChunk, makeTrainingConsentDeny, makeTrainingConsentGrant, makeTrainingConsentRequest, makeTrainingDataMessage, makeTransparencyMessage, selectTransport, validateConfig, validateConfigAgainstSchema, validateConfigUpdate, validateConsentMessage, validateContributeScope, validateCrossRegistryCommand, validateDelegationChain, validateLoaForScope, validateMediaChunks, validateMessage, validateNodeAgainstSchema, validateReplay, validateSafetyMessage, validateTrainingDataMessage, validateURI, validateVersionCompat };
|