@neuracore/types 10.5.0 → 10.6.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 CHANGED
@@ -25,6 +25,14 @@ yarn add @neuracore/types
25
25
  pnpm add @neuracore/types
26
26
  ```
27
27
 
28
+ To track unreleased types from `main` (used by staging deploys and tests), install
29
+ the `main` dist-tag instead. It is republished on every push to `main` that changes
30
+ the generated types:
31
+
32
+ ```bash
33
+ npm install @neuracore/types@main
34
+ ```
35
+
28
36
  ## Development
29
37
 
30
38
  ### Setup
@@ -105,6 +105,33 @@ export interface TraceStatusUpdates {
105
105
  uploaded_bytes?: number | null;
106
106
  total_bytes?: number | null;
107
107
  }
108
+ /**
109
+ * Request to start (or join) a dataset statistics calculation.
110
+ *
111
+ * Attributes:
112
+ * synchronized_dataset_id: Synchronized dataset to compute statistics over.
113
+ * input_cross_embodiment_description: Mapping of robot IDs to the canonical
114
+ * index of each input data item.
115
+ * output_cross_embodiment_description: Mapping of robot IDs to the canonical
116
+ * index of each output data item.
117
+ */
118
+ export interface CalculateDatasetStatisticsRequest {
119
+ synchronized_dataset_id: string;
120
+ input_cross_embodiment_description: {
121
+ [k: string]: {
122
+ [k: string]: {
123
+ [k: string]: string;
124
+ };
125
+ };
126
+ };
127
+ output_cross_embodiment_description: {
128
+ [k: string]: {
129
+ [k: string]: {
130
+ [k: string]: string;
131
+ };
132
+ };
133
+ };
134
+ }
108
135
  /**
109
136
  * Camera sensor data including images and calibration information.
110
137
  *
@@ -850,6 +877,32 @@ export interface DatasetSplitRequest {
850
877
  description?: string | null;
851
878
  tags?: string[] | null;
852
879
  }
880
+ /**
881
+ * State of an asynchronous dataset statistics calculation.
882
+ *
883
+ * Returned both when starting a job and when polling it, so a caller reads the
884
+ * total, the progress and the completion signal from one consistent snapshot.
885
+ *
886
+ * Attributes:
887
+ * job_id: Identifier derived from the dataset, its recording set and both
888
+ * cross-embodiment descriptions. Stable across repeat requests, and
889
+ * different whenever any of those change.
890
+ * synchronized_dataset_id: Synchronized dataset the job covers.
891
+ * status: Current lifecycle stage.
892
+ * num_recordings: Recordings the job must process.
893
+ * num_completed_recordings: Recordings whose statistics are done. Reaching
894
+ * num_recordings does not mean the result is fetchable: the aggregate
895
+ * stage runs afterwards, so completion is read from ``status``.
896
+ * error: Failure message when status is FAILED.
897
+ */
898
+ export interface DatasetStatisticsJob {
899
+ job_id: string;
900
+ synchronized_dataset_id: string;
901
+ status: DatasetStatisticsJobStatus;
902
+ num_recordings: number;
903
+ num_completed_recordings: number;
904
+ error?: string | null;
905
+ }
853
906
  /**
854
907
  * Request model for dataset updates.
855
908
  *
@@ -1597,8 +1650,12 @@ export interface SynchronizedDataset {
1597
1650
  *
1598
1651
  * Attributes:
1599
1652
  * synchronized_dataset_id: Unique identifier for the synced dataset.
1600
- * cross_embodiment_description: Mapping of robot IDs to data type names.
1601
- * dataset_statistics: Statistics for each robot and data type.
1653
+ * input_cross_embodiment_description: Mapping of robot IDs to the canonical
1654
+ * index of each input data item.
1655
+ * output_cross_embodiment_description: Mapping of robot IDs to the canonical
1656
+ * index of each output data item.
1657
+ * dataset_statistics: Statistics for each robot and data type, keyed by
1658
+ * "input" and "output" and dense by canonical index.
1602
1659
  */
1603
1660
  export interface SynchronizedDatasetStatistics {
1604
1661
  synchronized_dataset_id: string;
@@ -1985,6 +2042,16 @@ export declare enum DatasetTypeConfig {
1985
2042
  LEROBOT = "LEROBOT",
1986
2043
  TFDS = "TFDS"
1987
2044
  }
2045
+ /**
2046
+ * Lifecycle stage of an asynchronous dataset statistics calculation.
2047
+ */
2048
+ export declare enum DatasetStatisticsJobStatus {
2049
+ PENDING = "PENDING",
2050
+ RUNNING = "RUNNING",
2051
+ AGGREGATING = "AGGREGATING",
2052
+ COMPLETE = "COMPLETE",
2053
+ FAILED = "FAILED"
2054
+ }
1988
2055
  /**
1989
2056
  * GPU types available for training and deployment.
1990
2057
  */
@@ -6,7 +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.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.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.DataType = void 0;
9
+ 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.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.DataType = void 0;
10
+ exports.GPUType2 = void 0;
10
11
  /**
11
12
  * Enumeration of supported data types in the Neuracore system.
12
13
  *
@@ -248,6 +249,17 @@ var DatasetTypeConfig;
248
249
  DatasetTypeConfig["LEROBOT"] = "LEROBOT";
249
250
  DatasetTypeConfig["TFDS"] = "TFDS";
250
251
  })(DatasetTypeConfig || (exports.DatasetTypeConfig = DatasetTypeConfig = {}));
252
+ /**
253
+ * Lifecycle stage of an asynchronous dataset statistics calculation.
254
+ */
255
+ var DatasetStatisticsJobStatus;
256
+ (function (DatasetStatisticsJobStatus) {
257
+ DatasetStatisticsJobStatus["PENDING"] = "PENDING";
258
+ DatasetStatisticsJobStatus["RUNNING"] = "RUNNING";
259
+ DatasetStatisticsJobStatus["AGGREGATING"] = "AGGREGATING";
260
+ DatasetStatisticsJobStatus["COMPLETE"] = "COMPLETE";
261
+ DatasetStatisticsJobStatus["FAILED"] = "FAILED";
262
+ })(DatasetStatisticsJobStatus || (exports.DatasetStatisticsJobStatus = DatasetStatisticsJobStatus = {}));
251
263
  /**
252
264
  * GPU types available for training and deployment.
253
265
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neuracore/types",
3
- "version": "10.5.0",
3
+ "version": "10.6.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",