@stinkycomputing/sesame-api-client 1.5.0-alpha.6 → 1.5.0-alpha.8
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 +2 -2
- package/dist/command-list.d.ts +14 -1
- package/dist/command-list.d.ts.map +1 -1
- package/dist/index.browser.mjs +81 -158
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +81 -158
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +81 -158
- package/dist/index.mjs.map +2 -2
- package/dist/proto/api.d.ts +24 -115
- package/dist/proto/api.js +94 -287
- package/dist/sesame-api-client.d.ts.map +1 -1
- package/dist/sesame-wire-protocol.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ type IEvent = sesame.v1.rpc.IEvent;
|
|
|
17
17
|
export { sesame, Message, Request, Response, Event };
|
|
18
18
|
export type { IMessage, IRequest, IResponse, IEvent };
|
|
19
19
|
export { CommandList } from './command-list';
|
|
20
|
-
export type { CompositorID, ReplayID, AudioMixerID, INodeConfig, IEncoderConfig, IRecorderOutputConfig, ISuperSlowmoRecorderOutputConfig, IOutputConfig, IDecklinkOutputConfig, IWebSocketOutputConfig, ISrtOutputConfig, IMoqOutputConfig, ISystemAudioOutputConfig, IAudioMixerChannel, IAudioMixerConfig, ISourceConfig, IFileSourceConfig, IRecorderSourceConfig, IBrowserSourceConfig, IRTTSourceConfig, IDecklinkSourceConfig, ISystemAudioSourceConfig, ISrtSourceConfig, IWebsocketSourceConfig, IMoqSourceConfig, ISourceTransportConfig, ITransportCommand, IPlaylistClip, IPlaylist, ITransactionOptions, keyframe } from './command-list';
|
|
20
|
+
export type { CompositorID, ReplayID, AudioMixerID, INodeConfig, IEncoderConfig, IRecorderOutputConfig, ISuperSlowmoRecorderOutputConfig, IOutputConfig, IDecklinkOutputConfig, IWebSocketOutputConfig, ISrtOutputConfig, IMoqOutputConfig, ISystemAudioOutputConfig, IAudioMixerChannel, IAudioMixerConfig, ISourceConfig, IFileSourceConfig, IRecorderSourceConfig, IBrowserSourceConfig, IRTTSourceConfig, IDecklinkSourceConfig, ISystemAudioSourceConfig, ISrtSourceConfig, IWebsocketSourceConfig, IMoqSourceConfig, ISourceTransportConfig, ITransportCommand, IMetadataBinding, IMetadataOutboundBinding, IMetadataInboundBinding, IPlaylistClip, IPlaylist, ITransactionOptions, keyframe } from './command-list';
|
|
21
21
|
export type { CompositorProperty, AudioMixerProperty, SourceProperty, PropertyValueMap, BaseNodeProperties, MeshNodeProperties, TextNodeProperties, VideoBoxNodeProperties, ImageNodeProperties, EffectBaseProperties, EffectRttProperties, EffectTimecodeProperties, EffectClipPlaneProperties, } from './generated/property-types';
|
|
22
22
|
export { RPCClient, IClientOptions, IProtobufType } from './rpc-client';
|
|
23
23
|
export { SesameConnection, ConnectionState, IConnectionOptions, MediaPacketCallback, waitForEvent } from './sesame-connection';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,QAAA,MAAM,OAAO,8BAAwB,CAAC;AACtC,QAAA,MAAM,OAAO,8BAAwB,CAAC;AACtC,QAAA,MAAM,QAAQ,+BAAyB,CAAC;AACxC,QAAA,MAAM,KAAK,4BAAsB,CAAC;AAElC,KAAK,QAAQ,GAAG,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC;AACvC,KAAK,QAAQ,GAAG,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC;AACvC,KAAK,SAAS,GAAG,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC;AACzC,KAAK,MAAM,GAAG,MAAM,CAAC,EAA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M,qBAAqB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAG7D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -3398,179 +3398,82 @@ var sesame = $root.sesame = (() => {
|
|
|
3398
3398
|
};
|
|
3399
3399
|
return CommandListItem;
|
|
3400
3400
|
}();
|
|
3401
|
-
commands.
|
|
3402
|
-
function
|
|
3401
|
+
commands.MetadataBinding = function() {
|
|
3402
|
+
function MetadataBinding(properties) {
|
|
3403
3403
|
if (properties) {
|
|
3404
3404
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3405
3405
|
if (properties[keys[i]] != null)
|
|
3406
3406
|
this[keys[i]] = properties[keys[i]];
|
|
3407
3407
|
}
|
|
3408
3408
|
}
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3409
|
+
MetadataBinding.prototype.sourceId = "";
|
|
3410
|
+
MetadataBinding.prototype.metadataId = "";
|
|
3411
|
+
MetadataBinding.prototype.outputId = "";
|
|
3412
|
+
MetadataBinding.prototype.trackName = "";
|
|
3413
|
+
MetadataBinding.prototype.targetId = "";
|
|
3414
|
+
MetadataBinding.create = function create(properties) {
|
|
3415
|
+
return new MetadataBinding(properties);
|
|
3414
3416
|
};
|
|
3415
|
-
|
|
3417
|
+
MetadataBinding.encode = function encode(message, writer) {
|
|
3416
3418
|
if (!writer)
|
|
3417
3419
|
writer = $Writer.create();
|
|
3418
|
-
if (message.
|
|
3420
|
+
if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
|
|
3419
3421
|
writer.uint32(
|
|
3420
3422
|
/* id 1, wireType 2 =*/
|
|
3421
3423
|
10
|
|
3422
|
-
).string(message.
|
|
3423
|
-
if (message.
|
|
3424
|
+
).string(message.sourceId);
|
|
3425
|
+
if (message.metadataId != null && Object.hasOwnProperty.call(message, "metadataId"))
|
|
3424
3426
|
writer.uint32(
|
|
3425
3427
|
/* id 2, wireType 2 =*/
|
|
3426
3428
|
18
|
|
3427
|
-
).string(message.
|
|
3428
|
-
if (message.
|
|
3429
|
+
).string(message.metadataId);
|
|
3430
|
+
if (message.outputId != null && Object.hasOwnProperty.call(message, "outputId"))
|
|
3429
3431
|
writer.uint32(
|
|
3430
3432
|
/* id 3, wireType 2 =*/
|
|
3431
3433
|
26
|
|
3432
|
-
).string(message.
|
|
3434
|
+
).string(message.outputId);
|
|
3435
|
+
if (message.trackName != null && Object.hasOwnProperty.call(message, "trackName"))
|
|
3436
|
+
writer.uint32(
|
|
3437
|
+
/* id 4, wireType 2 =*/
|
|
3438
|
+
34
|
|
3439
|
+
).string(message.trackName);
|
|
3440
|
+
if (message.targetId != null && Object.hasOwnProperty.call(message, "targetId"))
|
|
3441
|
+
writer.uint32(
|
|
3442
|
+
/* id 5, wireType 2 =*/
|
|
3443
|
+
42
|
|
3444
|
+
).string(message.targetId);
|
|
3433
3445
|
return writer;
|
|
3434
3446
|
};
|
|
3435
|
-
|
|
3447
|
+
MetadataBinding.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3436
3448
|
return this.encode(message, writer).ldelim();
|
|
3437
3449
|
};
|
|
3438
|
-
|
|
3450
|
+
MetadataBinding.decode = function decode(reader, length, error) {
|
|
3439
3451
|
if (!(reader instanceof $Reader))
|
|
3440
3452
|
reader = $Reader.create(reader);
|
|
3441
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.commands.
|
|
3453
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.commands.MetadataBinding();
|
|
3442
3454
|
while (reader.pos < end) {
|
|
3443
3455
|
let tag = reader.uint32();
|
|
3444
3456
|
if (tag === error)
|
|
3445
3457
|
break;
|
|
3446
3458
|
switch (tag >>> 3) {
|
|
3447
3459
|
case 1: {
|
|
3448
|
-
message.
|
|
3460
|
+
message.sourceId = reader.string();
|
|
3449
3461
|
break;
|
|
3450
3462
|
}
|
|
3451
3463
|
case 2: {
|
|
3452
|
-
message.
|
|
3464
|
+
message.metadataId = reader.string();
|
|
3453
3465
|
break;
|
|
3454
3466
|
}
|
|
3455
3467
|
case 3: {
|
|
3456
|
-
message.
|
|
3468
|
+
message.outputId = reader.string();
|
|
3457
3469
|
break;
|
|
3458
3470
|
}
|
|
3459
|
-
|
|
3460
|
-
reader.
|
|
3461
|
-
break;
|
|
3462
|
-
}
|
|
3463
|
-
}
|
|
3464
|
-
return message;
|
|
3465
|
-
};
|
|
3466
|
-
MetadataEndpoint.decodeDelimited = function decodeDelimited(reader) {
|
|
3467
|
-
if (!(reader instanceof $Reader))
|
|
3468
|
-
reader = new $Reader(reader);
|
|
3469
|
-
return this.decode(reader, reader.uint32());
|
|
3470
|
-
};
|
|
3471
|
-
MetadataEndpoint.verify = function verify(message) {
|
|
3472
|
-
if (typeof message !== "object" || message === null)
|
|
3473
|
-
return "object expected";
|
|
3474
|
-
if (message.node != null && message.hasOwnProperty("node")) {
|
|
3475
|
-
if (!$util.isString(message.node))
|
|
3476
|
-
return "node: string expected";
|
|
3477
|
-
}
|
|
3478
|
-
if (message.track != null && message.hasOwnProperty("track")) {
|
|
3479
|
-
if (!$util.isString(message.track))
|
|
3480
|
-
return "track: string expected";
|
|
3481
|
-
}
|
|
3482
|
-
if (message.metadataId != null && message.hasOwnProperty("metadataId")) {
|
|
3483
|
-
if (!$util.isString(message.metadataId))
|
|
3484
|
-
return "metadataId: string expected";
|
|
3485
|
-
}
|
|
3486
|
-
return null;
|
|
3487
|
-
};
|
|
3488
|
-
MetadataEndpoint.fromObject = function fromObject(object) {
|
|
3489
|
-
if (object instanceof $root.sesame.v1.commands.MetadataEndpoint)
|
|
3490
|
-
return object;
|
|
3491
|
-
let message = new $root.sesame.v1.commands.MetadataEndpoint();
|
|
3492
|
-
if (object.node != null)
|
|
3493
|
-
message.node = String(object.node);
|
|
3494
|
-
if (object.track != null)
|
|
3495
|
-
message.track = String(object.track);
|
|
3496
|
-
if (object.metadataId != null)
|
|
3497
|
-
message.metadataId = String(object.metadataId);
|
|
3498
|
-
return message;
|
|
3499
|
-
};
|
|
3500
|
-
MetadataEndpoint.toObject = function toObject(message, options) {
|
|
3501
|
-
if (!options)
|
|
3502
|
-
options = {};
|
|
3503
|
-
let object = {};
|
|
3504
|
-
if (options.defaults) {
|
|
3505
|
-
object.node = "";
|
|
3506
|
-
object.track = "";
|
|
3507
|
-
object.metadataId = "";
|
|
3508
|
-
}
|
|
3509
|
-
if (message.node != null && message.hasOwnProperty("node"))
|
|
3510
|
-
object.node = message.node;
|
|
3511
|
-
if (message.track != null && message.hasOwnProperty("track"))
|
|
3512
|
-
object.track = message.track;
|
|
3513
|
-
if (message.metadataId != null && message.hasOwnProperty("metadataId"))
|
|
3514
|
-
object.metadataId = message.metadataId;
|
|
3515
|
-
return object;
|
|
3516
|
-
};
|
|
3517
|
-
MetadataEndpoint.prototype.toJSON = function toJSON() {
|
|
3518
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3519
|
-
};
|
|
3520
|
-
MetadataEndpoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3521
|
-
if (typeUrlPrefix === void 0) {
|
|
3522
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
3523
|
-
}
|
|
3524
|
-
return typeUrlPrefix + "/sesame.v1.commands.MetadataEndpoint";
|
|
3525
|
-
};
|
|
3526
|
-
return MetadataEndpoint;
|
|
3527
|
-
}();
|
|
3528
|
-
commands.MetadataBinding = function() {
|
|
3529
|
-
function MetadataBinding(properties) {
|
|
3530
|
-
if (properties) {
|
|
3531
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3532
|
-
if (properties[keys[i]] != null)
|
|
3533
|
-
this[keys[i]] = properties[keys[i]];
|
|
3534
|
-
}
|
|
3535
|
-
}
|
|
3536
|
-
MetadataBinding.prototype.from = null;
|
|
3537
|
-
MetadataBinding.prototype.to = null;
|
|
3538
|
-
MetadataBinding.create = function create(properties) {
|
|
3539
|
-
return new MetadataBinding(properties);
|
|
3540
|
-
};
|
|
3541
|
-
MetadataBinding.encode = function encode(message, writer) {
|
|
3542
|
-
if (!writer)
|
|
3543
|
-
writer = $Writer.create();
|
|
3544
|
-
if (message.from != null && Object.hasOwnProperty.call(message, "from"))
|
|
3545
|
-
$root.sesame.v1.commands.MetadataEndpoint.encode(message.from, writer.uint32(
|
|
3546
|
-
/* id 1, wireType 2 =*/
|
|
3547
|
-
10
|
|
3548
|
-
).fork()).ldelim();
|
|
3549
|
-
if (message.to != null && Object.hasOwnProperty.call(message, "to"))
|
|
3550
|
-
$root.sesame.v1.commands.MetadataEndpoint.encode(message.to, writer.uint32(
|
|
3551
|
-
/* id 2, wireType 2 =*/
|
|
3552
|
-
18
|
|
3553
|
-
).fork()).ldelim();
|
|
3554
|
-
return writer;
|
|
3555
|
-
};
|
|
3556
|
-
MetadataBinding.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3557
|
-
return this.encode(message, writer).ldelim();
|
|
3558
|
-
};
|
|
3559
|
-
MetadataBinding.decode = function decode(reader, length, error) {
|
|
3560
|
-
if (!(reader instanceof $Reader))
|
|
3561
|
-
reader = $Reader.create(reader);
|
|
3562
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.commands.MetadataBinding();
|
|
3563
|
-
while (reader.pos < end) {
|
|
3564
|
-
let tag = reader.uint32();
|
|
3565
|
-
if (tag === error)
|
|
3566
|
-
break;
|
|
3567
|
-
switch (tag >>> 3) {
|
|
3568
|
-
case 1: {
|
|
3569
|
-
message.from = $root.sesame.v1.commands.MetadataEndpoint.decode(reader, reader.uint32());
|
|
3471
|
+
case 4: {
|
|
3472
|
+
message.trackName = reader.string();
|
|
3570
3473
|
break;
|
|
3571
3474
|
}
|
|
3572
|
-
case
|
|
3573
|
-
message.
|
|
3475
|
+
case 5: {
|
|
3476
|
+
message.targetId = reader.string();
|
|
3574
3477
|
break;
|
|
3575
3478
|
}
|
|
3576
3479
|
default:
|
|
@@ -3588,15 +3491,25 @@ var sesame = $root.sesame = (() => {
|
|
|
3588
3491
|
MetadataBinding.verify = function verify(message) {
|
|
3589
3492
|
if (typeof message !== "object" || message === null)
|
|
3590
3493
|
return "object expected";
|
|
3591
|
-
if (message.
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
return "from." + error;
|
|
3494
|
+
if (message.sourceId != null && message.hasOwnProperty("sourceId")) {
|
|
3495
|
+
if (!$util.isString(message.sourceId))
|
|
3496
|
+
return "sourceId: string expected";
|
|
3595
3497
|
}
|
|
3596
|
-
if (message.
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3498
|
+
if (message.metadataId != null && message.hasOwnProperty("metadataId")) {
|
|
3499
|
+
if (!$util.isString(message.metadataId))
|
|
3500
|
+
return "metadataId: string expected";
|
|
3501
|
+
}
|
|
3502
|
+
if (message.outputId != null && message.hasOwnProperty("outputId")) {
|
|
3503
|
+
if (!$util.isString(message.outputId))
|
|
3504
|
+
return "outputId: string expected";
|
|
3505
|
+
}
|
|
3506
|
+
if (message.trackName != null && message.hasOwnProperty("trackName")) {
|
|
3507
|
+
if (!$util.isString(message.trackName))
|
|
3508
|
+
return "trackName: string expected";
|
|
3509
|
+
}
|
|
3510
|
+
if (message.targetId != null && message.hasOwnProperty("targetId")) {
|
|
3511
|
+
if (!$util.isString(message.targetId))
|
|
3512
|
+
return "targetId: string expected";
|
|
3600
3513
|
}
|
|
3601
3514
|
return null;
|
|
3602
3515
|
};
|
|
@@ -3604,16 +3517,16 @@ var sesame = $root.sesame = (() => {
|
|
|
3604
3517
|
if (object instanceof $root.sesame.v1.commands.MetadataBinding)
|
|
3605
3518
|
return object;
|
|
3606
3519
|
let message = new $root.sesame.v1.commands.MetadataBinding();
|
|
3607
|
-
if (object.
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
message.
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3520
|
+
if (object.sourceId != null)
|
|
3521
|
+
message.sourceId = String(object.sourceId);
|
|
3522
|
+
if (object.metadataId != null)
|
|
3523
|
+
message.metadataId = String(object.metadataId);
|
|
3524
|
+
if (object.outputId != null)
|
|
3525
|
+
message.outputId = String(object.outputId);
|
|
3526
|
+
if (object.trackName != null)
|
|
3527
|
+
message.trackName = String(object.trackName);
|
|
3528
|
+
if (object.targetId != null)
|
|
3529
|
+
message.targetId = String(object.targetId);
|
|
3617
3530
|
return message;
|
|
3618
3531
|
};
|
|
3619
3532
|
MetadataBinding.toObject = function toObject(message, options) {
|
|
@@ -3621,13 +3534,22 @@ var sesame = $root.sesame = (() => {
|
|
|
3621
3534
|
options = {};
|
|
3622
3535
|
let object = {};
|
|
3623
3536
|
if (options.defaults) {
|
|
3624
|
-
object.
|
|
3625
|
-
object.
|
|
3537
|
+
object.sourceId = "";
|
|
3538
|
+
object.metadataId = "";
|
|
3539
|
+
object.outputId = "";
|
|
3540
|
+
object.trackName = "";
|
|
3541
|
+
object.targetId = "";
|
|
3626
3542
|
}
|
|
3627
|
-
if (message.
|
|
3628
|
-
object.
|
|
3629
|
-
if (message.
|
|
3630
|
-
object.
|
|
3543
|
+
if (message.sourceId != null && message.hasOwnProperty("sourceId"))
|
|
3544
|
+
object.sourceId = message.sourceId;
|
|
3545
|
+
if (message.metadataId != null && message.hasOwnProperty("metadataId"))
|
|
3546
|
+
object.metadataId = message.metadataId;
|
|
3547
|
+
if (message.outputId != null && message.hasOwnProperty("outputId"))
|
|
3548
|
+
object.outputId = message.outputId;
|
|
3549
|
+
if (message.trackName != null && message.hasOwnProperty("trackName"))
|
|
3550
|
+
object.trackName = message.trackName;
|
|
3551
|
+
if (message.targetId != null && message.hasOwnProperty("targetId"))
|
|
3552
|
+
object.targetId = message.targetId;
|
|
3631
3553
|
return object;
|
|
3632
3554
|
};
|
|
3633
3555
|
MetadataBinding.prototype.toJSON = function toJSON() {
|
|
@@ -24444,7 +24366,8 @@ var SesameClient = class extends EventEmitter3 {
|
|
|
24444
24366
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_TRANSPORT]: sesame.v1.status.Event,
|
|
24445
24367
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_CALLBACK]: sesame.v1.status.Event,
|
|
24446
24368
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_JOB]: sesame.v1.status.Event,
|
|
24447
|
-
[sesame.v1.common.EventTopic.EVENT_TOPIC_RECORDER]: sesame.v1.status.Event
|
|
24369
|
+
[sesame.v1.common.EventTopic.EVENT_TOPIC_RECORDER]: sesame.v1.status.Event,
|
|
24370
|
+
[sesame.v1.common.EventTopic.EVENT_TOPIC_METADATA]: sesame.v1.status.Event
|
|
24448
24371
|
};
|
|
24449
24372
|
let options = {
|
|
24450
24373
|
eventTypes: events
|