@stinkycomputing/sesame-api-client 1.4.1-alpha.8 → 1.4.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -32,19 +32,21 @@ var index_exports = {};
32
32
  __export(index_exports, {
33
33
  CodecType: () => CodecType,
34
34
  CommandList: () => CommandList,
35
+ ConnectionState: () => ConnectionState,
35
36
  EaseKind: () => EaseKind,
36
37
  Event: () => Event,
38
+ FrameHeader: () => FrameHeader,
39
+ FrameType: () => FrameType,
37
40
  JobsApi: () => JobsApi,
38
41
  Message: () => Message,
39
- PacketType: () => PacketType,
40
42
  RPCClient: () => RPCClient,
41
43
  RecorderApi: () => RecorderApi,
42
44
  Request: () => Request,
43
45
  Response: () => Response,
44
- SesameBinaryProtocol: () => SesameBinaryProtocol,
45
46
  SesameClient: () => SesameClient,
46
47
  SesameConnection: () => SesameConnection,
47
48
  StatusApi: () => StatusApi,
49
+ WireProtocol: () => WireProtocol,
48
50
  getLogger: () => getLogger,
49
51
  log: () => log,
50
52
  sesame: () => sesame,
@@ -54,11 +56,11 @@ __export(index_exports, {
54
56
  module.exports = __toCommonJS(index_exports);
55
57
 
56
58
  // src/proto/api.js
57
- var $protobuf = __toESM(require("protobufjs/minimal"));
58
- var $Reader = $protobuf.Reader;
59
- var $Writer = $protobuf.Writer;
60
- var $util = $protobuf.util;
61
- var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
59
+ var import_minimal = __toESM(require("protobufjs/minimal.js"));
60
+ var $Reader = import_minimal.default.Reader;
61
+ var $Writer = import_minimal.default.Writer;
62
+ var $util = import_minimal.default.util;
63
+ var $root = import_minimal.default.roots["default"] || (import_minimal.default.roots["default"] = {});
62
64
  var sesame = $root.sesame = (() => {
63
65
  const sesame2 = {};
64
66
  sesame2.v1 = function() {
@@ -170,7 +172,7 @@ var sesame = $root.sesame = (() => {
170
172
  return object;
171
173
  };
172
174
  AudioPluginParam.prototype.toJSON = function toJSON() {
173
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
175
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
174
176
  };
175
177
  AudioPluginParam.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
176
178
  if (typeUrlPrefix === void 0) {
@@ -316,7 +318,7 @@ var sesame = $root.sesame = (() => {
316
318
  return object;
317
319
  };
318
320
  AudioPluginParamStatus.prototype.toJSON = function toJSON() {
319
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
321
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
320
322
  };
321
323
  AudioPluginParamStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
322
324
  if (typeUrlPrefix === void 0) {
@@ -499,7 +501,7 @@ var sesame = $root.sesame = (() => {
499
501
  return object;
500
502
  };
501
503
  AudioPlugin.prototype.toJSON = function toJSON() {
502
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
504
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
503
505
  };
504
506
  AudioPlugin.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
505
507
  if (typeUrlPrefix === void 0) {
@@ -770,7 +772,7 @@ var sesame = $root.sesame = (() => {
770
772
  return object;
771
773
  };
772
774
  AudioMixerChannel.prototype.toJSON = function toJSON() {
773
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
775
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
774
776
  };
775
777
  AudioMixerChannel.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
776
778
  if (typeUrlPrefix === void 0) {
@@ -941,7 +943,7 @@ var sesame = $root.sesame = (() => {
941
943
  return object;
942
944
  };
943
945
  AudioMixerConfig.prototype.toJSON = function toJSON() {
944
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
946
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
945
947
  };
946
948
  AudioMixerConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
947
949
  if (typeUrlPrefix === void 0) {
@@ -1053,7 +1055,7 @@ var sesame = $root.sesame = (() => {
1053
1055
  return object;
1054
1056
  };
1055
1057
  AudioMixerAddRequest.prototype.toJSON = function toJSON() {
1056
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1058
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
1057
1059
  };
1058
1060
  AudioMixerAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1059
1061
  if (typeUrlPrefix === void 0) {
@@ -1165,7 +1167,7 @@ var sesame = $root.sesame = (() => {
1165
1167
  return object;
1166
1168
  };
1167
1169
  AudioMixerUpdateRequest.prototype.toJSON = function toJSON() {
1168
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1170
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
1169
1171
  };
1170
1172
  AudioMixerUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1171
1173
  if (typeUrlPrefix === void 0) {
@@ -1253,7 +1255,7 @@ var sesame = $root.sesame = (() => {
1253
1255
  return object;
1254
1256
  };
1255
1257
  AudioMixerRemoveRequest.prototype.toJSON = function toJSON() {
1256
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1258
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
1257
1259
  };
1258
1260
  AudioMixerRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1259
1261
  if (typeUrlPrefix === void 0) {
@@ -1365,7 +1367,7 @@ var sesame = $root.sesame = (() => {
1365
1367
  return object;
1366
1368
  };
1367
1369
  AudioChannelAddRequest.prototype.toJSON = function toJSON() {
1368
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1370
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
1369
1371
  };
1370
1372
  AudioChannelAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1371
1373
  if (typeUrlPrefix === void 0) {
@@ -1473,7 +1475,7 @@ var sesame = $root.sesame = (() => {
1473
1475
  return object;
1474
1476
  };
1475
1477
  AudioChannelRemoveRequest.prototype.toJSON = function toJSON() {
1476
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1478
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
1477
1479
  };
1478
1480
  AudioChannelRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1479
1481
  if (typeUrlPrefix === void 0) {
@@ -1621,7 +1623,7 @@ var sesame = $root.sesame = (() => {
1621
1623
  return object;
1622
1624
  };
1623
1625
  AudioChannelPluginStatus.prototype.toJSON = function toJSON() {
1624
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1626
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
1625
1627
  };
1626
1628
  AudioChannelPluginStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1627
1629
  if (typeUrlPrefix === void 0) {
@@ -1911,7 +1913,7 @@ var sesame = $root.sesame = (() => {
1911
1913
  return object;
1912
1914
  };
1913
1915
  AudioChannelStatus.prototype.toJSON = function toJSON() {
1914
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1916
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
1915
1917
  };
1916
1918
  AudioChannelStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1917
1919
  if (typeUrlPrefix === void 0) {
@@ -2125,7 +2127,7 @@ var sesame = $root.sesame = (() => {
2125
2127
  return object;
2126
2128
  };
2127
2129
  AudioMixerStatus.prototype.toJSON = function toJSON() {
2128
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2130
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
2129
2131
  };
2130
2132
  AudioMixerStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2131
2133
  if (typeUrlPrefix === void 0) {
@@ -2995,7 +2997,7 @@ var sesame = $root.sesame = (() => {
2995
2997
  return object;
2996
2998
  };
2997
2999
  CommandListItem.prototype.toJSON = function toJSON() {
2998
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3000
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
2999
3001
  };
3000
3002
  CommandListItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3001
3003
  if (typeUrlPrefix === void 0) {
@@ -3103,7 +3105,7 @@ var sesame = $root.sesame = (() => {
3103
3105
  return object;
3104
3106
  };
3105
3107
  CommandList2.prototype.toJSON = function toJSON() {
3106
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3108
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3107
3109
  };
3108
3110
  CommandList2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3109
3111
  if (typeUrlPrefix === void 0) {
@@ -3167,7 +3169,7 @@ var sesame = $root.sesame = (() => {
3167
3169
  return {};
3168
3170
  };
3169
3171
  CommandExecutionResponse.prototype.toJSON = function toJSON() {
3170
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3172
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3171
3173
  };
3172
3174
  CommandExecutionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3173
3175
  if (typeUrlPrefix === void 0) {
@@ -3266,7 +3268,7 @@ var sesame = $root.sesame = (() => {
3266
3268
  return {};
3267
3269
  };
3268
3270
  Empty.prototype.toJSON = function toJSON() {
3269
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3271
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3270
3272
  };
3271
3273
  Empty.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3272
3274
  if (typeUrlPrefix === void 0) {
@@ -3412,7 +3414,7 @@ var sesame = $root.sesame = (() => {
3412
3414
  return object;
3413
3415
  };
3414
3416
  Vec4.prototype.toJSON = function toJSON() {
3415
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3417
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3416
3418
  };
3417
3419
  Vec4.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3418
3420
  if (typeUrlPrefix === void 0) {
@@ -3610,7 +3612,7 @@ var sesame = $root.sesame = (() => {
3610
3612
  return object;
3611
3613
  };
3612
3614
  PropValue.prototype.toJSON = function toJSON() {
3613
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3615
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3614
3616
  };
3615
3617
  PropValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3616
3618
  if (typeUrlPrefix === void 0) {
@@ -3778,7 +3780,7 @@ var sesame = $root.sesame = (() => {
3778
3780
  return object;
3779
3781
  };
3780
3782
  PropertyDomain.prototype.toJSON = function toJSON() {
3781
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3783
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3782
3784
  };
3783
3785
  PropertyDomain.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3784
3786
  if (typeUrlPrefix === void 0) {
@@ -3886,7 +3888,7 @@ var sesame = $root.sesame = (() => {
3886
3888
  return object;
3887
3889
  };
3888
3890
  NameValue.prototype.toJSON = function toJSON() {
3889
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3891
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3890
3892
  };
3891
3893
  NameValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
3892
3894
  if (typeUrlPrefix === void 0) {
@@ -3994,7 +3996,7 @@ var sesame = $root.sesame = (() => {
3994
3996
  return object;
3995
3997
  };
3996
3998
  TransportMetadata.prototype.toJSON = function toJSON() {
3997
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3999
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
3998
4000
  };
3999
4001
  TransportMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4000
4002
  if (typeUrlPrefix === void 0) {
@@ -4102,7 +4104,7 @@ var sesame = $root.sesame = (() => {
4102
4104
  return object;
4103
4105
  };
4104
4106
  Callback.prototype.toJSON = function toJSON() {
4105
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4107
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
4106
4108
  };
4107
4109
  Callback.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4108
4110
  if (typeUrlPrefix === void 0) {
@@ -4300,7 +4302,7 @@ var sesame = $root.sesame = (() => {
4300
4302
  return object;
4301
4303
  };
4302
4304
  VideoProcessorParam.prototype.toJSON = function toJSON() {
4303
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4305
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
4304
4306
  };
4305
4307
  VideoProcessorParam.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4306
4308
  if (typeUrlPrefix === void 0) {
@@ -4476,7 +4478,7 @@ var sesame = $root.sesame = (() => {
4476
4478
  return object;
4477
4479
  };
4478
4480
  VideoProcessor.prototype.toJSON = function toJSON() {
4479
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4481
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
4480
4482
  };
4481
4483
  VideoProcessor.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4482
4484
  if (typeUrlPrefix === void 0) {
@@ -4841,7 +4843,7 @@ var sesame = $root.sesame = (() => {
4841
4843
  return object;
4842
4844
  };
4843
4845
  SourceCommonConfig.prototype.toJSON = function toJSON() {
4844
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4846
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
4845
4847
  };
4846
4848
  SourceCommonConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4847
4849
  if (typeUrlPrefix === void 0) {
@@ -4929,7 +4931,7 @@ var sesame = $root.sesame = (() => {
4929
4931
  return object;
4930
4932
  };
4931
4933
  FileSourceConfig.prototype.toJSON = function toJSON() {
4932
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4934
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
4933
4935
  };
4934
4936
  FileSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
4935
4937
  if (typeUrlPrefix === void 0) {
@@ -5065,7 +5067,7 @@ var sesame = $root.sesame = (() => {
5065
5067
  return object;
5066
5068
  };
5067
5069
  RecorderSourceConfig.prototype.toJSON = function toJSON() {
5068
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5070
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5069
5071
  };
5070
5072
  RecorderSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5071
5073
  if (typeUrlPrefix === void 0) {
@@ -5192,7 +5194,7 @@ var sesame = $root.sesame = (() => {
5192
5194
  return object;
5193
5195
  };
5194
5196
  BrowserSourceConfig.prototype.toJSON = function toJSON() {
5195
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5197
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5196
5198
  };
5197
5199
  BrowserSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5198
5200
  if (typeUrlPrefix === void 0) {
@@ -5335,7 +5337,7 @@ var sesame = $root.sesame = (() => {
5335
5337
  return object;
5336
5338
  };
5337
5339
  RTTSourceConfig.prototype.toJSON = function toJSON() {
5338
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5340
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5339
5341
  };
5340
5342
  RTTSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5341
5343
  if (typeUrlPrefix === void 0) {
@@ -5504,7 +5506,7 @@ var sesame = $root.sesame = (() => {
5504
5506
  return object;
5505
5507
  };
5506
5508
  DecklinkSourceConfig.prototype.toJSON = function toJSON() {
5507
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5509
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5508
5510
  };
5509
5511
  DecklinkSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5510
5512
  if (typeUrlPrefix === void 0) {
@@ -5568,7 +5570,7 @@ var sesame = $root.sesame = (() => {
5568
5570
  return {};
5569
5571
  };
5570
5572
  SignalGeneratorSourceConfig.prototype.toJSON = function toJSON() {
5571
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5573
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5572
5574
  };
5573
5575
  SignalGeneratorSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5574
5576
  if (typeUrlPrefix === void 0) {
@@ -5656,7 +5658,7 @@ var sesame = $root.sesame = (() => {
5656
5658
  return object;
5657
5659
  };
5658
5660
  SystemAudioSourceConfig.prototype.toJSON = function toJSON() {
5659
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5661
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5660
5662
  };
5661
5663
  SystemAudioSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5662
5664
  if (typeUrlPrefix === void 0) {
@@ -5764,7 +5766,7 @@ var sesame = $root.sesame = (() => {
5764
5766
  return object;
5765
5767
  };
5766
5768
  SrtSourceConfig.prototype.toJSON = function toJSON() {
5767
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5769
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5768
5770
  };
5769
5771
  SrtSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5770
5772
  if (typeUrlPrefix === void 0) {
@@ -5872,7 +5874,7 @@ var sesame = $root.sesame = (() => {
5872
5874
  return object;
5873
5875
  };
5874
5876
  WebsocketSourceConfig.prototype.toJSON = function toJSON() {
5875
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5877
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
5876
5878
  };
5877
5879
  WebsocketSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5878
5880
  if (typeUrlPrefix === void 0) {
@@ -6018,7 +6020,7 @@ var sesame = $root.sesame = (() => {
6018
6020
  return object;
6019
6021
  };
6020
6022
  MoqSourceConfig.prototype.toJSON = function toJSON() {
6021
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6023
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
6022
6024
  };
6023
6025
  MoqSourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6024
6026
  if (typeUrlPrefix === void 0) {
@@ -6414,7 +6416,7 @@ var sesame = $root.sesame = (() => {
6414
6416
  return object;
6415
6417
  };
6416
6418
  SourceConfig.prototype.toJSON = function toJSON() {
6417
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6419
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
6418
6420
  };
6419
6421
  SourceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6420
6422
  if (typeUrlPrefix === void 0) {
@@ -6526,7 +6528,7 @@ var sesame = $root.sesame = (() => {
6526
6528
  return object;
6527
6529
  };
6528
6530
  SourceAddRequest.prototype.toJSON = function toJSON() {
6529
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6531
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
6530
6532
  };
6531
6533
  SourceAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6532
6534
  if (typeUrlPrefix === void 0) {
@@ -6638,7 +6640,7 @@ var sesame = $root.sesame = (() => {
6638
6640
  return object;
6639
6641
  };
6640
6642
  SourceUpdateRequest.prototype.toJSON = function toJSON() {
6641
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6643
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
6642
6644
  };
6643
6645
  SourceUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6644
6646
  if (typeUrlPrefix === void 0) {
@@ -6726,7 +6728,7 @@ var sesame = $root.sesame = (() => {
6726
6728
  return object;
6727
6729
  };
6728
6730
  SourceRemoveRequest.prototype.toJSON = function toJSON() {
6729
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6731
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
6730
6732
  };
6731
6733
  SourceRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6732
6734
  if (typeUrlPrefix === void 0) {
@@ -7405,7 +7407,7 @@ var sesame = $root.sesame = (() => {
7405
7407
  return object;
7406
7408
  };
7407
7409
  SourceStatus.prototype.toJSON = function toJSON() {
7408
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7410
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
7409
7411
  };
7410
7412
  SourceStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7411
7413
  if (typeUrlPrefix === void 0) {
@@ -7517,7 +7519,7 @@ var sesame = $root.sesame = (() => {
7517
7519
  return object;
7518
7520
  };
7519
7521
  SourceMetadataSetRequest.prototype.toJSON = function toJSON() {
7520
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7522
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
7521
7523
  };
7522
7524
  SourceMetadataSetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7523
7525
  if (typeUrlPrefix === void 0) {
@@ -7629,7 +7631,7 @@ var sesame = $root.sesame = (() => {
7629
7631
  return object;
7630
7632
  };
7631
7633
  SourceMetadataEvent.prototype.toJSON = function toJSON() {
7632
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7634
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
7633
7635
  };
7634
7636
  SourceMetadataEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7635
7637
  if (typeUrlPrefix === void 0) {
@@ -7848,7 +7850,7 @@ var sesame = $root.sesame = (() => {
7848
7850
  return object;
7849
7851
  };
7850
7852
  SourceTransportCommand.prototype.toJSON = function toJSON() {
7851
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7853
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
7852
7854
  };
7853
7855
  SourceTransportCommand.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7854
7856
  if (typeUrlPrefix === void 0) {
@@ -8109,7 +8111,7 @@ var sesame = $root.sesame = (() => {
8109
8111
  return object;
8110
8112
  };
8111
8113
  LoadPlaylistRequest.prototype.toJSON = function toJSON() {
8112
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8114
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
8113
8115
  };
8114
8116
  LoadPlaylistRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8115
8117
  if (typeUrlPrefix === void 0) {
@@ -8197,7 +8199,7 @@ var sesame = $root.sesame = (() => {
8197
8199
  return object;
8198
8200
  };
8199
8201
  EjectPlaylistRequest.prototype.toJSON = function toJSON() {
8200
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8202
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
8201
8203
  };
8202
8204
  EjectPlaylistRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8203
8205
  if (typeUrlPrefix === void 0) {
@@ -8555,7 +8557,7 @@ var sesame = $root.sesame = (() => {
8555
8557
  return object;
8556
8558
  };
8557
8559
  RecorderClip.prototype.toJSON = function toJSON() {
8558
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8560
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
8559
8561
  };
8560
8562
  RecorderClip.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8561
8563
  if (typeUrlPrefix === void 0) {
@@ -8963,7 +8965,7 @@ var sesame = $root.sesame = (() => {
8963
8965
  return object;
8964
8966
  };
8965
8967
  PlaylistItem.prototype.toJSON = function toJSON() {
8966
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8968
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
8967
8969
  };
8968
8970
  PlaylistItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8969
8971
  if (typeUrlPrefix === void 0) {
@@ -9101,7 +9103,7 @@ var sesame = $root.sesame = (() => {
9101
9103
  return object;
9102
9104
  };
9103
9105
  RecorderClipRange.prototype.toJSON = function toJSON() {
9104
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9106
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9105
9107
  };
9106
9108
  RecorderClipRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9107
9109
  if (typeUrlPrefix === void 0) {
@@ -9165,7 +9167,7 @@ var sesame = $root.sesame = (() => {
9165
9167
  return {};
9166
9168
  };
9167
9169
  RecorderClipsGetRequest.prototype.toJSON = function toJSON() {
9168
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9170
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9169
9171
  };
9170
9172
  RecorderClipsGetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9171
9173
  if (typeUrlPrefix === void 0) {
@@ -9273,7 +9275,7 @@ var sesame = $root.sesame = (() => {
9273
9275
  return object;
9274
9276
  };
9275
9277
  RecorderClipsGetResponse.prototype.toJSON = function toJSON() {
9276
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9278
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9277
9279
  };
9278
9280
  RecorderClipsGetResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9279
9281
  if (typeUrlPrefix === void 0) {
@@ -9365,7 +9367,7 @@ var sesame = $root.sesame = (() => {
9365
9367
  return object;
9366
9368
  };
9367
9369
  RecorderClipAddRequest.prototype.toJSON = function toJSON() {
9368
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9370
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9369
9371
  };
9370
9372
  RecorderClipAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9371
9373
  if (typeUrlPrefix === void 0) {
@@ -9503,7 +9505,7 @@ var sesame = $root.sesame = (() => {
9503
9505
  return object;
9504
9506
  };
9505
9507
  RecorderClipCopyRequest.prototype.toJSON = function toJSON() {
9506
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9508
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9507
9509
  };
9508
9510
  RecorderClipCopyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9509
9511
  if (typeUrlPrefix === void 0) {
@@ -9606,7 +9608,7 @@ var sesame = $root.sesame = (() => {
9606
9608
  return object;
9607
9609
  };
9608
9610
  RecorderClipRemoveRequest.prototype.toJSON = function toJSON() {
9609
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9611
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9610
9612
  };
9611
9613
  RecorderClipRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9612
9614
  if (typeUrlPrefix === void 0) {
@@ -9784,7 +9786,7 @@ var sesame = $root.sesame = (() => {
9784
9786
  return object;
9785
9787
  };
9786
9788
  RecorderClipsClearRequest.prototype.toJSON = function toJSON() {
9787
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9789
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9788
9790
  };
9789
9791
  RecorderClipsClearRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9790
9792
  if (typeUrlPrefix === void 0) {
@@ -9876,7 +9878,7 @@ var sesame = $root.sesame = (() => {
9876
9878
  return object;
9877
9879
  };
9878
9880
  RecorderMetadataSetRequest.prototype.toJSON = function toJSON() {
9879
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9881
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
9880
9882
  };
9881
9883
  RecorderMetadataSetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9882
9884
  if (typeUrlPrefix === void 0) {
@@ -10033,7 +10035,7 @@ var sesame = $root.sesame = (() => {
10033
10035
  return object;
10034
10036
  };
10035
10037
  RecorderClipFlagSetRequest.prototype.toJSON = function toJSON() {
10036
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10038
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10037
10039
  };
10038
10040
  RecorderClipFlagSetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10039
10041
  if (typeUrlPrefix === void 0) {
@@ -10097,7 +10099,7 @@ var sesame = $root.sesame = (() => {
10097
10099
  return {};
10098
10100
  };
10099
10101
  RecorderClipsVerifyRequest.prototype.toJSON = function toJSON() {
10100
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10102
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10101
10103
  };
10102
10104
  RecorderClipsVerifyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10103
10105
  if (typeUrlPrefix === void 0) {
@@ -10200,7 +10202,7 @@ var sesame = $root.sesame = (() => {
10200
10202
  return object;
10201
10203
  };
10202
10204
  RecorderClipsVerifyResponse.prototype.toJSON = function toJSON() {
10203
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10205
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10204
10206
  };
10205
10207
  RecorderClipsVerifyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10206
10208
  if (typeUrlPrefix === void 0) {
@@ -10288,7 +10290,7 @@ var sesame = $root.sesame = (() => {
10288
10290
  return object;
10289
10291
  };
10290
10292
  RecorderLockedDurationSetRequest.prototype.toJSON = function toJSON() {
10291
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10293
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10292
10294
  };
10293
10295
  RecorderLockedDurationSetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10294
10296
  if (typeUrlPrefix === void 0) {
@@ -10352,7 +10354,7 @@ var sesame = $root.sesame = (() => {
10352
10354
  return {};
10353
10355
  };
10354
10356
  RecorderOkResponse.prototype.toJSON = function toJSON() {
10355
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10357
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10356
10358
  };
10357
10359
  RecorderOkResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10358
10360
  if (typeUrlPrefix === void 0) {
@@ -10714,7 +10716,7 @@ var sesame = $root.sesame = (() => {
10714
10716
  return object;
10715
10717
  };
10716
10718
  RecorderRequest.prototype.toJSON = function toJSON() {
10717
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10719
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10718
10720
  };
10719
10721
  RecorderRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10720
10722
  if (typeUrlPrefix === void 0) {
@@ -10876,7 +10878,7 @@ var sesame = $root.sesame = (() => {
10876
10878
  return object;
10877
10879
  };
10878
10880
  RecorderResponse.prototype.toJSON = function toJSON() {
10879
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10881
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10880
10882
  };
10881
10883
  RecorderResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10882
10884
  if (typeUrlPrefix === void 0) {
@@ -10964,7 +10966,7 @@ var sesame = $root.sesame = (() => {
10964
10966
  return object;
10965
10967
  };
10966
10968
  RecorderStatus.prototype.toJSON = function toJSON() {
10967
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10969
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
10968
10970
  };
10969
10971
  RecorderStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10970
10972
  if (typeUrlPrefix === void 0) {
@@ -11100,7 +11102,7 @@ var sesame = $root.sesame = (() => {
11100
11102
  return object;
11101
11103
  };
11102
11104
  RecorderEvent.prototype.toJSON = function toJSON() {
11103
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11105
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
11104
11106
  };
11105
11107
  RecorderEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11106
11108
  if (typeUrlPrefix === void 0) {
@@ -11250,7 +11252,7 @@ var sesame = $root.sesame = (() => {
11250
11252
  return object;
11251
11253
  };
11252
11254
  FrameTiming.prototype.toJSON = function toJSON() {
11253
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11255
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
11254
11256
  };
11255
11257
  FrameTiming.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11256
11258
  if (typeUrlPrefix === void 0) {
@@ -11555,7 +11557,7 @@ var sesame = $root.sesame = (() => {
11555
11557
  return object;
11556
11558
  };
11557
11559
  SRTReceiveStatistics.prototype.toJSON = function toJSON() {
11558
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11560
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
11559
11561
  };
11560
11562
  SRTReceiveStatistics.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11561
11563
  if (typeUrlPrefix === void 0) {
@@ -11879,7 +11881,7 @@ var sesame = $root.sesame = (() => {
11879
11881
  return object;
11880
11882
  };
11881
11883
  SRTSendStatistics.prototype.toJSON = function toJSON() {
11882
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11884
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
11883
11885
  };
11884
11886
  SRTSendStatistics.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11885
11887
  if (typeUrlPrefix === void 0) {
@@ -12051,7 +12053,7 @@ var sesame = $root.sesame = (() => {
12051
12053
  return object;
12052
12054
  };
12053
12055
  MemoryDomainStats.prototype.toJSON = function toJSON() {
12054
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12056
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
12055
12057
  };
12056
12058
  MemoryDomainStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12057
12059
  if (typeUrlPrefix === void 0) {
@@ -12550,7 +12552,7 @@ var sesame = $root.sesame = (() => {
12550
12552
  return object;
12551
12553
  };
12552
12554
  SystemStatus.prototype.toJSON = function toJSON() {
12553
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12555
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
12554
12556
  };
12555
12557
  SystemStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12556
12558
  if (typeUrlPrefix === void 0) {
@@ -12638,7 +12640,7 @@ var sesame = $root.sesame = (() => {
12638
12640
  return object;
12639
12641
  };
12640
12642
  CompositorStatus.prototype.toJSON = function toJSON() {
12641
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12643
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
12642
12644
  };
12643
12645
  CompositorStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12644
12646
  if (typeUrlPrefix === void 0) {
@@ -12807,7 +12809,7 @@ var sesame = $root.sesame = (() => {
12807
12809
  return object;
12808
12810
  };
12809
12811
  IODeviceItem.prototype.toJSON = function toJSON() {
12810
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12812
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
12811
12813
  };
12812
12814
  IODeviceItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12813
12815
  if (typeUrlPrefix === void 0) {
@@ -12915,7 +12917,7 @@ var sesame = $root.sesame = (() => {
12915
12917
  return object;
12916
12918
  };
12917
12919
  IODeviceListResponse.prototype.toJSON = function toJSON() {
12918
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12920
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
12919
12921
  };
12920
12922
  IODeviceListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12921
12923
  if (typeUrlPrefix === void 0) {
@@ -13251,7 +13253,7 @@ var sesame = $root.sesame = (() => {
13251
13253
  return object;
13252
13254
  };
13253
13255
  Status.prototype.toJSON = function toJSON() {
13254
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13256
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
13255
13257
  };
13256
13258
  Status.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
13257
13259
  if (typeUrlPrefix === void 0) {
@@ -13339,7 +13341,7 @@ var sesame = $root.sesame = (() => {
13339
13341
  return object;
13340
13342
  };
13341
13343
  ErrorEvent.prototype.toJSON = function toJSON() {
13342
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13344
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
13343
13345
  };
13344
13346
  ErrorEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
13345
13347
  if (typeUrlPrefix === void 0) {
@@ -13726,7 +13728,7 @@ var sesame = $root.sesame = (() => {
13726
13728
  return object;
13727
13729
  };
13728
13730
  TransportEvent.prototype.toJSON = function toJSON() {
13729
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13731
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
13730
13732
  };
13731
13733
  TransportEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
13732
13734
  if (typeUrlPrefix === void 0) {
@@ -13978,7 +13980,7 @@ var sesame = $root.sesame = (() => {
13978
13980
  return object;
13979
13981
  };
13980
13982
  Event2.prototype.toJSON = function toJSON() {
13981
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13983
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
13982
13984
  };
13983
13985
  Event2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
13984
13986
  if (typeUrlPrefix === void 0) {
@@ -14168,7 +14170,7 @@ var sesame = $root.sesame = (() => {
14168
14170
  return object;
14169
14171
  };
14170
14172
  SubscriptionRequest.prototype.toJSON = function toJSON() {
14171
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14173
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
14172
14174
  };
14173
14175
  SubscriptionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14174
14176
  if (typeUrlPrefix === void 0) {
@@ -14473,7 +14475,7 @@ var sesame = $root.sesame = (() => {
14473
14475
  return object;
14474
14476
  };
14475
14477
  EncoderConfig.prototype.toJSON = function toJSON() {
14476
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14478
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
14477
14479
  };
14478
14480
  EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14479
14481
  if (typeUrlPrefix === void 0) {
@@ -14633,7 +14635,7 @@ var sesame = $root.sesame = (() => {
14633
14635
  return object;
14634
14636
  };
14635
14637
  DecklinkOutputConfig.prototype.toJSON = function toJSON() {
14636
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14638
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
14637
14639
  };
14638
14640
  DecklinkOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14639
14641
  if (typeUrlPrefix === void 0) {
@@ -14745,7 +14747,7 @@ var sesame = $root.sesame = (() => {
14745
14747
  return object;
14746
14748
  };
14747
14749
  EncodedWebSocketOutputConfig.prototype.toJSON = function toJSON() {
14748
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14750
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
14749
14751
  };
14750
14752
  EncodedWebSocketOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14751
14753
  if (typeUrlPrefix === void 0) {
@@ -14937,7 +14939,7 @@ var sesame = $root.sesame = (() => {
14937
14939
  return object;
14938
14940
  };
14939
14941
  EncodedRecorderOutputConfig.prototype.toJSON = function toJSON() {
14940
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14942
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
14941
14943
  };
14942
14944
  EncodedRecorderOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14943
14945
  if (typeUrlPrefix === void 0) {
@@ -15199,7 +15201,7 @@ var sesame = $root.sesame = (() => {
15199
15201
  return object;
15200
15202
  };
15201
15203
  EncodedSuperSlowMoRecorderOutputConfig.prototype.toJSON = function toJSON() {
15202
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15204
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
15203
15205
  };
15204
15206
  EncodedSuperSlowMoRecorderOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15205
15207
  if (typeUrlPrefix === void 0) {
@@ -15311,7 +15313,7 @@ var sesame = $root.sesame = (() => {
15311
15313
  return object;
15312
15314
  };
15313
15315
  EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
15314
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15316
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
15315
15317
  };
15316
15318
  EncodedSrtOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15317
15319
  if (typeUrlPrefix === void 0) {
@@ -15461,7 +15463,7 @@ var sesame = $root.sesame = (() => {
15461
15463
  return object;
15462
15464
  };
15463
15465
  EncodedMoqOutputConfig.prototype.toJSON = function toJSON() {
15464
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15466
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
15465
15467
  };
15466
15468
  EncodedMoqOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15467
15469
  if (typeUrlPrefix === void 0) {
@@ -15549,7 +15551,7 @@ var sesame = $root.sesame = (() => {
15549
15551
  return object;
15550
15552
  };
15551
15553
  SystemAudioOutputConfig.prototype.toJSON = function toJSON() {
15552
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15554
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
15553
15555
  };
15554
15556
  SystemAudioOutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15555
15557
  if (typeUrlPrefix === void 0) {
@@ -15925,7 +15927,7 @@ var sesame = $root.sesame = (() => {
15925
15927
  return object;
15926
15928
  };
15927
15929
  OutputAddRequest.prototype.toJSON = function toJSON() {
15928
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15930
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
15929
15931
  };
15930
15932
  OutputAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15931
15933
  if (typeUrlPrefix === void 0) {
@@ -16301,7 +16303,7 @@ var sesame = $root.sesame = (() => {
16301
16303
  return object;
16302
16304
  };
16303
16305
  OutputUpdateRequest.prototype.toJSON = function toJSON() {
16304
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16306
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
16305
16307
  };
16306
16308
  OutputUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16307
16309
  if (typeUrlPrefix === void 0) {
@@ -16389,7 +16391,7 @@ var sesame = $root.sesame = (() => {
16389
16391
  return object;
16390
16392
  };
16391
16393
  OutputRemoveRequest.prototype.toJSON = function toJSON() {
16392
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16394
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
16393
16395
  };
16394
16396
  OutputRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16395
16397
  if (typeUrlPrefix === void 0) {
@@ -16477,7 +16479,7 @@ var sesame = $root.sesame = (() => {
16477
16479
  return object;
16478
16480
  };
16479
16481
  KeyframeRequest.prototype.toJSON = function toJSON() {
16480
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16482
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
16481
16483
  };
16482
16484
  KeyframeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16483
16485
  if (typeUrlPrefix === void 0) {
@@ -16793,7 +16795,7 @@ var sesame = $root.sesame = (() => {
16793
16795
  return object;
16794
16796
  };
16795
16797
  OutputStatus.prototype.toJSON = function toJSON() {
16796
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16798
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
16797
16799
  };
16798
16800
  OutputStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16799
16801
  if (typeUrlPrefix === void 0) {
@@ -16982,7 +16984,7 @@ var sesame = $root.sesame = (() => {
16982
16984
  return object;
16983
16985
  };
16984
16986
  KeyFrame.prototype.toJSON = function toJSON() {
16985
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16987
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
16986
16988
  };
16987
16989
  KeyFrame.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16988
16990
  if (typeUrlPrefix === void 0) {
@@ -17128,7 +17130,7 @@ var sesame = $root.sesame = (() => {
17128
17130
  return object;
17129
17131
  };
17130
17132
  CompositorAddRequest.prototype.toJSON = function toJSON() {
17131
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17133
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17132
17134
  };
17133
17135
  CompositorAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17134
17136
  if (typeUrlPrefix === void 0) {
@@ -17216,7 +17218,7 @@ var sesame = $root.sesame = (() => {
17216
17218
  return object;
17217
17219
  };
17218
17220
  CompositorRemoveRequest.prototype.toJSON = function toJSON() {
17219
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17221
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17220
17222
  };
17221
17223
  CompositorRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17222
17224
  if (typeUrlPrefix === void 0) {
@@ -17304,7 +17306,7 @@ var sesame = $root.sesame = (() => {
17304
17306
  return object;
17305
17307
  };
17306
17308
  CompositorClearRequest.prototype.toJSON = function toJSON() {
17307
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17309
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17308
17310
  };
17309
17311
  CompositorClearRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17310
17312
  if (typeUrlPrefix === void 0) {
@@ -17498,7 +17500,7 @@ var sesame = $root.sesame = (() => {
17498
17500
  return object;
17499
17501
  };
17500
17502
  NodeAddRequest.prototype.toJSON = function toJSON() {
17501
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17503
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17502
17504
  };
17503
17505
  NodeAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17504
17506
  if (typeUrlPrefix === void 0) {
@@ -17606,7 +17608,7 @@ var sesame = $root.sesame = (() => {
17606
17608
  return object;
17607
17609
  };
17608
17610
  NodeRemoveRequest.prototype.toJSON = function toJSON() {
17609
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17611
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17610
17612
  };
17611
17613
  NodeRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17612
17614
  if (typeUrlPrefix === void 0) {
@@ -17760,7 +17762,7 @@ var sesame = $root.sesame = (() => {
17760
17762
  return object;
17761
17763
  };
17762
17764
  PropertySetRequest.prototype.toJSON = function toJSON() {
17763
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17765
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17764
17766
  };
17765
17767
  PropertySetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17766
17768
  if (typeUrlPrefix === void 0) {
@@ -18025,7 +18027,7 @@ var sesame = $root.sesame = (() => {
18025
18027
  return object;
18026
18028
  };
18027
18029
  PropertyAnimateRequest.prototype.toJSON = function toJSON() {
18028
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18030
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
18029
18031
  };
18030
18032
  PropertyAnimateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18031
18033
  if (typeUrlPrefix === void 0) {
@@ -18203,7 +18205,7 @@ var sesame = $root.sesame = (() => {
18203
18205
  return object;
18204
18206
  };
18205
18207
  TimingInfo.prototype.toJSON = function toJSON() {
18206
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18208
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
18207
18209
  };
18208
18210
  TimingInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18209
18211
  if (typeUrlPrefix === void 0) {
@@ -18453,7 +18455,7 @@ var sesame = $root.sesame = (() => {
18453
18455
  return object;
18454
18456
  };
18455
18457
  JobStatusResponse.prototype.toJSON = function toJSON() {
18456
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18458
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
18457
18459
  };
18458
18460
  JobStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18459
18461
  if (typeUrlPrefix === void 0) {
@@ -18561,7 +18563,7 @@ var sesame = $root.sesame = (() => {
18561
18563
  return object;
18562
18564
  };
18563
18565
  JobListResponse.prototype.toJSON = function toJSON() {
18564
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18566
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
18565
18567
  };
18566
18568
  JobListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18567
18569
  if (typeUrlPrefix === void 0) {
@@ -18805,7 +18807,7 @@ var sesame = $root.sesame = (() => {
18805
18807
  return object;
18806
18808
  };
18807
18809
  JobEvent.prototype.toJSON = function toJSON() {
18808
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18810
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
18809
18811
  };
18810
18812
  JobEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18811
18813
  if (typeUrlPrefix === void 0) {
@@ -19492,7 +19494,7 @@ var sesame = $root.sesame = (() => {
19492
19494
  return object;
19493
19495
  };
19494
19496
  ExportConfiguration.prototype.toJSON = function toJSON() {
19495
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19497
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
19496
19498
  };
19497
19499
  ExportConfiguration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19498
19500
  if (typeUrlPrefix === void 0) {
@@ -19624,7 +19626,7 @@ var sesame = $root.sesame = (() => {
19624
19626
  return object;
19625
19627
  };
19626
19628
  ExportStartRequest.prototype.toJSON = function toJSON() {
19627
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19629
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
19628
19630
  };
19629
19631
  ExportStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19630
19632
  if (typeUrlPrefix === void 0) {
@@ -19712,7 +19714,7 @@ var sesame = $root.sesame = (() => {
19712
19714
  return object;
19713
19715
  };
19714
19716
  ExportAbortRequest.prototype.toJSON = function toJSON() {
19715
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19717
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
19716
19718
  };
19717
19719
  ExportAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19718
19720
  if (typeUrlPrefix === void 0) {
@@ -19800,7 +19802,7 @@ var sesame = $root.sesame = (() => {
19800
19802
  return object;
19801
19803
  };
19802
19804
  ExportStatusRequest.prototype.toJSON = function toJSON() {
19803
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19805
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
19804
19806
  };
19805
19807
  ExportStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19806
19808
  if (typeUrlPrefix === void 0) {
@@ -19864,7 +19866,7 @@ var sesame = $root.sesame = (() => {
19864
19866
  return {};
19865
19867
  };
19866
19868
  ExportListRequest.prototype.toJSON = function toJSON() {
19867
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19869
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
19868
19870
  };
19869
19871
  ExportListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19870
19872
  if (typeUrlPrefix === void 0) {
@@ -20087,7 +20089,7 @@ var sesame = $root.sesame = (() => {
20087
20089
  return object;
20088
20090
  };
20089
20091
  ImportConfiguration.prototype.toJSON = function toJSON() {
20090
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20092
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20091
20093
  };
20092
20094
  ImportConfiguration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20093
20095
  if (typeUrlPrefix === void 0) {
@@ -20179,7 +20181,7 @@ var sesame = $root.sesame = (() => {
20179
20181
  return object;
20180
20182
  };
20181
20183
  ImportStartRequest.prototype.toJSON = function toJSON() {
20182
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20184
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20183
20185
  };
20184
20186
  ImportStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20185
20187
  if (typeUrlPrefix === void 0) {
@@ -20267,7 +20269,7 @@ var sesame = $root.sesame = (() => {
20267
20269
  return object;
20268
20270
  };
20269
20271
  ImportAbortRequest.prototype.toJSON = function toJSON() {
20270
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20272
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20271
20273
  };
20272
20274
  ImportAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20273
20275
  if (typeUrlPrefix === void 0) {
@@ -20355,7 +20357,7 @@ var sesame = $root.sesame = (() => {
20355
20357
  return object;
20356
20358
  };
20357
20359
  ImportStatusRequest.prototype.toJSON = function toJSON() {
20358
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20360
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20359
20361
  };
20360
20362
  ImportStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20361
20363
  if (typeUrlPrefix === void 0) {
@@ -20419,7 +20421,7 @@ var sesame = $root.sesame = (() => {
20419
20421
  return {};
20420
20422
  };
20421
20423
  ImportListRequest.prototype.toJSON = function toJSON() {
20422
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20424
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20423
20425
  };
20424
20426
  ImportListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20425
20427
  if (typeUrlPrefix === void 0) {
@@ -20432,8 +20434,8 @@ var sesame = $root.sesame = (() => {
20432
20434
  return jobs;
20433
20435
  }();
20434
20436
  v1.rpc = function() {
20435
- const rpc2 = {};
20436
- rpc2.Message = function() {
20437
+ const rpc = {};
20438
+ rpc.Message = function() {
20437
20439
  function Message2(properties) {
20438
20440
  if (properties) {
20439
20441
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -20585,7 +20587,7 @@ var sesame = $root.sesame = (() => {
20585
20587
  return object;
20586
20588
  };
20587
20589
  Message2.prototype.toJSON = function toJSON() {
20588
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20590
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20589
20591
  };
20590
20592
  Message2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20591
20593
  if (typeUrlPrefix === void 0) {
@@ -20595,7 +20597,7 @@ var sesame = $root.sesame = (() => {
20595
20597
  };
20596
20598
  return Message2;
20597
20599
  }();
20598
- rpc2.Request = function() {
20600
+ rpc.Request = function() {
20599
20601
  function Request2(properties) {
20600
20602
  if (properties) {
20601
20603
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -20722,7 +20724,7 @@ var sesame = $root.sesame = (() => {
20722
20724
  return object;
20723
20725
  };
20724
20726
  Request2.prototype.toJSON = function toJSON() {
20725
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20727
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20726
20728
  };
20727
20729
  Request2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20728
20730
  if (typeUrlPrefix === void 0) {
@@ -20732,7 +20734,7 @@ var sesame = $root.sesame = (() => {
20732
20734
  };
20733
20735
  return Request2;
20734
20736
  }();
20735
- rpc2.Response = function() {
20737
+ rpc.Response = function() {
20736
20738
  function Response2(properties) {
20737
20739
  if (properties) {
20738
20740
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -20878,7 +20880,7 @@ var sesame = $root.sesame = (() => {
20878
20880
  return object;
20879
20881
  };
20880
20882
  Response2.prototype.toJSON = function toJSON() {
20881
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20883
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
20882
20884
  };
20883
20885
  Response2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20884
20886
  if (typeUrlPrefix === void 0) {
@@ -20888,7 +20890,7 @@ var sesame = $root.sesame = (() => {
20888
20890
  };
20889
20891
  return Response2;
20890
20892
  }();
20891
- rpc2.Event = function() {
20893
+ rpc.Event = function() {
20892
20894
  function Event2(properties) {
20893
20895
  if (properties) {
20894
20896
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -21039,7 +21041,7 @@ var sesame = $root.sesame = (() => {
21039
21041
  return object;
21040
21042
  };
21041
21043
  Event2.prototype.toJSON = function toJSON() {
21042
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
21044
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
21043
21045
  };
21044
21046
  Event2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
21045
21047
  if (typeUrlPrefix === void 0) {
@@ -21049,11 +21051,11 @@ var sesame = $root.sesame = (() => {
21049
21051
  };
21050
21052
  return Event2;
21051
21053
  }();
21052
- rpc2.SesameAPIService = function() {
21054
+ rpc.SesameAPIService = function() {
21053
21055
  function SesameAPIService(rpcImpl, requestDelimited, responseDelimited) {
21054
- $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
21056
+ import_minimal.default.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
21055
21057
  }
21056
- (SesameAPIService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SesameAPIService;
21058
+ (SesameAPIService.prototype = Object.create(import_minimal.default.rpc.Service.prototype)).constructor = SesameAPIService;
21057
21059
  SesameAPIService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
21058
21060
  return new this(rpcImpl, requestDelimited, responseDelimited);
21059
21061
  };
@@ -21107,7 +21109,603 @@ var sesame = $root.sesame = (() => {
21107
21109
  }, "name", { value: "RequestIODeviceList" });
21108
21110
  return SesameAPIService;
21109
21111
  }();
21110
- return rpc2;
21112
+ return rpc;
21113
+ }();
21114
+ v1.wire = function() {
21115
+ const wire = {};
21116
+ wire.FrameType = function() {
21117
+ const valuesById = {}, values = Object.create(valuesById);
21118
+ values[valuesById[0] = "FRAME_TYPE_UNSPECIFIED"] = 0;
21119
+ values[valuesById[1] = "FRAME_TYPE_RPC"] = 1;
21120
+ values[valuesById[2] = "FRAME_TYPE_VIDEO"] = 2;
21121
+ values[valuesById[3] = "FRAME_TYPE_AUDIO"] = 3;
21122
+ values[valuesById[4] = "FRAME_TYPE_MUXED"] = 4;
21123
+ values[valuesById[5] = "FRAME_TYPE_DECODER_DATA"] = 5;
21124
+ return values;
21125
+ }();
21126
+ wire.CodecType = function() {
21127
+ const valuesById = {}, values = Object.create(valuesById);
21128
+ values[valuesById[0] = "CODEC_TYPE_UNSPECIFIED"] = 0;
21129
+ values[valuesById[1] = "CODEC_TYPE_VIDEO_VP8"] = 1;
21130
+ values[valuesById[2] = "CODEC_TYPE_VIDEO_VP9"] = 2;
21131
+ values[valuesById[3] = "CODEC_TYPE_VIDEO_AVC"] = 3;
21132
+ values[valuesById[4] = "CODEC_TYPE_VIDEO_HEVC"] = 4;
21133
+ values[valuesById[5] = "CODEC_TYPE_VIDEO_AV1"] = 5;
21134
+ values[valuesById[64] = "CODEC_TYPE_AUDIO_OPUS"] = 64;
21135
+ values[valuesById[65] = "CODEC_TYPE_AUDIO_AAC"] = 65;
21136
+ values[valuesById[66] = "CODEC_TYPE_AUDIO_PCM"] = 66;
21137
+ return values;
21138
+ }();
21139
+ wire.MediaCodecData = function() {
21140
+ function MediaCodecData2(properties) {
21141
+ if (properties) {
21142
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
21143
+ if (properties[keys[i]] != null)
21144
+ this[keys[i]] = properties[keys[i]];
21145
+ }
21146
+ }
21147
+ MediaCodecData2.prototype.codecType = 0;
21148
+ MediaCodecData2.prototype.sampleRate = 0;
21149
+ MediaCodecData2.prototype.timebaseNum = 0;
21150
+ MediaCodecData2.prototype.timebaseDen = 0;
21151
+ MediaCodecData2.prototype.codecProfile = 0;
21152
+ MediaCodecData2.prototype.codecLevel = 0;
21153
+ MediaCodecData2.prototype.width = 0;
21154
+ MediaCodecData2.prototype.height = 0;
21155
+ MediaCodecData2.prototype.channels = 0;
21156
+ MediaCodecData2.prototype.bitDepth = 0;
21157
+ MediaCodecData2.create = function create(properties) {
21158
+ return new MediaCodecData2(properties);
21159
+ };
21160
+ MediaCodecData2.encode = function encode(message, writer) {
21161
+ if (!writer)
21162
+ writer = $Writer.create();
21163
+ if (message.codecType != null && Object.hasOwnProperty.call(message, "codecType"))
21164
+ writer.uint32(
21165
+ /* id 1, wireType 0 =*/
21166
+ 8
21167
+ ).int32(message.codecType);
21168
+ if (message.sampleRate != null && Object.hasOwnProperty.call(message, "sampleRate"))
21169
+ writer.uint32(
21170
+ /* id 2, wireType 0 =*/
21171
+ 16
21172
+ ).uint32(message.sampleRate);
21173
+ if (message.timebaseNum != null && Object.hasOwnProperty.call(message, "timebaseNum"))
21174
+ writer.uint32(
21175
+ /* id 3, wireType 0 =*/
21176
+ 24
21177
+ ).uint32(message.timebaseNum);
21178
+ if (message.timebaseDen != null && Object.hasOwnProperty.call(message, "timebaseDen"))
21179
+ writer.uint32(
21180
+ /* id 4, wireType 0 =*/
21181
+ 32
21182
+ ).uint32(message.timebaseDen);
21183
+ if (message.codecProfile != null && Object.hasOwnProperty.call(message, "codecProfile"))
21184
+ writer.uint32(
21185
+ /* id 5, wireType 0 =*/
21186
+ 40
21187
+ ).uint32(message.codecProfile);
21188
+ if (message.codecLevel != null && Object.hasOwnProperty.call(message, "codecLevel"))
21189
+ writer.uint32(
21190
+ /* id 6, wireType 0 =*/
21191
+ 48
21192
+ ).uint32(message.codecLevel);
21193
+ if (message.width != null && Object.hasOwnProperty.call(message, "width"))
21194
+ writer.uint32(
21195
+ /* id 7, wireType 0 =*/
21196
+ 56
21197
+ ).uint32(message.width);
21198
+ if (message.height != null && Object.hasOwnProperty.call(message, "height"))
21199
+ writer.uint32(
21200
+ /* id 8, wireType 0 =*/
21201
+ 64
21202
+ ).uint32(message.height);
21203
+ if (message.channels != null && Object.hasOwnProperty.call(message, "channels"))
21204
+ writer.uint32(
21205
+ /* id 9, wireType 0 =*/
21206
+ 72
21207
+ ).uint32(message.channels);
21208
+ if (message.bitDepth != null && Object.hasOwnProperty.call(message, "bitDepth"))
21209
+ writer.uint32(
21210
+ /* id 10, wireType 0 =*/
21211
+ 80
21212
+ ).uint32(message.bitDepth);
21213
+ return writer;
21214
+ };
21215
+ MediaCodecData2.encodeDelimited = function encodeDelimited(message, writer) {
21216
+ return this.encode(message, writer).ldelim();
21217
+ };
21218
+ MediaCodecData2.decode = function decode(reader, length, error) {
21219
+ if (!(reader instanceof $Reader))
21220
+ reader = $Reader.create(reader);
21221
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.wire.MediaCodecData();
21222
+ while (reader.pos < end) {
21223
+ let tag = reader.uint32();
21224
+ if (tag === error)
21225
+ break;
21226
+ switch (tag >>> 3) {
21227
+ case 1: {
21228
+ message.codecType = reader.int32();
21229
+ break;
21230
+ }
21231
+ case 2: {
21232
+ message.sampleRate = reader.uint32();
21233
+ break;
21234
+ }
21235
+ case 3: {
21236
+ message.timebaseNum = reader.uint32();
21237
+ break;
21238
+ }
21239
+ case 4: {
21240
+ message.timebaseDen = reader.uint32();
21241
+ break;
21242
+ }
21243
+ case 5: {
21244
+ message.codecProfile = reader.uint32();
21245
+ break;
21246
+ }
21247
+ case 6: {
21248
+ message.codecLevel = reader.uint32();
21249
+ break;
21250
+ }
21251
+ case 7: {
21252
+ message.width = reader.uint32();
21253
+ break;
21254
+ }
21255
+ case 8: {
21256
+ message.height = reader.uint32();
21257
+ break;
21258
+ }
21259
+ case 9: {
21260
+ message.channels = reader.uint32();
21261
+ break;
21262
+ }
21263
+ case 10: {
21264
+ message.bitDepth = reader.uint32();
21265
+ break;
21266
+ }
21267
+ default:
21268
+ reader.skipType(tag & 7);
21269
+ break;
21270
+ }
21271
+ }
21272
+ return message;
21273
+ };
21274
+ MediaCodecData2.decodeDelimited = function decodeDelimited(reader) {
21275
+ if (!(reader instanceof $Reader))
21276
+ reader = new $Reader(reader);
21277
+ return this.decode(reader, reader.uint32());
21278
+ };
21279
+ MediaCodecData2.verify = function verify(message) {
21280
+ if (typeof message !== "object" || message === null)
21281
+ return "object expected";
21282
+ if (message.codecType != null && message.hasOwnProperty("codecType"))
21283
+ switch (message.codecType) {
21284
+ default:
21285
+ return "codecType: enum value expected";
21286
+ case 0:
21287
+ case 1:
21288
+ case 2:
21289
+ case 3:
21290
+ case 4:
21291
+ case 5:
21292
+ case 64:
21293
+ case 65:
21294
+ case 66:
21295
+ break;
21296
+ }
21297
+ if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) {
21298
+ if (!$util.isInteger(message.sampleRate))
21299
+ return "sampleRate: integer expected";
21300
+ }
21301
+ if (message.timebaseNum != null && message.hasOwnProperty("timebaseNum")) {
21302
+ if (!$util.isInteger(message.timebaseNum))
21303
+ return "timebaseNum: integer expected";
21304
+ }
21305
+ if (message.timebaseDen != null && message.hasOwnProperty("timebaseDen")) {
21306
+ if (!$util.isInteger(message.timebaseDen))
21307
+ return "timebaseDen: integer expected";
21308
+ }
21309
+ if (message.codecProfile != null && message.hasOwnProperty("codecProfile")) {
21310
+ if (!$util.isInteger(message.codecProfile))
21311
+ return "codecProfile: integer expected";
21312
+ }
21313
+ if (message.codecLevel != null && message.hasOwnProperty("codecLevel")) {
21314
+ if (!$util.isInteger(message.codecLevel))
21315
+ return "codecLevel: integer expected";
21316
+ }
21317
+ if (message.width != null && message.hasOwnProperty("width")) {
21318
+ if (!$util.isInteger(message.width))
21319
+ return "width: integer expected";
21320
+ }
21321
+ if (message.height != null && message.hasOwnProperty("height")) {
21322
+ if (!$util.isInteger(message.height))
21323
+ return "height: integer expected";
21324
+ }
21325
+ if (message.channels != null && message.hasOwnProperty("channels")) {
21326
+ if (!$util.isInteger(message.channels))
21327
+ return "channels: integer expected";
21328
+ }
21329
+ if (message.bitDepth != null && message.hasOwnProperty("bitDepth")) {
21330
+ if (!$util.isInteger(message.bitDepth))
21331
+ return "bitDepth: integer expected";
21332
+ }
21333
+ return null;
21334
+ };
21335
+ MediaCodecData2.fromObject = function fromObject(object) {
21336
+ if (object instanceof $root.sesame.v1.wire.MediaCodecData)
21337
+ return object;
21338
+ let message = new $root.sesame.v1.wire.MediaCodecData();
21339
+ switch (object.codecType) {
21340
+ default:
21341
+ if (typeof object.codecType === "number") {
21342
+ message.codecType = object.codecType;
21343
+ break;
21344
+ }
21345
+ break;
21346
+ case "CODEC_TYPE_UNSPECIFIED":
21347
+ case 0:
21348
+ message.codecType = 0;
21349
+ break;
21350
+ case "CODEC_TYPE_VIDEO_VP8":
21351
+ case 1:
21352
+ message.codecType = 1;
21353
+ break;
21354
+ case "CODEC_TYPE_VIDEO_VP9":
21355
+ case 2:
21356
+ message.codecType = 2;
21357
+ break;
21358
+ case "CODEC_TYPE_VIDEO_AVC":
21359
+ case 3:
21360
+ message.codecType = 3;
21361
+ break;
21362
+ case "CODEC_TYPE_VIDEO_HEVC":
21363
+ case 4:
21364
+ message.codecType = 4;
21365
+ break;
21366
+ case "CODEC_TYPE_VIDEO_AV1":
21367
+ case 5:
21368
+ message.codecType = 5;
21369
+ break;
21370
+ case "CODEC_TYPE_AUDIO_OPUS":
21371
+ case 64:
21372
+ message.codecType = 64;
21373
+ break;
21374
+ case "CODEC_TYPE_AUDIO_AAC":
21375
+ case 65:
21376
+ message.codecType = 65;
21377
+ break;
21378
+ case "CODEC_TYPE_AUDIO_PCM":
21379
+ case 66:
21380
+ message.codecType = 66;
21381
+ break;
21382
+ }
21383
+ if (object.sampleRate != null)
21384
+ message.sampleRate = object.sampleRate >>> 0;
21385
+ if (object.timebaseNum != null)
21386
+ message.timebaseNum = object.timebaseNum >>> 0;
21387
+ if (object.timebaseDen != null)
21388
+ message.timebaseDen = object.timebaseDen >>> 0;
21389
+ if (object.codecProfile != null)
21390
+ message.codecProfile = object.codecProfile >>> 0;
21391
+ if (object.codecLevel != null)
21392
+ message.codecLevel = object.codecLevel >>> 0;
21393
+ if (object.width != null)
21394
+ message.width = object.width >>> 0;
21395
+ if (object.height != null)
21396
+ message.height = object.height >>> 0;
21397
+ if (object.channels != null)
21398
+ message.channels = object.channels >>> 0;
21399
+ if (object.bitDepth != null)
21400
+ message.bitDepth = object.bitDepth >>> 0;
21401
+ return message;
21402
+ };
21403
+ MediaCodecData2.toObject = function toObject(message, options) {
21404
+ if (!options)
21405
+ options = {};
21406
+ let object = {};
21407
+ if (options.defaults) {
21408
+ object.codecType = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
21409
+ object.sampleRate = 0;
21410
+ object.timebaseNum = 0;
21411
+ object.timebaseDen = 0;
21412
+ object.codecProfile = 0;
21413
+ object.codecLevel = 0;
21414
+ object.width = 0;
21415
+ object.height = 0;
21416
+ object.channels = 0;
21417
+ object.bitDepth = 0;
21418
+ }
21419
+ if (message.codecType != null && message.hasOwnProperty("codecType"))
21420
+ object.codecType = options.enums === String ? $root.sesame.v1.wire.CodecType[message.codecType] === void 0 ? message.codecType : $root.sesame.v1.wire.CodecType[message.codecType] : message.codecType;
21421
+ if (message.sampleRate != null && message.hasOwnProperty("sampleRate"))
21422
+ object.sampleRate = message.sampleRate;
21423
+ if (message.timebaseNum != null && message.hasOwnProperty("timebaseNum"))
21424
+ object.timebaseNum = message.timebaseNum;
21425
+ if (message.timebaseDen != null && message.hasOwnProperty("timebaseDen"))
21426
+ object.timebaseDen = message.timebaseDen;
21427
+ if (message.codecProfile != null && message.hasOwnProperty("codecProfile"))
21428
+ object.codecProfile = message.codecProfile;
21429
+ if (message.codecLevel != null && message.hasOwnProperty("codecLevel"))
21430
+ object.codecLevel = message.codecLevel;
21431
+ if (message.width != null && message.hasOwnProperty("width"))
21432
+ object.width = message.width;
21433
+ if (message.height != null && message.hasOwnProperty("height"))
21434
+ object.height = message.height;
21435
+ if (message.channels != null && message.hasOwnProperty("channels"))
21436
+ object.channels = message.channels;
21437
+ if (message.bitDepth != null && message.hasOwnProperty("bitDepth"))
21438
+ object.bitDepth = message.bitDepth;
21439
+ return object;
21440
+ };
21441
+ MediaCodecData2.prototype.toJSON = function toJSON() {
21442
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
21443
+ };
21444
+ MediaCodecData2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
21445
+ if (typeUrlPrefix === void 0) {
21446
+ typeUrlPrefix = "type.googleapis.com";
21447
+ }
21448
+ return typeUrlPrefix + "/sesame.v1.wire.MediaCodecData";
21449
+ };
21450
+ return MediaCodecData2;
21451
+ }();
21452
+ wire.FrameHeader = function() {
21453
+ function FrameHeader2(properties) {
21454
+ if (properties) {
21455
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
21456
+ if (properties[keys[i]] != null)
21457
+ this[keys[i]] = properties[keys[i]];
21458
+ }
21459
+ }
21460
+ FrameHeader2.prototype.type = 0;
21461
+ FrameHeader2.prototype.pts = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
21462
+ FrameHeader2.prototype.id = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
21463
+ FrameHeader2.prototype.keyframe = false;
21464
+ FrameHeader2.prototype.codecData = null;
21465
+ FrameHeader2.prototype.routingMetadata = "";
21466
+ FrameHeader2.create = function create(properties) {
21467
+ return new FrameHeader2(properties);
21468
+ };
21469
+ FrameHeader2.encode = function encode(message, writer) {
21470
+ if (!writer)
21471
+ writer = $Writer.create();
21472
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
21473
+ writer.uint32(
21474
+ /* id 1, wireType 0 =*/
21475
+ 8
21476
+ ).int32(message.type);
21477
+ if (message.pts != null && Object.hasOwnProperty.call(message, "pts"))
21478
+ writer.uint32(
21479
+ /* id 2, wireType 0 =*/
21480
+ 16
21481
+ ).uint64(message.pts);
21482
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
21483
+ writer.uint32(
21484
+ /* id 3, wireType 0 =*/
21485
+ 24
21486
+ ).uint64(message.id);
21487
+ if (message.keyframe != null && Object.hasOwnProperty.call(message, "keyframe"))
21488
+ writer.uint32(
21489
+ /* id 4, wireType 0 =*/
21490
+ 32
21491
+ ).bool(message.keyframe);
21492
+ if (message.codecData != null && Object.hasOwnProperty.call(message, "codecData"))
21493
+ $root.sesame.v1.wire.MediaCodecData.encode(message.codecData, writer.uint32(
21494
+ /* id 5, wireType 2 =*/
21495
+ 42
21496
+ ).fork()).ldelim();
21497
+ if (message.routingMetadata != null && Object.hasOwnProperty.call(message, "routingMetadata"))
21498
+ writer.uint32(
21499
+ /* id 6, wireType 2 =*/
21500
+ 50
21501
+ ).string(message.routingMetadata);
21502
+ return writer;
21503
+ };
21504
+ FrameHeader2.encodeDelimited = function encodeDelimited(message, writer) {
21505
+ return this.encode(message, writer).ldelim();
21506
+ };
21507
+ FrameHeader2.decode = function decode(reader, length, error) {
21508
+ if (!(reader instanceof $Reader))
21509
+ reader = $Reader.create(reader);
21510
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.wire.FrameHeader();
21511
+ while (reader.pos < end) {
21512
+ let tag = reader.uint32();
21513
+ if (tag === error)
21514
+ break;
21515
+ switch (tag >>> 3) {
21516
+ case 1: {
21517
+ message.type = reader.int32();
21518
+ break;
21519
+ }
21520
+ case 2: {
21521
+ message.pts = reader.uint64();
21522
+ break;
21523
+ }
21524
+ case 3: {
21525
+ message.id = reader.uint64();
21526
+ break;
21527
+ }
21528
+ case 4: {
21529
+ message.keyframe = reader.bool();
21530
+ break;
21531
+ }
21532
+ case 5: {
21533
+ message.codecData = $root.sesame.v1.wire.MediaCodecData.decode(reader, reader.uint32());
21534
+ break;
21535
+ }
21536
+ case 6: {
21537
+ message.routingMetadata = reader.string();
21538
+ break;
21539
+ }
21540
+ default:
21541
+ reader.skipType(tag & 7);
21542
+ break;
21543
+ }
21544
+ }
21545
+ return message;
21546
+ };
21547
+ FrameHeader2.decodeDelimited = function decodeDelimited(reader) {
21548
+ if (!(reader instanceof $Reader))
21549
+ reader = new $Reader(reader);
21550
+ return this.decode(reader, reader.uint32());
21551
+ };
21552
+ FrameHeader2.verify = function verify(message) {
21553
+ if (typeof message !== "object" || message === null)
21554
+ return "object expected";
21555
+ if (message.type != null && message.hasOwnProperty("type"))
21556
+ switch (message.type) {
21557
+ default:
21558
+ return "type: enum value expected";
21559
+ case 0:
21560
+ case 1:
21561
+ case 2:
21562
+ case 3:
21563
+ case 4:
21564
+ case 5:
21565
+ break;
21566
+ }
21567
+ if (message.pts != null && message.hasOwnProperty("pts")) {
21568
+ if (!$util.isInteger(message.pts) && !(message.pts && $util.isInteger(message.pts.low) && $util.isInteger(message.pts.high)))
21569
+ return "pts: integer|Long expected";
21570
+ }
21571
+ if (message.id != null && message.hasOwnProperty("id")) {
21572
+ if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
21573
+ return "id: integer|Long expected";
21574
+ }
21575
+ if (message.keyframe != null && message.hasOwnProperty("keyframe")) {
21576
+ if (typeof message.keyframe !== "boolean")
21577
+ return "keyframe: boolean expected";
21578
+ }
21579
+ if (message.codecData != null && message.hasOwnProperty("codecData")) {
21580
+ let error = $root.sesame.v1.wire.MediaCodecData.verify(message.codecData);
21581
+ if (error)
21582
+ return "codecData." + error;
21583
+ }
21584
+ if (message.routingMetadata != null && message.hasOwnProperty("routingMetadata")) {
21585
+ if (!$util.isString(message.routingMetadata))
21586
+ return "routingMetadata: string expected";
21587
+ }
21588
+ return null;
21589
+ };
21590
+ FrameHeader2.fromObject = function fromObject(object) {
21591
+ if (object instanceof $root.sesame.v1.wire.FrameHeader)
21592
+ return object;
21593
+ let message = new $root.sesame.v1.wire.FrameHeader();
21594
+ switch (object.type) {
21595
+ default:
21596
+ if (typeof object.type === "number") {
21597
+ message.type = object.type;
21598
+ break;
21599
+ }
21600
+ break;
21601
+ case "FRAME_TYPE_UNSPECIFIED":
21602
+ case 0:
21603
+ message.type = 0;
21604
+ break;
21605
+ case "FRAME_TYPE_RPC":
21606
+ case 1:
21607
+ message.type = 1;
21608
+ break;
21609
+ case "FRAME_TYPE_VIDEO":
21610
+ case 2:
21611
+ message.type = 2;
21612
+ break;
21613
+ case "FRAME_TYPE_AUDIO":
21614
+ case 3:
21615
+ message.type = 3;
21616
+ break;
21617
+ case "FRAME_TYPE_MUXED":
21618
+ case 4:
21619
+ message.type = 4;
21620
+ break;
21621
+ case "FRAME_TYPE_DECODER_DATA":
21622
+ case 5:
21623
+ message.type = 5;
21624
+ break;
21625
+ }
21626
+ if (object.pts != null) {
21627
+ if ($util.Long)
21628
+ (message.pts = $util.Long.fromValue(object.pts)).unsigned = true;
21629
+ else if (typeof object.pts === "string")
21630
+ message.pts = parseInt(object.pts, 10);
21631
+ else if (typeof object.pts === "number")
21632
+ message.pts = object.pts;
21633
+ else if (typeof object.pts === "object")
21634
+ message.pts = new $util.LongBits(object.pts.low >>> 0, object.pts.high >>> 0).toNumber(true);
21635
+ }
21636
+ if (object.id != null) {
21637
+ if ($util.Long)
21638
+ (message.id = $util.Long.fromValue(object.id)).unsigned = true;
21639
+ else if (typeof object.id === "string")
21640
+ message.id = parseInt(object.id, 10);
21641
+ else if (typeof object.id === "number")
21642
+ message.id = object.id;
21643
+ else if (typeof object.id === "object")
21644
+ message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true);
21645
+ }
21646
+ if (object.keyframe != null)
21647
+ message.keyframe = Boolean(object.keyframe);
21648
+ if (object.codecData != null) {
21649
+ if (typeof object.codecData !== "object")
21650
+ throw TypeError(".sesame.v1.wire.FrameHeader.codecData: object expected");
21651
+ message.codecData = $root.sesame.v1.wire.MediaCodecData.fromObject(object.codecData);
21652
+ }
21653
+ if (object.routingMetadata != null)
21654
+ message.routingMetadata = String(object.routingMetadata);
21655
+ return message;
21656
+ };
21657
+ FrameHeader2.toObject = function toObject(message, options) {
21658
+ if (!options)
21659
+ options = {};
21660
+ let object = {};
21661
+ if (options.defaults) {
21662
+ object.type = options.enums === String ? "FRAME_TYPE_UNSPECIFIED" : 0;
21663
+ if ($util.Long) {
21664
+ let long = new $util.Long(0, 0, true);
21665
+ object.pts = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
21666
+ } else
21667
+ object.pts = options.longs === String ? "0" : 0;
21668
+ if ($util.Long) {
21669
+ let long = new $util.Long(0, 0, true);
21670
+ object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
21671
+ } else
21672
+ object.id = options.longs === String ? "0" : 0;
21673
+ object.keyframe = false;
21674
+ object.codecData = null;
21675
+ object.routingMetadata = "";
21676
+ }
21677
+ if (message.type != null && message.hasOwnProperty("type"))
21678
+ object.type = options.enums === String ? $root.sesame.v1.wire.FrameType[message.type] === void 0 ? message.type : $root.sesame.v1.wire.FrameType[message.type] : message.type;
21679
+ if (message.pts != null && message.hasOwnProperty("pts"))
21680
+ if (typeof message.pts === "number")
21681
+ object.pts = options.longs === String ? String(message.pts) : message.pts;
21682
+ else
21683
+ object.pts = options.longs === String ? $util.Long.prototype.toString.call(message.pts) : options.longs === Number ? new $util.LongBits(message.pts.low >>> 0, message.pts.high >>> 0).toNumber(true) : message.pts;
21684
+ if (message.id != null && message.hasOwnProperty("id"))
21685
+ if (typeof message.id === "number")
21686
+ object.id = options.longs === String ? String(message.id) : message.id;
21687
+ else
21688
+ object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id;
21689
+ if (message.keyframe != null && message.hasOwnProperty("keyframe"))
21690
+ object.keyframe = message.keyframe;
21691
+ if (message.codecData != null && message.hasOwnProperty("codecData"))
21692
+ object.codecData = $root.sesame.v1.wire.MediaCodecData.toObject(message.codecData, options);
21693
+ if (message.routingMetadata != null && message.hasOwnProperty("routingMetadata"))
21694
+ object.routingMetadata = message.routingMetadata;
21695
+ return object;
21696
+ };
21697
+ FrameHeader2.prototype.toJSON = function toJSON() {
21698
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
21699
+ };
21700
+ FrameHeader2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
21701
+ if (typeUrlPrefix === void 0) {
21702
+ typeUrlPrefix = "type.googleapis.com";
21703
+ }
21704
+ return typeUrlPrefix + "/sesame.v1.wire.FrameHeader";
21705
+ };
21706
+ return FrameHeader2;
21707
+ }();
21708
+ return wire;
21111
21709
  }();
21112
21710
  return v1;
21113
21711
  }();
@@ -21123,7 +21721,7 @@ var CommandList = class {
21123
21721
  add(item, timeOffsetMs, transaction) {
21124
21722
  item.timeOffsetUs = (timeOffsetMs || 0) * 1e3;
21125
21723
  if (transaction) {
21126
- item.transactionDeps = (transaction == null ? void 0 : transaction.dependencies) || [];
21724
+ item.transactionDeps = transaction?.dependencies || [];
21127
21725
  item.transactionId = transaction.transactionId;
21128
21726
  }
21129
21727
  this.cl.commandList.push(item);
@@ -21160,7 +21758,7 @@ var CommandList = class {
21160
21758
  this.cl.commandList.splice(this.cl.commandList.indexOf(item.del), 1);
21161
21759
  });
21162
21760
  }
21163
- get_command_list_msg() {
21761
+ getCommandListMsg() {
21164
21762
  return this.cl;
21165
21763
  }
21166
21764
  callback(event, data, timeOffsetMs) {
@@ -21168,32 +21766,32 @@ var CommandList = class {
21168
21766
  item.callback = { event, data };
21169
21767
  return this.add(item, timeOffsetMs);
21170
21768
  }
21171
- add_compositor(id, width, height, multisample, timeOffsetMs) {
21769
+ compositorAdd(id, width, height, multisample, timeOffsetMs) {
21172
21770
  let item = new sesame.v1.commands.CommandListItem();
21173
21771
  item.addCompositor = { id, multisample, width, height };
21174
21772
  return this.add(item, timeOffsetMs);
21175
21773
  }
21176
- remove_compositor(id, timeOffsetMs) {
21774
+ compositorRemove(id, timeOffsetMs) {
21177
21775
  let item = new sesame.v1.commands.CommandListItem();
21178
21776
  item.removeCompositor = { id };
21179
21777
  return this.add(item, timeOffsetMs);
21180
21778
  }
21181
- clear_compositor(id, timeOffsetMs) {
21779
+ compositorClear(id, timeOffsetMs) {
21182
21780
  let item = new sesame.v1.commands.CommandListItem();
21183
21781
  item.clearCompositor = { id };
21184
21782
  return this.add(item, timeOffsetMs);
21185
21783
  }
21186
- add_source(id, cfg, timeOffsetMs) {
21784
+ sourceAdd(id, cfg, timeOffsetMs) {
21187
21785
  let item = new sesame.v1.commands.CommandListItem();
21188
21786
  item.addSource = { id, config: cfg };
21189
21787
  return this.add(item, timeOffsetMs);
21190
21788
  }
21191
- remove_source(id, timeOffsetMs) {
21789
+ sourceRemove(id, timeOffsetMs) {
21192
21790
  let item = new sesame.v1.commands.CommandListItem();
21193
21791
  item.removeSource = { id };
21194
21792
  return this.add(item, timeOffsetMs);
21195
21793
  }
21196
- add_node(id, cfg, timeOffsetMs) {
21794
+ nodeAdd(id, cfg, timeOffsetMs) {
21197
21795
  let item = new sesame.v1.commands.CommandListItem();
21198
21796
  item.addNode = {
21199
21797
  compositorId: cfg.compositorId,
@@ -21203,12 +21801,12 @@ var CommandList = class {
21203
21801
  };
21204
21802
  return this.add(item, timeOffsetMs);
21205
21803
  }
21206
- remove_node(compositorId, address, timeOffsetMs) {
21804
+ nodeRemove(compositorId, address, timeOffsetMs) {
21207
21805
  let item = new sesame.v1.commands.CommandListItem();
21208
21806
  item.removeNode = { compositorId, address };
21209
21807
  return this.add(item, timeOffsetMs);
21210
21808
  }
21211
- set_property(propertyDomain, addr, prop, val, timeOffsetMs) {
21809
+ propertySet(propertyDomain, addr, prop, val, timeOffsetMs) {
21212
21810
  let item = new sesame.v1.commands.CommandListItem();
21213
21811
  item.setProperty = {
21214
21812
  address: addr,
@@ -21218,7 +21816,7 @@ var CommandList = class {
21218
21816
  };
21219
21817
  return this.add(item, timeOffsetMs);
21220
21818
  }
21221
- add_load_playlist_command(sourceId, playlist) {
21819
+ playlistLoad(sourceId, playlist) {
21222
21820
  const item = new sesame.v1.commands.CommandListItem();
21223
21821
  const loadPlaylistCmd = {
21224
21822
  items: playlist.clips.map((clip) => ({
@@ -21241,13 +21839,13 @@ var CommandList = class {
21241
21839
  item.loadPlaylist = loadPlaylistCmd;
21242
21840
  return this.add(item, 0);
21243
21841
  }
21244
- add_eject_playlist_command(sourceId) {
21842
+ playlistEject(sourceId) {
21245
21843
  const item = new sesame.v1.commands.CommandListItem();
21246
21844
  const ejectPlaylistCmd = { sourceId };
21247
21845
  item.ejectPlaylist = ejectPlaylistCmd;
21248
21846
  return this.add(item, 0);
21249
21847
  }
21250
- add_transport_command(id, msg, timeOffsetMs) {
21848
+ transportCommand(id, msg, timeOffsetMs) {
21251
21849
  let item = new sesame.v1.commands.CommandListItem();
21252
21850
  let transportCmd = { sourceId: id };
21253
21851
  let cmd;
@@ -21320,17 +21918,17 @@ var CommandList = class {
21320
21918
  item.updateSourceTransport = transportCmd;
21321
21919
  return this.add(item, timeOffsetMs, { transactionId: msg.transactionId, dependencies: [] });
21322
21920
  }
21323
- update_source(id, cfg, timeOffsetMs) {
21921
+ sourceUpdate(id, cfg, timeOffsetMs) {
21324
21922
  let item = new sesame.v1.commands.CommandListItem();
21325
21923
  item.updateSource = { id, config: cfg };
21326
21924
  return this.add(item, timeOffsetMs);
21327
21925
  }
21328
- update_source_metadata(id, metadata, timeOffsetMs) {
21926
+ sourceUpdateMetadata(id, metadata, timeOffsetMs) {
21329
21927
  let item = new sesame.v1.commands.CommandListItem();
21330
21928
  item.setSourceMetadata = { sourceId: id, metadata };
21331
21929
  return this.add(item, timeOffsetMs);
21332
21930
  }
21333
- update_source_transport(id, cfg, timeOffsetMs) {
21931
+ sourceUpdateTransport(id, cfg, timeOffsetMs) {
21334
21932
  let item = new sesame.v1.commands.CommandListItem();
21335
21933
  item.updateSourceTransport = {
21336
21934
  sourceId: id,
@@ -21339,47 +21937,47 @@ var CommandList = class {
21339
21937
  };
21340
21938
  return this.add(item, timeOffsetMs);
21341
21939
  }
21342
- add_output(id, cfg, timeOffsetMs) {
21940
+ outputAdd(id, cfg, timeOffsetMs) {
21343
21941
  let item = new sesame.v1.commands.CommandListItem();
21344
21942
  item.addOutput = { id, ...cfg };
21345
21943
  return this.add(item, timeOffsetMs);
21346
21944
  }
21347
- update_output(id, cfg, timeOffsetMs) {
21945
+ outputUpdate(id, cfg, timeOffsetMs) {
21348
21946
  let item = new sesame.v1.commands.CommandListItem();
21349
21947
  item.updateOutput = { id, ...cfg };
21350
21948
  return this.add(item, timeOffsetMs);
21351
21949
  }
21352
- remove_output(id, timeOffsetMs) {
21950
+ outputRemove(id, timeOffsetMs) {
21353
21951
  let item = new sesame.v1.commands.CommandListItem();
21354
21952
  item.removeOutput = { id };
21355
21953
  return this.add(item, timeOffsetMs);
21356
21954
  }
21357
- add_audio_mixer(id, cfg, timeOffsetMs) {
21955
+ audioMixerAdd(id, cfg, timeOffsetMs) {
21358
21956
  let item = new sesame.v1.commands.CommandListItem();
21359
21957
  item.addAudioMixer = { id, config: cfg };
21360
21958
  return this.add(item, timeOffsetMs);
21361
21959
  }
21362
- update_audio_mixer(id, cfg, timeOffsetMs) {
21960
+ audioMixerUpdate(id, cfg, timeOffsetMs) {
21363
21961
  let item = new sesame.v1.commands.CommandListItem();
21364
21962
  item.updateAudioMixer = { id, config: cfg };
21365
21963
  return this.add(item, timeOffsetMs);
21366
21964
  }
21367
- add_audio_mixer_channel(mixerId, cfg, timeOffsetMs) {
21965
+ audioMixerChannelAdd(mixerId, cfg, timeOffsetMs) {
21368
21966
  let item = new sesame.v1.commands.CommandListItem();
21369
21967
  item.addAudioChannel = { mixerId, channelConfig: cfg };
21370
21968
  return this.add(item, timeOffsetMs);
21371
21969
  }
21372
- remove_audio_mixer(mixerId, timeOffsetMs) {
21970
+ audioMixerRemove(mixerId, timeOffsetMs) {
21373
21971
  let item = new sesame.v1.commands.CommandListItem();
21374
21972
  item.removeAudioMixer = { id: mixerId };
21375
21973
  return this.add(item, timeOffsetMs);
21376
21974
  }
21377
- remove_audio_mixer_channel(mixerId, channelId, timeOffsetMs) {
21975
+ audioMixerChannelRemove(mixerId, channelId, timeOffsetMs) {
21378
21976
  let item = new sesame.v1.commands.CommandListItem();
21379
21977
  item.removeAudioChannel = { mixerId, channelId };
21380
21978
  return this.add(item, timeOffsetMs);
21381
21979
  }
21382
- animate_property(propertyDomain, addr, prop, before, after, keyframes, timeOffsetMs) {
21980
+ propertyAnimate(propertyDomain, addr, prop, before, after, keyframes, timeOffsetMs) {
21383
21981
  let item = new sesame.v1.commands.CommandListItem();
21384
21982
  item.animateProperty = {
21385
21983
  address: addr,
@@ -21395,7 +21993,6 @@ var CommandList = class {
21395
21993
 
21396
21994
  // src/rpc-client.ts
21397
21995
  var import_events = require("events");
21398
- var WebSocket = __toESM(require("ws"));
21399
21996
 
21400
21997
  // src/logger.ts
21401
21998
  var ConsoleLogger = class {
@@ -21549,7 +22146,8 @@ var RPCClient = class extends import_events.EventEmitter {
21549
22146
  eventHandler(event) {
21550
22147
  const topic = event.topic ?? 0;
21551
22148
  if (topic === sesame.v1.common.EventTopic.EVENT_TOPIC_UNSPECIFIED) {
21552
- throw new Error(`Unknown event topic: ${event.topic}`);
22149
+ log.warn(`Ignoring event with unspecified topic: ${event.topic}`);
22150
+ return;
21553
22151
  }
21554
22152
  const type = this.eventTypes[topic];
21555
22153
  let payload;
@@ -21574,257 +22172,59 @@ var RPCClient = class extends import_events.EventEmitter {
21574
22172
 
21575
22173
  // src/sesame-connection.ts
21576
22174
  var import_events2 = require("events");
21577
- var import_ws = __toESM(require("ws"));
21578
22175
 
21579
- // src/sesame-binary-protocol.ts
21580
- var PROTOCOL_MAGIC = 1297302867;
21581
- var PROTOCOL_VERSION = 1;
21582
- var HEADER_DATA_SIZE = 32;
21583
- var HEADER_CODEC_DATA_SIZE = 24;
21584
- var HEADER_METADATA_SIZE = 64;
21585
- var FLAG_HAS_CODEC_DATA = 1 << 0;
21586
- var FLAG_HAS_METADATA = 1 << 1;
21587
- var FLAG_IS_KEYFRAME = 1 << 2;
21588
- var PacketType = /* @__PURE__ */ ((PacketType2) => {
21589
- PacketType2[PacketType2["VIDEO_FRAME"] = 1] = "VIDEO_FRAME";
21590
- PacketType2[PacketType2["AUDIO_FRAME"] = 2] = "AUDIO_FRAME";
21591
- PacketType2[PacketType2["RPC"] = 3] = "RPC";
21592
- PacketType2[PacketType2["MUXED_DATA"] = 4] = "MUXED_DATA";
21593
- PacketType2[PacketType2["DECODER_DATA"] = 5] = "DECODER_DATA";
21594
- return PacketType2;
21595
- })(PacketType || {});
21596
- var CodecType = /* @__PURE__ */ ((CodecType2) => {
21597
- CodecType2[CodecType2["VIDEO_VP8"] = 1] = "VIDEO_VP8";
21598
- CodecType2[CodecType2["VIDEO_VP9"] = 2] = "VIDEO_VP9";
21599
- CodecType2[CodecType2["VIDEO_AVC"] = 3] = "VIDEO_AVC";
21600
- CodecType2[CodecType2["VIDEO_HEVC"] = 4] = "VIDEO_HEVC";
21601
- CodecType2[CodecType2["VIDEO_AV1"] = 5] = "VIDEO_AV1";
21602
- CodecType2[CodecType2["AUDIO_OPUS"] = 64] = "AUDIO_OPUS";
21603
- CodecType2[CodecType2["AUDIO_AAC"] = 65] = "AUDIO_AAC";
21604
- CodecType2[CodecType2["AUDIO_PCM"] = 66] = "AUDIO_PCM";
21605
- return CodecType2;
21606
- })(CodecType || {});
21607
- var SesameBinaryProtocol = class {
21608
- /**
21609
- * Initialize a header data structure with proper defaults
21610
- */
21611
- static initHeader(type, flags, pts, id) {
21612
- return {
21613
- magic: PROTOCOL_MAGIC,
21614
- version: PROTOCOL_VERSION,
21615
- header_size: this.calculateHeaderSize(flags),
21616
- type,
21617
- flags,
21618
- pts,
21619
- id,
21620
- reserved: 0
21621
- // Always zero reserved fields
21622
- };
21623
- }
22176
+ // src/sesame-wire-protocol.ts
22177
+ var FrameType = sesame.v1.wire.FrameType;
22178
+ var FrameHeader = sesame.v1.wire.FrameHeader;
22179
+ var MediaCodecData = sesame.v1.wire.MediaCodecData;
22180
+ var CodecType = sesame.v1.wire.CodecType;
22181
+ var PREFIX_SIZE = 4;
22182
+ var WireProtocol = class {
21624
22183
  /**
21625
- * Calculate the total header size based on flags
22184
+ * Serialize a wire frame: 4-byte LE header_size + protobuf FrameHeader + payload.
21626
22185
  */
21627
- static calculateHeaderSize(flags) {
21628
- let size = HEADER_DATA_SIZE;
21629
- if (flags & FLAG_HAS_METADATA) {
21630
- size += HEADER_METADATA_SIZE;
21631
- }
21632
- if (flags & FLAG_HAS_CODEC_DATA) {
21633
- size += HEADER_CODEC_DATA_SIZE;
21634
- }
21635
- return size;
21636
- }
21637
- /**
21638
- * Validate a header structure
21639
- */
21640
- static validateHeader(header, totalSize) {
21641
- if (header.magic !== PROTOCOL_MAGIC) {
21642
- return false;
21643
- }
21644
- if (header.version !== PROTOCOL_VERSION) {
21645
- return false;
21646
- }
21647
- const expectedHeaderSize = this.calculateHeaderSize(header.flags);
21648
- if (header.header_size !== expectedHeaderSize) {
21649
- return false;
21650
- }
21651
- if (totalSize < header.header_size) {
21652
- return false;
21653
- }
21654
- return true;
21655
- }
21656
- /**
21657
- * Serialize data into a Uint8Array buffer
21658
- */
21659
- static serialize(header, metadata = null, codecData = null, payload = null) {
21660
- const includeMetadata = metadata !== null && header.flags & FLAG_HAS_METADATA;
21661
- const includeCodec = codecData !== null && header.flags & FLAG_HAS_CODEC_DATA;
21662
- let totalSize = HEADER_DATA_SIZE;
21663
- if (includeMetadata) totalSize += HEADER_METADATA_SIZE;
21664
- if (includeCodec) totalSize += HEADER_CODEC_DATA_SIZE;
21665
- if (payload) totalSize += payload.length;
21666
- header.header_size = totalSize - (payload ? payload.length : 0);
21667
- const buffer = new ArrayBuffer(totalSize);
21668
- const view = new DataView(buffer);
21669
- let offset = 0;
21670
- view.setUint32(offset, header.magic, true);
21671
- offset += 4;
21672
- view.setUint32(offset, header.flags, true);
21673
- offset += 4;
21674
- view.setBigUint64(offset, header.pts, true);
21675
- offset += 8;
21676
- view.setBigUint64(offset, header.id, true);
21677
- offset += 8;
21678
- view.setUint16(offset, header.version, true);
21679
- offset += 2;
21680
- view.setUint16(offset, header.header_size, true);
21681
- offset += 2;
21682
- view.setUint16(offset, header.type, true);
21683
- offset += 2;
21684
- view.setUint16(offset, header.reserved, true);
21685
- offset += 2;
21686
- if (includeMetadata && metadata) {
21687
- const metadataBytes = this.stringToFixedBytes(metadata.metadata, 64);
21688
- new Uint8Array(buffer, offset, 64).set(metadataBytes);
21689
- offset += 64;
21690
- }
21691
- if (includeCodec && codecData) {
21692
- view.setUint32(offset, codecData.sample_rate, true);
21693
- offset += 4;
21694
- view.setUint32(offset, codecData.timebase_num, true);
21695
- offset += 4;
21696
- view.setUint32(offset, codecData.timebase_den, true);
21697
- offset += 4;
21698
- view.setUint16(offset, codecData.codec_profile, true);
21699
- offset += 2;
21700
- view.setUint16(offset, codecData.codec_level, true);
21701
- offset += 2;
21702
- view.setUint16(offset, codecData.width, true);
21703
- offset += 2;
21704
- view.setUint16(offset, codecData.height, true);
21705
- offset += 2;
21706
- view.setUint8(offset, codecData.codec_type);
21707
- offset += 1;
21708
- view.setUint8(offset, codecData.channels);
21709
- offset += 1;
21710
- view.setUint8(offset, codecData.bit_depth);
21711
- offset += 1;
21712
- view.setUint8(offset, codecData.reserved);
21713
- offset += 1;
22186
+ static serialize(header, payload) {
22187
+ const headerBytes = sesame.v1.wire.FrameHeader.encode(header).finish();
22188
+ const headerSize = headerBytes.length;
22189
+ const payloadSize = payload ? payload.length : 0;
22190
+ const total = PREFIX_SIZE + headerSize + payloadSize;
22191
+ const buffer = new Uint8Array(total);
22192
+ const view = new DataView(buffer.buffer);
22193
+ view.setUint32(0, headerSize, true);
22194
+ buffer.set(headerBytes, PREFIX_SIZE);
22195
+ if (payload && payloadSize > 0) {
22196
+ buffer.set(payload, PREFIX_SIZE + headerSize);
21714
22197
  }
21715
- if (payload && payload.length > 0) {
21716
- new Uint8Array(buffer, offset).set(payload);
21717
- }
21718
- return new Uint8Array(buffer);
22198
+ return buffer;
21719
22199
  }
21720
22200
  /**
21721
- * Parse incoming binary data
22201
+ * Parse an incoming wire frame.
21722
22202
  */
21723
- static parseData(data) {
21724
- const result = {
21725
- valid: false,
21726
- header: null,
21727
- metadata: null,
21728
- codec_data: null,
21729
- payload: null,
21730
- payload_size: 0
21731
- };
21732
- if (!data || data.length < 36) {
21733
- return result;
21734
- }
21735
- const view = new DataView(data.buffer, data.byteOffset);
21736
- let offset = 0;
21737
- const header = {
21738
- magic: view.getUint32(offset, true),
21739
- flags: view.getUint32(offset + 4, true),
21740
- pts: view.getBigUint64(offset + 8, true),
21741
- id: view.getBigUint64(offset + 16, true),
21742
- version: view.getUint16(offset + 24, true),
21743
- header_size: view.getUint16(offset + 26, true),
21744
- type: view.getUint16(offset + 28, true),
21745
- reserved: view.getUint16(offset + 30, true)
21746
- };
21747
- offset += HEADER_DATA_SIZE;
21748
- if (!this.validateHeader(header, data.length)) {
21749
- return result;
22203
+ static parse(data) {
22204
+ const result = { valid: false, header: null, payload: null };
22205
+ if (!data || data.length < PREFIX_SIZE) return result;
22206
+ const view = new DataView(data.buffer, data.byteOffset, data.byteLength);
22207
+ const headerSize = view.getUint32(0, true);
22208
+ if (data.length < PREFIX_SIZE + headerSize) return result;
22209
+ try {
22210
+ const headerBytes = data.subarray(PREFIX_SIZE, PREFIX_SIZE + headerSize);
22211
+ result.header = sesame.v1.wire.FrameHeader.decode(headerBytes);
22212
+ result.payload = data.subarray(PREFIX_SIZE + headerSize);
22213
+ result.valid = true;
22214
+ } catch {
21750
22215
  }
21751
- result.header = header;
21752
- if (header.flags & FLAG_HAS_METADATA) {
21753
- if (data.length < offset + HEADER_METADATA_SIZE) {
21754
- return result;
21755
- }
21756
- const metadataBytes = data.slice(offset, offset + HEADER_METADATA_SIZE);
21757
- const metadataStr = this.fixedBytesToString(metadataBytes);
21758
- result.metadata = { metadata: metadataStr };
21759
- offset += HEADER_METADATA_SIZE;
21760
- }
21761
- if (header.flags & FLAG_HAS_CODEC_DATA) {
21762
- if (data.length < offset + HEADER_CODEC_DATA_SIZE) {
21763
- return result;
21764
- }
21765
- result.codec_data = {
21766
- sample_rate: view.getUint32(offset, true),
21767
- timebase_num: view.getUint32(offset + 4, true),
21768
- timebase_den: view.getUint32(offset + 8, true),
21769
- codec_profile: view.getUint16(offset + 12, true),
21770
- codec_level: view.getUint16(offset + 14, true),
21771
- width: view.getUint16(offset + 16, true),
21772
- height: view.getUint16(offset + 18, true),
21773
- codec_type: view.getUint8(offset + 20),
21774
- channels: view.getUint8(offset + 21),
21775
- bit_depth: view.getUint8(offset + 22),
21776
- reserved: view.getUint8(offset + 23)
21777
- };
21778
- offset += HEADER_CODEC_DATA_SIZE;
21779
- }
21780
- if (offset < data.length) {
21781
- result.payload = data.slice(offset);
21782
- result.payload_size = result.payload.length;
21783
- } else {
21784
- result.payload = new Uint8Array(0);
21785
- result.payload_size = 0;
21786
- }
21787
- result.valid = true;
21788
22216
  return result;
21789
22217
  }
21790
- /**
21791
- * Helper: Convert string to fixed-size byte array (null-terminated)
21792
- */
21793
- static stringToFixedBytes(str, size) {
21794
- const bytes = new Uint8Array(size);
21795
- let encoded;
21796
- if (typeof TextEncoder !== "undefined") {
21797
- const encoder = new TextEncoder();
21798
- encoded = encoder.encode(str);
21799
- } else {
21800
- encoded = new Uint8Array(Buffer.from(str, "utf8"));
21801
- }
21802
- const copyLen = Math.min(encoded.length, size - 1);
21803
- bytes.set(encoded.slice(0, copyLen));
21804
- bytes[copyLen] = 0;
21805
- return bytes;
21806
- }
21807
- /**
21808
- * Helper: Convert fixed-size byte array to string (null-terminated)
21809
- */
21810
- static fixedBytesToString(bytes) {
21811
- let len = bytes.length;
21812
- for (let i = 0; i < bytes.length; i++) {
21813
- if (bytes[i] === 0) {
21814
- len = i;
21815
- break;
21816
- }
21817
- }
21818
- if (typeof TextDecoder !== "undefined") {
21819
- const decoder = new TextDecoder();
21820
- return decoder.decode(bytes.slice(0, len));
21821
- } else {
21822
- return Buffer.from(bytes.slice(0, len)).toString("utf8");
21823
- }
21824
- }
21825
22218
  };
21826
22219
 
21827
22220
  // src/sesame-connection.ts
22221
+ var ConnectionState = /* @__PURE__ */ ((ConnectionState2) => {
22222
+ ConnectionState2["Disconnected"] = "disconnected";
22223
+ ConnectionState2["Connecting"] = "connecting";
22224
+ ConnectionState2["Connected"] = "connected";
22225
+ ConnectionState2["Reconnecting"] = "reconnecting";
22226
+ return ConnectionState2;
22227
+ })(ConnectionState || {});
21828
22228
  function waitForEvent(emitter, eventName) {
21829
22229
  return new Promise((resolve) => {
21830
22230
  emitter.once(eventName, resolve);
@@ -21837,46 +22237,81 @@ var SesameConnection = class extends import_events2.EventEmitter {
21837
22237
  this.numRetries = 0;
21838
22238
  this.url = "";
21839
22239
  this.autoReconnect = true;
22240
+ this._state = "disconnected" /* Disconnected */;
22241
+ /* Bound listeners so we can removeEventListener later */
22242
+ this.boundMessageHandler = (event) => this.messageHandler(event);
22243
+ this.boundOpenHandler = () => this.openHandler();
22244
+ this.boundCloseHandler = () => this.closeHandler();
22245
+ this.boundErrorHandler = (event) => this.errorHandler(event);
21840
22246
  this.openHandler = () => {
21841
22247
  this.numRetries = 0;
22248
+ this.setState("connected" /* Connected */);
21842
22249
  this.emit("open");
21843
22250
  };
21844
22251
  this.messageHandler = (event) => {
21845
- var _a, _b, _c;
21846
22252
  if (event.data instanceof ArrayBuffer) {
21847
- const parsed = SesameBinaryProtocol.parseData(new Uint8Array(event.data));
21848
- if (!parsed.valid) this.emit("error", new Error("Invalid packet received"));
21849
- if (((_a = parsed.header) == null ? void 0 : _a.type) == 1 /* VIDEO_FRAME */) {
21850
- this.emit("video-packet", event.data);
21851
- } else if (((_b = parsed.header) == null ? void 0 : _b.type) == 2 /* AUDIO_FRAME */) {
21852
- this.emit("audio-packet", event.data);
21853
- } else if (((_c = parsed.header) == null ? void 0 : _c.type) == 3 /* RPC */) {
22253
+ const parsed = WireProtocol.parse(new Uint8Array(event.data));
22254
+ if (!parsed.valid) {
22255
+ this.emit("error", new Error("Invalid packet received"));
22256
+ return;
22257
+ }
22258
+ const frameType = parsed.header?.type;
22259
+ if (frameType === FrameType.FRAME_TYPE_RPC) {
21854
22260
  this.emit("rpc", parsed.payload);
22261
+ } else {
22262
+ this.emit("media-packet", parsed);
21855
22263
  }
21856
22264
  }
21857
22265
  };
21858
22266
  this.url = options.url;
21859
22267
  this.autoReconnect = options.autoReconnect;
21860
- if (options.autoConnect) this.connect().catch(() => log.debug("failed connect"));
22268
+ if (options.autoConnect) this.connect().catch(() => {
22269
+ });
22270
+ }
22271
+ get state() {
22272
+ return this._state;
22273
+ }
22274
+ setState(newState) {
22275
+ if (this._state === newState) return;
22276
+ const prev = this._state;
22277
+ this._state = newState;
22278
+ switch (newState) {
22279
+ case "connected" /* Connected */:
22280
+ log.info("Connected to Sesame");
22281
+ break;
22282
+ case "reconnecting" /* Reconnecting */:
22283
+ if (prev === "connected" /* Connected */) {
22284
+ log.warn("Lost connection to Sesame, will try reconnect..");
22285
+ } else {
22286
+ log.warn("Failed to connect to Sesame, will try reconnect..");
22287
+ }
22288
+ break;
22289
+ case "disconnected" /* Disconnected */:
22290
+ log.info("Disconnected from Sesame");
22291
+ break;
22292
+ }
22293
+ this.emit("state", newState, prev);
21861
22294
  }
21862
22295
  isConnected() {
21863
- return this.socket !== void 0 && this.socket.readyState === import_ws.default.OPEN;
22296
+ return this.socket !== void 0 && this.socket.readyState === WebSocket.OPEN;
21864
22297
  }
21865
22298
  async send(data) {
21866
22299
  if (!this.isConnected()) throw new Error("Not connected");
21867
- const header = SesameBinaryProtocol.initHeader(3 /* RPC */, 0, BigInt(0), BigInt(0));
21868
- const data_to_send = SesameBinaryProtocol.serialize(header, null, null, data);
21869
- if (!data_to_send) throw new Error("Failed to serialize data");
21870
- this.socket.send(data_to_send);
22300
+ const header = { type: sesame.v1.wire.FrameType.FRAME_TYPE_RPC };
22301
+ const frame = WireProtocol.serialize(header, data);
22302
+ this.socket.send(frame);
21871
22303
  return Promise.resolve();
21872
22304
  }
21873
22305
  async connect() {
21874
22306
  this.active = true;
21875
- this.socket = new import_ws.default(this.url);
21876
- this.socket.addEventListener("message", (event) => this.messageHandler(event));
21877
- this.socket.addEventListener("open", () => this.openHandler());
21878
- this.socket.addEventListener("close", () => this.closeHandler());
21879
- this.socket.addEventListener("error", (error) => this.errorHandler(error));
22307
+ if (this._state === "disconnected" /* Disconnected */) {
22308
+ this.setState("connecting" /* Connecting */);
22309
+ }
22310
+ this.socket = new WebSocket(this.url);
22311
+ this.socket.addEventListener("message", this.boundMessageHandler);
22312
+ this.socket.addEventListener("open", this.boundOpenHandler);
22313
+ this.socket.addEventListener("close", this.boundCloseHandler);
22314
+ this.socket.addEventListener("error", this.boundErrorHandler);
21880
22315
  this.socket.binaryType = "arraybuffer";
21881
22316
  await new Promise((resolve) => {
21882
22317
  const done = () => {
@@ -21894,34 +22329,46 @@ var SesameConnection = class extends import_events2.EventEmitter {
21894
22329
  async disconnect() {
21895
22330
  this.active = false;
21896
22331
  if (!this.socket) {
22332
+ this.setState("disconnected" /* Disconnected */);
21897
22333
  return;
21898
22334
  }
21899
22335
  const sock = this.socket;
21900
- if (sock.readyState !== import_ws.default.CLOSED) {
22336
+ if (sock.readyState !== WebSocket.CLOSED) {
21901
22337
  sock.close();
21902
22338
  await waitForEvent(this, "close");
21903
22339
  }
21904
- sock.removeAllListeners();
22340
+ this.removeSocketListeners(sock);
22341
+ }
22342
+ removeSocketListeners(sock) {
22343
+ sock.removeEventListener("message", this.boundMessageHandler);
22344
+ sock.removeEventListener("open", this.boundOpenHandler);
22345
+ sock.removeEventListener("close", this.boundCloseHandler);
22346
+ sock.removeEventListener("error", this.boundErrorHandler);
21905
22347
  }
21906
22348
  retryHandler() {
21907
22349
  if (this.active && this.autoReconnect) {
21908
- this.connect().catch((err) => log.error("Retry failed", err));
22350
+ this.connect().catch(() => {
22351
+ });
21909
22352
  }
21910
22353
  }
21911
22354
  closeHandler() {
21912
22355
  this.emit("close");
21913
22356
  if (this.socket) {
21914
- this.socket.removeAllListeners();
22357
+ this.removeSocketListeners(this.socket);
21915
22358
  }
21916
22359
  this.socket = void 0;
21917
22360
  if (this.active) {
21918
- try {
22361
+ if (this.autoReconnect) {
22362
+ this.setState("reconnecting" /* Reconnecting */);
21919
22363
  setTimeout(() => {
21920
22364
  this.retryHandler();
21921
22365
  }, defaultBackoff(++this.numRetries));
21922
- } catch (err) {
21923
- log.error("Connection error", err);
22366
+ } else {
22367
+ this.active = false;
22368
+ this.setState("disconnected" /* Disconnected */);
21924
22369
  }
22370
+ } else {
22371
+ this.setState("disconnected" /* Disconnected */);
21925
22372
  }
21926
22373
  }
21927
22374
  errorHandler(error) {
@@ -21938,8 +22385,8 @@ var import_events3 = require("events");
21938
22385
  // src/status-api.ts
21939
22386
  var StatusApi = class {
21940
22387
  /** @internal */
21941
- constructor(rpc2) {
21942
- this.rpc = rpc2;
22388
+ constructor(rpc) {
22389
+ this.rpc = rpc;
21943
22390
  }
21944
22391
  async getStatus() {
21945
22392
  return this.rpc.service.requestStatus(new sesame.v1.common.Empty());
@@ -21947,16 +22394,13 @@ var StatusApi = class {
21947
22394
  async getIODevices() {
21948
22395
  return this.rpc.service.requestIODeviceList(new sesame.v1.common.Empty());
21949
22396
  }
21950
- async requestKeyframe(outputId) {
21951
- await this.rpc.service.requestKeyframe({ id: outputId });
21952
- }
21953
22397
  };
21954
22398
 
21955
22399
  // src/recorder-api.ts
21956
22400
  var RecorderApi = class {
21957
22401
  /** @internal */
21958
- constructor(rpc2) {
21959
- this.rpc = rpc2;
22402
+ constructor(rpc) {
22403
+ this.rpc = rpc;
21960
22404
  }
21961
22405
  async addClip(recorderId, clip) {
21962
22406
  const msg = sesame.v1.recorder.RecorderClipAddRequest.create({ clip });
@@ -21976,16 +22420,14 @@ var RecorderApi = class {
21976
22420
  await this.rpc.service.requestRecorderOperation({ recorderId, clearClips: msg });
21977
22421
  }
21978
22422
  async verifyClips(recorderId) {
21979
- var _a;
21980
22423
  const msg = sesame.v1.recorder.RecorderClipsVerifyRequest.create();
21981
22424
  const reply = await this.rpc.service.requestRecorderOperation({ recorderId, verifyClips: msg });
21982
- return ((_a = reply.verifyClipsResponse) == null ? void 0 : _a.errors) || [];
22425
+ return reply.verifyClipsResponse?.errors || [];
21983
22426
  }
21984
22427
  async getClips(recorderId) {
21985
- var _a;
21986
22428
  const msg = sesame.v1.recorder.RecorderClipsGetRequest.create();
21987
22429
  const reply = await this.rpc.service.requestRecorderOperation({ recorderId, getClips: msg });
21988
- if ((_a = reply.getClipsResponse) == null ? void 0 : _a.clips) {
22430
+ if (reply.getClipsResponse?.clips) {
21989
22431
  return reply.getClipsResponse.clips;
21990
22432
  } else {
21991
22433
  throw new Error(`No clips returned: ${JSON.stringify(reply)}`);
@@ -22004,8 +22446,8 @@ var RecorderApi = class {
22004
22446
  // src/jobs-api.ts
22005
22447
  var JobsApi = class {
22006
22448
  /** @internal */
22007
- constructor(rpc2) {
22008
- this.rpc = rpc2;
22449
+ constructor(rpc) {
22450
+ this.rpc = rpc;
22009
22451
  }
22010
22452
  async importClip(config) {
22011
22453
  const msg = sesame.v1.jobs.ImportStartRequest.create();
@@ -22100,10 +22542,7 @@ var SesameClient = class extends import_events3.EventEmitter {
22100
22542
  constructor(portOrUrl) {
22101
22543
  super();
22102
22544
  this.subscriptions = [];
22103
- this.errorIsLogged = false;
22104
- this.onVideoPacket = () => {
22105
- };
22106
- this.onAudioPacket = () => {
22545
+ this.onMediaPacket = () => {
22107
22546
  };
22108
22547
  this.onCallbackMessage = () => {
22109
22548
  };
@@ -22114,10 +22553,6 @@ var SesameClient = class extends import_events3.EventEmitter {
22114
22553
  autoReconnect: true
22115
22554
  });
22116
22555
  this.conn.on("error", () => {
22117
- if (!this.errorIsLogged) {
22118
- log.warn("Could not connect to Sesame Engine, will keep trying..");
22119
- this.errorIsLogged = true;
22120
- }
22121
22556
  });
22122
22557
  let events = {
22123
22558
  [sesame.v1.common.EventTopic.EVENT_TOPIC_ERROR]: sesame.v1.status.Event,
@@ -22142,18 +22577,18 @@ var SesameClient = class extends import_events3.EventEmitter {
22142
22577
  }
22143
22578
  });
22144
22579
  this.rpc.on("error", (err) => {
22145
- log.error(`RPC error: ${err.message}`);
22580
+ if (this.isConnected()) {
22581
+ log.error(`RPC error: ${err.message}`);
22582
+ }
22146
22583
  });
22147
22584
  this.conn.on("open", async () => {
22148
22585
  this.sendSubscriptions();
22149
- this.errorIsLogged = false;
22150
22586
  this.emit("connected");
22151
22587
  });
22152
22588
  this.conn.on("close", () => {
22153
22589
  this.emit("disconnected");
22154
22590
  });
22155
- this.conn.on("video-packet", (data) => this.onVideoPacket(this.videoSubscriptionId, data));
22156
- this.conn.on("audio-packet", (data) => this.onAudioPacket(this.videoSubscriptionId, data));
22591
+ this.conn.on("media-packet", (frame) => this.onMediaPacket(this.mediaSubscriptionId, frame));
22157
22592
  this.subscriptions = [];
22158
22593
  }
22159
22594
  isConnected() {
@@ -22163,14 +22598,14 @@ var SesameClient = class extends import_events3.EventEmitter {
22163
22598
  if (!this.isConnected()) return;
22164
22599
  const eventTopics = this.subscriptions.map((subscription) => subscription.topic);
22165
22600
  const channels = [];
22166
- if (this.videoSubscriptionId) channels.push(`video/${this.videoSubscriptionId}`);
22601
+ if (this.mediaSubscriptionId) channels.push(`media-stream/${this.mediaSubscriptionId}`);
22167
22602
  let subs = { eventTopics, channels };
22168
22603
  this.rpc.service.updateSubscriptions(subs).catch((err) => {
22169
22604
  log.error(`Failed to update subscriptions: ${err.message}`);
22170
22605
  });
22171
22606
  }
22172
- addVideoSubscription(id) {
22173
- this.videoSubscriptionId = id;
22607
+ addMediaSubscription(id) {
22608
+ this.mediaSubscriptionId = id;
22174
22609
  this.sendSubscriptions();
22175
22610
  }
22176
22611
  addSubscription(topic, callback) {
@@ -22189,10 +22624,13 @@ var SesameClient = class extends import_events3.EventEmitter {
22189
22624
  getService() {
22190
22625
  return this.rpc;
22191
22626
  }
22627
+ async requestKeyframe(outputId) {
22628
+ await this.rpc.service.requestKeyframe({ id: outputId });
22629
+ }
22192
22630
  async execute(cl) {
22193
22631
  cl.filterCreatedAndDestroyedSources();
22194
- if (cl.get_command_list_msg().commandList.length > 0) {
22195
- await this.rpc.service.executeCommandList(cl.get_command_list_msg());
22632
+ if (cl.getCommandListMsg().commandList.length > 0) {
22633
+ await this.rpc.service.executeCommandList(cl.getCommandListMsg());
22196
22634
  }
22197
22635
  }
22198
22636
  disconnect() {
@@ -22209,19 +22647,21 @@ var Event = sesame.v1.rpc.Event;
22209
22647
  0 && (module.exports = {
22210
22648
  CodecType,
22211
22649
  CommandList,
22650
+ ConnectionState,
22212
22651
  EaseKind,
22213
22652
  Event,
22653
+ FrameHeader,
22654
+ FrameType,
22214
22655
  JobsApi,
22215
22656
  Message,
22216
- PacketType,
22217
22657
  RPCClient,
22218
22658
  RecorderApi,
22219
22659
  Request,
22220
22660
  Response,
22221
- SesameBinaryProtocol,
22222
22661
  SesameClient,
22223
22662
  SesameConnection,
22224
22663
  StatusApi,
22664
+ WireProtocol,
22225
22665
  getLogger,
22226
22666
  log,
22227
22667
  sesame,