@vertexvis/stream-api 0.13.2-canary.39 → 0.13.2-canary.41

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.
@@ -11646,6 +11646,198 @@ const vertexvis = $root.vertexvis = (() => {
11646
11646
  return Token;
11647
11647
  })();
11648
11648
 
11649
+ stream.TransformInteraction = (function() {
11650
+
11651
+ /**
11652
+ * Properties of a TransformInteraction.
11653
+ * @memberof vertexvis.protobuf.stream
11654
+ * @interface ITransformInteraction
11655
+ * @property {vertexvis.protobuf.core.IAffineMatrix4f|null} [delta] TransformInteraction delta
11656
+ */
11657
+
11658
+ /**
11659
+ * Constructs a new TransformInteraction.
11660
+ * @memberof vertexvis.protobuf.stream
11661
+ * @classdesc Represents a TransformInteraction.
11662
+ * @implements ITransformInteraction
11663
+ * @constructor
11664
+ * @param {vertexvis.protobuf.stream.ITransformInteraction=} [properties] Properties to set
11665
+ */
11666
+ function TransformInteraction(properties) {
11667
+ if (properties)
11668
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11669
+ if (properties[keys[i]] != null)
11670
+ this[keys[i]] = properties[keys[i]];
11671
+ }
11672
+
11673
+ /**
11674
+ * TransformInteraction delta.
11675
+ * @member {vertexvis.protobuf.core.IAffineMatrix4f|null|undefined} delta
11676
+ * @memberof vertexvis.protobuf.stream.TransformInteraction
11677
+ * @instance
11678
+ */
11679
+ TransformInteraction.prototype.delta = null;
11680
+
11681
+ /**
11682
+ * Creates a new TransformInteraction instance using the specified properties.
11683
+ * @function create
11684
+ * @memberof vertexvis.protobuf.stream.TransformInteraction
11685
+ * @static
11686
+ * @param {vertexvis.protobuf.stream.ITransformInteraction=} [properties] Properties to set
11687
+ * @returns {vertexvis.protobuf.stream.TransformInteraction} TransformInteraction instance
11688
+ */
11689
+ TransformInteraction.create = function create(properties) {
11690
+ return new TransformInteraction(properties);
11691
+ };
11692
+
11693
+ /**
11694
+ * Encodes the specified TransformInteraction message. Does not implicitly {@link vertexvis.protobuf.stream.TransformInteraction.verify|verify} messages.
11695
+ * @function encode
11696
+ * @memberof vertexvis.protobuf.stream.TransformInteraction
11697
+ * @static
11698
+ * @param {vertexvis.protobuf.stream.ITransformInteraction} message TransformInteraction message or plain object to encode
11699
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11700
+ * @returns {$protobuf.Writer} Writer
11701
+ */
11702
+ TransformInteraction.encode = function encode(message, writer) {
11703
+ if (!writer)
11704
+ writer = $Writer.create();
11705
+ if (message.delta != null && Object.hasOwnProperty.call(message, "delta"))
11706
+ $root.vertexvis.protobuf.core.AffineMatrix4f.encode(message.delta, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
11707
+ return writer;
11708
+ };
11709
+
11710
+ /**
11711
+ * Encodes the specified TransformInteraction message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.TransformInteraction.verify|verify} messages.
11712
+ * @function encodeDelimited
11713
+ * @memberof vertexvis.protobuf.stream.TransformInteraction
11714
+ * @static
11715
+ * @param {vertexvis.protobuf.stream.ITransformInteraction} message TransformInteraction message or plain object to encode
11716
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11717
+ * @returns {$protobuf.Writer} Writer
11718
+ */
11719
+ TransformInteraction.encodeDelimited = function encodeDelimited(message, writer) {
11720
+ return this.encode(message, writer).ldelim();
11721
+ };
11722
+
11723
+ /**
11724
+ * Decodes a TransformInteraction message from the specified reader or buffer.
11725
+ * @function decode
11726
+ * @memberof vertexvis.protobuf.stream.TransformInteraction
11727
+ * @static
11728
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11729
+ * @param {number} [length] Message length if known beforehand
11730
+ * @returns {vertexvis.protobuf.stream.TransformInteraction} TransformInteraction
11731
+ * @throws {Error} If the payload is not a reader or valid buffer
11732
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11733
+ */
11734
+ TransformInteraction.decode = function decode(reader, length) {
11735
+ if (!(reader instanceof $Reader))
11736
+ reader = $Reader.create(reader);
11737
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.TransformInteraction();
11738
+ while (reader.pos < end) {
11739
+ let tag = reader.uint32();
11740
+ switch (tag >>> 3) {
11741
+ case 1:
11742
+ message.delta = $root.vertexvis.protobuf.core.AffineMatrix4f.decode(reader, reader.uint32());
11743
+ break;
11744
+ default:
11745
+ reader.skipType(tag & 7);
11746
+ break;
11747
+ }
11748
+ }
11749
+ return message;
11750
+ };
11751
+
11752
+ /**
11753
+ * Decodes a TransformInteraction message from the specified reader or buffer, length delimited.
11754
+ * @function decodeDelimited
11755
+ * @memberof vertexvis.protobuf.stream.TransformInteraction
11756
+ * @static
11757
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11758
+ * @returns {vertexvis.protobuf.stream.TransformInteraction} TransformInteraction
11759
+ * @throws {Error} If the payload is not a reader or valid buffer
11760
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11761
+ */
11762
+ TransformInteraction.decodeDelimited = function decodeDelimited(reader) {
11763
+ if (!(reader instanceof $Reader))
11764
+ reader = new $Reader(reader);
11765
+ return this.decode(reader, reader.uint32());
11766
+ };
11767
+
11768
+ /**
11769
+ * Verifies a TransformInteraction message.
11770
+ * @function verify
11771
+ * @memberof vertexvis.protobuf.stream.TransformInteraction
11772
+ * @static
11773
+ * @param {Object.<string,*>} message Plain object to verify
11774
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
11775
+ */
11776
+ TransformInteraction.verify = function verify(message) {
11777
+ if (typeof message !== "object" || message === null)
11778
+ return "object expected";
11779
+ if (message.delta != null && message.hasOwnProperty("delta")) {
11780
+ let error = $root.vertexvis.protobuf.core.AffineMatrix4f.verify(message.delta);
11781
+ if (error)
11782
+ return "delta." + error;
11783
+ }
11784
+ return null;
11785
+ };
11786
+
11787
+ /**
11788
+ * Creates a TransformInteraction message from a plain object. Also converts values to their respective internal types.
11789
+ * @function fromObject
11790
+ * @memberof vertexvis.protobuf.stream.TransformInteraction
11791
+ * @static
11792
+ * @param {Object.<string,*>} object Plain object
11793
+ * @returns {vertexvis.protobuf.stream.TransformInteraction} TransformInteraction
11794
+ */
11795
+ TransformInteraction.fromObject = function fromObject(object) {
11796
+ if (object instanceof $root.vertexvis.protobuf.stream.TransformInteraction)
11797
+ return object;
11798
+ let message = new $root.vertexvis.protobuf.stream.TransformInteraction();
11799
+ if (object.delta != null) {
11800
+ if (typeof object.delta !== "object")
11801
+ throw TypeError(".vertexvis.protobuf.stream.TransformInteraction.delta: object expected");
11802
+ message.delta = $root.vertexvis.protobuf.core.AffineMatrix4f.fromObject(object.delta);
11803
+ }
11804
+ return message;
11805
+ };
11806
+
11807
+ /**
11808
+ * Creates a plain object from a TransformInteraction message. Also converts values to other types if specified.
11809
+ * @function toObject
11810
+ * @memberof vertexvis.protobuf.stream.TransformInteraction
11811
+ * @static
11812
+ * @param {vertexvis.protobuf.stream.TransformInteraction} message TransformInteraction
11813
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
11814
+ * @returns {Object.<string,*>} Plain object
11815
+ */
11816
+ TransformInteraction.toObject = function toObject(message, options) {
11817
+ if (!options)
11818
+ options = {};
11819
+ let object = {};
11820
+ if (options.defaults)
11821
+ object.delta = null;
11822
+ if (message.delta != null && message.hasOwnProperty("delta"))
11823
+ object.delta = $root.vertexvis.protobuf.core.AffineMatrix4f.toObject(message.delta, options);
11824
+ return object;
11825
+ };
11826
+
11827
+ /**
11828
+ * Converts this TransformInteraction to JSON.
11829
+ * @function toJSON
11830
+ * @memberof vertexvis.protobuf.stream.TransformInteraction
11831
+ * @instance
11832
+ * @returns {Object.<string,*>} JSON object
11833
+ */
11834
+ TransformInteraction.prototype.toJSON = function toJSON() {
11835
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
11836
+ };
11837
+
11838
+ return TransformInteraction;
11839
+ })();
11840
+
11649
11841
  stream.Error = (function() {
11650
11842
 
11651
11843
  /**
@@ -12873,6 +13065,7 @@ const vertexvis = $root.vertexvis = (() => {
12873
13065
  * @property {vertexvis.protobuf.stream.IGetStencilBufferPayload|null} [getStencilBuffer] StreamRequest getStencilBuffer
12874
13066
  * @property {vertexvis.protobuf.stream.IResetViewPlayload|null} [resetView] StreamRequest resetView
12875
13067
  * @property {vertexvis.protobuf.stream.IRefreshTokenPayload|null} [refreshToken] StreamRequest refreshToken
13068
+ * @property {vertexvis.protobuf.stream.IUpdateInteractionPayload|null} [updateInteraction] StreamRequest updateInteraction
12876
13069
  */
12877
13070
 
12878
13071
  /**
@@ -13050,17 +13243,25 @@ const vertexvis = $root.vertexvis = (() => {
13050
13243
  */
13051
13244
  StreamRequest.prototype.refreshToken = null;
13052
13245
 
13246
+ /**
13247
+ * StreamRequest updateInteraction.
13248
+ * @member {vertexvis.protobuf.stream.IUpdateInteractionPayload|null|undefined} updateInteraction
13249
+ * @memberof vertexvis.protobuf.stream.StreamRequest
13250
+ * @instance
13251
+ */
13252
+ StreamRequest.prototype.updateInteraction = null;
13253
+
13053
13254
  // OneOf field names bound to virtual getters and setters
13054
13255
  let $oneOfFields;
13055
13256
 
13056
13257
  /**
13057
13258
  * StreamRequest payload.
13058
- * @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"gracefulReconnection"|"reconnect"|"hitItems"|"createSceneAlteration"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"getStencilBuffer"|"resetView"|"refreshToken"|undefined} payload
13259
+ * @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"gracefulReconnection"|"reconnect"|"hitItems"|"createSceneAlteration"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"getStencilBuffer"|"resetView"|"refreshToken"|"updateInteraction"|undefined} payload
13059
13260
  * @memberof vertexvis.protobuf.stream.StreamRequest
13060
13261
  * @instance
13061
13262
  */
13062
13263
  Object.defineProperty(StreamRequest.prototype, "payload", {
13063
- get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "gracefulReconnection", "reconnect", "hitItems", "createSceneAlteration", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "getStencilBuffer", "resetView", "refreshToken"]),
13264
+ get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "gracefulReconnection", "reconnect", "hitItems", "createSceneAlteration", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "getStencilBuffer", "resetView", "refreshToken", "updateInteraction"]),
13064
13265
  set: $util.oneOfSetter($oneOfFields)
13065
13266
  });
13066
13267
 
@@ -13128,6 +13329,8 @@ const vertexvis = $root.vertexvis = (() => {
13128
13329
  $root.vertexvis.protobuf.stream.ResetViewPlayload.encode(message.resetView, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
13129
13330
  if (message.refreshToken != null && Object.hasOwnProperty.call(message, "refreshToken"))
13130
13331
  $root.vertexvis.protobuf.stream.RefreshTokenPayload.encode(message.refreshToken, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
13332
+ if (message.updateInteraction != null && Object.hasOwnProperty.call(message, "updateInteraction"))
13333
+ $root.vertexvis.protobuf.stream.UpdateInteractionPayload.encode(message.updateInteraction, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
13131
13334
  return writer;
13132
13335
  };
13133
13336
 
@@ -13222,6 +13425,9 @@ const vertexvis = $root.vertexvis = (() => {
13222
13425
  case 20:
13223
13426
  message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenPayload.decode(reader, reader.uint32());
13224
13427
  break;
13428
+ case 21:
13429
+ message.updateInteraction = $root.vertexvis.protobuf.stream.UpdateInteractionPayload.decode(reader, reader.uint32());
13430
+ break;
13225
13431
  default:
13226
13432
  reader.skipType(tag & 7);
13227
13433
  break;
@@ -13451,6 +13657,16 @@ const vertexvis = $root.vertexvis = (() => {
13451
13657
  return "refreshToken." + error;
13452
13658
  }
13453
13659
  }
13660
+ if (message.updateInteraction != null && message.hasOwnProperty("updateInteraction")) {
13661
+ if (properties.payload === 1)
13662
+ return "payload: multiple values";
13663
+ properties.payload = 1;
13664
+ {
13665
+ let error = $root.vertexvis.protobuf.stream.UpdateInteractionPayload.verify(message.updateInteraction);
13666
+ if (error)
13667
+ return "updateInteraction." + error;
13668
+ }
13669
+ }
13454
13670
  return null;
13455
13671
  };
13456
13672
 
@@ -13566,6 +13782,11 @@ const vertexvis = $root.vertexvis = (() => {
13566
13782
  throw TypeError(".vertexvis.protobuf.stream.StreamRequest.refreshToken: object expected");
13567
13783
  message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenPayload.fromObject(object.refreshToken);
13568
13784
  }
13785
+ if (object.updateInteraction != null) {
13786
+ if (typeof object.updateInteraction !== "object")
13787
+ throw TypeError(".vertexvis.protobuf.stream.StreamRequest.updateInteraction: object expected");
13788
+ message.updateInteraction = $root.vertexvis.protobuf.stream.UpdateInteractionPayload.fromObject(object.updateInteraction);
13789
+ }
13569
13790
  return message;
13570
13791
  };
13571
13792
 
@@ -13681,6 +13902,11 @@ const vertexvis = $root.vertexvis = (() => {
13681
13902
  if (options.oneofs)
13682
13903
  object.payload = "refreshToken";
13683
13904
  }
13905
+ if (message.updateInteraction != null && message.hasOwnProperty("updateInteraction")) {
13906
+ object.updateInteraction = $root.vertexvis.protobuf.stream.UpdateInteractionPayload.toObject(message.updateInteraction, options);
13907
+ if (options.oneofs)
13908
+ object.payload = "updateInteraction";
13909
+ }
13684
13910
  return object;
13685
13911
  };
13686
13912
 
@@ -14252,6 +14478,7 @@ const vertexvis = $root.vertexvis = (() => {
14252
14478
  * Properties of a BeginInteractionPayload.
14253
14479
  * @memberof vertexvis.protobuf.stream
14254
14480
  * @interface IBeginInteractionPayload
14481
+ * @property {vertexvis.protobuf.stream.ITransformInteraction|null} [transform] BeginInteractionPayload transform
14255
14482
  */
14256
14483
 
14257
14484
  /**
@@ -14269,6 +14496,28 @@ const vertexvis = $root.vertexvis = (() => {
14269
14496
  this[keys[i]] = properties[keys[i]];
14270
14497
  }
14271
14498
 
14499
+ /**
14500
+ * BeginInteractionPayload transform.
14501
+ * @member {vertexvis.protobuf.stream.ITransformInteraction|null|undefined} transform
14502
+ * @memberof vertexvis.protobuf.stream.BeginInteractionPayload
14503
+ * @instance
14504
+ */
14505
+ BeginInteractionPayload.prototype.transform = null;
14506
+
14507
+ // OneOf field names bound to virtual getters and setters
14508
+ let $oneOfFields;
14509
+
14510
+ /**
14511
+ * BeginInteractionPayload interaction.
14512
+ * @member {"transform"|undefined} interaction
14513
+ * @memberof vertexvis.protobuf.stream.BeginInteractionPayload
14514
+ * @instance
14515
+ */
14516
+ Object.defineProperty(BeginInteractionPayload.prototype, "interaction", {
14517
+ get: $util.oneOfGetter($oneOfFields = ["transform"]),
14518
+ set: $util.oneOfSetter($oneOfFields)
14519
+ });
14520
+
14272
14521
  /**
14273
14522
  * Creates a new BeginInteractionPayload instance using the specified properties.
14274
14523
  * @function create
@@ -14293,6 +14542,8 @@ const vertexvis = $root.vertexvis = (() => {
14293
14542
  BeginInteractionPayload.encode = function encode(message, writer) {
14294
14543
  if (!writer)
14295
14544
  writer = $Writer.create();
14545
+ if (message.transform != null && Object.hasOwnProperty.call(message, "transform"))
14546
+ $root.vertexvis.protobuf.stream.TransformInteraction.encode(message.transform, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
14296
14547
  return writer;
14297
14548
  };
14298
14549
 
@@ -14327,6 +14578,9 @@ const vertexvis = $root.vertexvis = (() => {
14327
14578
  while (reader.pos < end) {
14328
14579
  let tag = reader.uint32();
14329
14580
  switch (tag >>> 3) {
14581
+ case 1:
14582
+ message.transform = $root.vertexvis.protobuf.stream.TransformInteraction.decode(reader, reader.uint32());
14583
+ break;
14330
14584
  default:
14331
14585
  reader.skipType(tag & 7);
14332
14586
  break;
@@ -14362,6 +14616,13 @@ const vertexvis = $root.vertexvis = (() => {
14362
14616
  BeginInteractionPayload.verify = function verify(message) {
14363
14617
  if (typeof message !== "object" || message === null)
14364
14618
  return "object expected";
14619
+ if (message.transform != null && message.hasOwnProperty("transform")) {
14620
+ {
14621
+ let error = $root.vertexvis.protobuf.stream.TransformInteraction.verify(message.transform);
14622
+ if (error)
14623
+ return "transform." + error;
14624
+ }
14625
+ }
14365
14626
  return null;
14366
14627
  };
14367
14628
 
@@ -14376,7 +14637,13 @@ const vertexvis = $root.vertexvis = (() => {
14376
14637
  BeginInteractionPayload.fromObject = function fromObject(object) {
14377
14638
  if (object instanceof $root.vertexvis.protobuf.stream.BeginInteractionPayload)
14378
14639
  return object;
14379
- return new $root.vertexvis.protobuf.stream.BeginInteractionPayload();
14640
+ let message = new $root.vertexvis.protobuf.stream.BeginInteractionPayload();
14641
+ if (object.transform != null) {
14642
+ if (typeof object.transform !== "object")
14643
+ throw TypeError(".vertexvis.protobuf.stream.BeginInteractionPayload.transform: object expected");
14644
+ message.transform = $root.vertexvis.protobuf.stream.TransformInteraction.fromObject(object.transform);
14645
+ }
14646
+ return message;
14380
14647
  };
14381
14648
 
14382
14649
  /**
@@ -14388,8 +14655,16 @@ const vertexvis = $root.vertexvis = (() => {
14388
14655
  * @param {$protobuf.IConversionOptions} [options] Conversion options
14389
14656
  * @returns {Object.<string,*>} Plain object
14390
14657
  */
14391
- BeginInteractionPayload.toObject = function toObject() {
14392
- return {};
14658
+ BeginInteractionPayload.toObject = function toObject(message, options) {
14659
+ if (!options)
14660
+ options = {};
14661
+ let object = {};
14662
+ if (message.transform != null && message.hasOwnProperty("transform")) {
14663
+ object.transform = $root.vertexvis.protobuf.stream.TransformInteraction.toObject(message.transform, options);
14664
+ if (options.oneofs)
14665
+ object.interaction = "transform";
14666
+ }
14667
+ return object;
14393
14668
  };
14394
14669
 
14395
14670
  /**
@@ -14406,6 +14681,243 @@ const vertexvis = $root.vertexvis = (() => {
14406
14681
  return BeginInteractionPayload;
14407
14682
  })();
14408
14683
 
14684
+ stream.UpdateInteractionPayload = (function() {
14685
+
14686
+ /**
14687
+ * Properties of an UpdateInteractionPayload.
14688
+ * @memberof vertexvis.protobuf.stream
14689
+ * @interface IUpdateInteractionPayload
14690
+ * @property {google.protobuf.IStringValue|null} [frameCorrelationId] UpdateInteractionPayload frameCorrelationId
14691
+ * @property {vertexvis.protobuf.stream.ITransformInteraction|null} [transform] UpdateInteractionPayload transform
14692
+ */
14693
+
14694
+ /**
14695
+ * Constructs a new UpdateInteractionPayload.
14696
+ * @memberof vertexvis.protobuf.stream
14697
+ * @classdesc Represents an UpdateInteractionPayload.
14698
+ * @implements IUpdateInteractionPayload
14699
+ * @constructor
14700
+ * @param {vertexvis.protobuf.stream.IUpdateInteractionPayload=} [properties] Properties to set
14701
+ */
14702
+ function UpdateInteractionPayload(properties) {
14703
+ if (properties)
14704
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14705
+ if (properties[keys[i]] != null)
14706
+ this[keys[i]] = properties[keys[i]];
14707
+ }
14708
+
14709
+ /**
14710
+ * UpdateInteractionPayload frameCorrelationId.
14711
+ * @member {google.protobuf.IStringValue|null|undefined} frameCorrelationId
14712
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
14713
+ * @instance
14714
+ */
14715
+ UpdateInteractionPayload.prototype.frameCorrelationId = null;
14716
+
14717
+ /**
14718
+ * UpdateInteractionPayload transform.
14719
+ * @member {vertexvis.protobuf.stream.ITransformInteraction|null|undefined} transform
14720
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
14721
+ * @instance
14722
+ */
14723
+ UpdateInteractionPayload.prototype.transform = null;
14724
+
14725
+ // OneOf field names bound to virtual getters and setters
14726
+ let $oneOfFields;
14727
+
14728
+ /**
14729
+ * UpdateInteractionPayload interaction.
14730
+ * @member {"transform"|undefined} interaction
14731
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
14732
+ * @instance
14733
+ */
14734
+ Object.defineProperty(UpdateInteractionPayload.prototype, "interaction", {
14735
+ get: $util.oneOfGetter($oneOfFields = ["transform"]),
14736
+ set: $util.oneOfSetter($oneOfFields)
14737
+ });
14738
+
14739
+ /**
14740
+ * Creates a new UpdateInteractionPayload instance using the specified properties.
14741
+ * @function create
14742
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
14743
+ * @static
14744
+ * @param {vertexvis.protobuf.stream.IUpdateInteractionPayload=} [properties] Properties to set
14745
+ * @returns {vertexvis.protobuf.stream.UpdateInteractionPayload} UpdateInteractionPayload instance
14746
+ */
14747
+ UpdateInteractionPayload.create = function create(properties) {
14748
+ return new UpdateInteractionPayload(properties);
14749
+ };
14750
+
14751
+ /**
14752
+ * Encodes the specified UpdateInteractionPayload message. Does not implicitly {@link vertexvis.protobuf.stream.UpdateInteractionPayload.verify|verify} messages.
14753
+ * @function encode
14754
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
14755
+ * @static
14756
+ * @param {vertexvis.protobuf.stream.IUpdateInteractionPayload} message UpdateInteractionPayload message or plain object to encode
14757
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14758
+ * @returns {$protobuf.Writer} Writer
14759
+ */
14760
+ UpdateInteractionPayload.encode = function encode(message, writer) {
14761
+ if (!writer)
14762
+ writer = $Writer.create();
14763
+ if (message.frameCorrelationId != null && Object.hasOwnProperty.call(message, "frameCorrelationId"))
14764
+ $root.google.protobuf.StringValue.encode(message.frameCorrelationId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
14765
+ if (message.transform != null && Object.hasOwnProperty.call(message, "transform"))
14766
+ $root.vertexvis.protobuf.stream.TransformInteraction.encode(message.transform, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
14767
+ return writer;
14768
+ };
14769
+
14770
+ /**
14771
+ * Encodes the specified UpdateInteractionPayload message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.UpdateInteractionPayload.verify|verify} messages.
14772
+ * @function encodeDelimited
14773
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
14774
+ * @static
14775
+ * @param {vertexvis.protobuf.stream.IUpdateInteractionPayload} message UpdateInteractionPayload message or plain object to encode
14776
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14777
+ * @returns {$protobuf.Writer} Writer
14778
+ */
14779
+ UpdateInteractionPayload.encodeDelimited = function encodeDelimited(message, writer) {
14780
+ return this.encode(message, writer).ldelim();
14781
+ };
14782
+
14783
+ /**
14784
+ * Decodes an UpdateInteractionPayload message from the specified reader or buffer.
14785
+ * @function decode
14786
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
14787
+ * @static
14788
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14789
+ * @param {number} [length] Message length if known beforehand
14790
+ * @returns {vertexvis.protobuf.stream.UpdateInteractionPayload} UpdateInteractionPayload
14791
+ * @throws {Error} If the payload is not a reader or valid buffer
14792
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14793
+ */
14794
+ UpdateInteractionPayload.decode = function decode(reader, length) {
14795
+ if (!(reader instanceof $Reader))
14796
+ reader = $Reader.create(reader);
14797
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.UpdateInteractionPayload();
14798
+ while (reader.pos < end) {
14799
+ let tag = reader.uint32();
14800
+ switch (tag >>> 3) {
14801
+ case 1:
14802
+ message.frameCorrelationId = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
14803
+ break;
14804
+ case 2:
14805
+ message.transform = $root.vertexvis.protobuf.stream.TransformInteraction.decode(reader, reader.uint32());
14806
+ break;
14807
+ default:
14808
+ reader.skipType(tag & 7);
14809
+ break;
14810
+ }
14811
+ }
14812
+ return message;
14813
+ };
14814
+
14815
+ /**
14816
+ * Decodes an UpdateInteractionPayload message from the specified reader or buffer, length delimited.
14817
+ * @function decodeDelimited
14818
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
14819
+ * @static
14820
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14821
+ * @returns {vertexvis.protobuf.stream.UpdateInteractionPayload} UpdateInteractionPayload
14822
+ * @throws {Error} If the payload is not a reader or valid buffer
14823
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14824
+ */
14825
+ UpdateInteractionPayload.decodeDelimited = function decodeDelimited(reader) {
14826
+ if (!(reader instanceof $Reader))
14827
+ reader = new $Reader(reader);
14828
+ return this.decode(reader, reader.uint32());
14829
+ };
14830
+
14831
+ /**
14832
+ * Verifies an UpdateInteractionPayload message.
14833
+ * @function verify
14834
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
14835
+ * @static
14836
+ * @param {Object.<string,*>} message Plain object to verify
14837
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14838
+ */
14839
+ UpdateInteractionPayload.verify = function verify(message) {
14840
+ if (typeof message !== "object" || message === null)
14841
+ return "object expected";
14842
+ if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId")) {
14843
+ let error = $root.google.protobuf.StringValue.verify(message.frameCorrelationId);
14844
+ if (error)
14845
+ return "frameCorrelationId." + error;
14846
+ }
14847
+ if (message.transform != null && message.hasOwnProperty("transform")) {
14848
+ {
14849
+ let error = $root.vertexvis.protobuf.stream.TransformInteraction.verify(message.transform);
14850
+ if (error)
14851
+ return "transform." + error;
14852
+ }
14853
+ }
14854
+ return null;
14855
+ };
14856
+
14857
+ /**
14858
+ * Creates an UpdateInteractionPayload message from a plain object. Also converts values to their respective internal types.
14859
+ * @function fromObject
14860
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
14861
+ * @static
14862
+ * @param {Object.<string,*>} object Plain object
14863
+ * @returns {vertexvis.protobuf.stream.UpdateInteractionPayload} UpdateInteractionPayload
14864
+ */
14865
+ UpdateInteractionPayload.fromObject = function fromObject(object) {
14866
+ if (object instanceof $root.vertexvis.protobuf.stream.UpdateInteractionPayload)
14867
+ return object;
14868
+ let message = new $root.vertexvis.protobuf.stream.UpdateInteractionPayload();
14869
+ if (object.frameCorrelationId != null) {
14870
+ if (typeof object.frameCorrelationId !== "object")
14871
+ throw TypeError(".vertexvis.protobuf.stream.UpdateInteractionPayload.frameCorrelationId: object expected");
14872
+ message.frameCorrelationId = $root.google.protobuf.StringValue.fromObject(object.frameCorrelationId);
14873
+ }
14874
+ if (object.transform != null) {
14875
+ if (typeof object.transform !== "object")
14876
+ throw TypeError(".vertexvis.protobuf.stream.UpdateInteractionPayload.transform: object expected");
14877
+ message.transform = $root.vertexvis.protobuf.stream.TransformInteraction.fromObject(object.transform);
14878
+ }
14879
+ return message;
14880
+ };
14881
+
14882
+ /**
14883
+ * Creates a plain object from an UpdateInteractionPayload message. Also converts values to other types if specified.
14884
+ * @function toObject
14885
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
14886
+ * @static
14887
+ * @param {vertexvis.protobuf.stream.UpdateInteractionPayload} message UpdateInteractionPayload
14888
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14889
+ * @returns {Object.<string,*>} Plain object
14890
+ */
14891
+ UpdateInteractionPayload.toObject = function toObject(message, options) {
14892
+ if (!options)
14893
+ options = {};
14894
+ let object = {};
14895
+ if (options.defaults)
14896
+ object.frameCorrelationId = null;
14897
+ if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId"))
14898
+ object.frameCorrelationId = $root.google.protobuf.StringValue.toObject(message.frameCorrelationId, options);
14899
+ if (message.transform != null && message.hasOwnProperty("transform")) {
14900
+ object.transform = $root.vertexvis.protobuf.stream.TransformInteraction.toObject(message.transform, options);
14901
+ if (options.oneofs)
14902
+ object.interaction = "transform";
14903
+ }
14904
+ return object;
14905
+ };
14906
+
14907
+ /**
14908
+ * Converts this UpdateInteractionPayload to JSON.
14909
+ * @function toJSON
14910
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
14911
+ * @instance
14912
+ * @returns {Object.<string,*>} JSON object
14913
+ */
14914
+ UpdateInteractionPayload.prototype.toJSON = function toJSON() {
14915
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
14916
+ };
14917
+
14918
+ return UpdateInteractionPayload;
14919
+ })();
14920
+
14409
14921
  stream.EndInteractionPayload = (function() {
14410
14922
 
14411
14923
  /**
@@ -14413,6 +14925,7 @@ const vertexvis = $root.vertexvis = (() => {
14413
14925
  * @memberof vertexvis.protobuf.stream
14414
14926
  * @interface IEndInteractionPayload
14415
14927
  * @property {google.protobuf.IStringValue|null} [frameCorrelationId] EndInteractionPayload frameCorrelationId
14928
+ * @property {vertexvis.protobuf.stream.ITransformInteraction|null} [transform] EndInteractionPayload transform
14416
14929
  */
14417
14930
 
14418
14931
  /**
@@ -14438,6 +14951,28 @@ const vertexvis = $root.vertexvis = (() => {
14438
14951
  */
14439
14952
  EndInteractionPayload.prototype.frameCorrelationId = null;
14440
14953
 
14954
+ /**
14955
+ * EndInteractionPayload transform.
14956
+ * @member {vertexvis.protobuf.stream.ITransformInteraction|null|undefined} transform
14957
+ * @memberof vertexvis.protobuf.stream.EndInteractionPayload
14958
+ * @instance
14959
+ */
14960
+ EndInteractionPayload.prototype.transform = null;
14961
+
14962
+ // OneOf field names bound to virtual getters and setters
14963
+ let $oneOfFields;
14964
+
14965
+ /**
14966
+ * EndInteractionPayload interaction.
14967
+ * @member {"transform"|undefined} interaction
14968
+ * @memberof vertexvis.protobuf.stream.EndInteractionPayload
14969
+ * @instance
14970
+ */
14971
+ Object.defineProperty(EndInteractionPayload.prototype, "interaction", {
14972
+ get: $util.oneOfGetter($oneOfFields = ["transform"]),
14973
+ set: $util.oneOfSetter($oneOfFields)
14974
+ });
14975
+
14441
14976
  /**
14442
14977
  * Creates a new EndInteractionPayload instance using the specified properties.
14443
14978
  * @function create
@@ -14464,6 +14999,8 @@ const vertexvis = $root.vertexvis = (() => {
14464
14999
  writer = $Writer.create();
14465
15000
  if (message.frameCorrelationId != null && Object.hasOwnProperty.call(message, "frameCorrelationId"))
14466
15001
  $root.google.protobuf.StringValue.encode(message.frameCorrelationId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
15002
+ if (message.transform != null && Object.hasOwnProperty.call(message, "transform"))
15003
+ $root.vertexvis.protobuf.stream.TransformInteraction.encode(message.transform, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
14467
15004
  return writer;
14468
15005
  };
14469
15006
 
@@ -14501,6 +15038,9 @@ const vertexvis = $root.vertexvis = (() => {
14501
15038
  case 1:
14502
15039
  message.frameCorrelationId = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
14503
15040
  break;
15041
+ case 2:
15042
+ message.transform = $root.vertexvis.protobuf.stream.TransformInteraction.decode(reader, reader.uint32());
15043
+ break;
14504
15044
  default:
14505
15045
  reader.skipType(tag & 7);
14506
15046
  break;
@@ -14541,6 +15081,13 @@ const vertexvis = $root.vertexvis = (() => {
14541
15081
  if (error)
14542
15082
  return "frameCorrelationId." + error;
14543
15083
  }
15084
+ if (message.transform != null && message.hasOwnProperty("transform")) {
15085
+ {
15086
+ let error = $root.vertexvis.protobuf.stream.TransformInteraction.verify(message.transform);
15087
+ if (error)
15088
+ return "transform." + error;
15089
+ }
15090
+ }
14544
15091
  return null;
14545
15092
  };
14546
15093
 
@@ -14561,6 +15108,11 @@ const vertexvis = $root.vertexvis = (() => {
14561
15108
  throw TypeError(".vertexvis.protobuf.stream.EndInteractionPayload.frameCorrelationId: object expected");
14562
15109
  message.frameCorrelationId = $root.google.protobuf.StringValue.fromObject(object.frameCorrelationId);
14563
15110
  }
15111
+ if (object.transform != null) {
15112
+ if (typeof object.transform !== "object")
15113
+ throw TypeError(".vertexvis.protobuf.stream.EndInteractionPayload.transform: object expected");
15114
+ message.transform = $root.vertexvis.protobuf.stream.TransformInteraction.fromObject(object.transform);
15115
+ }
14564
15116
  return message;
14565
15117
  };
14566
15118
 
@@ -14581,6 +15133,11 @@ const vertexvis = $root.vertexvis = (() => {
14581
15133
  object.frameCorrelationId = null;
14582
15134
  if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId"))
14583
15135
  object.frameCorrelationId = $root.google.protobuf.StringValue.toObject(message.frameCorrelationId, options);
15136
+ if (message.transform != null && message.hasOwnProperty("transform")) {
15137
+ object.transform = $root.vertexvis.protobuf.stream.TransformInteraction.toObject(message.transform, options);
15138
+ if (options.oneofs)
15139
+ object.interaction = "transform";
15140
+ }
14584
15141
  return object;
14585
15142
  };
14586
15143
 
@@ -18198,6 +18755,7 @@ const vertexvis = $root.vertexvis = (() => {
18198
18755
  * @property {vertexvis.protobuf.stream.IUpdateCameraResult|null} [updateCamera] StreamResponse updateCamera
18199
18756
  * @property {vertexvis.protobuf.stream.IBeginInteractionResult|null} [beginInteraction] StreamResponse beginInteraction
18200
18757
  * @property {vertexvis.protobuf.stream.IEndInteractionResult|null} [endInteraction] StreamResponse endInteraction
18758
+ * @property {vertexvis.protobuf.stream.IGracefulReconnectionResult|null} [gracefulReconnection] StreamResponse gracefulReconnection
18201
18759
  * @property {vertexvis.protobuf.stream.IReconnectResult|null} [reconnect] StreamResponse reconnect
18202
18760
  * @property {vertexvis.protobuf.stream.IHitItemsResult|null} [hitItems] StreamResponse hitItems
18203
18761
  * @property {vertexvis.protobuf.stream.IDrawFrameResult|null} [drawFrame] StreamResponse drawFrame
@@ -18211,6 +18769,7 @@ const vertexvis = $root.vertexvis = (() => {
18211
18769
  * @property {vertexvis.protobuf.stream.IGetStencilBufferResult|null} [stencilBuffer] StreamResponse stencilBuffer
18212
18770
  * @property {vertexvis.protobuf.stream.IResetViewResult|null} [resetView] StreamResponse resetView
18213
18771
  * @property {vertexvis.protobuf.stream.IRefreshTokenResult|null} [refreshToken] StreamResponse refreshToken
18772
+ * @property {vertexvis.protobuf.stream.IUpdateInteractionResult|null} [updateInteraction] StreamResponse updateInteraction
18214
18773
  */
18215
18774
 
18216
18775
  /**
@@ -18276,6 +18835,14 @@ const vertexvis = $root.vertexvis = (() => {
18276
18835
  */
18277
18836
  StreamResponse.prototype.endInteraction = null;
18278
18837
 
18838
+ /**
18839
+ * StreamResponse gracefulReconnection.
18840
+ * @member {vertexvis.protobuf.stream.IGracefulReconnectionResult|null|undefined} gracefulReconnection
18841
+ * @memberof vertexvis.protobuf.stream.StreamResponse
18842
+ * @instance
18843
+ */
18844
+ StreamResponse.prototype.gracefulReconnection = null;
18845
+
18279
18846
  /**
18280
18847
  * StreamResponse reconnect.
18281
18848
  * @member {vertexvis.protobuf.stream.IReconnectResult|null|undefined} reconnect
@@ -18380,17 +18947,25 @@ const vertexvis = $root.vertexvis = (() => {
18380
18947
  */
18381
18948
  StreamResponse.prototype.refreshToken = null;
18382
18949
 
18950
+ /**
18951
+ * StreamResponse updateInteraction.
18952
+ * @member {vertexvis.protobuf.stream.IUpdateInteractionResult|null|undefined} updateInteraction
18953
+ * @memberof vertexvis.protobuf.stream.StreamResponse
18954
+ * @instance
18955
+ */
18956
+ StreamResponse.prototype.updateInteraction = null;
18957
+
18383
18958
  // OneOf field names bound to virtual getters and setters
18384
18959
  let $oneOfFields;
18385
18960
 
18386
18961
  /**
18387
18962
  * StreamResponse result.
18388
- * @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"reconnect"|"hitItems"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"stencilBuffer"|"resetView"|"refreshToken"|undefined} result
18963
+ * @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"gracefulReconnection"|"reconnect"|"hitItems"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"stencilBuffer"|"resetView"|"refreshToken"|"updateInteraction"|undefined} result
18389
18964
  * @memberof vertexvis.protobuf.stream.StreamResponse
18390
18965
  * @instance
18391
18966
  */
18392
18967
  Object.defineProperty(StreamResponse.prototype, "result", {
18393
- get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "reconnect", "hitItems", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "stencilBuffer", "resetView", "refreshToken"]),
18968
+ get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "gracefulReconnection", "reconnect", "hitItems", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "stencilBuffer", "resetView", "refreshToken", "updateInteraction"]),
18394
18969
  set: $util.oneOfSetter($oneOfFields)
18395
18970
  });
18396
18971
 
@@ -18456,6 +19031,10 @@ const vertexvis = $root.vertexvis = (() => {
18456
19031
  $root.vertexvis.protobuf.stream.ResetViewResult.encode(message.resetView, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
18457
19032
  if (message.refreshToken != null && Object.hasOwnProperty.call(message, "refreshToken"))
18458
19033
  $root.vertexvis.protobuf.stream.RefreshTokenResult.encode(message.refreshToken, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
19034
+ if (message.gracefulReconnection != null && Object.hasOwnProperty.call(message, "gracefulReconnection"))
19035
+ $root.vertexvis.protobuf.stream.GracefulReconnectionResult.encode(message.gracefulReconnection, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
19036
+ if (message.updateInteraction != null && Object.hasOwnProperty.call(message, "updateInteraction"))
19037
+ $root.vertexvis.protobuf.stream.UpdateInteractionResult.encode(message.updateInteraction, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
18459
19038
  return writer;
18460
19039
  };
18461
19040
 
@@ -18508,6 +19087,9 @@ const vertexvis = $root.vertexvis = (() => {
18508
19087
  case 6:
18509
19088
  message.endInteraction = $root.vertexvis.protobuf.stream.EndInteractionResult.decode(reader, reader.uint32());
18510
19089
  break;
19090
+ case 20:
19091
+ message.gracefulReconnection = $root.vertexvis.protobuf.stream.GracefulReconnectionResult.decode(reader, reader.uint32());
19092
+ break;
18511
19093
  case 7:
18512
19094
  message.reconnect = $root.vertexvis.protobuf.stream.ReconnectResult.decode(reader, reader.uint32());
18513
19095
  break;
@@ -18547,6 +19129,9 @@ const vertexvis = $root.vertexvis = (() => {
18547
19129
  case 19:
18548
19130
  message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenResult.decode(reader, reader.uint32());
18549
19131
  break;
19132
+ case 21:
19133
+ message.updateInteraction = $root.vertexvis.protobuf.stream.UpdateInteractionResult.decode(reader, reader.uint32());
19134
+ break;
18550
19135
  default:
18551
19136
  reader.skipType(tag & 7);
18552
19137
  break;
@@ -18626,9 +19211,19 @@ const vertexvis = $root.vertexvis = (() => {
18626
19211
  return "result: multiple values";
18627
19212
  properties.result = 1;
18628
19213
  {
18629
- let error = $root.vertexvis.protobuf.stream.EndInteractionResult.verify(message.endInteraction);
19214
+ let error = $root.vertexvis.protobuf.stream.EndInteractionResult.verify(message.endInteraction);
19215
+ if (error)
19216
+ return "endInteraction." + error;
19217
+ }
19218
+ }
19219
+ if (message.gracefulReconnection != null && message.hasOwnProperty("gracefulReconnection")) {
19220
+ if (properties.result === 1)
19221
+ return "result: multiple values";
19222
+ properties.result = 1;
19223
+ {
19224
+ let error = $root.vertexvis.protobuf.stream.GracefulReconnectionResult.verify(message.gracefulReconnection);
18630
19225
  if (error)
18631
- return "endInteraction." + error;
19226
+ return "gracefulReconnection." + error;
18632
19227
  }
18633
19228
  }
18634
19229
  if (message.reconnect != null && message.hasOwnProperty("reconnect")) {
@@ -18761,6 +19356,16 @@ const vertexvis = $root.vertexvis = (() => {
18761
19356
  return "refreshToken." + error;
18762
19357
  }
18763
19358
  }
19359
+ if (message.updateInteraction != null && message.hasOwnProperty("updateInteraction")) {
19360
+ if (properties.result === 1)
19361
+ return "result: multiple values";
19362
+ properties.result = 1;
19363
+ {
19364
+ let error = $root.vertexvis.protobuf.stream.UpdateInteractionResult.verify(message.updateInteraction);
19365
+ if (error)
19366
+ return "updateInteraction." + error;
19367
+ }
19368
+ }
18764
19369
  return null;
18765
19370
  };
18766
19371
 
@@ -18806,6 +19411,11 @@ const vertexvis = $root.vertexvis = (() => {
18806
19411
  throw TypeError(".vertexvis.protobuf.stream.StreamResponse.endInteraction: object expected");
18807
19412
  message.endInteraction = $root.vertexvis.protobuf.stream.EndInteractionResult.fromObject(object.endInteraction);
18808
19413
  }
19414
+ if (object.gracefulReconnection != null) {
19415
+ if (typeof object.gracefulReconnection !== "object")
19416
+ throw TypeError(".vertexvis.protobuf.stream.StreamResponse.gracefulReconnection: object expected");
19417
+ message.gracefulReconnection = $root.vertexvis.protobuf.stream.GracefulReconnectionResult.fromObject(object.gracefulReconnection);
19418
+ }
18809
19419
  if (object.reconnect != null) {
18810
19420
  if (typeof object.reconnect !== "object")
18811
19421
  throw TypeError(".vertexvis.protobuf.stream.StreamResponse.reconnect: object expected");
@@ -18871,6 +19481,11 @@ const vertexvis = $root.vertexvis = (() => {
18871
19481
  throw TypeError(".vertexvis.protobuf.stream.StreamResponse.refreshToken: object expected");
18872
19482
  message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenResult.fromObject(object.refreshToken);
18873
19483
  }
19484
+ if (object.updateInteraction != null) {
19485
+ if (typeof object.updateInteraction !== "object")
19486
+ throw TypeError(".vertexvis.protobuf.stream.StreamResponse.updateInteraction: object expected");
19487
+ message.updateInteraction = $root.vertexvis.protobuf.stream.UpdateInteractionResult.fromObject(object.updateInteraction);
19488
+ }
18874
19489
  return message;
18875
19490
  };
18876
19491
 
@@ -18980,6 +19595,16 @@ const vertexvis = $root.vertexvis = (() => {
18980
19595
  if (options.oneofs)
18981
19596
  object.result = "refreshToken";
18982
19597
  }
19598
+ if (message.gracefulReconnection != null && message.hasOwnProperty("gracefulReconnection")) {
19599
+ object.gracefulReconnection = $root.vertexvis.protobuf.stream.GracefulReconnectionResult.toObject(message.gracefulReconnection, options);
19600
+ if (options.oneofs)
19601
+ object.result = "gracefulReconnection";
19602
+ }
19603
+ if (message.updateInteraction != null && message.hasOwnProperty("updateInteraction")) {
19604
+ object.updateInteraction = $root.vertexvis.protobuf.stream.UpdateInteractionResult.toObject(message.updateInteraction, options);
19605
+ if (options.oneofs)
19606
+ object.result = "updateInteraction";
19607
+ }
18983
19608
  return object;
18984
19609
  };
18985
19610
 
@@ -19864,6 +20489,166 @@ const vertexvis = $root.vertexvis = (() => {
19864
20489
  return BeginInteractionResult;
19865
20490
  })();
19866
20491
 
20492
+ stream.UpdateInteractionResult = (function() {
20493
+
20494
+ /**
20495
+ * Properties of an UpdateInteractionResult.
20496
+ * @memberof vertexvis.protobuf.stream
20497
+ * @interface IUpdateInteractionResult
20498
+ */
20499
+
20500
+ /**
20501
+ * Constructs a new UpdateInteractionResult.
20502
+ * @memberof vertexvis.protobuf.stream
20503
+ * @classdesc Represents an UpdateInteractionResult.
20504
+ * @implements IUpdateInteractionResult
20505
+ * @constructor
20506
+ * @param {vertexvis.protobuf.stream.IUpdateInteractionResult=} [properties] Properties to set
20507
+ */
20508
+ function UpdateInteractionResult(properties) {
20509
+ if (properties)
20510
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20511
+ if (properties[keys[i]] != null)
20512
+ this[keys[i]] = properties[keys[i]];
20513
+ }
20514
+
20515
+ /**
20516
+ * Creates a new UpdateInteractionResult instance using the specified properties.
20517
+ * @function create
20518
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionResult
20519
+ * @static
20520
+ * @param {vertexvis.protobuf.stream.IUpdateInteractionResult=} [properties] Properties to set
20521
+ * @returns {vertexvis.protobuf.stream.UpdateInteractionResult} UpdateInteractionResult instance
20522
+ */
20523
+ UpdateInteractionResult.create = function create(properties) {
20524
+ return new UpdateInteractionResult(properties);
20525
+ };
20526
+
20527
+ /**
20528
+ * Encodes the specified UpdateInteractionResult message. Does not implicitly {@link vertexvis.protobuf.stream.UpdateInteractionResult.verify|verify} messages.
20529
+ * @function encode
20530
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionResult
20531
+ * @static
20532
+ * @param {vertexvis.protobuf.stream.IUpdateInteractionResult} message UpdateInteractionResult message or plain object to encode
20533
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20534
+ * @returns {$protobuf.Writer} Writer
20535
+ */
20536
+ UpdateInteractionResult.encode = function encode(message, writer) {
20537
+ if (!writer)
20538
+ writer = $Writer.create();
20539
+ return writer;
20540
+ };
20541
+
20542
+ /**
20543
+ * Encodes the specified UpdateInteractionResult message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.UpdateInteractionResult.verify|verify} messages.
20544
+ * @function encodeDelimited
20545
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionResult
20546
+ * @static
20547
+ * @param {vertexvis.protobuf.stream.IUpdateInteractionResult} message UpdateInteractionResult message or plain object to encode
20548
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20549
+ * @returns {$protobuf.Writer} Writer
20550
+ */
20551
+ UpdateInteractionResult.encodeDelimited = function encodeDelimited(message, writer) {
20552
+ return this.encode(message, writer).ldelim();
20553
+ };
20554
+
20555
+ /**
20556
+ * Decodes an UpdateInteractionResult message from the specified reader or buffer.
20557
+ * @function decode
20558
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionResult
20559
+ * @static
20560
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20561
+ * @param {number} [length] Message length if known beforehand
20562
+ * @returns {vertexvis.protobuf.stream.UpdateInteractionResult} UpdateInteractionResult
20563
+ * @throws {Error} If the payload is not a reader or valid buffer
20564
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20565
+ */
20566
+ UpdateInteractionResult.decode = function decode(reader, length) {
20567
+ if (!(reader instanceof $Reader))
20568
+ reader = $Reader.create(reader);
20569
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.UpdateInteractionResult();
20570
+ while (reader.pos < end) {
20571
+ let tag = reader.uint32();
20572
+ switch (tag >>> 3) {
20573
+ default:
20574
+ reader.skipType(tag & 7);
20575
+ break;
20576
+ }
20577
+ }
20578
+ return message;
20579
+ };
20580
+
20581
+ /**
20582
+ * Decodes an UpdateInteractionResult message from the specified reader or buffer, length delimited.
20583
+ * @function decodeDelimited
20584
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionResult
20585
+ * @static
20586
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20587
+ * @returns {vertexvis.protobuf.stream.UpdateInteractionResult} UpdateInteractionResult
20588
+ * @throws {Error} If the payload is not a reader or valid buffer
20589
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20590
+ */
20591
+ UpdateInteractionResult.decodeDelimited = function decodeDelimited(reader) {
20592
+ if (!(reader instanceof $Reader))
20593
+ reader = new $Reader(reader);
20594
+ return this.decode(reader, reader.uint32());
20595
+ };
20596
+
20597
+ /**
20598
+ * Verifies an UpdateInteractionResult message.
20599
+ * @function verify
20600
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionResult
20601
+ * @static
20602
+ * @param {Object.<string,*>} message Plain object to verify
20603
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
20604
+ */
20605
+ UpdateInteractionResult.verify = function verify(message) {
20606
+ if (typeof message !== "object" || message === null)
20607
+ return "object expected";
20608
+ return null;
20609
+ };
20610
+
20611
+ /**
20612
+ * Creates an UpdateInteractionResult message from a plain object. Also converts values to their respective internal types.
20613
+ * @function fromObject
20614
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionResult
20615
+ * @static
20616
+ * @param {Object.<string,*>} object Plain object
20617
+ * @returns {vertexvis.protobuf.stream.UpdateInteractionResult} UpdateInteractionResult
20618
+ */
20619
+ UpdateInteractionResult.fromObject = function fromObject(object) {
20620
+ if (object instanceof $root.vertexvis.protobuf.stream.UpdateInteractionResult)
20621
+ return object;
20622
+ return new $root.vertexvis.protobuf.stream.UpdateInteractionResult();
20623
+ };
20624
+
20625
+ /**
20626
+ * Creates a plain object from an UpdateInteractionResult message. Also converts values to other types if specified.
20627
+ * @function toObject
20628
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionResult
20629
+ * @static
20630
+ * @param {vertexvis.protobuf.stream.UpdateInteractionResult} message UpdateInteractionResult
20631
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
20632
+ * @returns {Object.<string,*>} Plain object
20633
+ */
20634
+ UpdateInteractionResult.toObject = function toObject() {
20635
+ return {};
20636
+ };
20637
+
20638
+ /**
20639
+ * Converts this UpdateInteractionResult to JSON.
20640
+ * @function toJSON
20641
+ * @memberof vertexvis.protobuf.stream.UpdateInteractionResult
20642
+ * @instance
20643
+ * @returns {Object.<string,*>} JSON object
20644
+ */
20645
+ UpdateInteractionResult.prototype.toJSON = function toJSON() {
20646
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
20647
+ };
20648
+
20649
+ return UpdateInteractionResult;
20650
+ })();
20651
+
19867
20652
  stream.EndInteractionResult = (function() {
19868
20653
 
19869
20654
  /**
@@ -22699,6 +23484,166 @@ const vertexvis = $root.vertexvis = (() => {
22699
23484
  return UpdateCrossSectioningResult;
22700
23485
  })();
22701
23486
 
23487
+ stream.GracefulReconnectionResult = (function() {
23488
+
23489
+ /**
23490
+ * Properties of a GracefulReconnectionResult.
23491
+ * @memberof vertexvis.protobuf.stream
23492
+ * @interface IGracefulReconnectionResult
23493
+ */
23494
+
23495
+ /**
23496
+ * Constructs a new GracefulReconnectionResult.
23497
+ * @memberof vertexvis.protobuf.stream
23498
+ * @classdesc Represents a GracefulReconnectionResult.
23499
+ * @implements IGracefulReconnectionResult
23500
+ * @constructor
23501
+ * @param {vertexvis.protobuf.stream.IGracefulReconnectionResult=} [properties] Properties to set
23502
+ */
23503
+ function GracefulReconnectionResult(properties) {
23504
+ if (properties)
23505
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23506
+ if (properties[keys[i]] != null)
23507
+ this[keys[i]] = properties[keys[i]];
23508
+ }
23509
+
23510
+ /**
23511
+ * Creates a new GracefulReconnectionResult instance using the specified properties.
23512
+ * @function create
23513
+ * @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
23514
+ * @static
23515
+ * @param {vertexvis.protobuf.stream.IGracefulReconnectionResult=} [properties] Properties to set
23516
+ * @returns {vertexvis.protobuf.stream.GracefulReconnectionResult} GracefulReconnectionResult instance
23517
+ */
23518
+ GracefulReconnectionResult.create = function create(properties) {
23519
+ return new GracefulReconnectionResult(properties);
23520
+ };
23521
+
23522
+ /**
23523
+ * Encodes the specified GracefulReconnectionResult message. Does not implicitly {@link vertexvis.protobuf.stream.GracefulReconnectionResult.verify|verify} messages.
23524
+ * @function encode
23525
+ * @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
23526
+ * @static
23527
+ * @param {vertexvis.protobuf.stream.IGracefulReconnectionResult} message GracefulReconnectionResult message or plain object to encode
23528
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23529
+ * @returns {$protobuf.Writer} Writer
23530
+ */
23531
+ GracefulReconnectionResult.encode = function encode(message, writer) {
23532
+ if (!writer)
23533
+ writer = $Writer.create();
23534
+ return writer;
23535
+ };
23536
+
23537
+ /**
23538
+ * Encodes the specified GracefulReconnectionResult message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.GracefulReconnectionResult.verify|verify} messages.
23539
+ * @function encodeDelimited
23540
+ * @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
23541
+ * @static
23542
+ * @param {vertexvis.protobuf.stream.IGracefulReconnectionResult} message GracefulReconnectionResult message or plain object to encode
23543
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23544
+ * @returns {$protobuf.Writer} Writer
23545
+ */
23546
+ GracefulReconnectionResult.encodeDelimited = function encodeDelimited(message, writer) {
23547
+ return this.encode(message, writer).ldelim();
23548
+ };
23549
+
23550
+ /**
23551
+ * Decodes a GracefulReconnectionResult message from the specified reader or buffer.
23552
+ * @function decode
23553
+ * @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
23554
+ * @static
23555
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23556
+ * @param {number} [length] Message length if known beforehand
23557
+ * @returns {vertexvis.protobuf.stream.GracefulReconnectionResult} GracefulReconnectionResult
23558
+ * @throws {Error} If the payload is not a reader or valid buffer
23559
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23560
+ */
23561
+ GracefulReconnectionResult.decode = function decode(reader, length) {
23562
+ if (!(reader instanceof $Reader))
23563
+ reader = $Reader.create(reader);
23564
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.GracefulReconnectionResult();
23565
+ while (reader.pos < end) {
23566
+ let tag = reader.uint32();
23567
+ switch (tag >>> 3) {
23568
+ default:
23569
+ reader.skipType(tag & 7);
23570
+ break;
23571
+ }
23572
+ }
23573
+ return message;
23574
+ };
23575
+
23576
+ /**
23577
+ * Decodes a GracefulReconnectionResult message from the specified reader or buffer, length delimited.
23578
+ * @function decodeDelimited
23579
+ * @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
23580
+ * @static
23581
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23582
+ * @returns {vertexvis.protobuf.stream.GracefulReconnectionResult} GracefulReconnectionResult
23583
+ * @throws {Error} If the payload is not a reader or valid buffer
23584
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23585
+ */
23586
+ GracefulReconnectionResult.decodeDelimited = function decodeDelimited(reader) {
23587
+ if (!(reader instanceof $Reader))
23588
+ reader = new $Reader(reader);
23589
+ return this.decode(reader, reader.uint32());
23590
+ };
23591
+
23592
+ /**
23593
+ * Verifies a GracefulReconnectionResult message.
23594
+ * @function verify
23595
+ * @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
23596
+ * @static
23597
+ * @param {Object.<string,*>} message Plain object to verify
23598
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
23599
+ */
23600
+ GracefulReconnectionResult.verify = function verify(message) {
23601
+ if (typeof message !== "object" || message === null)
23602
+ return "object expected";
23603
+ return null;
23604
+ };
23605
+
23606
+ /**
23607
+ * Creates a GracefulReconnectionResult message from a plain object. Also converts values to their respective internal types.
23608
+ * @function fromObject
23609
+ * @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
23610
+ * @static
23611
+ * @param {Object.<string,*>} object Plain object
23612
+ * @returns {vertexvis.protobuf.stream.GracefulReconnectionResult} GracefulReconnectionResult
23613
+ */
23614
+ GracefulReconnectionResult.fromObject = function fromObject(object) {
23615
+ if (object instanceof $root.vertexvis.protobuf.stream.GracefulReconnectionResult)
23616
+ return object;
23617
+ return new $root.vertexvis.protobuf.stream.GracefulReconnectionResult();
23618
+ };
23619
+
23620
+ /**
23621
+ * Creates a plain object from a GracefulReconnectionResult message. Also converts values to other types if specified.
23622
+ * @function toObject
23623
+ * @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
23624
+ * @static
23625
+ * @param {vertexvis.protobuf.stream.GracefulReconnectionResult} message GracefulReconnectionResult
23626
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
23627
+ * @returns {Object.<string,*>} Plain object
23628
+ */
23629
+ GracefulReconnectionResult.toObject = function toObject() {
23630
+ return {};
23631
+ };
23632
+
23633
+ /**
23634
+ * Converts this GracefulReconnectionResult to JSON.
23635
+ * @function toJSON
23636
+ * @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
23637
+ * @instance
23638
+ * @returns {Object.<string,*>} JSON object
23639
+ */
23640
+ GracefulReconnectionResult.prototype.toJSON = function toJSON() {
23641
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
23642
+ };
23643
+
23644
+ return GracefulReconnectionResult;
23645
+ })();
23646
+
22702
23647
  return stream;
22703
23648
  })();
22704
23649
 
@@ -35694,9 +36639,10 @@ var StreamApi = /** @class */ (function () {
35694
36639
  * @param withResponse Indicates if the server should reply with a response.
35695
36640
  * Defaults to `true`.
35696
36641
  */
35697
- StreamApi.prototype.beginInteraction = function (withResponse) {
36642
+ StreamApi.prototype.beginInteraction = function (payload, withResponse) {
36643
+ if (payload === void 0) { payload = {}; }
35698
36644
  if (withResponse === void 0) { withResponse = true; }
35699
- return this.sendRequest({ beginInteraction: {} }, withResponse);
36645
+ return this.sendRequest({ beginInteraction: payload }, withResponse);
35700
36646
  };
35701
36647
  /**
35702
36648
  * Sends a request to update the position of the scene's camera.
@@ -35737,6 +36683,21 @@ var StreamApi = /** @class */ (function () {
35737
36683
  if (withResponse === void 0) { withResponse = true; }
35738
36684
  return this.sendRequest({ flyTo: payload }, withResponse);
35739
36685
  };
36686
+ /**
36687
+ * Sends a request to update the specified interaction.
36688
+ *
36689
+ * Use `withResponse` to indicate if the server should reply with a response.
36690
+ * If `false`, the returned promise will complete immediately. Otherwise,
36691
+ * it'll complete when a response is received.
36692
+ *
36693
+ * @param payload The payload of the request.
36694
+ * @param withResponse Indicates if the server should reply with a response.
36695
+ * Defaults to `true`.
36696
+ */
36697
+ StreamApi.prototype.updateInteraction = function (payload, withResponse) {
36698
+ if (withResponse === void 0) { withResponse = true; }
36699
+ return this.sendRequest({ updateInteraction: payload }, withResponse);
36700
+ };
35740
36701
  /**
35741
36702
  * Sends a request to update the dimensions of the frame.
35742
36703
  *
@@ -35835,9 +36796,10 @@ var StreamApi = /** @class */ (function () {
35835
36796
  * @param withResponse Indicates if the server should reply with a response.
35836
36797
  * Defaults to `true`.
35837
36798
  */
35838
- StreamApi.prototype.endInteraction = function (withResponse) {
36799
+ StreamApi.prototype.endInteraction = function (payload, withResponse) {
36800
+ if (payload === void 0) { payload = {}; }
35839
36801
  if (withResponse === void 0) { withResponse = true; }
35840
- return this.sendRequest({ endInteraction: {} }, withResponse);
36802
+ return this.sendRequest({ endInteraction: payload }, withResponse);
35841
36803
  };
35842
36804
  /**
35843
36805
  * Sends a request to sync the clocks between the client and server.