@neuracore/types 7.0.0 → 7.1.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.
@@ -81,6 +81,30 @@ export interface BaseRecodingUpdatePayload {
81
81
  robot_id: string;
82
82
  instance: number;
83
83
  }
84
+ /**
85
+ * Request body for updating the status/progress of multiple data traces.
86
+ *
87
+ * Attributes:
88
+ * updates: A dictionary of trace_id -> TraceStatusUpdates
89
+ */
90
+ export interface BatchedUpdateTraceRequest {
91
+ updates: {
92
+ [k: string]: TraceStatusUpdates;
93
+ };
94
+ }
95
+ /**
96
+ * Represents an update status/progress of a data trace.
97
+ *
98
+ * Attributes:
99
+ * status: The status of the trace upload.
100
+ * uploaded_bytes: The number of bytes uploaded.
101
+ * total_bytes: The total number of bytes expected.
102
+ */
103
+ export interface TraceStatusUpdates {
104
+ status?: RecordingDataTraceStatus | null;
105
+ uploaded_bytes?: number | null;
106
+ total_bytes?: number | null;
107
+ }
84
108
  /**
85
109
  * Camera sensor data including images and calibration information.
86
110
  *
@@ -1305,7 +1329,7 @@ export interface RecordingDataTrace {
1305
1329
  id: string;
1306
1330
  recording_id: string;
1307
1331
  data_type: DataType;
1308
- status: RecordingDataTraceStatus;
1332
+ status: RecordingDataTraceStatus1;
1309
1333
  created_at: number;
1310
1334
  uploaded_at: number | null;
1311
1335
  uploaded_bytes: number;
@@ -1631,6 +1655,14 @@ export declare enum DataType {
1631
1655
  LANGUAGE = "LANGUAGE",
1632
1656
  CUSTOM_1D = "CUSTOM_1D"
1633
1657
  }
1658
+ /**
1659
+ * Status for a recording data trace upload lifecycle.
1660
+ */
1661
+ export declare enum RecordingDataTraceStatus {
1662
+ QUEUED = "QUEUED",
1663
+ UPLOAD_STARTED = "UPLOAD_STARTED",
1664
+ UPLOAD_COMPLETE = "UPLOAD_COMPLETE"
1665
+ }
1634
1666
  export declare enum Type {
1635
1667
  CameraDataStats = "CameraDataStats"
1636
1668
  }
@@ -1916,7 +1948,7 @@ export declare enum Type16 {
1916
1948
  /**
1917
1949
  * Status for a recording data trace upload lifecycle.
1918
1950
  */
1919
- export declare enum RecordingDataTraceStatus {
1951
+ export declare enum RecordingDataTraceStatus1 {
1920
1952
  QUEUED = "QUEUED",
1921
1953
  UPLOAD_STARTED = "UPLOAD_STARTED",
1922
1954
  UPLOAD_COMPLETE = "UPLOAD_COMPLETE"
@@ -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.GPUType2 = 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.MessageType = exports.GPUType1 = exports.EndpointStatus = exports.Type5 = exports.Type4 = exports.Type3 = exports.GPUType = exports.DatasetTypeConfig = exports.Type2 = exports.IntrinsicsConfig = exports.PoseConfig1 = exports.ActionSpaceConfig = exports.ActionTypeConfig = exports.JointPositionInputTypeConfig = exports.VisualJointInputTypeConfig = exports.LanguageConfig = exports.EndEffectorPoseInputTypeConfig = 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.DataType = void 0;
9
+ exports.GPUType2 = exports.TrainingJobStatus = exports.RecordingNotificationType = exports.RecordingDataTraceStatus1 = 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.MessageType = exports.GPUType1 = exports.EndpointStatus = exports.Type5 = exports.Type4 = exports.Type3 = exports.GPUType = exports.DatasetTypeConfig = exports.Type2 = exports.IntrinsicsConfig = exports.PoseConfig1 = exports.ActionSpaceConfig = exports.ActionTypeConfig = exports.JointPositionInputTypeConfig = exports.VisualJointInputTypeConfig = exports.LanguageConfig = exports.EndEffectorPoseInputTypeConfig = 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.DataType = void 0;
10
10
  /**
11
11
  * Enumeration of supported data types in the Neuracore system.
12
12
  *
@@ -30,6 +30,15 @@ var DataType;
30
30
  DataType["LANGUAGE"] = "LANGUAGE";
31
31
  DataType["CUSTOM_1D"] = "CUSTOM_1D";
32
32
  })(DataType || (exports.DataType = DataType = {}));
33
+ /**
34
+ * Status for a recording data trace upload lifecycle.
35
+ */
36
+ var RecordingDataTraceStatus;
37
+ (function (RecordingDataTraceStatus) {
38
+ RecordingDataTraceStatus["QUEUED"] = "QUEUED";
39
+ RecordingDataTraceStatus["UPLOAD_STARTED"] = "UPLOAD_STARTED";
40
+ RecordingDataTraceStatus["UPLOAD_COMPLETE"] = "UPLOAD_COMPLETE";
41
+ })(RecordingDataTraceStatus || (exports.RecordingDataTraceStatus = RecordingDataTraceStatus = {}));
33
42
  var Type;
34
43
  (function (Type) {
35
44
  Type["CameraDataStats"] = "CameraDataStats";
@@ -358,12 +367,12 @@ var Type16;
358
367
  /**
359
368
  * Status for a recording data trace upload lifecycle.
360
369
  */
361
- var RecordingDataTraceStatus;
362
- (function (RecordingDataTraceStatus) {
363
- RecordingDataTraceStatus["QUEUED"] = "QUEUED";
364
- RecordingDataTraceStatus["UPLOAD_STARTED"] = "UPLOAD_STARTED";
365
- RecordingDataTraceStatus["UPLOAD_COMPLETE"] = "UPLOAD_COMPLETE";
366
- })(RecordingDataTraceStatus || (exports.RecordingDataTraceStatus = RecordingDataTraceStatus = {}));
370
+ var RecordingDataTraceStatus1;
371
+ (function (RecordingDataTraceStatus1) {
372
+ RecordingDataTraceStatus1["QUEUED"] = "QUEUED";
373
+ RecordingDataTraceStatus1["UPLOAD_STARTED"] = "UPLOAD_STARTED";
374
+ RecordingDataTraceStatus1["UPLOAD_COMPLETE"] = "UPLOAD_COMPLETE";
375
+ })(RecordingDataTraceStatus1 || (exports.RecordingDataTraceStatus1 = RecordingDataTraceStatus1 = {}));
367
376
  /**
368
377
  * Types of recording lifecycle notifications.
369
378
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neuracore/types",
3
- "version": "7.0.0",
3
+ "version": "7.1.0",
4
4
  "description": "Shared TypeScript type definitions for Neuracore robotics platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",