@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.
@@ -2038,123 +2038,23 @@ export namespace sesame {
2038
2038
  public static getTypeUrl(typeUrlPrefix?: string): string;
2039
2039
  }
2040
2040
 
2041
- /** Properties of a MetadataEndpoint. */
2042
- interface IMetadataEndpoint {
2043
-
2044
- /** MetadataEndpoint node */
2045
- node?: (string|null);
2041
+ /** Properties of a MetadataBinding. */
2042
+ interface IMetadataBinding {
2046
2043
 
2047
- /** MetadataEndpoint track */
2048
- track?: (string|null);
2044
+ /** MetadataBinding sourceId */
2045
+ sourceId?: (string|null);
2049
2046
 
2050
- /** MetadataEndpoint metadataId */
2047
+ /** MetadataBinding metadataId */
2051
2048
  metadataId?: (string|null);
2052
- }
2053
-
2054
- /** Represents a MetadataEndpoint. */
2055
- class MetadataEndpoint implements IMetadataEndpoint {
2056
-
2057
- /**
2058
- * Constructs a new MetadataEndpoint.
2059
- * @param [properties] Properties to set
2060
- */
2061
- constructor(properties?: sesame.v1.commands.IMetadataEndpoint);
2062
2049
 
2063
- /** MetadataEndpoint node. */
2064
- public node: string;
2050
+ /** MetadataBinding outputId */
2051
+ outputId?: (string|null);
2065
2052
 
2066
- /** MetadataEndpoint track. */
2067
- public track: string;
2068
-
2069
- /** MetadataEndpoint metadataId. */
2070
- public metadataId: string;
2071
-
2072
- /**
2073
- * Creates a new MetadataEndpoint instance using the specified properties.
2074
- * @param [properties] Properties to set
2075
- * @returns MetadataEndpoint instance
2076
- */
2077
- public static create(properties?: sesame.v1.commands.IMetadataEndpoint): sesame.v1.commands.MetadataEndpoint;
2078
-
2079
- /**
2080
- * Encodes the specified MetadataEndpoint message. Does not implicitly {@link sesame.v1.commands.MetadataEndpoint.verify|verify} messages.
2081
- * @param message MetadataEndpoint message or plain object to encode
2082
- * @param [writer] Writer to encode to
2083
- * @returns Writer
2084
- */
2085
- public static encode(message: sesame.v1.commands.IMetadataEndpoint, writer?: $protobuf.Writer): $protobuf.Writer;
2086
-
2087
- /**
2088
- * Encodes the specified MetadataEndpoint message, length delimited. Does not implicitly {@link sesame.v1.commands.MetadataEndpoint.verify|verify} messages.
2089
- * @param message MetadataEndpoint message or plain object to encode
2090
- * @param [writer] Writer to encode to
2091
- * @returns Writer
2092
- */
2093
- public static encodeDelimited(message: sesame.v1.commands.IMetadataEndpoint, writer?: $protobuf.Writer): $protobuf.Writer;
2094
-
2095
- /**
2096
- * Decodes a MetadataEndpoint message from the specified reader or buffer.
2097
- * @param reader Reader or buffer to decode from
2098
- * @param [length] Message length if known beforehand
2099
- * @returns MetadataEndpoint
2100
- * @throws {Error} If the payload is not a reader or valid buffer
2101
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2102
- */
2103
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sesame.v1.commands.MetadataEndpoint;
2104
-
2105
- /**
2106
- * Decodes a MetadataEndpoint message from the specified reader or buffer, length delimited.
2107
- * @param reader Reader or buffer to decode from
2108
- * @returns MetadataEndpoint
2109
- * @throws {Error} If the payload is not a reader or valid buffer
2110
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2111
- */
2112
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sesame.v1.commands.MetadataEndpoint;
2113
-
2114
- /**
2115
- * Verifies a MetadataEndpoint message.
2116
- * @param message Plain object to verify
2117
- * @returns `null` if valid, otherwise the reason why it is not
2118
- */
2119
- public static verify(message: { [k: string]: any }): (string|null);
2120
-
2121
- /**
2122
- * Creates a MetadataEndpoint message from a plain object. Also converts values to their respective internal types.
2123
- * @param object Plain object
2124
- * @returns MetadataEndpoint
2125
- */
2126
- public static fromObject(object: { [k: string]: any }): sesame.v1.commands.MetadataEndpoint;
2127
-
2128
- /**
2129
- * Creates a plain object from a MetadataEndpoint message. Also converts values to other types if specified.
2130
- * @param message MetadataEndpoint
2131
- * @param [options] Conversion options
2132
- * @returns Plain object
2133
- */
2134
- public static toObject(message: sesame.v1.commands.MetadataEndpoint, options?: $protobuf.IConversionOptions): { [k: string]: any };
2135
-
2136
- /**
2137
- * Converts this MetadataEndpoint to JSON.
2138
- * @returns JSON object
2139
- */
2140
- public toJSON(): { [k: string]: any };
2141
-
2142
- /**
2143
- * Gets the default type url for MetadataEndpoint
2144
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2145
- * @returns The default type url
2146
- */
2147
- public static getTypeUrl(typeUrlPrefix?: string): string;
2148
- }
2149
-
2150
- /** Properties of a MetadataBinding. */
2151
- interface IMetadataBinding {
2152
-
2153
- /** MetadataBinding from */
2154
- from?: (sesame.v1.commands.IMetadataEndpoint|null);
2053
+ /** MetadataBinding trackName */
2054
+ trackName?: (string|null);
2155
2055
 
2156
- /** MetadataBinding to */
2157
- to?: (sesame.v1.commands.IMetadataEndpoint|null);
2056
+ /** MetadataBinding targetId */
2057
+ targetId?: (string|null);
2158
2058
  }
2159
2059
 
2160
2060
  /** Represents a MetadataBinding. */
@@ -2166,11 +2066,20 @@ export namespace sesame {
2166
2066
  */
2167
2067
  constructor(properties?: sesame.v1.commands.IMetadataBinding);
2168
2068
 
2169
- /** MetadataBinding from. */
2170
- public from?: (sesame.v1.commands.IMetadataEndpoint|null);
2069
+ /** MetadataBinding sourceId. */
2070
+ public sourceId: string;
2071
+
2072
+ /** MetadataBinding metadataId. */
2073
+ public metadataId: string;
2074
+
2075
+ /** MetadataBinding outputId. */
2076
+ public outputId: string;
2077
+
2078
+ /** MetadataBinding trackName. */
2079
+ public trackName: string;
2171
2080
 
2172
- /** MetadataBinding to. */
2173
- public to?: (sesame.v1.commands.IMetadataEndpoint|null);
2081
+ /** MetadataBinding targetId. */
2082
+ public targetId: string;
2174
2083
 
2175
2084
  /**
2176
2085
  * Creates a new MetadataBinding instance using the specified properties.
package/dist/proto/api.js CHANGED
@@ -5736,26 +5736,28 @@ export const sesame = $root.sesame = (() => {
5736
5736
  return CommandListItem;
5737
5737
  })();
5738
5738
 
5739
- commands.MetadataEndpoint = (function() {
5739
+ commands.MetadataBinding = (function() {
5740
5740
 
5741
5741
  /**
5742
- * Properties of a MetadataEndpoint.
5742
+ * Properties of a MetadataBinding.
5743
5743
  * @memberof sesame.v1.commands
5744
- * @interface IMetadataEndpoint
5745
- * @property {string|null} [node] MetadataEndpoint node
5746
- * @property {string|null} [track] MetadataEndpoint track
5747
- * @property {string|null} [metadataId] MetadataEndpoint metadataId
5744
+ * @interface IMetadataBinding
5745
+ * @property {string|null} [sourceId] MetadataBinding sourceId
5746
+ * @property {string|null} [metadataId] MetadataBinding metadataId
5747
+ * @property {string|null} [outputId] MetadataBinding outputId
5748
+ * @property {string|null} [trackName] MetadataBinding trackName
5749
+ * @property {string|null} [targetId] MetadataBinding targetId
5748
5750
  */
5749
5751
 
5750
5752
  /**
5751
- * Constructs a new MetadataEndpoint.
5753
+ * Constructs a new MetadataBinding.
5752
5754
  * @memberof sesame.v1.commands
5753
- * @classdesc Represents a MetadataEndpoint.
5754
- * @implements IMetadataEndpoint
5755
+ * @classdesc Represents a MetadataBinding.
5756
+ * @implements IMetadataBinding
5755
5757
  * @constructor
5756
- * @param {sesame.v1.commands.IMetadataEndpoint=} [properties] Properties to set
5758
+ * @param {sesame.v1.commands.IMetadataBinding=} [properties] Properties to set
5757
5759
  */
5758
- function MetadataEndpoint(properties) {
5760
+ function MetadataBinding(properties) {
5759
5761
  if (properties)
5760
5762
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
5761
5763
  if (properties[keys[i]] != null)
@@ -5763,271 +5765,44 @@ export const sesame = $root.sesame = (() => {
5763
5765
  }
5764
5766
 
5765
5767
  /**
5766
- * MetadataEndpoint node.
5767
- * @member {string} node
5768
- * @memberof sesame.v1.commands.MetadataEndpoint
5769
- * @instance
5770
- */
5771
- MetadataEndpoint.prototype.node = "";
5772
-
5773
- /**
5774
- * MetadataEndpoint track.
5775
- * @member {string} track
5776
- * @memberof sesame.v1.commands.MetadataEndpoint
5768
+ * MetadataBinding sourceId.
5769
+ * @member {string} sourceId
5770
+ * @memberof sesame.v1.commands.MetadataBinding
5777
5771
  * @instance
5778
5772
  */
5779
- MetadataEndpoint.prototype.track = "";
5773
+ MetadataBinding.prototype.sourceId = "";
5780
5774
 
5781
5775
  /**
5782
- * MetadataEndpoint metadataId.
5776
+ * MetadataBinding metadataId.
5783
5777
  * @member {string} metadataId
5784
- * @memberof sesame.v1.commands.MetadataEndpoint
5778
+ * @memberof sesame.v1.commands.MetadataBinding
5785
5779
  * @instance
5786
5780
  */
5787
- MetadataEndpoint.prototype.metadataId = "";
5788
-
5789
- /**
5790
- * Creates a new MetadataEndpoint instance using the specified properties.
5791
- * @function create
5792
- * @memberof sesame.v1.commands.MetadataEndpoint
5793
- * @static
5794
- * @param {sesame.v1.commands.IMetadataEndpoint=} [properties] Properties to set
5795
- * @returns {sesame.v1.commands.MetadataEndpoint} MetadataEndpoint instance
5796
- */
5797
- MetadataEndpoint.create = function create(properties) {
5798
- return new MetadataEndpoint(properties);
5799
- };
5800
-
5801
- /**
5802
- * Encodes the specified MetadataEndpoint message. Does not implicitly {@link sesame.v1.commands.MetadataEndpoint.verify|verify} messages.
5803
- * @function encode
5804
- * @memberof sesame.v1.commands.MetadataEndpoint
5805
- * @static
5806
- * @param {sesame.v1.commands.IMetadataEndpoint} message MetadataEndpoint message or plain object to encode
5807
- * @param {$protobuf.Writer} [writer] Writer to encode to
5808
- * @returns {$protobuf.Writer} Writer
5809
- */
5810
- MetadataEndpoint.encode = function encode(message, writer) {
5811
- if (!writer)
5812
- writer = $Writer.create();
5813
- if (message.node != null && Object.hasOwnProperty.call(message, "node"))
5814
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.node);
5815
- if (message.track != null && Object.hasOwnProperty.call(message, "track"))
5816
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.track);
5817
- if (message.metadataId != null && Object.hasOwnProperty.call(message, "metadataId"))
5818
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataId);
5819
- return writer;
5820
- };
5821
-
5822
- /**
5823
- * Encodes the specified MetadataEndpoint message, length delimited. Does not implicitly {@link sesame.v1.commands.MetadataEndpoint.verify|verify} messages.
5824
- * @function encodeDelimited
5825
- * @memberof sesame.v1.commands.MetadataEndpoint
5826
- * @static
5827
- * @param {sesame.v1.commands.IMetadataEndpoint} message MetadataEndpoint message or plain object to encode
5828
- * @param {$protobuf.Writer} [writer] Writer to encode to
5829
- * @returns {$protobuf.Writer} Writer
5830
- */
5831
- MetadataEndpoint.encodeDelimited = function encodeDelimited(message, writer) {
5832
- return this.encode(message, writer).ldelim();
5833
- };
5834
-
5835
- /**
5836
- * Decodes a MetadataEndpoint message from the specified reader or buffer.
5837
- * @function decode
5838
- * @memberof sesame.v1.commands.MetadataEndpoint
5839
- * @static
5840
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
5841
- * @param {number} [length] Message length if known beforehand
5842
- * @returns {sesame.v1.commands.MetadataEndpoint} MetadataEndpoint
5843
- * @throws {Error} If the payload is not a reader or valid buffer
5844
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
5845
- */
5846
- MetadataEndpoint.decode = function decode(reader, length, error) {
5847
- if (!(reader instanceof $Reader))
5848
- reader = $Reader.create(reader);
5849
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sesame.v1.commands.MetadataEndpoint();
5850
- while (reader.pos < end) {
5851
- let tag = reader.uint32();
5852
- if (tag === error)
5853
- break;
5854
- switch (tag >>> 3) {
5855
- case 1: {
5856
- message.node = reader.string();
5857
- break;
5858
- }
5859
- case 2: {
5860
- message.track = reader.string();
5861
- break;
5862
- }
5863
- case 3: {
5864
- message.metadataId = reader.string();
5865
- break;
5866
- }
5867
- default:
5868
- reader.skipType(tag & 7);
5869
- break;
5870
- }
5871
- }
5872
- return message;
5873
- };
5874
-
5875
- /**
5876
- * Decodes a MetadataEndpoint message from the specified reader or buffer, length delimited.
5877
- * @function decodeDelimited
5878
- * @memberof sesame.v1.commands.MetadataEndpoint
5879
- * @static
5880
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
5881
- * @returns {sesame.v1.commands.MetadataEndpoint} MetadataEndpoint
5882
- * @throws {Error} If the payload is not a reader or valid buffer
5883
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
5884
- */
5885
- MetadataEndpoint.decodeDelimited = function decodeDelimited(reader) {
5886
- if (!(reader instanceof $Reader))
5887
- reader = new $Reader(reader);
5888
- return this.decode(reader, reader.uint32());
5889
- };
5890
-
5891
- /**
5892
- * Verifies a MetadataEndpoint message.
5893
- * @function verify
5894
- * @memberof sesame.v1.commands.MetadataEndpoint
5895
- * @static
5896
- * @param {Object.<string,*>} message Plain object to verify
5897
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
5898
- */
5899
- MetadataEndpoint.verify = function verify(message) {
5900
- if (typeof message !== "object" || message === null)
5901
- return "object expected";
5902
- if (message.node != null && message.hasOwnProperty("node"))
5903
- if (!$util.isString(message.node))
5904
- return "node: string expected";
5905
- if (message.track != null && message.hasOwnProperty("track"))
5906
- if (!$util.isString(message.track))
5907
- return "track: string expected";
5908
- if (message.metadataId != null && message.hasOwnProperty("metadataId"))
5909
- if (!$util.isString(message.metadataId))
5910
- return "metadataId: string expected";
5911
- return null;
5912
- };
5913
-
5914
- /**
5915
- * Creates a MetadataEndpoint message from a plain object. Also converts values to their respective internal types.
5916
- * @function fromObject
5917
- * @memberof sesame.v1.commands.MetadataEndpoint
5918
- * @static
5919
- * @param {Object.<string,*>} object Plain object
5920
- * @returns {sesame.v1.commands.MetadataEndpoint} MetadataEndpoint
5921
- */
5922
- MetadataEndpoint.fromObject = function fromObject(object) {
5923
- if (object instanceof $root.sesame.v1.commands.MetadataEndpoint)
5924
- return object;
5925
- let message = new $root.sesame.v1.commands.MetadataEndpoint();
5926
- if (object.node != null)
5927
- message.node = String(object.node);
5928
- if (object.track != null)
5929
- message.track = String(object.track);
5930
- if (object.metadataId != null)
5931
- message.metadataId = String(object.metadataId);
5932
- return message;
5933
- };
5934
-
5935
- /**
5936
- * Creates a plain object from a MetadataEndpoint message. Also converts values to other types if specified.
5937
- * @function toObject
5938
- * @memberof sesame.v1.commands.MetadataEndpoint
5939
- * @static
5940
- * @param {sesame.v1.commands.MetadataEndpoint} message MetadataEndpoint
5941
- * @param {$protobuf.IConversionOptions} [options] Conversion options
5942
- * @returns {Object.<string,*>} Plain object
5943
- */
5944
- MetadataEndpoint.toObject = function toObject(message, options) {
5945
- if (!options)
5946
- options = {};
5947
- let object = {};
5948
- if (options.defaults) {
5949
- object.node = "";
5950
- object.track = "";
5951
- object.metadataId = "";
5952
- }
5953
- if (message.node != null && message.hasOwnProperty("node"))
5954
- object.node = message.node;
5955
- if (message.track != null && message.hasOwnProperty("track"))
5956
- object.track = message.track;
5957
- if (message.metadataId != null && message.hasOwnProperty("metadataId"))
5958
- object.metadataId = message.metadataId;
5959
- return object;
5960
- };
5781
+ MetadataBinding.prototype.metadataId = "";
5961
5782
 
5962
5783
  /**
5963
- * Converts this MetadataEndpoint to JSON.
5964
- * @function toJSON
5965
- * @memberof sesame.v1.commands.MetadataEndpoint
5784
+ * MetadataBinding outputId.
5785
+ * @member {string} outputId
5786
+ * @memberof sesame.v1.commands.MetadataBinding
5966
5787
  * @instance
5967
- * @returns {Object.<string,*>} JSON object
5968
5788
  */
5969
- MetadataEndpoint.prototype.toJSON = function toJSON() {
5970
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5971
- };
5789
+ MetadataBinding.prototype.outputId = "";
5972
5790
 
5973
5791
  /**
5974
- * Gets the default type url for MetadataEndpoint
5975
- * @function getTypeUrl
5976
- * @memberof sesame.v1.commands.MetadataEndpoint
5977
- * @static
5978
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5979
- * @returns {string} The default type url
5980
- */
5981
- MetadataEndpoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
5982
- if (typeUrlPrefix === undefined) {
5983
- typeUrlPrefix = "type.googleapis.com";
5984
- }
5985
- return typeUrlPrefix + "/sesame.v1.commands.MetadataEndpoint";
5986
- };
5987
-
5988
- return MetadataEndpoint;
5989
- })();
5990
-
5991
- commands.MetadataBinding = (function() {
5992
-
5993
- /**
5994
- * Properties of a MetadataBinding.
5995
- * @memberof sesame.v1.commands
5996
- * @interface IMetadataBinding
5997
- * @property {sesame.v1.commands.IMetadataEndpoint|null} [from] MetadataBinding from
5998
- * @property {sesame.v1.commands.IMetadataEndpoint|null} [to] MetadataBinding to
5999
- */
6000
-
6001
- /**
6002
- * Constructs a new MetadataBinding.
6003
- * @memberof sesame.v1.commands
6004
- * @classdesc Represents a MetadataBinding.
6005
- * @implements IMetadataBinding
6006
- * @constructor
6007
- * @param {sesame.v1.commands.IMetadataBinding=} [properties] Properties to set
6008
- */
6009
- function MetadataBinding(properties) {
6010
- if (properties)
6011
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
6012
- if (properties[keys[i]] != null)
6013
- this[keys[i]] = properties[keys[i]];
6014
- }
6015
-
6016
- /**
6017
- * MetadataBinding from.
6018
- * @member {sesame.v1.commands.IMetadataEndpoint|null|undefined} from
5792
+ * MetadataBinding trackName.
5793
+ * @member {string} trackName
6019
5794
  * @memberof sesame.v1.commands.MetadataBinding
6020
5795
  * @instance
6021
5796
  */
6022
- MetadataBinding.prototype.from = null;
5797
+ MetadataBinding.prototype.trackName = "";
6023
5798
 
6024
5799
  /**
6025
- * MetadataBinding to.
6026
- * @member {sesame.v1.commands.IMetadataEndpoint|null|undefined} to
5800
+ * MetadataBinding targetId.
5801
+ * @member {string} targetId
6027
5802
  * @memberof sesame.v1.commands.MetadataBinding
6028
5803
  * @instance
6029
5804
  */
6030
- MetadataBinding.prototype.to = null;
5805
+ MetadataBinding.prototype.targetId = "";
6031
5806
 
6032
5807
  /**
6033
5808
  * Creates a new MetadataBinding instance using the specified properties.
@@ -6053,10 +5828,16 @@ export const sesame = $root.sesame = (() => {
6053
5828
  MetadataBinding.encode = function encode(message, writer) {
6054
5829
  if (!writer)
6055
5830
  writer = $Writer.create();
6056
- if (message.from != null && Object.hasOwnProperty.call(message, "from"))
6057
- $root.sesame.v1.commands.MetadataEndpoint.encode(message.from, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
6058
- if (message.to != null && Object.hasOwnProperty.call(message, "to"))
6059
- $root.sesame.v1.commands.MetadataEndpoint.encode(message.to, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
5831
+ if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
5832
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceId);
5833
+ if (message.metadataId != null && Object.hasOwnProperty.call(message, "metadataId"))
5834
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.metadataId);
5835
+ if (message.outputId != null && Object.hasOwnProperty.call(message, "outputId"))
5836
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputId);
5837
+ if (message.trackName != null && Object.hasOwnProperty.call(message, "trackName"))
5838
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.trackName);
5839
+ if (message.targetId != null && Object.hasOwnProperty.call(message, "targetId"))
5840
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetId);
6060
5841
  return writer;
6061
5842
  };
6062
5843
 
@@ -6094,11 +5875,23 @@ export const sesame = $root.sesame = (() => {
6094
5875
  break;
6095
5876
  switch (tag >>> 3) {
6096
5877
  case 1: {
6097
- message.from = $root.sesame.v1.commands.MetadataEndpoint.decode(reader, reader.uint32());
5878
+ message.sourceId = reader.string();
6098
5879
  break;
6099
5880
  }
6100
5881
  case 2: {
6101
- message.to = $root.sesame.v1.commands.MetadataEndpoint.decode(reader, reader.uint32());
5882
+ message.metadataId = reader.string();
5883
+ break;
5884
+ }
5885
+ case 3: {
5886
+ message.outputId = reader.string();
5887
+ break;
5888
+ }
5889
+ case 4: {
5890
+ message.trackName = reader.string();
5891
+ break;
5892
+ }
5893
+ case 5: {
5894
+ message.targetId = reader.string();
6102
5895
  break;
6103
5896
  }
6104
5897
  default:
@@ -6136,16 +5929,21 @@ export const sesame = $root.sesame = (() => {
6136
5929
  MetadataBinding.verify = function verify(message) {
6137
5930
  if (typeof message !== "object" || message === null)
6138
5931
  return "object expected";
6139
- if (message.from != null && message.hasOwnProperty("from")) {
6140
- let error = $root.sesame.v1.commands.MetadataEndpoint.verify(message.from);
6141
- if (error)
6142
- return "from." + error;
6143
- }
6144
- if (message.to != null && message.hasOwnProperty("to")) {
6145
- let error = $root.sesame.v1.commands.MetadataEndpoint.verify(message.to);
6146
- if (error)
6147
- return "to." + error;
6148
- }
5932
+ if (message.sourceId != null && message.hasOwnProperty("sourceId"))
5933
+ if (!$util.isString(message.sourceId))
5934
+ return "sourceId: string expected";
5935
+ if (message.metadataId != null && message.hasOwnProperty("metadataId"))
5936
+ if (!$util.isString(message.metadataId))
5937
+ return "metadataId: string expected";
5938
+ if (message.outputId != null && message.hasOwnProperty("outputId"))
5939
+ if (!$util.isString(message.outputId))
5940
+ return "outputId: string expected";
5941
+ if (message.trackName != null && message.hasOwnProperty("trackName"))
5942
+ if (!$util.isString(message.trackName))
5943
+ return "trackName: string expected";
5944
+ if (message.targetId != null && message.hasOwnProperty("targetId"))
5945
+ if (!$util.isString(message.targetId))
5946
+ return "targetId: string expected";
6149
5947
  return null;
6150
5948
  };
6151
5949
 
@@ -6161,16 +5959,16 @@ export const sesame = $root.sesame = (() => {
6161
5959
  if (object instanceof $root.sesame.v1.commands.MetadataBinding)
6162
5960
  return object;
6163
5961
  let message = new $root.sesame.v1.commands.MetadataBinding();
6164
- if (object.from != null) {
6165
- if (typeof object.from !== "object")
6166
- throw TypeError(".sesame.v1.commands.MetadataBinding.from: object expected");
6167
- message.from = $root.sesame.v1.commands.MetadataEndpoint.fromObject(object.from);
6168
- }
6169
- if (object.to != null) {
6170
- if (typeof object.to !== "object")
6171
- throw TypeError(".sesame.v1.commands.MetadataBinding.to: object expected");
6172
- message.to = $root.sesame.v1.commands.MetadataEndpoint.fromObject(object.to);
6173
- }
5962
+ if (object.sourceId != null)
5963
+ message.sourceId = String(object.sourceId);
5964
+ if (object.metadataId != null)
5965
+ message.metadataId = String(object.metadataId);
5966
+ if (object.outputId != null)
5967
+ message.outputId = String(object.outputId);
5968
+ if (object.trackName != null)
5969
+ message.trackName = String(object.trackName);
5970
+ if (object.targetId != null)
5971
+ message.targetId = String(object.targetId);
6174
5972
  return message;
6175
5973
  };
6176
5974
 
@@ -6188,13 +5986,22 @@ export const sesame = $root.sesame = (() => {
6188
5986
  options = {};
6189
5987
  let object = {};
6190
5988
  if (options.defaults) {
6191
- object.from = null;
6192
- object.to = null;
5989
+ object.sourceId = "";
5990
+ object.metadataId = "";
5991
+ object.outputId = "";
5992
+ object.trackName = "";
5993
+ object.targetId = "";
6193
5994
  }
6194
- if (message.from != null && message.hasOwnProperty("from"))
6195
- object.from = $root.sesame.v1.commands.MetadataEndpoint.toObject(message.from, options);
6196
- if (message.to != null && message.hasOwnProperty("to"))
6197
- object.to = $root.sesame.v1.commands.MetadataEndpoint.toObject(message.to, options);
5995
+ if (message.sourceId != null && message.hasOwnProperty("sourceId"))
5996
+ object.sourceId = message.sourceId;
5997
+ if (message.metadataId != null && message.hasOwnProperty("metadataId"))
5998
+ object.metadataId = message.metadataId;
5999
+ if (message.outputId != null && message.hasOwnProperty("outputId"))
6000
+ object.outputId = message.outputId;
6001
+ if (message.trackName != null && message.hasOwnProperty("trackName"))
6002
+ object.trackName = message.trackName;
6003
+ if (message.targetId != null && message.hasOwnProperty("targetId"))
6004
+ object.targetId = message.targetId;
6198
6005
  return object;
6199
6006
  };
6200
6007
 
@@ -68,6 +68,21 @@ export declare class SesameClient extends EventEmitter {
68
68
  getService(): RPCClient<sesame.v1.rpc.SesameAPIService>;
69
69
  requestKeyframe(outputId: string): Promise<void>;
70
70
  execute(cl: CommandList): Promise<void>;
71
+ /**
72
+ * Publish a data-frame payload to all outbound targets registered for
73
+ * `(nodeId, metadataId)` in the current MetadataRouter binding table.
74
+ *
75
+ * The server resolves the binding table entry for the given `(nodeId, metadataId)`
76
+ * pair and sends a `FRAME_TYPE_DATA` frame to each configured `(outputId, trackName)`
77
+ * target. If no outbound binding exists a warning is logged server-side and the call
78
+ * is a no-op.
79
+ *
80
+ * @param nodeId ID of the publishing node (source, mixer, or other engine node).
81
+ * @param metadataId Routing key - must match the `metadata_id` field in the binding.
82
+ * @param payload Raw frame payload bytes. For `DATA_TYPE_JSON` this must be valid
83
+ * UTF-8 encoded JSON; for `DATA_TYPE_BINARY` it is opaque bytes.
84
+ * @param dataType Wire encoding of the payload (defaults to `DATA_TYPE_JSON`).
85
+ */
71
86
  publishMetadata(nodeId: string, metadataId: string, payload: Uint8Array, dataType?: sesame.v1.wire.DataType): Promise<void>;
72
87
  disconnect(): void;
73
88
  }