@stinkycomputing/sesame-api-client 1.10.0-alpha.3 → 1.10.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -17390,6 +17390,114 @@ var sesame = $root.sesame = (() => {
17390
17390
  };
17391
17391
  return TransportEvent;
17392
17392
  }();
17393
+ status.TransportStatus = function() {
17394
+ function TransportStatus(properties) {
17395
+ this.sources = [];
17396
+ if (properties) {
17397
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17398
+ if (properties[keys[i]] != null)
17399
+ this[keys[i]] = properties[keys[i]];
17400
+ }
17401
+ }
17402
+ TransportStatus.prototype.sources = $util.emptyArray;
17403
+ TransportStatus.create = function create(properties) {
17404
+ return new TransportStatus(properties);
17405
+ };
17406
+ TransportStatus.encode = function encode(message, writer) {
17407
+ if (!writer)
17408
+ writer = $Writer.create();
17409
+ if (message.sources != null && message.sources.length)
17410
+ for (let i = 0; i < message.sources.length; ++i)
17411
+ $root.sesame.v1.status.TransportEvent.encode(message.sources[i], writer.uint32(
17412
+ /* id 1, wireType 2 =*/
17413
+ 10
17414
+ ).fork()).ldelim();
17415
+ return writer;
17416
+ };
17417
+ TransportStatus.encodeDelimited = function encodeDelimited(message, writer) {
17418
+ return this.encode(message, writer).ldelim();
17419
+ };
17420
+ TransportStatus.decode = function decode(reader, length, error) {
17421
+ if (!(reader instanceof $Reader))
17422
+ reader = $Reader.create(reader);
17423
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.status.TransportStatus();
17424
+ while (reader.pos < end) {
17425
+ let tag = reader.uint32();
17426
+ if (tag === error)
17427
+ break;
17428
+ switch (tag >>> 3) {
17429
+ case 1: {
17430
+ if (!(message.sources && message.sources.length))
17431
+ message.sources = [];
17432
+ message.sources.push($root.sesame.v1.status.TransportEvent.decode(reader, reader.uint32()));
17433
+ break;
17434
+ }
17435
+ default:
17436
+ reader.skipType(tag & 7);
17437
+ break;
17438
+ }
17439
+ }
17440
+ return message;
17441
+ };
17442
+ TransportStatus.decodeDelimited = function decodeDelimited(reader) {
17443
+ if (!(reader instanceof $Reader))
17444
+ reader = new $Reader(reader);
17445
+ return this.decode(reader, reader.uint32());
17446
+ };
17447
+ TransportStatus.verify = function verify(message) {
17448
+ if (typeof message !== "object" || message === null)
17449
+ return "object expected";
17450
+ if (message.sources != null && message.hasOwnProperty("sources")) {
17451
+ if (!Array.isArray(message.sources))
17452
+ return "sources: array expected";
17453
+ for (let i = 0; i < message.sources.length; ++i) {
17454
+ let error = $root.sesame.v1.status.TransportEvent.verify(message.sources[i]);
17455
+ if (error)
17456
+ return "sources." + error;
17457
+ }
17458
+ }
17459
+ return null;
17460
+ };
17461
+ TransportStatus.fromObject = function fromObject(object) {
17462
+ if (object instanceof $root.sesame.v1.status.TransportStatus)
17463
+ return object;
17464
+ let message = new $root.sesame.v1.status.TransportStatus();
17465
+ if (object.sources) {
17466
+ if (!Array.isArray(object.sources))
17467
+ throw TypeError(".sesame.v1.status.TransportStatus.sources: array expected");
17468
+ message.sources = [];
17469
+ for (let i = 0; i < object.sources.length; ++i) {
17470
+ if (typeof object.sources[i] !== "object")
17471
+ throw TypeError(".sesame.v1.status.TransportStatus.sources: object expected");
17472
+ message.sources[i] = $root.sesame.v1.status.TransportEvent.fromObject(object.sources[i]);
17473
+ }
17474
+ }
17475
+ return message;
17476
+ };
17477
+ TransportStatus.toObject = function toObject(message, options) {
17478
+ if (!options)
17479
+ options = {};
17480
+ let object = {};
17481
+ if (options.arrays || options.defaults)
17482
+ object.sources = [];
17483
+ if (message.sources && message.sources.length) {
17484
+ object.sources = [];
17485
+ for (let j = 0; j < message.sources.length; ++j)
17486
+ object.sources[j] = $root.sesame.v1.status.TransportEvent.toObject(message.sources[j], options);
17487
+ }
17488
+ return object;
17489
+ };
17490
+ TransportStatus.prototype.toJSON = function toJSON() {
17491
+ return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
17492
+ };
17493
+ TransportStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17494
+ if (typeUrlPrefix === void 0) {
17495
+ typeUrlPrefix = "type.googleapis.com";
17496
+ }
17497
+ return typeUrlPrefix + "/sesame.v1.status.TransportStatus";
17498
+ };
17499
+ return TransportStatus;
17500
+ }();
17393
17501
  status.MetadataEvent = function() {
17394
17502
  function MetadataEvent(properties) {
17395
17503
  if (properties) {
@@ -28871,7 +28979,7 @@ function parseDataFrame(frame) {
28871
28979
  return {
28872
28980
  dataType: "transport-status",
28873
28981
  trackName,
28874
- event: sesame.v1.status.TransportEvent.decode(payload)
28982
+ status: sesame.v1.status.TransportStatus.decode(payload)
28875
28983
  };
28876
28984
  case sesame.v1.wire.DataType.DATA_TYPE_AUDIO_STATE:
28877
28985
  return {