@stinkycomputing/sesame-api-client 1.4.1-alpha.7 → 1.4.1-alpha.9

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.cjs CHANGED
@@ -34,14 +34,17 @@ __export(index_exports, {
34
34
  CommandList: () => CommandList,
35
35
  EaseKind: () => EaseKind,
36
36
  Event: () => Event,
37
+ JobsApi: () => JobsApi,
37
38
  Message: () => Message,
38
39
  PacketType: () => PacketType,
39
40
  RPCClient: () => RPCClient,
41
+ RecorderApi: () => RecorderApi,
40
42
  Request: () => Request,
41
43
  Response: () => Response,
42
44
  SesameBinaryProtocol: () => SesameBinaryProtocol,
43
45
  SesameClient: () => SesameClient,
44
46
  SesameConnection: () => SesameConnection,
47
+ StatusApi: () => StatusApi,
45
48
  getLogger: () => getLogger,
46
49
  log: () => log,
47
50
  sesame: () => sesame,
@@ -51,11 +54,11 @@ __export(index_exports, {
51
54
  module.exports = __toCommonJS(index_exports);
52
55
 
53
56
  // src/proto/api.js
54
- var $protobuf = __toESM(require("protobufjs/minimal"));
55
- var $Reader = $protobuf.Reader;
56
- var $Writer = $protobuf.Writer;
57
- var $util = $protobuf.util;
58
- var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
57
+ var import_minimal = __toESM(require("protobufjs/minimal.js"));
58
+ var $Reader = import_minimal.default.Reader;
59
+ var $Writer = import_minimal.default.Writer;
60
+ var $util = import_minimal.default.util;
61
+ var $root = import_minimal.default.roots["default"] || (import_minimal.default.roots["default"] = {});
59
62
  var sesame = $root.sesame = (() => {
60
63
  const sesame2 = {};
61
64
  sesame2.v1 = function() {
@@ -167,7 +170,7 @@ var sesame = $root.sesame = (() => {
167
170
  return object;
168
171
  };
169
172
  AudioPluginParam.prototype.toJSON = function toJSON() {
170
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
173
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
171
174
  };
172
175
  AudioPluginParam.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
173
176
  if (typeUrlPrefix === void 0) {
@@ -313,7 +316,7 @@ var sesame = $root.sesame = (() => {
313
316
  return object;
314
317
  };
315
318
  AudioPluginParamStatus.prototype.toJSON = function toJSON() {
316
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
319
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
317
320
  };
318
321
  AudioPluginParamStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
319
322
  if (typeUrlPrefix === void 0) {
@@ -496,7 +499,7 @@ var sesame = $root.sesame = (() => {
496
499
  return object;
497
500
  };
498
501
  AudioPlugin.prototype.toJSON = function toJSON() {
499
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
502
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
500
503
  };
501
504
  AudioPlugin.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
502
505
  if (typeUrlPrefix === void 0) {
@@ -767,7 +770,7 @@ var sesame = $root.sesame = (() => {
767
770
  return object;
768
771
  };
769
772
  AudioMixerChannel.prototype.toJSON = function toJSON() {
770
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
773
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
771
774
  };
772
775
  AudioMixerChannel.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
773
776
  if (typeUrlPrefix === void 0) {
@@ -938,7 +941,7 @@ var sesame = $root.sesame = (() => {
938
941
  return object;
939
942
  };
940
943
  AudioMixerConfig.prototype.toJSON = function toJSON() {
941
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
944
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
942
945
  };
943
946
  AudioMixerConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
944
947
  if (typeUrlPrefix === void 0) {
@@ -1050,7 +1053,7 @@ var sesame = $root.sesame = (() => {
1050
1053
  return object;
1051
1054
  };
1052
1055
  AudioMixerAddRequest.prototype.toJSON = function toJSON() {
1053
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1056
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
1054
1057
  };
1055
1058
  AudioMixerAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1056
1059
  if (typeUrlPrefix === void 0) {
@@ -1162,7 +1165,7 @@ var sesame = $root.sesame = (() => {
1162
1165
  return object;
1163
1166
  };
1164
1167
  AudioMixerUpdateRequest.prototype.toJSON = function toJSON() {
1165
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1168
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
1166
1169
  };
1167
1170
  AudioMixerUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1168
1171
  if (typeUrlPrefix === void 0) {
@@ -1250,7 +1253,7 @@ var sesame = $root.sesame = (() => {
1250
1253
  return object;
1251
1254
  };
1252
1255
  AudioMixerRemoveRequest.prototype.toJSON = function toJSON() {
1253
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1256
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
1254
1257
  };
1255
1258
  AudioMixerRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1256
1259
  if (typeUrlPrefix === void 0) {
@@ -1362,7 +1365,7 @@ var sesame = $root.sesame = (() => {
1362
1365
  return object;
1363
1366
  };
1364
1367
  AudioChannelAddRequest.prototype.toJSON = function toJSON() {
1365
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1368
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
1366
1369
  };
1367
1370
  AudioChannelAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1368
1371
  if (typeUrlPrefix === void 0) {
@@ -1470,7 +1473,7 @@ var sesame = $root.sesame = (() => {
1470
1473
  return object;
1471
1474
  };
1472
1475
  AudioChannelRemoveRequest.prototype.toJSON = function toJSON() {
1473
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1476
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
1474
1477
  };
1475
1478
  AudioChannelRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1476
1479
  if (typeUrlPrefix === void 0) {
@@ -1618,7 +1621,7 @@ var sesame = $root.sesame = (() => {
1618
1621
  return object;
1619
1622
  };
1620
1623
  AudioChannelPluginStatus.prototype.toJSON = function toJSON() {
1621
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1624
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
1622
1625
  };
1623
1626
  AudioChannelPluginStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1624
1627
  if (typeUrlPrefix === void 0) {
@@ -1908,7 +1911,7 @@ var sesame = $root.sesame = (() => {
1908
1911
  return object;
1909
1912
  };
1910
1913
  AudioChannelStatus.prototype.toJSON = function toJSON() {
1911
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1914
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
1912
1915
  };
1913
1916
  AudioChannelStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1914
1917
  if (typeUrlPrefix === void 0) {
@@ -2122,7 +2125,7 @@ var sesame = $root.sesame = (() => {
2122
2125
  return object;
2123
2126
  };
2124
2127
  AudioMixerStatus.prototype.toJSON = function toJSON() {
2125
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2128
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
2126
2129
  };
2127
2130
  AudioMixerStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2128
2131
  if (typeUrlPrefix === void 0) {
@@ -2992,7 +2995,7 @@ var sesame = $root.sesame = (() => {
2992
2995
  return object;
2993
2996
  };
2994
2997
  CommandListItem.prototype.toJSON = function toJSON() {
2995
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2998
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
2996
2999
  };
2997
3000
  CommandListItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2998
3001
  if (typeUrlPrefix === void 0) {
@@ -3100,7 +3103,7 @@ var sesame = $root.sesame = (() => {
3100
3103
  return object;
3101
3104
  };
3102
3105
  CommandList2.prototype.toJSON = function toJSON() {
3103
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3106
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3104
3107
  };
3105
3108
  CommandList2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3106
3109
  if (typeUrlPrefix === void 0) {
@@ -3164,7 +3167,7 @@ var sesame = $root.sesame = (() => {
3164
3167
  return {};
3165
3168
  };
3166
3169
  CommandExecutionResponse.prototype.toJSON = function toJSON() {
3167
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3170
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3168
3171
  };
3169
3172
  CommandExecutionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3170
3173
  if (typeUrlPrefix === void 0) {
@@ -3263,7 +3266,7 @@ var sesame = $root.sesame = (() => {
3263
3266
  return {};
3264
3267
  };
3265
3268
  Empty.prototype.toJSON = function toJSON() {
3266
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3269
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3267
3270
  };
3268
3271
  Empty.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3269
3272
  if (typeUrlPrefix === void 0) {
@@ -3409,7 +3412,7 @@ var sesame = $root.sesame = (() => {
3409
3412
  return object;
3410
3413
  };
3411
3414
  Vec4.prototype.toJSON = function toJSON() {
3412
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3415
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3413
3416
  };
3414
3417
  Vec4.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3415
3418
  if (typeUrlPrefix === void 0) {
@@ -3607,7 +3610,7 @@ var sesame = $root.sesame = (() => {
3607
3610
  return object;
3608
3611
  };
3609
3612
  PropValue.prototype.toJSON = function toJSON() {
3610
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3613
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3611
3614
  };
3612
3615
  PropValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3613
3616
  if (typeUrlPrefix === void 0) {
@@ -3775,7 +3778,7 @@ var sesame = $root.sesame = (() => {
3775
3778
  return object;
3776
3779
  };
3777
3780
  PropertyDomain.prototype.toJSON = function toJSON() {
3778
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3781
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3779
3782
  };
3780
3783
  PropertyDomain.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3781
3784
  if (typeUrlPrefix === void 0) {
@@ -3883,7 +3886,7 @@ var sesame = $root.sesame = (() => {
3883
3886
  return object;
3884
3887
  };
3885
3888
  NameValue.prototype.toJSON = function toJSON() {
3886
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3889
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3887
3890
  };
3888
3891
  NameValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3889
3892
  if (typeUrlPrefix === void 0) {
@@ -3991,7 +3994,7 @@ var sesame = $root.sesame = (() => {
3991
3994
  return object;
3992
3995
  };
3993
3996
  TransportMetadata.prototype.toJSON = function toJSON() {
3994
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3997
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3995
3998
  };
3996
3999
  TransportMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3997
4000
  if (typeUrlPrefix === void 0) {
@@ -4099,7 +4102,7 @@ var sesame = $root.sesame = (() => {
4099
4102
  return object;
4100
4103
  };
4101
4104
  Callback.prototype.toJSON = function toJSON() {
4102
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4105
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
4103
4106
  };
4104
4107
  Callback.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4105
4108
  if (typeUrlPrefix === void 0) {
@@ -4297,7 +4300,7 @@ var sesame = $root.sesame = (() => {
4297
4300
  return object;
4298
4301
  };
4299
4302
  VideoProcessorParam.prototype.toJSON = function toJSON() {
4300
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4303
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
4301
4304
  };
4302
4305
  VideoProcessorParam.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4303
4306
  if (typeUrlPrefix === void 0) {
@@ -4473,7 +4476,7 @@ var sesame = $root.sesame = (() => {
4473
4476
  return object;
4474
4477
  };
4475
4478
  VideoProcessor.prototype.toJSON = function toJSON() {
4476
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4479
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
4477
4480
  };
4478
4481
  VideoProcessor.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4479
4482
  if (typeUrlPrefix === void 0) {
@@ -4838,7 +4841,7 @@ var sesame = $root.sesame = (() => {
4838
4841
  return object;
4839
4842
  };
4840
4843
  SourceCommonConfig.prototype.toJSON = function toJSON() {
4841
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4844
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
4842
4845
  };
4843
4846
  SourceCommonConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4844
4847
  if (typeUrlPrefix === void 0) {
@@ -4926,7 +4929,7 @@ var sesame = $root.sesame = (() => {
4926
4929
  return object;
4927
4930
  };
4928
4931
  FileSourceConfig.prototype.toJSON = function toJSON() {
4929
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4932
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
4930
4933
  };
4931
4934
  FileSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4932
4935
  if (typeUrlPrefix === void 0) {
@@ -5062,7 +5065,7 @@ var sesame = $root.sesame = (() => {
5062
5065
  return object;
5063
5066
  };
5064
5067
  RecorderSourceConfig.prototype.toJSON = function toJSON() {
5065
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5068
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5066
5069
  };
5067
5070
  RecorderSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5068
5071
  if (typeUrlPrefix === void 0) {
@@ -5189,7 +5192,7 @@ var sesame = $root.sesame = (() => {
5189
5192
  return object;
5190
5193
  };
5191
5194
  BrowserSourceConfig.prototype.toJSON = function toJSON() {
5192
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5195
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5193
5196
  };
5194
5197
  BrowserSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5195
5198
  if (typeUrlPrefix === void 0) {
@@ -5332,7 +5335,7 @@ var sesame = $root.sesame = (() => {
5332
5335
  return object;
5333
5336
  };
5334
5337
  RTTSourceConfig.prototype.toJSON = function toJSON() {
5335
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5338
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5336
5339
  };
5337
5340
  RTTSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5338
5341
  if (typeUrlPrefix === void 0) {
@@ -5501,7 +5504,7 @@ var sesame = $root.sesame = (() => {
5501
5504
  return object;
5502
5505
  };
5503
5506
  DecklinkSourceConfig.prototype.toJSON = function toJSON() {
5504
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5507
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5505
5508
  };
5506
5509
  DecklinkSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5507
5510
  if (typeUrlPrefix === void 0) {
@@ -5565,7 +5568,7 @@ var sesame = $root.sesame = (() => {
5565
5568
  return {};
5566
5569
  };
5567
5570
  SignalGeneratorSourceConfig.prototype.toJSON = function toJSON() {
5568
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5571
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5569
5572
  };
5570
5573
  SignalGeneratorSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5571
5574
  if (typeUrlPrefix === void 0) {
@@ -5653,7 +5656,7 @@ var sesame = $root.sesame = (() => {
5653
5656
  return object;
5654
5657
  };
5655
5658
  SystemAudioSourceConfig.prototype.toJSON = function toJSON() {
5656
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5659
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5657
5660
  };
5658
5661
  SystemAudioSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5659
5662
  if (typeUrlPrefix === void 0) {
@@ -5761,7 +5764,7 @@ var sesame = $root.sesame = (() => {
5761
5764
  return object;
5762
5765
  };
5763
5766
  SrtSourceConfig.prototype.toJSON = function toJSON() {
5764
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5767
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5765
5768
  };
5766
5769
  SrtSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5767
5770
  if (typeUrlPrefix === void 0) {
@@ -5869,7 +5872,7 @@ var sesame = $root.sesame = (() => {
5869
5872
  return object;
5870
5873
  };
5871
5874
  WebsocketSourceConfig.prototype.toJSON = function toJSON() {
5872
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5875
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5873
5876
  };
5874
5877
  WebsocketSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5875
5878
  if (typeUrlPrefix === void 0) {
@@ -6015,7 +6018,7 @@ var sesame = $root.sesame = (() => {
6015
6018
  return object;
6016
6019
  };
6017
6020
  MoqSourceConfig.prototype.toJSON = function toJSON() {
6018
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6021
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
6019
6022
  };
6020
6023
  MoqSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6021
6024
  if (typeUrlPrefix === void 0) {
@@ -6411,7 +6414,7 @@ var sesame = $root.sesame = (() => {
6411
6414
  return object;
6412
6415
  };
6413
6416
  SourceConfig.prototype.toJSON = function toJSON() {
6414
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6417
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
6415
6418
  };
6416
6419
  SourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6417
6420
  if (typeUrlPrefix === void 0) {
@@ -6523,7 +6526,7 @@ var sesame = $root.sesame = (() => {
6523
6526
  return object;
6524
6527
  };
6525
6528
  SourceAddRequest.prototype.toJSON = function toJSON() {
6526
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6529
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
6527
6530
  };
6528
6531
  SourceAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6529
6532
  if (typeUrlPrefix === void 0) {
@@ -6635,7 +6638,7 @@ var sesame = $root.sesame = (() => {
6635
6638
  return object;
6636
6639
  };
6637
6640
  SourceUpdateRequest.prototype.toJSON = function toJSON() {
6638
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6641
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
6639
6642
  };
6640
6643
  SourceUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6641
6644
  if (typeUrlPrefix === void 0) {
@@ -6723,7 +6726,7 @@ var sesame = $root.sesame = (() => {
6723
6726
  return object;
6724
6727
  };
6725
6728
  SourceRemoveRequest.prototype.toJSON = function toJSON() {
6726
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6729
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
6727
6730
  };
6728
6731
  SourceRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6729
6732
  if (typeUrlPrefix === void 0) {
@@ -7402,7 +7405,7 @@ var sesame = $root.sesame = (() => {
7402
7405
  return object;
7403
7406
  };
7404
7407
  SourceStatus.prototype.toJSON = function toJSON() {
7405
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7408
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
7406
7409
  };
7407
7410
  SourceStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7408
7411
  if (typeUrlPrefix === void 0) {
@@ -7514,7 +7517,7 @@ var sesame = $root.sesame = (() => {
7514
7517
  return object;
7515
7518
  };
7516
7519
  SourceMetadataSetRequest.prototype.toJSON = function toJSON() {
7517
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7520
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
7518
7521
  };
7519
7522
  SourceMetadataSetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7520
7523
  if (typeUrlPrefix === void 0) {
@@ -7626,7 +7629,7 @@ var sesame = $root.sesame = (() => {
7626
7629
  return object;
7627
7630
  };
7628
7631
  SourceMetadataEvent.prototype.toJSON = function toJSON() {
7629
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7632
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
7630
7633
  };
7631
7634
  SourceMetadataEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7632
7635
  if (typeUrlPrefix === void 0) {
@@ -7845,7 +7848,7 @@ var sesame = $root.sesame = (() => {
7845
7848
  return object;
7846
7849
  };
7847
7850
  SourceTransportCommand.prototype.toJSON = function toJSON() {
7848
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7851
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
7849
7852
  };
7850
7853
  SourceTransportCommand.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7851
7854
  if (typeUrlPrefix === void 0) {
@@ -8106,7 +8109,7 @@ var sesame = $root.sesame = (() => {
8106
8109
  return object;
8107
8110
  };
8108
8111
  LoadPlaylistRequest.prototype.toJSON = function toJSON() {
8109
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8112
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
8110
8113
  };
8111
8114
  LoadPlaylistRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8112
8115
  if (typeUrlPrefix === void 0) {
@@ -8194,7 +8197,7 @@ var sesame = $root.sesame = (() => {
8194
8197
  return object;
8195
8198
  };
8196
8199
  EjectPlaylistRequest.prototype.toJSON = function toJSON() {
8197
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8200
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
8198
8201
  };
8199
8202
  EjectPlaylistRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8200
8203
  if (typeUrlPrefix === void 0) {
@@ -8232,7 +8235,7 @@ var sesame = $root.sesame = (() => {
8232
8235
  RecorderClip.prototype.endTimeUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
8233
8236
  RecorderClip.prototype.lockedStartUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
8234
8237
  RecorderClip.prototype.lockedEndUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
8235
- RecorderClip.prototype.userTimeUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
8238
+ RecorderClip.prototype.userTimeMs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
8236
8239
  RecorderClip.create = function create(properties) {
8237
8240
  return new RecorderClip(properties);
8238
8241
  };
@@ -8279,11 +8282,11 @@ var sesame = $root.sesame = (() => {
8279
8282
  /* id 8, wireType 0 =*/
8280
8283
  64
8281
8284
  ).int64(message.lockedEndUs);
8282
- if (message.userTimeUs != null && Object.hasOwnProperty.call(message, "userTimeUs"))
8285
+ if (message.userTimeMs != null && Object.hasOwnProperty.call(message, "userTimeMs"))
8283
8286
  writer.uint32(
8284
8287
  /* id 9, wireType 0 =*/
8285
8288
  72
8286
- ).int64(message.userTimeUs);
8289
+ ).int64(message.userTimeMs);
8287
8290
  return writer;
8288
8291
  };
8289
8292
  RecorderClip.encodeDelimited = function encodeDelimited(message, writer) {
@@ -8331,7 +8334,7 @@ var sesame = $root.sesame = (() => {
8331
8334
  break;
8332
8335
  }
8333
8336
  case 9: {
8334
- message.userTimeUs = reader.int64();
8337
+ message.userTimeMs = reader.int64();
8335
8338
  break;
8336
8339
  }
8337
8340
  default:
@@ -8381,9 +8384,9 @@ var sesame = $root.sesame = (() => {
8381
8384
  if (!$util.isInteger(message.lockedEndUs) && !(message.lockedEndUs && $util.isInteger(message.lockedEndUs.low) && $util.isInteger(message.lockedEndUs.high)))
8382
8385
  return "lockedEndUs: integer|Long expected";
8383
8386
  }
8384
- if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs")) {
8385
- if (!$util.isInteger(message.userTimeUs) && !(message.userTimeUs && $util.isInteger(message.userTimeUs.low) && $util.isInteger(message.userTimeUs.high)))
8386
- return "userTimeUs: integer|Long expected";
8387
+ if (message.userTimeMs != null && message.hasOwnProperty("userTimeMs")) {
8388
+ if (!$util.isInteger(message.userTimeMs) && !(message.userTimeMs && $util.isInteger(message.userTimeMs.low) && $util.isInteger(message.userTimeMs.high)))
8389
+ return "userTimeMs: integer|Long expected";
8387
8390
  }
8388
8391
  return null;
8389
8392
  };
@@ -8455,15 +8458,15 @@ var sesame = $root.sesame = (() => {
8455
8458
  else if (typeof object.lockedEndUs === "object")
8456
8459
  message.lockedEndUs = new $util.LongBits(object.lockedEndUs.low >>> 0, object.lockedEndUs.high >>> 0).toNumber();
8457
8460
  }
8458
- if (object.userTimeUs != null) {
8461
+ if (object.userTimeMs != null) {
8459
8462
  if ($util.Long)
8460
- (message.userTimeUs = $util.Long.fromValue(object.userTimeUs)).unsigned = false;
8461
- else if (typeof object.userTimeUs === "string")
8462
- message.userTimeUs = parseInt(object.userTimeUs, 10);
8463
- else if (typeof object.userTimeUs === "number")
8464
- message.userTimeUs = object.userTimeUs;
8465
- else if (typeof object.userTimeUs === "object")
8466
- message.userTimeUs = new $util.LongBits(object.userTimeUs.low >>> 0, object.userTimeUs.high >>> 0).toNumber();
8463
+ (message.userTimeMs = $util.Long.fromValue(object.userTimeMs)).unsigned = false;
8464
+ else if (typeof object.userTimeMs === "string")
8465
+ message.userTimeMs = parseInt(object.userTimeMs, 10);
8466
+ else if (typeof object.userTimeMs === "number")
8467
+ message.userTimeMs = object.userTimeMs;
8468
+ else if (typeof object.userTimeMs === "object")
8469
+ message.userTimeMs = new $util.LongBits(object.userTimeMs.low >>> 0, object.userTimeMs.high >>> 0).toNumber();
8467
8470
  }
8468
8471
  return message;
8469
8472
  };
@@ -8506,9 +8509,9 @@ var sesame = $root.sesame = (() => {
8506
8509
  object.lockedEndUs = options.longs === String ? "0" : 0;
8507
8510
  if ($util.Long) {
8508
8511
  let long = new $util.Long(0, 0, false);
8509
- object.userTimeUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
8512
+ object.userTimeMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
8510
8513
  } else
8511
- object.userTimeUs = options.longs === String ? "0" : 0;
8514
+ object.userTimeMs = options.longs === String ? "0" : 0;
8512
8515
  }
8513
8516
  if (message.id != null && message.hasOwnProperty("id"))
8514
8517
  if (typeof message.id === "number")
@@ -8544,15 +8547,15 @@ var sesame = $root.sesame = (() => {
8544
8547
  object.lockedEndUs = options.longs === String ? String(message.lockedEndUs) : message.lockedEndUs;
8545
8548
  else
8546
8549
  object.lockedEndUs = options.longs === String ? $util.Long.prototype.toString.call(message.lockedEndUs) : options.longs === Number ? new $util.LongBits(message.lockedEndUs.low >>> 0, message.lockedEndUs.high >>> 0).toNumber() : message.lockedEndUs;
8547
- if (message.userTimeUs != null && message.hasOwnProperty("userTimeUs"))
8548
- if (typeof message.userTimeUs === "number")
8549
- object.userTimeUs = options.longs === String ? String(message.userTimeUs) : message.userTimeUs;
8550
+ if (message.userTimeMs != null && message.hasOwnProperty("userTimeMs"))
8551
+ if (typeof message.userTimeMs === "number")
8552
+ object.userTimeMs = options.longs === String ? String(message.userTimeMs) : message.userTimeMs;
8550
8553
  else
8551
- object.userTimeUs = options.longs === String ? $util.Long.prototype.toString.call(message.userTimeUs) : options.longs === Number ? new $util.LongBits(message.userTimeUs.low >>> 0, message.userTimeUs.high >>> 0).toNumber() : message.userTimeUs;
8554
+ object.userTimeMs = options.longs === String ? $util.Long.prototype.toString.call(message.userTimeMs) : options.longs === Number ? new $util.LongBits(message.userTimeMs.low >>> 0, message.userTimeMs.high >>> 0).toNumber() : message.userTimeMs;
8552
8555
  return object;
8553
8556
  };
8554
8557
  RecorderClip.prototype.toJSON = function toJSON() {
8555
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8558
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
8556
8559
  };
8557
8560
  RecorderClip.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8558
8561
  if (typeUrlPrefix === void 0) {
@@ -8960,7 +8963,7 @@ var sesame = $root.sesame = (() => {
8960
8963
  return object;
8961
8964
  };
8962
8965
  PlaylistItem.prototype.toJSON = function toJSON() {
8963
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8966
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
8964
8967
  };
8965
8968
  PlaylistItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8966
8969
  if (typeUrlPrefix === void 0) {
@@ -9098,7 +9101,7 @@ var sesame = $root.sesame = (() => {
9098
9101
  return object;
9099
9102
  };
9100
9103
  RecorderClipRange.prototype.toJSON = function toJSON() {
9101
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9104
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9102
9105
  };
9103
9106
  RecorderClipRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9104
9107
  if (typeUrlPrefix === void 0) {
@@ -9162,7 +9165,7 @@ var sesame = $root.sesame = (() => {
9162
9165
  return {};
9163
9166
  };
9164
9167
  RecorderClipsGetRequest.prototype.toJSON = function toJSON() {
9165
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9168
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9166
9169
  };
9167
9170
  RecorderClipsGetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9168
9171
  if (typeUrlPrefix === void 0) {
@@ -9270,7 +9273,7 @@ var sesame = $root.sesame = (() => {
9270
9273
  return object;
9271
9274
  };
9272
9275
  RecorderClipsGetResponse.prototype.toJSON = function toJSON() {
9273
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9276
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9274
9277
  };
9275
9278
  RecorderClipsGetResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9276
9279
  if (typeUrlPrefix === void 0) {
@@ -9362,7 +9365,7 @@ var sesame = $root.sesame = (() => {
9362
9365
  return object;
9363
9366
  };
9364
9367
  RecorderClipAddRequest.prototype.toJSON = function toJSON() {
9365
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9368
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9366
9369
  };
9367
9370
  RecorderClipAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9368
9371
  if (typeUrlPrefix === void 0) {
@@ -9500,7 +9503,7 @@ var sesame = $root.sesame = (() => {
9500
9503
  return object;
9501
9504
  };
9502
9505
  RecorderClipCopyRequest.prototype.toJSON = function toJSON() {
9503
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9506
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9504
9507
  };
9505
9508
  RecorderClipCopyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9506
9509
  if (typeUrlPrefix === void 0) {
@@ -9603,7 +9606,7 @@ var sesame = $root.sesame = (() => {
9603
9606
  return object;
9604
9607
  };
9605
9608
  RecorderClipRemoveRequest.prototype.toJSON = function toJSON() {
9606
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9609
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9607
9610
  };
9608
9611
  RecorderClipRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9609
9612
  if (typeUrlPrefix === void 0) {
@@ -9781,7 +9784,7 @@ var sesame = $root.sesame = (() => {
9781
9784
  return object;
9782
9785
  };
9783
9786
  RecorderClipsClearRequest.prototype.toJSON = function toJSON() {
9784
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9787
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9785
9788
  };
9786
9789
  RecorderClipsClearRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9787
9790
  if (typeUrlPrefix === void 0) {
@@ -9873,7 +9876,7 @@ var sesame = $root.sesame = (() => {
9873
9876
  return object;
9874
9877
  };
9875
9878
  RecorderMetadataSetRequest.prototype.toJSON = function toJSON() {
9876
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9879
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9877
9880
  };
9878
9881
  RecorderMetadataSetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9879
9882
  if (typeUrlPrefix === void 0) {
@@ -10030,7 +10033,7 @@ var sesame = $root.sesame = (() => {
10030
10033
  return object;
10031
10034
  };
10032
10035
  RecorderClipFlagSetRequest.prototype.toJSON = function toJSON() {
10033
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10036
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10034
10037
  };
10035
10038
  RecorderClipFlagSetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10036
10039
  if (typeUrlPrefix === void 0) {
@@ -10094,7 +10097,7 @@ var sesame = $root.sesame = (() => {
10094
10097
  return {};
10095
10098
  };
10096
10099
  RecorderClipsVerifyRequest.prototype.toJSON = function toJSON() {
10097
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10100
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10098
10101
  };
10099
10102
  RecorderClipsVerifyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10100
10103
  if (typeUrlPrefix === void 0) {
@@ -10197,7 +10200,7 @@ var sesame = $root.sesame = (() => {
10197
10200
  return object;
10198
10201
  };
10199
10202
  RecorderClipsVerifyResponse.prototype.toJSON = function toJSON() {
10200
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10203
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10201
10204
  };
10202
10205
  RecorderClipsVerifyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10203
10206
  if (typeUrlPrefix === void 0) {
@@ -10285,7 +10288,7 @@ var sesame = $root.sesame = (() => {
10285
10288
  return object;
10286
10289
  };
10287
10290
  RecorderLockedDurationSetRequest.prototype.toJSON = function toJSON() {
10288
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10291
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10289
10292
  };
10290
10293
  RecorderLockedDurationSetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10291
10294
  if (typeUrlPrefix === void 0) {
@@ -10349,7 +10352,7 @@ var sesame = $root.sesame = (() => {
10349
10352
  return {};
10350
10353
  };
10351
10354
  RecorderOkResponse.prototype.toJSON = function toJSON() {
10352
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10355
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10353
10356
  };
10354
10357
  RecorderOkResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10355
10358
  if (typeUrlPrefix === void 0) {
@@ -10711,7 +10714,7 @@ var sesame = $root.sesame = (() => {
10711
10714
  return object;
10712
10715
  };
10713
10716
  RecorderRequest.prototype.toJSON = function toJSON() {
10714
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10717
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10715
10718
  };
10716
10719
  RecorderRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10717
10720
  if (typeUrlPrefix === void 0) {
@@ -10873,7 +10876,7 @@ var sesame = $root.sesame = (() => {
10873
10876
  return object;
10874
10877
  };
10875
10878
  RecorderResponse.prototype.toJSON = function toJSON() {
10876
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10879
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10877
10880
  };
10878
10881
  RecorderResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10879
10882
  if (typeUrlPrefix === void 0) {
@@ -10961,7 +10964,7 @@ var sesame = $root.sesame = (() => {
10961
10964
  return object;
10962
10965
  };
10963
10966
  RecorderStatus.prototype.toJSON = function toJSON() {
10964
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10967
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10965
10968
  };
10966
10969
  RecorderStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10967
10970
  if (typeUrlPrefix === void 0) {
@@ -11097,7 +11100,7 @@ var sesame = $root.sesame = (() => {
11097
11100
  return object;
11098
11101
  };
11099
11102
  RecorderEvent.prototype.toJSON = function toJSON() {
11100
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11103
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
11101
11104
  };
11102
11105
  RecorderEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11103
11106
  if (typeUrlPrefix === void 0) {
@@ -11247,7 +11250,7 @@ var sesame = $root.sesame = (() => {
11247
11250
  return object;
11248
11251
  };
11249
11252
  FrameTiming.prototype.toJSON = function toJSON() {
11250
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11253
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
11251
11254
  };
11252
11255
  FrameTiming.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11253
11256
  if (typeUrlPrefix === void 0) {
@@ -11552,7 +11555,7 @@ var sesame = $root.sesame = (() => {
11552
11555
  return object;
11553
11556
  };
11554
11557
  SRTReceiveStatistics.prototype.toJSON = function toJSON() {
11555
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11558
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
11556
11559
  };
11557
11560
  SRTReceiveStatistics.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11558
11561
  if (typeUrlPrefix === void 0) {
@@ -11876,7 +11879,7 @@ var sesame = $root.sesame = (() => {
11876
11879
  return object;
11877
11880
  };
11878
11881
  SRTSendStatistics.prototype.toJSON = function toJSON() {
11879
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11882
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
11880
11883
  };
11881
11884
  SRTSendStatistics.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11882
11885
  if (typeUrlPrefix === void 0) {
@@ -12048,7 +12051,7 @@ var sesame = $root.sesame = (() => {
12048
12051
  return object;
12049
12052
  };
12050
12053
  MemoryDomainStats.prototype.toJSON = function toJSON() {
12051
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12054
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
12052
12055
  };
12053
12056
  MemoryDomainStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12054
12057
  if (typeUrlPrefix === void 0) {
@@ -12547,7 +12550,7 @@ var sesame = $root.sesame = (() => {
12547
12550
  return object;
12548
12551
  };
12549
12552
  SystemStatus.prototype.toJSON = function toJSON() {
12550
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12553
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
12551
12554
  };
12552
12555
  SystemStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12553
12556
  if (typeUrlPrefix === void 0) {
@@ -12635,7 +12638,7 @@ var sesame = $root.sesame = (() => {
12635
12638
  return object;
12636
12639
  };
12637
12640
  CompositorStatus.prototype.toJSON = function toJSON() {
12638
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12641
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
12639
12642
  };
12640
12643
  CompositorStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12641
12644
  if (typeUrlPrefix === void 0) {
@@ -12804,7 +12807,7 @@ var sesame = $root.sesame = (() => {
12804
12807
  return object;
12805
12808
  };
12806
12809
  IODeviceItem.prototype.toJSON = function toJSON() {
12807
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12810
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
12808
12811
  };
12809
12812
  IODeviceItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12810
12813
  if (typeUrlPrefix === void 0) {
@@ -12912,7 +12915,7 @@ var sesame = $root.sesame = (() => {
12912
12915
  return object;
12913
12916
  };
12914
12917
  IODeviceListResponse.prototype.toJSON = function toJSON() {
12915
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12918
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
12916
12919
  };
12917
12920
  IODeviceListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12918
12921
  if (typeUrlPrefix === void 0) {
@@ -13248,7 +13251,7 @@ var sesame = $root.sesame = (() => {
13248
13251
  return object;
13249
13252
  };
13250
13253
  Status.prototype.toJSON = function toJSON() {
13251
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13254
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
13252
13255
  };
13253
13256
  Status.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
13254
13257
  if (typeUrlPrefix === void 0) {
@@ -13336,7 +13339,7 @@ var sesame = $root.sesame = (() => {
13336
13339
  return object;
13337
13340
  };
13338
13341
  ErrorEvent.prototype.toJSON = function toJSON() {
13339
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13342
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
13340
13343
  };
13341
13344
  ErrorEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
13342
13345
  if (typeUrlPrefix === void 0) {
@@ -13723,7 +13726,7 @@ var sesame = $root.sesame = (() => {
13723
13726
  return object;
13724
13727
  };
13725
13728
  TransportEvent.prototype.toJSON = function toJSON() {
13726
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13729
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
13727
13730
  };
13728
13731
  TransportEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
13729
13732
  if (typeUrlPrefix === void 0) {
@@ -13975,7 +13978,7 @@ var sesame = $root.sesame = (() => {
13975
13978
  return object;
13976
13979
  };
13977
13980
  Event2.prototype.toJSON = function toJSON() {
13978
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13981
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
13979
13982
  };
13980
13983
  Event2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
13981
13984
  if (typeUrlPrefix === void 0) {
@@ -14165,7 +14168,7 @@ var sesame = $root.sesame = (() => {
14165
14168
  return object;
14166
14169
  };
14167
14170
  SubscriptionRequest.prototype.toJSON = function toJSON() {
14168
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14171
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
14169
14172
  };
14170
14173
  SubscriptionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14171
14174
  if (typeUrlPrefix === void 0) {
@@ -14470,7 +14473,7 @@ var sesame = $root.sesame = (() => {
14470
14473
  return object;
14471
14474
  };
14472
14475
  EncoderConfig.prototype.toJSON = function toJSON() {
14473
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14476
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
14474
14477
  };
14475
14478
  EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14476
14479
  if (typeUrlPrefix === void 0) {
@@ -14630,7 +14633,7 @@ var sesame = $root.sesame = (() => {
14630
14633
  return object;
14631
14634
  };
14632
14635
  DecklinkOutputConfig.prototype.toJSON = function toJSON() {
14633
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14636
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
14634
14637
  };
14635
14638
  DecklinkOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14636
14639
  if (typeUrlPrefix === void 0) {
@@ -14742,7 +14745,7 @@ var sesame = $root.sesame = (() => {
14742
14745
  return object;
14743
14746
  };
14744
14747
  EncodedWebSocketOutputConfig.prototype.toJSON = function toJSON() {
14745
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14748
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
14746
14749
  };
14747
14750
  EncodedWebSocketOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14748
14751
  if (typeUrlPrefix === void 0) {
@@ -14934,7 +14937,7 @@ var sesame = $root.sesame = (() => {
14934
14937
  return object;
14935
14938
  };
14936
14939
  EncodedRecorderOutputConfig.prototype.toJSON = function toJSON() {
14937
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14940
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
14938
14941
  };
14939
14942
  EncodedRecorderOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14940
14943
  if (typeUrlPrefix === void 0) {
@@ -15196,7 +15199,7 @@ var sesame = $root.sesame = (() => {
15196
15199
  return object;
15197
15200
  };
15198
15201
  EncodedSuperSlowMoRecorderOutputConfig.prototype.toJSON = function toJSON() {
15199
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15202
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
15200
15203
  };
15201
15204
  EncodedSuperSlowMoRecorderOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15202
15205
  if (typeUrlPrefix === void 0) {
@@ -15308,7 +15311,7 @@ var sesame = $root.sesame = (() => {
15308
15311
  return object;
15309
15312
  };
15310
15313
  EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
15311
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15314
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
15312
15315
  };
15313
15316
  EncodedSrtOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15314
15317
  if (typeUrlPrefix === void 0) {
@@ -15458,7 +15461,7 @@ var sesame = $root.sesame = (() => {
15458
15461
  return object;
15459
15462
  };
15460
15463
  EncodedMoqOutputConfig.prototype.toJSON = function toJSON() {
15461
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15464
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
15462
15465
  };
15463
15466
  EncodedMoqOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15464
15467
  if (typeUrlPrefix === void 0) {
@@ -15546,7 +15549,7 @@ var sesame = $root.sesame = (() => {
15546
15549
  return object;
15547
15550
  };
15548
15551
  SystemAudioOutputConfig.prototype.toJSON = function toJSON() {
15549
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15552
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
15550
15553
  };
15551
15554
  SystemAudioOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15552
15555
  if (typeUrlPrefix === void 0) {
@@ -15922,7 +15925,7 @@ var sesame = $root.sesame = (() => {
15922
15925
  return object;
15923
15926
  };
15924
15927
  OutputAddRequest.prototype.toJSON = function toJSON() {
15925
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15928
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
15926
15929
  };
15927
15930
  OutputAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15928
15931
  if (typeUrlPrefix === void 0) {
@@ -16298,7 +16301,7 @@ var sesame = $root.sesame = (() => {
16298
16301
  return object;
16299
16302
  };
16300
16303
  OutputUpdateRequest.prototype.toJSON = function toJSON() {
16301
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16304
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
16302
16305
  };
16303
16306
  OutputUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16304
16307
  if (typeUrlPrefix === void 0) {
@@ -16386,7 +16389,7 @@ var sesame = $root.sesame = (() => {
16386
16389
  return object;
16387
16390
  };
16388
16391
  OutputRemoveRequest.prototype.toJSON = function toJSON() {
16389
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16392
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
16390
16393
  };
16391
16394
  OutputRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16392
16395
  if (typeUrlPrefix === void 0) {
@@ -16474,7 +16477,7 @@ var sesame = $root.sesame = (() => {
16474
16477
  return object;
16475
16478
  };
16476
16479
  KeyframeRequest.prototype.toJSON = function toJSON() {
16477
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16480
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
16478
16481
  };
16479
16482
  KeyframeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16480
16483
  if (typeUrlPrefix === void 0) {
@@ -16790,7 +16793,7 @@ var sesame = $root.sesame = (() => {
16790
16793
  return object;
16791
16794
  };
16792
16795
  OutputStatus.prototype.toJSON = function toJSON() {
16793
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16796
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
16794
16797
  };
16795
16798
  OutputStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16796
16799
  if (typeUrlPrefix === void 0) {
@@ -16979,7 +16982,7 @@ var sesame = $root.sesame = (() => {
16979
16982
  return object;
16980
16983
  };
16981
16984
  KeyFrame.prototype.toJSON = function toJSON() {
16982
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16985
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
16983
16986
  };
16984
16987
  KeyFrame.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16985
16988
  if (typeUrlPrefix === void 0) {
@@ -17125,7 +17128,7 @@ var sesame = $root.sesame = (() => {
17125
17128
  return object;
17126
17129
  };
17127
17130
  CompositorAddRequest.prototype.toJSON = function toJSON() {
17128
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17131
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17129
17132
  };
17130
17133
  CompositorAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17131
17134
  if (typeUrlPrefix === void 0) {
@@ -17213,7 +17216,7 @@ var sesame = $root.sesame = (() => {
17213
17216
  return object;
17214
17217
  };
17215
17218
  CompositorRemoveRequest.prototype.toJSON = function toJSON() {
17216
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17219
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17217
17220
  };
17218
17221
  CompositorRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17219
17222
  if (typeUrlPrefix === void 0) {
@@ -17301,7 +17304,7 @@ var sesame = $root.sesame = (() => {
17301
17304
  return object;
17302
17305
  };
17303
17306
  CompositorClearRequest.prototype.toJSON = function toJSON() {
17304
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17307
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17305
17308
  };
17306
17309
  CompositorClearRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17307
17310
  if (typeUrlPrefix === void 0) {
@@ -17495,7 +17498,7 @@ var sesame = $root.sesame = (() => {
17495
17498
  return object;
17496
17499
  };
17497
17500
  NodeAddRequest.prototype.toJSON = function toJSON() {
17498
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17501
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17499
17502
  };
17500
17503
  NodeAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17501
17504
  if (typeUrlPrefix === void 0) {
@@ -17603,7 +17606,7 @@ var sesame = $root.sesame = (() => {
17603
17606
  return object;
17604
17607
  };
17605
17608
  NodeRemoveRequest.prototype.toJSON = function toJSON() {
17606
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17609
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17607
17610
  };
17608
17611
  NodeRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17609
17612
  if (typeUrlPrefix === void 0) {
@@ -17757,7 +17760,7 @@ var sesame = $root.sesame = (() => {
17757
17760
  return object;
17758
17761
  };
17759
17762
  PropertySetRequest.prototype.toJSON = function toJSON() {
17760
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17763
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17761
17764
  };
17762
17765
  PropertySetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17763
17766
  if (typeUrlPrefix === void 0) {
@@ -18022,7 +18025,7 @@ var sesame = $root.sesame = (() => {
18022
18025
  return object;
18023
18026
  };
18024
18027
  PropertyAnimateRequest.prototype.toJSON = function toJSON() {
18025
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18028
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
18026
18029
  };
18027
18030
  PropertyAnimateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18028
18031
  if (typeUrlPrefix === void 0) {
@@ -18200,7 +18203,7 @@ var sesame = $root.sesame = (() => {
18200
18203
  return object;
18201
18204
  };
18202
18205
  TimingInfo.prototype.toJSON = function toJSON() {
18203
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18206
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
18204
18207
  };
18205
18208
  TimingInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18206
18209
  if (typeUrlPrefix === void 0) {
@@ -18450,7 +18453,7 @@ var sesame = $root.sesame = (() => {
18450
18453
  return object;
18451
18454
  };
18452
18455
  JobStatusResponse.prototype.toJSON = function toJSON() {
18453
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18456
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
18454
18457
  };
18455
18458
  JobStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18456
18459
  if (typeUrlPrefix === void 0) {
@@ -18558,7 +18561,7 @@ var sesame = $root.sesame = (() => {
18558
18561
  return object;
18559
18562
  };
18560
18563
  JobListResponse.prototype.toJSON = function toJSON() {
18561
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18564
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
18562
18565
  };
18563
18566
  JobListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18564
18567
  if (typeUrlPrefix === void 0) {
@@ -18802,7 +18805,7 @@ var sesame = $root.sesame = (() => {
18802
18805
  return object;
18803
18806
  };
18804
18807
  JobEvent.prototype.toJSON = function toJSON() {
18805
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18808
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
18806
18809
  };
18807
18810
  JobEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18808
18811
  if (typeUrlPrefix === void 0) {
@@ -19489,7 +19492,7 @@ var sesame = $root.sesame = (() => {
19489
19492
  return object;
19490
19493
  };
19491
19494
  ExportConfiguration.prototype.toJSON = function toJSON() {
19492
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19495
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
19493
19496
  };
19494
19497
  ExportConfiguration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19495
19498
  if (typeUrlPrefix === void 0) {
@@ -19621,7 +19624,7 @@ var sesame = $root.sesame = (() => {
19621
19624
  return object;
19622
19625
  };
19623
19626
  ExportStartRequest.prototype.toJSON = function toJSON() {
19624
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19627
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
19625
19628
  };
19626
19629
  ExportStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19627
19630
  if (typeUrlPrefix === void 0) {
@@ -19709,7 +19712,7 @@ var sesame = $root.sesame = (() => {
19709
19712
  return object;
19710
19713
  };
19711
19714
  ExportAbortRequest.prototype.toJSON = function toJSON() {
19712
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19715
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
19713
19716
  };
19714
19717
  ExportAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19715
19718
  if (typeUrlPrefix === void 0) {
@@ -19797,7 +19800,7 @@ var sesame = $root.sesame = (() => {
19797
19800
  return object;
19798
19801
  };
19799
19802
  ExportStatusRequest.prototype.toJSON = function toJSON() {
19800
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19803
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
19801
19804
  };
19802
19805
  ExportStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19803
19806
  if (typeUrlPrefix === void 0) {
@@ -19861,7 +19864,7 @@ var sesame = $root.sesame = (() => {
19861
19864
  return {};
19862
19865
  };
19863
19866
  ExportListRequest.prototype.toJSON = function toJSON() {
19864
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19867
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
19865
19868
  };
19866
19869
  ExportListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19867
19870
  if (typeUrlPrefix === void 0) {
@@ -20084,7 +20087,7 @@ var sesame = $root.sesame = (() => {
20084
20087
  return object;
20085
20088
  };
20086
20089
  ImportConfiguration.prototype.toJSON = function toJSON() {
20087
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20090
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20088
20091
  };
20089
20092
  ImportConfiguration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20090
20093
  if (typeUrlPrefix === void 0) {
@@ -20176,7 +20179,7 @@ var sesame = $root.sesame = (() => {
20176
20179
  return object;
20177
20180
  };
20178
20181
  ImportStartRequest.prototype.toJSON = function toJSON() {
20179
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20182
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20180
20183
  };
20181
20184
  ImportStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20182
20185
  if (typeUrlPrefix === void 0) {
@@ -20264,7 +20267,7 @@ var sesame = $root.sesame = (() => {
20264
20267
  return object;
20265
20268
  };
20266
20269
  ImportAbortRequest.prototype.toJSON = function toJSON() {
20267
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20270
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20268
20271
  };
20269
20272
  ImportAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20270
20273
  if (typeUrlPrefix === void 0) {
@@ -20352,7 +20355,7 @@ var sesame = $root.sesame = (() => {
20352
20355
  return object;
20353
20356
  };
20354
20357
  ImportStatusRequest.prototype.toJSON = function toJSON() {
20355
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20358
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20356
20359
  };
20357
20360
  ImportStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20358
20361
  if (typeUrlPrefix === void 0) {
@@ -20416,7 +20419,7 @@ var sesame = $root.sesame = (() => {
20416
20419
  return {};
20417
20420
  };
20418
20421
  ImportListRequest.prototype.toJSON = function toJSON() {
20419
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20422
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20420
20423
  };
20421
20424
  ImportListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20422
20425
  if (typeUrlPrefix === void 0) {
@@ -20429,8 +20432,8 @@ var sesame = $root.sesame = (() => {
20429
20432
  return jobs;
20430
20433
  }();
20431
20434
  v1.rpc = function() {
20432
- const rpc2 = {};
20433
- rpc2.Message = function() {
20435
+ const rpc = {};
20436
+ rpc.Message = function() {
20434
20437
  function Message2(properties) {
20435
20438
  if (properties) {
20436
20439
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -20582,7 +20585,7 @@ var sesame = $root.sesame = (() => {
20582
20585
  return object;
20583
20586
  };
20584
20587
  Message2.prototype.toJSON = function toJSON() {
20585
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20588
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20586
20589
  };
20587
20590
  Message2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20588
20591
  if (typeUrlPrefix === void 0) {
@@ -20592,7 +20595,7 @@ var sesame = $root.sesame = (() => {
20592
20595
  };
20593
20596
  return Message2;
20594
20597
  }();
20595
- rpc2.Request = function() {
20598
+ rpc.Request = function() {
20596
20599
  function Request2(properties) {
20597
20600
  if (properties) {
20598
20601
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -20719,7 +20722,7 @@ var sesame = $root.sesame = (() => {
20719
20722
  return object;
20720
20723
  };
20721
20724
  Request2.prototype.toJSON = function toJSON() {
20722
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20725
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20723
20726
  };
20724
20727
  Request2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20725
20728
  if (typeUrlPrefix === void 0) {
@@ -20729,7 +20732,7 @@ var sesame = $root.sesame = (() => {
20729
20732
  };
20730
20733
  return Request2;
20731
20734
  }();
20732
- rpc2.Response = function() {
20735
+ rpc.Response = function() {
20733
20736
  function Response2(properties) {
20734
20737
  if (properties) {
20735
20738
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -20875,7 +20878,7 @@ var sesame = $root.sesame = (() => {
20875
20878
  return object;
20876
20879
  };
20877
20880
  Response2.prototype.toJSON = function toJSON() {
20878
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20881
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20879
20882
  };
20880
20883
  Response2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20881
20884
  if (typeUrlPrefix === void 0) {
@@ -20885,7 +20888,7 @@ var sesame = $root.sesame = (() => {
20885
20888
  };
20886
20889
  return Response2;
20887
20890
  }();
20888
- rpc2.Event = function() {
20891
+ rpc.Event = function() {
20889
20892
  function Event2(properties) {
20890
20893
  if (properties) {
20891
20894
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -21036,7 +21039,7 @@ var sesame = $root.sesame = (() => {
21036
21039
  return object;
21037
21040
  };
21038
21041
  Event2.prototype.toJSON = function toJSON() {
21039
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
21042
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
21040
21043
  };
21041
21044
  Event2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
21042
21045
  if (typeUrlPrefix === void 0) {
@@ -21046,11 +21049,11 @@ var sesame = $root.sesame = (() => {
21046
21049
  };
21047
21050
  return Event2;
21048
21051
  }();
21049
- rpc2.SesameAPIService = function() {
21052
+ rpc.SesameAPIService = function() {
21050
21053
  function SesameAPIService(rpcImpl, requestDelimited, responseDelimited) {
21051
- $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
21054
+ import_minimal.default.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
21052
21055
  }
21053
- (SesameAPIService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SesameAPIService;
21056
+ (SesameAPIService.prototype = Object.create(import_minimal.default.rpc.Service.prototype)).constructor = SesameAPIService;
21054
21057
  SesameAPIService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
21055
21058
  return new this(rpcImpl, requestDelimited, responseDelimited);
21056
21059
  };
@@ -21104,7 +21107,7 @@ var sesame = $root.sesame = (() => {
21104
21107
  }, "name", { value: "RequestIODeviceList" });
21105
21108
  return SesameAPIService;
21106
21109
  }();
21107
- return rpc2;
21110
+ return rpc;
21108
21111
  }();
21109
21112
  return v1;
21110
21113
  }();
@@ -21120,7 +21123,7 @@ var CommandList = class {
21120
21123
  add(item, timeOffsetMs, transaction) {
21121
21124
  item.timeOffsetUs = (timeOffsetMs || 0) * 1e3;
21122
21125
  if (transaction) {
21123
- item.transactionDeps = (transaction == null ? void 0 : transaction.dependencies) || [];
21126
+ item.transactionDeps = transaction?.dependencies || [];
21124
21127
  item.transactionId = transaction.transactionId;
21125
21128
  }
21126
21129
  this.cl.commandList.push(item);
@@ -21157,7 +21160,7 @@ var CommandList = class {
21157
21160
  this.cl.commandList.splice(this.cl.commandList.indexOf(item.del), 1);
21158
21161
  });
21159
21162
  }
21160
- get_command_list_msg() {
21163
+ getCommandListMsg() {
21161
21164
  return this.cl;
21162
21165
  }
21163
21166
  callback(event, data, timeOffsetMs) {
@@ -21165,32 +21168,32 @@ var CommandList = class {
21165
21168
  item.callback = { event, data };
21166
21169
  return this.add(item, timeOffsetMs);
21167
21170
  }
21168
- add_compositor(id, width, height, multisample, timeOffsetMs) {
21171
+ compositorAdd(id, width, height, multisample, timeOffsetMs) {
21169
21172
  let item = new sesame.v1.commands.CommandListItem();
21170
21173
  item.addCompositor = { id, multisample, width, height };
21171
21174
  return this.add(item, timeOffsetMs);
21172
21175
  }
21173
- remove_compositor(id, timeOffsetMs) {
21176
+ compositorRemove(id, timeOffsetMs) {
21174
21177
  let item = new sesame.v1.commands.CommandListItem();
21175
21178
  item.removeCompositor = { id };
21176
21179
  return this.add(item, timeOffsetMs);
21177
21180
  }
21178
- clear_compositor(id, timeOffsetMs) {
21181
+ compositorClear(id, timeOffsetMs) {
21179
21182
  let item = new sesame.v1.commands.CommandListItem();
21180
21183
  item.clearCompositor = { id };
21181
21184
  return this.add(item, timeOffsetMs);
21182
21185
  }
21183
- add_source(id, cfg, timeOffsetMs) {
21186
+ sourceAdd(id, cfg, timeOffsetMs) {
21184
21187
  let item = new sesame.v1.commands.CommandListItem();
21185
21188
  item.addSource = { id, config: cfg };
21186
21189
  return this.add(item, timeOffsetMs);
21187
21190
  }
21188
- remove_source(id, timeOffsetMs) {
21191
+ sourceRemove(id, timeOffsetMs) {
21189
21192
  let item = new sesame.v1.commands.CommandListItem();
21190
21193
  item.removeSource = { id };
21191
21194
  return this.add(item, timeOffsetMs);
21192
21195
  }
21193
- add_node(id, cfg, timeOffsetMs) {
21196
+ nodeAdd(id, cfg, timeOffsetMs) {
21194
21197
  let item = new sesame.v1.commands.CommandListItem();
21195
21198
  item.addNode = {
21196
21199
  compositorId: cfg.compositorId,
@@ -21200,12 +21203,12 @@ var CommandList = class {
21200
21203
  };
21201
21204
  return this.add(item, timeOffsetMs);
21202
21205
  }
21203
- remove_node(compositorId, address, timeOffsetMs) {
21206
+ nodeRemove(compositorId, address, timeOffsetMs) {
21204
21207
  let item = new sesame.v1.commands.CommandListItem();
21205
21208
  item.removeNode = { compositorId, address };
21206
21209
  return this.add(item, timeOffsetMs);
21207
21210
  }
21208
- set_property(propertyDomain, addr, prop, val, timeOffsetMs) {
21211
+ propertySet(propertyDomain, addr, prop, val, timeOffsetMs) {
21209
21212
  let item = new sesame.v1.commands.CommandListItem();
21210
21213
  item.setProperty = {
21211
21214
  address: addr,
@@ -21215,7 +21218,7 @@ var CommandList = class {
21215
21218
  };
21216
21219
  return this.add(item, timeOffsetMs);
21217
21220
  }
21218
- add_load_playlist_command(sourceId, playlist) {
21221
+ playlistLoad(sourceId, playlist) {
21219
21222
  const item = new sesame.v1.commands.CommandListItem();
21220
21223
  const loadPlaylistCmd = {
21221
21224
  items: playlist.clips.map((clip) => ({
@@ -21238,13 +21241,13 @@ var CommandList = class {
21238
21241
  item.loadPlaylist = loadPlaylistCmd;
21239
21242
  return this.add(item, 0);
21240
21243
  }
21241
- add_eject_playlist_command(sourceId) {
21244
+ playlistEject(sourceId) {
21242
21245
  const item = new sesame.v1.commands.CommandListItem();
21243
21246
  const ejectPlaylistCmd = { sourceId };
21244
21247
  item.ejectPlaylist = ejectPlaylistCmd;
21245
21248
  return this.add(item, 0);
21246
21249
  }
21247
- add_transport_command(id, msg, timeOffsetMs) {
21250
+ transportCommand(id, msg, timeOffsetMs) {
21248
21251
  let item = new sesame.v1.commands.CommandListItem();
21249
21252
  let transportCmd = { sourceId: id };
21250
21253
  let cmd;
@@ -21317,17 +21320,17 @@ var CommandList = class {
21317
21320
  item.updateSourceTransport = transportCmd;
21318
21321
  return this.add(item, timeOffsetMs, { transactionId: msg.transactionId, dependencies: [] });
21319
21322
  }
21320
- update_source(id, cfg, timeOffsetMs) {
21323
+ sourceUpdate(id, cfg, timeOffsetMs) {
21321
21324
  let item = new sesame.v1.commands.CommandListItem();
21322
21325
  item.updateSource = { id, config: cfg };
21323
21326
  return this.add(item, timeOffsetMs);
21324
21327
  }
21325
- update_source_metadata(id, metadata, timeOffsetMs) {
21328
+ sourceUpdateMetadata(id, metadata, timeOffsetMs) {
21326
21329
  let item = new sesame.v1.commands.CommandListItem();
21327
21330
  item.setSourceMetadata = { sourceId: id, metadata };
21328
21331
  return this.add(item, timeOffsetMs);
21329
21332
  }
21330
- update_source_transport(id, cfg, timeOffsetMs) {
21333
+ sourceUpdateTransport(id, cfg, timeOffsetMs) {
21331
21334
  let item = new sesame.v1.commands.CommandListItem();
21332
21335
  item.updateSourceTransport = {
21333
21336
  sourceId: id,
@@ -21336,47 +21339,47 @@ var CommandList = class {
21336
21339
  };
21337
21340
  return this.add(item, timeOffsetMs);
21338
21341
  }
21339
- add_output(id, cfg, timeOffsetMs) {
21342
+ outputAdd(id, cfg, timeOffsetMs) {
21340
21343
  let item = new sesame.v1.commands.CommandListItem();
21341
21344
  item.addOutput = { id, ...cfg };
21342
21345
  return this.add(item, timeOffsetMs);
21343
21346
  }
21344
- update_output(id, cfg, timeOffsetMs) {
21347
+ outputUpdate(id, cfg, timeOffsetMs) {
21345
21348
  let item = new sesame.v1.commands.CommandListItem();
21346
21349
  item.updateOutput = { id, ...cfg };
21347
21350
  return this.add(item, timeOffsetMs);
21348
21351
  }
21349
- remove_output(id, timeOffsetMs) {
21352
+ outputRemove(id, timeOffsetMs) {
21350
21353
  let item = new sesame.v1.commands.CommandListItem();
21351
21354
  item.removeOutput = { id };
21352
21355
  return this.add(item, timeOffsetMs);
21353
21356
  }
21354
- add_audio_mixer(id, cfg, timeOffsetMs) {
21357
+ audioMixerAdd(id, cfg, timeOffsetMs) {
21355
21358
  let item = new sesame.v1.commands.CommandListItem();
21356
21359
  item.addAudioMixer = { id, config: cfg };
21357
21360
  return this.add(item, timeOffsetMs);
21358
21361
  }
21359
- update_audio_mixer(id, cfg, timeOffsetMs) {
21362
+ audioMixerUpdate(id, cfg, timeOffsetMs) {
21360
21363
  let item = new sesame.v1.commands.CommandListItem();
21361
21364
  item.updateAudioMixer = { id, config: cfg };
21362
21365
  return this.add(item, timeOffsetMs);
21363
21366
  }
21364
- add_audio_mixer_channel(mixerId, cfg, timeOffsetMs) {
21367
+ audioMixerChannelAdd(mixerId, cfg, timeOffsetMs) {
21365
21368
  let item = new sesame.v1.commands.CommandListItem();
21366
21369
  item.addAudioChannel = { mixerId, channelConfig: cfg };
21367
21370
  return this.add(item, timeOffsetMs);
21368
21371
  }
21369
- remove_audio_mixer(mixerId, timeOffsetMs) {
21372
+ audioMixerRemove(mixerId, timeOffsetMs) {
21370
21373
  let item = new sesame.v1.commands.CommandListItem();
21371
21374
  item.removeAudioMixer = { id: mixerId };
21372
21375
  return this.add(item, timeOffsetMs);
21373
21376
  }
21374
- remove_audio_mixer_channel(mixerId, channelId, timeOffsetMs) {
21377
+ audioMixerChannelRemove(mixerId, channelId, timeOffsetMs) {
21375
21378
  let item = new sesame.v1.commands.CommandListItem();
21376
21379
  item.removeAudioChannel = { mixerId, channelId };
21377
21380
  return this.add(item, timeOffsetMs);
21378
21381
  }
21379
- animate_property(propertyDomain, addr, prop, before, after, keyframes, timeOffsetMs) {
21382
+ propertyAnimate(propertyDomain, addr, prop, before, after, keyframes, timeOffsetMs) {
21380
21383
  let item = new sesame.v1.commands.CommandListItem();
21381
21384
  item.animateProperty = {
21382
21385
  address: addr,
@@ -21392,7 +21395,6 @@ var CommandList = class {
21392
21395
 
21393
21396
  // src/rpc-client.ts
21394
21397
  var import_events = require("events");
21395
- var WebSocket = __toESM(require("ws"));
21396
21398
 
21397
21399
  // src/logger.ts
21398
21400
  var ConsoleLogger = class {
@@ -21571,7 +21573,6 @@ var RPCClient = class extends import_events.EventEmitter {
21571
21573
 
21572
21574
  // src/sesame-connection.ts
21573
21575
  var import_events2 = require("events");
21574
- var import_ws = __toESM(require("ws"));
21575
21576
 
21576
21577
  // src/sesame-binary-protocol.ts
21577
21578
  var PROTOCOL_MAGIC = 1297302867;
@@ -21834,20 +21835,24 @@ var SesameConnection = class extends import_events2.EventEmitter {
21834
21835
  this.numRetries = 0;
21835
21836
  this.url = "";
21836
21837
  this.autoReconnect = true;
21838
+ /* Bound listeners so we can removeEventListener later */
21839
+ this.boundMessageHandler = (event) => this.messageHandler(event);
21840
+ this.boundOpenHandler = () => this.openHandler();
21841
+ this.boundCloseHandler = () => this.closeHandler();
21842
+ this.boundErrorHandler = (event) => this.errorHandler(event);
21837
21843
  this.openHandler = () => {
21838
21844
  this.numRetries = 0;
21839
21845
  this.emit("open");
21840
21846
  };
21841
21847
  this.messageHandler = (event) => {
21842
- var _a, _b, _c;
21843
21848
  if (event.data instanceof ArrayBuffer) {
21844
21849
  const parsed = SesameBinaryProtocol.parseData(new Uint8Array(event.data));
21845
21850
  if (!parsed.valid) this.emit("error", new Error("Invalid packet received"));
21846
- if (((_a = parsed.header) == null ? void 0 : _a.type) == 1 /* VIDEO_FRAME */) {
21851
+ if (parsed.header?.type == 1 /* VIDEO_FRAME */) {
21847
21852
  this.emit("video-packet", event.data);
21848
- } else if (((_b = parsed.header) == null ? void 0 : _b.type) == 2 /* AUDIO_FRAME */) {
21853
+ } else if (parsed.header?.type == 2 /* AUDIO_FRAME */) {
21849
21854
  this.emit("audio-packet", event.data);
21850
- } else if (((_c = parsed.header) == null ? void 0 : _c.type) == 3 /* RPC */) {
21855
+ } else if (parsed.header?.type == 3 /* RPC */) {
21851
21856
  this.emit("rpc", parsed.payload);
21852
21857
  }
21853
21858
  }
@@ -21857,7 +21862,7 @@ var SesameConnection = class extends import_events2.EventEmitter {
21857
21862
  if (options.autoConnect) this.connect().catch(() => log.debug("failed connect"));
21858
21863
  }
21859
21864
  isConnected() {
21860
- return this.socket !== void 0 && this.socket.readyState === import_ws.default.OPEN;
21865
+ return this.socket !== void 0 && this.socket.readyState === WebSocket.OPEN;
21861
21866
  }
21862
21867
  async send(data) {
21863
21868
  if (!this.isConnected()) throw new Error("Not connected");
@@ -21869,11 +21874,11 @@ var SesameConnection = class extends import_events2.EventEmitter {
21869
21874
  }
21870
21875
  async connect() {
21871
21876
  this.active = true;
21872
- this.socket = new import_ws.default(this.url);
21873
- this.socket.addEventListener("message", (event) => this.messageHandler(event));
21874
- this.socket.addEventListener("open", () => this.openHandler());
21875
- this.socket.addEventListener("close", () => this.closeHandler());
21876
- this.socket.addEventListener("error", (error) => this.errorHandler(error));
21877
+ this.socket = new WebSocket(this.url);
21878
+ this.socket.addEventListener("message", this.boundMessageHandler);
21879
+ this.socket.addEventListener("open", this.boundOpenHandler);
21880
+ this.socket.addEventListener("close", this.boundCloseHandler);
21881
+ this.socket.addEventListener("error", this.boundErrorHandler);
21877
21882
  this.socket.binaryType = "arraybuffer";
21878
21883
  await new Promise((resolve) => {
21879
21884
  const done = () => {
@@ -21894,11 +21899,17 @@ var SesameConnection = class extends import_events2.EventEmitter {
21894
21899
  return;
21895
21900
  }
21896
21901
  const sock = this.socket;
21897
- if (sock.readyState !== import_ws.default.CLOSED) {
21902
+ if (sock.readyState !== WebSocket.CLOSED) {
21898
21903
  sock.close();
21899
21904
  await waitForEvent(this, "close");
21900
21905
  }
21901
- sock.removeAllListeners();
21906
+ this.removeSocketListeners(sock);
21907
+ }
21908
+ removeSocketListeners(sock) {
21909
+ sock.removeEventListener("message", this.boundMessageHandler);
21910
+ sock.removeEventListener("open", this.boundOpenHandler);
21911
+ sock.removeEventListener("close", this.boundCloseHandler);
21912
+ sock.removeEventListener("error", this.boundErrorHandler);
21902
21913
  }
21903
21914
  retryHandler() {
21904
21915
  if (this.active && this.autoReconnect) {
@@ -21908,7 +21919,7 @@ var SesameConnection = class extends import_events2.EventEmitter {
21908
21919
  closeHandler() {
21909
21920
  this.emit("close");
21910
21921
  if (this.socket) {
21911
- this.socket.removeAllListeners();
21922
+ this.removeSocketListeners(this.socket);
21912
21923
  }
21913
21924
  this.socket = void 0;
21914
21925
  if (this.active) {
@@ -21931,6 +21942,131 @@ var defaultBackoff = (tries) => {
21931
21942
 
21932
21943
  // src/sesame-api-client.ts
21933
21944
  var import_events3 = require("events");
21945
+
21946
+ // src/status-api.ts
21947
+ var StatusApi = class {
21948
+ /** @internal */
21949
+ constructor(rpc) {
21950
+ this.rpc = rpc;
21951
+ }
21952
+ async getStatus() {
21953
+ return this.rpc.service.requestStatus(new sesame.v1.common.Empty());
21954
+ }
21955
+ async getIODevices() {
21956
+ return this.rpc.service.requestIODeviceList(new sesame.v1.common.Empty());
21957
+ }
21958
+ async requestKeyframe(outputId) {
21959
+ await this.rpc.service.requestKeyframe({ id: outputId });
21960
+ }
21961
+ };
21962
+
21963
+ // src/recorder-api.ts
21964
+ var RecorderApi = class {
21965
+ /** @internal */
21966
+ constructor(rpc) {
21967
+ this.rpc = rpc;
21968
+ }
21969
+ async addClip(recorderId, clip) {
21970
+ const msg = sesame.v1.recorder.RecorderClipAddRequest.create({ clip });
21971
+ await this.rpc.service.requestRecorderOperation({ recorderId, addClip: msg });
21972
+ }
21973
+ async copyClip(recorderId, clipId, newClipId) {
21974
+ const msg = sesame.v1.recorder.RecorderClipCopyRequest.create({ clipId, newClipId });
21975
+ await this.rpc.service.requestRecorderOperation({ recorderId, copyClip: msg });
21976
+ }
21977
+ async removeClip(recorderId, id) {
21978
+ const msg = sesame.v1.recorder.RecorderClipRemoveRequest.create({ clipId: id });
21979
+ await this.rpc.service.requestRecorderOperation({ recorderId, removeClip: msg });
21980
+ }
21981
+ async removeAllClips(recorderId, protect) {
21982
+ const msg = sesame.v1.recorder.RecorderClipsClearRequest.create();
21983
+ if (protect) msg.protectedRanges = protect;
21984
+ await this.rpc.service.requestRecorderOperation({ recorderId, clearClips: msg });
21985
+ }
21986
+ async verifyClips(recorderId) {
21987
+ const msg = sesame.v1.recorder.RecorderClipsVerifyRequest.create();
21988
+ const reply = await this.rpc.service.requestRecorderOperation({ recorderId, verifyClips: msg });
21989
+ return reply.verifyClipsResponse?.errors || [];
21990
+ }
21991
+ async getClips(recorderId) {
21992
+ const msg = sesame.v1.recorder.RecorderClipsGetRequest.create();
21993
+ const reply = await this.rpc.service.requestRecorderOperation({ recorderId, getClips: msg });
21994
+ if (reply.getClipsResponse?.clips) {
21995
+ return reply.getClipsResponse.clips;
21996
+ } else {
21997
+ throw new Error(`No clips returned: ${JSON.stringify(reply)}`);
21998
+ }
21999
+ }
22000
+ async setLockedDuration(frames) {
22001
+ const msg = sesame.v1.recorder.RecorderLockedDurationSetRequest.create({ frames });
22002
+ await this.rpc.service.requestRecorderOperation({ recorderId: "", setLockedDuration: msg });
22003
+ }
22004
+ async setMetadata(recorderId, metadata) {
22005
+ const msg = sesame.v1.recorder.RecorderMetadataSetRequest.create({ metadata });
22006
+ await this.rpc.service.requestRecorderOperation({ recorderId, setMetadata: msg });
22007
+ }
22008
+ };
22009
+
22010
+ // src/jobs-api.ts
22011
+ var JobsApi = class {
22012
+ /** @internal */
22013
+ constructor(rpc) {
22014
+ this.rpc = rpc;
22015
+ }
22016
+ async importClip(config) {
22017
+ const msg = sesame.v1.jobs.ImportStartRequest.create();
22018
+ msg.config = config;
22019
+ const res = await this.rpc.service.requestClipImportStart(msg);
22020
+ if (res.error) {
22021
+ throw new Error(res.error);
22022
+ }
22023
+ return res;
22024
+ }
22025
+ async getImportStatus() {
22026
+ const msg = sesame.v1.jobs.ImportListRequest.create();
22027
+ return this.rpc.service.requestClipImportList(msg);
22028
+ }
22029
+ async abortImport(jobId) {
22030
+ const msg = { jobId };
22031
+ return this.rpc.service.requestClipImportAbort(msg);
22032
+ }
22033
+ async exportPlaylist(playlist, config) {
22034
+ const msg = sesame.v1.jobs.ExportStartRequest.create();
22035
+ if (!config.filename) throw new Error("Filename is required");
22036
+ msg.config = {
22037
+ ...config,
22038
+ filename: config.filename,
22039
+ videoCodec: config.videoCodec ?? sesame.v1.common.CodecId.CODEC_ID_H264,
22040
+ videoBitrateKbps: config.videoBitrateKbps ?? 1024,
22041
+ audioCodec: config.audioCodec ?? sesame.v1.jobs.AudioCodecId.AUDIO_CODEC_ID_AAC,
22042
+ audioBitrateKbps: config.audioBitrateKbps ?? 128,
22043
+ audioChannels: config.audioChannels ?? 4,
22044
+ audioRouting: config.audioRouting ?? [0, 1, 2, 3]
22045
+ };
22046
+ msg.items = playlist.clips.map((clip) => ({
22047
+ id: clip.id,
22048
+ recorderId: clip.recorderId,
22049
+ transitionTimeUs: clip.transitionTimeUs ?? 0,
22050
+ transitionType: clip.transitionType ?? sesame.v1.recorder.TransitionType.TRANSITION_TYPE_MIX,
22051
+ transitionFadeColor: clip.transitionFadeColor ?? { x: 0, y: 0, z: 0, w: 0 },
22052
+ speed: clip.speed ?? 1,
22053
+ audioRouting: clip.audioRouting,
22054
+ startTimeUs: clip.startTimeUs,
22055
+ endTimeUs: clip.endTimeUs
22056
+ }));
22057
+ await this.rpc.service.requestPlaylistExportStart(msg);
22058
+ }
22059
+ async getExportStatus() {
22060
+ const msg = sesame.v1.jobs.ExportListRequest.create();
22061
+ return this.rpc.service.requestPlaylistExportList(msg);
22062
+ }
22063
+ async abortExport(jobId) {
22064
+ const msg = { jobId };
22065
+ return this.rpc.service.requestPlaylistExportAbort(msg);
22066
+ }
22067
+ };
22068
+
22069
+ // src/sesame-api-client.ts
21934
22070
  var EaseKind = /* @__PURE__ */ ((EaseKind2) => {
21935
22071
  EaseKind2["STEPPED"] = "stepped";
21936
22072
  EaseKind2["LINEAR"] = "linear";
@@ -22001,6 +22137,9 @@ var SesameClient = class extends import_events3.EventEmitter {
22001
22137
  eventTypes: events
22002
22138
  };
22003
22139
  this.rpc = new RPCClient(this.conn, sesame.v1.rpc.SesameAPIService, options);
22140
+ this.status = new StatusApi(this.rpc);
22141
+ this.recorder = new RecorderApi(this.rpc);
22142
+ this.jobs = new JobsApi(this.rpc);
22004
22143
  this.rpc.on("event", (topic, msg) => {
22005
22144
  for (const subscription of this.subscriptions) {
22006
22145
  if (subscription.topic === topic) {
@@ -22012,159 +22151,56 @@ var SesameClient = class extends import_events3.EventEmitter {
22012
22151
  log.error(`RPC error: ${err.message}`);
22013
22152
  });
22014
22153
  this.conn.on("open", async () => {
22015
- this.send_subscriptions();
22154
+ this.sendSubscriptions();
22016
22155
  this.errorIsLogged = false;
22017
22156
  this.emit("connected");
22018
22157
  });
22019
22158
  this.conn.on("close", () => {
22020
22159
  this.emit("disconnected");
22021
22160
  });
22022
- this.conn.on("video-packet", (data) => this.onVideoPacket(this.video_subscription, data));
22023
- this.conn.on("audio-packet", (data) => this.onAudioPacket(this.video_subscription, data));
22161
+ this.conn.on("video-packet", (data) => this.onVideoPacket(this.videoSubscriptionId, data));
22162
+ this.conn.on("audio-packet", (data) => this.onAudioPacket(this.videoSubscriptionId, data));
22024
22163
  this.subscriptions = [];
22025
22164
  }
22026
22165
  isConnected() {
22027
22166
  return this.conn.isConnected();
22028
22167
  }
22029
- send_subscriptions() {
22168
+ sendSubscriptions() {
22030
22169
  if (!this.isConnected()) return;
22031
22170
  const eventTopics = this.subscriptions.map((subscription) => subscription.topic);
22032
22171
  const channels = [];
22033
- if (this.video_subscription) channels.push(`video/${this.video_subscription}`);
22172
+ if (this.videoSubscriptionId) channels.push(`video/${this.videoSubscriptionId}`);
22034
22173
  let subs = { eventTopics, channels };
22035
22174
  this.rpc.service.updateSubscriptions(subs).catch((err) => {
22036
22175
  log.error(`Failed to update subscriptions: ${err.message}`);
22037
22176
  });
22038
22177
  }
22039
- async get_status() {
22040
- const status = await this.rpc.service.requestStatus(new sesame.v1.common.Empty());
22041
- return status;
22042
- }
22043
- async get_io_devices() {
22044
- const reply = await this.rpc.service.requestIODeviceList(new sesame.v1.common.Empty());
22045
- return reply;
22178
+ addVideoSubscription(id) {
22179
+ this.videoSubscriptionId = id;
22180
+ this.sendSubscriptions();
22046
22181
  }
22047
- async request_keyframe(outputId) {
22048
- await this.rpc.service.requestKeyframe({ id: outputId });
22049
- }
22050
- add_video_subscription(id) {
22051
- this.video_subscription = id;
22052
- this.send_subscriptions();
22053
- }
22054
- add_subscription(topic, callback) {
22182
+ addSubscription(topic, callback) {
22055
22183
  for (let i = 0; i < this.subscriptions.length; i++) {
22056
22184
  if (this.subscriptions[i].callback === callback && this.subscriptions[i].topic === topic) {
22057
22185
  return;
22058
22186
  }
22059
22187
  }
22060
22188
  this.subscriptions.push({ topic, callback });
22061
- this.send_subscriptions();
22189
+ this.sendSubscriptions();
22062
22190
  }
22063
- remove_subscription(topic, callback) {
22191
+ removeSubscription(topic, callback) {
22064
22192
  this.subscriptions = this.subscriptions.filter((s) => !(s.topic === topic && s.callback === callback));
22065
- this.send_subscriptions();
22193
+ this.sendSubscriptions();
22066
22194
  }
22067
22195
  getService() {
22068
22196
  return this.rpc;
22069
22197
  }
22070
22198
  async execute(cl) {
22071
22199
  cl.filterCreatedAndDestroyedSources();
22072
- if (cl.get_command_list_msg().commandList.length > 0) {
22073
- await this.rpc.service.executeCommandList(cl.get_command_list_msg());
22074
- }
22075
- }
22076
- async addClip(recorderId, clip) {
22077
- const msg = sesame.v1.recorder.RecorderClipAddRequest.create({ clip });
22078
- await this.rpc.service.requestRecorderOperation({ recorderId, addClip: msg });
22079
- }
22080
- async copyClip(recorderId, clipId, newClipId) {
22081
- const msg = sesame.v1.recorder.RecorderClipCopyRequest.create({ clipId, newClipId });
22082
- await this.rpc.service.requestRecorderOperation({ recorderId, copyClip: msg });
22083
- }
22084
- async removeClip(recorderId, id) {
22085
- const msg = sesame.v1.recorder.RecorderClipRemoveRequest.create({ clipId: id });
22086
- await this.rpc.service.requestRecorderOperation({ recorderId, removeClip: msg });
22087
- }
22088
- async removeAllClips(recorderId, protect) {
22089
- const msg = sesame.v1.recorder.RecorderClipsClearRequest.create();
22090
- if (protect) msg.protectedRanges = protect;
22091
- await this.rpc.service.requestRecorderOperation({ recorderId, clearClips: msg });
22092
- }
22093
- async verifyClips(recorderId) {
22094
- var _a;
22095
- const msg = sesame.v1.recorder.RecorderClipsVerifyRequest.create();
22096
- const reply = await this.rpc.service.requestRecorderOperation({ recorderId, verifyClips: msg });
22097
- return ((_a = reply.verifyClipsResponse) == null ? void 0 : _a.errors) || [];
22098
- }
22099
- async setLockedDuration(frames) {
22100
- const msg = sesame.v1.recorder.RecorderLockedDurationSetRequest.create({ frames });
22101
- await this.rpc.service.requestRecorderOperation({ recorderId: "", setLockedDuration: msg });
22102
- }
22103
- async setMetadata(recorderId, metadata) {
22104
- const msg = sesame.v1.recorder.RecorderMetadataSetRequest.create({ metadata });
22105
- await this.rpc.service.requestRecorderOperation({ recorderId, setMetadata: msg });
22106
- }
22107
- async getClips(recorderId) {
22108
- const msg = sesame.v1.recorder.RecorderClipsGetRequest.create();
22109
- const reply = await this.rpc.service.requestRecorderOperation({ recorderId, getClips: msg });
22110
- if (reply.getClipsResponse && reply.getClipsResponse.clips) {
22111
- return reply.getClipsResponse.clips;
22112
- } else {
22113
- throw new Error(`No clips returned: ${JSON.stringify(reply)}`);
22200
+ if (cl.getCommandListMsg().commandList.length > 0) {
22201
+ await this.rpc.service.executeCommandList(cl.getCommandListMsg());
22114
22202
  }
22115
22203
  }
22116
- async getImportClipStatus() {
22117
- const msg = sesame.v1.jobs.ImportListRequest.create();
22118
- return await this.rpc.service.requestClipImportList(msg);
22119
- }
22120
- async getExportPlaylistStatus() {
22121
- const msg = sesame.v1.jobs.ExportListRequest.create();
22122
- return await this.rpc.service.requestPlaylistExportList(msg);
22123
- }
22124
- async exportPlaylist(playlist, config) {
22125
- const msg = sesame.v1.jobs.ExportStartRequest.create();
22126
- if (!config.filename) throw new Error("Filename is required");
22127
- msg.config = {
22128
- ...config,
22129
- filename: config.filename,
22130
- videoCodec: config.videoCodec ?? sesame.v1.common.CodecId.CODEC_ID_H264,
22131
- videoBitrateKbps: config.videoBitrateKbps ?? 1024,
22132
- audioCodec: config.audioCodec ?? sesame.v1.jobs.AudioCodecId.AUDIO_CODEC_ID_AAC,
22133
- audioBitrateKbps: config.audioBitrateKbps ?? 128,
22134
- audioChannels: config.audioChannels ?? 4,
22135
- audioRouting: config.audioRouting ?? [0, 1, 2, 3]
22136
- };
22137
- msg.items = playlist.clips.map((clip) => ({
22138
- id: clip.id,
22139
- recorderId: clip.recorderId,
22140
- transitionTimeUs: clip.transitionTimeUs ?? 0,
22141
- transitionType: clip.transitionType ?? sesame.v1.recorder.TransitionType.TRANSITION_TYPE_MIX,
22142
- transitionFadeColor: clip.transitionFadeColor ?? { x: 0, y: 0, z: 0, w: 0 },
22143
- speed: clip.speed ?? 1,
22144
- audioRouting: clip.audioRouting,
22145
- startTimeUs: clip.startTimeUs,
22146
- endTimeUs: clip.endTimeUs
22147
- }));
22148
- await this.rpc.service.requestPlaylistExportStart(msg);
22149
- }
22150
- async importClip(config) {
22151
- const msg = sesame.v1.jobs.ImportStartRequest.create();
22152
- msg.config = config;
22153
- const res = await this.rpc.service.requestClipImportStart(msg);
22154
- if (res.error) {
22155
- throw new Error(res.error);
22156
- } else {
22157
- return res;
22158
- }
22159
- }
22160
- async abortExportJob(jobId) {
22161
- const msg = { jobId };
22162
- return this.rpc.service.requestPlaylistExportAbort(msg);
22163
- }
22164
- async abortImportJob(jobId) {
22165
- const msg = { jobId };
22166
- return this.rpc.service.requestClipImportAbort(msg);
22167
- }
22168
22204
  disconnect() {
22169
22205
  this.conn.disconnect();
22170
22206
  }
@@ -22181,14 +22217,17 @@ var Event = sesame.v1.rpc.Event;
22181
22217
  CommandList,
22182
22218
  EaseKind,
22183
22219
  Event,
22220
+ JobsApi,
22184
22221
  Message,
22185
22222
  PacketType,
22186
22223
  RPCClient,
22224
+ RecorderApi,
22187
22225
  Request,
22188
22226
  Response,
22189
22227
  SesameBinaryProtocol,
22190
22228
  SesameClient,
22191
22229
  SesameConnection,
22230
+ StatusApi,
22192
22231
  getLogger,
22193
22232
  log,
22194
22233
  sesame,