@neuracore/types 3.0.0 → 4.0.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/dist/neuracore_types.d.ts +64 -29
- package/dist/neuracore_types.js +29 -16
- package/package.json +1 -1
|
@@ -485,6 +485,41 @@ export interface ParallelGripperOpenAmountData {
|
|
|
485
485
|
type?: Type13;
|
|
486
486
|
open_amount: number;
|
|
487
487
|
}
|
|
488
|
+
/**
|
|
489
|
+
* Represents a pending recording.
|
|
490
|
+
*
|
|
491
|
+
* Attributes:
|
|
492
|
+
* saved_dataset_id: ID of the dataset where the recording is saved
|
|
493
|
+
*/
|
|
494
|
+
export interface PendingRecording {
|
|
495
|
+
id: string;
|
|
496
|
+
robot_id: string;
|
|
497
|
+
instance?: number;
|
|
498
|
+
org_id: string;
|
|
499
|
+
created_by?: string;
|
|
500
|
+
start_time?: number;
|
|
501
|
+
end_time?: number | null;
|
|
502
|
+
metadata?: RecordingMetadata;
|
|
503
|
+
total_bytes?: number;
|
|
504
|
+
is_shared?: boolean;
|
|
505
|
+
data_types?: DataType[];
|
|
506
|
+
saved_dataset_id: string;
|
|
507
|
+
status?: PendingRecordingStatus;
|
|
508
|
+
progress: number;
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Metadata details for a recording.
|
|
512
|
+
*
|
|
513
|
+
* Attributes:
|
|
514
|
+
* name: Name of the recording.
|
|
515
|
+
* notes: Optional notes about the recording.
|
|
516
|
+
* status: Current RecordingStatus of the recording
|
|
517
|
+
*/
|
|
518
|
+
export interface RecordingMetadata {
|
|
519
|
+
name?: string;
|
|
520
|
+
notes?: string;
|
|
521
|
+
status?: RecordingStatus;
|
|
522
|
+
}
|
|
488
523
|
/**
|
|
489
524
|
* 3D point cloud data with optional RGB colouring and camera parameters.
|
|
490
525
|
*
|
|
@@ -554,32 +589,20 @@ export interface Recording {
|
|
|
554
589
|
data_types?: DataType[];
|
|
555
590
|
}
|
|
556
591
|
/**
|
|
557
|
-
*
|
|
592
|
+
* Represents a single data trace belonging to a recording.
|
|
558
593
|
*
|
|
559
|
-
*
|
|
560
|
-
*
|
|
561
|
-
* notes: Optional notes about the recording.
|
|
562
|
-
* status: Current RecordingStatus of the recording
|
|
594
|
+
* This is used to track upload completion for each trace so that
|
|
595
|
+
* a recording can be saved once all traces are uploaded.
|
|
563
596
|
*/
|
|
564
|
-
export interface
|
|
565
|
-
name?: string;
|
|
566
|
-
notes?: string;
|
|
567
|
-
status?: RecordingStatus;
|
|
568
|
-
}
|
|
569
|
-
/**
|
|
570
|
-
* Represents a single data stream belonging to a recording.
|
|
571
|
-
*
|
|
572
|
-
* This is used to track upload completion for each stream so that
|
|
573
|
-
* a recording can be saved once all streams are uploaded.
|
|
574
|
-
*/
|
|
575
|
-
export interface RecordingDataStream {
|
|
597
|
+
export interface RecordingDataTrace {
|
|
576
598
|
id: string;
|
|
577
599
|
recording_id: string;
|
|
578
600
|
data_type: DataType;
|
|
579
|
-
status?:
|
|
580
|
-
upload_progress: number;
|
|
601
|
+
status?: RecordingDataTraceStatus;
|
|
581
602
|
created_at?: number;
|
|
582
603
|
uploaded_at: number | null;
|
|
604
|
+
uploaded_bytes?: number;
|
|
605
|
+
total_bytes?: number;
|
|
583
606
|
}
|
|
584
607
|
/**
|
|
585
608
|
* Notification message for recording lifecycle events.
|
|
@@ -935,6 +958,25 @@ export declare enum VideoFormat {
|
|
|
935
958
|
export declare enum Type13 {
|
|
936
959
|
ParallelGripperOpenAmountData = "ParallelGripperOpenAmountData"
|
|
937
960
|
}
|
|
961
|
+
/**
|
|
962
|
+
* Recording status options.
|
|
963
|
+
*/
|
|
964
|
+
export declare enum RecordingStatus {
|
|
965
|
+
NORMAL = "NORMAL",
|
|
966
|
+
FLAGGED = "FLAGGED"
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* Pending recording status.
|
|
970
|
+
*
|
|
971
|
+
* STARTED: recording in progress.
|
|
972
|
+
* UPLOADING: at least one trace has upload_progress between 0 and 99.
|
|
973
|
+
* UPLOADED: all traces are completely uploaded.
|
|
974
|
+
*/
|
|
975
|
+
export declare enum PendingRecordingStatus {
|
|
976
|
+
STARTED = "STARTED",
|
|
977
|
+
UPLOADING = "UPLOADING",
|
|
978
|
+
UPLOADED = "UPLOADED"
|
|
979
|
+
}
|
|
938
980
|
export declare enum Type14 {
|
|
939
981
|
PointCloudData = "PointCloudData"
|
|
940
982
|
}
|
|
@@ -945,17 +987,10 @@ export declare enum Type16 {
|
|
|
945
987
|
RGBCameraData = "RGBCameraData"
|
|
946
988
|
}
|
|
947
989
|
/**
|
|
948
|
-
*
|
|
990
|
+
* Status for a recording data trace upload lifecycle.
|
|
949
991
|
*/
|
|
950
|
-
export declare enum
|
|
951
|
-
|
|
952
|
-
flagged = "flagged"
|
|
953
|
-
}
|
|
954
|
-
/**
|
|
955
|
-
* Status for a recording data stream upload lifecycle.
|
|
956
|
-
*/
|
|
957
|
-
export declare enum RecordingDataStreamStatus {
|
|
958
|
-
PENDING = "PENDING",
|
|
992
|
+
export declare enum RecordingDataTraceStatus {
|
|
993
|
+
QUEUED = "QUEUED",
|
|
959
994
|
UPLOAD_STARTED = "UPLOAD_STARTED",
|
|
960
995
|
UPLOAD_COMPLETE = "UPLOAD_COMPLETE"
|
|
961
996
|
}
|
package/dist/neuracore_types.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
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.GPUType1 = exports.TrainingJobStatus = exports.RecordingNotificationType = exports.
|
|
9
|
+
exports.GPUType1 = exports.TrainingJobStatus = exports.RecordingNotificationType = exports.RecordingDataTraceStatus = exports.Type16 = exports.Type15 = exports.Type14 = exports.PendingRecordingStatus = exports.RecordingStatus = exports.Type13 = exports.VideoFormat = exports.Type12 = exports.Type11 = exports.Type10 = exports.Type9 = exports.Type8 = exports.Type7 = exports.Type6 = exports.GPUType = exports.MessageType = exports.Type5 = exports.Type4 = exports.Type3 = exports.Type2 = exports.Type1 = exports.Type = exports.DataType = void 0;
|
|
10
10
|
/**
|
|
11
11
|
* Enumeration of supported data types in the Neuracore system.
|
|
12
12
|
*
|
|
@@ -119,6 +119,27 @@ var Type13;
|
|
|
119
119
|
(function (Type13) {
|
|
120
120
|
Type13["ParallelGripperOpenAmountData"] = "ParallelGripperOpenAmountData";
|
|
121
121
|
})(Type13 || (exports.Type13 = Type13 = {}));
|
|
122
|
+
/**
|
|
123
|
+
* Recording status options.
|
|
124
|
+
*/
|
|
125
|
+
var RecordingStatus;
|
|
126
|
+
(function (RecordingStatus) {
|
|
127
|
+
RecordingStatus["NORMAL"] = "NORMAL";
|
|
128
|
+
RecordingStatus["FLAGGED"] = "FLAGGED";
|
|
129
|
+
})(RecordingStatus || (exports.RecordingStatus = RecordingStatus = {}));
|
|
130
|
+
/**
|
|
131
|
+
* Pending recording status.
|
|
132
|
+
*
|
|
133
|
+
* STARTED: recording in progress.
|
|
134
|
+
* UPLOADING: at least one trace has upload_progress between 0 and 99.
|
|
135
|
+
* UPLOADED: all traces are completely uploaded.
|
|
136
|
+
*/
|
|
137
|
+
var PendingRecordingStatus;
|
|
138
|
+
(function (PendingRecordingStatus) {
|
|
139
|
+
PendingRecordingStatus["STARTED"] = "STARTED";
|
|
140
|
+
PendingRecordingStatus["UPLOADING"] = "UPLOADING";
|
|
141
|
+
PendingRecordingStatus["UPLOADED"] = "UPLOADED";
|
|
142
|
+
})(PendingRecordingStatus || (exports.PendingRecordingStatus = PendingRecordingStatus = {}));
|
|
122
143
|
var Type14;
|
|
123
144
|
(function (Type14) {
|
|
124
145
|
Type14["PointCloudData"] = "PointCloudData";
|
|
@@ -132,22 +153,14 @@ var Type16;
|
|
|
132
153
|
Type16["RGBCameraData"] = "RGBCameraData";
|
|
133
154
|
})(Type16 || (exports.Type16 = Type16 = {}));
|
|
134
155
|
/**
|
|
135
|
-
*
|
|
136
|
-
*/
|
|
137
|
-
var RecordingStatus;
|
|
138
|
-
(function (RecordingStatus) {
|
|
139
|
-
RecordingStatus["normal"] = "normal";
|
|
140
|
-
RecordingStatus["flagged"] = "flagged";
|
|
141
|
-
})(RecordingStatus || (exports.RecordingStatus = RecordingStatus = {}));
|
|
142
|
-
/**
|
|
143
|
-
* Status for a recording data stream upload lifecycle.
|
|
156
|
+
* Status for a recording data trace upload lifecycle.
|
|
144
157
|
*/
|
|
145
|
-
var
|
|
146
|
-
(function (
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
})(
|
|
158
|
+
var RecordingDataTraceStatus;
|
|
159
|
+
(function (RecordingDataTraceStatus) {
|
|
160
|
+
RecordingDataTraceStatus["QUEUED"] = "QUEUED";
|
|
161
|
+
RecordingDataTraceStatus["UPLOAD_STARTED"] = "UPLOAD_STARTED";
|
|
162
|
+
RecordingDataTraceStatus["UPLOAD_COMPLETE"] = "UPLOAD_COMPLETE";
|
|
163
|
+
})(RecordingDataTraceStatus || (exports.RecordingDataTraceStatus = RecordingDataTraceStatus = {}));
|
|
151
164
|
/**
|
|
152
165
|
* Types of recording lifecycle notifications.
|
|
153
166
|
*/
|