@neuracore/types 11.7.0 → 11.8.0-main.137.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/neuracore_types.d.ts +72 -1
- package/dist/neuracore_types.js +27 -2
- package/package.json +1 -2
|
@@ -358,6 +358,8 @@ export interface Custom1DDataStats {
|
|
|
358
358
|
* common_data_types: Dictionary of common data types and their counts.
|
|
359
359
|
* All datatypes common to every recording which
|
|
360
360
|
* make up this dataset.
|
|
361
|
+
* is_creating: Whether the dataset is still being created.
|
|
362
|
+
* deleted: Whether the dataset has been deleted.
|
|
361
363
|
*/
|
|
362
364
|
export interface Dataset {
|
|
363
365
|
id: string;
|
|
@@ -382,6 +384,7 @@ export interface Dataset {
|
|
|
382
384
|
common_data_types: {
|
|
383
385
|
[k: string]: number;
|
|
384
386
|
};
|
|
387
|
+
is_creating: boolean;
|
|
385
388
|
deleted: boolean;
|
|
386
389
|
}
|
|
387
390
|
/**
|
|
@@ -1415,6 +1418,11 @@ export interface PendingRecording {
|
|
|
1415
1418
|
[k: string]: string[];
|
|
1416
1419
|
};
|
|
1417
1420
|
deleted: boolean;
|
|
1421
|
+
encoding: {
|
|
1422
|
+
[k: string]: {
|
|
1423
|
+
[k: string]: Codec;
|
|
1424
|
+
};
|
|
1425
|
+
};
|
|
1418
1426
|
saved_dataset_id?: string | null;
|
|
1419
1427
|
status: PendingRecordingStatus;
|
|
1420
1428
|
progress: number;
|
|
@@ -1427,11 +1435,32 @@ export interface PendingRecording {
|
|
|
1427
1435
|
* name: Name of the recording.
|
|
1428
1436
|
* notes: Optional notes about the recording.
|
|
1429
1437
|
* status: Current RecordingStatus of the recording
|
|
1438
|
+
* qa_flag_reasons: QA check failures for the recording, if any.
|
|
1430
1439
|
*/
|
|
1431
1440
|
export interface RecordingMetadata {
|
|
1432
1441
|
name: string;
|
|
1433
1442
|
notes: string;
|
|
1434
1443
|
status: RecordingStatus;
|
|
1444
|
+
qa_flag_reasons: QAFailureResult[];
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
* Result when a recording fails a QA check.
|
|
1448
|
+
*
|
|
1449
|
+
* ``affected_traces`` names the specific traces the failure was found on.
|
|
1450
|
+
* An empty list means the failure applies to the recording as a whole,
|
|
1451
|
+
* rather than to any particular trace.
|
|
1452
|
+
*/
|
|
1453
|
+
export interface QAFailureResult {
|
|
1454
|
+
passed: false;
|
|
1455
|
+
reason: QAFailureReason;
|
|
1456
|
+
affected_traces?: TraceIdentifier[];
|
|
1457
|
+
}
|
|
1458
|
+
/**
|
|
1459
|
+
* Identifies a single raw trace within a recording.
|
|
1460
|
+
*/
|
|
1461
|
+
export interface TraceIdentifier {
|
|
1462
|
+
data_type: DataType;
|
|
1463
|
+
sensor_name: string;
|
|
1435
1464
|
}
|
|
1436
1465
|
/**
|
|
1437
1466
|
* 3D point cloud data with optional RGB colouring and camera parameters.
|
|
@@ -1461,6 +1490,12 @@ export interface PoseData {
|
|
|
1461
1490
|
type: Type15;
|
|
1462
1491
|
pose: unknown[];
|
|
1463
1492
|
}
|
|
1493
|
+
/**
|
|
1494
|
+
* Result when a recording passes a QA check.
|
|
1495
|
+
*/
|
|
1496
|
+
export interface QAPassResult {
|
|
1497
|
+
passed: true;
|
|
1498
|
+
}
|
|
1464
1499
|
/**
|
|
1465
1500
|
* RGB camera data subclass.
|
|
1466
1501
|
*
|
|
@@ -1494,6 +1529,13 @@ export interface RGBCameraData {
|
|
|
1494
1529
|
* (recordings/{id}/{data_type}/{sensor}/trace.json) without listing the
|
|
1495
1530
|
* bucket. Empty for recordings finalized before this field existed.
|
|
1496
1531
|
* deleted: Whether the recording has been deleted
|
|
1532
|
+
* encoding: Codec used per sensor, nested under DataType, captured at
|
|
1533
|
+
* finalize. Sensors under the same DataType may hold different
|
|
1534
|
+
* codecs (e.g. after a mid-recording encoding change), so each
|
|
1535
|
+
* camera's value is preserved rather than collapsed into one.
|
|
1536
|
+
* Empty means either no camera data types or a recording
|
|
1537
|
+
* predating the field. Non-empty must cover every camera data
|
|
1538
|
+
* type present in data_types.
|
|
1497
1539
|
*/
|
|
1498
1540
|
export interface Recording {
|
|
1499
1541
|
id: string;
|
|
@@ -1511,6 +1553,11 @@ export interface Recording {
|
|
|
1511
1553
|
[k: string]: string[];
|
|
1512
1554
|
};
|
|
1513
1555
|
deleted: boolean;
|
|
1556
|
+
encoding: {
|
|
1557
|
+
[k: string]: {
|
|
1558
|
+
[k: string]: Codec;
|
|
1559
|
+
};
|
|
1560
|
+
};
|
|
1514
1561
|
}
|
|
1515
1562
|
/**
|
|
1516
1563
|
* Represents a single data trace belonging to a recording.
|
|
@@ -1523,6 +1570,7 @@ export interface RecordingDataTrace {
|
|
|
1523
1570
|
recording_id: string;
|
|
1524
1571
|
data_type: DataType;
|
|
1525
1572
|
sensor_name: string | null;
|
|
1573
|
+
encoding?: Codec | null;
|
|
1526
1574
|
status: RecordingDataTraceStatus1;
|
|
1527
1575
|
created_at: number;
|
|
1528
1576
|
uploaded_at: number | null;
|
|
@@ -2225,7 +2273,30 @@ export declare enum Type13 {
|
|
|
2225
2273
|
*/
|
|
2226
2274
|
export declare enum RecordingStatus {
|
|
2227
2275
|
NORMAL = "NORMAL",
|
|
2228
|
-
FLAGGED = "FLAGGED"
|
|
2276
|
+
FLAGGED = "FLAGGED",
|
|
2277
|
+
QA_FLAGGED = "QA_FLAGGED"
|
|
2278
|
+
}
|
|
2279
|
+
/**
|
|
2280
|
+
* Reasons why a recording can fail QA.
|
|
2281
|
+
*/
|
|
2282
|
+
export declare enum QAFailureReason {
|
|
2283
|
+
LARGE_GAPS = "LARGE_GAPS",
|
|
2284
|
+
INCONSISTENT_START_TIME = "INCONSISTENT_START_TIME",
|
|
2285
|
+
INCONSISTENT_END_TIME = "INCONSISTENT_END_TIME",
|
|
2286
|
+
TOO_FEW_POINTS = "TOO_FEW_POINTS",
|
|
2287
|
+
LOW_COVERAGE = "LOW_COVERAGE"
|
|
2288
|
+
}
|
|
2289
|
+
/**
|
|
2290
|
+
* Codecs available for recorded camera video.
|
|
2291
|
+
*
|
|
2292
|
+
* Attributes:
|
|
2293
|
+
* H264_LOSSLESS: Default. Lossless archive plus a small lossy preview.
|
|
2294
|
+
* H264_MEDIUM: Lossy-only single libx264 CRF 23 video, used for both
|
|
2295
|
+
* preview and training.
|
|
2296
|
+
*/
|
|
2297
|
+
export declare enum Codec {
|
|
2298
|
+
h264_lossless = "h264_lossless",
|
|
2299
|
+
h264_medium = "h264_medium"
|
|
2229
2300
|
}
|
|
2230
2301
|
/**
|
|
2231
2302
|
* Pending recording status.
|
package/dist/neuracore_types.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
/* Do not modify it by hand - just update the pydantic models and then re-run the script
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
10
|
-
exports.GPUType2 = exports.TrainingJobStatus = exports.SynchronizeRecordingStatus1 = exports.SynchronizeRecordingStatus = exports.RecordingNotificationType = void 0;
|
|
9
|
+
exports.Type15 = exports.Type14 = exports.PendingRecordingStatus = exports.Codec = exports.QAFailureReason = exports.RecordingStatus = exports.Type13 = exports.VideoFormat = exports.Type12 = exports.Type11 = exports.Type10 = exports.Type9 = exports.Type8 = exports.Type7 = exports.Type6 = exports.MessageType = exports.GPUType1 = exports.EndpointStatus = exports.Type5 = exports.Type4 = exports.Type3 = exports.GPUType = exports.DatasetStatisticsJobStatus = exports.DatasetTypeConfig = exports.Type2 = exports.IntrinsicsConfig = exports.PoseConfig1 = exports.ActionSpaceConfig = exports.ActionTypeConfig = exports.JointPositionInputTypeConfig = exports.VisualJointInputTypeConfig = exports.LanguageConfig = exports.EndEffectorPoseInputTypeConfig = exports.Frame = exports.AngleConfig1 = exports.EulerOrderConfig = exports.QuaternionOrderConfig = exports.RotationConfig = exports.PoseConfig = exports.DistanceUnitsConfig = exports.TorqueUnitsConfig = exports.AngleConfig = exports.ImageChannelOrderConfig = exports.ImageConventionConfig = exports.Type1 = exports.Type = exports.RecordingDataTraceStatus = exports.RobotAvailabilityEventType1 = exports.RobotAvailabilityEventType = exports.DataType = void 0;
|
|
10
|
+
exports.GPUType2 = exports.TrainingJobStatus = exports.SynchronizeRecordingStatus1 = exports.SynchronizeRecordingStatus = exports.RecordingNotificationType = exports.RecordingDataTraceStatus1 = exports.Type16 = void 0;
|
|
11
11
|
/**
|
|
12
12
|
* Enumeration of supported data types in the Neuracore system.
|
|
13
13
|
*
|
|
@@ -382,7 +382,32 @@ var RecordingStatus;
|
|
|
382
382
|
(function (RecordingStatus) {
|
|
383
383
|
RecordingStatus["NORMAL"] = "NORMAL";
|
|
384
384
|
RecordingStatus["FLAGGED"] = "FLAGGED";
|
|
385
|
+
RecordingStatus["QA_FLAGGED"] = "QA_FLAGGED";
|
|
385
386
|
})(RecordingStatus || (exports.RecordingStatus = RecordingStatus = {}));
|
|
387
|
+
/**
|
|
388
|
+
* Reasons why a recording can fail QA.
|
|
389
|
+
*/
|
|
390
|
+
var QAFailureReason;
|
|
391
|
+
(function (QAFailureReason) {
|
|
392
|
+
QAFailureReason["LARGE_GAPS"] = "LARGE_GAPS";
|
|
393
|
+
QAFailureReason["INCONSISTENT_START_TIME"] = "INCONSISTENT_START_TIME";
|
|
394
|
+
QAFailureReason["INCONSISTENT_END_TIME"] = "INCONSISTENT_END_TIME";
|
|
395
|
+
QAFailureReason["TOO_FEW_POINTS"] = "TOO_FEW_POINTS";
|
|
396
|
+
QAFailureReason["LOW_COVERAGE"] = "LOW_COVERAGE";
|
|
397
|
+
})(QAFailureReason || (exports.QAFailureReason = QAFailureReason = {}));
|
|
398
|
+
/**
|
|
399
|
+
* Codecs available for recorded camera video.
|
|
400
|
+
*
|
|
401
|
+
* Attributes:
|
|
402
|
+
* H264_LOSSLESS: Default. Lossless archive plus a small lossy preview.
|
|
403
|
+
* H264_MEDIUM: Lossy-only single libx264 CRF 23 video, used for both
|
|
404
|
+
* preview and training.
|
|
405
|
+
*/
|
|
406
|
+
var Codec;
|
|
407
|
+
(function (Codec) {
|
|
408
|
+
Codec["h264_lossless"] = "h264_lossless";
|
|
409
|
+
Codec["h264_medium"] = "h264_medium";
|
|
410
|
+
})(Codec || (exports.Codec = Codec = {}));
|
|
386
411
|
/**
|
|
387
412
|
* Pending recording status.
|
|
388
413
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neuracore/types",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.8.0-main.137.1",
|
|
4
4
|
"description": "Shared TypeScript type definitions for Neuracore robotics platform",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"typescript": "^5.3.0",
|
|
29
29
|
"grpc-tools": "^1.13.0"
|
|
30
|
-
|
|
31
30
|
},
|
|
32
31
|
"publishConfig": {
|
|
33
32
|
"access": "public"
|