@neuracore/types 10.6.0 → 11.0.0-main.98.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/dist/neuracore_types.d.ts +52 -8
- package/dist/neuracore_types.js +18 -2
- package/package.json +1 -2
|
@@ -59,17 +59,38 @@ export interface RobotStreamTrack {
|
|
|
59
59
|
created_at: string;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* This model is used to broadcast the current state of all available
|
|
65
|
-
* robots and their instances.
|
|
66
|
-
*
|
|
67
|
-
* Attributes:
|
|
68
|
-
* robots: A list of all available robots and their instances.
|
|
62
|
+
* Initial robot availability state for a new SSE connection.
|
|
69
63
|
*/
|
|
70
|
-
export interface
|
|
64
|
+
export interface AvailableRobotCapacityInit {
|
|
65
|
+
type?: RobotAvailabilityEventType;
|
|
71
66
|
robots: AvailableRobot[];
|
|
72
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Delta robot availability update for an existing SSE connection.
|
|
70
|
+
*/
|
|
71
|
+
export interface AvailableRobotCapacityUpdate {
|
|
72
|
+
type?: RobotAvailabilityEventType1;
|
|
73
|
+
tracks_added?: RobotStreamTrack[];
|
|
74
|
+
tracks_removed?: RemovedTrack[];
|
|
75
|
+
connection_updates?: AvailableRobotConnectionUpdate[];
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* A robot stream track that was removed from availability.
|
|
79
|
+
*/
|
|
80
|
+
export interface RemovedTrack {
|
|
81
|
+
robot_id: string;
|
|
82
|
+
robot_instance: number;
|
|
83
|
+
stream_id: string;
|
|
84
|
+
track_id: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Updated viewer count for a robot instance.
|
|
88
|
+
*/
|
|
89
|
+
export interface AvailableRobotConnectionUpdate {
|
|
90
|
+
robot_id: string;
|
|
91
|
+
robot_instance: number;
|
|
92
|
+
connections: number;
|
|
93
|
+
}
|
|
73
94
|
/**
|
|
74
95
|
* Base payload for recording update notifications.
|
|
75
96
|
*
|
|
@@ -1132,6 +1153,10 @@ export interface InternalStartTrainingJobRequest {
|
|
|
1132
1153
|
* allow_duplicates: Whether to allow duplicate data points in the synchronization.
|
|
1133
1154
|
* trim_start_end: Whether to trim the start and end of the episode
|
|
1134
1155
|
* when synchronizing.
|
|
1156
|
+
* trim_no_movement_at_start_threshold: If set, drop synchronized frames at
|
|
1157
|
+
* the start of the episode while every joint position stays within
|
|
1158
|
+
* this threshold of its value in the first frame. None disables the
|
|
1159
|
+
* trimming. Only applies when joint positions are synchronized.
|
|
1135
1160
|
*/
|
|
1136
1161
|
export interface SynchronizationDetails {
|
|
1137
1162
|
frequency: number;
|
|
@@ -1143,6 +1168,7 @@ export interface SynchronizationDetails {
|
|
|
1143
1168
|
max_delay_s: number;
|
|
1144
1169
|
allow_duplicates: boolean;
|
|
1145
1170
|
trim_start_end: boolean;
|
|
1171
|
+
trim_no_movement_at_start_threshold: number | null;
|
|
1146
1172
|
}
|
|
1147
1173
|
/**
|
|
1148
1174
|
* Robot joint state data including positions, velocities, or torques.
|
|
@@ -1620,6 +1646,9 @@ export interface SynchronizeRecordingRequest {
|
|
|
1620
1646
|
* allow_duplicates: Whether duplicate data points are allowed.
|
|
1621
1647
|
* trim_start_end: Whether to trim the start and end of the episode
|
|
1622
1648
|
* when synchronizing.
|
|
1649
|
+
* trim_no_movement_at_start_threshold: Threshold below which leading
|
|
1650
|
+
* frames without joint movement were dropped, or None if the
|
|
1651
|
+
* dataset was synchronized without that trimming.
|
|
1623
1652
|
*/
|
|
1624
1653
|
export interface SynchronizedDataset {
|
|
1625
1654
|
id: string;
|
|
@@ -1644,6 +1673,7 @@ export interface SynchronizedDataset {
|
|
|
1644
1673
|
max_delay_s: number;
|
|
1645
1674
|
allow_duplicates: boolean;
|
|
1646
1675
|
trim_start_end?: boolean;
|
|
1676
|
+
trim_no_movement_at_start_threshold?: number | null;
|
|
1647
1677
|
}
|
|
1648
1678
|
/**
|
|
1649
1679
|
* Statistics for a synchronized dataset.
|
|
@@ -1848,6 +1878,20 @@ export declare enum DataType {
|
|
|
1848
1878
|
LANGUAGE = "LANGUAGE",
|
|
1849
1879
|
CUSTOM_1D = "CUSTOM_1D"
|
|
1850
1880
|
}
|
|
1881
|
+
/**
|
|
1882
|
+
* Types of robot availability SSE payloads.
|
|
1883
|
+
*/
|
|
1884
|
+
export declare enum RobotAvailabilityEventType {
|
|
1885
|
+
init = "init",
|
|
1886
|
+
update = "update"
|
|
1887
|
+
}
|
|
1888
|
+
/**
|
|
1889
|
+
* Types of robot availability SSE payloads.
|
|
1890
|
+
*/
|
|
1891
|
+
export declare enum RobotAvailabilityEventType1 {
|
|
1892
|
+
init = "init",
|
|
1893
|
+
update = "update"
|
|
1894
|
+
}
|
|
1851
1895
|
/**
|
|
1852
1896
|
* Status for a recording data trace upload lifecycle.
|
|
1853
1897
|
*/
|
package/dist/neuracore_types.js
CHANGED
|
@@ -6,8 +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.
|
|
10
|
-
exports.GPUType2 = void 0;
|
|
9
|
+
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.RobotAvailabilityEventType1 = exports.RobotAvailabilityEventType = exports.DataType = void 0;
|
|
10
|
+
exports.GPUType2 = exports.TrainingJobStatus = exports.RecordingNotificationType = void 0;
|
|
11
11
|
/**
|
|
12
12
|
* Enumeration of supported data types in the Neuracore system.
|
|
13
13
|
*
|
|
@@ -31,6 +31,22 @@ var DataType;
|
|
|
31
31
|
DataType["LANGUAGE"] = "LANGUAGE";
|
|
32
32
|
DataType["CUSTOM_1D"] = "CUSTOM_1D";
|
|
33
33
|
})(DataType || (exports.DataType = DataType = {}));
|
|
34
|
+
/**
|
|
35
|
+
* Types of robot availability SSE payloads.
|
|
36
|
+
*/
|
|
37
|
+
var RobotAvailabilityEventType;
|
|
38
|
+
(function (RobotAvailabilityEventType) {
|
|
39
|
+
RobotAvailabilityEventType["init"] = "init";
|
|
40
|
+
RobotAvailabilityEventType["update"] = "update";
|
|
41
|
+
})(RobotAvailabilityEventType || (exports.RobotAvailabilityEventType = RobotAvailabilityEventType = {}));
|
|
42
|
+
/**
|
|
43
|
+
* Types of robot availability SSE payloads.
|
|
44
|
+
*/
|
|
45
|
+
var RobotAvailabilityEventType1;
|
|
46
|
+
(function (RobotAvailabilityEventType1) {
|
|
47
|
+
RobotAvailabilityEventType1["init"] = "init";
|
|
48
|
+
RobotAvailabilityEventType1["update"] = "update";
|
|
49
|
+
})(RobotAvailabilityEventType1 || (exports.RobotAvailabilityEventType1 = RobotAvailabilityEventType1 = {}));
|
|
34
50
|
/**
|
|
35
51
|
* Status for a recording data trace upload lifecycle.
|
|
36
52
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neuracore/types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-main.98.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"
|