@stinkycomputing/sesame-api-client 1.5.0-alpha.7 → 1.5.0

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.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';
@@ -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,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC;AAEnC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AACrD,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;AAGtD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EACV,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,cAAc,EACd,qBAAqB,EACrB,gCAAgC,EAChC,aAAa,EACb,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EACb,iBAA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EACT,mBAAmB,EACnB,QAAQ,EACT,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/H,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EACzD,cAAc,EAAE,sBAAsB,EAAE,0BAA0B,EAClE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC1G,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,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.MetadataEndpoint = function() {
3402
- function MetadataEndpoint(properties) {
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
- MetadataEndpoint.prototype.node = "";
3410
- MetadataEndpoint.prototype.track = "";
3411
- MetadataEndpoint.prototype.metadataId = "";
3412
- MetadataEndpoint.create = function create(properties) {
3413
- return new MetadataEndpoint(properties);
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
- MetadataEndpoint.encode = function encode(message, writer) {
3417
+ MetadataBinding.encode = function encode(message, writer) {
3416
3418
  if (!writer)
3417
3419
  writer = $Writer.create();
3418
- if (message.node != null && Object.hasOwnProperty.call(message, "node"))
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.node);
3423
- if (message.track != null && Object.hasOwnProperty.call(message, "track"))
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.track);
3428
- if (message.metadataId != null && Object.hasOwnProperty.call(message, "metadataId"))
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.metadataId);
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
- MetadataEndpoint.encodeDelimited = function encodeDelimited(message, writer) {
3447
+ MetadataBinding.encodeDelimited = function encodeDelimited(message, writer) {
3436
3448
  return this.encode(message, writer).ldelim();
3437
3449
  };
3438
- MetadataEndpoint.decode = function decode(reader, length, error) {
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.MetadataEndpoint();
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.node = reader.string();
3460
+ message.sourceId = reader.string();
3449
3461
  break;
3450
3462
  }
3451
3463
  case 2: {
3452
- message.track = reader.string();
3464
+ message.metadataId = reader.string();
3453
3465
  break;
3454
3466
  }
3455
3467
  case 3: {
3456
- message.metadataId = reader.string();
3468
+ message.outputId = reader.string();
3457
3469
  break;
3458
3470
  }
3459
- default:
3460
- reader.skipType(tag & 7);
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 2: {
3573
- message.to = $root.sesame.v1.commands.MetadataEndpoint.decode(reader, reader.uint32());
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.from != null && message.hasOwnProperty("from")) {
3592
- let error = $root.sesame.v1.commands.MetadataEndpoint.verify(message.from);
3593
- if (error)
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.to != null && message.hasOwnProperty("to")) {
3597
- let error = $root.sesame.v1.commands.MetadataEndpoint.verify(message.to);
3598
- if (error)
3599
- return "to." + error;
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.from != null) {
3608
- if (typeof object.from !== "object")
3609
- throw TypeError(".sesame.v1.commands.MetadataBinding.from: object expected");
3610
- message.from = $root.sesame.v1.commands.MetadataEndpoint.fromObject(object.from);
3611
- }
3612
- if (object.to != null) {
3613
- if (typeof object.to !== "object")
3614
- throw TypeError(".sesame.v1.commands.MetadataBinding.to: object expected");
3615
- message.to = $root.sesame.v1.commands.MetadataEndpoint.fromObject(object.to);
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.from = null;
3625
- object.to = null;
3537
+ object.sourceId = "";
3538
+ object.metadataId = "";
3539
+ object.outputId = "";
3540
+ object.trackName = "";
3541
+ object.targetId = "";
3626
3542
  }
3627
- if (message.from != null && message.hasOwnProperty("from"))
3628
- object.from = $root.sesame.v1.commands.MetadataEndpoint.toObject(message.from, options);
3629
- if (message.to != null && message.hasOwnProperty("to"))
3630
- object.to = $root.sesame.v1.commands.MetadataEndpoint.toObject(message.to, options);
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() {
@@ -23760,6 +23682,22 @@ var CommandList = class {
23760
23682
  };
23761
23683
  return this.add(item, timeOffsetMs);
23762
23684
  }
23685
+ /**
23686
+ * Replace the server's entire metadata routing table with the supplied bindings.
23687
+ *
23688
+ * Each binding is either **outbound** or **inbound** - not both:
23689
+ *
23690
+ * - **Outbound** (`IMetadataOutboundBinding`): when `publishMetadata(nodeId, metadataId)`
23691
+ * is called (or the server pushes periodic state), the payload is forwarded to every
23692
+ * `(outputId, trackName)` pair that matches `(sourceId, metadataId)`.
23693
+ *
23694
+ * - **Inbound** (`IMetadataInboundBinding`): when a streaming source receives a
23695
+ * `FRAME_TYPE_DATA` frame on `trackName`, it is routed to `targetId` and emitted
23696
+ * as a `MetadataEvent` on `EVENT_TOPIC_METADATA`.
23697
+ *
23698
+ * This command replaces the **entire** table - pass all desired bindings at once.
23699
+ * An empty array clears all routing.
23700
+ */
23763
23701
  setMetadataBindings(bindings, timeOffsetMs) {
23764
23702
  const item = new sesame.v1.commands.CommandListItem();
23765
23703
  item.setMetadataBindings = { bindings };
@@ -24518,6 +24456,21 @@ var SesameClient = class extends EventEmitter3 {
24518
24456
  await this.rpc.service.executeCommandList(cl.getCommandListMsg());
24519
24457
  }
24520
24458
  }
24459
+ /**
24460
+ * Publish a data-frame payload to all outbound targets registered for
24461
+ * `(nodeId, metadataId)` in the current MetadataRouter binding table.
24462
+ *
24463
+ * The server resolves the binding table entry for the given `(nodeId, metadataId)`
24464
+ * pair and sends a `FRAME_TYPE_DATA` frame to each configured `(outputId, trackName)`
24465
+ * target. If no outbound binding exists a warning is logged server-side and the call
24466
+ * is a no-op.
24467
+ *
24468
+ * @param nodeId ID of the publishing node (source, mixer, or other engine node).
24469
+ * @param metadataId Routing key - must match the `metadata_id` field in the binding.
24470
+ * @param payload Raw frame payload bytes. For `DATA_TYPE_JSON` this must be valid
24471
+ * UTF-8 encoded JSON; for `DATA_TYPE_BINARY` it is opaque bytes.
24472
+ * @param dataType Wire encoding of the payload (defaults to `DATA_TYPE_JSON`).
24473
+ */
24521
24474
  async publishMetadata(nodeId, metadataId, payload, dataType = DataType.DATA_TYPE_JSON) {
24522
24475
  await this.rpc.service.publishMetadata({ nodeId, metadataId, payload, dataType });
24523
24476
  }