@vertexvis/stream-api 0.12.0-canary.3 → 0.12.0-canary.33

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.
@@ -1,4 +1,4 @@
1
- import { __awaiter, __generator, __extends, __assign, __spreadArray } from 'tslib';
1
+ import { __extends, __awaiter, __generator, __assign, __spreadArray } from 'tslib';
2
2
  import { UUID, EventDispatcher, Uri, Objects } from '@vertexvis/utils';
3
3
 
4
4
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -7151,6 +7151,7 @@ const vertexvis = $root.vertexvis = (() => {
7151
7151
  * @property {vertexvis.protobuf.stream.IDepthBufferAttributes|null} [depthBuffers] StreamAttributes depthBuffers
7152
7152
  * @property {vertexvis.protobuf.stream.IFeatureLineAttributes|null} [featureLines] StreamAttributes featureLines
7153
7153
  * @property {vertexvis.protobuf.stream.IFeatureHighlightAttributes|null} [featureHighlighting] StreamAttributes featureHighlighting
7154
+ * @property {vertexvis.protobuf.stream.IFeatureMapAttributes|null} [featureMaps] StreamAttributes featureMaps
7154
7155
  */
7155
7156
 
7156
7157
  /**
@@ -7200,6 +7201,14 @@ const vertexvis = $root.vertexvis = (() => {
7200
7201
  */
7201
7202
  StreamAttributes.prototype.featureHighlighting = null;
7202
7203
 
7204
+ /**
7205
+ * StreamAttributes featureMaps.
7206
+ * @member {vertexvis.protobuf.stream.IFeatureMapAttributes|null|undefined} featureMaps
7207
+ * @memberof vertexvis.protobuf.stream.StreamAttributes
7208
+ * @instance
7209
+ */
7210
+ StreamAttributes.prototype.featureMaps = null;
7211
+
7203
7212
  /**
7204
7213
  * Creates a new StreamAttributes instance using the specified properties.
7205
7214
  * @function create
@@ -7232,6 +7241,8 @@ const vertexvis = $root.vertexvis = (() => {
7232
7241
  $root.vertexvis.protobuf.stream.FeatureLineAttributes.encode(message.featureLines, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
7233
7242
  if (message.featureHighlighting != null && Object.hasOwnProperty.call(message, "featureHighlighting"))
7234
7243
  $root.vertexvis.protobuf.stream.FeatureHighlightAttributes.encode(message.featureHighlighting, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
7244
+ if (message.featureMaps != null && Object.hasOwnProperty.call(message, "featureMaps"))
7245
+ $root.vertexvis.protobuf.stream.FeatureMapAttributes.encode(message.featureMaps, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
7235
7246
  return writer;
7236
7247
  };
7237
7248
 
@@ -7278,6 +7289,9 @@ const vertexvis = $root.vertexvis = (() => {
7278
7289
  case 4:
7279
7290
  message.featureHighlighting = $root.vertexvis.protobuf.stream.FeatureHighlightAttributes.decode(reader, reader.uint32());
7280
7291
  break;
7292
+ case 5:
7293
+ message.featureMaps = $root.vertexvis.protobuf.stream.FeatureMapAttributes.decode(reader, reader.uint32());
7294
+ break;
7281
7295
  default:
7282
7296
  reader.skipType(tag & 7);
7283
7297
  break;
@@ -7333,6 +7347,11 @@ const vertexvis = $root.vertexvis = (() => {
7333
7347
  if (error)
7334
7348
  return "featureHighlighting." + error;
7335
7349
  }
7350
+ if (message.featureMaps != null && message.hasOwnProperty("featureMaps")) {
7351
+ let error = $root.vertexvis.protobuf.stream.FeatureMapAttributes.verify(message.featureMaps);
7352
+ if (error)
7353
+ return "featureMaps." + error;
7354
+ }
7336
7355
  return null;
7337
7356
  };
7338
7357
 
@@ -7368,6 +7387,11 @@ const vertexvis = $root.vertexvis = (() => {
7368
7387
  throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.featureHighlighting: object expected");
7369
7388
  message.featureHighlighting = $root.vertexvis.protobuf.stream.FeatureHighlightAttributes.fromObject(object.featureHighlighting);
7370
7389
  }
7390
+ if (object.featureMaps != null) {
7391
+ if (typeof object.featureMaps !== "object")
7392
+ throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.featureMaps: object expected");
7393
+ message.featureMaps = $root.vertexvis.protobuf.stream.FeatureMapAttributes.fromObject(object.featureMaps);
7394
+ }
7371
7395
  return message;
7372
7396
  };
7373
7397
 
@@ -7389,6 +7413,7 @@ const vertexvis = $root.vertexvis = (() => {
7389
7413
  object.depthBuffers = null;
7390
7414
  object.featureLines = null;
7391
7415
  object.featureHighlighting = null;
7416
+ object.featureMaps = null;
7392
7417
  }
7393
7418
  if (message.experimentalGhosting != null && message.hasOwnProperty("experimentalGhosting"))
7394
7419
  object.experimentalGhosting = $root.vertexvis.protobuf.stream.GhostingAttributes.toObject(message.experimentalGhosting, options);
@@ -7398,6 +7423,8 @@ const vertexvis = $root.vertexvis = (() => {
7398
7423
  object.featureLines = $root.vertexvis.protobuf.stream.FeatureLineAttributes.toObject(message.featureLines, options);
7399
7424
  if (message.featureHighlighting != null && message.hasOwnProperty("featureHighlighting"))
7400
7425
  object.featureHighlighting = $root.vertexvis.protobuf.stream.FeatureHighlightAttributes.toObject(message.featureHighlighting, options);
7426
+ if (message.featureMaps != null && message.hasOwnProperty("featureMaps"))
7427
+ object.featureMaps = $root.vertexvis.protobuf.stream.FeatureMapAttributes.toObject(message.featureMaps, options);
7401
7428
  return object;
7402
7429
  };
7403
7430
 
@@ -7873,6 +7900,244 @@ const vertexvis = $root.vertexvis = (() => {
7873
7900
  return DepthBufferAttributes;
7874
7901
  })();
7875
7902
 
7903
+ stream.FeatureMapAttributes = (function() {
7904
+
7905
+ /**
7906
+ * Properties of a FeatureMapAttributes.
7907
+ * @memberof vertexvis.protobuf.stream
7908
+ * @interface IFeatureMapAttributes
7909
+ * @property {google.protobuf.IBoolValue|null} [enabled] FeatureMapAttributes enabled
7910
+ * @property {vertexvis.protobuf.stream.FrameType|null} [frameType] FeatureMapAttributes frameType
7911
+ */
7912
+
7913
+ /**
7914
+ * Constructs a new FeatureMapAttributes.
7915
+ * @memberof vertexvis.protobuf.stream
7916
+ * @classdesc Represents a FeatureMapAttributes.
7917
+ * @implements IFeatureMapAttributes
7918
+ * @constructor
7919
+ * @param {vertexvis.protobuf.stream.IFeatureMapAttributes=} [properties] Properties to set
7920
+ */
7921
+ function FeatureMapAttributes(properties) {
7922
+ if (properties)
7923
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
7924
+ if (properties[keys[i]] != null)
7925
+ this[keys[i]] = properties[keys[i]];
7926
+ }
7927
+
7928
+ /**
7929
+ * FeatureMapAttributes enabled.
7930
+ * @member {google.protobuf.IBoolValue|null|undefined} enabled
7931
+ * @memberof vertexvis.protobuf.stream.FeatureMapAttributes
7932
+ * @instance
7933
+ */
7934
+ FeatureMapAttributes.prototype.enabled = null;
7935
+
7936
+ /**
7937
+ * FeatureMapAttributes frameType.
7938
+ * @member {vertexvis.protobuf.stream.FrameType} frameType
7939
+ * @memberof vertexvis.protobuf.stream.FeatureMapAttributes
7940
+ * @instance
7941
+ */
7942
+ FeatureMapAttributes.prototype.frameType = 0;
7943
+
7944
+ /**
7945
+ * Creates a new FeatureMapAttributes instance using the specified properties.
7946
+ * @function create
7947
+ * @memberof vertexvis.protobuf.stream.FeatureMapAttributes
7948
+ * @static
7949
+ * @param {vertexvis.protobuf.stream.IFeatureMapAttributes=} [properties] Properties to set
7950
+ * @returns {vertexvis.protobuf.stream.FeatureMapAttributes} FeatureMapAttributes instance
7951
+ */
7952
+ FeatureMapAttributes.create = function create(properties) {
7953
+ return new FeatureMapAttributes(properties);
7954
+ };
7955
+
7956
+ /**
7957
+ * Encodes the specified FeatureMapAttributes message. Does not implicitly {@link vertexvis.protobuf.stream.FeatureMapAttributes.verify|verify} messages.
7958
+ * @function encode
7959
+ * @memberof vertexvis.protobuf.stream.FeatureMapAttributes
7960
+ * @static
7961
+ * @param {vertexvis.protobuf.stream.IFeatureMapAttributes} message FeatureMapAttributes message or plain object to encode
7962
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7963
+ * @returns {$protobuf.Writer} Writer
7964
+ */
7965
+ FeatureMapAttributes.encode = function encode(message, writer) {
7966
+ if (!writer)
7967
+ writer = $Writer.create();
7968
+ if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
7969
+ $root.google.protobuf.BoolValue.encode(message.enabled, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
7970
+ if (message.frameType != null && Object.hasOwnProperty.call(message, "frameType"))
7971
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.frameType);
7972
+ return writer;
7973
+ };
7974
+
7975
+ /**
7976
+ * Encodes the specified FeatureMapAttributes message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.FeatureMapAttributes.verify|verify} messages.
7977
+ * @function encodeDelimited
7978
+ * @memberof vertexvis.protobuf.stream.FeatureMapAttributes
7979
+ * @static
7980
+ * @param {vertexvis.protobuf.stream.IFeatureMapAttributes} message FeatureMapAttributes message or plain object to encode
7981
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7982
+ * @returns {$protobuf.Writer} Writer
7983
+ */
7984
+ FeatureMapAttributes.encodeDelimited = function encodeDelimited(message, writer) {
7985
+ return this.encode(message, writer).ldelim();
7986
+ };
7987
+
7988
+ /**
7989
+ * Decodes a FeatureMapAttributes message from the specified reader or buffer.
7990
+ * @function decode
7991
+ * @memberof vertexvis.protobuf.stream.FeatureMapAttributes
7992
+ * @static
7993
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
7994
+ * @param {number} [length] Message length if known beforehand
7995
+ * @returns {vertexvis.protobuf.stream.FeatureMapAttributes} FeatureMapAttributes
7996
+ * @throws {Error} If the payload is not a reader or valid buffer
7997
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7998
+ */
7999
+ FeatureMapAttributes.decode = function decode(reader, length) {
8000
+ if (!(reader instanceof $Reader))
8001
+ reader = $Reader.create(reader);
8002
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.FeatureMapAttributes();
8003
+ while (reader.pos < end) {
8004
+ let tag = reader.uint32();
8005
+ switch (tag >>> 3) {
8006
+ case 1:
8007
+ message.enabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
8008
+ break;
8009
+ case 2:
8010
+ message.frameType = reader.int32();
8011
+ break;
8012
+ default:
8013
+ reader.skipType(tag & 7);
8014
+ break;
8015
+ }
8016
+ }
8017
+ return message;
8018
+ };
8019
+
8020
+ /**
8021
+ * Decodes a FeatureMapAttributes message from the specified reader or buffer, length delimited.
8022
+ * @function decodeDelimited
8023
+ * @memberof vertexvis.protobuf.stream.FeatureMapAttributes
8024
+ * @static
8025
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8026
+ * @returns {vertexvis.protobuf.stream.FeatureMapAttributes} FeatureMapAttributes
8027
+ * @throws {Error} If the payload is not a reader or valid buffer
8028
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8029
+ */
8030
+ FeatureMapAttributes.decodeDelimited = function decodeDelimited(reader) {
8031
+ if (!(reader instanceof $Reader))
8032
+ reader = new $Reader(reader);
8033
+ return this.decode(reader, reader.uint32());
8034
+ };
8035
+
8036
+ /**
8037
+ * Verifies a FeatureMapAttributes message.
8038
+ * @function verify
8039
+ * @memberof vertexvis.protobuf.stream.FeatureMapAttributes
8040
+ * @static
8041
+ * @param {Object.<string,*>} message Plain object to verify
8042
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
8043
+ */
8044
+ FeatureMapAttributes.verify = function verify(message) {
8045
+ if (typeof message !== "object" || message === null)
8046
+ return "object expected";
8047
+ if (message.enabled != null && message.hasOwnProperty("enabled")) {
8048
+ let error = $root.google.protobuf.BoolValue.verify(message.enabled);
8049
+ if (error)
8050
+ return "enabled." + error;
8051
+ }
8052
+ if (message.frameType != null && message.hasOwnProperty("frameType"))
8053
+ switch (message.frameType) {
8054
+ default:
8055
+ return "frameType: enum value expected";
8056
+ case 0:
8057
+ case 1:
8058
+ case 2:
8059
+ case 3:
8060
+ break;
8061
+ }
8062
+ return null;
8063
+ };
8064
+
8065
+ /**
8066
+ * Creates a FeatureMapAttributes message from a plain object. Also converts values to their respective internal types.
8067
+ * @function fromObject
8068
+ * @memberof vertexvis.protobuf.stream.FeatureMapAttributes
8069
+ * @static
8070
+ * @param {Object.<string,*>} object Plain object
8071
+ * @returns {vertexvis.protobuf.stream.FeatureMapAttributes} FeatureMapAttributes
8072
+ */
8073
+ FeatureMapAttributes.fromObject = function fromObject(object) {
8074
+ if (object instanceof $root.vertexvis.protobuf.stream.FeatureMapAttributes)
8075
+ return object;
8076
+ let message = new $root.vertexvis.protobuf.stream.FeatureMapAttributes();
8077
+ if (object.enabled != null) {
8078
+ if (typeof object.enabled !== "object")
8079
+ throw TypeError(".vertexvis.protobuf.stream.FeatureMapAttributes.enabled: object expected");
8080
+ message.enabled = $root.google.protobuf.BoolValue.fromObject(object.enabled);
8081
+ }
8082
+ switch (object.frameType) {
8083
+ case "FRAME_TYPE_INVALID":
8084
+ case 0:
8085
+ message.frameType = 0;
8086
+ break;
8087
+ case "FRAME_TYPE_ALL":
8088
+ case 1:
8089
+ message.frameType = 1;
8090
+ break;
8091
+ case "FRAME_TYPE_TRANSITION":
8092
+ case 2:
8093
+ message.frameType = 2;
8094
+ break;
8095
+ case "FRAME_TYPE_FINAL":
8096
+ case 3:
8097
+ message.frameType = 3;
8098
+ break;
8099
+ }
8100
+ return message;
8101
+ };
8102
+
8103
+ /**
8104
+ * Creates a plain object from a FeatureMapAttributes message. Also converts values to other types if specified.
8105
+ * @function toObject
8106
+ * @memberof vertexvis.protobuf.stream.FeatureMapAttributes
8107
+ * @static
8108
+ * @param {vertexvis.protobuf.stream.FeatureMapAttributes} message FeatureMapAttributes
8109
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
8110
+ * @returns {Object.<string,*>} Plain object
8111
+ */
8112
+ FeatureMapAttributes.toObject = function toObject(message, options) {
8113
+ if (!options)
8114
+ options = {};
8115
+ let object = {};
8116
+ if (options.defaults) {
8117
+ object.enabled = null;
8118
+ object.frameType = options.enums === String ? "FRAME_TYPE_INVALID" : 0;
8119
+ }
8120
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
8121
+ object.enabled = $root.google.protobuf.BoolValue.toObject(message.enabled, options);
8122
+ if (message.frameType != null && message.hasOwnProperty("frameType"))
8123
+ object.frameType = options.enums === String ? $root.vertexvis.protobuf.stream.FrameType[message.frameType] : message.frameType;
8124
+ return object;
8125
+ };
8126
+
8127
+ /**
8128
+ * Converts this FeatureMapAttributes to JSON.
8129
+ * @function toJSON
8130
+ * @memberof vertexvis.protobuf.stream.FeatureMapAttributes
8131
+ * @instance
8132
+ * @returns {Object.<string,*>} JSON object
8133
+ */
8134
+ FeatureMapAttributes.prototype.toJSON = function toJSON() {
8135
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
8136
+ };
8137
+
8138
+ return FeatureMapAttributes;
8139
+ })();
8140
+
7876
8141
  stream.AnimationAttributes = (function() {
7877
8142
 
7878
8143
  /**
@@ -9368,7 +9633,7 @@ const vertexvis = $root.vertexvis = (() => {
9368
9633
  * @memberof vertexvis.protobuf.stream
9369
9634
  * @interface IFeatureHighlightAttributes
9370
9635
  * @property {vertexvis.protobuf.core.IRGBi|null} [highlightColor] FeatureHighlightAttributes highlightColor
9371
- * @property {number|null} [occludedOpacity] FeatureHighlightAttributes occludedOpacity
9636
+ * @property {google.protobuf.IFloatValue|null} [occludedOpacity] FeatureHighlightAttributes occludedOpacity
9372
9637
  * @property {vertexvis.protobuf.stream.IFeatureLineAttributes|null} [outline] FeatureHighlightAttributes outline
9373
9638
  */
9374
9639
 
@@ -9397,11 +9662,11 @@ const vertexvis = $root.vertexvis = (() => {
9397
9662
 
9398
9663
  /**
9399
9664
  * FeatureHighlightAttributes occludedOpacity.
9400
- * @member {number} occludedOpacity
9665
+ * @member {google.protobuf.IFloatValue|null|undefined} occludedOpacity
9401
9666
  * @memberof vertexvis.protobuf.stream.FeatureHighlightAttributes
9402
9667
  * @instance
9403
9668
  */
9404
- FeatureHighlightAttributes.prototype.occludedOpacity = 0;
9669
+ FeatureHighlightAttributes.prototype.occludedOpacity = null;
9405
9670
 
9406
9671
  /**
9407
9672
  * FeatureHighlightAttributes outline.
@@ -9438,7 +9703,7 @@ const vertexvis = $root.vertexvis = (() => {
9438
9703
  if (message.highlightColor != null && Object.hasOwnProperty.call(message, "highlightColor"))
9439
9704
  $root.vertexvis.protobuf.core.RGBi.encode(message.highlightColor, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
9440
9705
  if (message.occludedOpacity != null && Object.hasOwnProperty.call(message, "occludedOpacity"))
9441
- writer.uint32(/* id 2, wireType 5 =*/21).float(message.occludedOpacity);
9706
+ $root.google.protobuf.FloatValue.encode(message.occludedOpacity, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
9442
9707
  if (message.outline != null && Object.hasOwnProperty.call(message, "outline"))
9443
9708
  $root.vertexvis.protobuf.stream.FeatureLineAttributes.encode(message.outline, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
9444
9709
  return writer;
@@ -9479,7 +9744,7 @@ const vertexvis = $root.vertexvis = (() => {
9479
9744
  message.highlightColor = $root.vertexvis.protobuf.core.RGBi.decode(reader, reader.uint32());
9480
9745
  break;
9481
9746
  case 2:
9482
- message.occludedOpacity = reader.float();
9747
+ message.occludedOpacity = $root.google.protobuf.FloatValue.decode(reader, reader.uint32());
9483
9748
  break;
9484
9749
  case 3:
9485
9750
  message.outline = $root.vertexvis.protobuf.stream.FeatureLineAttributes.decode(reader, reader.uint32());
@@ -9524,9 +9789,11 @@ const vertexvis = $root.vertexvis = (() => {
9524
9789
  if (error)
9525
9790
  return "highlightColor." + error;
9526
9791
  }
9527
- if (message.occludedOpacity != null && message.hasOwnProperty("occludedOpacity"))
9528
- if (typeof message.occludedOpacity !== "number")
9529
- return "occludedOpacity: number expected";
9792
+ if (message.occludedOpacity != null && message.hasOwnProperty("occludedOpacity")) {
9793
+ let error = $root.google.protobuf.FloatValue.verify(message.occludedOpacity);
9794
+ if (error)
9795
+ return "occludedOpacity." + error;
9796
+ }
9530
9797
  if (message.outline != null && message.hasOwnProperty("outline")) {
9531
9798
  let error = $root.vertexvis.protobuf.stream.FeatureLineAttributes.verify(message.outline);
9532
9799
  if (error)
@@ -9552,8 +9819,11 @@ const vertexvis = $root.vertexvis = (() => {
9552
9819
  throw TypeError(".vertexvis.protobuf.stream.FeatureHighlightAttributes.highlightColor: object expected");
9553
9820
  message.highlightColor = $root.vertexvis.protobuf.core.RGBi.fromObject(object.highlightColor);
9554
9821
  }
9555
- if (object.occludedOpacity != null)
9556
- message.occludedOpacity = Number(object.occludedOpacity);
9822
+ if (object.occludedOpacity != null) {
9823
+ if (typeof object.occludedOpacity !== "object")
9824
+ throw TypeError(".vertexvis.protobuf.stream.FeatureHighlightAttributes.occludedOpacity: object expected");
9825
+ message.occludedOpacity = $root.google.protobuf.FloatValue.fromObject(object.occludedOpacity);
9826
+ }
9557
9827
  if (object.outline != null) {
9558
9828
  if (typeof object.outline !== "object")
9559
9829
  throw TypeError(".vertexvis.protobuf.stream.FeatureHighlightAttributes.outline: object expected");
@@ -9577,13 +9847,13 @@ const vertexvis = $root.vertexvis = (() => {
9577
9847
  let object = {};
9578
9848
  if (options.defaults) {
9579
9849
  object.highlightColor = null;
9580
- object.occludedOpacity = 0;
9850
+ object.occludedOpacity = null;
9581
9851
  object.outline = null;
9582
9852
  }
9583
9853
  if (message.highlightColor != null && message.hasOwnProperty("highlightColor"))
9584
9854
  object.highlightColor = $root.vertexvis.protobuf.core.RGBi.toObject(message.highlightColor, options);
9585
9855
  if (message.occludedOpacity != null && message.hasOwnProperty("occludedOpacity"))
9586
- object.occludedOpacity = options.json && !isFinite(message.occludedOpacity) ? String(message.occludedOpacity) : message.occludedOpacity;
9856
+ object.occludedOpacity = $root.google.protobuf.FloatValue.toObject(message.occludedOpacity, options);
9587
9857
  if (message.outline != null && message.hasOwnProperty("outline"))
9588
9858
  object.outline = $root.vertexvis.protobuf.stream.FeatureLineAttributes.toObject(message.outline, options);
9589
9859
  return object;
@@ -9603,6 +9873,216 @@ const vertexvis = $root.vertexvis = (() => {
9603
9873
  return FeatureHighlightAttributes;
9604
9874
  })();
9605
9875
 
9876
+ stream.Token = (function() {
9877
+
9878
+ /**
9879
+ * Properties of a Token.
9880
+ * @memberof vertexvis.protobuf.stream
9881
+ * @interface IToken
9882
+ * @property {string|null} [token] Token token
9883
+ * @property {number|null} [expiresIn] Token expiresIn
9884
+ */
9885
+
9886
+ /**
9887
+ * Constructs a new Token.
9888
+ * @memberof vertexvis.protobuf.stream
9889
+ * @classdesc Represents a Token.
9890
+ * @implements IToken
9891
+ * @constructor
9892
+ * @param {vertexvis.protobuf.stream.IToken=} [properties] Properties to set
9893
+ */
9894
+ function Token(properties) {
9895
+ if (properties)
9896
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9897
+ if (properties[keys[i]] != null)
9898
+ this[keys[i]] = properties[keys[i]];
9899
+ }
9900
+
9901
+ /**
9902
+ * Token token.
9903
+ * @member {string} token
9904
+ * @memberof vertexvis.protobuf.stream.Token
9905
+ * @instance
9906
+ */
9907
+ Token.prototype.token = "";
9908
+
9909
+ /**
9910
+ * Token expiresIn.
9911
+ * @member {number} expiresIn
9912
+ * @memberof vertexvis.protobuf.stream.Token
9913
+ * @instance
9914
+ */
9915
+ Token.prototype.expiresIn = 0;
9916
+
9917
+ /**
9918
+ * Creates a new Token instance using the specified properties.
9919
+ * @function create
9920
+ * @memberof vertexvis.protobuf.stream.Token
9921
+ * @static
9922
+ * @param {vertexvis.protobuf.stream.IToken=} [properties] Properties to set
9923
+ * @returns {vertexvis.protobuf.stream.Token} Token instance
9924
+ */
9925
+ Token.create = function create(properties) {
9926
+ return new Token(properties);
9927
+ };
9928
+
9929
+ /**
9930
+ * Encodes the specified Token message. Does not implicitly {@link vertexvis.protobuf.stream.Token.verify|verify} messages.
9931
+ * @function encode
9932
+ * @memberof vertexvis.protobuf.stream.Token
9933
+ * @static
9934
+ * @param {vertexvis.protobuf.stream.IToken} message Token message or plain object to encode
9935
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9936
+ * @returns {$protobuf.Writer} Writer
9937
+ */
9938
+ Token.encode = function encode(message, writer) {
9939
+ if (!writer)
9940
+ writer = $Writer.create();
9941
+ if (message.token != null && Object.hasOwnProperty.call(message, "token"))
9942
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.token);
9943
+ if (message.expiresIn != null && Object.hasOwnProperty.call(message, "expiresIn"))
9944
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.expiresIn);
9945
+ return writer;
9946
+ };
9947
+
9948
+ /**
9949
+ * Encodes the specified Token message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.Token.verify|verify} messages.
9950
+ * @function encodeDelimited
9951
+ * @memberof vertexvis.protobuf.stream.Token
9952
+ * @static
9953
+ * @param {vertexvis.protobuf.stream.IToken} message Token message or plain object to encode
9954
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9955
+ * @returns {$protobuf.Writer} Writer
9956
+ */
9957
+ Token.encodeDelimited = function encodeDelimited(message, writer) {
9958
+ return this.encode(message, writer).ldelim();
9959
+ };
9960
+
9961
+ /**
9962
+ * Decodes a Token message from the specified reader or buffer.
9963
+ * @function decode
9964
+ * @memberof vertexvis.protobuf.stream.Token
9965
+ * @static
9966
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9967
+ * @param {number} [length] Message length if known beforehand
9968
+ * @returns {vertexvis.protobuf.stream.Token} Token
9969
+ * @throws {Error} If the payload is not a reader or valid buffer
9970
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9971
+ */
9972
+ Token.decode = function decode(reader, length) {
9973
+ if (!(reader instanceof $Reader))
9974
+ reader = $Reader.create(reader);
9975
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.Token();
9976
+ while (reader.pos < end) {
9977
+ let tag = reader.uint32();
9978
+ switch (tag >>> 3) {
9979
+ case 1:
9980
+ message.token = reader.string();
9981
+ break;
9982
+ case 2:
9983
+ message.expiresIn = reader.uint32();
9984
+ break;
9985
+ default:
9986
+ reader.skipType(tag & 7);
9987
+ break;
9988
+ }
9989
+ }
9990
+ return message;
9991
+ };
9992
+
9993
+ /**
9994
+ * Decodes a Token message from the specified reader or buffer, length delimited.
9995
+ * @function decodeDelimited
9996
+ * @memberof vertexvis.protobuf.stream.Token
9997
+ * @static
9998
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9999
+ * @returns {vertexvis.protobuf.stream.Token} Token
10000
+ * @throws {Error} If the payload is not a reader or valid buffer
10001
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10002
+ */
10003
+ Token.decodeDelimited = function decodeDelimited(reader) {
10004
+ if (!(reader instanceof $Reader))
10005
+ reader = new $Reader(reader);
10006
+ return this.decode(reader, reader.uint32());
10007
+ };
10008
+
10009
+ /**
10010
+ * Verifies a Token message.
10011
+ * @function verify
10012
+ * @memberof vertexvis.protobuf.stream.Token
10013
+ * @static
10014
+ * @param {Object.<string,*>} message Plain object to verify
10015
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10016
+ */
10017
+ Token.verify = function verify(message) {
10018
+ if (typeof message !== "object" || message === null)
10019
+ return "object expected";
10020
+ if (message.token != null && message.hasOwnProperty("token"))
10021
+ if (!$util.isString(message.token))
10022
+ return "token: string expected";
10023
+ if (message.expiresIn != null && message.hasOwnProperty("expiresIn"))
10024
+ if (!$util.isInteger(message.expiresIn))
10025
+ return "expiresIn: integer expected";
10026
+ return null;
10027
+ };
10028
+
10029
+ /**
10030
+ * Creates a Token message from a plain object. Also converts values to their respective internal types.
10031
+ * @function fromObject
10032
+ * @memberof vertexvis.protobuf.stream.Token
10033
+ * @static
10034
+ * @param {Object.<string,*>} object Plain object
10035
+ * @returns {vertexvis.protobuf.stream.Token} Token
10036
+ */
10037
+ Token.fromObject = function fromObject(object) {
10038
+ if (object instanceof $root.vertexvis.protobuf.stream.Token)
10039
+ return object;
10040
+ let message = new $root.vertexvis.protobuf.stream.Token();
10041
+ if (object.token != null)
10042
+ message.token = String(object.token);
10043
+ if (object.expiresIn != null)
10044
+ message.expiresIn = object.expiresIn >>> 0;
10045
+ return message;
10046
+ };
10047
+
10048
+ /**
10049
+ * Creates a plain object from a Token message. Also converts values to other types if specified.
10050
+ * @function toObject
10051
+ * @memberof vertexvis.protobuf.stream.Token
10052
+ * @static
10053
+ * @param {vertexvis.protobuf.stream.Token} message Token
10054
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
10055
+ * @returns {Object.<string,*>} Plain object
10056
+ */
10057
+ Token.toObject = function toObject(message, options) {
10058
+ if (!options)
10059
+ options = {};
10060
+ let object = {};
10061
+ if (options.defaults) {
10062
+ object.token = "";
10063
+ object.expiresIn = 0;
10064
+ }
10065
+ if (message.token != null && message.hasOwnProperty("token"))
10066
+ object.token = message.token;
10067
+ if (message.expiresIn != null && message.hasOwnProperty("expiresIn"))
10068
+ object.expiresIn = message.expiresIn;
10069
+ return object;
10070
+ };
10071
+
10072
+ /**
10073
+ * Converts this Token to JSON.
10074
+ * @function toJSON
10075
+ * @memberof vertexvis.protobuf.stream.Token
10076
+ * @instance
10077
+ * @returns {Object.<string,*>} JSON object
10078
+ */
10079
+ Token.prototype.toJSON = function toJSON() {
10080
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
10081
+ };
10082
+
10083
+ return Token;
10084
+ })();
10085
+
9606
10086
  stream.Error = (function() {
9607
10087
 
9608
10088
  /**
@@ -10828,6 +11308,8 @@ const vertexvis = $root.vertexvis = (() => {
10828
11308
  * @property {vertexvis.protobuf.stream.ILoadSceneViewStatePayload|null} [loadSceneViewState] StreamRequest loadSceneViewState
10829
11309
  * @property {vertexvis.protobuf.stream.IUpdateCrossSectioningPayload|null} [updateCrossSectioning] StreamRequest updateCrossSectioning
10830
11310
  * @property {vertexvis.protobuf.stream.IGetStencilBufferPayload|null} [getStencilBuffer] StreamRequest getStencilBuffer
11311
+ * @property {vertexvis.protobuf.stream.IResetViewPlayload|null} [resetView] StreamRequest resetView
11312
+ * @property {vertexvis.protobuf.stream.IRefreshTokenPayload|null} [refreshToken] StreamRequest refreshToken
10831
11313
  */
10832
11314
 
10833
11315
  /**
@@ -10989,17 +11471,33 @@ const vertexvis = $root.vertexvis = (() => {
10989
11471
  */
10990
11472
  StreamRequest.prototype.getStencilBuffer = null;
10991
11473
 
11474
+ /**
11475
+ * StreamRequest resetView.
11476
+ * @member {vertexvis.protobuf.stream.IResetViewPlayload|null|undefined} resetView
11477
+ * @memberof vertexvis.protobuf.stream.StreamRequest
11478
+ * @instance
11479
+ */
11480
+ StreamRequest.prototype.resetView = null;
11481
+
11482
+ /**
11483
+ * StreamRequest refreshToken.
11484
+ * @member {vertexvis.protobuf.stream.IRefreshTokenPayload|null|undefined} refreshToken
11485
+ * @memberof vertexvis.protobuf.stream.StreamRequest
11486
+ * @instance
11487
+ */
11488
+ StreamRequest.prototype.refreshToken = null;
11489
+
10992
11490
  // OneOf field names bound to virtual getters and setters
10993
11491
  let $oneOfFields;
10994
11492
 
10995
11493
  /**
10996
11494
  * StreamRequest payload.
10997
- * @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"gracefulReconnection"|"reconnect"|"hitItems"|"createSceneAlteration"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"getStencilBuffer"|undefined} payload
11495
+ * @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"gracefulReconnection"|"reconnect"|"hitItems"|"createSceneAlteration"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"getStencilBuffer"|"resetView"|"refreshToken"|undefined} payload
10998
11496
  * @memberof vertexvis.protobuf.stream.StreamRequest
10999
11497
  * @instance
11000
11498
  */
11001
11499
  Object.defineProperty(StreamRequest.prototype, "payload", {
11002
- get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "gracefulReconnection", "reconnect", "hitItems", "createSceneAlteration", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "getStencilBuffer"]),
11500
+ get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "gracefulReconnection", "reconnect", "hitItems", "createSceneAlteration", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "getStencilBuffer", "resetView", "refreshToken"]),
11003
11501
  set: $util.oneOfSetter($oneOfFields)
11004
11502
  });
11005
11503
 
@@ -11063,6 +11561,10 @@ const vertexvis = $root.vertexvis = (() => {
11063
11561
  $root.vertexvis.protobuf.stream.UpdateCrossSectioningPayload.encode(message.updateCrossSectioning, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
11064
11562
  if (message.getStencilBuffer != null && Object.hasOwnProperty.call(message, "getStencilBuffer"))
11065
11563
  $root.vertexvis.protobuf.stream.GetStencilBufferPayload.encode(message.getStencilBuffer, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
11564
+ if (message.resetView != null && Object.hasOwnProperty.call(message, "resetView"))
11565
+ $root.vertexvis.protobuf.stream.ResetViewPlayload.encode(message.resetView, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
11566
+ if (message.refreshToken != null && Object.hasOwnProperty.call(message, "refreshToken"))
11567
+ $root.vertexvis.protobuf.stream.RefreshTokenPayload.encode(message.refreshToken, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
11066
11568
  return writer;
11067
11569
  };
11068
11570
 
@@ -11151,6 +11653,12 @@ const vertexvis = $root.vertexvis = (() => {
11151
11653
  case 18:
11152
11654
  message.getStencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferPayload.decode(reader, reader.uint32());
11153
11655
  break;
11656
+ case 19:
11657
+ message.resetView = $root.vertexvis.protobuf.stream.ResetViewPlayload.decode(reader, reader.uint32());
11658
+ break;
11659
+ case 20:
11660
+ message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenPayload.decode(reader, reader.uint32());
11661
+ break;
11154
11662
  default:
11155
11663
  reader.skipType(tag & 7);
11156
11664
  break;
@@ -11360,6 +11868,26 @@ const vertexvis = $root.vertexvis = (() => {
11360
11868
  return "getStencilBuffer." + error;
11361
11869
  }
11362
11870
  }
11871
+ if (message.resetView != null && message.hasOwnProperty("resetView")) {
11872
+ if (properties.payload === 1)
11873
+ return "payload: multiple values";
11874
+ properties.payload = 1;
11875
+ {
11876
+ let error = $root.vertexvis.protobuf.stream.ResetViewPlayload.verify(message.resetView);
11877
+ if (error)
11878
+ return "resetView." + error;
11879
+ }
11880
+ }
11881
+ if (message.refreshToken != null && message.hasOwnProperty("refreshToken")) {
11882
+ if (properties.payload === 1)
11883
+ return "payload: multiple values";
11884
+ properties.payload = 1;
11885
+ {
11886
+ let error = $root.vertexvis.protobuf.stream.RefreshTokenPayload.verify(message.refreshToken);
11887
+ if (error)
11888
+ return "refreshToken." + error;
11889
+ }
11890
+ }
11363
11891
  return null;
11364
11892
  };
11365
11893
 
@@ -11465,6 +11993,16 @@ const vertexvis = $root.vertexvis = (() => {
11465
11993
  throw TypeError(".vertexvis.protobuf.stream.StreamRequest.getStencilBuffer: object expected");
11466
11994
  message.getStencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferPayload.fromObject(object.getStencilBuffer);
11467
11995
  }
11996
+ if (object.resetView != null) {
11997
+ if (typeof object.resetView !== "object")
11998
+ throw TypeError(".vertexvis.protobuf.stream.StreamRequest.resetView: object expected");
11999
+ message.resetView = $root.vertexvis.protobuf.stream.ResetViewPlayload.fromObject(object.resetView);
12000
+ }
12001
+ if (object.refreshToken != null) {
12002
+ if (typeof object.refreshToken !== "object")
12003
+ throw TypeError(".vertexvis.protobuf.stream.StreamRequest.refreshToken: object expected");
12004
+ message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenPayload.fromObject(object.refreshToken);
12005
+ }
11468
12006
  return message;
11469
12007
  };
11470
12008
 
@@ -11570,6 +12108,16 @@ const vertexvis = $root.vertexvis = (() => {
11570
12108
  if (options.oneofs)
11571
12109
  object.payload = "getStencilBuffer";
11572
12110
  }
12111
+ if (message.resetView != null && message.hasOwnProperty("resetView")) {
12112
+ object.resetView = $root.vertexvis.protobuf.stream.ResetViewPlayload.toObject(message.resetView, options);
12113
+ if (options.oneofs)
12114
+ object.payload = "resetView";
12115
+ }
12116
+ if (message.refreshToken != null && message.hasOwnProperty("refreshToken")) {
12117
+ object.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenPayload.toObject(message.refreshToken, options);
12118
+ if (options.oneofs)
12119
+ object.payload = "refreshToken";
12120
+ }
11573
12121
  return object;
11574
12122
  };
11575
12123
 
@@ -13736,6 +14284,7 @@ const vertexvis = $root.vertexvis = (() => {
13736
14284
  * @property {Uint8Array|null} [image] DrawFramePayload image
13737
14285
  * @property {Array.<string>|null} [frameCorrelationIds] DrawFramePayload frameCorrelationIds
13738
14286
  * @property {google.protobuf.IBytesValue|null} [depthBuffer] DrawFramePayload depthBuffer
14287
+ * @property {google.protobuf.IBytesValue|null} [featureMap] DrawFramePayload featureMap
13739
14288
  */
13740
14289
 
13741
14290
  /**
@@ -13802,6 +14351,14 @@ const vertexvis = $root.vertexvis = (() => {
13802
14351
  */
13803
14352
  DrawFramePayload.prototype.depthBuffer = null;
13804
14353
 
14354
+ /**
14355
+ * DrawFramePayload featureMap.
14356
+ * @member {google.protobuf.IBytesValue|null|undefined} featureMap
14357
+ * @memberof vertexvis.protobuf.stream.DrawFramePayload
14358
+ * @instance
14359
+ */
14360
+ DrawFramePayload.prototype.featureMap = null;
14361
+
13805
14362
  /**
13806
14363
  * Creates a new DrawFramePayload instance using the specified properties.
13807
14364
  * @function create
@@ -13839,6 +14396,8 @@ const vertexvis = $root.vertexvis = (() => {
13839
14396
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.frameCorrelationIds[i]);
13840
14397
  if (message.depthBuffer != null && Object.hasOwnProperty.call(message, "depthBuffer"))
13841
14398
  $root.google.protobuf.BytesValue.encode(message.depthBuffer, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
14399
+ if (message.featureMap != null && Object.hasOwnProperty.call(message, "featureMap"))
14400
+ $root.google.protobuf.BytesValue.encode(message.featureMap, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
13842
14401
  return writer;
13843
14402
  };
13844
14403
 
@@ -13893,6 +14452,9 @@ const vertexvis = $root.vertexvis = (() => {
13893
14452
  case 6:
13894
14453
  message.depthBuffer = $root.google.protobuf.BytesValue.decode(reader, reader.uint32());
13895
14454
  break;
14455
+ case 7:
14456
+ message.featureMap = $root.google.protobuf.BytesValue.decode(reader, reader.uint32());
14457
+ break;
13896
14458
  default:
13897
14459
  reader.skipType(tag & 7);
13898
14460
  break;
@@ -13956,6 +14518,11 @@ const vertexvis = $root.vertexvis = (() => {
13956
14518
  if (error)
13957
14519
  return "depthBuffer." + error;
13958
14520
  }
14521
+ if (message.featureMap != null && message.hasOwnProperty("featureMap")) {
14522
+ let error = $root.google.protobuf.BytesValue.verify(message.featureMap);
14523
+ if (error)
14524
+ return "featureMap." + error;
14525
+ }
13959
14526
  return null;
13960
14527
  };
13961
14528
 
@@ -14000,6 +14567,11 @@ const vertexvis = $root.vertexvis = (() => {
14000
14567
  throw TypeError(".vertexvis.protobuf.stream.DrawFramePayload.depthBuffer: object expected");
14001
14568
  message.depthBuffer = $root.google.protobuf.BytesValue.fromObject(object.depthBuffer);
14002
14569
  }
14570
+ if (object.featureMap != null) {
14571
+ if (typeof object.featureMap !== "object")
14572
+ throw TypeError(".vertexvis.protobuf.stream.DrawFramePayload.featureMap: object expected");
14573
+ message.featureMap = $root.google.protobuf.BytesValue.fromObject(object.featureMap);
14574
+ }
14003
14575
  return message;
14004
14576
  };
14005
14577
 
@@ -14030,6 +14602,7 @@ const vertexvis = $root.vertexvis = (() => {
14030
14602
  object.image = $util.newBuffer(object.image);
14031
14603
  }
14032
14604
  object.depthBuffer = null;
14605
+ object.featureMap = null;
14033
14606
  }
14034
14607
  if (message.sequenceNumber != null && message.hasOwnProperty("sequenceNumber"))
14035
14608
  object.sequenceNumber = message.sequenceNumber;
@@ -14046,6 +14619,8 @@ const vertexvis = $root.vertexvis = (() => {
14046
14619
  }
14047
14620
  if (message.depthBuffer != null && message.hasOwnProperty("depthBuffer"))
14048
14621
  object.depthBuffer = $root.google.protobuf.BytesValue.toObject(message.depthBuffer, options);
14622
+ if (message.featureMap != null && message.hasOwnProperty("featureMap"))
14623
+ object.featureMap = $root.google.protobuf.BytesValue.toObject(message.featureMap, options);
14049
14624
  return object;
14050
14625
  };
14051
14626
 
@@ -15266,6 +15841,221 @@ const vertexvis = $root.vertexvis = (() => {
15266
15841
  return LoadSceneViewStatePayload;
15267
15842
  })();
15268
15843
 
15844
+ stream.ResetViewPlayload = (function() {
15845
+
15846
+ /**
15847
+ * Properties of a ResetViewPlayload.
15848
+ * @memberof vertexvis.protobuf.stream
15849
+ * @interface IResetViewPlayload
15850
+ * @property {google.protobuf.IStringValue|null} [frameCorrelationId] ResetViewPlayload frameCorrelationId
15851
+ * @property {boolean|null} [includeCamera] ResetViewPlayload includeCamera
15852
+ */
15853
+
15854
+ /**
15855
+ * Constructs a new ResetViewPlayload.
15856
+ * @memberof vertexvis.protobuf.stream
15857
+ * @classdesc Represents a ResetViewPlayload.
15858
+ * @implements IResetViewPlayload
15859
+ * @constructor
15860
+ * @param {vertexvis.protobuf.stream.IResetViewPlayload=} [properties] Properties to set
15861
+ */
15862
+ function ResetViewPlayload(properties) {
15863
+ if (properties)
15864
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15865
+ if (properties[keys[i]] != null)
15866
+ this[keys[i]] = properties[keys[i]];
15867
+ }
15868
+
15869
+ /**
15870
+ * ResetViewPlayload frameCorrelationId.
15871
+ * @member {google.protobuf.IStringValue|null|undefined} frameCorrelationId
15872
+ * @memberof vertexvis.protobuf.stream.ResetViewPlayload
15873
+ * @instance
15874
+ */
15875
+ ResetViewPlayload.prototype.frameCorrelationId = null;
15876
+
15877
+ /**
15878
+ * ResetViewPlayload includeCamera.
15879
+ * @member {boolean} includeCamera
15880
+ * @memberof vertexvis.protobuf.stream.ResetViewPlayload
15881
+ * @instance
15882
+ */
15883
+ ResetViewPlayload.prototype.includeCamera = false;
15884
+
15885
+ /**
15886
+ * Creates a new ResetViewPlayload instance using the specified properties.
15887
+ * @function create
15888
+ * @memberof vertexvis.protobuf.stream.ResetViewPlayload
15889
+ * @static
15890
+ * @param {vertexvis.protobuf.stream.IResetViewPlayload=} [properties] Properties to set
15891
+ * @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload instance
15892
+ */
15893
+ ResetViewPlayload.create = function create(properties) {
15894
+ return new ResetViewPlayload(properties);
15895
+ };
15896
+
15897
+ /**
15898
+ * Encodes the specified ResetViewPlayload message. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewPlayload.verify|verify} messages.
15899
+ * @function encode
15900
+ * @memberof vertexvis.protobuf.stream.ResetViewPlayload
15901
+ * @static
15902
+ * @param {vertexvis.protobuf.stream.IResetViewPlayload} message ResetViewPlayload message or plain object to encode
15903
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15904
+ * @returns {$protobuf.Writer} Writer
15905
+ */
15906
+ ResetViewPlayload.encode = function encode(message, writer) {
15907
+ if (!writer)
15908
+ writer = $Writer.create();
15909
+ if (message.frameCorrelationId != null && Object.hasOwnProperty.call(message, "frameCorrelationId"))
15910
+ $root.google.protobuf.StringValue.encode(message.frameCorrelationId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
15911
+ if (message.includeCamera != null && Object.hasOwnProperty.call(message, "includeCamera"))
15912
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includeCamera);
15913
+ return writer;
15914
+ };
15915
+
15916
+ /**
15917
+ * Encodes the specified ResetViewPlayload message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewPlayload.verify|verify} messages.
15918
+ * @function encodeDelimited
15919
+ * @memberof vertexvis.protobuf.stream.ResetViewPlayload
15920
+ * @static
15921
+ * @param {vertexvis.protobuf.stream.IResetViewPlayload} message ResetViewPlayload message or plain object to encode
15922
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15923
+ * @returns {$protobuf.Writer} Writer
15924
+ */
15925
+ ResetViewPlayload.encodeDelimited = function encodeDelimited(message, writer) {
15926
+ return this.encode(message, writer).ldelim();
15927
+ };
15928
+
15929
+ /**
15930
+ * Decodes a ResetViewPlayload message from the specified reader or buffer.
15931
+ * @function decode
15932
+ * @memberof vertexvis.protobuf.stream.ResetViewPlayload
15933
+ * @static
15934
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15935
+ * @param {number} [length] Message length if known beforehand
15936
+ * @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload
15937
+ * @throws {Error} If the payload is not a reader or valid buffer
15938
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15939
+ */
15940
+ ResetViewPlayload.decode = function decode(reader, length) {
15941
+ if (!(reader instanceof $Reader))
15942
+ reader = $Reader.create(reader);
15943
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ResetViewPlayload();
15944
+ while (reader.pos < end) {
15945
+ let tag = reader.uint32();
15946
+ switch (tag >>> 3) {
15947
+ case 1:
15948
+ message.frameCorrelationId = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
15949
+ break;
15950
+ case 2:
15951
+ message.includeCamera = reader.bool();
15952
+ break;
15953
+ default:
15954
+ reader.skipType(tag & 7);
15955
+ break;
15956
+ }
15957
+ }
15958
+ return message;
15959
+ };
15960
+
15961
+ /**
15962
+ * Decodes a ResetViewPlayload message from the specified reader or buffer, length delimited.
15963
+ * @function decodeDelimited
15964
+ * @memberof vertexvis.protobuf.stream.ResetViewPlayload
15965
+ * @static
15966
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15967
+ * @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload
15968
+ * @throws {Error} If the payload is not a reader or valid buffer
15969
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15970
+ */
15971
+ ResetViewPlayload.decodeDelimited = function decodeDelimited(reader) {
15972
+ if (!(reader instanceof $Reader))
15973
+ reader = new $Reader(reader);
15974
+ return this.decode(reader, reader.uint32());
15975
+ };
15976
+
15977
+ /**
15978
+ * Verifies a ResetViewPlayload message.
15979
+ * @function verify
15980
+ * @memberof vertexvis.protobuf.stream.ResetViewPlayload
15981
+ * @static
15982
+ * @param {Object.<string,*>} message Plain object to verify
15983
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
15984
+ */
15985
+ ResetViewPlayload.verify = function verify(message) {
15986
+ if (typeof message !== "object" || message === null)
15987
+ return "object expected";
15988
+ if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId")) {
15989
+ let error = $root.google.protobuf.StringValue.verify(message.frameCorrelationId);
15990
+ if (error)
15991
+ return "frameCorrelationId." + error;
15992
+ }
15993
+ if (message.includeCamera != null && message.hasOwnProperty("includeCamera"))
15994
+ if (typeof message.includeCamera !== "boolean")
15995
+ return "includeCamera: boolean expected";
15996
+ return null;
15997
+ };
15998
+
15999
+ /**
16000
+ * Creates a ResetViewPlayload message from a plain object. Also converts values to their respective internal types.
16001
+ * @function fromObject
16002
+ * @memberof vertexvis.protobuf.stream.ResetViewPlayload
16003
+ * @static
16004
+ * @param {Object.<string,*>} object Plain object
16005
+ * @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload
16006
+ */
16007
+ ResetViewPlayload.fromObject = function fromObject(object) {
16008
+ if (object instanceof $root.vertexvis.protobuf.stream.ResetViewPlayload)
16009
+ return object;
16010
+ let message = new $root.vertexvis.protobuf.stream.ResetViewPlayload();
16011
+ if (object.frameCorrelationId != null) {
16012
+ if (typeof object.frameCorrelationId !== "object")
16013
+ throw TypeError(".vertexvis.protobuf.stream.ResetViewPlayload.frameCorrelationId: object expected");
16014
+ message.frameCorrelationId = $root.google.protobuf.StringValue.fromObject(object.frameCorrelationId);
16015
+ }
16016
+ if (object.includeCamera != null)
16017
+ message.includeCamera = Boolean(object.includeCamera);
16018
+ return message;
16019
+ };
16020
+
16021
+ /**
16022
+ * Creates a plain object from a ResetViewPlayload message. Also converts values to other types if specified.
16023
+ * @function toObject
16024
+ * @memberof vertexvis.protobuf.stream.ResetViewPlayload
16025
+ * @static
16026
+ * @param {vertexvis.protobuf.stream.ResetViewPlayload} message ResetViewPlayload
16027
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
16028
+ * @returns {Object.<string,*>} Plain object
16029
+ */
16030
+ ResetViewPlayload.toObject = function toObject(message, options) {
16031
+ if (!options)
16032
+ options = {};
16033
+ let object = {};
16034
+ if (options.defaults) {
16035
+ object.frameCorrelationId = null;
16036
+ object.includeCamera = false;
16037
+ }
16038
+ if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId"))
16039
+ object.frameCorrelationId = $root.google.protobuf.StringValue.toObject(message.frameCorrelationId, options);
16040
+ if (message.includeCamera != null && message.hasOwnProperty("includeCamera"))
16041
+ object.includeCamera = message.includeCamera;
16042
+ return object;
16043
+ };
16044
+
16045
+ /**
16046
+ * Converts this ResetViewPlayload to JSON.
16047
+ * @function toJSON
16048
+ * @memberof vertexvis.protobuf.stream.ResetViewPlayload
16049
+ * @instance
16050
+ * @returns {Object.<string,*>} JSON object
16051
+ */
16052
+ ResetViewPlayload.prototype.toJSON = function toJSON() {
16053
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
16054
+ };
16055
+
16056
+ return ResetViewPlayload;
16057
+ })();
16058
+
15269
16059
  stream.UpdateCrossSectioningPayload = (function() {
15270
16060
 
15271
16061
  /**
@@ -15492,6 +16282,7 @@ const vertexvis = $root.vertexvis = (() => {
15492
16282
  * Properties of a GetStencilBufferPayload.
15493
16283
  * @memberof vertexvis.protobuf.stream
15494
16284
  * @interface IGetStencilBufferPayload
16285
+ * @property {boolean|null} [includeDepthBuffer] GetStencilBufferPayload includeDepthBuffer
15495
16286
  */
15496
16287
 
15497
16288
  /**
@@ -15509,6 +16300,14 @@ const vertexvis = $root.vertexvis = (() => {
15509
16300
  this[keys[i]] = properties[keys[i]];
15510
16301
  }
15511
16302
 
16303
+ /**
16304
+ * GetStencilBufferPayload includeDepthBuffer.
16305
+ * @member {boolean} includeDepthBuffer
16306
+ * @memberof vertexvis.protobuf.stream.GetStencilBufferPayload
16307
+ * @instance
16308
+ */
16309
+ GetStencilBufferPayload.prototype.includeDepthBuffer = false;
16310
+
15512
16311
  /**
15513
16312
  * Creates a new GetStencilBufferPayload instance using the specified properties.
15514
16313
  * @function create
@@ -15533,6 +16332,8 @@ const vertexvis = $root.vertexvis = (() => {
15533
16332
  GetStencilBufferPayload.encode = function encode(message, writer) {
15534
16333
  if (!writer)
15535
16334
  writer = $Writer.create();
16335
+ if (message.includeDepthBuffer != null && Object.hasOwnProperty.call(message, "includeDepthBuffer"))
16336
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.includeDepthBuffer);
15536
16337
  return writer;
15537
16338
  };
15538
16339
 
@@ -15567,6 +16368,9 @@ const vertexvis = $root.vertexvis = (() => {
15567
16368
  while (reader.pos < end) {
15568
16369
  let tag = reader.uint32();
15569
16370
  switch (tag >>> 3) {
16371
+ case 1:
16372
+ message.includeDepthBuffer = reader.bool();
16373
+ break;
15570
16374
  default:
15571
16375
  reader.skipType(tag & 7);
15572
16376
  break;
@@ -15602,6 +16406,9 @@ const vertexvis = $root.vertexvis = (() => {
15602
16406
  GetStencilBufferPayload.verify = function verify(message) {
15603
16407
  if (typeof message !== "object" || message === null)
15604
16408
  return "object expected";
16409
+ if (message.includeDepthBuffer != null && message.hasOwnProperty("includeDepthBuffer"))
16410
+ if (typeof message.includeDepthBuffer !== "boolean")
16411
+ return "includeDepthBuffer: boolean expected";
15605
16412
  return null;
15606
16413
  };
15607
16414
 
@@ -15616,7 +16423,10 @@ const vertexvis = $root.vertexvis = (() => {
15616
16423
  GetStencilBufferPayload.fromObject = function fromObject(object) {
15617
16424
  if (object instanceof $root.vertexvis.protobuf.stream.GetStencilBufferPayload)
15618
16425
  return object;
15619
- return new $root.vertexvis.protobuf.stream.GetStencilBufferPayload();
16426
+ let message = new $root.vertexvis.protobuf.stream.GetStencilBufferPayload();
16427
+ if (object.includeDepthBuffer != null)
16428
+ message.includeDepthBuffer = Boolean(object.includeDepthBuffer);
16429
+ return message;
15620
16430
  };
15621
16431
 
15622
16432
  /**
@@ -15628,8 +16438,15 @@ const vertexvis = $root.vertexvis = (() => {
15628
16438
  * @param {$protobuf.IConversionOptions} [options] Conversion options
15629
16439
  * @returns {Object.<string,*>} Plain object
15630
16440
  */
15631
- GetStencilBufferPayload.toObject = function toObject() {
15632
- return {};
16441
+ GetStencilBufferPayload.toObject = function toObject(message, options) {
16442
+ if (!options)
16443
+ options = {};
16444
+ let object = {};
16445
+ if (options.defaults)
16446
+ object.includeDepthBuffer = false;
16447
+ if (message.includeDepthBuffer != null && message.hasOwnProperty("includeDepthBuffer"))
16448
+ object.includeDepthBuffer = message.includeDepthBuffer;
16449
+ return object;
15633
16450
  };
15634
16451
 
15635
16452
  /**
@@ -15646,6 +16463,166 @@ const vertexvis = $root.vertexvis = (() => {
15646
16463
  return GetStencilBufferPayload;
15647
16464
  })();
15648
16465
 
16466
+ stream.RefreshTokenPayload = (function() {
16467
+
16468
+ /**
16469
+ * Properties of a RefreshTokenPayload.
16470
+ * @memberof vertexvis.protobuf.stream
16471
+ * @interface IRefreshTokenPayload
16472
+ */
16473
+
16474
+ /**
16475
+ * Constructs a new RefreshTokenPayload.
16476
+ * @memberof vertexvis.protobuf.stream
16477
+ * @classdesc Represents a RefreshTokenPayload.
16478
+ * @implements IRefreshTokenPayload
16479
+ * @constructor
16480
+ * @param {vertexvis.protobuf.stream.IRefreshTokenPayload=} [properties] Properties to set
16481
+ */
16482
+ function RefreshTokenPayload(properties) {
16483
+ if (properties)
16484
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16485
+ if (properties[keys[i]] != null)
16486
+ this[keys[i]] = properties[keys[i]];
16487
+ }
16488
+
16489
+ /**
16490
+ * Creates a new RefreshTokenPayload instance using the specified properties.
16491
+ * @function create
16492
+ * @memberof vertexvis.protobuf.stream.RefreshTokenPayload
16493
+ * @static
16494
+ * @param {vertexvis.protobuf.stream.IRefreshTokenPayload=} [properties] Properties to set
16495
+ * @returns {vertexvis.protobuf.stream.RefreshTokenPayload} RefreshTokenPayload instance
16496
+ */
16497
+ RefreshTokenPayload.create = function create(properties) {
16498
+ return new RefreshTokenPayload(properties);
16499
+ };
16500
+
16501
+ /**
16502
+ * Encodes the specified RefreshTokenPayload message. Does not implicitly {@link vertexvis.protobuf.stream.RefreshTokenPayload.verify|verify} messages.
16503
+ * @function encode
16504
+ * @memberof vertexvis.protobuf.stream.RefreshTokenPayload
16505
+ * @static
16506
+ * @param {vertexvis.protobuf.stream.IRefreshTokenPayload} message RefreshTokenPayload message or plain object to encode
16507
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16508
+ * @returns {$protobuf.Writer} Writer
16509
+ */
16510
+ RefreshTokenPayload.encode = function encode(message, writer) {
16511
+ if (!writer)
16512
+ writer = $Writer.create();
16513
+ return writer;
16514
+ };
16515
+
16516
+ /**
16517
+ * Encodes the specified RefreshTokenPayload message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.RefreshTokenPayload.verify|verify} messages.
16518
+ * @function encodeDelimited
16519
+ * @memberof vertexvis.protobuf.stream.RefreshTokenPayload
16520
+ * @static
16521
+ * @param {vertexvis.protobuf.stream.IRefreshTokenPayload} message RefreshTokenPayload message or plain object to encode
16522
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16523
+ * @returns {$protobuf.Writer} Writer
16524
+ */
16525
+ RefreshTokenPayload.encodeDelimited = function encodeDelimited(message, writer) {
16526
+ return this.encode(message, writer).ldelim();
16527
+ };
16528
+
16529
+ /**
16530
+ * Decodes a RefreshTokenPayload message from the specified reader or buffer.
16531
+ * @function decode
16532
+ * @memberof vertexvis.protobuf.stream.RefreshTokenPayload
16533
+ * @static
16534
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16535
+ * @param {number} [length] Message length if known beforehand
16536
+ * @returns {vertexvis.protobuf.stream.RefreshTokenPayload} RefreshTokenPayload
16537
+ * @throws {Error} If the payload is not a reader or valid buffer
16538
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16539
+ */
16540
+ RefreshTokenPayload.decode = function decode(reader, length) {
16541
+ if (!(reader instanceof $Reader))
16542
+ reader = $Reader.create(reader);
16543
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.RefreshTokenPayload();
16544
+ while (reader.pos < end) {
16545
+ let tag = reader.uint32();
16546
+ switch (tag >>> 3) {
16547
+ default:
16548
+ reader.skipType(tag & 7);
16549
+ break;
16550
+ }
16551
+ }
16552
+ return message;
16553
+ };
16554
+
16555
+ /**
16556
+ * Decodes a RefreshTokenPayload message from the specified reader or buffer, length delimited.
16557
+ * @function decodeDelimited
16558
+ * @memberof vertexvis.protobuf.stream.RefreshTokenPayload
16559
+ * @static
16560
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16561
+ * @returns {vertexvis.protobuf.stream.RefreshTokenPayload} RefreshTokenPayload
16562
+ * @throws {Error} If the payload is not a reader or valid buffer
16563
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16564
+ */
16565
+ RefreshTokenPayload.decodeDelimited = function decodeDelimited(reader) {
16566
+ if (!(reader instanceof $Reader))
16567
+ reader = new $Reader(reader);
16568
+ return this.decode(reader, reader.uint32());
16569
+ };
16570
+
16571
+ /**
16572
+ * Verifies a RefreshTokenPayload message.
16573
+ * @function verify
16574
+ * @memberof vertexvis.protobuf.stream.RefreshTokenPayload
16575
+ * @static
16576
+ * @param {Object.<string,*>} message Plain object to verify
16577
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
16578
+ */
16579
+ RefreshTokenPayload.verify = function verify(message) {
16580
+ if (typeof message !== "object" || message === null)
16581
+ return "object expected";
16582
+ return null;
16583
+ };
16584
+
16585
+ /**
16586
+ * Creates a RefreshTokenPayload message from a plain object. Also converts values to their respective internal types.
16587
+ * @function fromObject
16588
+ * @memberof vertexvis.protobuf.stream.RefreshTokenPayload
16589
+ * @static
16590
+ * @param {Object.<string,*>} object Plain object
16591
+ * @returns {vertexvis.protobuf.stream.RefreshTokenPayload} RefreshTokenPayload
16592
+ */
16593
+ RefreshTokenPayload.fromObject = function fromObject(object) {
16594
+ if (object instanceof $root.vertexvis.protobuf.stream.RefreshTokenPayload)
16595
+ return object;
16596
+ return new $root.vertexvis.protobuf.stream.RefreshTokenPayload();
16597
+ };
16598
+
16599
+ /**
16600
+ * Creates a plain object from a RefreshTokenPayload message. Also converts values to other types if specified.
16601
+ * @function toObject
16602
+ * @memberof vertexvis.protobuf.stream.RefreshTokenPayload
16603
+ * @static
16604
+ * @param {vertexvis.protobuf.stream.RefreshTokenPayload} message RefreshTokenPayload
16605
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
16606
+ * @returns {Object.<string,*>} Plain object
16607
+ */
16608
+ RefreshTokenPayload.toObject = function toObject() {
16609
+ return {};
16610
+ };
16611
+
16612
+ /**
16613
+ * Converts this RefreshTokenPayload to JSON.
16614
+ * @function toJSON
16615
+ * @memberof vertexvis.protobuf.stream.RefreshTokenPayload
16616
+ * @instance
16617
+ * @returns {Object.<string,*>} JSON object
16618
+ */
16619
+ RefreshTokenPayload.prototype.toJSON = function toJSON() {
16620
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
16621
+ };
16622
+
16623
+ return RefreshTokenPayload;
16624
+ })();
16625
+
15649
16626
  stream.StreamResponse = (function() {
15650
16627
 
15651
16628
  /**
@@ -15669,6 +16646,8 @@ const vertexvis = $root.vertexvis = (() => {
15669
16646
  * @property {vertexvis.protobuf.stream.ILoadSceneViewStateResult|null} [loadSceneViewState] StreamResponse loadSceneViewState
15670
16647
  * @property {vertexvis.protobuf.stream.IUpdateCrossSectioningResult|null} [updateCrossSectioning] StreamResponse updateCrossSectioning
15671
16648
  * @property {vertexvis.protobuf.stream.IGetStencilBufferResult|null} [stencilBuffer] StreamResponse stencilBuffer
16649
+ * @property {vertexvis.protobuf.stream.IResetViewResult|null} [resetView] StreamResponse resetView
16650
+ * @property {vertexvis.protobuf.stream.IRefreshTokenResult|null} [refreshToken] StreamResponse refreshToken
15672
16651
  */
15673
16652
 
15674
16653
  /**
@@ -15822,17 +16801,33 @@ const vertexvis = $root.vertexvis = (() => {
15822
16801
  */
15823
16802
  StreamResponse.prototype.stencilBuffer = null;
15824
16803
 
16804
+ /**
16805
+ * StreamResponse resetView.
16806
+ * @member {vertexvis.protobuf.stream.IResetViewResult|null|undefined} resetView
16807
+ * @memberof vertexvis.protobuf.stream.StreamResponse
16808
+ * @instance
16809
+ */
16810
+ StreamResponse.prototype.resetView = null;
16811
+
16812
+ /**
16813
+ * StreamResponse refreshToken.
16814
+ * @member {vertexvis.protobuf.stream.IRefreshTokenResult|null|undefined} refreshToken
16815
+ * @memberof vertexvis.protobuf.stream.StreamResponse
16816
+ * @instance
16817
+ */
16818
+ StreamResponse.prototype.refreshToken = null;
16819
+
15825
16820
  // OneOf field names bound to virtual getters and setters
15826
16821
  let $oneOfFields;
15827
16822
 
15828
16823
  /**
15829
16824
  * StreamResponse result.
15830
- * @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"reconnect"|"hitItems"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"stencilBuffer"|undefined} result
16825
+ * @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"reconnect"|"hitItems"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"stencilBuffer"|"resetView"|"refreshToken"|undefined} result
15831
16826
  * @memberof vertexvis.protobuf.stream.StreamResponse
15832
16827
  * @instance
15833
16828
  */
15834
16829
  Object.defineProperty(StreamResponse.prototype, "result", {
15835
- get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "reconnect", "hitItems", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "stencilBuffer"]),
16830
+ get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "reconnect", "hitItems", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "stencilBuffer", "resetView", "refreshToken"]),
15836
16831
  set: $util.oneOfSetter($oneOfFields)
15837
16832
  });
15838
16833
 
@@ -15894,6 +16889,10 @@ const vertexvis = $root.vertexvis = (() => {
15894
16889
  $root.vertexvis.protobuf.stream.UpdateCrossSectioningResult.encode(message.updateCrossSectioning, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
15895
16890
  if (message.stencilBuffer != null && Object.hasOwnProperty.call(message, "stencilBuffer"))
15896
16891
  $root.vertexvis.protobuf.stream.GetStencilBufferResult.encode(message.stencilBuffer, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
16892
+ if (message.resetView != null && Object.hasOwnProperty.call(message, "resetView"))
16893
+ $root.vertexvis.protobuf.stream.ResetViewResult.encode(message.resetView, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
16894
+ if (message.refreshToken != null && Object.hasOwnProperty.call(message, "refreshToken"))
16895
+ $root.vertexvis.protobuf.stream.RefreshTokenResult.encode(message.refreshToken, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
15897
16896
  return writer;
15898
16897
  };
15899
16898
 
@@ -15979,6 +16978,12 @@ const vertexvis = $root.vertexvis = (() => {
15979
16978
  case 17:
15980
16979
  message.stencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferResult.decode(reader, reader.uint32());
15981
16980
  break;
16981
+ case 18:
16982
+ message.resetView = $root.vertexvis.protobuf.stream.ResetViewResult.decode(reader, reader.uint32());
16983
+ break;
16984
+ case 19:
16985
+ message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenResult.decode(reader, reader.uint32());
16986
+ break;
15982
16987
  default:
15983
16988
  reader.skipType(tag & 7);
15984
16989
  break;
@@ -16173,6 +17178,26 @@ const vertexvis = $root.vertexvis = (() => {
16173
17178
  return "stencilBuffer." + error;
16174
17179
  }
16175
17180
  }
17181
+ if (message.resetView != null && message.hasOwnProperty("resetView")) {
17182
+ if (properties.result === 1)
17183
+ return "result: multiple values";
17184
+ properties.result = 1;
17185
+ {
17186
+ let error = $root.vertexvis.protobuf.stream.ResetViewResult.verify(message.resetView);
17187
+ if (error)
17188
+ return "resetView." + error;
17189
+ }
17190
+ }
17191
+ if (message.refreshToken != null && message.hasOwnProperty("refreshToken")) {
17192
+ if (properties.result === 1)
17193
+ return "result: multiple values";
17194
+ properties.result = 1;
17195
+ {
17196
+ let error = $root.vertexvis.protobuf.stream.RefreshTokenResult.verify(message.refreshToken);
17197
+ if (error)
17198
+ return "refreshToken." + error;
17199
+ }
17200
+ }
16176
17201
  return null;
16177
17202
  };
16178
17203
 
@@ -16273,6 +17298,16 @@ const vertexvis = $root.vertexvis = (() => {
16273
17298
  throw TypeError(".vertexvis.protobuf.stream.StreamResponse.stencilBuffer: object expected");
16274
17299
  message.stencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferResult.fromObject(object.stencilBuffer);
16275
17300
  }
17301
+ if (object.resetView != null) {
17302
+ if (typeof object.resetView !== "object")
17303
+ throw TypeError(".vertexvis.protobuf.stream.StreamResponse.resetView: object expected");
17304
+ message.resetView = $root.vertexvis.protobuf.stream.ResetViewResult.fromObject(object.resetView);
17305
+ }
17306
+ if (object.refreshToken != null) {
17307
+ if (typeof object.refreshToken !== "object")
17308
+ throw TypeError(".vertexvis.protobuf.stream.StreamResponse.refreshToken: object expected");
17309
+ message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenResult.fromObject(object.refreshToken);
17310
+ }
16276
17311
  return message;
16277
17312
  };
16278
17313
 
@@ -16372,6 +17407,16 @@ const vertexvis = $root.vertexvis = (() => {
16372
17407
  if (options.oneofs)
16373
17408
  object.result = "stencilBuffer";
16374
17409
  }
17410
+ if (message.resetView != null && message.hasOwnProperty("resetView")) {
17411
+ object.resetView = $root.vertexvis.protobuf.stream.ResetViewResult.toObject(message.resetView, options);
17412
+ if (options.oneofs)
17413
+ object.result = "resetView";
17414
+ }
17415
+ if (message.refreshToken != null && message.hasOwnProperty("refreshToken")) {
17416
+ object.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenResult.toObject(message.refreshToken, options);
17417
+ if (options.oneofs)
17418
+ object.result = "refreshToken";
17419
+ }
16375
17420
  return object;
16376
17421
  };
16377
17422
 
@@ -16400,6 +17445,7 @@ const vertexvis = $root.vertexvis = (() => {
16400
17445
  * @property {vertexvis.protobuf.core.IUuid|null} [sessionId] StartStreamResult sessionId
16401
17446
  * @property {string|null} [jwt] StartStreamResult jwt
16402
17447
  * @property {vertexvis.protobuf.stream.IOrientation|null} [worldOrientation] StartStreamResult worldOrientation
17448
+ * @property {vertexvis.protobuf.stream.IToken|null} [token] StartStreamResult token
16403
17449
  */
16404
17450
 
16405
17451
  /**
@@ -16457,6 +17503,14 @@ const vertexvis = $root.vertexvis = (() => {
16457
17503
  */
16458
17504
  StartStreamResult.prototype.worldOrientation = null;
16459
17505
 
17506
+ /**
17507
+ * StartStreamResult token.
17508
+ * @member {vertexvis.protobuf.stream.IToken|null|undefined} token
17509
+ * @memberof vertexvis.protobuf.stream.StartStreamResult
17510
+ * @instance
17511
+ */
17512
+ StartStreamResult.prototype.token = null;
17513
+
16460
17514
  /**
16461
17515
  * Creates a new StartStreamResult instance using the specified properties.
16462
17516
  * @function create
@@ -16491,6 +17545,8 @@ const vertexvis = $root.vertexvis = (() => {
16491
17545
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.jwt);
16492
17546
  if (message.worldOrientation != null && Object.hasOwnProperty.call(message, "worldOrientation"))
16493
17547
  $root.vertexvis.protobuf.stream.Orientation.encode(message.worldOrientation, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
17548
+ if (message.token != null && Object.hasOwnProperty.call(message, "token"))
17549
+ $root.vertexvis.protobuf.stream.Token.encode(message.token, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
16494
17550
  return writer;
16495
17551
  };
16496
17552
 
@@ -16540,6 +17596,9 @@ const vertexvis = $root.vertexvis = (() => {
16540
17596
  case 5:
16541
17597
  message.worldOrientation = $root.vertexvis.protobuf.stream.Orientation.decode(reader, reader.uint32());
16542
17598
  break;
17599
+ case 6:
17600
+ message.token = $root.vertexvis.protobuf.stream.Token.decode(reader, reader.uint32());
17601
+ break;
16543
17602
  default:
16544
17603
  reader.skipType(tag & 7);
16545
17604
  break;
@@ -16598,6 +17657,11 @@ const vertexvis = $root.vertexvis = (() => {
16598
17657
  if (error)
16599
17658
  return "worldOrientation." + error;
16600
17659
  }
17660
+ if (message.token != null && message.hasOwnProperty("token")) {
17661
+ let error = $root.vertexvis.protobuf.stream.Token.verify(message.token);
17662
+ if (error)
17663
+ return "token." + error;
17664
+ }
16601
17665
  return null;
16602
17666
  };
16603
17667
 
@@ -16635,6 +17699,11 @@ const vertexvis = $root.vertexvis = (() => {
16635
17699
  throw TypeError(".vertexvis.protobuf.stream.StartStreamResult.worldOrientation: object expected");
16636
17700
  message.worldOrientation = $root.vertexvis.protobuf.stream.Orientation.fromObject(object.worldOrientation);
16637
17701
  }
17702
+ if (object.token != null) {
17703
+ if (typeof object.token !== "object")
17704
+ throw TypeError(".vertexvis.protobuf.stream.StartStreamResult.token: object expected");
17705
+ message.token = $root.vertexvis.protobuf.stream.Token.fromObject(object.token);
17706
+ }
16638
17707
  return message;
16639
17708
  };
16640
17709
 
@@ -16657,6 +17726,7 @@ const vertexvis = $root.vertexvis = (() => {
16657
17726
  object.sessionId = null;
16658
17727
  object.jwt = "";
16659
17728
  object.worldOrientation = null;
17729
+ object.token = null;
16660
17730
  }
16661
17731
  if (message.streamId != null && message.hasOwnProperty("streamId"))
16662
17732
  object.streamId = $root.vertexvis.protobuf.core.Uuid.toObject(message.streamId, options);
@@ -16668,6 +17738,8 @@ const vertexvis = $root.vertexvis = (() => {
16668
17738
  object.jwt = message.jwt;
16669
17739
  if (message.worldOrientation != null && message.hasOwnProperty("worldOrientation"))
16670
17740
  object.worldOrientation = $root.vertexvis.protobuf.stream.Orientation.toObject(message.worldOrientation, options);
17741
+ if (message.token != null && message.hasOwnProperty("token"))
17742
+ object.token = $root.vertexvis.protobuf.stream.Token.toObject(message.token, options);
16671
17743
  return object;
16672
17744
  };
16673
17745
 
@@ -17396,6 +18468,7 @@ const vertexvis = $root.vertexvis = (() => {
17396
18468
  * @memberof vertexvis.protobuf.stream
17397
18469
  * @interface IReconnectResult
17398
18470
  * @property {string|null} [jwt] ReconnectResult jwt
18471
+ * @property {vertexvis.protobuf.stream.IToken|null} [token] ReconnectResult token
17399
18472
  */
17400
18473
 
17401
18474
  /**
@@ -17421,6 +18494,14 @@ const vertexvis = $root.vertexvis = (() => {
17421
18494
  */
17422
18495
  ReconnectResult.prototype.jwt = "";
17423
18496
 
18497
+ /**
18498
+ * ReconnectResult token.
18499
+ * @member {vertexvis.protobuf.stream.IToken|null|undefined} token
18500
+ * @memberof vertexvis.protobuf.stream.ReconnectResult
18501
+ * @instance
18502
+ */
18503
+ ReconnectResult.prototype.token = null;
18504
+
17424
18505
  /**
17425
18506
  * Creates a new ReconnectResult instance using the specified properties.
17426
18507
  * @function create
@@ -17447,6 +18528,8 @@ const vertexvis = $root.vertexvis = (() => {
17447
18528
  writer = $Writer.create();
17448
18529
  if (message.jwt != null && Object.hasOwnProperty.call(message, "jwt"))
17449
18530
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.jwt);
18531
+ if (message.token != null && Object.hasOwnProperty.call(message, "token"))
18532
+ $root.vertexvis.protobuf.stream.Token.encode(message.token, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
17450
18533
  return writer;
17451
18534
  };
17452
18535
 
@@ -17484,6 +18567,9 @@ const vertexvis = $root.vertexvis = (() => {
17484
18567
  case 1:
17485
18568
  message.jwt = reader.string();
17486
18569
  break;
18570
+ case 2:
18571
+ message.token = $root.vertexvis.protobuf.stream.Token.decode(reader, reader.uint32());
18572
+ break;
17487
18573
  default:
17488
18574
  reader.skipType(tag & 7);
17489
18575
  break;
@@ -17522,6 +18608,11 @@ const vertexvis = $root.vertexvis = (() => {
17522
18608
  if (message.jwt != null && message.hasOwnProperty("jwt"))
17523
18609
  if (!$util.isString(message.jwt))
17524
18610
  return "jwt: string expected";
18611
+ if (message.token != null && message.hasOwnProperty("token")) {
18612
+ let error = $root.vertexvis.protobuf.stream.Token.verify(message.token);
18613
+ if (error)
18614
+ return "token." + error;
18615
+ }
17525
18616
  return null;
17526
18617
  };
17527
18618
 
@@ -17539,6 +18630,11 @@ const vertexvis = $root.vertexvis = (() => {
17539
18630
  let message = new $root.vertexvis.protobuf.stream.ReconnectResult();
17540
18631
  if (object.jwt != null)
17541
18632
  message.jwt = String(object.jwt);
18633
+ if (object.token != null) {
18634
+ if (typeof object.token !== "object")
18635
+ throw TypeError(".vertexvis.protobuf.stream.ReconnectResult.token: object expected");
18636
+ message.token = $root.vertexvis.protobuf.stream.Token.fromObject(object.token);
18637
+ }
17542
18638
  return message;
17543
18639
  };
17544
18640
 
@@ -17555,10 +18651,14 @@ const vertexvis = $root.vertexvis = (() => {
17555
18651
  if (!options)
17556
18652
  options = {};
17557
18653
  let object = {};
17558
- if (options.defaults)
18654
+ if (options.defaults) {
17559
18655
  object.jwt = "";
18656
+ object.token = null;
18657
+ }
17560
18658
  if (message.jwt != null && message.hasOwnProperty("jwt"))
17561
18659
  object.jwt = message.jwt;
18660
+ if (message.token != null && message.hasOwnProperty("token"))
18661
+ object.token = $root.vertexvis.protobuf.stream.Token.toObject(message.token, options);
17562
18662
  return object;
17563
18663
  };
17564
18664
 
@@ -18840,6 +19940,166 @@ const vertexvis = $root.vertexvis = (() => {
18840
19940
  return LoadSceneViewStateResult;
18841
19941
  })();
18842
19942
 
19943
+ stream.ResetViewResult = (function() {
19944
+
19945
+ /**
19946
+ * Properties of a ResetViewResult.
19947
+ * @memberof vertexvis.protobuf.stream
19948
+ * @interface IResetViewResult
19949
+ */
19950
+
19951
+ /**
19952
+ * Constructs a new ResetViewResult.
19953
+ * @memberof vertexvis.protobuf.stream
19954
+ * @classdesc Represents a ResetViewResult.
19955
+ * @implements IResetViewResult
19956
+ * @constructor
19957
+ * @param {vertexvis.protobuf.stream.IResetViewResult=} [properties] Properties to set
19958
+ */
19959
+ function ResetViewResult(properties) {
19960
+ if (properties)
19961
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19962
+ if (properties[keys[i]] != null)
19963
+ this[keys[i]] = properties[keys[i]];
19964
+ }
19965
+
19966
+ /**
19967
+ * Creates a new ResetViewResult instance using the specified properties.
19968
+ * @function create
19969
+ * @memberof vertexvis.protobuf.stream.ResetViewResult
19970
+ * @static
19971
+ * @param {vertexvis.protobuf.stream.IResetViewResult=} [properties] Properties to set
19972
+ * @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult instance
19973
+ */
19974
+ ResetViewResult.create = function create(properties) {
19975
+ return new ResetViewResult(properties);
19976
+ };
19977
+
19978
+ /**
19979
+ * Encodes the specified ResetViewResult message. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewResult.verify|verify} messages.
19980
+ * @function encode
19981
+ * @memberof vertexvis.protobuf.stream.ResetViewResult
19982
+ * @static
19983
+ * @param {vertexvis.protobuf.stream.IResetViewResult} message ResetViewResult message or plain object to encode
19984
+ * @param {$protobuf.Writer} [writer] Writer to encode to
19985
+ * @returns {$protobuf.Writer} Writer
19986
+ */
19987
+ ResetViewResult.encode = function encode(message, writer) {
19988
+ if (!writer)
19989
+ writer = $Writer.create();
19990
+ return writer;
19991
+ };
19992
+
19993
+ /**
19994
+ * Encodes the specified ResetViewResult message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewResult.verify|verify} messages.
19995
+ * @function encodeDelimited
19996
+ * @memberof vertexvis.protobuf.stream.ResetViewResult
19997
+ * @static
19998
+ * @param {vertexvis.protobuf.stream.IResetViewResult} message ResetViewResult message or plain object to encode
19999
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20000
+ * @returns {$protobuf.Writer} Writer
20001
+ */
20002
+ ResetViewResult.encodeDelimited = function encodeDelimited(message, writer) {
20003
+ return this.encode(message, writer).ldelim();
20004
+ };
20005
+
20006
+ /**
20007
+ * Decodes a ResetViewResult message from the specified reader or buffer.
20008
+ * @function decode
20009
+ * @memberof vertexvis.protobuf.stream.ResetViewResult
20010
+ * @static
20011
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20012
+ * @param {number} [length] Message length if known beforehand
20013
+ * @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult
20014
+ * @throws {Error} If the payload is not a reader or valid buffer
20015
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20016
+ */
20017
+ ResetViewResult.decode = function decode(reader, length) {
20018
+ if (!(reader instanceof $Reader))
20019
+ reader = $Reader.create(reader);
20020
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ResetViewResult();
20021
+ while (reader.pos < end) {
20022
+ let tag = reader.uint32();
20023
+ switch (tag >>> 3) {
20024
+ default:
20025
+ reader.skipType(tag & 7);
20026
+ break;
20027
+ }
20028
+ }
20029
+ return message;
20030
+ };
20031
+
20032
+ /**
20033
+ * Decodes a ResetViewResult message from the specified reader or buffer, length delimited.
20034
+ * @function decodeDelimited
20035
+ * @memberof vertexvis.protobuf.stream.ResetViewResult
20036
+ * @static
20037
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20038
+ * @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult
20039
+ * @throws {Error} If the payload is not a reader or valid buffer
20040
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20041
+ */
20042
+ ResetViewResult.decodeDelimited = function decodeDelimited(reader) {
20043
+ if (!(reader instanceof $Reader))
20044
+ reader = new $Reader(reader);
20045
+ return this.decode(reader, reader.uint32());
20046
+ };
20047
+
20048
+ /**
20049
+ * Verifies a ResetViewResult message.
20050
+ * @function verify
20051
+ * @memberof vertexvis.protobuf.stream.ResetViewResult
20052
+ * @static
20053
+ * @param {Object.<string,*>} message Plain object to verify
20054
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
20055
+ */
20056
+ ResetViewResult.verify = function verify(message) {
20057
+ if (typeof message !== "object" || message === null)
20058
+ return "object expected";
20059
+ return null;
20060
+ };
20061
+
20062
+ /**
20063
+ * Creates a ResetViewResult message from a plain object. Also converts values to their respective internal types.
20064
+ * @function fromObject
20065
+ * @memberof vertexvis.protobuf.stream.ResetViewResult
20066
+ * @static
20067
+ * @param {Object.<string,*>} object Plain object
20068
+ * @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult
20069
+ */
20070
+ ResetViewResult.fromObject = function fromObject(object) {
20071
+ if (object instanceof $root.vertexvis.protobuf.stream.ResetViewResult)
20072
+ return object;
20073
+ return new $root.vertexvis.protobuf.stream.ResetViewResult();
20074
+ };
20075
+
20076
+ /**
20077
+ * Creates a plain object from a ResetViewResult message. Also converts values to other types if specified.
20078
+ * @function toObject
20079
+ * @memberof vertexvis.protobuf.stream.ResetViewResult
20080
+ * @static
20081
+ * @param {vertexvis.protobuf.stream.ResetViewResult} message ResetViewResult
20082
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
20083
+ * @returns {Object.<string,*>} Plain object
20084
+ */
20085
+ ResetViewResult.toObject = function toObject() {
20086
+ return {};
20087
+ };
20088
+
20089
+ /**
20090
+ * Converts this ResetViewResult to JSON.
20091
+ * @function toJSON
20092
+ * @memberof vertexvis.protobuf.stream.ResetViewResult
20093
+ * @instance
20094
+ * @returns {Object.<string,*>} JSON object
20095
+ */
20096
+ ResetViewResult.prototype.toJSON = function toJSON() {
20097
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
20098
+ };
20099
+
20100
+ return ResetViewResult;
20101
+ })();
20102
+
18843
20103
  stream.GetStencilBufferResult = (function() {
18844
20104
 
18845
20105
  /**
@@ -18848,6 +20108,7 @@ const vertexvis = $root.vertexvis = (() => {
18848
20108
  * @interface IGetStencilBufferResult
18849
20109
  * @property {Uint8Array|null} [stencilBuffer] GetStencilBufferResult stencilBuffer
18850
20110
  * @property {vertexvis.protobuf.stream.IImageAttributes|null} [imageAttributes] GetStencilBufferResult imageAttributes
20111
+ * @property {google.protobuf.IBytesValue|null} [depthBuffer] GetStencilBufferResult depthBuffer
18851
20112
  */
18852
20113
 
18853
20114
  /**
@@ -18881,6 +20142,14 @@ const vertexvis = $root.vertexvis = (() => {
18881
20142
  */
18882
20143
  GetStencilBufferResult.prototype.imageAttributes = null;
18883
20144
 
20145
+ /**
20146
+ * GetStencilBufferResult depthBuffer.
20147
+ * @member {google.protobuf.IBytesValue|null|undefined} depthBuffer
20148
+ * @memberof vertexvis.protobuf.stream.GetStencilBufferResult
20149
+ * @instance
20150
+ */
20151
+ GetStencilBufferResult.prototype.depthBuffer = null;
20152
+
18884
20153
  /**
18885
20154
  * Creates a new GetStencilBufferResult instance using the specified properties.
18886
20155
  * @function create
@@ -18909,6 +20178,8 @@ const vertexvis = $root.vertexvis = (() => {
18909
20178
  writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.stencilBuffer);
18910
20179
  if (message.imageAttributes != null && Object.hasOwnProperty.call(message, "imageAttributes"))
18911
20180
  $root.vertexvis.protobuf.stream.ImageAttributes.encode(message.imageAttributes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
20181
+ if (message.depthBuffer != null && Object.hasOwnProperty.call(message, "depthBuffer"))
20182
+ $root.google.protobuf.BytesValue.encode(message.depthBuffer, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
18912
20183
  return writer;
18913
20184
  };
18914
20185
 
@@ -18949,6 +20220,9 @@ const vertexvis = $root.vertexvis = (() => {
18949
20220
  case 2:
18950
20221
  message.imageAttributes = $root.vertexvis.protobuf.stream.ImageAttributes.decode(reader, reader.uint32());
18951
20222
  break;
20223
+ case 3:
20224
+ message.depthBuffer = $root.google.protobuf.BytesValue.decode(reader, reader.uint32());
20225
+ break;
18952
20226
  default:
18953
20227
  reader.skipType(tag & 7);
18954
20228
  break;
@@ -18992,6 +20266,11 @@ const vertexvis = $root.vertexvis = (() => {
18992
20266
  if (error)
18993
20267
  return "imageAttributes." + error;
18994
20268
  }
20269
+ if (message.depthBuffer != null && message.hasOwnProperty("depthBuffer")) {
20270
+ let error = $root.google.protobuf.BytesValue.verify(message.depthBuffer);
20271
+ if (error)
20272
+ return "depthBuffer." + error;
20273
+ }
18995
20274
  return null;
18996
20275
  };
18997
20276
 
@@ -19017,6 +20296,11 @@ const vertexvis = $root.vertexvis = (() => {
19017
20296
  throw TypeError(".vertexvis.protobuf.stream.GetStencilBufferResult.imageAttributes: object expected");
19018
20297
  message.imageAttributes = $root.vertexvis.protobuf.stream.ImageAttributes.fromObject(object.imageAttributes);
19019
20298
  }
20299
+ if (object.depthBuffer != null) {
20300
+ if (typeof object.depthBuffer !== "object")
20301
+ throw TypeError(".vertexvis.protobuf.stream.GetStencilBufferResult.depthBuffer: object expected");
20302
+ message.depthBuffer = $root.google.protobuf.BytesValue.fromObject(object.depthBuffer);
20303
+ }
19020
20304
  return message;
19021
20305
  };
19022
20306
 
@@ -19042,11 +20326,14 @@ const vertexvis = $root.vertexvis = (() => {
19042
20326
  object.stencilBuffer = $util.newBuffer(object.stencilBuffer);
19043
20327
  }
19044
20328
  object.imageAttributes = null;
20329
+ object.depthBuffer = null;
19045
20330
  }
19046
20331
  if (message.stencilBuffer != null && message.hasOwnProperty("stencilBuffer"))
19047
20332
  object.stencilBuffer = options.bytes === String ? $util.base64.encode(message.stencilBuffer, 0, message.stencilBuffer.length) : options.bytes === Array ? Array.prototype.slice.call(message.stencilBuffer) : message.stencilBuffer;
19048
20333
  if (message.imageAttributes != null && message.hasOwnProperty("imageAttributes"))
19049
20334
  object.imageAttributes = $root.vertexvis.protobuf.stream.ImageAttributes.toObject(message.imageAttributes, options);
20335
+ if (message.depthBuffer != null && message.hasOwnProperty("depthBuffer"))
20336
+ object.depthBuffer = $root.google.protobuf.BytesValue.toObject(message.depthBuffer, options);
19050
20337
  return object;
19051
20338
  };
19052
20339
 
@@ -19064,6 +20351,198 @@ const vertexvis = $root.vertexvis = (() => {
19064
20351
  return GetStencilBufferResult;
19065
20352
  })();
19066
20353
 
20354
+ stream.RefreshTokenResult = (function() {
20355
+
20356
+ /**
20357
+ * Properties of a RefreshTokenResult.
20358
+ * @memberof vertexvis.protobuf.stream
20359
+ * @interface IRefreshTokenResult
20360
+ * @property {vertexvis.protobuf.stream.IToken|null} [token] RefreshTokenResult token
20361
+ */
20362
+
20363
+ /**
20364
+ * Constructs a new RefreshTokenResult.
20365
+ * @memberof vertexvis.protobuf.stream
20366
+ * @classdesc Represents a RefreshTokenResult.
20367
+ * @implements IRefreshTokenResult
20368
+ * @constructor
20369
+ * @param {vertexvis.protobuf.stream.IRefreshTokenResult=} [properties] Properties to set
20370
+ */
20371
+ function RefreshTokenResult(properties) {
20372
+ if (properties)
20373
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20374
+ if (properties[keys[i]] != null)
20375
+ this[keys[i]] = properties[keys[i]];
20376
+ }
20377
+
20378
+ /**
20379
+ * RefreshTokenResult token.
20380
+ * @member {vertexvis.protobuf.stream.IToken|null|undefined} token
20381
+ * @memberof vertexvis.protobuf.stream.RefreshTokenResult
20382
+ * @instance
20383
+ */
20384
+ RefreshTokenResult.prototype.token = null;
20385
+
20386
+ /**
20387
+ * Creates a new RefreshTokenResult instance using the specified properties.
20388
+ * @function create
20389
+ * @memberof vertexvis.protobuf.stream.RefreshTokenResult
20390
+ * @static
20391
+ * @param {vertexvis.protobuf.stream.IRefreshTokenResult=} [properties] Properties to set
20392
+ * @returns {vertexvis.protobuf.stream.RefreshTokenResult} RefreshTokenResult instance
20393
+ */
20394
+ RefreshTokenResult.create = function create(properties) {
20395
+ return new RefreshTokenResult(properties);
20396
+ };
20397
+
20398
+ /**
20399
+ * Encodes the specified RefreshTokenResult message. Does not implicitly {@link vertexvis.protobuf.stream.RefreshTokenResult.verify|verify} messages.
20400
+ * @function encode
20401
+ * @memberof vertexvis.protobuf.stream.RefreshTokenResult
20402
+ * @static
20403
+ * @param {vertexvis.protobuf.stream.IRefreshTokenResult} message RefreshTokenResult message or plain object to encode
20404
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20405
+ * @returns {$protobuf.Writer} Writer
20406
+ */
20407
+ RefreshTokenResult.encode = function encode(message, writer) {
20408
+ if (!writer)
20409
+ writer = $Writer.create();
20410
+ if (message.token != null && Object.hasOwnProperty.call(message, "token"))
20411
+ $root.vertexvis.protobuf.stream.Token.encode(message.token, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
20412
+ return writer;
20413
+ };
20414
+
20415
+ /**
20416
+ * Encodes the specified RefreshTokenResult message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.RefreshTokenResult.verify|verify} messages.
20417
+ * @function encodeDelimited
20418
+ * @memberof vertexvis.protobuf.stream.RefreshTokenResult
20419
+ * @static
20420
+ * @param {vertexvis.protobuf.stream.IRefreshTokenResult} message RefreshTokenResult message or plain object to encode
20421
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20422
+ * @returns {$protobuf.Writer} Writer
20423
+ */
20424
+ RefreshTokenResult.encodeDelimited = function encodeDelimited(message, writer) {
20425
+ return this.encode(message, writer).ldelim();
20426
+ };
20427
+
20428
+ /**
20429
+ * Decodes a RefreshTokenResult message from the specified reader or buffer.
20430
+ * @function decode
20431
+ * @memberof vertexvis.protobuf.stream.RefreshTokenResult
20432
+ * @static
20433
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20434
+ * @param {number} [length] Message length if known beforehand
20435
+ * @returns {vertexvis.protobuf.stream.RefreshTokenResult} RefreshTokenResult
20436
+ * @throws {Error} If the payload is not a reader or valid buffer
20437
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20438
+ */
20439
+ RefreshTokenResult.decode = function decode(reader, length) {
20440
+ if (!(reader instanceof $Reader))
20441
+ reader = $Reader.create(reader);
20442
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.RefreshTokenResult();
20443
+ while (reader.pos < end) {
20444
+ let tag = reader.uint32();
20445
+ switch (tag >>> 3) {
20446
+ case 1:
20447
+ message.token = $root.vertexvis.protobuf.stream.Token.decode(reader, reader.uint32());
20448
+ break;
20449
+ default:
20450
+ reader.skipType(tag & 7);
20451
+ break;
20452
+ }
20453
+ }
20454
+ return message;
20455
+ };
20456
+
20457
+ /**
20458
+ * Decodes a RefreshTokenResult message from the specified reader or buffer, length delimited.
20459
+ * @function decodeDelimited
20460
+ * @memberof vertexvis.protobuf.stream.RefreshTokenResult
20461
+ * @static
20462
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20463
+ * @returns {vertexvis.protobuf.stream.RefreshTokenResult} RefreshTokenResult
20464
+ * @throws {Error} If the payload is not a reader or valid buffer
20465
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20466
+ */
20467
+ RefreshTokenResult.decodeDelimited = function decodeDelimited(reader) {
20468
+ if (!(reader instanceof $Reader))
20469
+ reader = new $Reader(reader);
20470
+ return this.decode(reader, reader.uint32());
20471
+ };
20472
+
20473
+ /**
20474
+ * Verifies a RefreshTokenResult message.
20475
+ * @function verify
20476
+ * @memberof vertexvis.protobuf.stream.RefreshTokenResult
20477
+ * @static
20478
+ * @param {Object.<string,*>} message Plain object to verify
20479
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
20480
+ */
20481
+ RefreshTokenResult.verify = function verify(message) {
20482
+ if (typeof message !== "object" || message === null)
20483
+ return "object expected";
20484
+ if (message.token != null && message.hasOwnProperty("token")) {
20485
+ let error = $root.vertexvis.protobuf.stream.Token.verify(message.token);
20486
+ if (error)
20487
+ return "token." + error;
20488
+ }
20489
+ return null;
20490
+ };
20491
+
20492
+ /**
20493
+ * Creates a RefreshTokenResult message from a plain object. Also converts values to their respective internal types.
20494
+ * @function fromObject
20495
+ * @memberof vertexvis.protobuf.stream.RefreshTokenResult
20496
+ * @static
20497
+ * @param {Object.<string,*>} object Plain object
20498
+ * @returns {vertexvis.protobuf.stream.RefreshTokenResult} RefreshTokenResult
20499
+ */
20500
+ RefreshTokenResult.fromObject = function fromObject(object) {
20501
+ if (object instanceof $root.vertexvis.protobuf.stream.RefreshTokenResult)
20502
+ return object;
20503
+ let message = new $root.vertexvis.protobuf.stream.RefreshTokenResult();
20504
+ if (object.token != null) {
20505
+ if (typeof object.token !== "object")
20506
+ throw TypeError(".vertexvis.protobuf.stream.RefreshTokenResult.token: object expected");
20507
+ message.token = $root.vertexvis.protobuf.stream.Token.fromObject(object.token);
20508
+ }
20509
+ return message;
20510
+ };
20511
+
20512
+ /**
20513
+ * Creates a plain object from a RefreshTokenResult message. Also converts values to other types if specified.
20514
+ * @function toObject
20515
+ * @memberof vertexvis.protobuf.stream.RefreshTokenResult
20516
+ * @static
20517
+ * @param {vertexvis.protobuf.stream.RefreshTokenResult} message RefreshTokenResult
20518
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
20519
+ * @returns {Object.<string,*>} Plain object
20520
+ */
20521
+ RefreshTokenResult.toObject = function toObject(message, options) {
20522
+ if (!options)
20523
+ options = {};
20524
+ let object = {};
20525
+ if (options.defaults)
20526
+ object.token = null;
20527
+ if (message.token != null && message.hasOwnProperty("token"))
20528
+ object.token = $root.vertexvis.protobuf.stream.Token.toObject(message.token, options);
20529
+ return object;
20530
+ };
20531
+
20532
+ /**
20533
+ * Converts this RefreshTokenResult to JSON.
20534
+ * @function toJSON
20535
+ * @memberof vertexvis.protobuf.stream.RefreshTokenResult
20536
+ * @instance
20537
+ * @returns {Object.<string,*>} JSON object
20538
+ */
20539
+ RefreshTokenResult.prototype.toJSON = function toJSON() {
20540
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
20541
+ };
20542
+
20543
+ return RefreshTokenResult;
20544
+ })();
20545
+
19067
20546
  stream.StreamEvent = (function() {
19068
20547
 
19069
20548
  /**
@@ -30975,6 +32454,23 @@ function decode(bufferOrBytes) {
30975
32454
  });
30976
32455
  }
30977
32456
 
32457
+ var StreamRequestError = /** @class */ (function (_super) {
32458
+ __extends(StreamRequestError, _super);
32459
+ function StreamRequestError(requestId, requestPayload, summary, details) {
32460
+ var _this = _super.call(this, summary != null && summary.length > 0
32461
+ ? "Stream request failed (" + summary + ")"
32462
+ : 'Stream request failed') || this;
32463
+ _this.requestId = requestId;
32464
+ _this.requestPayload = requestPayload;
32465
+ _this.summary = summary;
32466
+ _this.details = details;
32467
+ // Allows for `instanceof` checks. See https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
32468
+ Object.setPrototypeOf(_this, StreamRequestError.prototype);
32469
+ return _this;
32470
+ }
32471
+ return StreamRequestError;
32472
+ }(Error));
32473
+
30978
32474
  var WebSocketClientImpl = /** @class */ (function () {
30979
32475
  function WebSocketClientImpl() {
30980
32476
  var _this = this;
@@ -32422,21 +33918,6 @@ function parseEpochMillis(millis) {
32422
33918
  return { seconds: seconds * (millis < 0 ? -1 : 1), nanos: nanos };
32423
33919
  }
32424
33920
 
32425
- var StreamRequestError = /** @class */ (function (_super) {
32426
- __extends(StreamRequestError, _super);
32427
- function StreamRequestError(requestId, requestPayload, summary, details) {
32428
- var _this = _super.call(this, summary != null && summary.length > 0
32429
- ? "Stream request failed (" + summary + ")"
32430
- : 'Stream request failed') || this;
32431
- _this.requestId = requestId;
32432
- _this.requestPayload = requestPayload;
32433
- _this.summary = summary;
32434
- _this.details = details;
32435
- return _this;
32436
- }
32437
- return StreamRequestError;
32438
- }(Error));
32439
-
32440
33921
  function defineParams() {
32441
33922
  var definitions = [];
32442
33923
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -32508,14 +33989,17 @@ function defineSettings(getter, defaults, builder) {
32508
33989
  * The API client to interact with Vertex's streaming API.
32509
33990
  */
32510
33991
  var StreamApi = /** @class */ (function () {
32511
- function StreamApi(websocket, loggingEnabled) {
33992
+ function StreamApi(websocket, opts) {
32512
33993
  if (websocket === void 0) { websocket = new WebSocketClientImpl(); }
32513
- if (loggingEnabled === void 0) { loggingEnabled = false; }
33994
+ if (opts === void 0) { opts = {}; }
33995
+ var _a;
32514
33996
  this.websocket = websocket;
32515
- this.loggingEnabled = loggingEnabled;
32516
33997
  this.onResponseDispatcher = new EventDispatcher();
32517
33998
  this.onRequestDispatcher = new EventDispatcher();
32518
33999
  this.onEventDispatcher = new EventDispatcher();
34000
+ this.opts = {
34001
+ loggingEnabled: (_a = opts.loggingEnabled) !== null && _a !== void 0 ? _a : false,
34002
+ };
32519
34003
  }
32520
34004
  /**
32521
34005
  * Initiates a websocket connection to Vertex's streaming API. Returns a
@@ -32572,6 +34056,14 @@ var StreamApi = /** @class */ (function () {
32572
34056
  StreamApi.prototype.onEvent = function (handler) {
32573
34057
  return this.onEventDispatcher.on(handler);
32574
34058
  };
34059
+ /**
34060
+ * Adds a callback that is invoked when the websocket connection is closed.
34061
+ *
34062
+ * @param handler A handler function.
34063
+ */
34064
+ StreamApi.prototype.onClose = function (handler) {
34065
+ return this.websocket.onClose(handler);
34066
+ };
32575
34067
  /**
32576
34068
  * Sends a request to initiate a streaming session.
32577
34069
  *
@@ -32753,6 +34245,22 @@ var StreamApi = /** @class */ (function () {
32753
34245
  if (withResponse === void 0) { withResponse = true; }
32754
34246
  return this.sendRequest({ createSceneAlteration: payload }, withResponse);
32755
34247
  };
34248
+ /**
34249
+ * Sends a request to reset all overrides for a given scene and optionally to
34250
+ * reset the camera to that of the base scene.
34251
+ *
34252
+ * Use `withResponse` to indicate if the server should reply with a response.
34253
+ * If `false`, the returned promise will complete immediately. Otherwise,
34254
+ * it'll complete when a response is received.
34255
+ *
34256
+ * @param payload The payload of the request.
34257
+ * @param withResponse Indicates if the server should reply with a response.
34258
+ * Defaults to `true`.
34259
+ */
34260
+ StreamApi.prototype.resetSceneView = function (payload, withResponse) {
34261
+ if (withResponse === void 0) { withResponse = true; }
34262
+ return this.sendRequest({ resetView: payload }, withResponse);
34263
+ };
32756
34264
  /**
32757
34265
  * Sends a request to tell the rendering pipeline that an interaction has
32758
34266
  * ended.
@@ -32818,8 +34326,20 @@ var StreamApi = /** @class */ (function () {
32818
34326
  /**
32819
34327
  * Sends a request to get a stencil buffer image for the current scene view.
32820
34328
  */
32821
- StreamApi.prototype.getStencilBuffer = function (withResponse) {
32822
- return this.sendRequest({ getStencilBuffer: {} }, true);
34329
+ StreamApi.prototype.getStencilBuffer = function (payload, withResponse) {
34330
+ if (withResponse === void 0) { withResponse = true; }
34331
+ return this.sendRequest({ getStencilBuffer: payload }, withResponse);
34332
+ };
34333
+ /**
34334
+ * Sends a request to retrieve a new token. This token can be used to
34335
+ * authenticate with other Vertex services.
34336
+ *
34337
+ * @param withResponse Indicates if the server should reply with a response.
34338
+ * @returns A promise that completes with the refreshed token.
34339
+ */
34340
+ StreamApi.prototype.refreshToken = function (withResponse) {
34341
+ if (withResponse === void 0) { withResponse = true; }
34342
+ return this.sendRequest({ refreshToken: {} }, withResponse);
32823
34343
  };
32824
34344
  /**
32825
34345
  * Acknowledges a successful request by sending a reply back to the server
@@ -32872,7 +34392,7 @@ var StreamApi = /** @class */ (function () {
32872
34392
  for (var _i = 1; _i < arguments.length; _i++) {
32873
34393
  other[_i - 1] = arguments[_i];
32874
34394
  }
32875
- if (this.loggingEnabled) {
34395
+ if (this.opts.loggingEnabled) {
32876
34396
  console.debug.apply(console, __spreadArray([msg], other, false));
32877
34397
  }
32878
34398
  };
@@ -32913,6 +34433,23 @@ var StreamApi = /** @class */ (function () {
32913
34433
  return StreamApi;
32914
34434
  }());
32915
34435
 
34436
+ function event(req, meta) {
34437
+ return __assign({ sentAtTime: currentDateAsProtoTimestamp(), event: __assign({}, req) }, meta);
34438
+ }
34439
+ function animationCompleted(id) {
34440
+ var def = {
34441
+ animationId: { hex: id },
34442
+ };
34443
+ return event({
34444
+ animationCompleted: __assign({}, def),
34445
+ });
34446
+ }
34447
+
34448
+ var events = /*#__PURE__*/Object.freeze({
34449
+ __proto__: null,
34450
+ animationCompleted: animationCompleted
34451
+ });
34452
+
32916
34453
  function request(req, meta) {
32917
34454
  return __assign(__assign({ sentAtTime: currentDateAsProtoTimestamp() }, meta), { request: __assign({ requestId: req.requestId != null ? { value: req.requestId } : undefined }, req.payload) });
32918
34455
  }
@@ -32959,7 +34496,7 @@ function gracefulReconnect(req, meta) {
32959
34496
  };
32960
34497
  return request({
32961
34498
  requestId: req.requestId,
32962
- payload: { reconnect: Objects.defaults(req.payload, def) },
34499
+ payload: { gracefulReconnection: Objects.defaults(req.payload, def) },
32963
34500
  }, meta);
32964
34501
  }
32965
34502
 
@@ -32969,44 +34506,102 @@ var requests = /*#__PURE__*/Object.freeze({
32969
34506
  gracefulReconnect: gracefulReconnect
32970
34507
  });
32971
34508
 
32972
- function event(req, meta) {
32973
- return __assign({ sentAtTime: currentDateAsProtoTimestamp(), event: __assign({}, req) }, meta);
34509
+ function response(res, meta) {
34510
+ return __assign(__assign({ sentAtTime: currentDateAsProtoTimestamp() }, meta), { response: __assign({ requestId: res.requestId != null ? { value: res.requestId } : undefined }, res.result) });
32974
34511
  }
32975
- function animationCompleted(id) {
34512
+ function startStream(res, meta) {
34513
+ if (res === void 0) { res = {}; }
32976
34514
  var def = {
32977
- animationId: { hex: id },
34515
+ streamId: { hex: UUID.create() },
34516
+ sceneViewId: { hex: UUID.create() },
34517
+ sessionId: { hex: UUID.create() },
34518
+ jwt: 'jwt',
34519
+ token: { token: 'token', expiresIn: new Date().getTime() + 10000 },
34520
+ worldOrientation: {
34521
+ front: { x: 0, y: 0, z: 1 },
34522
+ up: { x: 0, y: 1, z: 0 },
34523
+ },
32978
34524
  };
32979
- return event({
32980
- animationCompleted: __assign({}, def),
34525
+ return response({
34526
+ requestId: res.requestId,
34527
+ result: { startStream: Objects.defaults(res.result, def) },
34528
+ }, meta);
34529
+ }
34530
+ function syncTime(res, meta) {
34531
+ if (res === void 0) { res = {}; }
34532
+ var def = { replyTime: { seconds: 1, nanos: 0 } };
34533
+ return response({
34534
+ requestId: res.requestId,
34535
+ result: { syncTime: Objects.defaults(res.result, def) },
32981
34536
  });
34537
+ }
34538
+ function reconnect(res, meta) {
34539
+ if (res === void 0) { res = {}; }
34540
+ var def = {
34541
+ jwt: 'jwt',
34542
+ token: { token: 'token', expiresIn: new Date().getTime() + 10000 },
34543
+ };
34544
+ return response({
34545
+ requestId: res.requestId,
34546
+ result: { reconnect: Objects.defaults(res.result, def) },
34547
+ }, meta);
34548
+ }
34549
+ function loadSceneViewState(res, meta) {
34550
+ if (res === void 0) { res = {}; }
34551
+ var def = {};
34552
+ return response({
34553
+ requestId: res.requestId,
34554
+ result: { loadSceneViewState: Objects.defaults(res.result, def) },
34555
+ }, meta);
34556
+ }
34557
+ function refreshToken(res, meta) {
34558
+ if (res === void 0) { res = {}; }
34559
+ var def = {
34560
+ token: { token: 'token', expiresIn: new Date().getTime() + 10000 },
34561
+ };
34562
+ return response({
34563
+ requestId: res.requestId,
34564
+ result: { refreshToken: Objects.defaults(res.result, def) },
34565
+ }, meta);
32982
34566
  }
32983
34567
 
32984
- var events = /*#__PURE__*/Object.freeze({
34568
+ var responses = /*#__PURE__*/Object.freeze({
32985
34569
  __proto__: null,
32986
- animationCompleted: animationCompleted
34570
+ startStream: startStream,
34571
+ syncTime: syncTime,
34572
+ reconnect: reconnect,
34573
+ loadSceneViewState: loadSceneViewState,
34574
+ refreshToken: refreshToken
32987
34575
  });
32988
34576
 
32989
34577
  var index = /*#__PURE__*/Object.freeze({
32990
34578
  __proto__: null,
34579
+ Events: events,
32991
34580
  Requests: requests,
32992
- Events: events
34581
+ Responses: responses
32993
34582
  });
32994
34583
 
32995
34584
  var WebSocketClientMock = /** @class */ (function () {
32996
34585
  function WebSocketClientMock() {
32997
- this.handlers = new Set();
34586
+ this.closeHandlers = new Set();
34587
+ this.msgHandlers = new Set();
32998
34588
  this.sentMessages = new Array();
32999
34589
  }
33000
34590
  WebSocketClientMock.prototype.close = function () {
33001
- // NOOP
34591
+ this.closeHandlers.forEach(function (handler) { return handler(new CloseEvent('close')); });
33002
34592
  };
33003
34593
  WebSocketClientMock.prototype.connect = function (descriptor) {
33004
34594
  return Promise.resolve();
33005
34595
  };
34596
+ WebSocketClientMock.prototype.onClose = function (handler) {
34597
+ var _this = this;
34598
+ this.closeHandlers.add(handler);
34599
+ return { dispose: function () { return _this.closeHandlers.delete(handler); } };
34600
+ };
33006
34601
  WebSocketClientMock.prototype.onMessage = function (handler) {
33007
34602
  var _this = this;
33008
- this.handlers.add(handler);
33009
- return { dispose: function () { return _this.handlers.delete(handler); } };
34603
+ this.msgHandlers.add(handler);
34604
+ return { dispose: function () { return _this.msgHandlers.delete(handler); } };
33010
34605
  };
33011
34606
  WebSocketClientMock.prototype.send = function (data) {
33012
34607
  this.sentMessages.push(data);
@@ -33021,7 +34616,7 @@ var WebSocketClientMock = /** @class */ (function () {
33021
34616
  * @param data The websocket message data.
33022
34617
  */
33023
34618
  WebSocketClientMock.prototype.receiveMessage = function (data) {
33024
- this.handlers.forEach(function (handler) {
34619
+ this.msgHandlers.forEach(function (handler) {
33025
34620
  return handler(new MessageEvent('message', { data: data }));
33026
34621
  });
33027
34622
  };
@@ -33031,7 +34626,8 @@ var WebSocketClientMock = /** @class */ (function () {
33031
34626
  */
33032
34627
  WebSocketClientMock.prototype.reset = function () {
33033
34628
  this.sentMessages = [];
33034
- this.handlers.clear();
34629
+ this.msgHandlers.clear();
34630
+ this.closeHandlers.clear();
33035
34631
  };
33036
34632
  /**
33037
34633
  * Returns `true` if there are remaining sent messages..
@@ -33084,5 +34680,5 @@ var WebSocketClientMock = /** @class */ (function () {
33084
34680
  return WebSocketClientMock;
33085
34681
  }());
33086
34682
 
33087
- export { index as Fixtures, StreamApi, WebSocketClientImpl, WebSocketClientMock, currentDateAsProtoTimestamp, decode, encode, protoToDate, toProtoDuration, toProtoTimestamp };
34683
+ export { index as Fixtures, StreamApi, StreamRequestError, WebSocketClientImpl, WebSocketClientMock, currentDateAsProtoTimestamp, decode, encode, protoToDate, toProtoDuration, toProtoTimestamp };
33088
34684
  //# sourceMappingURL=bundle.esm.js.map