@neuracore/types 1.2.3 → 1.4.2

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 CHANGED
@@ -1 +1,2 @@
1
1
  export * from './neuracore_types';
2
+ export * as proto from './neuracore_types_pb';
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
  *
@@ -610,6 +625,14 @@ 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
  */
@@ -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.RecordingNotificationType = exports.VideoFormat = exports.DataType = exports.MessageType = exports.TrackKind = void 0;
9
+ exports.RecordingNotificationType = exports.RecordingDataStreamStatus = exports.VideoFormat = exports.DataType = exports.MessageType = exports.TrackKind = void 0;
10
10
  /**
11
11
  * Enumerates the supported track kinds for streaming.
12
12
  */
@@ -66,6 +66,15 @@ var VideoFormat;
66
66
  VideoFormat["WEB_RTC_NEGOTIATED"] = "WEB_RTC_NEGOTIATED";
67
67
  VideoFormat["NEURACORE_CUSTOM"] = "NEURACORE_CUSTOM";
68
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 = {}));
69
78
  /**
70
79
  * Types of recording lifecycle notifications.
71
80
  */