@neuracore/types 4.6.0 → 6.2.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/README.md CHANGED
@@ -63,12 +63,71 @@ npm run build
63
63
 
64
64
  This compiles the TypeScript files to JavaScript and generates type declarations in the `dist/` directory.
65
65
 
66
+ ## Release Process
67
+
68
+ ### Creating PRs
69
+
70
+ All PRs must follow these conventions:
71
+
72
+ 1. **Version Label**: Add exactly one version label to your PR:
73
+ - `version:major` - Breaking changes
74
+ - `version:minor` - New features
75
+ - `version:patch` - Bug fixes
76
+ - `version:none` - No release (docs, chores, etc.)
77
+
78
+ 2. **Commit Format**: PR title and all commits must use conventional commit format:
79
+ ```
80
+ <prefix>: <description>
81
+ ```
82
+ Valid prefixes: `feat`, `fix`, `chore`, `docs`, `ci`, `test`, `refactor`, `style`, `perf`
83
+
84
+ Examples:
85
+ - `feat: add new data type for robot state`
86
+ - `fix: resolve serialization issue in TypeScript types`
87
+ - `chore: update dependencies`
88
+
89
+ ### Pending Changelog
90
+
91
+ For significant changes (`version:major` or `version:minor`), update `changelogs/pending-changelog.md`:
92
+
93
+ ```markdown
94
+ ## Summary
95
+
96
+ This release adds support for new sensor data types and improves TypeScript type generation.
97
+ ```
98
+
99
+ Simply append your summary to the existing content. This will appear at the top of the release notes.
100
+
101
+ ### Triggering a Release
102
+
103
+ Releases are manual and triggered via GitHub Actions:
104
+
105
+ 1. Go to **Actions** → **Release** → **Run workflow**
106
+ 2. Optional: Check **dry_run** to preview without publishing
107
+ 3. The workflow will:
108
+ - Analyze all PRs since last release
109
+ - Determine version bump (highest priority across all PRs)
110
+ - Generate changelog with all PRs grouped by type
111
+ - Bump version in `pyproject.toml`, `package.json`, and `__init__.py`
112
+ - Generate TypeScript types from Python models
113
+ - Publish Python package to PyPI
114
+ - Build and publish npm package to npm registry
115
+ - Create GitHub release
116
+
117
+ **Dry run** shows what would happen without making any changes - useful for testing before a real release.
118
+
66
119
  ## CI/CD
67
120
 
68
- The repository includes GitHub Actions workflows that:
121
+ The repository includes GitHub Actions workflows:
122
+
123
+ 1. **PR Checks**:
124
+ - Validates version labels
125
+ - Enforces conventional commit format
126
+ - Runs pre-commit hooks
127
+ - Suggests changelog updates for major/minor changes
69
128
 
70
- 1. **On every push to `main` or PR**:
71
- - Automatically generates TypeScript types from Python models
129
+ 2. **Release** (manual trigger):
130
+ - Generates TypeScript types from Python models
72
131
  - Builds and validates both packages
73
- - Publishes Python package to PyPI
74
- - Publishes NPM package to npm registry
132
+ - Publishes to PyPI and npm registry
133
+ - Creates GitHub release with changelog
@@ -129,6 +129,86 @@ export interface Custom1DData {
129
129
  type: Type1;
130
130
  data: unknown[] | null;
131
131
  }
132
+ /**
133
+ * Import configuration for Custom1DData.
134
+ */
135
+ export interface Custom1DDataImportConfig {
136
+ source?: string;
137
+ mapping?: MappingItem[];
138
+ format?: DataFormat;
139
+ }
140
+ /**
141
+ * Mapping information to extract individual items from a data source.
142
+ */
143
+ export interface MappingItem {
144
+ name: string;
145
+ source_name?: string | null;
146
+ index?: number | null;
147
+ index_range?: IndexRangeConfig | null;
148
+ offset?: number;
149
+ inverted?: boolean;
150
+ transforms?: DataTransformSequence;
151
+ [k: string]: unknown;
152
+ }
153
+ /**
154
+ * Configuration for index range of data extraction.
155
+ */
156
+ export interface IndexRangeConfig {
157
+ start: number;
158
+ end: number;
159
+ [k: string]: unknown;
160
+ }
161
+ /**
162
+ * Sequence of data transformations.
163
+ */
164
+ export interface DataTransformSequence {
165
+ transforms?: DataTransform[];
166
+ [k: string]: unknown;
167
+ }
168
+ /**
169
+ * Base class for data transformations.
170
+ */
171
+ export interface DataTransform {
172
+ [k: string]: unknown;
173
+ }
174
+ /**
175
+ * Per datatype format specifications.
176
+ *
177
+ * This class is used for the 'format:' section in YAML config files and
178
+ * when importing data. Relevant fields depend on the data type.
179
+ */
180
+ export interface DataFormat {
181
+ image_convention?: ImageConventionConfig;
182
+ order_of_channels?: ImageChannelOrderConfig;
183
+ normalized_pixel_values?: boolean;
184
+ angle_units?: AngleConfig;
185
+ torque_units?: TorqueUnitsConfig;
186
+ distance_units?: DistanceUnitsConfig;
187
+ pose_type?: PoseConfig;
188
+ orientation?: OrientationConfig | null;
189
+ language_type?: LanguageConfig;
190
+ normalize?: NormalizeConfig | null;
191
+ visual_joint_type?: VisualJointTypeConfig;
192
+ [k: string]: unknown;
193
+ }
194
+ /**
195
+ * Configuration for orientation of poses.
196
+ */
197
+ export interface OrientationConfig {
198
+ type?: RotationConfig;
199
+ quaternion_order?: QuaternionOrderConfig;
200
+ euler_order?: EulerOrderConfig;
201
+ angle_units?: AngleConfig1;
202
+ [k: string]: unknown;
203
+ }
204
+ /**
205
+ * Configuration for normalizing data.
206
+ */
207
+ export interface NormalizeConfig {
208
+ min?: number;
209
+ max?: number;
210
+ [k: string]: unknown;
211
+ }
132
212
  /**
133
213
  * Statistics for Custom1DData.
134
214
  */
@@ -186,6 +266,320 @@ export interface Dataset {
186
266
  };
187
267
  deleted: boolean;
188
268
  }
269
+ /**
270
+ * Main dataset configuration model.
271
+ *
272
+ * Specifies the configuration for importing data to Neuracore.
273
+ * For each data type, define the format of the incoming data which will be
274
+ * converted to the format expected by Neuracore.
275
+ */
276
+ export interface DatasetImportConfig {
277
+ input_dataset_name: string;
278
+ output_dataset: OutputDatasetConfig;
279
+ robot: RobotConfig;
280
+ frequency?: number | null;
281
+ data_import_config?: {
282
+ [k: string]: RGBCameraDataImportConfig | DepthCameraDataImportConfig | PointCloudDataImportConfig | JointPositionsDataImportConfig | JointVelocitiesDataImportConfig | JointTorquesDataImportConfig | VisualJointPositionsDataImportConfig | PoseDataImportConfig | ParallelGripperOpenAmountDataImportConfig | LanguageDataImportConfig | Custom1DDataImportConfig;
283
+ };
284
+ dataset_type?: DatasetTypeConfig | null;
285
+ }
286
+ /**
287
+ * Output dataset configuration.
288
+ */
289
+ export interface OutputDatasetConfig {
290
+ name: string;
291
+ tags?: string[];
292
+ description?: string;
293
+ }
294
+ /**
295
+ * Robot configuration.
296
+ */
297
+ export interface RobotConfig {
298
+ name: string;
299
+ urdf_path?: string | null;
300
+ mjcf_path?: string | null;
301
+ overwrite_existing?: boolean;
302
+ }
303
+ /**
304
+ * Import configuration for RGBCameraData.
305
+ */
306
+ export interface RGBCameraDataImportConfig {
307
+ source?: string;
308
+ mapping?: MappingItem[];
309
+ format?: DataFormat1;
310
+ }
311
+ /**
312
+ * Per datatype format specifications.
313
+ *
314
+ * This class is used for the 'format:' section in YAML config files and
315
+ * when importing data. Relevant fields depend on the data type.
316
+ */
317
+ export interface DataFormat1 {
318
+ image_convention?: ImageConventionConfig;
319
+ order_of_channels?: ImageChannelOrderConfig;
320
+ normalized_pixel_values?: boolean;
321
+ angle_units?: AngleConfig;
322
+ torque_units?: TorqueUnitsConfig;
323
+ distance_units?: DistanceUnitsConfig;
324
+ pose_type?: PoseConfig;
325
+ orientation?: OrientationConfig | null;
326
+ language_type?: LanguageConfig;
327
+ normalize?: NormalizeConfig | null;
328
+ visual_joint_type?: VisualJointTypeConfig;
329
+ [k: string]: unknown;
330
+ }
331
+ /**
332
+ * Import configuration for DepthCameraData.
333
+ */
334
+ export interface DepthCameraDataImportConfig {
335
+ source?: string;
336
+ mapping?: MappingItem[];
337
+ format?: DataFormat2;
338
+ }
339
+ /**
340
+ * Per datatype format specifications.
341
+ *
342
+ * This class is used for the 'format:' section in YAML config files and
343
+ * when importing data. Relevant fields depend on the data type.
344
+ */
345
+ export interface DataFormat2 {
346
+ image_convention?: ImageConventionConfig;
347
+ order_of_channels?: ImageChannelOrderConfig;
348
+ normalized_pixel_values?: boolean;
349
+ angle_units?: AngleConfig;
350
+ torque_units?: TorqueUnitsConfig;
351
+ distance_units?: DistanceUnitsConfig;
352
+ pose_type?: PoseConfig;
353
+ orientation?: OrientationConfig | null;
354
+ language_type?: LanguageConfig;
355
+ normalize?: NormalizeConfig | null;
356
+ visual_joint_type?: VisualJointTypeConfig;
357
+ [k: string]: unknown;
358
+ }
359
+ /**
360
+ * Import configuration for PointCloudData.
361
+ */
362
+ export interface PointCloudDataImportConfig {
363
+ source?: string;
364
+ mapping?: MappingItem[];
365
+ format?: DataFormat3;
366
+ }
367
+ /**
368
+ * Per datatype format specifications.
369
+ *
370
+ * This class is used for the 'format:' section in YAML config files and
371
+ * when importing data. Relevant fields depend on the data type.
372
+ */
373
+ export interface DataFormat3 {
374
+ image_convention?: ImageConventionConfig;
375
+ order_of_channels?: ImageChannelOrderConfig;
376
+ normalized_pixel_values?: boolean;
377
+ angle_units?: AngleConfig;
378
+ torque_units?: TorqueUnitsConfig;
379
+ distance_units?: DistanceUnitsConfig;
380
+ pose_type?: PoseConfig;
381
+ orientation?: OrientationConfig | null;
382
+ language_type?: LanguageConfig;
383
+ normalize?: NormalizeConfig | null;
384
+ visual_joint_type?: VisualJointTypeConfig;
385
+ [k: string]: unknown;
386
+ }
387
+ /**
388
+ * Import configuration for JointPositionsData.
389
+ */
390
+ export interface JointPositionsDataImportConfig {
391
+ source?: string;
392
+ mapping?: MappingItem[];
393
+ format?: DataFormat4;
394
+ }
395
+ /**
396
+ * Per datatype format specifications.
397
+ *
398
+ * This class is used for the 'format:' section in YAML config files and
399
+ * when importing data. Relevant fields depend on the data type.
400
+ */
401
+ export interface DataFormat4 {
402
+ image_convention?: ImageConventionConfig;
403
+ order_of_channels?: ImageChannelOrderConfig;
404
+ normalized_pixel_values?: boolean;
405
+ angle_units?: AngleConfig;
406
+ torque_units?: TorqueUnitsConfig;
407
+ distance_units?: DistanceUnitsConfig;
408
+ pose_type?: PoseConfig;
409
+ orientation?: OrientationConfig | null;
410
+ language_type?: LanguageConfig;
411
+ normalize?: NormalizeConfig | null;
412
+ visual_joint_type?: VisualJointTypeConfig;
413
+ [k: string]: unknown;
414
+ }
415
+ /**
416
+ * Import configuration for JointVelocitiesData.
417
+ */
418
+ export interface JointVelocitiesDataImportConfig {
419
+ source?: string;
420
+ mapping?: MappingItem[];
421
+ format?: DataFormat5;
422
+ }
423
+ /**
424
+ * Per datatype format specifications.
425
+ *
426
+ * This class is used for the 'format:' section in YAML config files and
427
+ * when importing data. Relevant fields depend on the data type.
428
+ */
429
+ export interface DataFormat5 {
430
+ image_convention?: ImageConventionConfig;
431
+ order_of_channels?: ImageChannelOrderConfig;
432
+ normalized_pixel_values?: boolean;
433
+ angle_units?: AngleConfig;
434
+ torque_units?: TorqueUnitsConfig;
435
+ distance_units?: DistanceUnitsConfig;
436
+ pose_type?: PoseConfig;
437
+ orientation?: OrientationConfig | null;
438
+ language_type?: LanguageConfig;
439
+ normalize?: NormalizeConfig | null;
440
+ visual_joint_type?: VisualJointTypeConfig;
441
+ [k: string]: unknown;
442
+ }
443
+ /**
444
+ * Import configuration for JointTorquesData.
445
+ */
446
+ export interface JointTorquesDataImportConfig {
447
+ source?: string;
448
+ mapping?: MappingItem[];
449
+ format?: DataFormat6;
450
+ }
451
+ /**
452
+ * Per datatype format specifications.
453
+ *
454
+ * This class is used for the 'format:' section in YAML config files and
455
+ * when importing data. Relevant fields depend on the data type.
456
+ */
457
+ export interface DataFormat6 {
458
+ image_convention?: ImageConventionConfig;
459
+ order_of_channels?: ImageChannelOrderConfig;
460
+ normalized_pixel_values?: boolean;
461
+ angle_units?: AngleConfig;
462
+ torque_units?: TorqueUnitsConfig;
463
+ distance_units?: DistanceUnitsConfig;
464
+ pose_type?: PoseConfig;
465
+ orientation?: OrientationConfig | null;
466
+ language_type?: LanguageConfig;
467
+ normalize?: NormalizeConfig | null;
468
+ visual_joint_type?: VisualJointTypeConfig;
469
+ [k: string]: unknown;
470
+ }
471
+ /**
472
+ * Import configuration for VisualJointPositionsData.
473
+ */
474
+ export interface VisualJointPositionsDataImportConfig {
475
+ source?: string;
476
+ mapping?: MappingItem[];
477
+ format?: DataFormat7;
478
+ }
479
+ /**
480
+ * Per datatype format specifications.
481
+ *
482
+ * This class is used for the 'format:' section in YAML config files and
483
+ * when importing data. Relevant fields depend on the data type.
484
+ */
485
+ export interface DataFormat7 {
486
+ image_convention?: ImageConventionConfig;
487
+ order_of_channels?: ImageChannelOrderConfig;
488
+ normalized_pixel_values?: boolean;
489
+ angle_units?: AngleConfig;
490
+ torque_units?: TorqueUnitsConfig;
491
+ distance_units?: DistanceUnitsConfig;
492
+ pose_type?: PoseConfig;
493
+ orientation?: OrientationConfig | null;
494
+ language_type?: LanguageConfig;
495
+ normalize?: NormalizeConfig | null;
496
+ visual_joint_type?: VisualJointTypeConfig;
497
+ [k: string]: unknown;
498
+ }
499
+ /**
500
+ * Import configuration for PoseData.
501
+ */
502
+ export interface PoseDataImportConfig {
503
+ source?: string;
504
+ mapping?: MappingItem[];
505
+ format?: DataFormat8;
506
+ }
507
+ /**
508
+ * Per datatype format specifications.
509
+ *
510
+ * This class is used for the 'format:' section in YAML config files and
511
+ * when importing data. Relevant fields depend on the data type.
512
+ */
513
+ export interface DataFormat8 {
514
+ image_convention?: ImageConventionConfig;
515
+ order_of_channels?: ImageChannelOrderConfig;
516
+ normalized_pixel_values?: boolean;
517
+ angle_units?: AngleConfig;
518
+ torque_units?: TorqueUnitsConfig;
519
+ distance_units?: DistanceUnitsConfig;
520
+ pose_type?: PoseConfig;
521
+ orientation?: OrientationConfig | null;
522
+ language_type?: LanguageConfig;
523
+ normalize?: NormalizeConfig | null;
524
+ visual_joint_type?: VisualJointTypeConfig;
525
+ [k: string]: unknown;
526
+ }
527
+ /**
528
+ * Import configuration for ParallelGripperOpenAmountData.
529
+ */
530
+ export interface ParallelGripperOpenAmountDataImportConfig {
531
+ source?: string;
532
+ mapping?: MappingItem[];
533
+ format?: DataFormat9;
534
+ }
535
+ /**
536
+ * Per datatype format specifications.
537
+ *
538
+ * This class is used for the 'format:' section in YAML config files and
539
+ * when importing data. Relevant fields depend on the data type.
540
+ */
541
+ export interface DataFormat9 {
542
+ image_convention?: ImageConventionConfig;
543
+ order_of_channels?: ImageChannelOrderConfig;
544
+ normalized_pixel_values?: boolean;
545
+ angle_units?: AngleConfig;
546
+ torque_units?: TorqueUnitsConfig;
547
+ distance_units?: DistanceUnitsConfig;
548
+ pose_type?: PoseConfig;
549
+ orientation?: OrientationConfig | null;
550
+ language_type?: LanguageConfig;
551
+ normalize?: NormalizeConfig | null;
552
+ visual_joint_type?: VisualJointTypeConfig;
553
+ [k: string]: unknown;
554
+ }
555
+ /**
556
+ * Import configuration for LanguageData.
557
+ */
558
+ export interface LanguageDataImportConfig {
559
+ source?: string;
560
+ mapping?: MappingItem[];
561
+ format?: DataFormat10;
562
+ }
563
+ /**
564
+ * Per datatype format specifications.
565
+ *
566
+ * This class is used for the 'format:' section in YAML config files and
567
+ * when importing data. Relevant fields depend on the data type.
568
+ */
569
+ export interface DataFormat10 {
570
+ image_convention?: ImageConventionConfig;
571
+ order_of_channels?: ImageChannelOrderConfig;
572
+ normalized_pixel_values?: boolean;
573
+ angle_units?: AngleConfig;
574
+ torque_units?: TorqueUnitsConfig;
575
+ distance_units?: DistanceUnitsConfig;
576
+ pose_type?: PoseConfig;
577
+ orientation?: OrientationConfig | null;
578
+ language_type?: LanguageConfig;
579
+ normalize?: NormalizeConfig | null;
580
+ visual_joint_type?: VisualJointTypeConfig;
581
+ [k: string]: unknown;
582
+ }
189
583
  /**
190
584
  * Configuration for model deployment.
191
585
  *
@@ -473,6 +867,34 @@ export interface PointCloudDataStats {
473
867
  export interface NCData {
474
868
  timestamp: number;
475
869
  }
870
+ /**
871
+ * Configuration for importing data to Neuracore.
872
+ */
873
+ export interface NCDataImportConfig {
874
+ source?: string;
875
+ mapping?: MappingItem[];
876
+ format?: DataFormat11;
877
+ }
878
+ /**
879
+ * Per datatype format specifications.
880
+ *
881
+ * This class is used for the 'format:' section in YAML config files and
882
+ * when importing data. Relevant fields depend on the data type.
883
+ */
884
+ export interface DataFormat11 {
885
+ image_convention?: ImageConventionConfig;
886
+ order_of_channels?: ImageChannelOrderConfig;
887
+ normalized_pixel_values?: boolean;
888
+ angle_units?: AngleConfig;
889
+ torque_units?: TorqueUnitsConfig;
890
+ distance_units?: DistanceUnitsConfig;
891
+ pose_type?: PoseConfig;
892
+ orientation?: OrientationConfig | null;
893
+ language_type?: LanguageConfig;
894
+ normalize?: NormalizeConfig | null;
895
+ visual_joint_type?: VisualJointTypeConfig;
896
+ [k: string]: unknown;
897
+ }
476
898
  /**
477
899
  * Base class for statistics of Neuracore data types.
478
900
  */
@@ -529,10 +951,15 @@ export interface ParallelGripperOpenAmountData {
529
951
  *
530
952
  * Attributes:
531
953
  * saved_dataset_id: ID of the dataset where the recording is saved
954
+ * status: Current status of the pending recording
955
+ * progress: Upload progress percentage (0-100)
956
+ * expected_trace_count: Number of traces expected (set by register_traces API)
957
+ * total_bytes: Total bytes expected across all traces (for progress bar)
958
+ * upload_method: Method used to upload recording data (streaming or daemon)
532
959
  */
533
960
  export interface PendingRecording {
534
961
  id: string;
535
- robot_id: string;
962
+ robot_id?: string | null;
536
963
  instance: number;
537
964
  org_id: string;
538
965
  created_by: string;
@@ -542,9 +969,11 @@ export interface PendingRecording {
542
969
  total_bytes: number;
543
970
  is_shared: boolean;
544
971
  data_types: DataType[];
545
- saved_dataset_id: string;
972
+ saved_dataset_id?: string | null;
546
973
  status: PendingRecordingStatus;
547
974
  progress: number;
975
+ expected_trace_count: number;
976
+ upload_method: RecordingUploadMethod;
548
977
  }
549
978
  /**
550
979
  * Metadata details for a recording.
@@ -616,7 +1045,7 @@ export interface RGBCameraData {
616
1045
  */
617
1046
  export interface Recording {
618
1047
  id: string;
619
- robot_id: string;
1048
+ robot_id?: string | null;
620
1049
  instance: number;
621
1050
  org_id: string;
622
1051
  created_by: string;
@@ -804,6 +1233,16 @@ export interface SynchronizedPoint {
804
1233
  };
805
1234
  };
806
1235
  }
1236
+ /**
1237
+ * Request to register trace metadata for a recording.
1238
+ *
1239
+ * Maps trace IDs to their expected sizes in bytes.
1240
+ */
1241
+ export interface TracesMetadataRequest {
1242
+ traces?: {
1243
+ [k: string]: number;
1244
+ };
1245
+ }
807
1246
  /**
808
1247
  * Training job record.
809
1248
  *
@@ -917,6 +1356,7 @@ export declare enum DataType {
917
1356
  JOINT_VELOCITIES = "JOINT_VELOCITIES",
918
1357
  JOINT_TORQUES = "JOINT_TORQUES",
919
1358
  JOINT_TARGET_POSITIONS = "JOINT_TARGET_POSITIONS",
1359
+ VISUAL_JOINT_POSITIONS = "VISUAL_JOINT_POSITIONS",
920
1360
  END_EFFECTOR_POSES = "END_EFFECTOR_POSES",
921
1361
  PARALLEL_GRIPPER_OPEN_AMOUNTS = "PARALLEL_GRIPPER_OPEN_AMOUNTS",
922
1362
  PARALLEL_GRIPPER_TARGET_OPEN_AMOUNTS = "PARALLEL_GRIPPER_TARGET_OPEN_AMOUNTS",
@@ -933,9 +1373,107 @@ export declare enum Type {
933
1373
  export declare enum Type1 {
934
1374
  Custom1DData = "Custom1DData"
935
1375
  }
1376
+ /**
1377
+ * Convention of image channels.
1378
+ */
1379
+ export declare enum ImageConventionConfig {
1380
+ CHANNELS_LAST = "CHANNELS_LAST",
1381
+ CHANNELS_FIRST = "CHANNELS_FIRST"
1382
+ }
1383
+ /**
1384
+ * Order of image channels.
1385
+ */
1386
+ export declare enum ImageChannelOrderConfig {
1387
+ RGB = "RGB",
1388
+ BGR = "BGR"
1389
+ }
1390
+ /**
1391
+ * Types of angles.
1392
+ */
1393
+ export declare enum AngleConfig {
1394
+ DEGREES = "DEGREES",
1395
+ RADIANS = "RADIANS"
1396
+ }
1397
+ /**
1398
+ * Types of torque units.
1399
+ */
1400
+ export declare enum TorqueUnitsConfig {
1401
+ NM = "NM",
1402
+ NCM = "NCM"
1403
+ }
1404
+ /**
1405
+ * Types of distance units.
1406
+ */
1407
+ export declare enum DistanceUnitsConfig {
1408
+ M = "M",
1409
+ MM = "MM"
1410
+ }
1411
+ /**
1412
+ * Types of poses.
1413
+ */
1414
+ export declare enum PoseConfig {
1415
+ MATRIX = "MATRIX",
1416
+ POSITION_ORIENTATION = "POSITION_ORIENTATION"
1417
+ }
1418
+ /**
1419
+ * Types of rotations.
1420
+ */
1421
+ export declare enum RotationConfig {
1422
+ QUATERNION = "QUATERNION",
1423
+ MATRIX = "MATRIX",
1424
+ EULER = "EULER",
1425
+ AXIS_ANGLE = "AXIS_ANGLE"
1426
+ }
1427
+ /**
1428
+ * Order of quaternion.
1429
+ */
1430
+ export declare enum QuaternionOrderConfig {
1431
+ XYZW = "XYZW",
1432
+ WXYZ = "WXYZ"
1433
+ }
1434
+ /**
1435
+ * Order of euler angles.
1436
+ */
1437
+ export declare enum EulerOrderConfig {
1438
+ XYZ = "XYZ",
1439
+ ZYX = "ZYX",
1440
+ YXZ = "YXZ",
1441
+ ZXY = "ZXY",
1442
+ YZX = "YZX",
1443
+ XZY = "XZY"
1444
+ }
1445
+ /**
1446
+ * Types of angles.
1447
+ */
1448
+ export declare enum AngleConfig1 {
1449
+ DEGREES = "DEGREES",
1450
+ RADIANS = "RADIANS"
1451
+ }
1452
+ /**
1453
+ * Types of languages.
1454
+ */
1455
+ export declare enum LanguageConfig {
1456
+ STRING = "STRING",
1457
+ BYTES = "BYTES"
1458
+ }
1459
+ /**
1460
+ * Types of visual joint positions.
1461
+ */
1462
+ export declare enum VisualJointTypeConfig {
1463
+ GRIPPER = "GRIPPER",
1464
+ CUSTOM = "CUSTOM"
1465
+ }
936
1466
  export declare enum Type2 {
937
1467
  Custom1DDataStats = "Custom1DDataStats"
938
1468
  }
1469
+ /**
1470
+ * Enumeration of supported dataset types.
1471
+ */
1472
+ export declare enum DatasetTypeConfig {
1473
+ RLDS = "RLDS",
1474
+ LEROBOT = "LEROBOT",
1475
+ TFDS = "TFDS"
1476
+ }
939
1477
  /**
940
1478
  * GPU types available for training.
941
1479
  */
@@ -1020,6 +1558,15 @@ export declare enum PendingRecordingStatus {
1020
1558
  UPLOADING = "UPLOADING",
1021
1559
  UPLOADED = "UPLOADED"
1022
1560
  }
1561
+ /**
1562
+ * Method used to upload recording data.
1563
+ *
1564
+ * Indicates how the recording data is being uploaded to the backend.
1565
+ */
1566
+ export declare enum RecordingUploadMethod {
1567
+ streaming = "streaming",
1568
+ data_daemon = "data_daemon"
1569
+ }
1023
1570
  export declare enum Type14 {
1024
1571
  PointCloudData = "PointCloudData"
1025
1572
  }
@@ -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.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.Type5 = exports.Type4 = exports.Type3 = exports.GPUType = exports.Type2 = exports.Type1 = exports.Type = exports.DataType = void 0;
9
+ exports.GPUType1 = exports.TrainingJobStatus = exports.RecordingNotificationType = exports.RecordingDataTraceStatus = exports.Type16 = exports.Type15 = exports.Type14 = exports.RecordingUploadMethod = 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.Type5 = exports.Type4 = exports.Type3 = exports.GPUType = exports.DatasetTypeConfig = exports.Type2 = exports.VisualJointTypeConfig = exports.LanguageConfig = 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;
10
10
  /**
11
11
  * Enumeration of supported data types in the Neuracore system.
12
12
  *
@@ -19,6 +19,7 @@ var DataType;
19
19
  DataType["JOINT_VELOCITIES"] = "JOINT_VELOCITIES";
20
20
  DataType["JOINT_TORQUES"] = "JOINT_TORQUES";
21
21
  DataType["JOINT_TARGET_POSITIONS"] = "JOINT_TARGET_POSITIONS";
22
+ DataType["VISUAL_JOINT_POSITIONS"] = "VISUAL_JOINT_POSITIONS";
22
23
  DataType["END_EFFECTOR_POSES"] = "END_EFFECTOR_POSES";
23
24
  DataType["PARALLEL_GRIPPER_OPEN_AMOUNTS"] = "PARALLEL_GRIPPER_OPEN_AMOUNTS";
24
25
  DataType["PARALLEL_GRIPPER_TARGET_OPEN_AMOUNTS"] = "PARALLEL_GRIPPER_TARGET_OPEN_AMOUNTS";
@@ -37,10 +38,121 @@ var Type1;
37
38
  (function (Type1) {
38
39
  Type1["Custom1DData"] = "Custom1DData";
39
40
  })(Type1 || (exports.Type1 = Type1 = {}));
41
+ /**
42
+ * Convention of image channels.
43
+ */
44
+ var ImageConventionConfig;
45
+ (function (ImageConventionConfig) {
46
+ ImageConventionConfig["CHANNELS_LAST"] = "CHANNELS_LAST";
47
+ ImageConventionConfig["CHANNELS_FIRST"] = "CHANNELS_FIRST";
48
+ })(ImageConventionConfig || (exports.ImageConventionConfig = ImageConventionConfig = {}));
49
+ /**
50
+ * Order of image channels.
51
+ */
52
+ var ImageChannelOrderConfig;
53
+ (function (ImageChannelOrderConfig) {
54
+ ImageChannelOrderConfig["RGB"] = "RGB";
55
+ ImageChannelOrderConfig["BGR"] = "BGR";
56
+ })(ImageChannelOrderConfig || (exports.ImageChannelOrderConfig = ImageChannelOrderConfig = {}));
57
+ /**
58
+ * Types of angles.
59
+ */
60
+ var AngleConfig;
61
+ (function (AngleConfig) {
62
+ AngleConfig["DEGREES"] = "DEGREES";
63
+ AngleConfig["RADIANS"] = "RADIANS";
64
+ })(AngleConfig || (exports.AngleConfig = AngleConfig = {}));
65
+ /**
66
+ * Types of torque units.
67
+ */
68
+ var TorqueUnitsConfig;
69
+ (function (TorqueUnitsConfig) {
70
+ TorqueUnitsConfig["NM"] = "NM";
71
+ TorqueUnitsConfig["NCM"] = "NCM";
72
+ })(TorqueUnitsConfig || (exports.TorqueUnitsConfig = TorqueUnitsConfig = {}));
73
+ /**
74
+ * Types of distance units.
75
+ */
76
+ var DistanceUnitsConfig;
77
+ (function (DistanceUnitsConfig) {
78
+ DistanceUnitsConfig["M"] = "M";
79
+ DistanceUnitsConfig["MM"] = "MM";
80
+ })(DistanceUnitsConfig || (exports.DistanceUnitsConfig = DistanceUnitsConfig = {}));
81
+ /**
82
+ * Types of poses.
83
+ */
84
+ var PoseConfig;
85
+ (function (PoseConfig) {
86
+ PoseConfig["MATRIX"] = "MATRIX";
87
+ PoseConfig["POSITION_ORIENTATION"] = "POSITION_ORIENTATION";
88
+ })(PoseConfig || (exports.PoseConfig = PoseConfig = {}));
89
+ /**
90
+ * Types of rotations.
91
+ */
92
+ var RotationConfig;
93
+ (function (RotationConfig) {
94
+ RotationConfig["QUATERNION"] = "QUATERNION";
95
+ RotationConfig["MATRIX"] = "MATRIX";
96
+ RotationConfig["EULER"] = "EULER";
97
+ RotationConfig["AXIS_ANGLE"] = "AXIS_ANGLE";
98
+ })(RotationConfig || (exports.RotationConfig = RotationConfig = {}));
99
+ /**
100
+ * Order of quaternion.
101
+ */
102
+ var QuaternionOrderConfig;
103
+ (function (QuaternionOrderConfig) {
104
+ QuaternionOrderConfig["XYZW"] = "XYZW";
105
+ QuaternionOrderConfig["WXYZ"] = "WXYZ";
106
+ })(QuaternionOrderConfig || (exports.QuaternionOrderConfig = QuaternionOrderConfig = {}));
107
+ /**
108
+ * Order of euler angles.
109
+ */
110
+ var EulerOrderConfig;
111
+ (function (EulerOrderConfig) {
112
+ EulerOrderConfig["XYZ"] = "XYZ";
113
+ EulerOrderConfig["ZYX"] = "ZYX";
114
+ EulerOrderConfig["YXZ"] = "YXZ";
115
+ EulerOrderConfig["ZXY"] = "ZXY";
116
+ EulerOrderConfig["YZX"] = "YZX";
117
+ EulerOrderConfig["XZY"] = "XZY";
118
+ })(EulerOrderConfig || (exports.EulerOrderConfig = EulerOrderConfig = {}));
119
+ /**
120
+ * Types of angles.
121
+ */
122
+ var AngleConfig1;
123
+ (function (AngleConfig1) {
124
+ AngleConfig1["DEGREES"] = "DEGREES";
125
+ AngleConfig1["RADIANS"] = "RADIANS";
126
+ })(AngleConfig1 || (exports.AngleConfig1 = AngleConfig1 = {}));
127
+ /**
128
+ * Types of languages.
129
+ */
130
+ var LanguageConfig;
131
+ (function (LanguageConfig) {
132
+ LanguageConfig["STRING"] = "STRING";
133
+ LanguageConfig["BYTES"] = "BYTES";
134
+ })(LanguageConfig || (exports.LanguageConfig = LanguageConfig = {}));
135
+ /**
136
+ * Types of visual joint positions.
137
+ */
138
+ var VisualJointTypeConfig;
139
+ (function (VisualJointTypeConfig) {
140
+ VisualJointTypeConfig["GRIPPER"] = "GRIPPER";
141
+ VisualJointTypeConfig["CUSTOM"] = "CUSTOM";
142
+ })(VisualJointTypeConfig || (exports.VisualJointTypeConfig = VisualJointTypeConfig = {}));
40
143
  var Type2;
41
144
  (function (Type2) {
42
145
  Type2["Custom1DDataStats"] = "Custom1DDataStats";
43
146
  })(Type2 || (exports.Type2 = Type2 = {}));
147
+ /**
148
+ * Enumeration of supported dataset types.
149
+ */
150
+ var DatasetTypeConfig;
151
+ (function (DatasetTypeConfig) {
152
+ DatasetTypeConfig["RLDS"] = "RLDS";
153
+ DatasetTypeConfig["LEROBOT"] = "LEROBOT";
154
+ DatasetTypeConfig["TFDS"] = "TFDS";
155
+ })(DatasetTypeConfig || (exports.DatasetTypeConfig = DatasetTypeConfig = {}));
44
156
  /**
45
157
  * GPU types available for training.
46
158
  */
@@ -141,6 +253,16 @@ var PendingRecordingStatus;
141
253
  PendingRecordingStatus["UPLOADING"] = "UPLOADING";
142
254
  PendingRecordingStatus["UPLOADED"] = "UPLOADED";
143
255
  })(PendingRecordingStatus || (exports.PendingRecordingStatus = PendingRecordingStatus = {}));
256
+ /**
257
+ * Method used to upload recording data.
258
+ *
259
+ * Indicates how the recording data is being uploaded to the backend.
260
+ */
261
+ var RecordingUploadMethod;
262
+ (function (RecordingUploadMethod) {
263
+ RecordingUploadMethod["streaming"] = "streaming";
264
+ RecordingUploadMethod["data_daemon"] = "data_daemon";
265
+ })(RecordingUploadMethod || (exports.RecordingUploadMethod = RecordingUploadMethod = {}));
144
266
  var Type14;
145
267
  (function (Type14) {
146
268
  Type14["PointCloudData"] = "PointCloudData";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neuracore/types",
3
- "version": "4.6.0",
3
+ "version": "6.2.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",