@stinkycomputing/sesame-api-client 1.8.0 → 1.9.0-alpha.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.
@@ -3915,11 +3915,14 @@ var sesame = $root.sesame = (() => {
3915
3915
  CommandListItem.prototype.updateEncoder = null;
3916
3916
  CommandListItem.prototype.removeEncoder = null;
3917
3917
  CommandListItem.prototype.takePlaylist = null;
3918
+ CommandListItem.prototype.outputControl = null;
3919
+ CommandListItem.prototype.setSideData = null;
3920
+ CommandListItem.prototype.removeSideData = null;
3918
3921
  CommandListItem.prototype.transactionId = null;
3919
3922
  CommandListItem.prototype.transactionDeps = $util.emptyArray;
3920
3923
  let $oneOfFields;
3921
3924
  Object.defineProperty(CommandListItem.prototype, "item", {
3922
- get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings", "addEncoder", "updateEncoder", "removeEncoder", "takePlaylist"]),
3925
+ get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings", "addEncoder", "updateEncoder", "removeEncoder", "takePlaylist", "outputControl", "setSideData", "removeSideData"]),
3923
3926
  set: $util.oneOfSetter($oneOfFields)
3924
3927
  });
3925
3928
  Object.defineProperty(CommandListItem.prototype, "_transactionId", {
@@ -4091,6 +4094,21 @@ var sesame = $root.sesame = (() => {
4091
4094
  /* id 31, wireType 2 =*/
4092
4095
  250
4093
4096
  ).fork()).ldelim();
4097
+ if (message.outputControl != null && Object.hasOwnProperty.call(message, "outputControl"))
4098
+ $root.sesame.v1.outputs.OutputControlRequest.encode(message.outputControl, writer.uint32(
4099
+ /* id 32, wireType 2 =*/
4100
+ 258
4101
+ ).fork()).ldelim();
4102
+ if (message.setSideData != null && Object.hasOwnProperty.call(message, "setSideData"))
4103
+ $root.sesame.v1.compositor.SideDataSetRequest.encode(message.setSideData, writer.uint32(
4104
+ /* id 33, wireType 2 =*/
4105
+ 266
4106
+ ).fork()).ldelim();
4107
+ if (message.removeSideData != null && Object.hasOwnProperty.call(message, "removeSideData"))
4108
+ $root.sesame.v1.compositor.SideDataRemoveRequest.encode(message.removeSideData, writer.uint32(
4109
+ /* id 34, wireType 2 =*/
4110
+ 274
4111
+ ).fork()).ldelim();
4094
4112
  return writer;
4095
4113
  };
4096
4114
  CommandListItem.encodeDelimited = function encodeDelimited(message, writer) {
@@ -4221,6 +4239,18 @@ var sesame = $root.sesame = (() => {
4221
4239
  message.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.decode(reader, reader.uint32());
4222
4240
  break;
4223
4241
  }
4242
+ case 32: {
4243
+ message.outputControl = $root.sesame.v1.outputs.OutputControlRequest.decode(reader, reader.uint32());
4244
+ break;
4245
+ }
4246
+ case 33: {
4247
+ message.setSideData = $root.sesame.v1.compositor.SideDataSetRequest.decode(reader, reader.uint32());
4248
+ break;
4249
+ }
4250
+ case 34: {
4251
+ message.removeSideData = $root.sesame.v1.compositor.SideDataRemoveRequest.decode(reader, reader.uint32());
4252
+ break;
4253
+ }
4224
4254
  case 25: {
4225
4255
  message.transactionId = reader.uint32();
4226
4256
  break;
@@ -4534,6 +4564,36 @@ var sesame = $root.sesame = (() => {
4534
4564
  return "takePlaylist." + error;
4535
4565
  }
4536
4566
  }
4567
+ if (message.outputControl != null && message.hasOwnProperty("outputControl")) {
4568
+ if (properties.item === 1)
4569
+ return "item: multiple values";
4570
+ properties.item = 1;
4571
+ {
4572
+ let error = $root.sesame.v1.outputs.OutputControlRequest.verify(message.outputControl);
4573
+ if (error)
4574
+ return "outputControl." + error;
4575
+ }
4576
+ }
4577
+ if (message.setSideData != null && message.hasOwnProperty("setSideData")) {
4578
+ if (properties.item === 1)
4579
+ return "item: multiple values";
4580
+ properties.item = 1;
4581
+ {
4582
+ let error = $root.sesame.v1.compositor.SideDataSetRequest.verify(message.setSideData);
4583
+ if (error)
4584
+ return "setSideData." + error;
4585
+ }
4586
+ }
4587
+ if (message.removeSideData != null && message.hasOwnProperty("removeSideData")) {
4588
+ if (properties.item === 1)
4589
+ return "item: multiple values";
4590
+ properties.item = 1;
4591
+ {
4592
+ let error = $root.sesame.v1.compositor.SideDataRemoveRequest.verify(message.removeSideData);
4593
+ if (error)
4594
+ return "removeSideData." + error;
4595
+ }
4596
+ }
4537
4597
  if (message.transactionId != null && message.hasOwnProperty("transactionId")) {
4538
4598
  properties._transactionId = 1;
4539
4599
  if (!$util.isInteger(message.transactionId))
@@ -4702,6 +4762,21 @@ var sesame = $root.sesame = (() => {
4702
4762
  throw TypeError(".sesame.v1.commands.CommandListItem.takePlaylist: object expected");
4703
4763
  message.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.fromObject(object.takePlaylist);
4704
4764
  }
4765
+ if (object.outputControl != null) {
4766
+ if (typeof object.outputControl !== "object")
4767
+ throw TypeError(".sesame.v1.commands.CommandListItem.outputControl: object expected");
4768
+ message.outputControl = $root.sesame.v1.outputs.OutputControlRequest.fromObject(object.outputControl);
4769
+ }
4770
+ if (object.setSideData != null) {
4771
+ if (typeof object.setSideData !== "object")
4772
+ throw TypeError(".sesame.v1.commands.CommandListItem.setSideData: object expected");
4773
+ message.setSideData = $root.sesame.v1.compositor.SideDataSetRequest.fromObject(object.setSideData);
4774
+ }
4775
+ if (object.removeSideData != null) {
4776
+ if (typeof object.removeSideData !== "object")
4777
+ throw TypeError(".sesame.v1.commands.CommandListItem.removeSideData: object expected");
4778
+ message.removeSideData = $root.sesame.v1.compositor.SideDataRemoveRequest.fromObject(object.removeSideData);
4779
+ }
4705
4780
  if (object.transactionId != null)
4706
4781
  message.transactionId = object.transactionId >>> 0;
4707
4782
  if (object.transactionDeps) {
@@ -4880,6 +4955,21 @@ var sesame = $root.sesame = (() => {
4880
4955
  if (options.oneofs)
4881
4956
  object.item = "takePlaylist";
4882
4957
  }
4958
+ if (message.outputControl != null && message.hasOwnProperty("outputControl")) {
4959
+ object.outputControl = $root.sesame.v1.outputs.OutputControlRequest.toObject(message.outputControl, options);
4960
+ if (options.oneofs)
4961
+ object.item = "outputControl";
4962
+ }
4963
+ if (message.setSideData != null && message.hasOwnProperty("setSideData")) {
4964
+ object.setSideData = $root.sesame.v1.compositor.SideDataSetRequest.toObject(message.setSideData, options);
4965
+ if (options.oneofs)
4966
+ object.item = "setSideData";
4967
+ }
4968
+ if (message.removeSideData != null && message.hasOwnProperty("removeSideData")) {
4969
+ object.removeSideData = $root.sesame.v1.compositor.SideDataRemoveRequest.toObject(message.removeSideData, options);
4970
+ if (options.oneofs)
4971
+ object.item = "removeSideData";
4972
+ }
4883
4973
  return object;
4884
4974
  };
4885
4975
  CommandListItem.prototype.toJSON = function toJSON() {
@@ -5351,6 +5441,7 @@ var sesame = $root.sesame = (() => {
5351
5441
  values[valuesById[4] = "CONNECTION_STATE_DEGRADED"] = 4;
5352
5442
  values[valuesById[5] = "CONNECTION_STATE_OFFLINE"] = 5;
5353
5443
  values[valuesById[6] = "CONNECTION_STATE_ERROR"] = 6;
5444
+ values[valuesById[7] = "CONNECTION_STATE_DISABLED"] = 7;
5354
5445
  return values;
5355
5446
  }();
5356
5447
  common.VideoFormat = function() {
@@ -9522,6 +9613,7 @@ var sesame = $root.sesame = (() => {
9522
9613
  case 4:
9523
9614
  case 5:
9524
9615
  case 6:
9616
+ case 7:
9525
9617
  break;
9526
9618
  }
9527
9619
  if (message.transportState != null && message.hasOwnProperty("transportState"))
@@ -9702,6 +9794,10 @@ var sesame = $root.sesame = (() => {
9702
9794
  case 6:
9703
9795
  message.state = 6;
9704
9796
  break;
9797
+ case "CONNECTION_STATE_DISABLED":
9798
+ case 7:
9799
+ message.state = 7;
9800
+ break;
9705
9801
  }
9706
9802
  switch (object.transportState) {
9707
9803
  default:
@@ -19709,6 +19805,13 @@ var sesame = $root.sesame = (() => {
19709
19805
  };
19710
19806
  return EncodedSuperSlowMoRecorderOutputConfig;
19711
19807
  }();
19808
+ outputs.SrtStreamControl = function() {
19809
+ const valuesById = {}, values = Object.create(valuesById);
19810
+ values[valuesById[0] = "SRT_STREAM_CONTROL_UNSPECIFIED"] = 0;
19811
+ values[valuesById[1] = "SRT_STREAM_CONTROL_STARTED"] = 1;
19812
+ values[valuesById[2] = "SRT_STREAM_CONTROL_MANUAL"] = 2;
19813
+ return values;
19814
+ }();
19712
19815
  outputs.EncodedSrtOutputConfig = function() {
19713
19816
  function EncodedSrtOutputConfig(properties) {
19714
19817
  if (properties) {
@@ -19719,6 +19822,7 @@ var sesame = $root.sesame = (() => {
19719
19822
  }
19720
19823
  EncodedSrtOutputConfig.prototype.url = "";
19721
19824
  EncodedSrtOutputConfig.prototype.encoderId = "";
19825
+ EncodedSrtOutputConfig.prototype.control = 0;
19722
19826
  EncodedSrtOutputConfig.create = function create(properties) {
19723
19827
  return new EncodedSrtOutputConfig(properties);
19724
19828
  };
@@ -19735,6 +19839,11 @@ var sesame = $root.sesame = (() => {
19735
19839
  /* id 2, wireType 2 =*/
19736
19840
  18
19737
19841
  ).string(message.encoderId);
19842
+ if (message.control != null && Object.hasOwnProperty.call(message, "control"))
19843
+ writer.uint32(
19844
+ /* id 3, wireType 0 =*/
19845
+ 24
19846
+ ).int32(message.control);
19738
19847
  return writer;
19739
19848
  };
19740
19849
  EncodedSrtOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -19757,6 +19866,10 @@ var sesame = $root.sesame = (() => {
19757
19866
  message.encoderId = reader.string();
19758
19867
  break;
19759
19868
  }
19869
+ case 3: {
19870
+ message.control = reader.int32();
19871
+ break;
19872
+ }
19760
19873
  default:
19761
19874
  reader.skipType(tag & 7);
19762
19875
  break;
@@ -19780,6 +19893,15 @@ var sesame = $root.sesame = (() => {
19780
19893
  if (!$util.isString(message.encoderId))
19781
19894
  return "encoderId: string expected";
19782
19895
  }
19896
+ if (message.control != null && message.hasOwnProperty("control"))
19897
+ switch (message.control) {
19898
+ default:
19899
+ return "control: enum value expected";
19900
+ case 0:
19901
+ case 1:
19902
+ case 2:
19903
+ break;
19904
+ }
19783
19905
  return null;
19784
19906
  };
19785
19907
  EncodedSrtOutputConfig.fromObject = function fromObject(object) {
@@ -19790,6 +19912,26 @@ var sesame = $root.sesame = (() => {
19790
19912
  message.url = String(object.url);
19791
19913
  if (object.encoderId != null)
19792
19914
  message.encoderId = String(object.encoderId);
19915
+ switch (object.control) {
19916
+ default:
19917
+ if (typeof object.control === "number") {
19918
+ message.control = object.control;
19919
+ break;
19920
+ }
19921
+ break;
19922
+ case "SRT_STREAM_CONTROL_UNSPECIFIED":
19923
+ case 0:
19924
+ message.control = 0;
19925
+ break;
19926
+ case "SRT_STREAM_CONTROL_STARTED":
19927
+ case 1:
19928
+ message.control = 1;
19929
+ break;
19930
+ case "SRT_STREAM_CONTROL_MANUAL":
19931
+ case 2:
19932
+ message.control = 2;
19933
+ break;
19934
+ }
19793
19935
  return message;
19794
19936
  };
19795
19937
  EncodedSrtOutputConfig.toObject = function toObject(message, options) {
@@ -19799,11 +19941,14 @@ var sesame = $root.sesame = (() => {
19799
19941
  if (options.defaults) {
19800
19942
  object.url = "";
19801
19943
  object.encoderId = "";
19944
+ object.control = options.enums === String ? "SRT_STREAM_CONTROL_UNSPECIFIED" : 0;
19802
19945
  }
19803
19946
  if (message.url != null && message.hasOwnProperty("url"))
19804
19947
  object.url = message.url;
19805
19948
  if (message.encoderId != null && message.hasOwnProperty("encoderId"))
19806
19949
  object.encoderId = message.encoderId;
19950
+ if (message.control != null && message.hasOwnProperty("control"))
19951
+ object.control = options.enums === String ? $root.sesame.v1.outputs.SrtStreamControl[message.control] === void 0 ? message.control : $root.sesame.v1.outputs.SrtStreamControl[message.control] : message.control;
19807
19952
  return object;
19808
19953
  };
19809
19954
  EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
@@ -20926,6 +21071,144 @@ var sesame = $root.sesame = (() => {
20926
21071
  };
20927
21072
  return OutputRemoveRequest;
20928
21073
  }();
21074
+ outputs.OutputControlAction = function() {
21075
+ const valuesById = {}, values = Object.create(valuesById);
21076
+ values[valuesById[0] = "OUTPUT_CONTROL_ACTION_UNSPECIFIED"] = 0;
21077
+ values[valuesById[1] = "OUTPUT_CONTROL_ACTION_START"] = 1;
21078
+ values[valuesById[2] = "OUTPUT_CONTROL_ACTION_STOP"] = 2;
21079
+ return values;
21080
+ }();
21081
+ outputs.OutputControlRequest = function() {
21082
+ function OutputControlRequest(properties) {
21083
+ if (properties) {
21084
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
21085
+ if (properties[keys[i]] != null)
21086
+ this[keys[i]] = properties[keys[i]];
21087
+ }
21088
+ }
21089
+ OutputControlRequest.prototype.id = "";
21090
+ OutputControlRequest.prototype.action = 0;
21091
+ OutputControlRequest.create = function create(properties) {
21092
+ return new OutputControlRequest(properties);
21093
+ };
21094
+ OutputControlRequest.encode = function encode(message, writer) {
21095
+ if (!writer)
21096
+ writer = $Writer.create();
21097
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
21098
+ writer.uint32(
21099
+ /* id 1, wireType 2 =*/
21100
+ 10
21101
+ ).string(message.id);
21102
+ if (message.action != null && Object.hasOwnProperty.call(message, "action"))
21103
+ writer.uint32(
21104
+ /* id 2, wireType 0 =*/
21105
+ 16
21106
+ ).int32(message.action);
21107
+ return writer;
21108
+ };
21109
+ OutputControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
21110
+ return this.encode(message, writer).ldelim();
21111
+ };
21112
+ OutputControlRequest.decode = function decode(reader, length, error) {
21113
+ if (!(reader instanceof $Reader))
21114
+ reader = $Reader.create(reader);
21115
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.OutputControlRequest();
21116
+ while (reader.pos < end) {
21117
+ let tag = reader.uint32();
21118
+ if (tag === error)
21119
+ break;
21120
+ switch (tag >>> 3) {
21121
+ case 1: {
21122
+ message.id = reader.string();
21123
+ break;
21124
+ }
21125
+ case 2: {
21126
+ message.action = reader.int32();
21127
+ break;
21128
+ }
21129
+ default:
21130
+ reader.skipType(tag & 7);
21131
+ break;
21132
+ }
21133
+ }
21134
+ return message;
21135
+ };
21136
+ OutputControlRequest.decodeDelimited = function decodeDelimited(reader) {
21137
+ if (!(reader instanceof $Reader))
21138
+ reader = new $Reader(reader);
21139
+ return this.decode(reader, reader.uint32());
21140
+ };
21141
+ OutputControlRequest.verify = function verify(message) {
21142
+ if (typeof message !== "object" || message === null)
21143
+ return "object expected";
21144
+ if (message.id != null && message.hasOwnProperty("id")) {
21145
+ if (!$util.isString(message.id))
21146
+ return "id: string expected";
21147
+ }
21148
+ if (message.action != null && message.hasOwnProperty("action"))
21149
+ switch (message.action) {
21150
+ default:
21151
+ return "action: enum value expected";
21152
+ case 0:
21153
+ case 1:
21154
+ case 2:
21155
+ break;
21156
+ }
21157
+ return null;
21158
+ };
21159
+ OutputControlRequest.fromObject = function fromObject(object) {
21160
+ if (object instanceof $root.sesame.v1.outputs.OutputControlRequest)
21161
+ return object;
21162
+ let message = new $root.sesame.v1.outputs.OutputControlRequest();
21163
+ if (object.id != null)
21164
+ message.id = String(object.id);
21165
+ switch (object.action) {
21166
+ default:
21167
+ if (typeof object.action === "number") {
21168
+ message.action = object.action;
21169
+ break;
21170
+ }
21171
+ break;
21172
+ case "OUTPUT_CONTROL_ACTION_UNSPECIFIED":
21173
+ case 0:
21174
+ message.action = 0;
21175
+ break;
21176
+ case "OUTPUT_CONTROL_ACTION_START":
21177
+ case 1:
21178
+ message.action = 1;
21179
+ break;
21180
+ case "OUTPUT_CONTROL_ACTION_STOP":
21181
+ case 2:
21182
+ message.action = 2;
21183
+ break;
21184
+ }
21185
+ return message;
21186
+ };
21187
+ OutputControlRequest.toObject = function toObject(message, options) {
21188
+ if (!options)
21189
+ options = {};
21190
+ let object = {};
21191
+ if (options.defaults) {
21192
+ object.id = "";
21193
+ object.action = options.enums === String ? "OUTPUT_CONTROL_ACTION_UNSPECIFIED" : 0;
21194
+ }
21195
+ if (message.id != null && message.hasOwnProperty("id"))
21196
+ object.id = message.id;
21197
+ if (message.action != null && message.hasOwnProperty("action"))
21198
+ object.action = options.enums === String ? $root.sesame.v1.outputs.OutputControlAction[message.action] === void 0 ? message.action : $root.sesame.v1.outputs.OutputControlAction[message.action] : message.action;
21199
+ return object;
21200
+ };
21201
+ OutputControlRequest.prototype.toJSON = function toJSON() {
21202
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
21203
+ };
21204
+ OutputControlRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
21205
+ if (typeUrlPrefix === void 0) {
21206
+ typeUrlPrefix = "type.googleapis.com";
21207
+ }
21208
+ return typeUrlPrefix + "/sesame.v1.outputs.OutputControlRequest";
21209
+ };
21210
+ return OutputControlRequest;
21211
+ }();
20929
21212
  outputs.KeyframeRequest = function() {
20930
21213
  function KeyframeRequest(properties) {
20931
21214
  if (properties) {
@@ -21030,6 +21313,7 @@ var sesame = $root.sesame = (() => {
21030
21313
  OutputStatus.prototype.bufferSize = 0;
21031
21314
  OutputStatus.prototype.srtStats = null;
21032
21315
  OutputStatus.prototype.encoderId = "";
21316
+ OutputStatus.prototype.control = 0;
21033
21317
  let $oneOfFields;
21034
21318
  Object.defineProperty(OutputStatus.prototype, "_msg", {
21035
21319
  get: $util.oneOfGetter($oneOfFields = ["msg"]),
@@ -21085,6 +21369,11 @@ var sesame = $root.sesame = (() => {
21085
21369
  /* id 8, wireType 2 =*/
21086
21370
  66
21087
21371
  ).string(message.encoderId);
21372
+ if (message.control != null && Object.hasOwnProperty.call(message, "control"))
21373
+ writer.uint32(
21374
+ /* id 9, wireType 0 =*/
21375
+ 72
21376
+ ).int32(message.control);
21088
21377
  return writer;
21089
21378
  };
21090
21379
  OutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -21131,6 +21420,10 @@ var sesame = $root.sesame = (() => {
21131
21420
  message.encoderId = reader.string();
21132
21421
  break;
21133
21422
  }
21423
+ case 9: {
21424
+ message.control = reader.int32();
21425
+ break;
21426
+ }
21134
21427
  default:
21135
21428
  reader.skipType(tag & 7);
21136
21429
  break;
@@ -21176,6 +21469,7 @@ var sesame = $root.sesame = (() => {
21176
21469
  case 4:
21177
21470
  case 5:
21178
21471
  case 6:
21472
+ case 7:
21179
21473
  break;
21180
21474
  }
21181
21475
  if (message.msg != null && message.hasOwnProperty("msg")) {
@@ -21203,6 +21497,15 @@ var sesame = $root.sesame = (() => {
21203
21497
  if (!$util.isString(message.encoderId))
21204
21498
  return "encoderId: string expected";
21205
21499
  }
21500
+ if (message.control != null && message.hasOwnProperty("control"))
21501
+ switch (message.control) {
21502
+ default:
21503
+ return "control: enum value expected";
21504
+ case 0:
21505
+ case 1:
21506
+ case 2:
21507
+ break;
21508
+ }
21206
21509
  return null;
21207
21510
  };
21208
21511
  OutputStatus.fromObject = function fromObject(object) {
@@ -21286,6 +21589,10 @@ var sesame = $root.sesame = (() => {
21286
21589
  case 6:
21287
21590
  message.state = 6;
21288
21591
  break;
21592
+ case "CONNECTION_STATE_DISABLED":
21593
+ case 7:
21594
+ message.state = 7;
21595
+ break;
21289
21596
  }
21290
21597
  if (object.msg != null)
21291
21598
  message.msg = String(object.msg);
@@ -21300,6 +21607,26 @@ var sesame = $root.sesame = (() => {
21300
21607
  }
21301
21608
  if (object.encoderId != null)
21302
21609
  message.encoderId = String(object.encoderId);
21610
+ switch (object.control) {
21611
+ default:
21612
+ if (typeof object.control === "number") {
21613
+ message.control = object.control;
21614
+ break;
21615
+ }
21616
+ break;
21617
+ case "SRT_STREAM_CONTROL_UNSPECIFIED":
21618
+ case 0:
21619
+ message.control = 0;
21620
+ break;
21621
+ case "SRT_STREAM_CONTROL_STARTED":
21622
+ case 1:
21623
+ message.control = 1;
21624
+ break;
21625
+ case "SRT_STREAM_CONTROL_MANUAL":
21626
+ case 2:
21627
+ message.control = 2;
21628
+ break;
21629
+ }
21303
21630
  return message;
21304
21631
  };
21305
21632
  OutputStatus.toObject = function toObject(message, options) {
@@ -21313,6 +21640,7 @@ var sesame = $root.sesame = (() => {
21313
21640
  object.url = "";
21314
21641
  object.bufferSize = 0;
21315
21642
  object.encoderId = "";
21643
+ object.control = options.enums === String ? "SRT_STREAM_CONTROL_UNSPECIFIED" : 0;
21316
21644
  }
21317
21645
  if (message.id != null && message.hasOwnProperty("id"))
21318
21646
  object.id = message.id;
@@ -21336,6 +21664,8 @@ var sesame = $root.sesame = (() => {
21336
21664
  }
21337
21665
  if (message.encoderId != null && message.hasOwnProperty("encoderId"))
21338
21666
  object.encoderId = message.encoderId;
21667
+ if (message.control != null && message.hasOwnProperty("control"))
21668
+ object.control = options.enums === String ? $root.sesame.v1.outputs.SrtStreamControl[message.control] === void 0 ? message.control : $root.sesame.v1.outputs.SrtStreamControl[message.control] : message.control;
21339
21669
  return object;
21340
21670
  };
21341
21671
  OutputStatus.prototype.toJSON = function toJSON() {
@@ -21481,6 +21811,7 @@ var sesame = $root.sesame = (() => {
21481
21811
  case 4:
21482
21812
  case 5:
21483
21813
  case 6:
21814
+ case 7:
21484
21815
  break;
21485
21816
  }
21486
21817
  if (message.msg != null && message.hasOwnProperty("msg")) {
@@ -21555,6 +21886,10 @@ var sesame = $root.sesame = (() => {
21555
21886
  case 6:
21556
21887
  message.state = 6;
21557
21888
  break;
21889
+ case "CONNECTION_STATE_DISABLED":
21890
+ case 7:
21891
+ message.state = 7;
21892
+ break;
21558
21893
  }
21559
21894
  if (object.msg != null)
21560
21895
  message.msg = String(object.msg);
@@ -22416,72 +22751,52 @@ var sesame = $root.sesame = (() => {
22416
22751
  };
22417
22752
  return NodeRemoveRequest;
22418
22753
  }();
22419
- compositor.PropertySetRequest = function() {
22420
- function PropertySetRequest(properties) {
22754
+ compositor.SideDataSetRequest = function() {
22755
+ function SideDataSetRequest(properties) {
22421
22756
  if (properties) {
22422
22757
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
22423
22758
  if (properties[keys[i]] != null)
22424
22759
  this[keys[i]] = properties[keys[i]];
22425
22760
  }
22426
22761
  }
22427
- PropertySetRequest.prototype.domain = null;
22428
- PropertySetRequest.prototype.address = "";
22429
- PropertySetRequest.prototype.property = "";
22430
- PropertySetRequest.prototype.value = null;
22431
- PropertySetRequest.create = function create(properties) {
22432
- return new PropertySetRequest(properties);
22762
+ SideDataSetRequest.prototype.compositorId = "";
22763
+ SideDataSetRequest.prototype.sideData = null;
22764
+ SideDataSetRequest.create = function create(properties) {
22765
+ return new SideDataSetRequest(properties);
22433
22766
  };
22434
- PropertySetRequest.encode = function encode(message, writer) {
22767
+ SideDataSetRequest.encode = function encode(message, writer) {
22435
22768
  if (!writer)
22436
22769
  writer = $Writer.create();
22437
- if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
22438
- $root.sesame.v1.common.PropertyDomain.encode(message.domain, writer.uint32(
22770
+ if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
22771
+ writer.uint32(
22439
22772
  /* id 1, wireType 2 =*/
22440
22773
  10
22441
- ).fork()).ldelim();
22442
- if (message.address != null && Object.hasOwnProperty.call(message, "address"))
22443
- writer.uint32(
22774
+ ).string(message.compositorId);
22775
+ if (message.sideData != null && Object.hasOwnProperty.call(message, "sideData"))
22776
+ $root.sesame.v1.sidedata.SideData.encode(message.sideData, writer.uint32(
22444
22777
  /* id 2, wireType 2 =*/
22445
22778
  18
22446
- ).string(message.address);
22447
- if (message.property != null && Object.hasOwnProperty.call(message, "property"))
22448
- writer.uint32(
22449
- /* id 3, wireType 2 =*/
22450
- 26
22451
- ).string(message.property);
22452
- if (message.value != null && Object.hasOwnProperty.call(message, "value"))
22453
- $root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
22454
- /* id 4, wireType 2 =*/
22455
- 34
22456
22779
  ).fork()).ldelim();
22457
22780
  return writer;
22458
22781
  };
22459
- PropertySetRequest.encodeDelimited = function encodeDelimited(message, writer) {
22782
+ SideDataSetRequest.encodeDelimited = function encodeDelimited(message, writer) {
22460
22783
  return this.encode(message, writer).ldelim();
22461
22784
  };
22462
- PropertySetRequest.decode = function decode(reader, length, error) {
22785
+ SideDataSetRequest.decode = function decode(reader, length, error) {
22463
22786
  if (!(reader instanceof $Reader))
22464
22787
  reader = $Reader.create(reader);
22465
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.PropertySetRequest();
22788
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.SideDataSetRequest();
22466
22789
  while (reader.pos < end) {
22467
22790
  let tag = reader.uint32();
22468
22791
  if (tag === error)
22469
22792
  break;
22470
22793
  switch (tag >>> 3) {
22471
22794
  case 1: {
22472
- message.domain = $root.sesame.v1.common.PropertyDomain.decode(reader, reader.uint32());
22795
+ message.compositorId = reader.string();
22473
22796
  break;
22474
22797
  }
22475
22798
  case 2: {
22476
- message.address = reader.string();
22477
- break;
22478
- }
22479
- case 3: {
22480
- message.property = reader.string();
22481
- break;
22482
- }
22483
- case 4: {
22484
- message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
22799
+ message.sideData = $root.sesame.v1.sidedata.SideData.decode(reader, reader.uint32());
22485
22800
  break;
22486
22801
  }
22487
22802
  default:
@@ -22491,36 +22806,276 @@ var sesame = $root.sesame = (() => {
22491
22806
  }
22492
22807
  return message;
22493
22808
  };
22494
- PropertySetRequest.decodeDelimited = function decodeDelimited(reader) {
22809
+ SideDataSetRequest.decodeDelimited = function decodeDelimited(reader) {
22495
22810
  if (!(reader instanceof $Reader))
22496
22811
  reader = new $Reader(reader);
22497
22812
  return this.decode(reader, reader.uint32());
22498
22813
  };
22499
- PropertySetRequest.verify = function verify(message) {
22814
+ SideDataSetRequest.verify = function verify(message) {
22500
22815
  if (typeof message !== "object" || message === null)
22501
22816
  return "object expected";
22502
- if (message.domain != null && message.hasOwnProperty("domain")) {
22503
- let error = $root.sesame.v1.common.PropertyDomain.verify(message.domain);
22504
- if (error)
22505
- return "domain." + error;
22506
- }
22507
- if (message.address != null && message.hasOwnProperty("address")) {
22508
- if (!$util.isString(message.address))
22509
- return "address: string expected";
22510
- }
22511
- if (message.property != null && message.hasOwnProperty("property")) {
22512
- if (!$util.isString(message.property))
22513
- return "property: string expected";
22817
+ if (message.compositorId != null && message.hasOwnProperty("compositorId")) {
22818
+ if (!$util.isString(message.compositorId))
22819
+ return "compositorId: string expected";
22514
22820
  }
22515
- if (message.value != null && message.hasOwnProperty("value")) {
22516
- let error = $root.sesame.v1.common.PropValue.verify(message.value);
22821
+ if (message.sideData != null && message.hasOwnProperty("sideData")) {
22822
+ let error = $root.sesame.v1.sidedata.SideData.verify(message.sideData);
22517
22823
  if (error)
22518
- return "value." + error;
22824
+ return "sideData." + error;
22519
22825
  }
22520
22826
  return null;
22521
22827
  };
22522
- PropertySetRequest.fromObject = function fromObject(object) {
22523
- if (object instanceof $root.sesame.v1.compositor.PropertySetRequest)
22828
+ SideDataSetRequest.fromObject = function fromObject(object) {
22829
+ if (object instanceof $root.sesame.v1.compositor.SideDataSetRequest)
22830
+ return object;
22831
+ let message = new $root.sesame.v1.compositor.SideDataSetRequest();
22832
+ if (object.compositorId != null)
22833
+ message.compositorId = String(object.compositorId);
22834
+ if (object.sideData != null) {
22835
+ if (typeof object.sideData !== "object")
22836
+ throw TypeError(".sesame.v1.compositor.SideDataSetRequest.sideData: object expected");
22837
+ message.sideData = $root.sesame.v1.sidedata.SideData.fromObject(object.sideData);
22838
+ }
22839
+ return message;
22840
+ };
22841
+ SideDataSetRequest.toObject = function toObject(message, options) {
22842
+ if (!options)
22843
+ options = {};
22844
+ let object = {};
22845
+ if (options.defaults) {
22846
+ object.compositorId = "";
22847
+ object.sideData = null;
22848
+ }
22849
+ if (message.compositorId != null && message.hasOwnProperty("compositorId"))
22850
+ object.compositorId = message.compositorId;
22851
+ if (message.sideData != null && message.hasOwnProperty("sideData"))
22852
+ object.sideData = $root.sesame.v1.sidedata.SideData.toObject(message.sideData, options);
22853
+ return object;
22854
+ };
22855
+ SideDataSetRequest.prototype.toJSON = function toJSON() {
22856
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
22857
+ };
22858
+ SideDataSetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
22859
+ if (typeUrlPrefix === void 0) {
22860
+ typeUrlPrefix = "type.googleapis.com";
22861
+ }
22862
+ return typeUrlPrefix + "/sesame.v1.compositor.SideDataSetRequest";
22863
+ };
22864
+ return SideDataSetRequest;
22865
+ }();
22866
+ compositor.SideDataRemoveRequest = function() {
22867
+ function SideDataRemoveRequest(properties) {
22868
+ if (properties) {
22869
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
22870
+ if (properties[keys[i]] != null)
22871
+ this[keys[i]] = properties[keys[i]];
22872
+ }
22873
+ }
22874
+ SideDataRemoveRequest.prototype.compositorId = "";
22875
+ SideDataRemoveRequest.prototype.id = "";
22876
+ SideDataRemoveRequest.create = function create(properties) {
22877
+ return new SideDataRemoveRequest(properties);
22878
+ };
22879
+ SideDataRemoveRequest.encode = function encode(message, writer) {
22880
+ if (!writer)
22881
+ writer = $Writer.create();
22882
+ if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
22883
+ writer.uint32(
22884
+ /* id 1, wireType 2 =*/
22885
+ 10
22886
+ ).string(message.compositorId);
22887
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
22888
+ writer.uint32(
22889
+ /* id 2, wireType 2 =*/
22890
+ 18
22891
+ ).string(message.id);
22892
+ return writer;
22893
+ };
22894
+ SideDataRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) {
22895
+ return this.encode(message, writer).ldelim();
22896
+ };
22897
+ SideDataRemoveRequest.decode = function decode(reader, length, error) {
22898
+ if (!(reader instanceof $Reader))
22899
+ reader = $Reader.create(reader);
22900
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.SideDataRemoveRequest();
22901
+ while (reader.pos < end) {
22902
+ let tag = reader.uint32();
22903
+ if (tag === error)
22904
+ break;
22905
+ switch (tag >>> 3) {
22906
+ case 1: {
22907
+ message.compositorId = reader.string();
22908
+ break;
22909
+ }
22910
+ case 2: {
22911
+ message.id = reader.string();
22912
+ break;
22913
+ }
22914
+ default:
22915
+ reader.skipType(tag & 7);
22916
+ break;
22917
+ }
22918
+ }
22919
+ return message;
22920
+ };
22921
+ SideDataRemoveRequest.decodeDelimited = function decodeDelimited(reader) {
22922
+ if (!(reader instanceof $Reader))
22923
+ reader = new $Reader(reader);
22924
+ return this.decode(reader, reader.uint32());
22925
+ };
22926
+ SideDataRemoveRequest.verify = function verify(message) {
22927
+ if (typeof message !== "object" || message === null)
22928
+ return "object expected";
22929
+ if (message.compositorId != null && message.hasOwnProperty("compositorId")) {
22930
+ if (!$util.isString(message.compositorId))
22931
+ return "compositorId: string expected";
22932
+ }
22933
+ if (message.id != null && message.hasOwnProperty("id")) {
22934
+ if (!$util.isString(message.id))
22935
+ return "id: string expected";
22936
+ }
22937
+ return null;
22938
+ };
22939
+ SideDataRemoveRequest.fromObject = function fromObject(object) {
22940
+ if (object instanceof $root.sesame.v1.compositor.SideDataRemoveRequest)
22941
+ return object;
22942
+ let message = new $root.sesame.v1.compositor.SideDataRemoveRequest();
22943
+ if (object.compositorId != null)
22944
+ message.compositorId = String(object.compositorId);
22945
+ if (object.id != null)
22946
+ message.id = String(object.id);
22947
+ return message;
22948
+ };
22949
+ SideDataRemoveRequest.toObject = function toObject(message, options) {
22950
+ if (!options)
22951
+ options = {};
22952
+ let object = {};
22953
+ if (options.defaults) {
22954
+ object.compositorId = "";
22955
+ object.id = "";
22956
+ }
22957
+ if (message.compositorId != null && message.hasOwnProperty("compositorId"))
22958
+ object.compositorId = message.compositorId;
22959
+ if (message.id != null && message.hasOwnProperty("id"))
22960
+ object.id = message.id;
22961
+ return object;
22962
+ };
22963
+ SideDataRemoveRequest.prototype.toJSON = function toJSON() {
22964
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
22965
+ };
22966
+ SideDataRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
22967
+ if (typeUrlPrefix === void 0) {
22968
+ typeUrlPrefix = "type.googleapis.com";
22969
+ }
22970
+ return typeUrlPrefix + "/sesame.v1.compositor.SideDataRemoveRequest";
22971
+ };
22972
+ return SideDataRemoveRequest;
22973
+ }();
22974
+ compositor.PropertySetRequest = function() {
22975
+ function PropertySetRequest(properties) {
22976
+ if (properties) {
22977
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
22978
+ if (properties[keys[i]] != null)
22979
+ this[keys[i]] = properties[keys[i]];
22980
+ }
22981
+ }
22982
+ PropertySetRequest.prototype.domain = null;
22983
+ PropertySetRequest.prototype.address = "";
22984
+ PropertySetRequest.prototype.property = "";
22985
+ PropertySetRequest.prototype.value = null;
22986
+ PropertySetRequest.create = function create(properties) {
22987
+ return new PropertySetRequest(properties);
22988
+ };
22989
+ PropertySetRequest.encode = function encode(message, writer) {
22990
+ if (!writer)
22991
+ writer = $Writer.create();
22992
+ if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
22993
+ $root.sesame.v1.common.PropertyDomain.encode(message.domain, writer.uint32(
22994
+ /* id 1, wireType 2 =*/
22995
+ 10
22996
+ ).fork()).ldelim();
22997
+ if (message.address != null && Object.hasOwnProperty.call(message, "address"))
22998
+ writer.uint32(
22999
+ /* id 2, wireType 2 =*/
23000
+ 18
23001
+ ).string(message.address);
23002
+ if (message.property != null && Object.hasOwnProperty.call(message, "property"))
23003
+ writer.uint32(
23004
+ /* id 3, wireType 2 =*/
23005
+ 26
23006
+ ).string(message.property);
23007
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
23008
+ $root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
23009
+ /* id 4, wireType 2 =*/
23010
+ 34
23011
+ ).fork()).ldelim();
23012
+ return writer;
23013
+ };
23014
+ PropertySetRequest.encodeDelimited = function encodeDelimited(message, writer) {
23015
+ return this.encode(message, writer).ldelim();
23016
+ };
23017
+ PropertySetRequest.decode = function decode(reader, length, error) {
23018
+ if (!(reader instanceof $Reader))
23019
+ reader = $Reader.create(reader);
23020
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.PropertySetRequest();
23021
+ while (reader.pos < end) {
23022
+ let tag = reader.uint32();
23023
+ if (tag === error)
23024
+ break;
23025
+ switch (tag >>> 3) {
23026
+ case 1: {
23027
+ message.domain = $root.sesame.v1.common.PropertyDomain.decode(reader, reader.uint32());
23028
+ break;
23029
+ }
23030
+ case 2: {
23031
+ message.address = reader.string();
23032
+ break;
23033
+ }
23034
+ case 3: {
23035
+ message.property = reader.string();
23036
+ break;
23037
+ }
23038
+ case 4: {
23039
+ message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
23040
+ break;
23041
+ }
23042
+ default:
23043
+ reader.skipType(tag & 7);
23044
+ break;
23045
+ }
23046
+ }
23047
+ return message;
23048
+ };
23049
+ PropertySetRequest.decodeDelimited = function decodeDelimited(reader) {
23050
+ if (!(reader instanceof $Reader))
23051
+ reader = new $Reader(reader);
23052
+ return this.decode(reader, reader.uint32());
23053
+ };
23054
+ PropertySetRequest.verify = function verify(message) {
23055
+ if (typeof message !== "object" || message === null)
23056
+ return "object expected";
23057
+ if (message.domain != null && message.hasOwnProperty("domain")) {
23058
+ let error = $root.sesame.v1.common.PropertyDomain.verify(message.domain);
23059
+ if (error)
23060
+ return "domain." + error;
23061
+ }
23062
+ if (message.address != null && message.hasOwnProperty("address")) {
23063
+ if (!$util.isString(message.address))
23064
+ return "address: string expected";
23065
+ }
23066
+ if (message.property != null && message.hasOwnProperty("property")) {
23067
+ if (!$util.isString(message.property))
23068
+ return "property: string expected";
23069
+ }
23070
+ if (message.value != null && message.hasOwnProperty("value")) {
23071
+ let error = $root.sesame.v1.common.PropValue.verify(message.value);
23072
+ if (error)
23073
+ return "value." + error;
23074
+ }
23075
+ return null;
23076
+ };
23077
+ PropertySetRequest.fromObject = function fromObject(object) {
23078
+ if (object instanceof $root.sesame.v1.compositor.PropertySetRequest)
22524
23079
  return object;
22525
23080
  let message = new $root.sesame.v1.compositor.PropertySetRequest();
22526
23081
  if (object.domain != null) {
@@ -22566,100 +23121,879 @@ var sesame = $root.sesame = (() => {
22566
23121
  if (typeUrlPrefix === void 0) {
22567
23122
  typeUrlPrefix = "type.googleapis.com";
22568
23123
  }
22569
- return typeUrlPrefix + "/sesame.v1.compositor.PropertySetRequest";
23124
+ return typeUrlPrefix + "/sesame.v1.compositor.PropertySetRequest";
23125
+ };
23126
+ return PropertySetRequest;
23127
+ }();
23128
+ compositor.PropertyAnimateRequest = function() {
23129
+ function PropertyAnimateRequest(properties) {
23130
+ this.keyframes = [];
23131
+ if (properties) {
23132
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23133
+ if (properties[keys[i]] != null)
23134
+ this[keys[i]] = properties[keys[i]];
23135
+ }
23136
+ }
23137
+ PropertyAnimateRequest.prototype.domain = null;
23138
+ PropertyAnimateRequest.prototype.address = "";
23139
+ PropertyAnimateRequest.prototype.property = "";
23140
+ PropertyAnimateRequest.prototype.keyframes = $util.emptyArray;
23141
+ PropertyAnimateRequest.prototype.before = 0;
23142
+ PropertyAnimateRequest.prototype.after = 0;
23143
+ PropertyAnimateRequest.create = function create(properties) {
23144
+ return new PropertyAnimateRequest(properties);
23145
+ };
23146
+ PropertyAnimateRequest.encode = function encode(message, writer) {
23147
+ if (!writer)
23148
+ writer = $Writer.create();
23149
+ if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
23150
+ $root.sesame.v1.common.PropertyDomain.encode(message.domain, writer.uint32(
23151
+ /* id 1, wireType 2 =*/
23152
+ 10
23153
+ ).fork()).ldelim();
23154
+ if (message.address != null && Object.hasOwnProperty.call(message, "address"))
23155
+ writer.uint32(
23156
+ /* id 2, wireType 2 =*/
23157
+ 18
23158
+ ).string(message.address);
23159
+ if (message.property != null && Object.hasOwnProperty.call(message, "property"))
23160
+ writer.uint32(
23161
+ /* id 3, wireType 2 =*/
23162
+ 26
23163
+ ).string(message.property);
23164
+ if (message.keyframes != null && message.keyframes.length)
23165
+ for (let i = 0; i < message.keyframes.length; ++i)
23166
+ $root.sesame.v1.compositor.KeyFrame.encode(message.keyframes[i], writer.uint32(
23167
+ /* id 4, wireType 2 =*/
23168
+ 34
23169
+ ).fork()).ldelim();
23170
+ if (message.before != null && Object.hasOwnProperty.call(message, "before"))
23171
+ writer.uint32(
23172
+ /* id 5, wireType 0 =*/
23173
+ 40
23174
+ ).int32(message.before);
23175
+ if (message.after != null && Object.hasOwnProperty.call(message, "after"))
23176
+ writer.uint32(
23177
+ /* id 6, wireType 0 =*/
23178
+ 48
23179
+ ).int32(message.after);
23180
+ return writer;
23181
+ };
23182
+ PropertyAnimateRequest.encodeDelimited = function encodeDelimited(message, writer) {
23183
+ return this.encode(message, writer).ldelim();
23184
+ };
23185
+ PropertyAnimateRequest.decode = function decode(reader, length, error) {
23186
+ if (!(reader instanceof $Reader))
23187
+ reader = $Reader.create(reader);
23188
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.PropertyAnimateRequest();
23189
+ while (reader.pos < end) {
23190
+ let tag = reader.uint32();
23191
+ if (tag === error)
23192
+ break;
23193
+ switch (tag >>> 3) {
23194
+ case 1: {
23195
+ message.domain = $root.sesame.v1.common.PropertyDomain.decode(reader, reader.uint32());
23196
+ break;
23197
+ }
23198
+ case 2: {
23199
+ message.address = reader.string();
23200
+ break;
23201
+ }
23202
+ case 3: {
23203
+ message.property = reader.string();
23204
+ break;
23205
+ }
23206
+ case 4: {
23207
+ if (!(message.keyframes && message.keyframes.length))
23208
+ message.keyframes = [];
23209
+ message.keyframes.push($root.sesame.v1.compositor.KeyFrame.decode(reader, reader.uint32()));
23210
+ break;
23211
+ }
23212
+ case 5: {
23213
+ message.before = reader.int32();
23214
+ break;
23215
+ }
23216
+ case 6: {
23217
+ message.after = reader.int32();
23218
+ break;
23219
+ }
23220
+ default:
23221
+ reader.skipType(tag & 7);
23222
+ break;
23223
+ }
23224
+ }
23225
+ return message;
23226
+ };
23227
+ PropertyAnimateRequest.decodeDelimited = function decodeDelimited(reader) {
23228
+ if (!(reader instanceof $Reader))
23229
+ reader = new $Reader(reader);
23230
+ return this.decode(reader, reader.uint32());
23231
+ };
23232
+ PropertyAnimateRequest.verify = function verify(message) {
23233
+ if (typeof message !== "object" || message === null)
23234
+ return "object expected";
23235
+ if (message.domain != null && message.hasOwnProperty("domain")) {
23236
+ let error = $root.sesame.v1.common.PropertyDomain.verify(message.domain);
23237
+ if (error)
23238
+ return "domain." + error;
23239
+ }
23240
+ if (message.address != null && message.hasOwnProperty("address")) {
23241
+ if (!$util.isString(message.address))
23242
+ return "address: string expected";
23243
+ }
23244
+ if (message.property != null && message.hasOwnProperty("property")) {
23245
+ if (!$util.isString(message.property))
23246
+ return "property: string expected";
23247
+ }
23248
+ if (message.keyframes != null && message.hasOwnProperty("keyframes")) {
23249
+ if (!Array.isArray(message.keyframes))
23250
+ return "keyframes: array expected";
23251
+ for (let i = 0; i < message.keyframes.length; ++i) {
23252
+ let error = $root.sesame.v1.compositor.KeyFrame.verify(message.keyframes[i]);
23253
+ if (error)
23254
+ return "keyframes." + error;
23255
+ }
23256
+ }
23257
+ if (message.before != null && message.hasOwnProperty("before"))
23258
+ switch (message.before) {
23259
+ default:
23260
+ return "before: enum value expected";
23261
+ case 0:
23262
+ case 1:
23263
+ case 2:
23264
+ case 3:
23265
+ break;
23266
+ }
23267
+ if (message.after != null && message.hasOwnProperty("after"))
23268
+ switch (message.after) {
23269
+ default:
23270
+ return "after: enum value expected";
23271
+ case 0:
23272
+ case 1:
23273
+ case 2:
23274
+ case 3:
23275
+ break;
23276
+ }
23277
+ return null;
23278
+ };
23279
+ PropertyAnimateRequest.fromObject = function fromObject(object) {
23280
+ if (object instanceof $root.sesame.v1.compositor.PropertyAnimateRequest)
23281
+ return object;
23282
+ let message = new $root.sesame.v1.compositor.PropertyAnimateRequest();
23283
+ if (object.domain != null) {
23284
+ if (typeof object.domain !== "object")
23285
+ throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.domain: object expected");
23286
+ message.domain = $root.sesame.v1.common.PropertyDomain.fromObject(object.domain);
23287
+ }
23288
+ if (object.address != null)
23289
+ message.address = String(object.address);
23290
+ if (object.property != null)
23291
+ message.property = String(object.property);
23292
+ if (object.keyframes) {
23293
+ if (!Array.isArray(object.keyframes))
23294
+ throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: array expected");
23295
+ message.keyframes = [];
23296
+ for (let i = 0; i < object.keyframes.length; ++i) {
23297
+ if (typeof object.keyframes[i] !== "object")
23298
+ throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: object expected");
23299
+ message.keyframes[i] = $root.sesame.v1.compositor.KeyFrame.fromObject(object.keyframes[i]);
23300
+ }
23301
+ }
23302
+ switch (object.before) {
23303
+ default:
23304
+ if (typeof object.before === "number") {
23305
+ message.before = object.before;
23306
+ break;
23307
+ }
23308
+ break;
23309
+ case "ANIM_MODE_CONSTANT":
23310
+ case 0:
23311
+ message.before = 0;
23312
+ break;
23313
+ case "ANIM_MODE_STATE_FROM":
23314
+ case 1:
23315
+ message.before = 1;
23316
+ break;
23317
+ case "ANIM_MODE_LOOP":
23318
+ case 2:
23319
+ message.before = 2;
23320
+ break;
23321
+ case "ANIM_MODE_BOUNCE":
23322
+ case 3:
23323
+ message.before = 3;
23324
+ break;
23325
+ }
23326
+ switch (object.after) {
23327
+ default:
23328
+ if (typeof object.after === "number") {
23329
+ message.after = object.after;
23330
+ break;
23331
+ }
23332
+ break;
23333
+ case "ANIM_MODE_CONSTANT":
23334
+ case 0:
23335
+ message.after = 0;
23336
+ break;
23337
+ case "ANIM_MODE_STATE_FROM":
23338
+ case 1:
23339
+ message.after = 1;
23340
+ break;
23341
+ case "ANIM_MODE_LOOP":
23342
+ case 2:
23343
+ message.after = 2;
23344
+ break;
23345
+ case "ANIM_MODE_BOUNCE":
23346
+ case 3:
23347
+ message.after = 3;
23348
+ break;
23349
+ }
23350
+ return message;
23351
+ };
23352
+ PropertyAnimateRequest.toObject = function toObject(message, options) {
23353
+ if (!options)
23354
+ options = {};
23355
+ let object = {};
23356
+ if (options.arrays || options.defaults)
23357
+ object.keyframes = [];
23358
+ if (options.defaults) {
23359
+ object.domain = null;
23360
+ object.address = "";
23361
+ object.property = "";
23362
+ object.before = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
23363
+ object.after = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
23364
+ }
23365
+ if (message.domain != null && message.hasOwnProperty("domain"))
23366
+ object.domain = $root.sesame.v1.common.PropertyDomain.toObject(message.domain, options);
23367
+ if (message.address != null && message.hasOwnProperty("address"))
23368
+ object.address = message.address;
23369
+ if (message.property != null && message.hasOwnProperty("property"))
23370
+ object.property = message.property;
23371
+ if (message.keyframes && message.keyframes.length) {
23372
+ object.keyframes = [];
23373
+ for (let j = 0; j < message.keyframes.length; ++j)
23374
+ object.keyframes[j] = $root.sesame.v1.compositor.KeyFrame.toObject(message.keyframes[j], options);
23375
+ }
23376
+ if (message.before != null && message.hasOwnProperty("before"))
23377
+ object.before = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] === void 0 ? message.before : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] : message.before;
23378
+ if (message.after != null && message.hasOwnProperty("after"))
23379
+ object.after = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] === void 0 ? message.after : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] : message.after;
23380
+ return object;
23381
+ };
23382
+ PropertyAnimateRequest.prototype.toJSON = function toJSON() {
23383
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23384
+ };
23385
+ PropertyAnimateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
23386
+ if (typeUrlPrefix === void 0) {
23387
+ typeUrlPrefix = "type.googleapis.com";
23388
+ }
23389
+ return typeUrlPrefix + "/sesame.v1.compositor.PropertyAnimateRequest";
23390
+ };
23391
+ return PropertyAnimateRequest;
23392
+ }();
23393
+ return compositor;
23394
+ }();
23395
+ v1.sidedata = function() {
23396
+ const sidedata = {};
23397
+ sidedata.AtlasEntry = function() {
23398
+ function AtlasEntry(properties) {
23399
+ if (properties) {
23400
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23401
+ if (properties[keys[i]] != null)
23402
+ this[keys[i]] = properties[keys[i]];
23403
+ }
23404
+ }
23405
+ AtlasEntry.prototype.sourceId = "";
23406
+ AtlasEntry.prototype.x = 0;
23407
+ AtlasEntry.prototype.y = 0;
23408
+ AtlasEntry.prototype.width = 0;
23409
+ AtlasEntry.prototype.height = 0;
23410
+ AtlasEntry.prototype.sourceWidth = 0;
23411
+ AtlasEntry.prototype.sourceHeight = 0;
23412
+ AtlasEntry.create = function create(properties) {
23413
+ return new AtlasEntry(properties);
23414
+ };
23415
+ AtlasEntry.encode = function encode(message, writer) {
23416
+ if (!writer)
23417
+ writer = $Writer.create();
23418
+ if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
23419
+ writer.uint32(
23420
+ /* id 1, wireType 2 =*/
23421
+ 10
23422
+ ).string(message.sourceId);
23423
+ if (message.x != null && Object.hasOwnProperty.call(message, "x"))
23424
+ writer.uint32(
23425
+ /* id 2, wireType 0 =*/
23426
+ 16
23427
+ ).uint32(message.x);
23428
+ if (message.y != null && Object.hasOwnProperty.call(message, "y"))
23429
+ writer.uint32(
23430
+ /* id 3, wireType 0 =*/
23431
+ 24
23432
+ ).uint32(message.y);
23433
+ if (message.width != null && Object.hasOwnProperty.call(message, "width"))
23434
+ writer.uint32(
23435
+ /* id 4, wireType 0 =*/
23436
+ 32
23437
+ ).uint32(message.width);
23438
+ if (message.height != null && Object.hasOwnProperty.call(message, "height"))
23439
+ writer.uint32(
23440
+ /* id 5, wireType 0 =*/
23441
+ 40
23442
+ ).uint32(message.height);
23443
+ if (message.sourceWidth != null && Object.hasOwnProperty.call(message, "sourceWidth"))
23444
+ writer.uint32(
23445
+ /* id 6, wireType 0 =*/
23446
+ 48
23447
+ ).uint32(message.sourceWidth);
23448
+ if (message.sourceHeight != null && Object.hasOwnProperty.call(message, "sourceHeight"))
23449
+ writer.uint32(
23450
+ /* id 7, wireType 0 =*/
23451
+ 56
23452
+ ).uint32(message.sourceHeight);
23453
+ return writer;
23454
+ };
23455
+ AtlasEntry.encodeDelimited = function encodeDelimited(message, writer) {
23456
+ return this.encode(message, writer).ldelim();
23457
+ };
23458
+ AtlasEntry.decode = function decode(reader, length, error) {
23459
+ if (!(reader instanceof $Reader))
23460
+ reader = $Reader.create(reader);
23461
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.AtlasEntry();
23462
+ while (reader.pos < end) {
23463
+ let tag = reader.uint32();
23464
+ if (tag === error)
23465
+ break;
23466
+ switch (tag >>> 3) {
23467
+ case 1: {
23468
+ message.sourceId = reader.string();
23469
+ break;
23470
+ }
23471
+ case 2: {
23472
+ message.x = reader.uint32();
23473
+ break;
23474
+ }
23475
+ case 3: {
23476
+ message.y = reader.uint32();
23477
+ break;
23478
+ }
23479
+ case 4: {
23480
+ message.width = reader.uint32();
23481
+ break;
23482
+ }
23483
+ case 5: {
23484
+ message.height = reader.uint32();
23485
+ break;
23486
+ }
23487
+ case 6: {
23488
+ message.sourceWidth = reader.uint32();
23489
+ break;
23490
+ }
23491
+ case 7: {
23492
+ message.sourceHeight = reader.uint32();
23493
+ break;
23494
+ }
23495
+ default:
23496
+ reader.skipType(tag & 7);
23497
+ break;
23498
+ }
23499
+ }
23500
+ return message;
23501
+ };
23502
+ AtlasEntry.decodeDelimited = function decodeDelimited(reader) {
23503
+ if (!(reader instanceof $Reader))
23504
+ reader = new $Reader(reader);
23505
+ return this.decode(reader, reader.uint32());
23506
+ };
23507
+ AtlasEntry.verify = function verify(message) {
23508
+ if (typeof message !== "object" || message === null)
23509
+ return "object expected";
23510
+ if (message.sourceId != null && message.hasOwnProperty("sourceId")) {
23511
+ if (!$util.isString(message.sourceId))
23512
+ return "sourceId: string expected";
23513
+ }
23514
+ if (message.x != null && message.hasOwnProperty("x")) {
23515
+ if (!$util.isInteger(message.x))
23516
+ return "x: integer expected";
23517
+ }
23518
+ if (message.y != null && message.hasOwnProperty("y")) {
23519
+ if (!$util.isInteger(message.y))
23520
+ return "y: integer expected";
23521
+ }
23522
+ if (message.width != null && message.hasOwnProperty("width")) {
23523
+ if (!$util.isInteger(message.width))
23524
+ return "width: integer expected";
23525
+ }
23526
+ if (message.height != null && message.hasOwnProperty("height")) {
23527
+ if (!$util.isInteger(message.height))
23528
+ return "height: integer expected";
23529
+ }
23530
+ if (message.sourceWidth != null && message.hasOwnProperty("sourceWidth")) {
23531
+ if (!$util.isInteger(message.sourceWidth))
23532
+ return "sourceWidth: integer expected";
23533
+ }
23534
+ if (message.sourceHeight != null && message.hasOwnProperty("sourceHeight")) {
23535
+ if (!$util.isInteger(message.sourceHeight))
23536
+ return "sourceHeight: integer expected";
23537
+ }
23538
+ return null;
23539
+ };
23540
+ AtlasEntry.fromObject = function fromObject(object) {
23541
+ if (object instanceof $root.sesame.v1.sidedata.AtlasEntry)
23542
+ return object;
23543
+ let message = new $root.sesame.v1.sidedata.AtlasEntry();
23544
+ if (object.sourceId != null)
23545
+ message.sourceId = String(object.sourceId);
23546
+ if (object.x != null)
23547
+ message.x = object.x >>> 0;
23548
+ if (object.y != null)
23549
+ message.y = object.y >>> 0;
23550
+ if (object.width != null)
23551
+ message.width = object.width >>> 0;
23552
+ if (object.height != null)
23553
+ message.height = object.height >>> 0;
23554
+ if (object.sourceWidth != null)
23555
+ message.sourceWidth = object.sourceWidth >>> 0;
23556
+ if (object.sourceHeight != null)
23557
+ message.sourceHeight = object.sourceHeight >>> 0;
23558
+ return message;
23559
+ };
23560
+ AtlasEntry.toObject = function toObject(message, options) {
23561
+ if (!options)
23562
+ options = {};
23563
+ let object = {};
23564
+ if (options.defaults) {
23565
+ object.sourceId = "";
23566
+ object.x = 0;
23567
+ object.y = 0;
23568
+ object.width = 0;
23569
+ object.height = 0;
23570
+ object.sourceWidth = 0;
23571
+ object.sourceHeight = 0;
23572
+ }
23573
+ if (message.sourceId != null && message.hasOwnProperty("sourceId"))
23574
+ object.sourceId = message.sourceId;
23575
+ if (message.x != null && message.hasOwnProperty("x"))
23576
+ object.x = message.x;
23577
+ if (message.y != null && message.hasOwnProperty("y"))
23578
+ object.y = message.y;
23579
+ if (message.width != null && message.hasOwnProperty("width"))
23580
+ object.width = message.width;
23581
+ if (message.height != null && message.hasOwnProperty("height"))
23582
+ object.height = message.height;
23583
+ if (message.sourceWidth != null && message.hasOwnProperty("sourceWidth"))
23584
+ object.sourceWidth = message.sourceWidth;
23585
+ if (message.sourceHeight != null && message.hasOwnProperty("sourceHeight"))
23586
+ object.sourceHeight = message.sourceHeight;
23587
+ return object;
23588
+ };
23589
+ AtlasEntry.prototype.toJSON = function toJSON() {
23590
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23591
+ };
23592
+ AtlasEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
23593
+ if (typeUrlPrefix === void 0) {
23594
+ typeUrlPrefix = "type.googleapis.com";
23595
+ }
23596
+ return typeUrlPrefix + "/sesame.v1.sidedata.AtlasEntry";
23597
+ };
23598
+ return AtlasEntry;
23599
+ }();
23600
+ sidedata.AtlasLayout = function() {
23601
+ function AtlasLayout(properties) {
23602
+ this.entries = [];
23603
+ if (properties) {
23604
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23605
+ if (properties[keys[i]] != null)
23606
+ this[keys[i]] = properties[keys[i]];
23607
+ }
23608
+ }
23609
+ AtlasLayout.prototype.width = 0;
23610
+ AtlasLayout.prototype.height = 0;
23611
+ AtlasLayout.prototype.entries = $util.emptyArray;
23612
+ AtlasLayout.create = function create(properties) {
23613
+ return new AtlasLayout(properties);
23614
+ };
23615
+ AtlasLayout.encode = function encode(message, writer) {
23616
+ if (!writer)
23617
+ writer = $Writer.create();
23618
+ if (message.width != null && Object.hasOwnProperty.call(message, "width"))
23619
+ writer.uint32(
23620
+ /* id 1, wireType 0 =*/
23621
+ 8
23622
+ ).uint32(message.width);
23623
+ if (message.height != null && Object.hasOwnProperty.call(message, "height"))
23624
+ writer.uint32(
23625
+ /* id 2, wireType 0 =*/
23626
+ 16
23627
+ ).uint32(message.height);
23628
+ if (message.entries != null && message.entries.length)
23629
+ for (let i = 0; i < message.entries.length; ++i)
23630
+ $root.sesame.v1.sidedata.AtlasEntry.encode(message.entries[i], writer.uint32(
23631
+ /* id 3, wireType 2 =*/
23632
+ 26
23633
+ ).fork()).ldelim();
23634
+ return writer;
23635
+ };
23636
+ AtlasLayout.encodeDelimited = function encodeDelimited(message, writer) {
23637
+ return this.encode(message, writer).ldelim();
23638
+ };
23639
+ AtlasLayout.decode = function decode(reader, length, error) {
23640
+ if (!(reader instanceof $Reader))
23641
+ reader = $Reader.create(reader);
23642
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.AtlasLayout();
23643
+ while (reader.pos < end) {
23644
+ let tag = reader.uint32();
23645
+ if (tag === error)
23646
+ break;
23647
+ switch (tag >>> 3) {
23648
+ case 1: {
23649
+ message.width = reader.uint32();
23650
+ break;
23651
+ }
23652
+ case 2: {
23653
+ message.height = reader.uint32();
23654
+ break;
23655
+ }
23656
+ case 3: {
23657
+ if (!(message.entries && message.entries.length))
23658
+ message.entries = [];
23659
+ message.entries.push($root.sesame.v1.sidedata.AtlasEntry.decode(reader, reader.uint32()));
23660
+ break;
23661
+ }
23662
+ default:
23663
+ reader.skipType(tag & 7);
23664
+ break;
23665
+ }
23666
+ }
23667
+ return message;
23668
+ };
23669
+ AtlasLayout.decodeDelimited = function decodeDelimited(reader) {
23670
+ if (!(reader instanceof $Reader))
23671
+ reader = new $Reader(reader);
23672
+ return this.decode(reader, reader.uint32());
23673
+ };
23674
+ AtlasLayout.verify = function verify(message) {
23675
+ if (typeof message !== "object" || message === null)
23676
+ return "object expected";
23677
+ if (message.width != null && message.hasOwnProperty("width")) {
23678
+ if (!$util.isInteger(message.width))
23679
+ return "width: integer expected";
23680
+ }
23681
+ if (message.height != null && message.hasOwnProperty("height")) {
23682
+ if (!$util.isInteger(message.height))
23683
+ return "height: integer expected";
23684
+ }
23685
+ if (message.entries != null && message.hasOwnProperty("entries")) {
23686
+ if (!Array.isArray(message.entries))
23687
+ return "entries: array expected";
23688
+ for (let i = 0; i < message.entries.length; ++i) {
23689
+ let error = $root.sesame.v1.sidedata.AtlasEntry.verify(message.entries[i]);
23690
+ if (error)
23691
+ return "entries." + error;
23692
+ }
23693
+ }
23694
+ return null;
23695
+ };
23696
+ AtlasLayout.fromObject = function fromObject(object) {
23697
+ if (object instanceof $root.sesame.v1.sidedata.AtlasLayout)
23698
+ return object;
23699
+ let message = new $root.sesame.v1.sidedata.AtlasLayout();
23700
+ if (object.width != null)
23701
+ message.width = object.width >>> 0;
23702
+ if (object.height != null)
23703
+ message.height = object.height >>> 0;
23704
+ if (object.entries) {
23705
+ if (!Array.isArray(object.entries))
23706
+ throw TypeError(".sesame.v1.sidedata.AtlasLayout.entries: array expected");
23707
+ message.entries = [];
23708
+ for (let i = 0; i < object.entries.length; ++i) {
23709
+ if (typeof object.entries[i] !== "object")
23710
+ throw TypeError(".sesame.v1.sidedata.AtlasLayout.entries: object expected");
23711
+ message.entries[i] = $root.sesame.v1.sidedata.AtlasEntry.fromObject(object.entries[i]);
23712
+ }
23713
+ }
23714
+ return message;
23715
+ };
23716
+ AtlasLayout.toObject = function toObject(message, options) {
23717
+ if (!options)
23718
+ options = {};
23719
+ let object = {};
23720
+ if (options.arrays || options.defaults)
23721
+ object.entries = [];
23722
+ if (options.defaults) {
23723
+ object.width = 0;
23724
+ object.height = 0;
23725
+ }
23726
+ if (message.width != null && message.hasOwnProperty("width"))
23727
+ object.width = message.width;
23728
+ if (message.height != null && message.hasOwnProperty("height"))
23729
+ object.height = message.height;
23730
+ if (message.entries && message.entries.length) {
23731
+ object.entries = [];
23732
+ for (let j = 0; j < message.entries.length; ++j)
23733
+ object.entries[j] = $root.sesame.v1.sidedata.AtlasEntry.toObject(message.entries[j], options);
23734
+ }
23735
+ return object;
23736
+ };
23737
+ AtlasLayout.prototype.toJSON = function toJSON() {
23738
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23739
+ };
23740
+ AtlasLayout.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
23741
+ if (typeUrlPrefix === void 0) {
23742
+ typeUrlPrefix = "type.googleapis.com";
23743
+ }
23744
+ return typeUrlPrefix + "/sesame.v1.sidedata.AtlasLayout";
23745
+ };
23746
+ return AtlasLayout;
23747
+ }();
23748
+ sidedata.SideData = function() {
23749
+ function SideData2(properties) {
23750
+ if (properties) {
23751
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23752
+ if (properties[keys[i]] != null)
23753
+ this[keys[i]] = properties[keys[i]];
23754
+ }
23755
+ }
23756
+ SideData2.prototype.id = "";
23757
+ SideData2.prototype.version = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
23758
+ SideData2.prototype.atlas = null;
23759
+ SideData2.prototype.json = null;
23760
+ SideData2.prototype.binary = null;
23761
+ let $oneOfFields;
23762
+ Object.defineProperty(SideData2.prototype, "payload", {
23763
+ get: $util.oneOfGetter($oneOfFields = ["atlas", "json", "binary"]),
23764
+ set: $util.oneOfSetter($oneOfFields)
23765
+ });
23766
+ SideData2.create = function create(properties) {
23767
+ return new SideData2(properties);
23768
+ };
23769
+ SideData2.encode = function encode(message, writer) {
23770
+ if (!writer)
23771
+ writer = $Writer.create();
23772
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
23773
+ writer.uint32(
23774
+ /* id 1, wireType 2 =*/
23775
+ 10
23776
+ ).string(message.id);
23777
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
23778
+ writer.uint32(
23779
+ /* id 2, wireType 0 =*/
23780
+ 16
23781
+ ).uint64(message.version);
23782
+ if (message.atlas != null && Object.hasOwnProperty.call(message, "atlas"))
23783
+ $root.sesame.v1.sidedata.AtlasLayout.encode(message.atlas, writer.uint32(
23784
+ /* id 10, wireType 2 =*/
23785
+ 82
23786
+ ).fork()).ldelim();
23787
+ if (message.json != null && Object.hasOwnProperty.call(message, "json"))
23788
+ writer.uint32(
23789
+ /* id 20, wireType 2 =*/
23790
+ 162
23791
+ ).string(message.json);
23792
+ if (message.binary != null && Object.hasOwnProperty.call(message, "binary"))
23793
+ writer.uint32(
23794
+ /* id 21, wireType 2 =*/
23795
+ 170
23796
+ ).bytes(message.binary);
23797
+ return writer;
23798
+ };
23799
+ SideData2.encodeDelimited = function encodeDelimited(message, writer) {
23800
+ return this.encode(message, writer).ldelim();
23801
+ };
23802
+ SideData2.decode = function decode(reader, length, error) {
23803
+ if (!(reader instanceof $Reader))
23804
+ reader = $Reader.create(reader);
23805
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.SideData();
23806
+ while (reader.pos < end) {
23807
+ let tag = reader.uint32();
23808
+ if (tag === error)
23809
+ break;
23810
+ switch (tag >>> 3) {
23811
+ case 1: {
23812
+ message.id = reader.string();
23813
+ break;
23814
+ }
23815
+ case 2: {
23816
+ message.version = reader.uint64();
23817
+ break;
23818
+ }
23819
+ case 10: {
23820
+ message.atlas = $root.sesame.v1.sidedata.AtlasLayout.decode(reader, reader.uint32());
23821
+ break;
23822
+ }
23823
+ case 20: {
23824
+ message.json = reader.string();
23825
+ break;
23826
+ }
23827
+ case 21: {
23828
+ message.binary = reader.bytes();
23829
+ break;
23830
+ }
23831
+ default:
23832
+ reader.skipType(tag & 7);
23833
+ break;
23834
+ }
23835
+ }
23836
+ return message;
23837
+ };
23838
+ SideData2.decodeDelimited = function decodeDelimited(reader) {
23839
+ if (!(reader instanceof $Reader))
23840
+ reader = new $Reader(reader);
23841
+ return this.decode(reader, reader.uint32());
23842
+ };
23843
+ SideData2.verify = function verify(message) {
23844
+ if (typeof message !== "object" || message === null)
23845
+ return "object expected";
23846
+ let properties = {};
23847
+ if (message.id != null && message.hasOwnProperty("id")) {
23848
+ if (!$util.isString(message.id))
23849
+ return "id: string expected";
23850
+ }
23851
+ if (message.version != null && message.hasOwnProperty("version")) {
23852
+ if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high)))
23853
+ return "version: integer|Long expected";
23854
+ }
23855
+ if (message.atlas != null && message.hasOwnProperty("atlas")) {
23856
+ properties.payload = 1;
23857
+ {
23858
+ let error = $root.sesame.v1.sidedata.AtlasLayout.verify(message.atlas);
23859
+ if (error)
23860
+ return "atlas." + error;
23861
+ }
23862
+ }
23863
+ if (message.json != null && message.hasOwnProperty("json")) {
23864
+ if (properties.payload === 1)
23865
+ return "payload: multiple values";
23866
+ properties.payload = 1;
23867
+ if (!$util.isString(message.json))
23868
+ return "json: string expected";
23869
+ }
23870
+ if (message.binary != null && message.hasOwnProperty("binary")) {
23871
+ if (properties.payload === 1)
23872
+ return "payload: multiple values";
23873
+ properties.payload = 1;
23874
+ if (!(message.binary && typeof message.binary.length === "number" || $util.isString(message.binary)))
23875
+ return "binary: buffer expected";
23876
+ }
23877
+ return null;
23878
+ };
23879
+ SideData2.fromObject = function fromObject(object) {
23880
+ if (object instanceof $root.sesame.v1.sidedata.SideData)
23881
+ return object;
23882
+ let message = new $root.sesame.v1.sidedata.SideData();
23883
+ if (object.id != null)
23884
+ message.id = String(object.id);
23885
+ if (object.version != null) {
23886
+ if ($util.Long)
23887
+ (message.version = $util.Long.fromValue(object.version)).unsigned = true;
23888
+ else if (typeof object.version === "string")
23889
+ message.version = parseInt(object.version, 10);
23890
+ else if (typeof object.version === "number")
23891
+ message.version = object.version;
23892
+ else if (typeof object.version === "object")
23893
+ message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(true);
23894
+ }
23895
+ if (object.atlas != null) {
23896
+ if (typeof object.atlas !== "object")
23897
+ throw TypeError(".sesame.v1.sidedata.SideData.atlas: object expected");
23898
+ message.atlas = $root.sesame.v1.sidedata.AtlasLayout.fromObject(object.atlas);
23899
+ }
23900
+ if (object.json != null)
23901
+ message.json = String(object.json);
23902
+ if (object.binary != null) {
23903
+ if (typeof object.binary === "string")
23904
+ $util.base64.decode(object.binary, message.binary = $util.newBuffer($util.base64.length(object.binary)), 0);
23905
+ else if (object.binary.length >= 0)
23906
+ message.binary = object.binary;
23907
+ }
23908
+ return message;
23909
+ };
23910
+ SideData2.toObject = function toObject(message, options) {
23911
+ if (!options)
23912
+ options = {};
23913
+ let object = {};
23914
+ if (options.defaults) {
23915
+ object.id = "";
23916
+ if ($util.Long) {
23917
+ let long = new $util.Long(0, 0, true);
23918
+ object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
23919
+ } else
23920
+ object.version = options.longs === String ? "0" : 0;
23921
+ }
23922
+ if (message.id != null && message.hasOwnProperty("id"))
23923
+ object.id = message.id;
23924
+ if (message.version != null && message.hasOwnProperty("version"))
23925
+ if (typeof message.version === "number")
23926
+ object.version = options.longs === String ? String(message.version) : message.version;
23927
+ else
23928
+ object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber(true) : message.version;
23929
+ if (message.atlas != null && message.hasOwnProperty("atlas")) {
23930
+ object.atlas = $root.sesame.v1.sidedata.AtlasLayout.toObject(message.atlas, options);
23931
+ if (options.oneofs)
23932
+ object.payload = "atlas";
23933
+ }
23934
+ if (message.json != null && message.hasOwnProperty("json")) {
23935
+ object.json = message.json;
23936
+ if (options.oneofs)
23937
+ object.payload = "json";
23938
+ }
23939
+ if (message.binary != null && message.hasOwnProperty("binary")) {
23940
+ object.binary = options.bytes === String ? $util.base64.encode(message.binary, 0, message.binary.length) : options.bytes === Array ? Array.prototype.slice.call(message.binary) : message.binary;
23941
+ if (options.oneofs)
23942
+ object.payload = "binary";
23943
+ }
23944
+ return object;
23945
+ };
23946
+ SideData2.prototype.toJSON = function toJSON() {
23947
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23948
+ };
23949
+ SideData2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
23950
+ if (typeUrlPrefix === void 0) {
23951
+ typeUrlPrefix = "type.googleapis.com";
23952
+ }
23953
+ return typeUrlPrefix + "/sesame.v1.sidedata.SideData";
22570
23954
  };
22571
- return PropertySetRequest;
23955
+ return SideData2;
22572
23956
  }();
22573
- compositor.PropertyAnimateRequest = function() {
22574
- function PropertyAnimateRequest(properties) {
22575
- this.keyframes = [];
23957
+ sidedata.SideDataSet = function() {
23958
+ function SideDataSet(properties) {
23959
+ this.entries = [];
22576
23960
  if (properties) {
22577
23961
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
22578
23962
  if (properties[keys[i]] != null)
22579
23963
  this[keys[i]] = properties[keys[i]];
22580
23964
  }
22581
23965
  }
22582
- PropertyAnimateRequest.prototype.domain = null;
22583
- PropertyAnimateRequest.prototype.address = "";
22584
- PropertyAnimateRequest.prototype.property = "";
22585
- PropertyAnimateRequest.prototype.keyframes = $util.emptyArray;
22586
- PropertyAnimateRequest.prototype.before = 0;
22587
- PropertyAnimateRequest.prototype.after = 0;
22588
- PropertyAnimateRequest.create = function create(properties) {
22589
- return new PropertyAnimateRequest(properties);
23966
+ SideDataSet.prototype.entries = $util.emptyArray;
23967
+ SideDataSet.create = function create(properties) {
23968
+ return new SideDataSet(properties);
22590
23969
  };
22591
- PropertyAnimateRequest.encode = function encode(message, writer) {
23970
+ SideDataSet.encode = function encode(message, writer) {
22592
23971
  if (!writer)
22593
23972
  writer = $Writer.create();
22594
- if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
22595
- $root.sesame.v1.common.PropertyDomain.encode(message.domain, writer.uint32(
22596
- /* id 1, wireType 2 =*/
22597
- 10
22598
- ).fork()).ldelim();
22599
- if (message.address != null && Object.hasOwnProperty.call(message, "address"))
22600
- writer.uint32(
22601
- /* id 2, wireType 2 =*/
22602
- 18
22603
- ).string(message.address);
22604
- if (message.property != null && Object.hasOwnProperty.call(message, "property"))
22605
- writer.uint32(
22606
- /* id 3, wireType 2 =*/
22607
- 26
22608
- ).string(message.property);
22609
- if (message.keyframes != null && message.keyframes.length)
22610
- for (let i = 0; i < message.keyframes.length; ++i)
22611
- $root.sesame.v1.compositor.KeyFrame.encode(message.keyframes[i], writer.uint32(
22612
- /* id 4, wireType 2 =*/
22613
- 34
23973
+ if (message.entries != null && message.entries.length)
23974
+ for (let i = 0; i < message.entries.length; ++i)
23975
+ $root.sesame.v1.sidedata.SideData.encode(message.entries[i], writer.uint32(
23976
+ /* id 1, wireType 2 =*/
23977
+ 10
22614
23978
  ).fork()).ldelim();
22615
- if (message.before != null && Object.hasOwnProperty.call(message, "before"))
22616
- writer.uint32(
22617
- /* id 5, wireType 0 =*/
22618
- 40
22619
- ).int32(message.before);
22620
- if (message.after != null && Object.hasOwnProperty.call(message, "after"))
22621
- writer.uint32(
22622
- /* id 6, wireType 0 =*/
22623
- 48
22624
- ).int32(message.after);
22625
23979
  return writer;
22626
23980
  };
22627
- PropertyAnimateRequest.encodeDelimited = function encodeDelimited(message, writer) {
23981
+ SideDataSet.encodeDelimited = function encodeDelimited(message, writer) {
22628
23982
  return this.encode(message, writer).ldelim();
22629
23983
  };
22630
- PropertyAnimateRequest.decode = function decode(reader, length, error) {
23984
+ SideDataSet.decode = function decode(reader, length, error) {
22631
23985
  if (!(reader instanceof $Reader))
22632
23986
  reader = $Reader.create(reader);
22633
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.PropertyAnimateRequest();
23987
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.SideDataSet();
22634
23988
  while (reader.pos < end) {
22635
23989
  let tag = reader.uint32();
22636
23990
  if (tag === error)
22637
23991
  break;
22638
23992
  switch (tag >>> 3) {
22639
23993
  case 1: {
22640
- message.domain = $root.sesame.v1.common.PropertyDomain.decode(reader, reader.uint32());
22641
- break;
22642
- }
22643
- case 2: {
22644
- message.address = reader.string();
22645
- break;
22646
- }
22647
- case 3: {
22648
- message.property = reader.string();
22649
- break;
22650
- }
22651
- case 4: {
22652
- if (!(message.keyframes && message.keyframes.length))
22653
- message.keyframes = [];
22654
- message.keyframes.push($root.sesame.v1.compositor.KeyFrame.decode(reader, reader.uint32()));
22655
- break;
22656
- }
22657
- case 5: {
22658
- message.before = reader.int32();
22659
- break;
22660
- }
22661
- case 6: {
22662
- message.after = reader.int32();
23994
+ if (!(message.entries && message.entries.length))
23995
+ message.entries = [];
23996
+ message.entries.push($root.sesame.v1.sidedata.SideData.decode(reader, reader.uint32()));
22663
23997
  break;
22664
23998
  }
22665
23999
  default:
@@ -22669,173 +24003,66 @@ var sesame = $root.sesame = (() => {
22669
24003
  }
22670
24004
  return message;
22671
24005
  };
22672
- PropertyAnimateRequest.decodeDelimited = function decodeDelimited(reader) {
24006
+ SideDataSet.decodeDelimited = function decodeDelimited(reader) {
22673
24007
  if (!(reader instanceof $Reader))
22674
24008
  reader = new $Reader(reader);
22675
24009
  return this.decode(reader, reader.uint32());
22676
24010
  };
22677
- PropertyAnimateRequest.verify = function verify(message) {
24011
+ SideDataSet.verify = function verify(message) {
22678
24012
  if (typeof message !== "object" || message === null)
22679
24013
  return "object expected";
22680
- if (message.domain != null && message.hasOwnProperty("domain")) {
22681
- let error = $root.sesame.v1.common.PropertyDomain.verify(message.domain);
22682
- if (error)
22683
- return "domain." + error;
22684
- }
22685
- if (message.address != null && message.hasOwnProperty("address")) {
22686
- if (!$util.isString(message.address))
22687
- return "address: string expected";
22688
- }
22689
- if (message.property != null && message.hasOwnProperty("property")) {
22690
- if (!$util.isString(message.property))
22691
- return "property: string expected";
22692
- }
22693
- if (message.keyframes != null && message.hasOwnProperty("keyframes")) {
22694
- if (!Array.isArray(message.keyframes))
22695
- return "keyframes: array expected";
22696
- for (let i = 0; i < message.keyframes.length; ++i) {
22697
- let error = $root.sesame.v1.compositor.KeyFrame.verify(message.keyframes[i]);
24014
+ if (message.entries != null && message.hasOwnProperty("entries")) {
24015
+ if (!Array.isArray(message.entries))
24016
+ return "entries: array expected";
24017
+ for (let i = 0; i < message.entries.length; ++i) {
24018
+ let error = $root.sesame.v1.sidedata.SideData.verify(message.entries[i]);
22698
24019
  if (error)
22699
- return "keyframes." + error;
24020
+ return "entries." + error;
22700
24021
  }
22701
24022
  }
22702
- if (message.before != null && message.hasOwnProperty("before"))
22703
- switch (message.before) {
22704
- default:
22705
- return "before: enum value expected";
22706
- case 0:
22707
- case 1:
22708
- case 2:
22709
- case 3:
22710
- break;
22711
- }
22712
- if (message.after != null && message.hasOwnProperty("after"))
22713
- switch (message.after) {
22714
- default:
22715
- return "after: enum value expected";
22716
- case 0:
22717
- case 1:
22718
- case 2:
22719
- case 3:
22720
- break;
22721
- }
22722
24023
  return null;
22723
24024
  };
22724
- PropertyAnimateRequest.fromObject = function fromObject(object) {
22725
- if (object instanceof $root.sesame.v1.compositor.PropertyAnimateRequest)
24025
+ SideDataSet.fromObject = function fromObject(object) {
24026
+ if (object instanceof $root.sesame.v1.sidedata.SideDataSet)
22726
24027
  return object;
22727
- let message = new $root.sesame.v1.compositor.PropertyAnimateRequest();
22728
- if (object.domain != null) {
22729
- if (typeof object.domain !== "object")
22730
- throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.domain: object expected");
22731
- message.domain = $root.sesame.v1.common.PropertyDomain.fromObject(object.domain);
22732
- }
22733
- if (object.address != null)
22734
- message.address = String(object.address);
22735
- if (object.property != null)
22736
- message.property = String(object.property);
22737
- if (object.keyframes) {
22738
- if (!Array.isArray(object.keyframes))
22739
- throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: array expected");
22740
- message.keyframes = [];
22741
- for (let i = 0; i < object.keyframes.length; ++i) {
22742
- if (typeof object.keyframes[i] !== "object")
22743
- throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: object expected");
22744
- message.keyframes[i] = $root.sesame.v1.compositor.KeyFrame.fromObject(object.keyframes[i]);
24028
+ let message = new $root.sesame.v1.sidedata.SideDataSet();
24029
+ if (object.entries) {
24030
+ if (!Array.isArray(object.entries))
24031
+ throw TypeError(".sesame.v1.sidedata.SideDataSet.entries: array expected");
24032
+ message.entries = [];
24033
+ for (let i = 0; i < object.entries.length; ++i) {
24034
+ if (typeof object.entries[i] !== "object")
24035
+ throw TypeError(".sesame.v1.sidedata.SideDataSet.entries: object expected");
24036
+ message.entries[i] = $root.sesame.v1.sidedata.SideData.fromObject(object.entries[i]);
22745
24037
  }
22746
24038
  }
22747
- switch (object.before) {
22748
- default:
22749
- if (typeof object.before === "number") {
22750
- message.before = object.before;
22751
- break;
22752
- }
22753
- break;
22754
- case "ANIM_MODE_CONSTANT":
22755
- case 0:
22756
- message.before = 0;
22757
- break;
22758
- case "ANIM_MODE_STATE_FROM":
22759
- case 1:
22760
- message.before = 1;
22761
- break;
22762
- case "ANIM_MODE_LOOP":
22763
- case 2:
22764
- message.before = 2;
22765
- break;
22766
- case "ANIM_MODE_BOUNCE":
22767
- case 3:
22768
- message.before = 3;
22769
- break;
22770
- }
22771
- switch (object.after) {
22772
- default:
22773
- if (typeof object.after === "number") {
22774
- message.after = object.after;
22775
- break;
22776
- }
22777
- break;
22778
- case "ANIM_MODE_CONSTANT":
22779
- case 0:
22780
- message.after = 0;
22781
- break;
22782
- case "ANIM_MODE_STATE_FROM":
22783
- case 1:
22784
- message.after = 1;
22785
- break;
22786
- case "ANIM_MODE_LOOP":
22787
- case 2:
22788
- message.after = 2;
22789
- break;
22790
- case "ANIM_MODE_BOUNCE":
22791
- case 3:
22792
- message.after = 3;
22793
- break;
22794
- }
22795
24039
  return message;
22796
24040
  };
22797
- PropertyAnimateRequest.toObject = function toObject(message, options) {
24041
+ SideDataSet.toObject = function toObject(message, options) {
22798
24042
  if (!options)
22799
24043
  options = {};
22800
24044
  let object = {};
22801
24045
  if (options.arrays || options.defaults)
22802
- object.keyframes = [];
22803
- if (options.defaults) {
22804
- object.domain = null;
22805
- object.address = "";
22806
- object.property = "";
22807
- object.before = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
22808
- object.after = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
22809
- }
22810
- if (message.domain != null && message.hasOwnProperty("domain"))
22811
- object.domain = $root.sesame.v1.common.PropertyDomain.toObject(message.domain, options);
22812
- if (message.address != null && message.hasOwnProperty("address"))
22813
- object.address = message.address;
22814
- if (message.property != null && message.hasOwnProperty("property"))
22815
- object.property = message.property;
22816
- if (message.keyframes && message.keyframes.length) {
22817
- object.keyframes = [];
22818
- for (let j = 0; j < message.keyframes.length; ++j)
22819
- object.keyframes[j] = $root.sesame.v1.compositor.KeyFrame.toObject(message.keyframes[j], options);
24046
+ object.entries = [];
24047
+ if (message.entries && message.entries.length) {
24048
+ object.entries = [];
24049
+ for (let j = 0; j < message.entries.length; ++j)
24050
+ object.entries[j] = $root.sesame.v1.sidedata.SideData.toObject(message.entries[j], options);
22820
24051
  }
22821
- if (message.before != null && message.hasOwnProperty("before"))
22822
- object.before = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] === void 0 ? message.before : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] : message.before;
22823
- if (message.after != null && message.hasOwnProperty("after"))
22824
- object.after = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] === void 0 ? message.after : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] : message.after;
22825
24052
  return object;
22826
24053
  };
22827
- PropertyAnimateRequest.prototype.toJSON = function toJSON() {
24054
+ SideDataSet.prototype.toJSON = function toJSON() {
22828
24055
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
22829
24056
  };
22830
- PropertyAnimateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
24057
+ SideDataSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
22831
24058
  if (typeUrlPrefix === void 0) {
22832
24059
  typeUrlPrefix = "type.googleapis.com";
22833
24060
  }
22834
- return typeUrlPrefix + "/sesame.v1.compositor.PropertyAnimateRequest";
24061
+ return typeUrlPrefix + "/sesame.v1.sidedata.SideDataSet";
22835
24062
  };
22836
- return PropertyAnimateRequest;
24063
+ return SideDataSet;
22837
24064
  }();
22838
- return compositor;
24065
+ return sidedata;
22839
24066
  }();
22840
24067
  v1.jobs = function() {
22841
24068
  const jobs = {};
@@ -25765,6 +26992,9 @@ var sesame = $root.sesame = (() => {
25765
26992
  case 4:
25766
26993
  case 5:
25767
26994
  case 6:
26995
+ case 7:
26996
+ case 8:
26997
+ case 9:
25768
26998
  break;
25769
26999
  }
25770
27000
  return null;
@@ -25818,6 +27048,18 @@ var sesame = $root.sesame = (() => {
25818
27048
  case 6:
25819
27049
  message.dataType = 6;
25820
27050
  break;
27051
+ case "DATA_TYPE_OUTPUT_STATUS":
27052
+ case 7:
27053
+ message.dataType = 7;
27054
+ break;
27055
+ case "DATA_TYPE_OUTPUT_CONTROL":
27056
+ case 8:
27057
+ message.dataType = 8;
27058
+ break;
27059
+ case "DATA_TYPE_ENGINE_STATUS":
27060
+ case 9:
27061
+ message.dataType = 9;
27062
+ break;
25821
27063
  }
25822
27064
  return message;
25823
27065
  };
@@ -26366,6 +27608,7 @@ var sesame = $root.sesame = (() => {
26366
27608
  MediaFrameData.prototype.pts = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
26367
27609
  MediaFrameData.prototype.keyframe = false;
26368
27610
  MediaFrameData.prototype.codecData = null;
27611
+ MediaFrameData.prototype.sideData = null;
26369
27612
  MediaFrameData.create = function create(properties) {
26370
27613
  return new MediaFrameData(properties);
26371
27614
  };
@@ -26387,6 +27630,11 @@ var sesame = $root.sesame = (() => {
26387
27630
  /* id 3, wireType 2 =*/
26388
27631
  26
26389
27632
  ).fork()).ldelim();
27633
+ if (message.sideData != null && Object.hasOwnProperty.call(message, "sideData"))
27634
+ $root.sesame.v1.sidedata.SideDataSet.encode(message.sideData, writer.uint32(
27635
+ /* id 4, wireType 2 =*/
27636
+ 34
27637
+ ).fork()).ldelim();
26390
27638
  return writer;
26391
27639
  };
26392
27640
  MediaFrameData.encodeDelimited = function encodeDelimited(message, writer) {
@@ -26413,6 +27661,10 @@ var sesame = $root.sesame = (() => {
26413
27661
  message.codecData = $root.sesame.v1.wire.MediaCodecData.decode(reader, reader.uint32());
26414
27662
  break;
26415
27663
  }
27664
+ case 4: {
27665
+ message.sideData = $root.sesame.v1.sidedata.SideDataSet.decode(reader, reader.uint32());
27666
+ break;
27667
+ }
26416
27668
  default:
26417
27669
  reader.skipType(tag & 7);
26418
27670
  break;
@@ -26441,6 +27693,11 @@ var sesame = $root.sesame = (() => {
26441
27693
  if (error)
26442
27694
  return "codecData." + error;
26443
27695
  }
27696
+ if (message.sideData != null && message.hasOwnProperty("sideData")) {
27697
+ let error = $root.sesame.v1.sidedata.SideDataSet.verify(message.sideData);
27698
+ if (error)
27699
+ return "sideData." + error;
27700
+ }
26444
27701
  return null;
26445
27702
  };
26446
27703
  MediaFrameData.fromObject = function fromObject(object) {
@@ -26464,6 +27721,11 @@ var sesame = $root.sesame = (() => {
26464
27721
  throw TypeError(".sesame.v1.wire.MediaFrameData.codecData: object expected");
26465
27722
  message.codecData = $root.sesame.v1.wire.MediaCodecData.fromObject(object.codecData);
26466
27723
  }
27724
+ if (object.sideData != null) {
27725
+ if (typeof object.sideData !== "object")
27726
+ throw TypeError(".sesame.v1.wire.MediaFrameData.sideData: object expected");
27727
+ message.sideData = $root.sesame.v1.sidedata.SideDataSet.fromObject(object.sideData);
27728
+ }
26467
27729
  return message;
26468
27730
  };
26469
27731
  MediaFrameData.toObject = function toObject(message, options) {
@@ -26478,6 +27740,7 @@ var sesame = $root.sesame = (() => {
26478
27740
  object.pts = options.longs === String ? "0" : 0;
26479
27741
  object.keyframe = false;
26480
27742
  object.codecData = null;
27743
+ object.sideData = null;
26481
27744
  }
26482
27745
  if (message.pts != null && message.hasOwnProperty("pts"))
26483
27746
  if (typeof message.pts === "number")
@@ -26488,6 +27751,8 @@ var sesame = $root.sesame = (() => {
26488
27751
  object.keyframe = message.keyframe;
26489
27752
  if (message.codecData != null && message.hasOwnProperty("codecData"))
26490
27753
  object.codecData = $root.sesame.v1.wire.MediaCodecData.toObject(message.codecData, options);
27754
+ if (message.sideData != null && message.hasOwnProperty("sideData"))
27755
+ object.sideData = $root.sesame.v1.sidedata.SideDataSet.toObject(message.sideData, options);
26491
27756
  return object;
26492
27757
  };
26493
27758
  MediaFrameData.prototype.toJSON = function toJSON() {
@@ -26510,6 +27775,9 @@ var sesame = $root.sesame = (() => {
26510
27775
  values[valuesById[4] = "DATA_TYPE_TRANSPORT_CONTROL"] = 4;
26511
27776
  values[valuesById[5] = "DATA_TYPE_AUDIO_CONTROL"] = 5;
26512
27777
  values[valuesById[6] = "DATA_TYPE_BINARY"] = 6;
27778
+ values[valuesById[7] = "DATA_TYPE_OUTPUT_STATUS"] = 7;
27779
+ values[valuesById[8] = "DATA_TYPE_OUTPUT_CONTROL"] = 8;
27780
+ values[valuesById[9] = "DATA_TYPE_ENGINE_STATUS"] = 9;
26513
27781
  return values;
26514
27782
  }();
26515
27783
  wire.DataFrameData = function() {
@@ -26586,6 +27854,9 @@ var sesame = $root.sesame = (() => {
26586
27854
  case 4:
26587
27855
  case 5:
26588
27856
  case 6:
27857
+ case 7:
27858
+ case 8:
27859
+ case 9:
26589
27860
  break;
26590
27861
  }
26591
27862
  if (message.trackName != null && message.hasOwnProperty("trackName")) {
@@ -26633,6 +27904,18 @@ var sesame = $root.sesame = (() => {
26633
27904
  case 6:
26634
27905
  message.dataType = 6;
26635
27906
  break;
27907
+ case "DATA_TYPE_OUTPUT_STATUS":
27908
+ case 7:
27909
+ message.dataType = 7;
27910
+ break;
27911
+ case "DATA_TYPE_OUTPUT_CONTROL":
27912
+ case 8:
27913
+ message.dataType = 8;
27914
+ break;
27915
+ case "DATA_TYPE_ENGINE_STATUS":
27916
+ case 9:
27917
+ message.dataType = 9;
27918
+ break;
26636
27919
  }
26637
27920
  if (object.trackName != null)
26638
27921
  message.trackName = String(object.trackName);
@@ -26969,6 +28252,32 @@ var CommandList = class {
26969
28252
  item.clearCompositor = { id };
26970
28253
  return this.add(item, timeOffsetMs);
26971
28254
  }
28255
+ /**
28256
+ * Attach side data to every frame the compositor renders from now on.
28257
+ * Replaces the entry with the same `id`. Encoded WebSocket/MoQ outputs carry
28258
+ * the full set in the wire header on key frames and whenever it changes.
28259
+ * Batch it with the node changes it describes so both land on the same frame.
28260
+ *
28261
+ * @example
28262
+ * ```ts
28263
+ * cl.sideDataSet('atlas', {
28264
+ * id: 'sesame.atlas.v1',
28265
+ * version: 3,
28266
+ * atlas: { width: 1920, height: 1080, entries: [{ sourceId: 'cam-1', x: 0, y: 0, width: 960, height: 540 }] },
28267
+ * });
28268
+ * ```
28269
+ */
28270
+ sideDataSet(compositorId, sideData, timeOffsetMs) {
28271
+ let item = new sesame.v1.commands.CommandListItem();
28272
+ item.setSideData = { compositorId, sideData };
28273
+ return this.add(item, timeOffsetMs);
28274
+ }
28275
+ /** Remove one side data entry from a compositor. */
28276
+ sideDataRemove(compositorId, id, timeOffsetMs) {
28277
+ let item = new sesame.v1.commands.CommandListItem();
28278
+ item.removeSideData = { compositorId, id };
28279
+ return this.add(item, timeOffsetMs);
28280
+ }
26972
28281
  sourceAdd(id, cfg, timeOffsetMs) {
26973
28282
  let item = new sesame.v1.commands.CommandListItem();
26974
28283
  item.addSource = { id, config: cfg };
@@ -27145,6 +28454,15 @@ var CommandList = class {
27145
28454
  item.removeOutput = { id };
27146
28455
  return this.add(item, timeOffsetMs);
27147
28456
  }
28457
+ /** Start or stop a manually controlled output stream (SRT outputs with streamControl 'manual'). */
28458
+ outputControl(id, action, timeOffsetMs) {
28459
+ let item = new sesame.v1.commands.CommandListItem();
28460
+ item.outputControl = {
28461
+ id,
28462
+ action: action === "start" ? sesame.v1.outputs.OutputControlAction.OUTPUT_CONTROL_ACTION_START : sesame.v1.outputs.OutputControlAction.OUTPUT_CONTROL_ACTION_STOP
28463
+ };
28464
+ return this.add(item, timeOffsetMs);
28465
+ }
27148
28466
  encoderAdd(id, cfg, timeOffsetMs) {
27149
28467
  let item = new sesame.v1.commands.CommandListItem();
27150
28468
  item.addEncoder = { id, ...cfg };
@@ -27258,6 +28576,7 @@ var DataType = sesame.v1.wire.DataType;
27258
28576
  var FrameHeader = sesame.v1.wire.FrameHeader;
27259
28577
  var MediaCodecData = sesame.v1.wire.MediaCodecData;
27260
28578
  var CodecType = sesame.v1.common.CodecType;
28579
+ var SideData = sesame.v1.sidedata.SideData;
27261
28580
  function parseDataFrame(frame) {
27262
28581
  if (!frame.valid || !frame.header || !frame.payload) return null;
27263
28582
  if (frame.header.type !== sesame.v1.wire.FrameType.FRAME_TYPE_DATA) return null;
@@ -27304,6 +28623,29 @@ function parseDataFrame(frame) {
27304
28623
  return null;
27305
28624
  }
27306
28625
  }
28626
+ function getSideData(frame) {
28627
+ const media = frame.header?.media;
28628
+ if (!media || !media.sideData) return null;
28629
+ return media.sideData.entries ?? [];
28630
+ }
28631
+ var SideDataTracker = class {
28632
+ constructor() {
28633
+ this.entries = /* @__PURE__ */ new Map();
28634
+ }
28635
+ /** Feed every media frame in order; returns true when the set changed. */
28636
+ update(frame) {
28637
+ const entries = getSideData(frame);
28638
+ if (entries === null) return false;
28639
+ this.entries = new Map(entries.map((e) => [e.id ?? "", e]));
28640
+ return true;
28641
+ }
28642
+ get(id) {
28643
+ return this.entries.get(id);
28644
+ }
28645
+ all() {
28646
+ return [...this.entries.values()];
28647
+ }
28648
+ };
27307
28649
  function buildAudioControlFrame(trackName, request) {
27308
28650
  const payload = sesame.v1.audio.AudioControlRequest.encode(request).finish();
27309
28651
  return WireProtocol.serialize(
@@ -28026,12 +29368,15 @@ export {
28026
29368
  Response,
28027
29369
  SesameClient,
28028
29370
  SesameConnection,
29371
+ SideData,
29372
+ SideDataTracker,
28029
29373
  StatusApi,
28030
29374
  WireProtocol,
28031
29375
  buildAudioControlFrame,
28032
29376
  buildBinaryDataFrame,
28033
29377
  buildTransportControlFrame,
28034
29378
  getLogger,
29379
+ getSideData,
28035
29380
  log,
28036
29381
  parseDataFrame,
28037
29382
  sesame,