@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/README.md +1 -1
- package/dist/index.browser.mjs +109 -1
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +109 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +109 -1
- package/dist/index.mjs.map +2 -2
- package/dist/proto/api.d.ts +97 -0
- package/dist/proto/api.js +226 -0
- package/dist/sesame-wire-protocol.d.ts +4 -2
- package/dist/sesame-wire-protocol.d.ts.map +1 -1
- package/docs/protocol-reference.md +12 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -17323,6 +17323,114 @@ var sesame = $root.sesame = (() => {
|
|
|
17323
17323
|
};
|
|
17324
17324
|
return TransportEvent;
|
|
17325
17325
|
}();
|
|
17326
|
+
status.TransportStatus = function() {
|
|
17327
|
+
function TransportStatus(properties) {
|
|
17328
|
+
this.sources = [];
|
|
17329
|
+
if (properties) {
|
|
17330
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17331
|
+
if (properties[keys[i]] != null)
|
|
17332
|
+
this[keys[i]] = properties[keys[i]];
|
|
17333
|
+
}
|
|
17334
|
+
}
|
|
17335
|
+
TransportStatus.prototype.sources = $util.emptyArray;
|
|
17336
|
+
TransportStatus.create = function create(properties) {
|
|
17337
|
+
return new TransportStatus(properties);
|
|
17338
|
+
};
|
|
17339
|
+
TransportStatus.encode = function encode(message, writer) {
|
|
17340
|
+
if (!writer)
|
|
17341
|
+
writer = $Writer.create();
|
|
17342
|
+
if (message.sources != null && message.sources.length)
|
|
17343
|
+
for (let i = 0; i < message.sources.length; ++i)
|
|
17344
|
+
$root.sesame.v1.status.TransportEvent.encode(message.sources[i], writer.uint32(
|
|
17345
|
+
/* id 1, wireType 2 =*/
|
|
17346
|
+
10
|
|
17347
|
+
).fork()).ldelim();
|
|
17348
|
+
return writer;
|
|
17349
|
+
};
|
|
17350
|
+
TransportStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17351
|
+
return this.encode(message, writer).ldelim();
|
|
17352
|
+
};
|
|
17353
|
+
TransportStatus.decode = function decode(reader, length, error) {
|
|
17354
|
+
if (!(reader instanceof $Reader))
|
|
17355
|
+
reader = $Reader.create(reader);
|
|
17356
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.status.TransportStatus();
|
|
17357
|
+
while (reader.pos < end) {
|
|
17358
|
+
let tag = reader.uint32();
|
|
17359
|
+
if (tag === error)
|
|
17360
|
+
break;
|
|
17361
|
+
switch (tag >>> 3) {
|
|
17362
|
+
case 1: {
|
|
17363
|
+
if (!(message.sources && message.sources.length))
|
|
17364
|
+
message.sources = [];
|
|
17365
|
+
message.sources.push($root.sesame.v1.status.TransportEvent.decode(reader, reader.uint32()));
|
|
17366
|
+
break;
|
|
17367
|
+
}
|
|
17368
|
+
default:
|
|
17369
|
+
reader.skipType(tag & 7);
|
|
17370
|
+
break;
|
|
17371
|
+
}
|
|
17372
|
+
}
|
|
17373
|
+
return message;
|
|
17374
|
+
};
|
|
17375
|
+
TransportStatus.decodeDelimited = function decodeDelimited(reader) {
|
|
17376
|
+
if (!(reader instanceof $Reader))
|
|
17377
|
+
reader = new $Reader(reader);
|
|
17378
|
+
return this.decode(reader, reader.uint32());
|
|
17379
|
+
};
|
|
17380
|
+
TransportStatus.verify = function verify(message) {
|
|
17381
|
+
if (typeof message !== "object" || message === null)
|
|
17382
|
+
return "object expected";
|
|
17383
|
+
if (message.sources != null && message.hasOwnProperty("sources")) {
|
|
17384
|
+
if (!Array.isArray(message.sources))
|
|
17385
|
+
return "sources: array expected";
|
|
17386
|
+
for (let i = 0; i < message.sources.length; ++i) {
|
|
17387
|
+
let error = $root.sesame.v1.status.TransportEvent.verify(message.sources[i]);
|
|
17388
|
+
if (error)
|
|
17389
|
+
return "sources." + error;
|
|
17390
|
+
}
|
|
17391
|
+
}
|
|
17392
|
+
return null;
|
|
17393
|
+
};
|
|
17394
|
+
TransportStatus.fromObject = function fromObject(object) {
|
|
17395
|
+
if (object instanceof $root.sesame.v1.status.TransportStatus)
|
|
17396
|
+
return object;
|
|
17397
|
+
let message = new $root.sesame.v1.status.TransportStatus();
|
|
17398
|
+
if (object.sources) {
|
|
17399
|
+
if (!Array.isArray(object.sources))
|
|
17400
|
+
throw TypeError(".sesame.v1.status.TransportStatus.sources: array expected");
|
|
17401
|
+
message.sources = [];
|
|
17402
|
+
for (let i = 0; i < object.sources.length; ++i) {
|
|
17403
|
+
if (typeof object.sources[i] !== "object")
|
|
17404
|
+
throw TypeError(".sesame.v1.status.TransportStatus.sources: object expected");
|
|
17405
|
+
message.sources[i] = $root.sesame.v1.status.TransportEvent.fromObject(object.sources[i]);
|
|
17406
|
+
}
|
|
17407
|
+
}
|
|
17408
|
+
return message;
|
|
17409
|
+
};
|
|
17410
|
+
TransportStatus.toObject = function toObject(message, options) {
|
|
17411
|
+
if (!options)
|
|
17412
|
+
options = {};
|
|
17413
|
+
let object = {};
|
|
17414
|
+
if (options.arrays || options.defaults)
|
|
17415
|
+
object.sources = [];
|
|
17416
|
+
if (message.sources && message.sources.length) {
|
|
17417
|
+
object.sources = [];
|
|
17418
|
+
for (let j = 0; j < message.sources.length; ++j)
|
|
17419
|
+
object.sources[j] = $root.sesame.v1.status.TransportEvent.toObject(message.sources[j], options);
|
|
17420
|
+
}
|
|
17421
|
+
return object;
|
|
17422
|
+
};
|
|
17423
|
+
TransportStatus.prototype.toJSON = function toJSON() {
|
|
17424
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17425
|
+
};
|
|
17426
|
+
TransportStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17427
|
+
if (typeUrlPrefix === void 0) {
|
|
17428
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17429
|
+
}
|
|
17430
|
+
return typeUrlPrefix + "/sesame.v1.status.TransportStatus";
|
|
17431
|
+
};
|
|
17432
|
+
return TransportStatus;
|
|
17433
|
+
}();
|
|
17326
17434
|
status.MetadataEvent = function() {
|
|
17327
17435
|
function MetadataEvent(properties) {
|
|
17328
17436
|
if (properties) {
|
|
@@ -28804,7 +28912,7 @@ function parseDataFrame(frame) {
|
|
|
28804
28912
|
return {
|
|
28805
28913
|
dataType: "transport-status",
|
|
28806
28914
|
trackName,
|
|
28807
|
-
|
|
28915
|
+
status: sesame.v1.status.TransportStatus.decode(payload)
|
|
28808
28916
|
};
|
|
28809
28917
|
case sesame.v1.wire.DataType.DATA_TYPE_AUDIO_STATE:
|
|
28810
28918
|
return {
|