@neuracore/types 11.14.0 → 11.15.0-main.191.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.
@@ -0,0 +1 @@
1
+ export declare const MICROSECONDS_PER_SECOND = 1000000;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MICROSECONDS_PER_SECOND = void 0;
4
+ exports.MICROSECONDS_PER_SECOND = 1000000;
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './neuracore_types';
2
+ export * from './constants';
package/dist/index.js CHANGED
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // Auto-generated index file
18
18
  __exportStar(require("./neuracore_types"), exports);
19
+ __exportStar(require("./constants"), exports);
@@ -162,6 +162,7 @@ export interface CalculateDatasetStatisticsRequest {
162
162
  */
163
163
  export interface CameraData {
164
164
  timestamp: number;
165
+ timestamp_us?: number;
165
166
  frame_idx: number;
166
167
  extrinsics?: unknown[] | null;
167
168
  intrinsics?: unknown[] | null;
@@ -200,6 +201,7 @@ export interface DataItemStats {
200
201
  */
201
202
  export interface Custom1DData {
202
203
  timestamp: number;
204
+ timestamp_us?: number;
203
205
  type: Type1;
204
206
  data: unknown[];
205
207
  }
@@ -990,6 +992,7 @@ export interface DeploymentRequest {
990
992
  */
991
993
  export interface DepthCameraData {
992
994
  timestamp: number;
995
+ timestamp_us?: number;
993
996
  frame_idx: number;
994
997
  extrinsics?: unknown[] | null;
995
998
  intrinsics?: unknown[] | null;
@@ -1004,6 +1007,7 @@ export interface DepthCameraData {
1004
1007
  */
1005
1008
  export interface EndEffectorPoseData {
1006
1009
  timestamp: number;
1010
+ timestamp_us?: number;
1007
1011
  type: Type4;
1008
1012
  pose: unknown[];
1009
1013
  }
@@ -1211,6 +1215,7 @@ export interface SynchronizationDetails {
1211
1215
  */
1212
1216
  export interface JointData {
1213
1217
  timestamp: number;
1218
+ timestamp_us?: number;
1214
1219
  type: Type6;
1215
1220
  value: number;
1216
1221
  }
@@ -1229,6 +1234,7 @@ export interface JointDataStats {
1229
1234
  */
1230
1235
  export interface LanguageData {
1231
1236
  timestamp: number;
1237
+ timestamp_us?: number;
1232
1238
  type: Type8;
1233
1239
  text: string;
1234
1240
  }
@@ -1326,9 +1332,12 @@ export interface PointCloudDataStats {
1326
1332
  *
1327
1333
  * Provides a common base for all data types in the system with automatic
1328
1334
  * timestamp generation for temporal synchronization and data ordering.
1335
+ * `timestamp_us` is the timestamp in integer microseconds. `timestamp` is the
1336
+ * same instant in seconds, derived from `timestamp_us`.
1329
1337
  */
1330
1338
  export interface NCData {
1331
1339
  timestamp: number;
1340
+ timestamp_us?: number;
1332
1341
  }
1333
1342
  /**
1334
1343
  * Configuration for importing data to Neuracore.
@@ -1416,6 +1425,7 @@ export interface OpenConnectionRequest {
1416
1425
  */
1417
1426
  export interface ParallelGripperOpenAmountData {
1418
1427
  timestamp: number;
1428
+ timestamp_us?: number;
1419
1429
  type: Type13;
1420
1430
  open_amount: number;
1421
1431
  }
@@ -1437,6 +1447,8 @@ export interface PendingRecording {
1437
1447
  created_by: string;
1438
1448
  start_time: number;
1439
1449
  end_time?: number | null;
1450
+ start_timestamp_us?: number | null;
1451
+ end_timestamp_us?: number | null;
1440
1452
  metadata: RecordingMetadata;
1441
1453
  total_bytes: number;
1442
1454
  is_shared: boolean;
@@ -1504,6 +1516,7 @@ export interface TraceIdentifier {
1504
1516
  */
1505
1517
  export interface PointCloudData {
1506
1518
  timestamp: number;
1519
+ timestamp_us?: number;
1507
1520
  type: Type14;
1508
1521
  frame_idx: number;
1509
1522
  points?: string | null;
@@ -1520,6 +1533,7 @@ export interface PointCloudData {
1520
1533
  */
1521
1534
  export interface PoseData {
1522
1535
  timestamp: number;
1536
+ timestamp_us?: number;
1523
1537
  type: Type15;
1524
1538
  pose: unknown[];
1525
1539
  }
@@ -1530,6 +1544,7 @@ export interface PoseData {
1530
1544
  */
1531
1545
  export interface RGBCameraData {
1532
1546
  timestamp: number;
1547
+ timestamp_us?: number;
1533
1548
  frame_idx: number;
1534
1549
  extrinsics?: unknown[] | null;
1535
1550
  intrinsics?: unknown[] | null;
@@ -1563,6 +1578,10 @@ export interface RGBCameraData {
1563
1578
  * Empty means either no camera data types or a recording
1564
1579
  * predating the field. Non-empty must cover every camera data
1565
1580
  * type present in data_types.
1581
+ * start_timestamp_us: Start of the recording in integer microseconds on
1582
+ * the data clock. None for recordings stored without it.
1583
+ * end_timestamp_us: End of the recording in integer microseconds on the
1584
+ * data clock. None for recordings stored without it or not ended.
1566
1585
  */
1567
1586
  export interface Recording {
1568
1587
  id: string;
@@ -1572,6 +1591,8 @@ export interface Recording {
1572
1591
  created_by: string;
1573
1592
  start_time: number;
1574
1593
  end_time?: number | null;
1594
+ start_timestamp_us?: number | null;
1595
+ end_timestamp_us?: number | null;
1575
1596
  metadata: RecordingMetadata;
1576
1597
  total_bytes: number;
1577
1598
  is_shared: boolean;
@@ -1647,12 +1668,15 @@ export interface RecordingSort {
1647
1668
  * dataset_id: Identifier of the dataset to associate with the recording.
1648
1669
  * start_time: Client-side Unix timestamp captured when nc.start_recording()
1649
1670
  * was called.
1671
+ * start_timestamp_us: Start of the recording in integer microseconds on
1672
+ * the data clock.
1650
1673
  */
1651
1674
  export interface RecordingStartRequest {
1652
1675
  robot_id: string;
1653
1676
  instance: number;
1654
1677
  dataset_id: string;
1655
1678
  start_time: number;
1679
+ start_timestamp_us?: number | null;
1656
1680
  }
1657
1681
  /**
1658
1682
  * Request body for stopping a recording session.
@@ -1661,10 +1685,13 @@ export interface RecordingStartRequest {
1661
1685
  * recording_id: ID of the recording to stop.
1662
1686
  * end_time: Client-side Unix timestamp captured when nc.stop_recording()
1663
1687
  * was called.
1688
+ * end_timestamp_us: End of the recording in integer microseconds on the
1689
+ * data clock.
1664
1690
  */
1665
1691
  export interface RecordingStopRequest {
1666
1692
  recording_id: string;
1667
1693
  end_time: number;
1694
+ end_timestamp_us?: number | null;
1668
1695
  }
1669
1696
  /**
1670
1697
  * Represents the response from asserting a stream is alive.
@@ -1824,11 +1851,22 @@ export interface SynchronizedDatasetStatistics {
1824
1851
  }
1825
1852
  /**
1826
1853
  * Synchronized episode of time-ordered synchronized observations.
1854
+ *
1855
+ * Attributes:
1856
+ * observations: Synchronized points in time order.
1857
+ * start_time: Start of the episode in seconds, derived from
1858
+ * start_timestamp_us.
1859
+ * end_time: End of the episode in seconds, derived from end_timestamp_us.
1860
+ * start_timestamp_us: Start of the episode in integer microseconds.
1861
+ * end_timestamp_us: End of the episode in integer microseconds.
1862
+ * robot_id: ID of the robot that recorded the episode.
1827
1863
  */
1828
1864
  export interface SynchronizedEpisode {
1829
1865
  observations: SynchronizedPoint[];
1830
1866
  start_time: number;
1831
1867
  end_time: number;
1868
+ start_timestamp_us?: number;
1869
+ end_timestamp_us?: number;
1832
1870
  robot_id: string;
1833
1871
  }
1834
1872
  /**
@@ -1837,9 +1875,12 @@ export interface SynchronizedEpisode {
1837
1875
  * Represents a complete snapshot of robot state and sensor information
1838
1876
  * at a specific timestamp. Used for creating temporally aligned datasets
1839
1877
  * and ensuring consistent data relationships across different sensors.
1878
+ * `timestamp_us` is the timestamp in integer microseconds. `timestamp` is the
1879
+ * same instant in seconds, derived from `timestamp_us`.
1840
1880
  */
1841
1881
  export interface SynchronizedPoint {
1842
1882
  timestamp: number;
1883
+ timestamp_us?: number;
1843
1884
  robot_id?: string | null;
1844
1885
  data: {
1845
1886
  [k: string]: {
@@ -2451,6 +2492,22 @@ export declare enum GPUType2 {
2451
2492
  NVIDIA_TESLA_T4 = "NVIDIA_TESLA_T4",
2452
2493
  NVIDIA_L4 = "NVIDIA_L4"
2453
2494
  }
2495
+ /**
2496
+ * Format a dataset export can be produced in.
2497
+ */
2498
+ export declare enum DatasetExportFormat {
2499
+ mcap = "mcap",
2500
+ lerobot = "lerobot"
2501
+ }
2502
+ /**
2503
+ * Lifecycle stage of a dataset export.
2504
+ */
2505
+ export declare enum DatasetExportJobStatus {
2506
+ PENDING = "PENDING",
2507
+ RUNNING = "RUNNING",
2508
+ COMPLETE = "COMPLETE",
2509
+ FAILED = "FAILED"
2510
+ }
2454
2511
  /**
2455
2512
  * Direction to walk the keyset cursor when listing recordings.
2456
2513
  *
@@ -7,7 +7,7 @@
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
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.PaginationDirection = exports.GPUType2 = exports.TrainingJobStatus = exports.SynchronizeRecordingStatus1 = exports.SynchronizeRecordingStatus = exports.SortDirection = exports.RecordingSortField = exports.RecordingNotificationType = exports.RecordingDataTraceStatus1 = exports.Type16 = void 0;
10
+ exports.PaginationDirection = exports.DatasetExportJobStatus = exports.DatasetExportFormat = exports.GPUType2 = exports.TrainingJobStatus = exports.SynchronizeRecordingStatus1 = exports.SynchronizeRecordingStatus = exports.SortDirection = exports.RecordingSortField = exports.RecordingNotificationType = exports.RecordingDataTraceStatus1 = exports.Type16 = void 0;
11
11
  /**
12
12
  * Enumeration of supported data types in the Neuracore system.
13
13
  *
@@ -532,6 +532,24 @@ var GPUType2;
532
532
  GPUType2["NVIDIA_TESLA_T4"] = "NVIDIA_TESLA_T4";
533
533
  GPUType2["NVIDIA_L4"] = "NVIDIA_L4";
534
534
  })(GPUType2 || (exports.GPUType2 = GPUType2 = {}));
535
+ /**
536
+ * Format a dataset export can be produced in.
537
+ */
538
+ var DatasetExportFormat;
539
+ (function (DatasetExportFormat) {
540
+ DatasetExportFormat["mcap"] = "mcap";
541
+ DatasetExportFormat["lerobot"] = "lerobot";
542
+ })(DatasetExportFormat || (exports.DatasetExportFormat = DatasetExportFormat = {}));
543
+ /**
544
+ * Lifecycle stage of a dataset export.
545
+ */
546
+ var DatasetExportJobStatus;
547
+ (function (DatasetExportJobStatus) {
548
+ DatasetExportJobStatus["PENDING"] = "PENDING";
549
+ DatasetExportJobStatus["RUNNING"] = "RUNNING";
550
+ DatasetExportJobStatus["COMPLETE"] = "COMPLETE";
551
+ DatasetExportJobStatus["FAILED"] = "FAILED";
552
+ })(DatasetExportJobStatus || (exports.DatasetExportJobStatus = DatasetExportJobStatus = {}));
535
553
  /**
536
554
  * Direction to walk the keyset cursor when listing recordings.
537
555
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neuracore/types",
3
- "version": "11.14.0",
3
+ "version": "11.15.0-main.191.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"