@viamrobotics/sdk 0.16.0 → 0.17.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.es.js CHANGED
@@ -8360,7 +8360,7 @@ var timestamp_pb$1 = {};
8360
8360
  var p = struct_pb;
8361
8361
  s.object.extend(proto, p);
8362
8362
  var g = timestamp_pb$1;
8363
- s.object.extend(proto, g), s.exportSymbol("proto.viam.common.v1.ActuatorStatus", null, l), s.exportSymbol("proto.viam.common.v1.Capsule", null, l), s.exportSymbol("proto.viam.common.v1.DoCommandRequest", null, l), s.exportSymbol("proto.viam.common.v1.DoCommandResponse", null, l), s.exportSymbol("proto.viam.common.v1.GeoObstacle", null, l), s.exportSymbol("proto.viam.common.v1.GeoPoint", null, l), s.exportSymbol("proto.viam.common.v1.GeometriesInFrame", null, l), s.exportSymbol("proto.viam.common.v1.Geometry", null, l), s.exportSymbol("proto.viam.common.v1.Geometry.GeometryTypeCase", null, l), s.exportSymbol("proto.viam.common.v1.GetGeometriesRequest", null, l), s.exportSymbol("proto.viam.common.v1.GetGeometriesResponse", null, l), s.exportSymbol("proto.viam.common.v1.GetKinematicsRequest", null, l), s.exportSymbol("proto.viam.common.v1.GetKinematicsResponse", null, l), s.exportSymbol("proto.viam.common.v1.GetReadingsRequest", null, l), s.exportSymbol("proto.viam.common.v1.GetReadingsResponse", null, l), s.exportSymbol("proto.viam.common.v1.KinematicsFileFormat", null, l), s.exportSymbol("proto.viam.common.v1.LogEntry", null, l), s.exportSymbol("proto.viam.common.v1.Orientation", null, l), s.exportSymbol("proto.viam.common.v1.PointCloudObject", null, l), s.exportSymbol("proto.viam.common.v1.Pose", null, l), s.exportSymbol("proto.viam.common.v1.PoseInFrame", null, l), s.exportSymbol("proto.viam.common.v1.RectangularPrism", null, l), s.exportSymbol("proto.viam.common.v1.ResourceName", null, l), s.exportSymbol("proto.viam.common.v1.ResponseMetadata", null, l), s.exportSymbol("proto.viam.common.v1.Sphere", null, l), s.exportSymbol("proto.viam.common.v1.Transform", null, l), s.exportSymbol("proto.viam.common.v1.Vector3", null, l), s.exportSymbol("proto.viam.common.v1.WorldState", null, l), s.exportSymbol("proto.viam.common.v1.safetyHeartbeatMonitored", null, l), proto.viam.common.v1.ResourceName = function(t) {
8363
+ s.object.extend(proto, g), s.exportSymbol("proto.viam.common.v1.ActuatorStatus", null, l), s.exportSymbol("proto.viam.common.v1.Capsule", null, l), s.exportSymbol("proto.viam.common.v1.DoCommandRequest", null, l), s.exportSymbol("proto.viam.common.v1.DoCommandResponse", null, l), s.exportSymbol("proto.viam.common.v1.GeoGeometry", null, l), s.exportSymbol("proto.viam.common.v1.GeoPoint", null, l), s.exportSymbol("proto.viam.common.v1.GeometriesInFrame", null, l), s.exportSymbol("proto.viam.common.v1.Geometry", null, l), s.exportSymbol("proto.viam.common.v1.Geometry.GeometryTypeCase", null, l), s.exportSymbol("proto.viam.common.v1.GetGeometriesRequest", null, l), s.exportSymbol("proto.viam.common.v1.GetGeometriesResponse", null, l), s.exportSymbol("proto.viam.common.v1.GetKinematicsRequest", null, l), s.exportSymbol("proto.viam.common.v1.GetKinematicsResponse", null, l), s.exportSymbol("proto.viam.common.v1.GetReadingsRequest", null, l), s.exportSymbol("proto.viam.common.v1.GetReadingsResponse", null, l), s.exportSymbol("proto.viam.common.v1.KinematicsFileFormat", null, l), s.exportSymbol("proto.viam.common.v1.LogEntry", null, l), s.exportSymbol("proto.viam.common.v1.Orientation", null, l), s.exportSymbol("proto.viam.common.v1.PointCloudObject", null, l), s.exportSymbol("proto.viam.common.v1.Pose", null, l), s.exportSymbol("proto.viam.common.v1.PoseInFrame", null, l), s.exportSymbol("proto.viam.common.v1.RectangularPrism", null, l), s.exportSymbol("proto.viam.common.v1.ResourceName", null, l), s.exportSymbol("proto.viam.common.v1.ResponseMetadata", null, l), s.exportSymbol("proto.viam.common.v1.Sphere", null, l), s.exportSymbol("proto.viam.common.v1.Transform", null, l), s.exportSymbol("proto.viam.common.v1.Vector3", null, l), s.exportSymbol("proto.viam.common.v1.WorldState", null, l), s.exportSymbol("proto.viam.common.v1.safetyHeartbeatMonitored", null, l), proto.viam.common.v1.ResourceName = function(t) {
8364
8364
  e.Message.initialize(this, t, 0, -1, null, null);
8365
8365
  }, s.inherits(proto.viam.common.v1.ResourceName, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.ResourceName.displayName = "proto.viam.common.v1.ResourceName"), proto.viam.common.v1.Pose = function(t) {
8366
8366
  e.Message.initialize(this, t, 0, -1, null, null);
@@ -8384,9 +8384,9 @@ var timestamp_pb$1 = {};
8384
8384
  e.Message.initialize(this, t, 0, -1, null, null);
8385
8385
  }, s.inherits(proto.viam.common.v1.PointCloudObject, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.PointCloudObject.displayName = "proto.viam.common.v1.PointCloudObject"), proto.viam.common.v1.GeoPoint = function(t) {
8386
8386
  e.Message.initialize(this, t, 0, -1, null, null);
8387
- }, s.inherits(proto.viam.common.v1.GeoPoint, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GeoPoint.displayName = "proto.viam.common.v1.GeoPoint"), proto.viam.common.v1.GeoObstacle = function(t) {
8388
- e.Message.initialize(this, t, 0, -1, proto.viam.common.v1.GeoObstacle.repeatedFields_, null);
8389
- }, s.inherits(proto.viam.common.v1.GeoObstacle, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GeoObstacle.displayName = "proto.viam.common.v1.GeoObstacle"), proto.viam.common.v1.Transform = function(t) {
8387
+ }, s.inherits(proto.viam.common.v1.GeoPoint, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GeoPoint.displayName = "proto.viam.common.v1.GeoPoint"), proto.viam.common.v1.GeoGeometry = function(t) {
8388
+ e.Message.initialize(this, t, 0, -1, proto.viam.common.v1.GeoGeometry.repeatedFields_, null);
8389
+ }, s.inherits(proto.viam.common.v1.GeoGeometry, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GeoGeometry.displayName = "proto.viam.common.v1.GeoGeometry"), proto.viam.common.v1.Transform = function(t) {
8390
8390
  e.Message.initialize(this, t, 0, -1, null, null);
8391
8391
  }, s.inherits(proto.viam.common.v1.Transform, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.Transform.displayName = "proto.viam.common.v1.Transform"), proto.viam.common.v1.WorldState = function(t) {
8392
8392
  e.Message.initialize(this, t, 0, -1, proto.viam.common.v1.WorldState.repeatedFields_, null);
@@ -9386,9 +9386,9 @@ var timestamp_pb$1 = {};
9386
9386
  );
9387
9387
  }, proto.viam.common.v1.GeoPoint.prototype.setLongitude = function(t) {
9388
9388
  return e.Message.setProto3FloatField(this, 2, t);
9389
- }, proto.viam.common.v1.GeoObstacle.repeatedFields_ = [2], e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GeoObstacle.prototype.toObject = function(t) {
9390
- return proto.viam.common.v1.GeoObstacle.toObject(t, this);
9391
- }, proto.viam.common.v1.GeoObstacle.toObject = function(t, r) {
9389
+ }, proto.viam.common.v1.GeoGeometry.repeatedFields_ = [2], e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GeoGeometry.prototype.toObject = function(t) {
9390
+ return proto.viam.common.v1.GeoGeometry.toObject(t, this);
9391
+ }, proto.viam.common.v1.GeoGeometry.toObject = function(t, r) {
9392
9392
  var i, o = {
9393
9393
  location: (i = r.getLocation()) && proto.viam.common.v1.GeoPoint.toObject(t, i),
9394
9394
  geometriesList: e.Message.toObjectList(
@@ -9398,10 +9398,10 @@ var timestamp_pb$1 = {};
9398
9398
  )
9399
9399
  };
9400
9400
  return t && (o.$jspbMessageInstance = r), o;
9401
- }), proto.viam.common.v1.GeoObstacle.deserializeBinary = function(t) {
9402
- var r = new e.BinaryReader(t), i = new proto.viam.common.v1.GeoObstacle();
9403
- return proto.viam.common.v1.GeoObstacle.deserializeBinaryFromReader(i, r);
9404
- }, proto.viam.common.v1.GeoObstacle.deserializeBinaryFromReader = function(t, r) {
9401
+ }), proto.viam.common.v1.GeoGeometry.deserializeBinary = function(t) {
9402
+ var r = new e.BinaryReader(t), i = new proto.viam.common.v1.GeoGeometry();
9403
+ return proto.viam.common.v1.GeoGeometry.deserializeBinaryFromReader(i, r);
9404
+ }, proto.viam.common.v1.GeoGeometry.deserializeBinaryFromReader = function(t, r) {
9405
9405
  for (; r.nextField() && !r.isEndGroup(); ) {
9406
9406
  var i = r.getFieldNumber();
9407
9407
  switch (i) {
@@ -9419,10 +9419,10 @@ var timestamp_pb$1 = {};
9419
9419
  }
9420
9420
  }
9421
9421
  return t;
9422
- }, proto.viam.common.v1.GeoObstacle.prototype.serializeBinary = function() {
9422
+ }, proto.viam.common.v1.GeoGeometry.prototype.serializeBinary = function() {
9423
9423
  var t = new e.BinaryWriter();
9424
- return proto.viam.common.v1.GeoObstacle.serializeBinaryToWriter(this, t), t.getResultBuffer();
9425
- }, proto.viam.common.v1.GeoObstacle.serializeBinaryToWriter = function(t, r) {
9424
+ return proto.viam.common.v1.GeoGeometry.serializeBinaryToWriter(this, t), t.getResultBuffer();
9425
+ }, proto.viam.common.v1.GeoGeometry.serializeBinaryToWriter = function(t, r) {
9426
9426
  var i = void 0;
9427
9427
  i = t.getLocation(), i != null && r.writeMessage(
9428
9428
  1,
@@ -9433,27 +9433,27 @@ var timestamp_pb$1 = {};
9433
9433
  i,
9434
9434
  proto.viam.common.v1.Geometry.serializeBinaryToWriter
9435
9435
  );
9436
- }, proto.viam.common.v1.GeoObstacle.prototype.getLocation = function() {
9436
+ }, proto.viam.common.v1.GeoGeometry.prototype.getLocation = function() {
9437
9437
  return (
9438
9438
  /** @type{?proto.viam.common.v1.GeoPoint} */
9439
9439
  e.Message.getWrapperField(this, proto.viam.common.v1.GeoPoint, 1)
9440
9440
  );
9441
- }, proto.viam.common.v1.GeoObstacle.prototype.setLocation = function(t) {
9441
+ }, proto.viam.common.v1.GeoGeometry.prototype.setLocation = function(t) {
9442
9442
  return e.Message.setWrapperField(this, 1, t);
9443
- }, proto.viam.common.v1.GeoObstacle.prototype.clearLocation = function() {
9443
+ }, proto.viam.common.v1.GeoGeometry.prototype.clearLocation = function() {
9444
9444
  return this.setLocation(void 0);
9445
- }, proto.viam.common.v1.GeoObstacle.prototype.hasLocation = function() {
9445
+ }, proto.viam.common.v1.GeoGeometry.prototype.hasLocation = function() {
9446
9446
  return e.Message.getField(this, 1) != null;
9447
- }, proto.viam.common.v1.GeoObstacle.prototype.getGeometriesList = function() {
9447
+ }, proto.viam.common.v1.GeoGeometry.prototype.getGeometriesList = function() {
9448
9448
  return (
9449
9449
  /** @type{!Array<!proto.viam.common.v1.Geometry>} */
9450
9450
  e.Message.getRepeatedWrapperField(this, proto.viam.common.v1.Geometry, 2)
9451
9451
  );
9452
- }, proto.viam.common.v1.GeoObstacle.prototype.setGeometriesList = function(t) {
9452
+ }, proto.viam.common.v1.GeoGeometry.prototype.setGeometriesList = function(t) {
9453
9453
  return e.Message.setRepeatedWrapperField(this, 2, t);
9454
- }, proto.viam.common.v1.GeoObstacle.prototype.addGeometries = function(t, r) {
9454
+ }, proto.viam.common.v1.GeoGeometry.prototype.addGeometries = function(t, r) {
9455
9455
  return e.Message.addToRepeatedWrapperField(this, 2, t, proto.viam.common.v1.Geometry, r);
9456
- }, proto.viam.common.v1.GeoObstacle.prototype.clearGeometriesList = function() {
9456
+ }, proto.viam.common.v1.GeoGeometry.prototype.clearGeometriesList = function() {
9457
9457
  return this.setGeometriesList([]);
9458
9458
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Transform.prototype.toObject = function(t) {
9459
9459
  return proto.viam.common.v1.Transform.toObject(t, this);
@@ -28617,7 +28617,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
28617
28617
  }()
28618
28618
  );
28619
28619
  const DIAL_TIMEOUT = 5e3;
28620
- var MachineConnectionEvent = /* @__PURE__ */ ((n) => (n.RECONNECTED = "reconnected", n.DISCONNECTED = "disconnected", n))(MachineConnectionEvent || {});
28620
+ var MachineConnectionEvent = /* @__PURE__ */ ((n) => (n.CONNECTING = "connecting", n.CONNECTED = "connected", n.DISCONNECTING = "disconnecting", n.DISCONNECTED = "disconnected", n))(MachineConnectionEvent || {});
28621
28621
  class EventDispatcher {
28622
28622
  listeners = {};
28623
28623
  on(e, s) {
@@ -28641,7 +28641,6 @@ class EventDispatcher {
28641
28641
  l(s);
28642
28642
  }
28643
28643
  }
28644
- const events = new EventDispatcher();
28645
28644
  var arm_pb = {};
28646
28645
  (function(n) {
28647
28646
  var e = googleProtobuf$1, s = e, l = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof l < "u" && l || typeof self < "u" && self || function() {
@@ -41346,7 +41345,7 @@ var RobotServiceClient_1 = RobotServiceClient, motion_pb = {};
41346
41345
  return e.Message.setField(this, 6, void 0);
41347
41346
  }, proto.viam.service.motion.v1.MotionConfiguration.prototype.hasAngularDegsPerSec = function() {
41348
41347
  return e.Message.getField(this, 6) != null;
41349
- }, proto.viam.service.motion.v1.MoveOnGlobeRequest.repeatedFields_ = [6], e.Message.GENERATE_TO_OBJECT && (proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.toObject = function(r) {
41348
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.repeatedFields_ = [6, 8], e.Message.GENERATE_TO_OBJECT && (proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.toObject = function(r) {
41350
41349
  return proto.viam.service.motion.v1.MoveOnGlobeRequest.toObject(r, this);
41351
41350
  }, proto.viam.service.motion.v1.MoveOnGlobeRequest.toObject = function(r, i) {
41352
41351
  var o, c = {
@@ -41357,10 +41356,15 @@ var RobotServiceClient_1 = RobotServiceClient, motion_pb = {};
41357
41356
  movementSensorName: (o = i.getMovementSensorName()) && u.ResourceName.toObject(r, o),
41358
41357
  obstaclesList: e.Message.toObjectList(
41359
41358
  i.getObstaclesList(),
41360
- u.GeoObstacle.toObject,
41359
+ u.GeoGeometry.toObject,
41361
41360
  r
41362
41361
  ),
41363
41362
  motionConfiguration: (o = i.getMotionConfiguration()) && proto.viam.service.motion.v1.MotionConfiguration.toObject(r, o),
41363
+ boundingRegionsList: e.Message.toObjectList(
41364
+ i.getBoundingRegionsList(),
41365
+ u.GeoGeometry.toObject,
41366
+ r
41367
+ ),
41364
41368
  extra: (o = i.getExtra()) && g.Struct.toObject(r, o)
41365
41369
  };
41366
41370
  return r && (c.$jspbMessageInstance = i), c;
@@ -41398,13 +41402,17 @@ var RobotServiceClient_1 = RobotServiceClient, motion_pb = {};
41398
41402
  i.readMessage(c, u.ResourceName.deserializeBinaryFromReader), r.setMovementSensorName(c);
41399
41403
  break;
41400
41404
  case 6:
41401
- var c = new u.GeoObstacle();
41402
- i.readMessage(c, u.GeoObstacle.deserializeBinaryFromReader), r.addObstacles(c);
41405
+ var c = new u.GeoGeometry();
41406
+ i.readMessage(c, u.GeoGeometry.deserializeBinaryFromReader), r.addObstacles(c);
41403
41407
  break;
41404
41408
  case 7:
41405
41409
  var c = new proto.viam.service.motion.v1.MotionConfiguration();
41406
41410
  i.readMessage(c, proto.viam.service.motion.v1.MotionConfiguration.deserializeBinaryFromReader), r.setMotionConfiguration(c);
41407
41411
  break;
41412
+ case 8:
41413
+ var c = new u.GeoGeometry();
41414
+ i.readMessage(c, u.GeoGeometry.deserializeBinaryFromReader), r.addBoundingRegions(c);
41415
+ break;
41408
41416
  case 99:
41409
41417
  var c = new g.Struct();
41410
41418
  i.readMessage(c, g.Struct.deserializeBinaryFromReader), r.setExtra(c);
@@ -41442,11 +41450,15 @@ var RobotServiceClient_1 = RobotServiceClient, motion_pb = {};
41442
41450
  ), o = r.getObstaclesList(), o.length > 0 && i.writeRepeatedMessage(
41443
41451
  6,
41444
41452
  o,
41445
- u.GeoObstacle.serializeBinaryToWriter
41453
+ u.GeoGeometry.serializeBinaryToWriter
41446
41454
  ), o = r.getMotionConfiguration(), o != null && i.writeMessage(
41447
41455
  7,
41448
41456
  o,
41449
41457
  proto.viam.service.motion.v1.MotionConfiguration.serializeBinaryToWriter
41458
+ ), o = r.getBoundingRegionsList(), o.length > 0 && i.writeRepeatedMessage(
41459
+ 8,
41460
+ o,
41461
+ u.GeoGeometry.serializeBinaryToWriter
41450
41462
  ), o = r.getExtra(), o != null && i.writeMessage(
41451
41463
  99,
41452
41464
  o,
@@ -41505,13 +41517,13 @@ var RobotServiceClient_1 = RobotServiceClient, motion_pb = {};
41505
41517
  return e.Message.getField(this, 5) != null;
41506
41518
  }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getObstaclesList = function() {
41507
41519
  return (
41508
- /** @type{!Array<!proto.viam.common.v1.GeoObstacle>} */
41509
- e.Message.getRepeatedWrapperField(this, u.GeoObstacle, 6)
41520
+ /** @type{!Array<!proto.viam.common.v1.GeoGeometry>} */
41521
+ e.Message.getRepeatedWrapperField(this, u.GeoGeometry, 6)
41510
41522
  );
41511
41523
  }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.setObstaclesList = function(r) {
41512
41524
  return e.Message.setRepeatedWrapperField(this, 6, r);
41513
41525
  }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.addObstacles = function(r, i) {
41514
- return e.Message.addToRepeatedWrapperField(this, 6, r, proto.viam.common.v1.GeoObstacle, i);
41526
+ return e.Message.addToRepeatedWrapperField(this, 6, r, proto.viam.common.v1.GeoGeometry, i);
41515
41527
  }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.clearObstaclesList = function() {
41516
41528
  return this.setObstaclesList([]);
41517
41529
  }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getMotionConfiguration = function() {
@@ -41525,6 +41537,17 @@ var RobotServiceClient_1 = RobotServiceClient, motion_pb = {};
41525
41537
  return this.setMotionConfiguration(void 0);
41526
41538
  }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.hasMotionConfiguration = function() {
41527
41539
  return e.Message.getField(this, 7) != null;
41540
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getBoundingRegionsList = function() {
41541
+ return (
41542
+ /** @type{!Array<!proto.viam.common.v1.GeoGeometry>} */
41543
+ e.Message.getRepeatedWrapperField(this, u.GeoGeometry, 8)
41544
+ );
41545
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.setBoundingRegionsList = function(r) {
41546
+ return e.Message.setRepeatedWrapperField(this, 8, r);
41547
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.addBoundingRegions = function(r, i) {
41548
+ return e.Message.addToRepeatedWrapperField(this, 8, r, proto.viam.common.v1.GeoGeometry, i);
41549
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.clearBoundingRegionsList = function() {
41550
+ return this.setBoundingRegionsList([]);
41528
41551
  }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getExtra = function() {
41529
41552
  return (
41530
41553
  /** @type{?proto.google.protobuf.Struct} */
@@ -44074,7 +44097,7 @@ var MotionServiceClient_1 = MotionServiceClient, navigation_pb = {};
44074
44097
  var i = {
44075
44098
  obstaclesList: e.Message.toObjectList(
44076
44099
  r.getObstaclesList(),
44077
- u.GeoObstacle.toObject,
44100
+ u.GeoGeometry.toObject,
44078
44101
  t
44079
44102
  )
44080
44103
  };
@@ -44087,8 +44110,8 @@ var MotionServiceClient_1 = MotionServiceClient, navigation_pb = {};
44087
44110
  var i = r.getFieldNumber();
44088
44111
  switch (i) {
44089
44112
  case 1:
44090
- var o = new u.GeoObstacle();
44091
- r.readMessage(o, u.GeoObstacle.deserializeBinaryFromReader), t.addObstacles(o);
44113
+ var o = new u.GeoGeometry();
44114
+ r.readMessage(o, u.GeoGeometry.deserializeBinaryFromReader), t.addObstacles(o);
44092
44115
  break;
44093
44116
  default:
44094
44117
  r.skipField();
@@ -44104,17 +44127,17 @@ var MotionServiceClient_1 = MotionServiceClient, navigation_pb = {};
44104
44127
  i = t.getObstaclesList(), i.length > 0 && r.writeRepeatedMessage(
44105
44128
  1,
44106
44129
  i,
44107
- u.GeoObstacle.serializeBinaryToWriter
44130
+ u.GeoGeometry.serializeBinaryToWriter
44108
44131
  );
44109
44132
  }, proto.viam.service.navigation.v1.GetObstaclesResponse.prototype.getObstaclesList = function() {
44110
44133
  return (
44111
- /** @type{!Array<!proto.viam.common.v1.GeoObstacle>} */
44112
- e.Message.getRepeatedWrapperField(this, u.GeoObstacle, 1)
44134
+ /** @type{!Array<!proto.viam.common.v1.GeoGeometry>} */
44135
+ e.Message.getRepeatedWrapperField(this, u.GeoGeometry, 1)
44113
44136
  );
44114
44137
  }, proto.viam.service.navigation.v1.GetObstaclesResponse.prototype.setObstaclesList = function(t) {
44115
44138
  return e.Message.setRepeatedWrapperField(this, 1, t);
44116
44139
  }, proto.viam.service.navigation.v1.GetObstaclesResponse.prototype.addObstacles = function(t, r) {
44117
- return e.Message.addToRepeatedWrapperField(this, 1, t, proto.viam.common.v1.GeoObstacle, r);
44140
+ return e.Message.addToRepeatedWrapperField(this, 1, t, proto.viam.common.v1.GeoGeometry, r);
44118
44141
  }, proto.viam.service.navigation.v1.GetObstaclesResponse.prototype.clearObstaclesList = function() {
44119
44142
  return this.setObstaclesList([]);
44120
44143
  }, proto.viam.service.navigation.v1.Path.repeatedFields_ = [2], e.Message.GENERATE_TO_OBJECT && (proto.viam.service.navigation.v1.Path.prototype.toObject = function(t) {
@@ -49265,8 +49288,8 @@ const promisify = async (n, e) => new Promise((s, l) => {
49265
49288
  }, encodeGeoPoint = (n) => {
49266
49289
  const e = new common.GeoPoint();
49267
49290
  return e.setLatitude(n.latitude), e.setLongitude(n.longitude), e;
49268
- }, encodeGeoObstacle = (n) => {
49269
- const e = new common.GeoObstacle();
49291
+ }, encodeGeoGeometry = (n) => {
49292
+ const e = new common.GeoGeometry();
49270
49293
  return n.location && e.setLocation(encodeGeoPoint(n.location)), e.setGeometriesList(n.geometriesList.map((s) => encodeGeometry(s))), e;
49271
49294
  }, timeoutBlob$1 = new Blob(
49272
49295
  [
@@ -49283,10 +49306,11 @@ class GRPCConnectionManager {
49283
49306
  connecting;
49284
49307
  connectResolve;
49285
49308
  connectReject;
49286
- constructor(e, s, l = 1e4) {
49309
+ onDisconnect;
49310
+ constructor(e, s, l, u = 1e4) {
49287
49311
  this.innerTransportFactory = s, this.client = new RobotServiceClient_1(e, {
49288
49312
  transport: this.innerTransportFactory
49289
- }), this.heartbeatIntervalMs = l;
49313
+ }), this.onDisconnect = l, this.heartbeatIntervalMs = u;
49290
49314
  }
49291
49315
  heartbeat() {
49292
49316
  let e;
@@ -49297,7 +49321,7 @@ class GRPCConnectionManager {
49297
49321
  new grpcWebClient_umdExports$1.grpc.Metadata(),
49298
49322
  (u) => {
49299
49323
  if (u) {
49300
- events.emit(MachineConnectionEvent.DISCONNECTED, {});
49324
+ this.onDisconnect();
49301
49325
  return;
49302
49326
  }
49303
49327
  e ? e.postMessage(this.heartbeatIntervalMs) : setTimeout(() => s(), this.heartbeatIntervalMs);
@@ -49528,6 +49552,9 @@ class RobotClient extends EventDispatcher {
49528
49552
  if (!this.transportFactory)
49529
49553
  throw new Error(RobotClient.notConnectedYetStr);
49530
49554
  return this.transportFactory(p);
49555
+ },
49556
+ () => {
49557
+ this.onDisconnect();
49531
49558
  }
49532
49559
  ), this.sessionManager = new SessionManager(
49533
49560
  e,
@@ -49536,30 +49563,24 @@ class RobotClient extends EventDispatcher {
49536
49563
  throw new Error(RobotClient.notConnectedYetStr);
49537
49564
  return this.transportFactory(p);
49538
49565
  }
49539
- ), events.on(MachineConnectionEvent.RECONNECTED, () => {
49540
- this.emit(MachineConnectionEvent.RECONNECTED, {});
49541
- }), events.on(MachineConnectionEvent.DISCONNECTED, () => {
49542
- if (this.emit(MachineConnectionEvent.DISCONNECTED, {}), this.noReconnect)
49543
- return;
49544
- let p = 0;
49545
- console.debug("connection closed, will try to reconnect"), backOff_1(
49546
- async () => this.connect().then(
49547
- () => {
49548
- console.debug("reconnected successfully!"), events.emit(MachineConnectionEvent.RECONNECTED, {});
49549
- },
49550
- (g) => {
49551
- throw console.debug(`failed to reconnect - retries count: ${p}`), p += 1, p === this.reconnectMaxAttempts && console.debug(
49552
- `reached max attempts: ${this.reconnectMaxAttempts}`
49553
- ), g;
49554
- }
49555
- ),
49556
- {
49557
- // default values taken from `exponential-backoff` library
49558
- maxDelay: this.reconnectMaxWait ?? Number.POSITIVE_INFINITY,
49559
- numOfAttempts: this.reconnectMaxAttempts ?? 10
49560
- }
49561
- );
49562
- });
49566
+ );
49567
+ for (const p of Object.values(MachineConnectionEvent))
49568
+ this.on(p, () => {
49569
+ this.emit("connectionstatechange", { eventType: p });
49570
+ });
49571
+ }
49572
+ onDisconnect(e) {
49573
+ this.emit(MachineConnectionEvent.DISCONNECTED, e ?? {}), !this.noReconnect && (console.debug("Connection closed, will try to reconnect"), backOff_1(async () => this.connect(), {
49574
+ maxDelay: this.reconnectMaxWait,
49575
+ numOfAttempts: this.reconnectMaxAttempts,
49576
+ retry: (s, l) => (console.debug(
49577
+ `Failed to connect, attempt ${l} with backoff`
49578
+ ), !0)
49579
+ }).then(() => {
49580
+ console.debug("Reconnected successfully!");
49581
+ }).catch(() => {
49582
+ console.debug(`Reached max attempts: ${this.reconnectMaxAttempts}`);
49583
+ }));
49563
49584
  }
49564
49585
  get noReconnect() {
49565
49586
  return this.webrtcOptions?.noReconnect ?? this.directOptions?.noReconnect;
@@ -49675,20 +49696,22 @@ class RobotClient extends EventDispatcher {
49675
49696
  return this.peerConn;
49676
49697
  }
49677
49698
  async disconnect() {
49678
- for (; this.connecting; )
49699
+ for (this.emit(MachineConnectionEvent.DISCONNECTING, {}); this.connecting; )
49679
49700
  await this.connecting;
49680
- this.peerConn && (this.peerConn.close(), this.peerConn = void 0), this.sessionManager.reset();
49701
+ this.peerConn && (this.peerConn.close(), this.peerConn = void 0), this.sessionManager.reset(), this.emit(MachineConnectionEvent.DISCONNECTED, {});
49681
49702
  }
49682
49703
  isConnected() {
49683
49704
  return this.peerConn?.iceConnectionState === "connected";
49684
49705
  }
49706
+ // TODO(RSDK-7672): refactor due to cognitive complexity
49707
+ // eslint-disable-next-line sonarjs/cognitive-complexity
49685
49708
  async connect({
49686
49709
  authEntity: e = this.savedAuthEntity,
49687
49710
  creds: s = this.savedCreds,
49688
49711
  priority: l,
49689
49712
  dialTimeout: u
49690
49713
  } = {}) {
49691
- if (this.connecting) {
49714
+ if (this.emit(MachineConnectionEvent.CONNECTING, {}), this.connecting) {
49692
49715
  for (; this.connecting; )
49693
49716
  await this.connecting;
49694
49717
  return;
@@ -49714,15 +49737,17 @@ class RobotClient extends EventDispatcher {
49714
49737
  p
49715
49738
  );
49716
49739
  this.peerConn = r.peerConnection, this.peerConn.addEventListener("iceconnectionstatechange", () => {
49717
- this.peerConn?.iceConnectionState === "connected" ? events.emit(MachineConnectionEvent.RECONNECTED, {}) : this.peerConn?.iceConnectionState === "closed" && events.emit(MachineConnectionEvent.DISCONNECTED, {});
49740
+ this.peerConn?.iceConnectionState === "connected" ? this.emit(MachineConnectionEvent.CONNECTED, {}) : this.peerConn?.iceConnectionState === "closed" && this.onDisconnect();
49741
+ }), r.dataChannel.addEventListener("close", (i) => {
49742
+ this.onDisconnect(i);
49718
49743
  }), this.transportFactory = r.transportFactory, r.peerConnection.addEventListener("track", (i) => {
49719
49744
  const [o] = i.streams;
49720
49745
  if (!o)
49721
- throw events.emit("track", i), new Error("expected event stream to exist");
49746
+ throw this.emit("track", i), new Error("expected event stream to exist");
49722
49747
  const c = o.id.replaceAll("+", ":");
49723
49748
  Object.defineProperty(o, "id", {
49724
49749
  value: c
49725
- }), events.emit("track", i);
49750
+ }), this.emit("track", i);
49726
49751
  });
49727
49752
  } else
49728
49753
  this.transportFactory = await dialDirect$1(this.serviceHost, p), await this.gRPCConnectionManager.start();
@@ -49781,7 +49806,9 @@ class RobotClient extends EventDispatcher {
49781
49806
  ), this.slamServiceClient = new SLAMServiceClient_1(
49782
49807
  this.serviceHost,
49783
49808
  t
49784
- );
49809
+ ), this.emit(MachineConnectionEvent.CONNECTED, {});
49810
+ } catch (p) {
49811
+ throw this.emit(MachineConnectionEvent.DISCONNECTED, {}), p;
49785
49812
  } finally {
49786
49813
  this.connectResolve?.(), this.connectResolve = void 0, this.connecting = void 0;
49787
49814
  }
@@ -49908,13 +49935,31 @@ const isPosInt = (n) => !!(n > 0 && Number.isInteger(n)), isLocalConnection = (n
49908
49935
  const e = n;
49909
49936
  return typeof e.signalingAddress != "string" ? !1 : !e.iceServers || Array.isArray(e.iceServers);
49910
49937
  }, createRobotClient = async (n) => {
49911
- let e;
49938
+ validateDialConf(n);
49939
+ const e = {
49940
+ maxDelay: n.reconnectMaxWait,
49941
+ numOfAttempts: n.reconnectMaxAttempts,
49942
+ retry: (s, l) => (console.debug(`Failed to connect, attempt ${l} with backoff`), !0)
49943
+ };
49944
+ if (isDialWebRTCConf(n))
49945
+ try {
49946
+ return n.noReconnect ? await dialWebRTC(n) : await backOff_1(async () => dialWebRTC(n), e);
49947
+ } catch {
49948
+ console.debug("Failed to connect via WebRTC");
49949
+ }
49950
+ try {
49951
+ return n.noReconnect ? await dialDirect(n) : await backOff_1(async () => dialDirect(n), e);
49952
+ } catch {
49953
+ console.debug("Failed to connect via gRPC");
49954
+ }
49955
+ throw new Error("Failed to connect to robot");
49956
+ }, validateDialConf = (n) => {
49912
49957
  if (n.authEntity)
49913
49958
  try {
49914
49959
  n.authEntity = new URL(n.authEntity).host;
49915
- } catch (s) {
49916
- if (!(s instanceof TypeError))
49917
- throw s;
49960
+ } catch (e) {
49961
+ if (!(e instanceof TypeError))
49962
+ throw e;
49918
49963
  }
49919
49964
  if (n.reconnectMaxAttempts && !isPosInt(n.reconnectMaxAttempts))
49920
49965
  throw new Error(
@@ -49924,21 +49969,6 @@ const isPosInt = (n) => !!(n > 0 && Number.isInteger(n)), isLocalConnection = (n
49924
49969
  throw new Error(
49925
49970
  `Value of max reconnect wait (${n.reconnectMaxWait}) should be a positive integer`
49926
49971
  );
49927
- if (isDialWebRTCConf(n))
49928
- try {
49929
- e = await dialWebRTC(n);
49930
- } catch {
49931
- console.debug("failed to connect via WebRTC...");
49932
- }
49933
- if (!e)
49934
- try {
49935
- e = await dialDirect(n);
49936
- } catch {
49937
- console.debug("failed to connect via gRPC...");
49938
- }
49939
- if (!e)
49940
- throw new Error("failed to connect to robot");
49941
- return e;
49942
49972
  };
49943
49973
  var auth_pb = {};
49944
49974
  (function(n) {
@@ -57606,6 +57636,7 @@ var tagger_pb = {};
57606
57636
  var i = {
57607
57637
  datasetId: e.Message.getFieldWithDefault(r, 1, ""),
57608
57638
  registryItemId: e.Message.getFieldWithDefault(r, 2, ""),
57639
+ registryItemVersion: e.Message.getFieldWithDefault(r, 6, ""),
57609
57640
  organizationId: e.Message.getFieldWithDefault(r, 3, ""),
57610
57641
  modelName: e.Message.getFieldWithDefault(r, 4, ""),
57611
57642
  modelVersion: e.Message.getFieldWithDefault(r, 5, "")
@@ -57632,6 +57663,13 @@ var tagger_pb = {};
57632
57663
  );
57633
57664
  t.setRegistryItemId(o);
57634
57665
  break;
57666
+ case 6:
57667
+ var o = (
57668
+ /** @type {string} */
57669
+ r.readString()
57670
+ );
57671
+ t.setRegistryItemVersion(o);
57672
+ break;
57635
57673
  case 3:
57636
57674
  var o = (
57637
57675
  /** @type {string} */
@@ -57670,6 +57708,9 @@ var tagger_pb = {};
57670
57708
  ), i = t.getRegistryItemId(), i.length > 0 && r.writeString(
57671
57709
  2,
57672
57710
  i
57711
+ ), i = t.getRegistryItemVersion(), i.length > 0 && r.writeString(
57712
+ 6,
57713
+ i
57673
57714
  ), i = t.getOrganizationId(), i.length > 0 && r.writeString(
57674
57715
  3,
57675
57716
  i
@@ -57694,6 +57735,13 @@ var tagger_pb = {};
57694
57735
  );
57695
57736
  }, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.setRegistryItemId = function(t) {
57696
57737
  return e.Message.setProto3StringField(this, 2, t);
57738
+ }, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.getRegistryItemVersion = function() {
57739
+ return (
57740
+ /** @type {string} */
57741
+ e.Message.getFieldWithDefault(this, 6, "")
57742
+ );
57743
+ }, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.setRegistryItemVersion = function(t) {
57744
+ return e.Message.setProto3StringField(this, 6, t);
57697
57745
  }, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.getOrganizationId = function() {
57698
57746
  return (
57699
57747
  /** @type {string} */
@@ -57970,6 +58018,7 @@ var tagger_pb = {};
57970
58018
  modelFramework: e.Message.getFieldWithDefault(r, 17, 0),
57971
58019
  isCustomJob: e.Message.getBooleanFieldWithDefault(r, 18, !1),
57972
58020
  registryItemId: e.Message.getFieldWithDefault(r, 19, ""),
58021
+ registryItemVersion: e.Message.getFieldWithDefault(r, 20, ""),
57973
58022
  status: e.Message.getFieldWithDefault(r, 2, 0),
57974
58023
  errorStatus: (i = r.getErrorStatus()) && p.Status.toObject(t, i),
57975
58024
  createdOn: (i = r.getCreatedOn()) && u.Timestamp.toObject(t, i),
@@ -58054,6 +58103,13 @@ var tagger_pb = {};
58054
58103
  );
58055
58104
  t.setRegistryItemId(o);
58056
58105
  break;
58106
+ case 20:
58107
+ var o = (
58108
+ /** @type {string} */
58109
+ r.readString()
58110
+ );
58111
+ t.setRegistryItemVersion(o);
58112
+ break;
58057
58113
  case 2:
58058
58114
  var o = (
58059
58115
  /** @type {!proto.viam.app.mltraining.v1.TrainingStatus} */
@@ -58137,6 +58193,9 @@ var tagger_pb = {};
58137
58193
  ), i = t.getRegistryItemId(), i.length > 0 && r.writeString(
58138
58194
  19,
58139
58195
  i
58196
+ ), i = t.getRegistryItemVersion(), i.length > 0 && r.writeString(
58197
+ 20,
58198
+ i
58140
58199
  ), i = t.getStatus(), i !== 0 && r.writeEnum(
58141
58200
  2,
58142
58201
  i
@@ -58241,6 +58300,13 @@ var tagger_pb = {};
58241
58300
  );
58242
58301
  }, proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.setRegistryItemId = function(t) {
58243
58302
  return e.Message.setProto3StringField(this, 19, t);
58303
+ }, proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.getRegistryItemVersion = function() {
58304
+ return (
58305
+ /** @type {string} */
58306
+ e.Message.getFieldWithDefault(this, 20, "")
58307
+ );
58308
+ }, proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.setRegistryItemVersion = function(t) {
58309
+ return e.Message.setProto3StringField(this, 20, t);
58244
58310
  }, proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.getStatus = function() {
58245
58311
  return (
58246
58312
  /** @type {!proto.viam.app.mltraining.v1.TrainingStatus} */
@@ -58509,7 +58575,8 @@ var packages_pb = {};
58509
58575
  }, proto.viam.app.packages.v1.FileInfo.toObject = function(t, r) {
58510
58576
  var i = {
58511
58577
  name: e.Message.getFieldWithDefault(r, 1, ""),
58512
- size: e.Message.getFieldWithDefault(r, 2, 0)
58578
+ size: e.Message.getFieldWithDefault(r, 2, 0),
58579
+ isDirectory: e.Message.getBooleanFieldWithDefault(r, 3, !1)
58513
58580
  };
58514
58581
  return t && (i.$jspbMessageInstance = r), i;
58515
58582
  }), proto.viam.app.packages.v1.FileInfo.deserializeBinary = function(t) {
@@ -58533,6 +58600,13 @@ var packages_pb = {};
58533
58600
  );
58534
58601
  t.setSize(o);
58535
58602
  break;
58603
+ case 3:
58604
+ var o = (
58605
+ /** @type {boolean} */
58606
+ r.readBool()
58607
+ );
58608
+ t.setIsDirectory(o);
58609
+ break;
58536
58610
  default:
58537
58611
  r.skipField();
58538
58612
  break;
@@ -58550,6 +58624,10 @@ var packages_pb = {};
58550
58624
  ), i = t.getSize(), i !== 0 && r.writeUint64(
58551
58625
  2,
58552
58626
  i
58627
+ ), i = /** @type {boolean} */
58628
+ e.Message.getField(t, 3), i != null && r.writeBool(
58629
+ 3,
58630
+ i
58553
58631
  );
58554
58632
  }, proto.viam.app.packages.v1.FileInfo.prototype.getName = function() {
58555
58633
  return (
@@ -58565,6 +58643,17 @@ var packages_pb = {};
58565
58643
  );
58566
58644
  }, proto.viam.app.packages.v1.FileInfo.prototype.setSize = function(t) {
58567
58645
  return e.Message.setProto3IntField(this, 2, t);
58646
+ }, proto.viam.app.packages.v1.FileInfo.prototype.getIsDirectory = function() {
58647
+ return (
58648
+ /** @type {boolean} */
58649
+ e.Message.getBooleanFieldWithDefault(this, 3, !1)
58650
+ );
58651
+ }, proto.viam.app.packages.v1.FileInfo.prototype.setIsDirectory = function(t) {
58652
+ return e.Message.setField(this, 3, t);
58653
+ }, proto.viam.app.packages.v1.FileInfo.prototype.clearIsDirectory = function() {
58654
+ return e.Message.setField(this, 3, void 0);
58655
+ }, proto.viam.app.packages.v1.FileInfo.prototype.hasIsDirectory = function() {
58656
+ return e.Message.getField(this, 3) != null;
58568
58657
  }, proto.viam.app.packages.v1.PackageInfo.repeatedFields_ = [5], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.packages.v1.PackageInfo.prototype.toObject = function(t) {
58569
58658
  return proto.viam.app.packages.v1.PackageInfo.toObject(t, this);
58570
58659
  }, proto.viam.app.packages.v1.PackageInfo.toObject = function(t, r) {
@@ -68042,7 +68131,7 @@ var packages_pb = {};
68042
68131
  var o = new e.BinaryWriter();
68043
68132
  return proto.viam.app.v1.UpdateRegistryItemResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
68044
68133
  }, proto.viam.app.v1.UpdateRegistryItemResponse.serializeBinaryToWriter = function(o, c) {
68045
- }, proto.viam.app.v1.ListRegistryItemsRequest.repeatedFields_ = [2, 3, 4, 5], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.v1.ListRegistryItemsRequest.prototype.toObject = function(o) {
68134
+ }, proto.viam.app.v1.ListRegistryItemsRequest.repeatedFields_ = [2, 3, 4, 5, 8], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.v1.ListRegistryItemsRequest.prototype.toObject = function(o) {
68046
68135
  return proto.viam.app.v1.ListRegistryItemsRequest.toObject(o, this);
68047
68136
  }, proto.viam.app.v1.ListRegistryItemsRequest.toObject = function(o, c) {
68048
68137
  var v, d = {
@@ -68052,7 +68141,8 @@ var packages_pb = {};
68052
68141
  platformsList: (v = e.Message.getRepeatedField(c, 4)) == null ? void 0 : v,
68053
68142
  statusesList: (v = e.Message.getRepeatedField(c, 5)) == null ? void 0 : v,
68054
68143
  searchTerm: e.Message.getFieldWithDefault(c, 6, ""),
68055
- pageToken: e.Message.getFieldWithDefault(c, 7, "")
68144
+ pageToken: e.Message.getFieldWithDefault(c, 7, ""),
68145
+ publicNamespacesList: (v = e.Message.getRepeatedField(c, 8)) == null ? void 0 : v
68056
68146
  };
68057
68147
  return o && (d.$jspbMessageInstance = c), d;
68058
68148
  }), proto.viam.app.v1.ListRegistryItemsRequest.deserializeBinary = function(o) {
@@ -68111,6 +68201,13 @@ var packages_pb = {};
68111
68201
  );
68112
68202
  o.setPageToken(m);
68113
68203
  break;
68204
+ case 8:
68205
+ var m = (
68206
+ /** @type {string} */
68207
+ c.readString()
68208
+ );
68209
+ o.addPublicNamespaces(m);
68210
+ break;
68114
68211
  default:
68115
68212
  c.skipField();
68116
68213
  break;
@@ -68146,6 +68243,9 @@ var packages_pb = {};
68146
68243
  e.Message.getField(o, 7), v != null && c.writeString(
68147
68244
  7,
68148
68245
  v
68246
+ ), v = o.getPublicNamespacesList(), v.length > 0 && c.writeRepeatedString(
68247
+ 8,
68248
+ v
68149
68249
  );
68150
68250
  }, proto.viam.app.v1.ListRegistryItemsRequest.prototype.getOrganizationId = function() {
68151
68251
  return (
@@ -68224,6 +68324,17 @@ var packages_pb = {};
68224
68324
  return e.Message.setField(this, 7, void 0);
68225
68325
  }, proto.viam.app.v1.ListRegistryItemsRequest.prototype.hasPageToken = function() {
68226
68326
  return e.Message.getField(this, 7) != null;
68327
+ }, proto.viam.app.v1.ListRegistryItemsRequest.prototype.getPublicNamespacesList = function() {
68328
+ return (
68329
+ /** @type {!Array<string>} */
68330
+ e.Message.getRepeatedField(this, 8)
68331
+ );
68332
+ }, proto.viam.app.v1.ListRegistryItemsRequest.prototype.setPublicNamespacesList = function(o) {
68333
+ return e.Message.setField(this, 8, o || []);
68334
+ }, proto.viam.app.v1.ListRegistryItemsRequest.prototype.addPublicNamespaces = function(o, c) {
68335
+ return e.Message.addToRepeatedField(this, 8, o, c);
68336
+ }, proto.viam.app.v1.ListRegistryItemsRequest.prototype.clearPublicNamespacesList = function() {
68337
+ return this.setPublicNamespacesList([]);
68227
68338
  }, proto.viam.app.v1.ListRegistryItemsResponse.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.v1.ListRegistryItemsResponse.prototype.toObject = function(o) {
68228
68339
  return proto.viam.app.v1.ListRegistryItemsResponse.toObject(o, this);
68229
68340
  }, proto.viam.app.v1.ListRegistryItemsResponse.toObject = function(o, c) {
@@ -76221,7 +76332,7 @@ class BoardClient {
76221
76332
  }
76222
76333
  async readAnalogReader(e, s = {}) {
76223
76334
  const { boardService: l } = this, u = new pb$f.ReadAnalogReaderRequest();
76224
- return u.setBoardName(this.name), u.setAnalogReaderName(e), u.setExtra(struct_pb.Struct.fromJavaScript(s)), this.options.requestLogger?.(u), (await promisify(l.readAnalogReader.bind(l), u)).getValue();
76335
+ return u.setBoardName(this.name), u.setAnalogReaderName(e), u.setExtra(struct_pb.Struct.fromJavaScript(s)), this.options.requestLogger?.(u), (await promisify(l.readAnalogReader.bind(l), u)).toObject();
76225
76336
  }
76226
76337
  async writeAnalog(e, s, l = {}) {
76227
76338
  const { boardService: u } = this, p = new pb$f.WriteAnalogRequest();
@@ -77200,7 +77311,7 @@ var stream_pb = {};
77200
77311
  }, s.object.extend(n, proto.proto.stream.v1);
77201
77312
  })(stream_pb);
77202
77313
  const pb$1 = /* @__PURE__ */ getDefaultExportFromCjs(stream_pb);
77203
- var proto_stream_v1_stream_pb = stream_pb, grpc$2 = grpcWebClient_umdExports$1.grpc, StreamService = function() {
77314
+ var stream_v1_stream_pb = stream_pb, grpc$2 = grpcWebClient_umdExports$1.grpc, StreamService = function() {
77204
77315
  function n() {
77205
77316
  }
77206
77317
  return n.serviceName = "proto.stream.v1.StreamService", n;
@@ -77210,24 +77321,24 @@ StreamService.ListStreams = {
77210
77321
  service: StreamService,
77211
77322
  requestStream: !1,
77212
77323
  responseStream: !1,
77213
- requestType: proto_stream_v1_stream_pb.ListStreamsRequest,
77214
- responseType: proto_stream_v1_stream_pb.ListStreamsResponse
77324
+ requestType: stream_v1_stream_pb.ListStreamsRequest,
77325
+ responseType: stream_v1_stream_pb.ListStreamsResponse
77215
77326
  };
77216
77327
  StreamService.AddStream = {
77217
77328
  methodName: "AddStream",
77218
77329
  service: StreamService,
77219
77330
  requestStream: !1,
77220
77331
  responseStream: !1,
77221
- requestType: proto_stream_v1_stream_pb.AddStreamRequest,
77222
- responseType: proto_stream_v1_stream_pb.AddStreamResponse
77332
+ requestType: stream_v1_stream_pb.AddStreamRequest,
77333
+ responseType: stream_v1_stream_pb.AddStreamResponse
77223
77334
  };
77224
77335
  StreamService.RemoveStream = {
77225
77336
  methodName: "RemoveStream",
77226
77337
  service: StreamService,
77227
77338
  requestStream: !1,
77228
77339
  responseStream: !1,
77229
- requestType: proto_stream_v1_stream_pb.RemoveStreamRequest,
77230
- responseType: proto_stream_v1_stream_pb.RemoveStreamResponse
77340
+ requestType: stream_v1_stream_pb.RemoveStreamRequest,
77341
+ responseType: stream_v1_stream_pb.RemoveStreamResponse
77231
77342
  };
77232
77343
  function StreamServiceClient(n, e) {
77233
77344
  this.serviceHost = n, this.options = e || {};
@@ -77308,9 +77419,9 @@ class StreamClient extends EventDispatcher {
77308
77419
  options;
77309
77420
  streams;
77310
77421
  constructor(e, s = {}) {
77311
- super(), this.client = e.createServiceClient(StreamServiceClient_1), this.options = s, this.streams = /* @__PURE__ */ new Set(), events.on("track", (l) => {
77422
+ super(), this.client = e.createServiceClient(StreamServiceClient_1), this.options = s, this.streams = /* @__PURE__ */ new Set(), e.on("track", (l) => {
77312
77423
  this.emit("track", l);
77313
- }), events.on(MachineConnectionEvent.RECONNECTED, () => {
77424
+ }), e.on(MachineConnectionEvent.CONNECTED, () => {
77314
77425
  for (const l of this.streams.values())
77315
77426
  this.add(l);
77316
77427
  });
@@ -77489,9 +77600,11 @@ class MotionClient {
77489
77600
  r
77490
77601
  )).toObject().executionId;
77491
77602
  }
77492
- async moveOnGlobe(e, s, l, u, p, g, t = {}) {
77493
- const { service: r } = this, i = new pb$9.MoveOnGlobeRequest();
77494
- return i.setName(this.name), i.setDestination(encodeGeoPoint(e)), i.setComponentName(encodeResourceName(s)), i.setMovementSensorName(encodeResourceName(l)), u && i.setHeading(u), p && i.setObstaclesList(p.map((c) => encodeGeoObstacle(c))), g && i.setMotionConfiguration(encodeMotionConfiguration(g)), i.setExtra(struct_pb.Struct.fromJavaScript(t)), this.options.requestLogger?.(i), (await promisify(r.moveOnGlobe.bind(r), i)).toObject().executionId;
77603
+ async moveOnGlobe(e, s, l, u, p, g, t, r = {}) {
77604
+ const { service: i } = this, o = new pb$9.MoveOnGlobeRequest();
77605
+ return o.setName(this.name), o.setDestination(encodeGeoPoint(e)), o.setComponentName(encodeResourceName(s)), o.setMovementSensorName(encodeResourceName(l)), u && o.setHeading(u), p && o.setObstaclesList(p.map((v) => encodeGeoGeometry(v))), t && o.setBoundingRegionsList(
77606
+ t.map((v) => encodeGeoGeometry(v))
77607
+ ), g && o.setMotionConfiguration(encodeMotionConfiguration(g)), o.setExtra(struct_pb.Struct.fromJavaScript(r)), this.options.requestLogger?.(o), (await promisify(i.moveOnGlobe.bind(i), o)).toObject().executionId;
77495
77608
  }
77496
77609
  async stopPlan(e, s = {}) {
77497
77610
  const { service: l } = this, u = new pb$9.StopPlanRequest();
@@ -78036,7 +78149,7 @@ class GenericClient {
78036
78149
  return doCommandFromClient(s, this.name, e, this.options);
78037
78150
  }
78038
78151
  }
78039
- const version = "0.16.0";
78152
+ const version = "0.17.0-rc.0";
78040
78153
  export {
78041
78154
  ArmClient,
78042
78155
  BaseClient,