@neuracore/types 1.2.2 → 1.4.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/index.d.ts +1 -0
- package/dist/index.js +24 -0
- package/dist/neuracore_types.d.ts +28 -5
- package/dist/neuracore_types.js +82 -0
- package/dist/neuracore_types_pb.js +2273 -0
- package/package.json +7 -3
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -10,9 +10,33 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
13
18
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
20
|
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
16
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.proto = void 0;
|
|
17
40
|
// Auto-generated index file
|
|
18
41
|
__exportStar(require("./neuracore_types"), exports);
|
|
42
|
+
exports.proto = __importStar(require("./neuracore_types_pb"));
|
|
@@ -404,6 +404,21 @@ export interface RecodingRequestedPayload {
|
|
|
404
404
|
dataset_ids?: string[];
|
|
405
405
|
data_types?: DataType[];
|
|
406
406
|
}
|
|
407
|
+
/**
|
|
408
|
+
* Represents a single data stream belonging to a recording.
|
|
409
|
+
*
|
|
410
|
+
* This is used to track upload completion for each stream so that
|
|
411
|
+
* a recording can be saved once all streams are uploaded.
|
|
412
|
+
*/
|
|
413
|
+
export interface RecordingDataStream {
|
|
414
|
+
id: string;
|
|
415
|
+
recording_id: string;
|
|
416
|
+
data_type: DataType;
|
|
417
|
+
status?: RecordingDataStreamStatus;
|
|
418
|
+
upload_progress: number;
|
|
419
|
+
created_at?: number;
|
|
420
|
+
uploaded_at: number | null;
|
|
421
|
+
}
|
|
407
422
|
/**
|
|
408
423
|
* Description of a single recording episode with statistics and counts.
|
|
409
424
|
*
|
|
@@ -558,7 +573,7 @@ export interface SyncedDataset {
|
|
|
558
573
|
/**
|
|
559
574
|
* Enumerates the supported track kinds for streaming.
|
|
560
575
|
*/
|
|
561
|
-
export declare
|
|
576
|
+
export declare enum TrackKind {
|
|
562
577
|
JOINTS = "JOINTS",
|
|
563
578
|
RGB = "RGB",
|
|
564
579
|
DEPTH = "DEPTH",
|
|
@@ -576,7 +591,7 @@ export declare const enum TrackKind {
|
|
|
576
591
|
* These types are used to identify the purpose of a message sent through
|
|
577
592
|
* the signaling server during connection establishment.
|
|
578
593
|
*/
|
|
579
|
-
export declare
|
|
594
|
+
export declare enum MessageType {
|
|
580
595
|
SDP_OFFER = "SDP_OFFER",
|
|
581
596
|
SDP_ANSWER = "SDP_ANSWER",
|
|
582
597
|
ICE_CANDIDATE = "ICE_CANDIDATE",
|
|
@@ -588,7 +603,7 @@ export declare const enum MessageType {
|
|
|
588
603
|
* Defines the standard data categories used for dataset organization,
|
|
589
604
|
* model training, and data processing pipelines.
|
|
590
605
|
*/
|
|
591
|
-
export declare
|
|
606
|
+
export declare enum DataType {
|
|
592
607
|
JOINT_POSITIONS = "JOINT_POSITIONS",
|
|
593
608
|
JOINT_VELOCITIES = "JOINT_VELOCITIES",
|
|
594
609
|
JOINT_TORQUES = "JOINT_TORQUES",
|
|
@@ -606,14 +621,22 @@ export declare const enum DataType {
|
|
|
606
621
|
/**
|
|
607
622
|
* Enumerates video format styles over a WebRTC connection.
|
|
608
623
|
*/
|
|
609
|
-
export declare
|
|
624
|
+
export declare enum VideoFormat {
|
|
610
625
|
WEB_RTC_NEGOTIATED = "WEB_RTC_NEGOTIATED",
|
|
611
626
|
NEURACORE_CUSTOM = "NEURACORE_CUSTOM"
|
|
612
627
|
}
|
|
628
|
+
/**
|
|
629
|
+
* Status for a recording data stream upload lifecycle.
|
|
630
|
+
*/
|
|
631
|
+
export declare enum RecordingDataStreamStatus {
|
|
632
|
+
PENDING = "PENDING",
|
|
633
|
+
UPLOAD_STARTED = "UPLOAD_STARTED",
|
|
634
|
+
UPLOAD_COMPLETE = "UPLOAD_COMPLETE"
|
|
635
|
+
}
|
|
613
636
|
/**
|
|
614
637
|
* Types of recording lifecycle notifications.
|
|
615
638
|
*/
|
|
616
|
-
export declare
|
|
639
|
+
export declare enum RecordingNotificationType {
|
|
617
640
|
INIT = "INIT",
|
|
618
641
|
REQUESTED = "REQUESTED",
|
|
619
642
|
START = "START",
|
package/dist/neuracore_types.js
CHANGED
|
@@ -6,3 +6,85 @@
|
|
|
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.RecordingNotificationType = exports.RecordingDataStreamStatus = exports.VideoFormat = exports.DataType = exports.MessageType = exports.TrackKind = void 0;
|
|
10
|
+
/**
|
|
11
|
+
* Enumerates the supported track kinds for streaming.
|
|
12
|
+
*/
|
|
13
|
+
var TrackKind;
|
|
14
|
+
(function (TrackKind) {
|
|
15
|
+
TrackKind["JOINTS"] = "JOINTS";
|
|
16
|
+
TrackKind["RGB"] = "RGB";
|
|
17
|
+
TrackKind["DEPTH"] = "DEPTH";
|
|
18
|
+
TrackKind["LANGUAGE"] = "LANGUAGE";
|
|
19
|
+
TrackKind["GRIPPER"] = "GRIPPER";
|
|
20
|
+
TrackKind["END_EFFECTOR_POSE"] = "END_EFFECTOR_POSE";
|
|
21
|
+
TrackKind["PARALLEL_GRIPPER_OPEN_AMOUNT"] = "PARALLEL_GRIPPER_OPEN_AMOUNT";
|
|
22
|
+
TrackKind["POINT_CLOUD"] = "POINT_CLOUD";
|
|
23
|
+
TrackKind["POSE"] = "POSE";
|
|
24
|
+
TrackKind["CUSTOM"] = "CUSTOM";
|
|
25
|
+
})(TrackKind || (exports.TrackKind = TrackKind = {}));
|
|
26
|
+
/**
|
|
27
|
+
* Enumerates the types of signaling messages for WebRTC handshakes.
|
|
28
|
+
*
|
|
29
|
+
* These types are used to identify the purpose of a message sent through
|
|
30
|
+
* the signaling server during connection establishment.
|
|
31
|
+
*/
|
|
32
|
+
var MessageType;
|
|
33
|
+
(function (MessageType) {
|
|
34
|
+
MessageType["SDP_OFFER"] = "SDP_OFFER";
|
|
35
|
+
MessageType["SDP_ANSWER"] = "SDP_ANSWER";
|
|
36
|
+
MessageType["ICE_CANDIDATE"] = "ICE_CANDIDATE";
|
|
37
|
+
MessageType["OPEN_CONNECTION"] = "OPEN_CONNECTION";
|
|
38
|
+
})(MessageType || (exports.MessageType = MessageType = {}));
|
|
39
|
+
/**
|
|
40
|
+
* Enumeration of supported data types in the Neuracore system.
|
|
41
|
+
*
|
|
42
|
+
* Defines the standard data categories used for dataset organization,
|
|
43
|
+
* model training, and data processing pipelines.
|
|
44
|
+
*/
|
|
45
|
+
var DataType;
|
|
46
|
+
(function (DataType) {
|
|
47
|
+
DataType["JOINT_POSITIONS"] = "JOINT_POSITIONS";
|
|
48
|
+
DataType["JOINT_VELOCITIES"] = "JOINT_VELOCITIES";
|
|
49
|
+
DataType["JOINT_TORQUES"] = "JOINT_TORQUES";
|
|
50
|
+
DataType["JOINT_TARGET_POSITIONS"] = "JOINT_TARGET_POSITIONS";
|
|
51
|
+
DataType["END_EFFECTORS"] = "END_EFFECTORS";
|
|
52
|
+
DataType["END_EFFECTOR_POSES"] = "END_EFFECTOR_POSES";
|
|
53
|
+
DataType["PARALLEL_GRIPPER_OPEN_AMOUNTS"] = "PARALLEL_GRIPPER_OPEN_AMOUNTS";
|
|
54
|
+
DataType["RGB_IMAGE"] = "RGB_IMAGE";
|
|
55
|
+
DataType["DEPTH_IMAGE"] = "DEPTH_IMAGE";
|
|
56
|
+
DataType["POINT_CLOUD"] = "POINT_CLOUD";
|
|
57
|
+
DataType["POSES"] = "POSES";
|
|
58
|
+
DataType["LANGUAGE"] = "LANGUAGE";
|
|
59
|
+
DataType["CUSTOM"] = "CUSTOM";
|
|
60
|
+
})(DataType || (exports.DataType = DataType = {}));
|
|
61
|
+
/**
|
|
62
|
+
* Enumerates video format styles over a WebRTC connection.
|
|
63
|
+
*/
|
|
64
|
+
var VideoFormat;
|
|
65
|
+
(function (VideoFormat) {
|
|
66
|
+
VideoFormat["WEB_RTC_NEGOTIATED"] = "WEB_RTC_NEGOTIATED";
|
|
67
|
+
VideoFormat["NEURACORE_CUSTOM"] = "NEURACORE_CUSTOM";
|
|
68
|
+
})(VideoFormat || (exports.VideoFormat = VideoFormat = {}));
|
|
69
|
+
/**
|
|
70
|
+
* Status for a recording data stream upload lifecycle.
|
|
71
|
+
*/
|
|
72
|
+
var RecordingDataStreamStatus;
|
|
73
|
+
(function (RecordingDataStreamStatus) {
|
|
74
|
+
RecordingDataStreamStatus["PENDING"] = "PENDING";
|
|
75
|
+
RecordingDataStreamStatus["UPLOAD_STARTED"] = "UPLOAD_STARTED";
|
|
76
|
+
RecordingDataStreamStatus["UPLOAD_COMPLETE"] = "UPLOAD_COMPLETE";
|
|
77
|
+
})(RecordingDataStreamStatus || (exports.RecordingDataStreamStatus = RecordingDataStreamStatus = {}));
|
|
78
|
+
/**
|
|
79
|
+
* Types of recording lifecycle notifications.
|
|
80
|
+
*/
|
|
81
|
+
var RecordingNotificationType;
|
|
82
|
+
(function (RecordingNotificationType) {
|
|
83
|
+
RecordingNotificationType["INIT"] = "INIT";
|
|
84
|
+
RecordingNotificationType["REQUESTED"] = "REQUESTED";
|
|
85
|
+
RecordingNotificationType["START"] = "START";
|
|
86
|
+
RecordingNotificationType["STOP"] = "STOP";
|
|
87
|
+
RecordingNotificationType["SAVED"] = "SAVED";
|
|
88
|
+
RecordingNotificationType["DISCARDED"] = "DISCARDED";
|
|
89
|
+
RecordingNotificationType["EXPIRED"] = "EXPIRED";
|
|
90
|
+
})(RecordingNotificationType || (exports.RecordingNotificationType = RecordingNotificationType = {}));
|