@viamrobotics/sdk 0.2.4 → 0.2.5-next.1

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
@@ -13835,13 +13835,13 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
13835
13835
  for (; ; ) {
13836
13836
  if (!l(this.buffer, this.position, 5))
13837
13837
  return b;
13838
- var C = c(this.buffer, this.position, this.position + 5), q = new DataView(C.buffer, C.byteOffset, C.byteLength), W = n(q);
13838
+ var C = c(this.buffer, this.position, this.position + 5), L = new DataView(C.buffer, C.byteOffset, C.byteLength), W = n(L);
13839
13839
  if (!l(this.buffer, this.position, 5 + W))
13840
13840
  return b;
13841
- var z = c(this.buffer, this.position + 5, this.position + 5 + W);
13842
- if (this.position += 5 + W, r(q))
13843
- return b.push({ chunkType: u.TRAILERS, trailers: (f = z, new g.Metadata(o(f))) }), b;
13844
- b.push({ chunkType: u.MESSAGE, data: z });
13841
+ var x = c(this.buffer, this.position + 5, this.position + 5 + W);
13842
+ if (this.position += 5 + W, r(L))
13843
+ return b.push({ chunkType: u.TRAILERS, trailers: (f = x, new g.Metadata(o(f))) }), b;
13844
+ b.push({ chunkType: u.MESSAGE, data: x });
13845
13845
  }
13846
13846
  }, d;
13847
13847
  }();
@@ -20368,8 +20368,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
20368
20368
  M ? (y = M.getCode(), f = M.getMessage(), b.set("grpc-status", "".concat(M.getCode())), f !== void 0 && b.set("grpc-message", M.getMessage())) : (y = 0, b.set("grpc-status", "0"), f = "");
20369
20369
  var h = function(w) {
20370
20370
  var C = "";
20371
- return w.forEach(function(q, W) {
20372
- C += "".concat(q, ": ").concat(W.join(", "), `\r
20371
+ return w.forEach(function(L, W) {
20372
+ C += "".concat(L, ": ").concat(W.join(", "), `\r
20373
20373
  `);
20374
20374
  }), n(C);
20375
20375
  }(b), O = new ArrayBuffer(h.length + 5);
@@ -20407,7 +20407,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
20407
20407
  function v(h, O) {
20408
20408
  return i.__awaiter(this, void 0, void 0, function() {
20409
20409
  var w, C;
20410
- return i.__generator(this, function(q) {
20410
+ return i.__generator(this, function(L) {
20411
20411
  return M(O), w = function(W) {
20412
20412
  return u.grpc.CrossBrowserHttpTransport({ withCredentials: !1 })(W);
20413
20413
  }, !O?.accessToken || O?.externalAuthAddress && O?.externalAuthToEntity ? O && (O?.credentials || O?.accessToken) ? [2, y(h, w, O)] : [2, w] : ((C = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(O.accessToken)), [2, function(W) {
@@ -20418,22 +20418,22 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
20418
20418
  }
20419
20419
  function y(h, O, w) {
20420
20420
  return i.__awaiter(this, void 0, void 0, function() {
20421
- var C, q, W, z = this;
20421
+ var C, L, W, x = this;
20422
20422
  return i.__generator(this, function(U) {
20423
20423
  switch (U.label) {
20424
20424
  case 0:
20425
- return C = "", q = function() {
20426
- return i.__awaiter(z, void 0, void 0, function() {
20427
- var I, x, k, S, R, _, E, F, P, T;
20425
+ return C = "", L = function() {
20426
+ return i.__awaiter(x, void 0, void 0, function() {
20427
+ var I, z, k, S, R, _, E, F, P, T;
20428
20428
  return i.__generator(this, function(j) {
20429
20429
  switch (j.label) {
20430
20430
  case 0:
20431
20431
  return C != "" ? [3, 5] : (I = "", w.accessToken && w.accessToken !== "" ? [3, 2] : ((E = new n.AuthenticateRequest()).setEntity(w.authEntity ? w.authEntity : h.replace(/^(.*:\/\/)/, "")), (S = new n.Credentials()).setType((P = w.credentials) === null || P === void 0 ? void 0 : P.type), S.setPayload((T = w.credentials) === null || T === void 0 ? void 0 : T.payload), E.setCredentials(S), _ = new Promise(function(A, D) {
20432
- x = A, k = D;
20432
+ z = A, k = D;
20433
20433
  }), u.grpc.invoke(l.AuthService.Authenticate, { request: E, host: w.externalAuthAddress ? w.externalAuthAddress : h, transport: O, onMessage: function(A) {
20434
20434
  I = A.getAccessToken();
20435
20435
  }, onEnd: function(A, D, B) {
20436
- A == u.grpc.Code.OK ? x(F) : k(D);
20436
+ A == u.grpc.Code.OK ? z(F) : k(D);
20437
20437
  } }), [4, _]));
20438
20438
  case 1:
20439
20439
  return j.sent(), [3, 3];
@@ -20441,11 +20441,11 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
20441
20441
  I = w.accessToken, j.label = 3;
20442
20442
  case 3:
20443
20443
  return C = I, w.externalAuthAddress && w.externalAuthToEntity ? ((R = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(C)), _ = new Promise(function(A, D) {
20444
- x = A, k = D;
20444
+ z = A, k = D;
20445
20445
  }), I = "", (E = new n.AuthenticateToRequest()).setEntity(w.externalAuthToEntity), u.grpc.invoke(l.ExternalAuthService.AuthenticateTo, { request: E, host: w.externalAuthAddress, transport: O, metadata: R, onMessage: function(A) {
20446
20446
  I = A.getAccessToken();
20447
20447
  }, onEnd: function(A, D, B) {
20448
- A == u.grpc.Code.OK ? x(R) : k(D);
20448
+ A == u.grpc.Code.OK ? z(R) : k(D);
20449
20449
  } }), [4, _]) : [3, 5];
20450
20450
  case 4:
20451
20451
  j.sent(), C = I, j.label = 5;
@@ -20454,7 +20454,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
20454
20454
  }
20455
20455
  });
20456
20456
  });
20457
- }, [4, q()];
20457
+ }, [4, L()];
20458
20458
  case 1:
20459
20459
  return W = U.sent(), [2, function(I) {
20460
20460
  return new f(I, O, W);
@@ -20482,25 +20482,25 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
20482
20482
  }();
20483
20483
  function b(h, O, w) {
20484
20484
  return i.__awaiter(this, void 0, void 0, function() {
20485
- var C, q, W, z, U, I;
20486
- return i.__generator(this, function(x) {
20487
- switch (x.label) {
20485
+ var C, L, W, x, U, I;
20486
+ return i.__generator(this, function(z) {
20487
+ switch (z.label) {
20488
20488
  case 0:
20489
20489
  return C = i.__assign({}, w), [4, v(h, C)];
20490
20490
  case 1:
20491
- return q = x.sent(), I = new Promise(function(k, S) {
20492
- W = k, z = S;
20493
- }), u.grpc.unary(m.SignalingService.OptionalWebRTCConfig, { request: new c.OptionalWebRTCConfigRequest(), metadata: { "rpc-host": O }, host: h, transport: q, onEnd: function(k) {
20491
+ return L = z.sent(), I = new Promise(function(k, S) {
20492
+ W = k, x = S;
20493
+ }), u.grpc.unary(m.SignalingService.OptionalWebRTCConfig, { request: new c.OptionalWebRTCConfigRequest(), metadata: { "rpc-host": O }, host: h, transport: L, onEnd: function(k) {
20494
20494
  var S = k.status, R = k.statusMessage, _ = k.message;
20495
20495
  if (S === u.grpc.Code.OK && _) {
20496
20496
  if (!(U = _.getConfig()))
20497
20497
  return void W(new c.WebRTCConfig());
20498
20498
  W(U);
20499
20499
  } else
20500
- z(R);
20500
+ x(R);
20501
20501
  } }), [4, I];
20502
20502
  case 2:
20503
- if (x.sent(), !U)
20503
+ if (z.sent(), !U)
20504
20504
  throw new Error("no config");
20505
20505
  return [2, U];
20506
20506
  }
@@ -20533,7 +20533,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
20533
20533
  }
20534
20534
  }
20535
20535
  e.dialWebRTC = function(h, O, w) {
20536
- var C, q, W, z, U, I, x;
20536
+ var C, L, W, x, U, I, z;
20537
20537
  return i.__awaiter(this, void 0, void 0, function() {
20538
20538
  var k, S, R, _, E, F, P, T, j, A, D, B, G, V, Z, oe, re, ge, ae, ne, pe, ie, le, se, ce, ue, me = this;
20539
20539
  return i.__generator(this, function(J) {
@@ -20541,21 +20541,21 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
20541
20541
  case 0:
20542
20542
  return h = h.replace(/(\/)$/, ""), M(w), [4, b(h, O, w)];
20543
20543
  case 1:
20544
- return k = J.sent(), S = k.toObject().additionalIceServersList.map(function(L) {
20545
- return { urls: L.urlsList, credential: L.credential, username: L.username };
20544
+ return k = J.sent(), S = k.toObject().additionalIceServersList.map(function(q) {
20545
+ return { urls: q.urlsList, credential: q.credential, username: q.username };
20546
20546
  }), w || (w = {}), w.webrtcOptions ? (R = w.webrtcOptions).rtcConfig ? R.rtcConfig.iceServers = i.__spreadArray(i.__spreadArray([], R.rtcConfig.iceServers || [], !0), S, !0) : R.rtcConfig = { iceServers: S } : R = { disableTrickleICE: k.getDisableTrickle(), rtcConfig: { iceServers: S } }, [4, (0, d.newPeerConnectionForClient)(R !== void 0 && R.disableTrickleICE, R?.rtcConfig)];
20547
20547
  case 2:
20548
20548
  _ = J.sent(), E = _.pc, F = _.dc, P = !1, J.label = 3;
20549
20549
  case 3:
20550
- return J.trys.push([3, , 10, 11]), T = w, w && (T = i.__assign({}, w), w.accessToken || (T.authEntity = (C = w?.webrtcOptions) === null || C === void 0 ? void 0 : C.signalingAuthEntity, T.authEntity || (T.externalAuthAddress ? T.authEntity = (q = w.externalAuthAddress) === null || q === void 0 ? void 0 : q.replace(/^(.*:\/\/)/, "") : T.authEntity = h.replace(/^(.*:\/\/)/, "")), T.credentials = (W = w?.webrtcOptions) === null || W === void 0 ? void 0 : W.signalingCredentials, T.accessToken = (z = w?.webrtcOptions) === null || z === void 0 ? void 0 : z.signalingAccessToken), T.externalAuthAddress = (U = w?.webrtcOptions) === null || U === void 0 ? void 0 : U.signalingExternalAuthAddress, T.externalAuthToEntity = (I = w?.webrtcOptions) === null || I === void 0 ? void 0 : I.signalingExternalAuthToEntity), [4, v(h, T)];
20550
+ return J.trys.push([3, , 10, 11]), T = w, w && (T = i.__assign({}, w), w.accessToken || (T.authEntity = (C = w?.webrtcOptions) === null || C === void 0 ? void 0 : C.signalingAuthEntity, T.authEntity || (T.externalAuthAddress ? T.authEntity = (L = w.externalAuthAddress) === null || L === void 0 ? void 0 : L.replace(/^(.*:\/\/)/, "") : T.authEntity = h.replace(/^(.*:\/\/)/, "")), T.credentials = (W = w?.webrtcOptions) === null || W === void 0 ? void 0 : W.signalingCredentials, T.accessToken = (x = w?.webrtcOptions) === null || x === void 0 ? void 0 : x.signalingAccessToken), T.externalAuthAddress = (U = w?.webrtcOptions) === null || U === void 0 ? void 0 : U.signalingExternalAuthAddress, T.externalAuthToEntity = (I = w?.webrtcOptions) === null || I === void 0 ? void 0 : I.signalingExternalAuthToEntity), [4, v(h, T)];
20551
20551
  case 4:
20552
- return j = J.sent(), A = u.grpc.client(m.SignalingService.Call, { host: h, transport: j }), D = "", B = !1, G = function(L) {
20552
+ return j = J.sent(), A = u.grpc.client(m.SignalingService.Call, { host: h, transport: j }), D = "", B = !1, G = function(q) {
20553
20553
  if (!B) {
20554
20554
  B = !0;
20555
20555
  var N = new c.CallUpdateRequest();
20556
20556
  N.setUuid(D);
20557
20557
  var $ = new r.Status();
20558
- $.setCode(o.Code.UNKNOWN), $.setMessage(L), N.setError($), u.grpc.unary(m.SignalingService.CallUpdate, { request: N, metadata: { "rpc-host": O }, host: h, transport: j, onEnd: function(K) {
20558
+ $.setCode(o.Code.UNKNOWN), $.setMessage(q), N.setError($), u.grpc.unary(m.SignalingService.CallUpdate, { request: N, metadata: { "rpc-host": O }, host: h, transport: j, onEnd: function(K) {
20559
20559
  var H = K.status, Y = K.statusMessage, Q = K.message;
20560
20560
  H === u.grpc.Code.OK && Q || console.error(Y);
20561
20561
  } });
@@ -20563,17 +20563,17 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
20563
20563
  }, V = function() {
20564
20564
  if (!B) {
20565
20565
  B = !0;
20566
- var L = new c.CallUpdateRequest();
20567
- L.setUuid(D), L.setDone(!0), u.grpc.unary(m.SignalingService.CallUpdate, { request: L, metadata: { "rpc-host": O }, host: h, transport: j, onEnd: function(N) {
20566
+ var q = new c.CallUpdateRequest();
20567
+ q.setUuid(D), q.setDone(!0), u.grpc.unary(m.SignalingService.CallUpdate, { request: q, metadata: { "rpc-host": O }, host: h, transport: j, onEnd: function(N) {
20568
20568
  var $ = N.status, K = N.statusMessage, H = N.message;
20569
20569
  $ === u.grpc.Code.OK && H || console.error(K);
20570
20570
  } });
20571
20571
  }
20572
- }, oe = new Promise(function(L) {
20573
- Z = L;
20572
+ }, oe = new Promise(function(q) {
20573
+ Z = q;
20574
20574
  }), re = !1, R?.disableTrickleICE ? [3, 7] : [4, E.createOffer()];
20575
20575
  case 5:
20576
- return ge = J.sent(), ae = !1, E.onicecandidate = function(L) {
20576
+ return ge = J.sent(), ae = !1, E.onicecandidate = function(q) {
20577
20577
  return i.__awaiter(me, void 0, void 0, function() {
20578
20578
  var N, $;
20579
20579
  return i.__generator(this, function(K) {
@@ -20581,7 +20581,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
20581
20581
  case 0:
20582
20582
  return [4, oe];
20583
20583
  case 1:
20584
- return K.sent(), re ? [2] : L.candidate === null ? (ae = !0, V(), [2]) : (H = L.candidate, (Y = new c.ICECandidate()).setCandidate(H.candidate), H.sdpMid && Y.setSdpMid(H.sdpMid), H.sdpMLineIndex && Y.setSdpmLineIndex(H.sdpMLineIndex), H.usernameFragment && Y.setUsernameFragment(H.usernameFragment), N = Y, ($ = new c.CallUpdateRequest()).setUuid(D), $.setCandidate(N), u.grpc.unary(m.SignalingService.CallUpdate, { request: $, metadata: { "rpc-host": O }, host: h, transport: j, onEnd: function(Q) {
20584
+ return K.sent(), re ? [2] : q.candidate === null ? (ae = !0, V(), [2]) : (H = q.candidate, (Y = new c.ICECandidate()).setCandidate(H.candidate), H.sdpMid && Y.setSdpMid(H.sdpMid), H.sdpMLineIndex && Y.setSdpmLineIndex(H.sdpMLineIndex), H.usernameFragment && Y.setUsernameFragment(H.usernameFragment), N = Y, ($ = new c.CallUpdateRequest()).setUuid(D), $.setCandidate(N), u.grpc.unary(m.SignalingService.CallUpdate, { request: $, metadata: { "rpc-host": O }, host: h, transport: j, onEnd: function(Q) {
20585
20585
  var ee = Q.status, X = Q.statusMessage, te = Q.message;
20586
20586
  ee === u.grpc.Code.OK && te || re || ae || console.error("error sending candidate", X);
20587
20587
  } }), [2]);
@@ -20593,13 +20593,13 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
20593
20593
  case 6:
20594
20594
  J.sent(), J.label = 7;
20595
20595
  case 7:
20596
- return ne = !1, A.onMessage(function(L) {
20596
+ return ne = !1, A.onMessage(function(q) {
20597
20597
  return i.__awaiter(me, void 0, void 0, function() {
20598
20598
  var N, $, K, H, Y, Q;
20599
20599
  return i.__generator(this, function(ee) {
20600
20600
  switch (ee.label) {
20601
20601
  case 0:
20602
- return (N = L).hasInit() ? ne ? (G("got init stage more than once"), [2]) : ($ = N.getInit(), ne = !0, D = N.getUuid(), K = new RTCSessionDescription(JSON.parse(atob($.getSdp()))), [4, E.setRemoteDescription(K)]) : [3, 2];
20602
+ return (N = q).hasInit() ? ne ? (G("got init stage more than once"), [2]) : ($ = N.getInit(), ne = !0, D = N.getUuid(), K = new RTCSessionDescription(JSON.parse(atob($.getSdp()))), [4, E.setRemoteDescription(K)]) : [3, 2];
20603
20603
  case 1:
20604
20604
  return ee.sent(), Z(!0), R?.disableTrickleICE ? (re = !0, V(), [2]) : [3, 8];
20605
20605
  case 2:
@@ -20626,19 +20626,19 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
20626
20626
  var X, te;
20627
20627
  });
20628
20628
  });
20629
- }), le = new Promise(function(L, N) {
20630
- pe = L, ie = N;
20631
- }), A.onEnd(function(L, N, $) {
20632
- L !== u.grpc.Code.OK ? N !== "Response closed without headers" ? (console.error(N), ie(N)) : ie(new p.ConnectionClosedError("failed to dial")) : pe();
20629
+ }), le = new Promise(function(q, N) {
20630
+ pe = q, ie = N;
20631
+ }), A.onEnd(function(q, N, $) {
20632
+ q !== u.grpc.Code.OK ? N !== "Response closed without headers" ? (console.error(N), ie(N)) : ie(new p.ConnectionClosedError("failed to dial")) : pe();
20633
20633
  }), A.start({ "rpc-host": O }), se = new c.CallRequest(), ce = btoa(JSON.stringify(E.localDescription)), se.setSdp(ce), R && R.disableTrickleICE && se.setDisableTrickle(R.disableTrickleICE), A.send(se), (ue = new g.ClientChannel(E, F)).ready.then(function() {
20634
20634
  return pe();
20635
- }).catch(function(L) {
20636
- return ie(L);
20635
+ }).catch(function(q) {
20636
+ return ie(q);
20637
20637
  }), [4, le];
20638
20638
  case 8:
20639
20639
  return J.sent(), [4, ue.ready];
20640
20640
  case 9:
20641
- return J.sent(), re = !0, V(), w?.externalAuthAddress || (x = w?.credentials) === null || x === void 0 || x.type, P = !0, [2, { transportFactory: ue.transportFactory(), peerConnection: E }];
20641
+ return J.sent(), re = !0, V(), w?.externalAuthAddress || (z = w?.credentials) === null || z === void 0 || z.type, P = !0, [2, { transportFactory: ue.transportFactory(), peerConnection: E }];
20642
20642
  case 10:
20643
20643
  return P || E.close(), [7];
20644
20644
  case 11:
@@ -20742,7 +20742,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
20742
20742
  });
20743
20743
  };
20744
20744
  }, 655: (t, e, s) => {
20745
- s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => w, __asyncGenerator: () => O, __asyncValues: () => C, __await: () => h, __awaiter: () => l, __classPrivateFieldGet: () => I, __classPrivateFieldIn: () => k, __classPrivateFieldSet: () => x, __createBinding: () => m, __decorate: () => o, __exportStar: () => d, __extends: () => u, __generator: () => c, __importDefault: () => U, __importStar: () => z, __makeTemplateObject: () => q, __metadata: () => n, __param: () => r, __read: () => y, __rest: () => p, __spread: () => f, __spreadArray: () => M, __spreadArrays: () => b, __values: () => v });
20745
+ s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => w, __asyncGenerator: () => O, __asyncValues: () => C, __await: () => h, __awaiter: () => l, __classPrivateFieldGet: () => I, __classPrivateFieldIn: () => k, __classPrivateFieldSet: () => z, __createBinding: () => m, __decorate: () => o, __exportStar: () => d, __extends: () => u, __generator: () => c, __importDefault: () => U, __importStar: () => x, __makeTemplateObject: () => L, __metadata: () => n, __param: () => r, __read: () => y, __rest: () => p, __spread: () => f, __spreadArray: () => M, __spreadArrays: () => b, __values: () => v });
20746
20746
  var i = function(S, R) {
20747
20747
  return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, E) {
20748
20748
  _.__proto__ = E;
@@ -21015,7 +21015,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
21015
21015
  };
21016
21016
  }
21017
21017
  }
21018
- function q(S, R) {
21018
+ function L(S, R) {
21019
21019
  return Object.defineProperty ? Object.defineProperty(S, "raw", { value: R }) : S.raw = R, S;
21020
21020
  }
21021
21021
  var W = Object.create ? function(S, R) {
@@ -21023,7 +21023,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
21023
21023
  } : function(S, R) {
21024
21024
  S.default = R;
21025
21025
  };
21026
- function z(S) {
21026
+ function x(S) {
21027
21027
  if (S && S.__esModule)
21028
21028
  return S;
21029
21029
  var R = {};
@@ -21042,7 +21042,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
21042
21042
  throw new TypeError("Cannot read private member from an object whose class did not declare it");
21043
21043
  return _ === "m" ? E : _ === "a" ? E.call(S) : E ? E.value : R.get(S);
21044
21044
  }
21045
- function x(S, R, _, E, F) {
21045
+ function z(S, R, _, E, F) {
21046
21046
  if (E === "m")
21047
21047
  throw new TypeError("Private method is not writable");
21048
21048
  if (E === "a" && !F)
@@ -23252,21 +23252,21 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
23252
23252
  else if (this.position === this.buffer.byteLength)
23253
23253
  this.buffer = b, this.position = 0;
23254
23254
  else {
23255
- var w = this.buffer.byteLength - this.position, C = new Uint8Array(w + b.byteLength), q = v(this.buffer, this.position);
23256
- C.set(q, 0);
23255
+ var w = this.buffer.byteLength - this.position, C = new Uint8Array(w + b.byteLength), L = v(this.buffer, this.position);
23256
+ C.set(L, 0);
23257
23257
  var W = new Uint8Array(b);
23258
23258
  C.set(W, w), this.buffer = C, this.position = 0;
23259
23259
  }
23260
23260
  for (; ; ) {
23261
23261
  if (!d(this.buffer, this.position, 5))
23262
23262
  return O;
23263
- var z = v(this.buffer, this.position, this.position + 5), U = new DataView(z.buffer, z.byteOffset, z.byteLength), I = m(U);
23263
+ var x = v(this.buffer, this.position, this.position + 5), U = new DataView(x.buffer, x.byteOffset, x.byteLength), I = m(U);
23264
23264
  if (!d(this.buffer, this.position, 5 + I))
23265
23265
  return O;
23266
- var x = v(this.buffer, this.position + 5, this.position + 5 + I);
23266
+ var z = v(this.buffer, this.position + 5, this.position + 5 + I);
23267
23267
  if (this.position += 5 + I, c(U))
23268
- return O.push({ chunkType: o.TRAILERS, trailers: (h = x, new r.Metadata(l(h))) }), O;
23269
- O.push({ chunkType: o.MESSAGE, data: x });
23268
+ return O.push({ chunkType: o.TRAILERS, trailers: (h = z, new r.Metadata(l(h))) }), O;
23269
+ O.push({ chunkType: o.MESSAGE, data: z });
23270
23270
  }
23271
23271
  }, f;
23272
23272
  }();
@@ -23834,6 +23834,12 @@ const promisify = (t, e) => new Promise((s, i) => {
23834
23834
  return e.setObstaclesList(
23835
23835
  t.obstaclesList.map((s) => encodeGeometriesInFrame(s))
23836
23836
  ), e.setTransformsList(t.transformsList.map((s) => encodeTransform(s))), e;
23837
+ }, encodeGeoPoint = (t) => {
23838
+ const e = new common_pb.GeoPoint();
23839
+ return e.setLatitude(t.latitude), e.setLongitude(t.longitude), e;
23840
+ }, encodeGeoObstacle = (t) => {
23841
+ const e = new common_pb.GeoObstacle();
23842
+ return t.location && e.setLocation(encodeGeoPoint(t.location)), e.setGeometriesList(t.geometriesList.map((s) => encodeGeometry(s))), e;
23837
23843
  };
23838
23844
  var arm_pb = {};
23839
23845
  (function(t) {
@@ -24601,7 +24607,7 @@ var arm_pb = {};
24601
24607
  return e.Message.setProto3BooleanField(this, 1, o);
24602
24608
  }, s.object.extend(t, proto.viam.component.arm.v1);
24603
24609
  })(arm_pb);
24604
- var component_arm_v1_arm_pb = arm_pb, common_v1_common_pb$j = common_pb, grpc$k = grpcWebClient_umdExports.grpc, ArmService = function() {
24610
+ var component_arm_v1_arm_pb = arm_pb, common_v1_common_pb$k = common_pb, grpc$l = grpcWebClient_umdExports.grpc, ArmService = function() {
24605
24611
  function t() {
24606
24612
  }
24607
24613
  return t.serviceName = "viam.component.arm.v1.ArmService", t;
@@ -24659,31 +24665,31 @@ ArmService.DoCommand = {
24659
24665
  service: ArmService,
24660
24666
  requestStream: !1,
24661
24667
  responseStream: !1,
24662
- requestType: common_v1_common_pb$j.DoCommandRequest,
24663
- responseType: common_v1_common_pb$j.DoCommandResponse
24668
+ requestType: common_v1_common_pb$k.DoCommandRequest,
24669
+ responseType: common_v1_common_pb$k.DoCommandResponse
24664
24670
  };
24665
24671
  ArmService.GetKinematics = {
24666
24672
  methodName: "GetKinematics",
24667
24673
  service: ArmService,
24668
24674
  requestStream: !1,
24669
24675
  responseStream: !1,
24670
- requestType: common_v1_common_pb$j.GetKinematicsRequest,
24671
- responseType: common_v1_common_pb$j.GetKinematicsResponse
24676
+ requestType: common_v1_common_pb$k.GetKinematicsRequest,
24677
+ responseType: common_v1_common_pb$k.GetKinematicsResponse
24672
24678
  };
24673
24679
  ArmService.GetGeometries = {
24674
24680
  methodName: "GetGeometries",
24675
24681
  service: ArmService,
24676
24682
  requestStream: !1,
24677
24683
  responseStream: !1,
24678
- requestType: common_v1_common_pb$j.GetGeometriesRequest,
24679
- responseType: common_v1_common_pb$j.GetGeometriesResponse
24684
+ requestType: common_v1_common_pb$k.GetGeometriesRequest,
24685
+ responseType: common_v1_common_pb$k.GetGeometriesResponse
24680
24686
  };
24681
24687
  function ArmServiceClient(t, e) {
24682
24688
  this.serviceHost = t, this.options = e || {};
24683
24689
  }
24684
24690
  ArmServiceClient.prototype.getEndPosition = function t(e, s, i) {
24685
24691
  arguments.length === 2 && (i = arguments[1]);
24686
- var u = grpc$k.unary(ArmService.GetEndPosition, {
24692
+ var u = grpc$l.unary(ArmService.GetEndPosition, {
24687
24693
  request: e,
24688
24694
  host: this.serviceHost,
24689
24695
  metadata: s,
@@ -24691,7 +24697,7 @@ ArmServiceClient.prototype.getEndPosition = function t(e, s, i) {
24691
24697
  debug: this.options.debug,
24692
24698
  onEnd: function(g) {
24693
24699
  if (i)
24694
- if (g.status !== grpc$k.Code.OK) {
24700
+ if (g.status !== grpc$l.Code.OK) {
24695
24701
  var p = new Error(g.statusMessage);
24696
24702
  p.code = g.status, p.metadata = g.trailers, i(p, null);
24697
24703
  } else
@@ -24706,7 +24712,7 @@ ArmServiceClient.prototype.getEndPosition = function t(e, s, i) {
24706
24712
  };
24707
24713
  ArmServiceClient.prototype.moveToPosition = function t(e, s, i) {
24708
24714
  arguments.length === 2 && (i = arguments[1]);
24709
- var u = grpc$k.unary(ArmService.MoveToPosition, {
24715
+ var u = grpc$l.unary(ArmService.MoveToPosition, {
24710
24716
  request: e,
24711
24717
  host: this.serviceHost,
24712
24718
  metadata: s,
@@ -24714,7 +24720,7 @@ ArmServiceClient.prototype.moveToPosition = function t(e, s, i) {
24714
24720
  debug: this.options.debug,
24715
24721
  onEnd: function(g) {
24716
24722
  if (i)
24717
- if (g.status !== grpc$k.Code.OK) {
24723
+ if (g.status !== grpc$l.Code.OK) {
24718
24724
  var p = new Error(g.statusMessage);
24719
24725
  p.code = g.status, p.metadata = g.trailers, i(p, null);
24720
24726
  } else
@@ -24729,7 +24735,7 @@ ArmServiceClient.prototype.moveToPosition = function t(e, s, i) {
24729
24735
  };
24730
24736
  ArmServiceClient.prototype.getJointPositions = function t(e, s, i) {
24731
24737
  arguments.length === 2 && (i = arguments[1]);
24732
- var u = grpc$k.unary(ArmService.GetJointPositions, {
24738
+ var u = grpc$l.unary(ArmService.GetJointPositions, {
24733
24739
  request: e,
24734
24740
  host: this.serviceHost,
24735
24741
  metadata: s,
@@ -24737,7 +24743,7 @@ ArmServiceClient.prototype.getJointPositions = function t(e, s, i) {
24737
24743
  debug: this.options.debug,
24738
24744
  onEnd: function(g) {
24739
24745
  if (i)
24740
- if (g.status !== grpc$k.Code.OK) {
24746
+ if (g.status !== grpc$l.Code.OK) {
24741
24747
  var p = new Error(g.statusMessage);
24742
24748
  p.code = g.status, p.metadata = g.trailers, i(p, null);
24743
24749
  } else
@@ -24752,7 +24758,7 @@ ArmServiceClient.prototype.getJointPositions = function t(e, s, i) {
24752
24758
  };
24753
24759
  ArmServiceClient.prototype.moveToJointPositions = function t(e, s, i) {
24754
24760
  arguments.length === 2 && (i = arguments[1]);
24755
- var u = grpc$k.unary(ArmService.MoveToJointPositions, {
24761
+ var u = grpc$l.unary(ArmService.MoveToJointPositions, {
24756
24762
  request: e,
24757
24763
  host: this.serviceHost,
24758
24764
  metadata: s,
@@ -24760,7 +24766,7 @@ ArmServiceClient.prototype.moveToJointPositions = function t(e, s, i) {
24760
24766
  debug: this.options.debug,
24761
24767
  onEnd: function(g) {
24762
24768
  if (i)
24763
- if (g.status !== grpc$k.Code.OK) {
24769
+ if (g.status !== grpc$l.Code.OK) {
24764
24770
  var p = new Error(g.statusMessage);
24765
24771
  p.code = g.status, p.metadata = g.trailers, i(p, null);
24766
24772
  } else
@@ -24775,7 +24781,7 @@ ArmServiceClient.prototype.moveToJointPositions = function t(e, s, i) {
24775
24781
  };
24776
24782
  ArmServiceClient.prototype.stop = function t(e, s, i) {
24777
24783
  arguments.length === 2 && (i = arguments[1]);
24778
- var u = grpc$k.unary(ArmService.Stop, {
24784
+ var u = grpc$l.unary(ArmService.Stop, {
24779
24785
  request: e,
24780
24786
  host: this.serviceHost,
24781
24787
  metadata: s,
@@ -24783,7 +24789,7 @@ ArmServiceClient.prototype.stop = function t(e, s, i) {
24783
24789
  debug: this.options.debug,
24784
24790
  onEnd: function(g) {
24785
24791
  if (i)
24786
- if (g.status !== grpc$k.Code.OK) {
24792
+ if (g.status !== grpc$l.Code.OK) {
24787
24793
  var p = new Error(g.statusMessage);
24788
24794
  p.code = g.status, p.metadata = g.trailers, i(p, null);
24789
24795
  } else
@@ -24798,7 +24804,7 @@ ArmServiceClient.prototype.stop = function t(e, s, i) {
24798
24804
  };
24799
24805
  ArmServiceClient.prototype.isMoving = function t(e, s, i) {
24800
24806
  arguments.length === 2 && (i = arguments[1]);
24801
- var u = grpc$k.unary(ArmService.IsMoving, {
24807
+ var u = grpc$l.unary(ArmService.IsMoving, {
24802
24808
  request: e,
24803
24809
  host: this.serviceHost,
24804
24810
  metadata: s,
@@ -24806,7 +24812,7 @@ ArmServiceClient.prototype.isMoving = function t(e, s, i) {
24806
24812
  debug: this.options.debug,
24807
24813
  onEnd: function(g) {
24808
24814
  if (i)
24809
- if (g.status !== grpc$k.Code.OK) {
24815
+ if (g.status !== grpc$l.Code.OK) {
24810
24816
  var p = new Error(g.statusMessage);
24811
24817
  p.code = g.status, p.metadata = g.trailers, i(p, null);
24812
24818
  } else
@@ -24821,7 +24827,7 @@ ArmServiceClient.prototype.isMoving = function t(e, s, i) {
24821
24827
  };
24822
24828
  ArmServiceClient.prototype.doCommand = function t(e, s, i) {
24823
24829
  arguments.length === 2 && (i = arguments[1]);
24824
- var u = grpc$k.unary(ArmService.DoCommand, {
24830
+ var u = grpc$l.unary(ArmService.DoCommand, {
24825
24831
  request: e,
24826
24832
  host: this.serviceHost,
24827
24833
  metadata: s,
@@ -24829,7 +24835,7 @@ ArmServiceClient.prototype.doCommand = function t(e, s, i) {
24829
24835
  debug: this.options.debug,
24830
24836
  onEnd: function(g) {
24831
24837
  if (i)
24832
- if (g.status !== grpc$k.Code.OK) {
24838
+ if (g.status !== grpc$l.Code.OK) {
24833
24839
  var p = new Error(g.statusMessage);
24834
24840
  p.code = g.status, p.metadata = g.trailers, i(p, null);
24835
24841
  } else
@@ -24844,7 +24850,7 @@ ArmServiceClient.prototype.doCommand = function t(e, s, i) {
24844
24850
  };
24845
24851
  ArmServiceClient.prototype.getKinematics = function t(e, s, i) {
24846
24852
  arguments.length === 2 && (i = arguments[1]);
24847
- var u = grpc$k.unary(ArmService.GetKinematics, {
24853
+ var u = grpc$l.unary(ArmService.GetKinematics, {
24848
24854
  request: e,
24849
24855
  host: this.serviceHost,
24850
24856
  metadata: s,
@@ -24852,7 +24858,7 @@ ArmServiceClient.prototype.getKinematics = function t(e, s, i) {
24852
24858
  debug: this.options.debug,
24853
24859
  onEnd: function(g) {
24854
24860
  if (i)
24855
- if (g.status !== grpc$k.Code.OK) {
24861
+ if (g.status !== grpc$l.Code.OK) {
24856
24862
  var p = new Error(g.statusMessage);
24857
24863
  p.code = g.status, p.metadata = g.trailers, i(p, null);
24858
24864
  } else
@@ -24867,7 +24873,7 @@ ArmServiceClient.prototype.getKinematics = function t(e, s, i) {
24867
24873
  };
24868
24874
  ArmServiceClient.prototype.getGeometries = function t(e, s, i) {
24869
24875
  arguments.length === 2 && (i = arguments[1]);
24870
- var u = grpc$k.unary(ArmService.GetGeometries, {
24876
+ var u = grpc$l.unary(ArmService.GetGeometries, {
24871
24877
  request: e,
24872
24878
  host: this.serviceHost,
24873
24879
  metadata: s,
@@ -24875,7 +24881,7 @@ ArmServiceClient.prototype.getGeometries = function t(e, s, i) {
24875
24881
  debug: this.options.debug,
24876
24882
  onEnd: function(g) {
24877
24883
  if (i)
24878
- if (g.status !== grpc$k.Code.OK) {
24884
+ if (g.status !== grpc$l.Code.OK) {
24879
24885
  var p = new Error(g.statusMessage);
24880
24886
  p.code = g.status, p.metadata = g.trailers, i(p, null);
24881
24887
  } else
@@ -25714,7 +25720,7 @@ var ArmServiceClient_1 = ArmServiceClient, base_pb = {};
25714
25720
  return e.Message.setProto3FloatField(this, 2, o);
25715
25721
  }, s.object.extend(t, proto.viam.component.base.v1);
25716
25722
  })(base_pb);
25717
- var component_base_v1_base_pb = base_pb, common_v1_common_pb$i = common_pb, grpc$j = grpcWebClient_umdExports.grpc, BaseService = function() {
25723
+ var component_base_v1_base_pb = base_pb, common_v1_common_pb$j = common_pb, grpc$k = grpcWebClient_umdExports.grpc, BaseService = function() {
25718
25724
  function t() {
25719
25725
  }
25720
25726
  return t.serviceName = "viam.component.base.v1.BaseService", t;
@@ -25772,16 +25778,16 @@ BaseService.DoCommand = {
25772
25778
  service: BaseService,
25773
25779
  requestStream: !1,
25774
25780
  responseStream: !1,
25775
- requestType: common_v1_common_pb$i.DoCommandRequest,
25776
- responseType: common_v1_common_pb$i.DoCommandResponse
25781
+ requestType: common_v1_common_pb$j.DoCommandRequest,
25782
+ responseType: common_v1_common_pb$j.DoCommandResponse
25777
25783
  };
25778
25784
  BaseService.GetGeometries = {
25779
25785
  methodName: "GetGeometries",
25780
25786
  service: BaseService,
25781
25787
  requestStream: !1,
25782
25788
  responseStream: !1,
25783
- requestType: common_v1_common_pb$i.GetGeometriesRequest,
25784
- responseType: common_v1_common_pb$i.GetGeometriesResponse
25789
+ requestType: common_v1_common_pb$j.GetGeometriesRequest,
25790
+ responseType: common_v1_common_pb$j.GetGeometriesResponse
25785
25791
  };
25786
25792
  BaseService.GetProperties = {
25787
25793
  methodName: "GetProperties",
@@ -25796,7 +25802,7 @@ function BaseServiceClient(t, e) {
25796
25802
  }
25797
25803
  BaseServiceClient.prototype.moveStraight = function t(e, s, i) {
25798
25804
  arguments.length === 2 && (i = arguments[1]);
25799
- var u = grpc$j.unary(BaseService.MoveStraight, {
25805
+ var u = grpc$k.unary(BaseService.MoveStraight, {
25800
25806
  request: e,
25801
25807
  host: this.serviceHost,
25802
25808
  metadata: s,
@@ -25804,7 +25810,7 @@ BaseServiceClient.prototype.moveStraight = function t(e, s, i) {
25804
25810
  debug: this.options.debug,
25805
25811
  onEnd: function(g) {
25806
25812
  if (i)
25807
- if (g.status !== grpc$j.Code.OK) {
25813
+ if (g.status !== grpc$k.Code.OK) {
25808
25814
  var p = new Error(g.statusMessage);
25809
25815
  p.code = g.status, p.metadata = g.trailers, i(p, null);
25810
25816
  } else
@@ -25819,7 +25825,7 @@ BaseServiceClient.prototype.moveStraight = function t(e, s, i) {
25819
25825
  };
25820
25826
  BaseServiceClient.prototype.spin = function t(e, s, i) {
25821
25827
  arguments.length === 2 && (i = arguments[1]);
25822
- var u = grpc$j.unary(BaseService.Spin, {
25828
+ var u = grpc$k.unary(BaseService.Spin, {
25823
25829
  request: e,
25824
25830
  host: this.serviceHost,
25825
25831
  metadata: s,
@@ -25827,7 +25833,7 @@ BaseServiceClient.prototype.spin = function t(e, s, i) {
25827
25833
  debug: this.options.debug,
25828
25834
  onEnd: function(g) {
25829
25835
  if (i)
25830
- if (g.status !== grpc$j.Code.OK) {
25836
+ if (g.status !== grpc$k.Code.OK) {
25831
25837
  var p = new Error(g.statusMessage);
25832
25838
  p.code = g.status, p.metadata = g.trailers, i(p, null);
25833
25839
  } else
@@ -25842,7 +25848,7 @@ BaseServiceClient.prototype.spin = function t(e, s, i) {
25842
25848
  };
25843
25849
  BaseServiceClient.prototype.setPower = function t(e, s, i) {
25844
25850
  arguments.length === 2 && (i = arguments[1]);
25845
- var u = grpc$j.unary(BaseService.SetPower, {
25851
+ var u = grpc$k.unary(BaseService.SetPower, {
25846
25852
  request: e,
25847
25853
  host: this.serviceHost,
25848
25854
  metadata: s,
@@ -25850,7 +25856,7 @@ BaseServiceClient.prototype.setPower = function t(e, s, i) {
25850
25856
  debug: this.options.debug,
25851
25857
  onEnd: function(g) {
25852
25858
  if (i)
25853
- if (g.status !== grpc$j.Code.OK) {
25859
+ if (g.status !== grpc$k.Code.OK) {
25854
25860
  var p = new Error(g.statusMessage);
25855
25861
  p.code = g.status, p.metadata = g.trailers, i(p, null);
25856
25862
  } else
@@ -25865,7 +25871,7 @@ BaseServiceClient.prototype.setPower = function t(e, s, i) {
25865
25871
  };
25866
25872
  BaseServiceClient.prototype.setVelocity = function t(e, s, i) {
25867
25873
  arguments.length === 2 && (i = arguments[1]);
25868
- var u = grpc$j.unary(BaseService.SetVelocity, {
25874
+ var u = grpc$k.unary(BaseService.SetVelocity, {
25869
25875
  request: e,
25870
25876
  host: this.serviceHost,
25871
25877
  metadata: s,
@@ -25873,7 +25879,7 @@ BaseServiceClient.prototype.setVelocity = function t(e, s, i) {
25873
25879
  debug: this.options.debug,
25874
25880
  onEnd: function(g) {
25875
25881
  if (i)
25876
- if (g.status !== grpc$j.Code.OK) {
25882
+ if (g.status !== grpc$k.Code.OK) {
25877
25883
  var p = new Error(g.statusMessage);
25878
25884
  p.code = g.status, p.metadata = g.trailers, i(p, null);
25879
25885
  } else
@@ -25888,7 +25894,7 @@ BaseServiceClient.prototype.setVelocity = function t(e, s, i) {
25888
25894
  };
25889
25895
  BaseServiceClient.prototype.stop = function t(e, s, i) {
25890
25896
  arguments.length === 2 && (i = arguments[1]);
25891
- var u = grpc$j.unary(BaseService.Stop, {
25897
+ var u = grpc$k.unary(BaseService.Stop, {
25892
25898
  request: e,
25893
25899
  host: this.serviceHost,
25894
25900
  metadata: s,
@@ -25896,7 +25902,7 @@ BaseServiceClient.prototype.stop = function t(e, s, i) {
25896
25902
  debug: this.options.debug,
25897
25903
  onEnd: function(g) {
25898
25904
  if (i)
25899
- if (g.status !== grpc$j.Code.OK) {
25905
+ if (g.status !== grpc$k.Code.OK) {
25900
25906
  var p = new Error(g.statusMessage);
25901
25907
  p.code = g.status, p.metadata = g.trailers, i(p, null);
25902
25908
  } else
@@ -25911,7 +25917,7 @@ BaseServiceClient.prototype.stop = function t(e, s, i) {
25911
25917
  };
25912
25918
  BaseServiceClient.prototype.isMoving = function t(e, s, i) {
25913
25919
  arguments.length === 2 && (i = arguments[1]);
25914
- var u = grpc$j.unary(BaseService.IsMoving, {
25920
+ var u = grpc$k.unary(BaseService.IsMoving, {
25915
25921
  request: e,
25916
25922
  host: this.serviceHost,
25917
25923
  metadata: s,
@@ -25919,7 +25925,7 @@ BaseServiceClient.prototype.isMoving = function t(e, s, i) {
25919
25925
  debug: this.options.debug,
25920
25926
  onEnd: function(g) {
25921
25927
  if (i)
25922
- if (g.status !== grpc$j.Code.OK) {
25928
+ if (g.status !== grpc$k.Code.OK) {
25923
25929
  var p = new Error(g.statusMessage);
25924
25930
  p.code = g.status, p.metadata = g.trailers, i(p, null);
25925
25931
  } else
@@ -25934,7 +25940,7 @@ BaseServiceClient.prototype.isMoving = function t(e, s, i) {
25934
25940
  };
25935
25941
  BaseServiceClient.prototype.doCommand = function t(e, s, i) {
25936
25942
  arguments.length === 2 && (i = arguments[1]);
25937
- var u = grpc$j.unary(BaseService.DoCommand, {
25943
+ var u = grpc$k.unary(BaseService.DoCommand, {
25938
25944
  request: e,
25939
25945
  host: this.serviceHost,
25940
25946
  metadata: s,
@@ -25942,7 +25948,7 @@ BaseServiceClient.prototype.doCommand = function t(e, s, i) {
25942
25948
  debug: this.options.debug,
25943
25949
  onEnd: function(g) {
25944
25950
  if (i)
25945
- if (g.status !== grpc$j.Code.OK) {
25951
+ if (g.status !== grpc$k.Code.OK) {
25946
25952
  var p = new Error(g.statusMessage);
25947
25953
  p.code = g.status, p.metadata = g.trailers, i(p, null);
25948
25954
  } else
@@ -25957,7 +25963,7 @@ BaseServiceClient.prototype.doCommand = function t(e, s, i) {
25957
25963
  };
25958
25964
  BaseServiceClient.prototype.getGeometries = function t(e, s, i) {
25959
25965
  arguments.length === 2 && (i = arguments[1]);
25960
- var u = grpc$j.unary(BaseService.GetGeometries, {
25966
+ var u = grpc$k.unary(BaseService.GetGeometries, {
25961
25967
  request: e,
25962
25968
  host: this.serviceHost,
25963
25969
  metadata: s,
@@ -25965,7 +25971,7 @@ BaseServiceClient.prototype.getGeometries = function t(e, s, i) {
25965
25971
  debug: this.options.debug,
25966
25972
  onEnd: function(g) {
25967
25973
  if (i)
25968
- if (g.status !== grpc$j.Code.OK) {
25974
+ if (g.status !== grpc$k.Code.OK) {
25969
25975
  var p = new Error(g.statusMessage);
25970
25976
  p.code = g.status, p.metadata = g.trailers, i(p, null);
25971
25977
  } else
@@ -25980,7 +25986,7 @@ BaseServiceClient.prototype.getGeometries = function t(e, s, i) {
25980
25986
  };
25981
25987
  BaseServiceClient.prototype.getProperties = function t(e, s, i) {
25982
25988
  arguments.length === 2 && (i = arguments[1]);
25983
- var u = grpc$j.unary(BaseService.GetProperties, {
25989
+ var u = grpc$k.unary(BaseService.GetProperties, {
25984
25990
  request: e,
25985
25991
  host: this.serviceHost,
25986
25992
  metadata: s,
@@ -25988,7 +25994,7 @@ BaseServiceClient.prototype.getProperties = function t(e, s, i) {
25988
25994
  debug: this.options.debug,
25989
25995
  onEnd: function(g) {
25990
25996
  if (i)
25991
- if (g.status !== grpc$j.Code.OK) {
25997
+ if (g.status !== grpc$k.Code.OK) {
25992
25998
  var p = new Error(g.statusMessage);
25993
25999
  p.code = g.status, p.metadata = g.trailers, i(p, null);
25994
26000
  } else
@@ -27272,7 +27278,7 @@ var BaseServiceClient_1 = BaseServiceClient, board_pb = {};
27272
27278
  POWER_MODE_OFFLINE_DEEP: 2
27273
27279
  }, s.object.extend(t, proto.viam.component.board.v1);
27274
27280
  })(board_pb);
27275
- var component_board_v1_board_pb = board_pb, common_v1_common_pb$h = common_pb, grpc$i = grpcWebClient_umdExports.grpc, BoardService = function() {
27281
+ var component_board_v1_board_pb = board_pb, common_v1_common_pb$i = common_pb, grpc$j = grpcWebClient_umdExports.grpc, BoardService = function() {
27276
27282
  function t() {
27277
27283
  }
27278
27284
  return t.serviceName = "viam.component.board.v1.BoardService", t;
@@ -27338,8 +27344,8 @@ BoardService.DoCommand = {
27338
27344
  service: BoardService,
27339
27345
  requestStream: !1,
27340
27346
  responseStream: !1,
27341
- requestType: common_v1_common_pb$h.DoCommandRequest,
27342
- responseType: common_v1_common_pb$h.DoCommandResponse
27347
+ requestType: common_v1_common_pb$i.DoCommandRequest,
27348
+ responseType: common_v1_common_pb$i.DoCommandResponse
27343
27349
  };
27344
27350
  BoardService.ReadAnalogReader = {
27345
27351
  methodName: "ReadAnalogReader",
@@ -27370,15 +27376,15 @@ BoardService.GetGeometries = {
27370
27376
  service: BoardService,
27371
27377
  requestStream: !1,
27372
27378
  responseStream: !1,
27373
- requestType: common_v1_common_pb$h.GetGeometriesRequest,
27374
- responseType: common_v1_common_pb$h.GetGeometriesResponse
27379
+ requestType: common_v1_common_pb$i.GetGeometriesRequest,
27380
+ responseType: common_v1_common_pb$i.GetGeometriesResponse
27375
27381
  };
27376
27382
  function BoardServiceClient(t, e) {
27377
27383
  this.serviceHost = t, this.options = e || {};
27378
27384
  }
27379
27385
  BoardServiceClient.prototype.status = function t(e, s, i) {
27380
27386
  arguments.length === 2 && (i = arguments[1]);
27381
- var u = grpc$i.unary(BoardService.Status, {
27387
+ var u = grpc$j.unary(BoardService.Status, {
27382
27388
  request: e,
27383
27389
  host: this.serviceHost,
27384
27390
  metadata: s,
@@ -27386,7 +27392,7 @@ BoardServiceClient.prototype.status = function t(e, s, i) {
27386
27392
  debug: this.options.debug,
27387
27393
  onEnd: function(g) {
27388
27394
  if (i)
27389
- if (g.status !== grpc$i.Code.OK) {
27395
+ if (g.status !== grpc$j.Code.OK) {
27390
27396
  var p = new Error(g.statusMessage);
27391
27397
  p.code = g.status, p.metadata = g.trailers, i(p, null);
27392
27398
  } else
@@ -27401,7 +27407,7 @@ BoardServiceClient.prototype.status = function t(e, s, i) {
27401
27407
  };
27402
27408
  BoardServiceClient.prototype.setGPIO = function t(e, s, i) {
27403
27409
  arguments.length === 2 && (i = arguments[1]);
27404
- var u = grpc$i.unary(BoardService.SetGPIO, {
27410
+ var u = grpc$j.unary(BoardService.SetGPIO, {
27405
27411
  request: e,
27406
27412
  host: this.serviceHost,
27407
27413
  metadata: s,
@@ -27409,7 +27415,7 @@ BoardServiceClient.prototype.setGPIO = function t(e, s, i) {
27409
27415
  debug: this.options.debug,
27410
27416
  onEnd: function(g) {
27411
27417
  if (i)
27412
- if (g.status !== grpc$i.Code.OK) {
27418
+ if (g.status !== grpc$j.Code.OK) {
27413
27419
  var p = new Error(g.statusMessage);
27414
27420
  p.code = g.status, p.metadata = g.trailers, i(p, null);
27415
27421
  } else
@@ -27424,7 +27430,7 @@ BoardServiceClient.prototype.setGPIO = function t(e, s, i) {
27424
27430
  };
27425
27431
  BoardServiceClient.prototype.getGPIO = function t(e, s, i) {
27426
27432
  arguments.length === 2 && (i = arguments[1]);
27427
- var u = grpc$i.unary(BoardService.GetGPIO, {
27433
+ var u = grpc$j.unary(BoardService.GetGPIO, {
27428
27434
  request: e,
27429
27435
  host: this.serviceHost,
27430
27436
  metadata: s,
@@ -27432,7 +27438,7 @@ BoardServiceClient.prototype.getGPIO = function t(e, s, i) {
27432
27438
  debug: this.options.debug,
27433
27439
  onEnd: function(g) {
27434
27440
  if (i)
27435
- if (g.status !== grpc$i.Code.OK) {
27441
+ if (g.status !== grpc$j.Code.OK) {
27436
27442
  var p = new Error(g.statusMessage);
27437
27443
  p.code = g.status, p.metadata = g.trailers, i(p, null);
27438
27444
  } else
@@ -27447,7 +27453,7 @@ BoardServiceClient.prototype.getGPIO = function t(e, s, i) {
27447
27453
  };
27448
27454
  BoardServiceClient.prototype.pWM = function t(e, s, i) {
27449
27455
  arguments.length === 2 && (i = arguments[1]);
27450
- var u = grpc$i.unary(BoardService.PWM, {
27456
+ var u = grpc$j.unary(BoardService.PWM, {
27451
27457
  request: e,
27452
27458
  host: this.serviceHost,
27453
27459
  metadata: s,
@@ -27455,7 +27461,7 @@ BoardServiceClient.prototype.pWM = function t(e, s, i) {
27455
27461
  debug: this.options.debug,
27456
27462
  onEnd: function(g) {
27457
27463
  if (i)
27458
- if (g.status !== grpc$i.Code.OK) {
27464
+ if (g.status !== grpc$j.Code.OK) {
27459
27465
  var p = new Error(g.statusMessage);
27460
27466
  p.code = g.status, p.metadata = g.trailers, i(p, null);
27461
27467
  } else
@@ -27470,7 +27476,7 @@ BoardServiceClient.prototype.pWM = function t(e, s, i) {
27470
27476
  };
27471
27477
  BoardServiceClient.prototype.setPWM = function t(e, s, i) {
27472
27478
  arguments.length === 2 && (i = arguments[1]);
27473
- var u = grpc$i.unary(BoardService.SetPWM, {
27479
+ var u = grpc$j.unary(BoardService.SetPWM, {
27474
27480
  request: e,
27475
27481
  host: this.serviceHost,
27476
27482
  metadata: s,
@@ -27478,7 +27484,7 @@ BoardServiceClient.prototype.setPWM = function t(e, s, i) {
27478
27484
  debug: this.options.debug,
27479
27485
  onEnd: function(g) {
27480
27486
  if (i)
27481
- if (g.status !== grpc$i.Code.OK) {
27487
+ if (g.status !== grpc$j.Code.OK) {
27482
27488
  var p = new Error(g.statusMessage);
27483
27489
  p.code = g.status, p.metadata = g.trailers, i(p, null);
27484
27490
  } else
@@ -27493,7 +27499,7 @@ BoardServiceClient.prototype.setPWM = function t(e, s, i) {
27493
27499
  };
27494
27500
  BoardServiceClient.prototype.pWMFrequency = function t(e, s, i) {
27495
27501
  arguments.length === 2 && (i = arguments[1]);
27496
- var u = grpc$i.unary(BoardService.PWMFrequency, {
27502
+ var u = grpc$j.unary(BoardService.PWMFrequency, {
27497
27503
  request: e,
27498
27504
  host: this.serviceHost,
27499
27505
  metadata: s,
@@ -27501,7 +27507,7 @@ BoardServiceClient.prototype.pWMFrequency = function t(e, s, i) {
27501
27507
  debug: this.options.debug,
27502
27508
  onEnd: function(g) {
27503
27509
  if (i)
27504
- if (g.status !== grpc$i.Code.OK) {
27510
+ if (g.status !== grpc$j.Code.OK) {
27505
27511
  var p = new Error(g.statusMessage);
27506
27512
  p.code = g.status, p.metadata = g.trailers, i(p, null);
27507
27513
  } else
@@ -27516,7 +27522,7 @@ BoardServiceClient.prototype.pWMFrequency = function t(e, s, i) {
27516
27522
  };
27517
27523
  BoardServiceClient.prototype.setPWMFrequency = function t(e, s, i) {
27518
27524
  arguments.length === 2 && (i = arguments[1]);
27519
- var u = grpc$i.unary(BoardService.SetPWMFrequency, {
27525
+ var u = grpc$j.unary(BoardService.SetPWMFrequency, {
27520
27526
  request: e,
27521
27527
  host: this.serviceHost,
27522
27528
  metadata: s,
@@ -27524,7 +27530,7 @@ BoardServiceClient.prototype.setPWMFrequency = function t(e, s, i) {
27524
27530
  debug: this.options.debug,
27525
27531
  onEnd: function(g) {
27526
27532
  if (i)
27527
- if (g.status !== grpc$i.Code.OK) {
27533
+ if (g.status !== grpc$j.Code.OK) {
27528
27534
  var p = new Error(g.statusMessage);
27529
27535
  p.code = g.status, p.metadata = g.trailers, i(p, null);
27530
27536
  } else
@@ -27539,7 +27545,7 @@ BoardServiceClient.prototype.setPWMFrequency = function t(e, s, i) {
27539
27545
  };
27540
27546
  BoardServiceClient.prototype.doCommand = function t(e, s, i) {
27541
27547
  arguments.length === 2 && (i = arguments[1]);
27542
- var u = grpc$i.unary(BoardService.DoCommand, {
27548
+ var u = grpc$j.unary(BoardService.DoCommand, {
27543
27549
  request: e,
27544
27550
  host: this.serviceHost,
27545
27551
  metadata: s,
@@ -27547,7 +27553,7 @@ BoardServiceClient.prototype.doCommand = function t(e, s, i) {
27547
27553
  debug: this.options.debug,
27548
27554
  onEnd: function(g) {
27549
27555
  if (i)
27550
- if (g.status !== grpc$i.Code.OK) {
27556
+ if (g.status !== grpc$j.Code.OK) {
27551
27557
  var p = new Error(g.statusMessage);
27552
27558
  p.code = g.status, p.metadata = g.trailers, i(p, null);
27553
27559
  } else
@@ -27562,7 +27568,7 @@ BoardServiceClient.prototype.doCommand = function t(e, s, i) {
27562
27568
  };
27563
27569
  BoardServiceClient.prototype.readAnalogReader = function t(e, s, i) {
27564
27570
  arguments.length === 2 && (i = arguments[1]);
27565
- var u = grpc$i.unary(BoardService.ReadAnalogReader, {
27571
+ var u = grpc$j.unary(BoardService.ReadAnalogReader, {
27566
27572
  request: e,
27567
27573
  host: this.serviceHost,
27568
27574
  metadata: s,
@@ -27570,7 +27576,7 @@ BoardServiceClient.prototype.readAnalogReader = function t(e, s, i) {
27570
27576
  debug: this.options.debug,
27571
27577
  onEnd: function(g) {
27572
27578
  if (i)
27573
- if (g.status !== grpc$i.Code.OK) {
27579
+ if (g.status !== grpc$j.Code.OK) {
27574
27580
  var p = new Error(g.statusMessage);
27575
27581
  p.code = g.status, p.metadata = g.trailers, i(p, null);
27576
27582
  } else
@@ -27585,7 +27591,7 @@ BoardServiceClient.prototype.readAnalogReader = function t(e, s, i) {
27585
27591
  };
27586
27592
  BoardServiceClient.prototype.getDigitalInterruptValue = function t(e, s, i) {
27587
27593
  arguments.length === 2 && (i = arguments[1]);
27588
- var u = grpc$i.unary(BoardService.GetDigitalInterruptValue, {
27594
+ var u = grpc$j.unary(BoardService.GetDigitalInterruptValue, {
27589
27595
  request: e,
27590
27596
  host: this.serviceHost,
27591
27597
  metadata: s,
@@ -27593,7 +27599,7 @@ BoardServiceClient.prototype.getDigitalInterruptValue = function t(e, s, i) {
27593
27599
  debug: this.options.debug,
27594
27600
  onEnd: function(g) {
27595
27601
  if (i)
27596
- if (g.status !== grpc$i.Code.OK) {
27602
+ if (g.status !== grpc$j.Code.OK) {
27597
27603
  var p = new Error(g.statusMessage);
27598
27604
  p.code = g.status, p.metadata = g.trailers, i(p, null);
27599
27605
  } else
@@ -27608,7 +27614,7 @@ BoardServiceClient.prototype.getDigitalInterruptValue = function t(e, s, i) {
27608
27614
  };
27609
27615
  BoardServiceClient.prototype.setPowerMode = function t(e, s, i) {
27610
27616
  arguments.length === 2 && (i = arguments[1]);
27611
- var u = grpc$i.unary(BoardService.SetPowerMode, {
27617
+ var u = grpc$j.unary(BoardService.SetPowerMode, {
27612
27618
  request: e,
27613
27619
  host: this.serviceHost,
27614
27620
  metadata: s,
@@ -27616,7 +27622,7 @@ BoardServiceClient.prototype.setPowerMode = function t(e, s, i) {
27616
27622
  debug: this.options.debug,
27617
27623
  onEnd: function(g) {
27618
27624
  if (i)
27619
- if (g.status !== grpc$i.Code.OK) {
27625
+ if (g.status !== grpc$j.Code.OK) {
27620
27626
  var p = new Error(g.statusMessage);
27621
27627
  p.code = g.status, p.metadata = g.trailers, i(p, null);
27622
27628
  } else
@@ -27631,7 +27637,7 @@ BoardServiceClient.prototype.setPowerMode = function t(e, s, i) {
27631
27637
  };
27632
27638
  BoardServiceClient.prototype.getGeometries = function t(e, s, i) {
27633
27639
  arguments.length === 2 && (i = arguments[1]);
27634
- var u = grpc$i.unary(BoardService.GetGeometries, {
27640
+ var u = grpc$j.unary(BoardService.GetGeometries, {
27635
27641
  request: e,
27636
27642
  host: this.serviceHost,
27637
27643
  metadata: s,
@@ -27639,7 +27645,7 @@ BoardServiceClient.prototype.getGeometries = function t(e, s, i) {
27639
27645
  debug: this.options.debug,
27640
27646
  onEnd: function(g) {
27641
27647
  if (i)
27642
- if (g.status !== grpc$i.Code.OK) {
27648
+ if (g.status !== grpc$j.Code.OK) {
27643
27649
  var p = new Error(g.statusMessage);
27644
27650
  p.code = g.status, p.metadata = g.trailers, i(p, null);
27645
27651
  } else
@@ -28035,7 +28041,7 @@ var BoardServiceClient_1 = BoardServiceClient, encoder_pb = {};
28035
28041
  POSITION_TYPE_ANGLE_DEGREES: 2
28036
28042
  }, s.object.extend(t, proto.viam.component.encoder.v1);
28037
28043
  })(encoder_pb);
28038
- var component_encoder_v1_encoder_pb = encoder_pb, common_v1_common_pb$g = common_pb, grpc$h = grpcWebClient_umdExports.grpc, EncoderService = function() {
28044
+ var component_encoder_v1_encoder_pb = encoder_pb, common_v1_common_pb$h = common_pb, grpc$i = grpcWebClient_umdExports.grpc, EncoderService = function() {
28039
28045
  function t() {
28040
28046
  }
28041
28047
  return t.serviceName = "viam.component.encoder.v1.EncoderService", t;
@@ -28069,23 +28075,23 @@ EncoderService.DoCommand = {
28069
28075
  service: EncoderService,
28070
28076
  requestStream: !1,
28071
28077
  responseStream: !1,
28072
- requestType: common_v1_common_pb$g.DoCommandRequest,
28073
- responseType: common_v1_common_pb$g.DoCommandResponse
28078
+ requestType: common_v1_common_pb$h.DoCommandRequest,
28079
+ responseType: common_v1_common_pb$h.DoCommandResponse
28074
28080
  };
28075
28081
  EncoderService.GetGeometries = {
28076
28082
  methodName: "GetGeometries",
28077
28083
  service: EncoderService,
28078
28084
  requestStream: !1,
28079
28085
  responseStream: !1,
28080
- requestType: common_v1_common_pb$g.GetGeometriesRequest,
28081
- responseType: common_v1_common_pb$g.GetGeometriesResponse
28086
+ requestType: common_v1_common_pb$h.GetGeometriesRequest,
28087
+ responseType: common_v1_common_pb$h.GetGeometriesResponse
28082
28088
  };
28083
28089
  function EncoderServiceClient(t, e) {
28084
28090
  this.serviceHost = t, this.options = e || {};
28085
28091
  }
28086
28092
  EncoderServiceClient.prototype.getPosition = function t(e, s, i) {
28087
28093
  arguments.length === 2 && (i = arguments[1]);
28088
- var u = grpc$h.unary(EncoderService.GetPosition, {
28094
+ var u = grpc$i.unary(EncoderService.GetPosition, {
28089
28095
  request: e,
28090
28096
  host: this.serviceHost,
28091
28097
  metadata: s,
@@ -28093,7 +28099,7 @@ EncoderServiceClient.prototype.getPosition = function t(e, s, i) {
28093
28099
  debug: this.options.debug,
28094
28100
  onEnd: function(g) {
28095
28101
  if (i)
28096
- if (g.status !== grpc$h.Code.OK) {
28102
+ if (g.status !== grpc$i.Code.OK) {
28097
28103
  var p = new Error(g.statusMessage);
28098
28104
  p.code = g.status, p.metadata = g.trailers, i(p, null);
28099
28105
  } else
@@ -28108,7 +28114,7 @@ EncoderServiceClient.prototype.getPosition = function t(e, s, i) {
28108
28114
  };
28109
28115
  EncoderServiceClient.prototype.resetPosition = function t(e, s, i) {
28110
28116
  arguments.length === 2 && (i = arguments[1]);
28111
- var u = grpc$h.unary(EncoderService.ResetPosition, {
28117
+ var u = grpc$i.unary(EncoderService.ResetPosition, {
28112
28118
  request: e,
28113
28119
  host: this.serviceHost,
28114
28120
  metadata: s,
@@ -28116,7 +28122,7 @@ EncoderServiceClient.prototype.resetPosition = function t(e, s, i) {
28116
28122
  debug: this.options.debug,
28117
28123
  onEnd: function(g) {
28118
28124
  if (i)
28119
- if (g.status !== grpc$h.Code.OK) {
28125
+ if (g.status !== grpc$i.Code.OK) {
28120
28126
  var p = new Error(g.statusMessage);
28121
28127
  p.code = g.status, p.metadata = g.trailers, i(p, null);
28122
28128
  } else
@@ -28131,7 +28137,7 @@ EncoderServiceClient.prototype.resetPosition = function t(e, s, i) {
28131
28137
  };
28132
28138
  EncoderServiceClient.prototype.getProperties = function t(e, s, i) {
28133
28139
  arguments.length === 2 && (i = arguments[1]);
28134
- var u = grpc$h.unary(EncoderService.GetProperties, {
28140
+ var u = grpc$i.unary(EncoderService.GetProperties, {
28135
28141
  request: e,
28136
28142
  host: this.serviceHost,
28137
28143
  metadata: s,
@@ -28139,7 +28145,7 @@ EncoderServiceClient.prototype.getProperties = function t(e, s, i) {
28139
28145
  debug: this.options.debug,
28140
28146
  onEnd: function(g) {
28141
28147
  if (i)
28142
- if (g.status !== grpc$h.Code.OK) {
28148
+ if (g.status !== grpc$i.Code.OK) {
28143
28149
  var p = new Error(g.statusMessage);
28144
28150
  p.code = g.status, p.metadata = g.trailers, i(p, null);
28145
28151
  } else
@@ -28154,7 +28160,7 @@ EncoderServiceClient.prototype.getProperties = function t(e, s, i) {
28154
28160
  };
28155
28161
  EncoderServiceClient.prototype.doCommand = function t(e, s, i) {
28156
28162
  arguments.length === 2 && (i = arguments[1]);
28157
- var u = grpc$h.unary(EncoderService.DoCommand, {
28163
+ var u = grpc$i.unary(EncoderService.DoCommand, {
28158
28164
  request: e,
28159
28165
  host: this.serviceHost,
28160
28166
  metadata: s,
@@ -28162,7 +28168,7 @@ EncoderServiceClient.prototype.doCommand = function t(e, s, i) {
28162
28168
  debug: this.options.debug,
28163
28169
  onEnd: function(g) {
28164
28170
  if (i)
28165
- if (g.status !== grpc$h.Code.OK) {
28171
+ if (g.status !== grpc$i.Code.OK) {
28166
28172
  var p = new Error(g.statusMessage);
28167
28173
  p.code = g.status, p.metadata = g.trailers, i(p, null);
28168
28174
  } else
@@ -28177,7 +28183,7 @@ EncoderServiceClient.prototype.doCommand = function t(e, s, i) {
28177
28183
  };
28178
28184
  EncoderServiceClient.prototype.getGeometries = function t(e, s, i) {
28179
28185
  arguments.length === 2 && (i = arguments[1]);
28180
- var u = grpc$h.unary(EncoderService.GetGeometries, {
28186
+ var u = grpc$i.unary(EncoderService.GetGeometries, {
28181
28187
  request: e,
28182
28188
  host: this.serviceHost,
28183
28189
  metadata: s,
@@ -28185,7 +28191,7 @@ EncoderServiceClient.prototype.getGeometries = function t(e, s, i) {
28185
28191
  debug: this.options.debug,
28186
28192
  onEnd: function(g) {
28187
28193
  if (i)
28188
- if (g.status !== grpc$h.Code.OK) {
28194
+ if (g.status !== grpc$i.Code.OK) {
28189
28195
  var p = new Error(g.statusMessage);
28190
28196
  p.code = g.status, p.metadata = g.trailers, i(p, null);
28191
28197
  } else
@@ -28948,7 +28954,7 @@ var EncoderServiceClient_1 = EncoderServiceClient, gantry_pb = {};
28948
28954
  return e.Message.setProto3BooleanField(this, 1, o);
28949
28955
  }, s.object.extend(t, proto.viam.component.gantry.v1);
28950
28956
  })(gantry_pb);
28951
- var component_gantry_v1_gantry_pb = gantry_pb, common_v1_common_pb$f = common_pb, grpc$g = grpcWebClient_umdExports.grpc, GantryService = function() {
28957
+ var component_gantry_v1_gantry_pb = gantry_pb, common_v1_common_pb$g = common_pb, grpc$h = grpcWebClient_umdExports.grpc, GantryService = function() {
28952
28958
  function t() {
28953
28959
  }
28954
28960
  return t.serviceName = "viam.component.gantry.v1.GantryService", t;
@@ -29006,23 +29012,23 @@ GantryService.DoCommand = {
29006
29012
  service: GantryService,
29007
29013
  requestStream: !1,
29008
29014
  responseStream: !1,
29009
- requestType: common_v1_common_pb$f.DoCommandRequest,
29010
- responseType: common_v1_common_pb$f.DoCommandResponse
29015
+ requestType: common_v1_common_pb$g.DoCommandRequest,
29016
+ responseType: common_v1_common_pb$g.DoCommandResponse
29011
29017
  };
29012
29018
  GantryService.GetGeometries = {
29013
29019
  methodName: "GetGeometries",
29014
29020
  service: GantryService,
29015
29021
  requestStream: !1,
29016
29022
  responseStream: !1,
29017
- requestType: common_v1_common_pb$f.GetGeometriesRequest,
29018
- responseType: common_v1_common_pb$f.GetGeometriesResponse
29023
+ requestType: common_v1_common_pb$g.GetGeometriesRequest,
29024
+ responseType: common_v1_common_pb$g.GetGeometriesResponse
29019
29025
  };
29020
29026
  function GantryServiceClient(t, e) {
29021
29027
  this.serviceHost = t, this.options = e || {};
29022
29028
  }
29023
29029
  GantryServiceClient.prototype.getPosition = function t(e, s, i) {
29024
29030
  arguments.length === 2 && (i = arguments[1]);
29025
- var u = grpc$g.unary(GantryService.GetPosition, {
29031
+ var u = grpc$h.unary(GantryService.GetPosition, {
29026
29032
  request: e,
29027
29033
  host: this.serviceHost,
29028
29034
  metadata: s,
@@ -29030,7 +29036,7 @@ GantryServiceClient.prototype.getPosition = function t(e, s, i) {
29030
29036
  debug: this.options.debug,
29031
29037
  onEnd: function(g) {
29032
29038
  if (i)
29033
- if (g.status !== grpc$g.Code.OK) {
29039
+ if (g.status !== grpc$h.Code.OK) {
29034
29040
  var p = new Error(g.statusMessage);
29035
29041
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29036
29042
  } else
@@ -29045,7 +29051,7 @@ GantryServiceClient.prototype.getPosition = function t(e, s, i) {
29045
29051
  };
29046
29052
  GantryServiceClient.prototype.moveToPosition = function t(e, s, i) {
29047
29053
  arguments.length === 2 && (i = arguments[1]);
29048
- var u = grpc$g.unary(GantryService.MoveToPosition, {
29054
+ var u = grpc$h.unary(GantryService.MoveToPosition, {
29049
29055
  request: e,
29050
29056
  host: this.serviceHost,
29051
29057
  metadata: s,
@@ -29053,7 +29059,7 @@ GantryServiceClient.prototype.moveToPosition = function t(e, s, i) {
29053
29059
  debug: this.options.debug,
29054
29060
  onEnd: function(g) {
29055
29061
  if (i)
29056
- if (g.status !== grpc$g.Code.OK) {
29062
+ if (g.status !== grpc$h.Code.OK) {
29057
29063
  var p = new Error(g.statusMessage);
29058
29064
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29059
29065
  } else
@@ -29068,7 +29074,7 @@ GantryServiceClient.prototype.moveToPosition = function t(e, s, i) {
29068
29074
  };
29069
29075
  GantryServiceClient.prototype.home = function t(e, s, i) {
29070
29076
  arguments.length === 2 && (i = arguments[1]);
29071
- var u = grpc$g.unary(GantryService.Home, {
29077
+ var u = grpc$h.unary(GantryService.Home, {
29072
29078
  request: e,
29073
29079
  host: this.serviceHost,
29074
29080
  metadata: s,
@@ -29076,7 +29082,7 @@ GantryServiceClient.prototype.home = function t(e, s, i) {
29076
29082
  debug: this.options.debug,
29077
29083
  onEnd: function(g) {
29078
29084
  if (i)
29079
- if (g.status !== grpc$g.Code.OK) {
29085
+ if (g.status !== grpc$h.Code.OK) {
29080
29086
  var p = new Error(g.statusMessage);
29081
29087
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29082
29088
  } else
@@ -29091,7 +29097,7 @@ GantryServiceClient.prototype.home = function t(e, s, i) {
29091
29097
  };
29092
29098
  GantryServiceClient.prototype.getLengths = function t(e, s, i) {
29093
29099
  arguments.length === 2 && (i = arguments[1]);
29094
- var u = grpc$g.unary(GantryService.GetLengths, {
29100
+ var u = grpc$h.unary(GantryService.GetLengths, {
29095
29101
  request: e,
29096
29102
  host: this.serviceHost,
29097
29103
  metadata: s,
@@ -29099,7 +29105,7 @@ GantryServiceClient.prototype.getLengths = function t(e, s, i) {
29099
29105
  debug: this.options.debug,
29100
29106
  onEnd: function(g) {
29101
29107
  if (i)
29102
- if (g.status !== grpc$g.Code.OK) {
29108
+ if (g.status !== grpc$h.Code.OK) {
29103
29109
  var p = new Error(g.statusMessage);
29104
29110
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29105
29111
  } else
@@ -29114,7 +29120,7 @@ GantryServiceClient.prototype.getLengths = function t(e, s, i) {
29114
29120
  };
29115
29121
  GantryServiceClient.prototype.stop = function t(e, s, i) {
29116
29122
  arguments.length === 2 && (i = arguments[1]);
29117
- var u = grpc$g.unary(GantryService.Stop, {
29123
+ var u = grpc$h.unary(GantryService.Stop, {
29118
29124
  request: e,
29119
29125
  host: this.serviceHost,
29120
29126
  metadata: s,
@@ -29122,7 +29128,7 @@ GantryServiceClient.prototype.stop = function t(e, s, i) {
29122
29128
  debug: this.options.debug,
29123
29129
  onEnd: function(g) {
29124
29130
  if (i)
29125
- if (g.status !== grpc$g.Code.OK) {
29131
+ if (g.status !== grpc$h.Code.OK) {
29126
29132
  var p = new Error(g.statusMessage);
29127
29133
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29128
29134
  } else
@@ -29137,7 +29143,7 @@ GantryServiceClient.prototype.stop = function t(e, s, i) {
29137
29143
  };
29138
29144
  GantryServiceClient.prototype.isMoving = function t(e, s, i) {
29139
29145
  arguments.length === 2 && (i = arguments[1]);
29140
- var u = grpc$g.unary(GantryService.IsMoving, {
29146
+ var u = grpc$h.unary(GantryService.IsMoving, {
29141
29147
  request: e,
29142
29148
  host: this.serviceHost,
29143
29149
  metadata: s,
@@ -29145,7 +29151,7 @@ GantryServiceClient.prototype.isMoving = function t(e, s, i) {
29145
29151
  debug: this.options.debug,
29146
29152
  onEnd: function(g) {
29147
29153
  if (i)
29148
- if (g.status !== grpc$g.Code.OK) {
29154
+ if (g.status !== grpc$h.Code.OK) {
29149
29155
  var p = new Error(g.statusMessage);
29150
29156
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29151
29157
  } else
@@ -29160,7 +29166,7 @@ GantryServiceClient.prototype.isMoving = function t(e, s, i) {
29160
29166
  };
29161
29167
  GantryServiceClient.prototype.doCommand = function t(e, s, i) {
29162
29168
  arguments.length === 2 && (i = arguments[1]);
29163
- var u = grpc$g.unary(GantryService.DoCommand, {
29169
+ var u = grpc$h.unary(GantryService.DoCommand, {
29164
29170
  request: e,
29165
29171
  host: this.serviceHost,
29166
29172
  metadata: s,
@@ -29168,7 +29174,7 @@ GantryServiceClient.prototype.doCommand = function t(e, s, i) {
29168
29174
  debug: this.options.debug,
29169
29175
  onEnd: function(g) {
29170
29176
  if (i)
29171
- if (g.status !== grpc$g.Code.OK) {
29177
+ if (g.status !== grpc$h.Code.OK) {
29172
29178
  var p = new Error(g.statusMessage);
29173
29179
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29174
29180
  } else
@@ -29183,7 +29189,7 @@ GantryServiceClient.prototype.doCommand = function t(e, s, i) {
29183
29189
  };
29184
29190
  GantryServiceClient.prototype.getGeometries = function t(e, s, i) {
29185
29191
  arguments.length === 2 && (i = arguments[1]);
29186
- var u = grpc$g.unary(GantryService.GetGeometries, {
29192
+ var u = grpc$h.unary(GantryService.GetGeometries, {
29187
29193
  request: e,
29188
29194
  host: this.serviceHost,
29189
29195
  metadata: s,
@@ -29191,7 +29197,7 @@ GantryServiceClient.prototype.getGeometries = function t(e, s, i) {
29191
29197
  debug: this.options.debug,
29192
29198
  onEnd: function(g) {
29193
29199
  if (i)
29194
- if (g.status !== grpc$g.Code.OK) {
29200
+ if (g.status !== grpc$h.Code.OK) {
29195
29201
  var p = new Error(g.statusMessage);
29196
29202
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29197
29203
  } else
@@ -29206,11 +29212,11 @@ GantryServiceClient.prototype.getGeometries = function t(e, s, i) {
29206
29212
  };
29207
29213
  var GantryServiceClient_1 = GantryServiceClient, generic_pb = {}, jspb = googleProtobuf, goog = jspb, global$1 = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof global$1 < "u" && global$1 || typeof self < "u" && self || function() {
29208
29214
  return this;
29209
- }.call(null) || Function("return this")(), common_v1_common_pb$e = common_pb;
29210
- goog.object.extend(proto, common_v1_common_pb$e);
29215
+ }.call(null) || Function("return this")(), common_v1_common_pb$f = common_pb;
29216
+ goog.object.extend(proto, common_v1_common_pb$f);
29211
29217
  var google_api_annotations_pb = annotations_pb;
29212
29218
  goog.object.extend(proto, google_api_annotations_pb);
29213
- var common_v1_common_pb$d = common_pb, grpc$f = grpcWebClient_umdExports.grpc, GenericService = function() {
29219
+ var common_v1_common_pb$e = common_pb, grpc$g = grpcWebClient_umdExports.grpc, GenericService = function() {
29214
29220
  function t() {
29215
29221
  }
29216
29222
  return t.serviceName = "viam.component.generic.v1.GenericService", t;
@@ -29220,23 +29226,23 @@ GenericService.DoCommand = {
29220
29226
  service: GenericService,
29221
29227
  requestStream: !1,
29222
29228
  responseStream: !1,
29223
- requestType: common_v1_common_pb$d.DoCommandRequest,
29224
- responseType: common_v1_common_pb$d.DoCommandResponse
29229
+ requestType: common_v1_common_pb$e.DoCommandRequest,
29230
+ responseType: common_v1_common_pb$e.DoCommandResponse
29225
29231
  };
29226
29232
  GenericService.GetGeometries = {
29227
29233
  methodName: "GetGeometries",
29228
29234
  service: GenericService,
29229
29235
  requestStream: !1,
29230
29236
  responseStream: !1,
29231
- requestType: common_v1_common_pb$d.GetGeometriesRequest,
29232
- responseType: common_v1_common_pb$d.GetGeometriesResponse
29237
+ requestType: common_v1_common_pb$e.GetGeometriesRequest,
29238
+ responseType: common_v1_common_pb$e.GetGeometriesResponse
29233
29239
  };
29234
29240
  function GenericServiceClient(t, e) {
29235
29241
  this.serviceHost = t, this.options = e || {};
29236
29242
  }
29237
29243
  GenericServiceClient.prototype.doCommand = function t(e, s, i) {
29238
29244
  arguments.length === 2 && (i = arguments[1]);
29239
- var u = grpc$f.unary(GenericService.DoCommand, {
29245
+ var u = grpc$g.unary(GenericService.DoCommand, {
29240
29246
  request: e,
29241
29247
  host: this.serviceHost,
29242
29248
  metadata: s,
@@ -29244,7 +29250,7 @@ GenericServiceClient.prototype.doCommand = function t(e, s, i) {
29244
29250
  debug: this.options.debug,
29245
29251
  onEnd: function(g) {
29246
29252
  if (i)
29247
- if (g.status !== grpc$f.Code.OK) {
29253
+ if (g.status !== grpc$g.Code.OK) {
29248
29254
  var p = new Error(g.statusMessage);
29249
29255
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29250
29256
  } else
@@ -29259,7 +29265,7 @@ GenericServiceClient.prototype.doCommand = function t(e, s, i) {
29259
29265
  };
29260
29266
  GenericServiceClient.prototype.getGeometries = function t(e, s, i) {
29261
29267
  arguments.length === 2 && (i = arguments[1]);
29262
- var u = grpc$f.unary(GenericService.GetGeometries, {
29268
+ var u = grpc$g.unary(GenericService.GetGeometries, {
29263
29269
  request: e,
29264
29270
  host: this.serviceHost,
29265
29271
  metadata: s,
@@ -29267,7 +29273,7 @@ GenericServiceClient.prototype.getGeometries = function t(e, s, i) {
29267
29273
  debug: this.options.debug,
29268
29274
  onEnd: function(g) {
29269
29275
  if (i)
29270
- if (g.status !== grpc$f.Code.OK) {
29276
+ if (g.status !== grpc$g.Code.OK) {
29271
29277
  var p = new Error(g.statusMessage);
29272
29278
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29273
29279
  } else
@@ -29689,7 +29695,7 @@ var GenericServiceClient_1 = GenericServiceClient, gripper_pb = {};
29689
29695
  return e.Message.setProto3BooleanField(this, 1, o);
29690
29696
  }, s.object.extend(t, proto.viam.component.gripper.v1);
29691
29697
  })(gripper_pb);
29692
- var component_gripper_v1_gripper_pb = gripper_pb, common_v1_common_pb$c = common_pb, grpc$e = grpcWebClient_umdExports.grpc, GripperService = function() {
29698
+ var component_gripper_v1_gripper_pb = gripper_pb, common_v1_common_pb$d = common_pb, grpc$f = grpcWebClient_umdExports.grpc, GripperService = function() {
29693
29699
  function t() {
29694
29700
  }
29695
29701
  return t.serviceName = "viam.component.gripper.v1.GripperService", t;
@@ -29731,23 +29737,23 @@ GripperService.DoCommand = {
29731
29737
  service: GripperService,
29732
29738
  requestStream: !1,
29733
29739
  responseStream: !1,
29734
- requestType: common_v1_common_pb$c.DoCommandRequest,
29735
- responseType: common_v1_common_pb$c.DoCommandResponse
29740
+ requestType: common_v1_common_pb$d.DoCommandRequest,
29741
+ responseType: common_v1_common_pb$d.DoCommandResponse
29736
29742
  };
29737
29743
  GripperService.GetGeometries = {
29738
29744
  methodName: "GetGeometries",
29739
29745
  service: GripperService,
29740
29746
  requestStream: !1,
29741
29747
  responseStream: !1,
29742
- requestType: common_v1_common_pb$c.GetGeometriesRequest,
29743
- responseType: common_v1_common_pb$c.GetGeometriesResponse
29748
+ requestType: common_v1_common_pb$d.GetGeometriesRequest,
29749
+ responseType: common_v1_common_pb$d.GetGeometriesResponse
29744
29750
  };
29745
29751
  function GripperServiceClient(t, e) {
29746
29752
  this.serviceHost = t, this.options = e || {};
29747
29753
  }
29748
29754
  GripperServiceClient.prototype.open = function t(e, s, i) {
29749
29755
  arguments.length === 2 && (i = arguments[1]);
29750
- var u = grpc$e.unary(GripperService.Open, {
29756
+ var u = grpc$f.unary(GripperService.Open, {
29751
29757
  request: e,
29752
29758
  host: this.serviceHost,
29753
29759
  metadata: s,
@@ -29755,7 +29761,7 @@ GripperServiceClient.prototype.open = function t(e, s, i) {
29755
29761
  debug: this.options.debug,
29756
29762
  onEnd: function(g) {
29757
29763
  if (i)
29758
- if (g.status !== grpc$e.Code.OK) {
29764
+ if (g.status !== grpc$f.Code.OK) {
29759
29765
  var p = new Error(g.statusMessage);
29760
29766
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29761
29767
  } else
@@ -29770,7 +29776,7 @@ GripperServiceClient.prototype.open = function t(e, s, i) {
29770
29776
  };
29771
29777
  GripperServiceClient.prototype.grab = function t(e, s, i) {
29772
29778
  arguments.length === 2 && (i = arguments[1]);
29773
- var u = grpc$e.unary(GripperService.Grab, {
29779
+ var u = grpc$f.unary(GripperService.Grab, {
29774
29780
  request: e,
29775
29781
  host: this.serviceHost,
29776
29782
  metadata: s,
@@ -29778,7 +29784,7 @@ GripperServiceClient.prototype.grab = function t(e, s, i) {
29778
29784
  debug: this.options.debug,
29779
29785
  onEnd: function(g) {
29780
29786
  if (i)
29781
- if (g.status !== grpc$e.Code.OK) {
29787
+ if (g.status !== grpc$f.Code.OK) {
29782
29788
  var p = new Error(g.statusMessage);
29783
29789
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29784
29790
  } else
@@ -29793,7 +29799,7 @@ GripperServiceClient.prototype.grab = function t(e, s, i) {
29793
29799
  };
29794
29800
  GripperServiceClient.prototype.stop = function t(e, s, i) {
29795
29801
  arguments.length === 2 && (i = arguments[1]);
29796
- var u = grpc$e.unary(GripperService.Stop, {
29802
+ var u = grpc$f.unary(GripperService.Stop, {
29797
29803
  request: e,
29798
29804
  host: this.serviceHost,
29799
29805
  metadata: s,
@@ -29801,7 +29807,7 @@ GripperServiceClient.prototype.stop = function t(e, s, i) {
29801
29807
  debug: this.options.debug,
29802
29808
  onEnd: function(g) {
29803
29809
  if (i)
29804
- if (g.status !== grpc$e.Code.OK) {
29810
+ if (g.status !== grpc$f.Code.OK) {
29805
29811
  var p = new Error(g.statusMessage);
29806
29812
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29807
29813
  } else
@@ -29816,7 +29822,7 @@ GripperServiceClient.prototype.stop = function t(e, s, i) {
29816
29822
  };
29817
29823
  GripperServiceClient.prototype.isMoving = function t(e, s, i) {
29818
29824
  arguments.length === 2 && (i = arguments[1]);
29819
- var u = grpc$e.unary(GripperService.IsMoving, {
29825
+ var u = grpc$f.unary(GripperService.IsMoving, {
29820
29826
  request: e,
29821
29827
  host: this.serviceHost,
29822
29828
  metadata: s,
@@ -29824,7 +29830,7 @@ GripperServiceClient.prototype.isMoving = function t(e, s, i) {
29824
29830
  debug: this.options.debug,
29825
29831
  onEnd: function(g) {
29826
29832
  if (i)
29827
- if (g.status !== grpc$e.Code.OK) {
29833
+ if (g.status !== grpc$f.Code.OK) {
29828
29834
  var p = new Error(g.statusMessage);
29829
29835
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29830
29836
  } else
@@ -29839,7 +29845,7 @@ GripperServiceClient.prototype.isMoving = function t(e, s, i) {
29839
29845
  };
29840
29846
  GripperServiceClient.prototype.doCommand = function t(e, s, i) {
29841
29847
  arguments.length === 2 && (i = arguments[1]);
29842
- var u = grpc$e.unary(GripperService.DoCommand, {
29848
+ var u = grpc$f.unary(GripperService.DoCommand, {
29843
29849
  request: e,
29844
29850
  host: this.serviceHost,
29845
29851
  metadata: s,
@@ -29847,7 +29853,7 @@ GripperServiceClient.prototype.doCommand = function t(e, s, i) {
29847
29853
  debug: this.options.debug,
29848
29854
  onEnd: function(g) {
29849
29855
  if (i)
29850
- if (g.status !== grpc$e.Code.OK) {
29856
+ if (g.status !== grpc$f.Code.OK) {
29851
29857
  var p = new Error(g.statusMessage);
29852
29858
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29853
29859
  } else
@@ -29862,7 +29868,7 @@ GripperServiceClient.prototype.doCommand = function t(e, s, i) {
29862
29868
  };
29863
29869
  GripperServiceClient.prototype.getGeometries = function t(e, s, i) {
29864
29870
  arguments.length === 2 && (i = arguments[1]);
29865
- var u = grpc$e.unary(GripperService.GetGeometries, {
29871
+ var u = grpc$f.unary(GripperService.GetGeometries, {
29866
29872
  request: e,
29867
29873
  host: this.serviceHost,
29868
29874
  metadata: s,
@@ -29870,7 +29876,7 @@ GripperServiceClient.prototype.getGeometries = function t(e, s, i) {
29870
29876
  debug: this.options.debug,
29871
29877
  onEnd: function(g) {
29872
29878
  if (i)
29873
- if (g.status !== grpc$e.Code.OK) {
29879
+ if (g.status !== grpc$f.Code.OK) {
29874
29880
  var p = new Error(g.statusMessage);
29875
29881
  p.code = g.status, p.metadata = g.trailers, i(p, null);
29876
29882
  } else
@@ -30612,7 +30618,7 @@ var GripperServiceClient_1 = GripperServiceClient, input_controller_pb = {};
30612
30618
  return this.setEventsList([]);
30613
30619
  }, s.object.extend(t, proto.viam.component.inputcontroller.v1);
30614
30620
  })(input_controller_pb);
30615
- var component_inputcontroller_v1_input_controller_pb = input_controller_pb, common_v1_common_pb$b = common_pb, grpc$d = grpcWebClient_umdExports.grpc, InputControllerService = function() {
30621
+ var component_inputcontroller_v1_input_controller_pb = input_controller_pb, common_v1_common_pb$c = common_pb, grpc$e = grpcWebClient_umdExports.grpc, InputControllerService = function() {
30616
30622
  function t() {
30617
30623
  }
30618
30624
  return t.serviceName = "viam.component.inputcontroller.v1.InputControllerService", t;
@@ -30654,23 +30660,23 @@ InputControllerService.DoCommand = {
30654
30660
  service: InputControllerService,
30655
30661
  requestStream: !1,
30656
30662
  responseStream: !1,
30657
- requestType: common_v1_common_pb$b.DoCommandRequest,
30658
- responseType: common_v1_common_pb$b.DoCommandResponse
30663
+ requestType: common_v1_common_pb$c.DoCommandRequest,
30664
+ responseType: common_v1_common_pb$c.DoCommandResponse
30659
30665
  };
30660
30666
  InputControllerService.GetGeometries = {
30661
30667
  methodName: "GetGeometries",
30662
30668
  service: InputControllerService,
30663
30669
  requestStream: !1,
30664
30670
  responseStream: !1,
30665
- requestType: common_v1_common_pb$b.GetGeometriesRequest,
30666
- responseType: common_v1_common_pb$b.GetGeometriesResponse
30671
+ requestType: common_v1_common_pb$c.GetGeometriesRequest,
30672
+ responseType: common_v1_common_pb$c.GetGeometriesResponse
30667
30673
  };
30668
30674
  function InputControllerServiceClient(t, e) {
30669
30675
  this.serviceHost = t, this.options = e || {};
30670
30676
  }
30671
30677
  InputControllerServiceClient.prototype.getControls = function t(e, s, i) {
30672
30678
  arguments.length === 2 && (i = arguments[1]);
30673
- var u = grpc$d.unary(InputControllerService.GetControls, {
30679
+ var u = grpc$e.unary(InputControllerService.GetControls, {
30674
30680
  request: e,
30675
30681
  host: this.serviceHost,
30676
30682
  metadata: s,
@@ -30678,7 +30684,7 @@ InputControllerServiceClient.prototype.getControls = function t(e, s, i) {
30678
30684
  debug: this.options.debug,
30679
30685
  onEnd: function(g) {
30680
30686
  if (i)
30681
- if (g.status !== grpc$d.Code.OK) {
30687
+ if (g.status !== grpc$e.Code.OK) {
30682
30688
  var p = new Error(g.statusMessage);
30683
30689
  p.code = g.status, p.metadata = g.trailers, i(p, null);
30684
30690
  } else
@@ -30693,7 +30699,7 @@ InputControllerServiceClient.prototype.getControls = function t(e, s, i) {
30693
30699
  };
30694
30700
  InputControllerServiceClient.prototype.getEvents = function t(e, s, i) {
30695
30701
  arguments.length === 2 && (i = arguments[1]);
30696
- var u = grpc$d.unary(InputControllerService.GetEvents, {
30702
+ var u = grpc$e.unary(InputControllerService.GetEvents, {
30697
30703
  request: e,
30698
30704
  host: this.serviceHost,
30699
30705
  metadata: s,
@@ -30701,7 +30707,7 @@ InputControllerServiceClient.prototype.getEvents = function t(e, s, i) {
30701
30707
  debug: this.options.debug,
30702
30708
  onEnd: function(g) {
30703
30709
  if (i)
30704
- if (g.status !== grpc$d.Code.OK) {
30710
+ if (g.status !== grpc$e.Code.OK) {
30705
30711
  var p = new Error(g.statusMessage);
30706
30712
  p.code = g.status, p.metadata = g.trailers, i(p, null);
30707
30713
  } else
@@ -30719,7 +30725,7 @@ InputControllerServiceClient.prototype.streamEvents = function t(e, s) {
30719
30725
  data: [],
30720
30726
  end: [],
30721
30727
  status: []
30722
- }, u = grpc$d.invoke(InputControllerService.StreamEvents, {
30728
+ }, u = grpc$e.invoke(InputControllerService.StreamEvents, {
30723
30729
  request: e,
30724
30730
  host: this.serviceHost,
30725
30731
  metadata: s,
@@ -30749,7 +30755,7 @@ InputControllerServiceClient.prototype.streamEvents = function t(e, s) {
30749
30755
  };
30750
30756
  InputControllerServiceClient.prototype.triggerEvent = function t(e, s, i) {
30751
30757
  arguments.length === 2 && (i = arguments[1]);
30752
- var u = grpc$d.unary(InputControllerService.TriggerEvent, {
30758
+ var u = grpc$e.unary(InputControllerService.TriggerEvent, {
30753
30759
  request: e,
30754
30760
  host: this.serviceHost,
30755
30761
  metadata: s,
@@ -30757,7 +30763,7 @@ InputControllerServiceClient.prototype.triggerEvent = function t(e, s, i) {
30757
30763
  debug: this.options.debug,
30758
30764
  onEnd: function(g) {
30759
30765
  if (i)
30760
- if (g.status !== grpc$d.Code.OK) {
30766
+ if (g.status !== grpc$e.Code.OK) {
30761
30767
  var p = new Error(g.statusMessage);
30762
30768
  p.code = g.status, p.metadata = g.trailers, i(p, null);
30763
30769
  } else
@@ -30772,7 +30778,7 @@ InputControllerServiceClient.prototype.triggerEvent = function t(e, s, i) {
30772
30778
  };
30773
30779
  InputControllerServiceClient.prototype.doCommand = function t(e, s, i) {
30774
30780
  arguments.length === 2 && (i = arguments[1]);
30775
- var u = grpc$d.unary(InputControllerService.DoCommand, {
30781
+ var u = grpc$e.unary(InputControllerService.DoCommand, {
30776
30782
  request: e,
30777
30783
  host: this.serviceHost,
30778
30784
  metadata: s,
@@ -30780,7 +30786,7 @@ InputControllerServiceClient.prototype.doCommand = function t(e, s, i) {
30780
30786
  debug: this.options.debug,
30781
30787
  onEnd: function(g) {
30782
30788
  if (i)
30783
- if (g.status !== grpc$d.Code.OK) {
30789
+ if (g.status !== grpc$e.Code.OK) {
30784
30790
  var p = new Error(g.statusMessage);
30785
30791
  p.code = g.status, p.metadata = g.trailers, i(p, null);
30786
30792
  } else
@@ -30795,7 +30801,7 @@ InputControllerServiceClient.prototype.doCommand = function t(e, s, i) {
30795
30801
  };
30796
30802
  InputControllerServiceClient.prototype.getGeometries = function t(e, s, i) {
30797
30803
  arguments.length === 2 && (i = arguments[1]);
30798
- var u = grpc$d.unary(InputControllerService.GetGeometries, {
30804
+ var u = grpc$e.unary(InputControllerService.GetGeometries, {
30799
30805
  request: e,
30800
30806
  host: this.serviceHost,
30801
30807
  metadata: s,
@@ -30803,7 +30809,7 @@ InputControllerServiceClient.prototype.getGeometries = function t(e, s, i) {
30803
30809
  debug: this.options.debug,
30804
30810
  onEnd: function(g) {
30805
30811
  if (i)
30806
- if (g.status !== grpc$d.Code.OK) {
30812
+ if (g.status !== grpc$e.Code.OK) {
30807
30813
  var p = new Error(g.statusMessage);
30808
30814
  p.code = g.status, p.metadata = g.trailers, i(p, null);
30809
30815
  } else
@@ -32130,7 +32136,7 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
32130
32136
  return this.setAllowsList([]);
32131
32137
  }, s.object.extend(t, proto.viam.service.motion.v1);
32132
32138
  })(motion_pb);
32133
- var service_motion_v1_motion_pb = motion_pb, common_v1_common_pb$a = common_pb, grpc$c = grpcWebClient_umdExports.grpc, MotionService = function() {
32139
+ var service_motion_v1_motion_pb = motion_pb, common_v1_common_pb$b = common_pb, grpc$d = grpcWebClient_umdExports.grpc, MotionService = function() {
32134
32140
  function t() {
32135
32141
  }
32136
32142
  return t.serviceName = "viam.service.motion.v1.MotionService", t;
@@ -32180,15 +32186,15 @@ MotionService.DoCommand = {
32180
32186
  service: MotionService,
32181
32187
  requestStream: !1,
32182
32188
  responseStream: !1,
32183
- requestType: common_v1_common_pb$a.DoCommandRequest,
32184
- responseType: common_v1_common_pb$a.DoCommandResponse
32189
+ requestType: common_v1_common_pb$b.DoCommandRequest,
32190
+ responseType: common_v1_common_pb$b.DoCommandResponse
32185
32191
  };
32186
32192
  function MotionServiceClient(t, e) {
32187
32193
  this.serviceHost = t, this.options = e || {};
32188
32194
  }
32189
32195
  MotionServiceClient.prototype.move = function t(e, s, i) {
32190
32196
  arguments.length === 2 && (i = arguments[1]);
32191
- var u = grpc$c.unary(MotionService.Move, {
32197
+ var u = grpc$d.unary(MotionService.Move, {
32192
32198
  request: e,
32193
32199
  host: this.serviceHost,
32194
32200
  metadata: s,
@@ -32196,7 +32202,7 @@ MotionServiceClient.prototype.move = function t(e, s, i) {
32196
32202
  debug: this.options.debug,
32197
32203
  onEnd: function(g) {
32198
32204
  if (i)
32199
- if (g.status !== grpc$c.Code.OK) {
32205
+ if (g.status !== grpc$d.Code.OK) {
32200
32206
  var p = new Error(g.statusMessage);
32201
32207
  p.code = g.status, p.metadata = g.trailers, i(p, null);
32202
32208
  } else
@@ -32211,7 +32217,7 @@ MotionServiceClient.prototype.move = function t(e, s, i) {
32211
32217
  };
32212
32218
  MotionServiceClient.prototype.moveOnMap = function t(e, s, i) {
32213
32219
  arguments.length === 2 && (i = arguments[1]);
32214
- var u = grpc$c.unary(MotionService.MoveOnMap, {
32220
+ var u = grpc$d.unary(MotionService.MoveOnMap, {
32215
32221
  request: e,
32216
32222
  host: this.serviceHost,
32217
32223
  metadata: s,
@@ -32219,7 +32225,7 @@ MotionServiceClient.prototype.moveOnMap = function t(e, s, i) {
32219
32225
  debug: this.options.debug,
32220
32226
  onEnd: function(g) {
32221
32227
  if (i)
32222
- if (g.status !== grpc$c.Code.OK) {
32228
+ if (g.status !== grpc$d.Code.OK) {
32223
32229
  var p = new Error(g.statusMessage);
32224
32230
  p.code = g.status, p.metadata = g.trailers, i(p, null);
32225
32231
  } else
@@ -32234,7 +32240,7 @@ MotionServiceClient.prototype.moveOnMap = function t(e, s, i) {
32234
32240
  };
32235
32241
  MotionServiceClient.prototype.moveOnGlobe = function t(e, s, i) {
32236
32242
  arguments.length === 2 && (i = arguments[1]);
32237
- var u = grpc$c.unary(MotionService.MoveOnGlobe, {
32243
+ var u = grpc$d.unary(MotionService.MoveOnGlobe, {
32238
32244
  request: e,
32239
32245
  host: this.serviceHost,
32240
32246
  metadata: s,
@@ -32242,7 +32248,7 @@ MotionServiceClient.prototype.moveOnGlobe = function t(e, s, i) {
32242
32248
  debug: this.options.debug,
32243
32249
  onEnd: function(g) {
32244
32250
  if (i)
32245
- if (g.status !== grpc$c.Code.OK) {
32251
+ if (g.status !== grpc$d.Code.OK) {
32246
32252
  var p = new Error(g.statusMessage);
32247
32253
  p.code = g.status, p.metadata = g.trailers, i(p, null);
32248
32254
  } else
@@ -32257,7 +32263,7 @@ MotionServiceClient.prototype.moveOnGlobe = function t(e, s, i) {
32257
32263
  };
32258
32264
  MotionServiceClient.prototype.moveSingleComponent = function t(e, s, i) {
32259
32265
  arguments.length === 2 && (i = arguments[1]);
32260
- var u = grpc$c.unary(MotionService.MoveSingleComponent, {
32266
+ var u = grpc$d.unary(MotionService.MoveSingleComponent, {
32261
32267
  request: e,
32262
32268
  host: this.serviceHost,
32263
32269
  metadata: s,
@@ -32265,7 +32271,7 @@ MotionServiceClient.prototype.moveSingleComponent = function t(e, s, i) {
32265
32271
  debug: this.options.debug,
32266
32272
  onEnd: function(g) {
32267
32273
  if (i)
32268
- if (g.status !== grpc$c.Code.OK) {
32274
+ if (g.status !== grpc$d.Code.OK) {
32269
32275
  var p = new Error(g.statusMessage);
32270
32276
  p.code = g.status, p.metadata = g.trailers, i(p, null);
32271
32277
  } else
@@ -32280,7 +32286,7 @@ MotionServiceClient.prototype.moveSingleComponent = function t(e, s, i) {
32280
32286
  };
32281
32287
  MotionServiceClient.prototype.getPose = function t(e, s, i) {
32282
32288
  arguments.length === 2 && (i = arguments[1]);
32283
- var u = grpc$c.unary(MotionService.GetPose, {
32289
+ var u = grpc$d.unary(MotionService.GetPose, {
32284
32290
  request: e,
32285
32291
  host: this.serviceHost,
32286
32292
  metadata: s,
@@ -32288,7 +32294,7 @@ MotionServiceClient.prototype.getPose = function t(e, s, i) {
32288
32294
  debug: this.options.debug,
32289
32295
  onEnd: function(g) {
32290
32296
  if (i)
32291
- if (g.status !== grpc$c.Code.OK) {
32297
+ if (g.status !== grpc$d.Code.OK) {
32292
32298
  var p = new Error(g.statusMessage);
32293
32299
  p.code = g.status, p.metadata = g.trailers, i(p, null);
32294
32300
  } else
@@ -32303,7 +32309,7 @@ MotionServiceClient.prototype.getPose = function t(e, s, i) {
32303
32309
  };
32304
32310
  MotionServiceClient.prototype.doCommand = function t(e, s, i) {
32305
32311
  arguments.length === 2 && (i = arguments[1]);
32306
- var u = grpc$c.unary(MotionService.DoCommand, {
32312
+ var u = grpc$d.unary(MotionService.DoCommand, {
32307
32313
  request: e,
32308
32314
  host: this.serviceHost,
32309
32315
  metadata: s,
@@ -32311,7 +32317,7 @@ MotionServiceClient.prototype.doCommand = function t(e, s, i) {
32311
32317
  debug: this.options.debug,
32312
32318
  onEnd: function(g) {
32313
32319
  if (i)
32314
- if (g.status !== grpc$c.Code.OK) {
32320
+ if (g.status !== grpc$d.Code.OK) {
32315
32321
  var p = new Error(g.statusMessage);
32316
32322
  p.code = g.status, p.metadata = g.trailers, i(p, null);
32317
32323
  } else
@@ -33407,7 +33413,7 @@ var MotionServiceClient_1 = MotionServiceClient, motor_pb = {};
33407
33413
  return e.Message.setProto3BooleanField(this, 1, o);
33408
33414
  }, s.object.extend(t, proto.viam.component.motor.v1);
33409
33415
  })(motor_pb);
33410
- var component_motor_v1_motor_pb = motor_pb, common_v1_common_pb$9 = common_pb, grpc$b = grpcWebClient_umdExports.grpc, MotorService = function() {
33416
+ var component_motor_v1_motor_pb = motor_pb, common_v1_common_pb$a = common_pb, grpc$c = grpcWebClient_umdExports.grpc, MotorService = function() {
33411
33417
  function t() {
33412
33418
  }
33413
33419
  return t.serviceName = "viam.component.motor.v1.MotorService", t;
@@ -33489,23 +33495,23 @@ MotorService.DoCommand = {
33489
33495
  service: MotorService,
33490
33496
  requestStream: !1,
33491
33497
  responseStream: !1,
33492
- requestType: common_v1_common_pb$9.DoCommandRequest,
33493
- responseType: common_v1_common_pb$9.DoCommandResponse
33498
+ requestType: common_v1_common_pb$a.DoCommandRequest,
33499
+ responseType: common_v1_common_pb$a.DoCommandResponse
33494
33500
  };
33495
33501
  MotorService.GetGeometries = {
33496
33502
  methodName: "GetGeometries",
33497
33503
  service: MotorService,
33498
33504
  requestStream: !1,
33499
33505
  responseStream: !1,
33500
- requestType: common_v1_common_pb$9.GetGeometriesRequest,
33501
- responseType: common_v1_common_pb$9.GetGeometriesResponse
33506
+ requestType: common_v1_common_pb$a.GetGeometriesRequest,
33507
+ responseType: common_v1_common_pb$a.GetGeometriesResponse
33502
33508
  };
33503
33509
  function MotorServiceClient(t, e) {
33504
33510
  this.serviceHost = t, this.options = e || {};
33505
33511
  }
33506
33512
  MotorServiceClient.prototype.setPower = function t(e, s, i) {
33507
33513
  arguments.length === 2 && (i = arguments[1]);
33508
- var u = grpc$b.unary(MotorService.SetPower, {
33514
+ var u = grpc$c.unary(MotorService.SetPower, {
33509
33515
  request: e,
33510
33516
  host: this.serviceHost,
33511
33517
  metadata: s,
@@ -33513,7 +33519,7 @@ MotorServiceClient.prototype.setPower = function t(e, s, i) {
33513
33519
  debug: this.options.debug,
33514
33520
  onEnd: function(g) {
33515
33521
  if (i)
33516
- if (g.status !== grpc$b.Code.OK) {
33522
+ if (g.status !== grpc$c.Code.OK) {
33517
33523
  var p = new Error(g.statusMessage);
33518
33524
  p.code = g.status, p.metadata = g.trailers, i(p, null);
33519
33525
  } else
@@ -33528,7 +33534,7 @@ MotorServiceClient.prototype.setPower = function t(e, s, i) {
33528
33534
  };
33529
33535
  MotorServiceClient.prototype.goFor = function t(e, s, i) {
33530
33536
  arguments.length === 2 && (i = arguments[1]);
33531
- var u = grpc$b.unary(MotorService.GoFor, {
33537
+ var u = grpc$c.unary(MotorService.GoFor, {
33532
33538
  request: e,
33533
33539
  host: this.serviceHost,
33534
33540
  metadata: s,
@@ -33536,7 +33542,7 @@ MotorServiceClient.prototype.goFor = function t(e, s, i) {
33536
33542
  debug: this.options.debug,
33537
33543
  onEnd: function(g) {
33538
33544
  if (i)
33539
- if (g.status !== grpc$b.Code.OK) {
33545
+ if (g.status !== grpc$c.Code.OK) {
33540
33546
  var p = new Error(g.statusMessage);
33541
33547
  p.code = g.status, p.metadata = g.trailers, i(p, null);
33542
33548
  } else
@@ -33551,7 +33557,7 @@ MotorServiceClient.prototype.goFor = function t(e, s, i) {
33551
33557
  };
33552
33558
  MotorServiceClient.prototype.goTo = function t(e, s, i) {
33553
33559
  arguments.length === 2 && (i = arguments[1]);
33554
- var u = grpc$b.unary(MotorService.GoTo, {
33560
+ var u = grpc$c.unary(MotorService.GoTo, {
33555
33561
  request: e,
33556
33562
  host: this.serviceHost,
33557
33563
  metadata: s,
@@ -33559,7 +33565,7 @@ MotorServiceClient.prototype.goTo = function t(e, s, i) {
33559
33565
  debug: this.options.debug,
33560
33566
  onEnd: function(g) {
33561
33567
  if (i)
33562
- if (g.status !== grpc$b.Code.OK) {
33568
+ if (g.status !== grpc$c.Code.OK) {
33563
33569
  var p = new Error(g.statusMessage);
33564
33570
  p.code = g.status, p.metadata = g.trailers, i(p, null);
33565
33571
  } else
@@ -33574,7 +33580,7 @@ MotorServiceClient.prototype.goTo = function t(e, s, i) {
33574
33580
  };
33575
33581
  MotorServiceClient.prototype.resetZeroPosition = function t(e, s, i) {
33576
33582
  arguments.length === 2 && (i = arguments[1]);
33577
- var u = grpc$b.unary(MotorService.ResetZeroPosition, {
33583
+ var u = grpc$c.unary(MotorService.ResetZeroPosition, {
33578
33584
  request: e,
33579
33585
  host: this.serviceHost,
33580
33586
  metadata: s,
@@ -33582,7 +33588,7 @@ MotorServiceClient.prototype.resetZeroPosition = function t(e, s, i) {
33582
33588
  debug: this.options.debug,
33583
33589
  onEnd: function(g) {
33584
33590
  if (i)
33585
- if (g.status !== grpc$b.Code.OK) {
33591
+ if (g.status !== grpc$c.Code.OK) {
33586
33592
  var p = new Error(g.statusMessage);
33587
33593
  p.code = g.status, p.metadata = g.trailers, i(p, null);
33588
33594
  } else
@@ -33597,7 +33603,7 @@ MotorServiceClient.prototype.resetZeroPosition = function t(e, s, i) {
33597
33603
  };
33598
33604
  MotorServiceClient.prototype.getPosition = function t(e, s, i) {
33599
33605
  arguments.length === 2 && (i = arguments[1]);
33600
- var u = grpc$b.unary(MotorService.GetPosition, {
33606
+ var u = grpc$c.unary(MotorService.GetPosition, {
33601
33607
  request: e,
33602
33608
  host: this.serviceHost,
33603
33609
  metadata: s,
@@ -33605,7 +33611,7 @@ MotorServiceClient.prototype.getPosition = function t(e, s, i) {
33605
33611
  debug: this.options.debug,
33606
33612
  onEnd: function(g) {
33607
33613
  if (i)
33608
- if (g.status !== grpc$b.Code.OK) {
33614
+ if (g.status !== grpc$c.Code.OK) {
33609
33615
  var p = new Error(g.statusMessage);
33610
33616
  p.code = g.status, p.metadata = g.trailers, i(p, null);
33611
33617
  } else
@@ -33620,7 +33626,7 @@ MotorServiceClient.prototype.getPosition = function t(e, s, i) {
33620
33626
  };
33621
33627
  MotorServiceClient.prototype.getProperties = function t(e, s, i) {
33622
33628
  arguments.length === 2 && (i = arguments[1]);
33623
- var u = grpc$b.unary(MotorService.GetProperties, {
33629
+ var u = grpc$c.unary(MotorService.GetProperties, {
33624
33630
  request: e,
33625
33631
  host: this.serviceHost,
33626
33632
  metadata: s,
@@ -33628,7 +33634,7 @@ MotorServiceClient.prototype.getProperties = function t(e, s, i) {
33628
33634
  debug: this.options.debug,
33629
33635
  onEnd: function(g) {
33630
33636
  if (i)
33631
- if (g.status !== grpc$b.Code.OK) {
33637
+ if (g.status !== grpc$c.Code.OK) {
33632
33638
  var p = new Error(g.statusMessage);
33633
33639
  p.code = g.status, p.metadata = g.trailers, i(p, null);
33634
33640
  } else
@@ -33643,7 +33649,7 @@ MotorServiceClient.prototype.getProperties = function t(e, s, i) {
33643
33649
  };
33644
33650
  MotorServiceClient.prototype.stop = function t(e, s, i) {
33645
33651
  arguments.length === 2 && (i = arguments[1]);
33646
- var u = grpc$b.unary(MotorService.Stop, {
33652
+ var u = grpc$c.unary(MotorService.Stop, {
33647
33653
  request: e,
33648
33654
  host: this.serviceHost,
33649
33655
  metadata: s,
@@ -33651,7 +33657,7 @@ MotorServiceClient.prototype.stop = function t(e, s, i) {
33651
33657
  debug: this.options.debug,
33652
33658
  onEnd: function(g) {
33653
33659
  if (i)
33654
- if (g.status !== grpc$b.Code.OK) {
33660
+ if (g.status !== grpc$c.Code.OK) {
33655
33661
  var p = new Error(g.statusMessage);
33656
33662
  p.code = g.status, p.metadata = g.trailers, i(p, null);
33657
33663
  } else
@@ -33666,7 +33672,7 @@ MotorServiceClient.prototype.stop = function t(e, s, i) {
33666
33672
  };
33667
33673
  MotorServiceClient.prototype.isPowered = function t(e, s, i) {
33668
33674
  arguments.length === 2 && (i = arguments[1]);
33669
- var u = grpc$b.unary(MotorService.IsPowered, {
33675
+ var u = grpc$c.unary(MotorService.IsPowered, {
33670
33676
  request: e,
33671
33677
  host: this.serviceHost,
33672
33678
  metadata: s,
@@ -33674,7 +33680,7 @@ MotorServiceClient.prototype.isPowered = function t(e, s, i) {
33674
33680
  debug: this.options.debug,
33675
33681
  onEnd: function(g) {
33676
33682
  if (i)
33677
- if (g.status !== grpc$b.Code.OK) {
33683
+ if (g.status !== grpc$c.Code.OK) {
33678
33684
  var p = new Error(g.statusMessage);
33679
33685
  p.code = g.status, p.metadata = g.trailers, i(p, null);
33680
33686
  } else
@@ -33689,7 +33695,7 @@ MotorServiceClient.prototype.isPowered = function t(e, s, i) {
33689
33695
  };
33690
33696
  MotorServiceClient.prototype.isMoving = function t(e, s, i) {
33691
33697
  arguments.length === 2 && (i = arguments[1]);
33692
- var u = grpc$b.unary(MotorService.IsMoving, {
33698
+ var u = grpc$c.unary(MotorService.IsMoving, {
33693
33699
  request: e,
33694
33700
  host: this.serviceHost,
33695
33701
  metadata: s,
@@ -33697,7 +33703,7 @@ MotorServiceClient.prototype.isMoving = function t(e, s, i) {
33697
33703
  debug: this.options.debug,
33698
33704
  onEnd: function(g) {
33699
33705
  if (i)
33700
- if (g.status !== grpc$b.Code.OK) {
33706
+ if (g.status !== grpc$c.Code.OK) {
33701
33707
  var p = new Error(g.statusMessage);
33702
33708
  p.code = g.status, p.metadata = g.trailers, i(p, null);
33703
33709
  } else
@@ -33712,7 +33718,7 @@ MotorServiceClient.prototype.isMoving = function t(e, s, i) {
33712
33718
  };
33713
33719
  MotorServiceClient.prototype.doCommand = function t(e, s, i) {
33714
33720
  arguments.length === 2 && (i = arguments[1]);
33715
- var u = grpc$b.unary(MotorService.DoCommand, {
33721
+ var u = grpc$c.unary(MotorService.DoCommand, {
33716
33722
  request: e,
33717
33723
  host: this.serviceHost,
33718
33724
  metadata: s,
@@ -33720,7 +33726,7 @@ MotorServiceClient.prototype.doCommand = function t(e, s, i) {
33720
33726
  debug: this.options.debug,
33721
33727
  onEnd: function(g) {
33722
33728
  if (i)
33723
- if (g.status !== grpc$b.Code.OK) {
33729
+ if (g.status !== grpc$c.Code.OK) {
33724
33730
  var p = new Error(g.statusMessage);
33725
33731
  p.code = g.status, p.metadata = g.trailers, i(p, null);
33726
33732
  } else
@@ -33735,7 +33741,7 @@ MotorServiceClient.prototype.doCommand = function t(e, s, i) {
33735
33741
  };
33736
33742
  MotorServiceClient.prototype.getGeometries = function t(e, s, i) {
33737
33743
  arguments.length === 2 && (i = arguments[1]);
33738
- var u = grpc$b.unary(MotorService.GetGeometries, {
33744
+ var u = grpc$c.unary(MotorService.GetGeometries, {
33739
33745
  request: e,
33740
33746
  host: this.serviceHost,
33741
33747
  metadata: s,
@@ -33743,7 +33749,7 @@ MotorServiceClient.prototype.getGeometries = function t(e, s, i) {
33743
33749
  debug: this.options.debug,
33744
33750
  onEnd: function(g) {
33745
33751
  if (i)
33746
- if (g.status !== grpc$b.Code.OK) {
33752
+ if (g.status !== grpc$c.Code.OK) {
33747
33753
  var p = new Error(g.statusMessage);
33748
33754
  p.code = g.status, p.metadata = g.trailers, i(p, null);
33749
33755
  } else
@@ -34766,7 +34772,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
34766
34772
  return e.Message.getField(this, 1) != null;
34767
34773
  }, s.object.extend(t, proto.viam.component.movementsensor.v1);
34768
34774
  })(movementsensor_pb);
34769
- var component_movementsensor_v1_movementsensor_pb = movementsensor_pb, common_v1_common_pb$8 = common_pb, grpc$a = grpcWebClient_umdExports.grpc, MovementSensorService = function() {
34775
+ var component_movementsensor_v1_movementsensor_pb = movementsensor_pb, common_v1_common_pb$9 = common_pb, grpc$b = grpcWebClient_umdExports.grpc, MovementSensorService = function() {
34770
34776
  function t() {
34771
34777
  }
34772
34778
  return t.serviceName = "viam.component.movementsensor.v1.MovementSensorService", t;
@@ -34840,23 +34846,23 @@ MovementSensorService.DoCommand = {
34840
34846
  service: MovementSensorService,
34841
34847
  requestStream: !1,
34842
34848
  responseStream: !1,
34843
- requestType: common_v1_common_pb$8.DoCommandRequest,
34844
- responseType: common_v1_common_pb$8.DoCommandResponse
34849
+ requestType: common_v1_common_pb$9.DoCommandRequest,
34850
+ responseType: common_v1_common_pb$9.DoCommandResponse
34845
34851
  };
34846
34852
  MovementSensorService.GetGeometries = {
34847
34853
  methodName: "GetGeometries",
34848
34854
  service: MovementSensorService,
34849
34855
  requestStream: !1,
34850
34856
  responseStream: !1,
34851
- requestType: common_v1_common_pb$8.GetGeometriesRequest,
34852
- responseType: common_v1_common_pb$8.GetGeometriesResponse
34857
+ requestType: common_v1_common_pb$9.GetGeometriesRequest,
34858
+ responseType: common_v1_common_pb$9.GetGeometriesResponse
34853
34859
  };
34854
34860
  function MovementSensorServiceClient(t, e) {
34855
34861
  this.serviceHost = t, this.options = e || {};
34856
34862
  }
34857
34863
  MovementSensorServiceClient.prototype.getLinearVelocity = function t(e, s, i) {
34858
34864
  arguments.length === 2 && (i = arguments[1]);
34859
- var u = grpc$a.unary(MovementSensorService.GetLinearVelocity, {
34865
+ var u = grpc$b.unary(MovementSensorService.GetLinearVelocity, {
34860
34866
  request: e,
34861
34867
  host: this.serviceHost,
34862
34868
  metadata: s,
@@ -34864,7 +34870,7 @@ MovementSensorServiceClient.prototype.getLinearVelocity = function t(e, s, i) {
34864
34870
  debug: this.options.debug,
34865
34871
  onEnd: function(g) {
34866
34872
  if (i)
34867
- if (g.status !== grpc$a.Code.OK) {
34873
+ if (g.status !== grpc$b.Code.OK) {
34868
34874
  var p = new Error(g.statusMessage);
34869
34875
  p.code = g.status, p.metadata = g.trailers, i(p, null);
34870
34876
  } else
@@ -34879,7 +34885,7 @@ MovementSensorServiceClient.prototype.getLinearVelocity = function t(e, s, i) {
34879
34885
  };
34880
34886
  MovementSensorServiceClient.prototype.getAngularVelocity = function t(e, s, i) {
34881
34887
  arguments.length === 2 && (i = arguments[1]);
34882
- var u = grpc$a.unary(MovementSensorService.GetAngularVelocity, {
34888
+ var u = grpc$b.unary(MovementSensorService.GetAngularVelocity, {
34883
34889
  request: e,
34884
34890
  host: this.serviceHost,
34885
34891
  metadata: s,
@@ -34887,7 +34893,7 @@ MovementSensorServiceClient.prototype.getAngularVelocity = function t(e, s, i) {
34887
34893
  debug: this.options.debug,
34888
34894
  onEnd: function(g) {
34889
34895
  if (i)
34890
- if (g.status !== grpc$a.Code.OK) {
34896
+ if (g.status !== grpc$b.Code.OK) {
34891
34897
  var p = new Error(g.statusMessage);
34892
34898
  p.code = g.status, p.metadata = g.trailers, i(p, null);
34893
34899
  } else
@@ -34902,7 +34908,7 @@ MovementSensorServiceClient.prototype.getAngularVelocity = function t(e, s, i) {
34902
34908
  };
34903
34909
  MovementSensorServiceClient.prototype.getCompassHeading = function t(e, s, i) {
34904
34910
  arguments.length === 2 && (i = arguments[1]);
34905
- var u = grpc$a.unary(MovementSensorService.GetCompassHeading, {
34911
+ var u = grpc$b.unary(MovementSensorService.GetCompassHeading, {
34906
34912
  request: e,
34907
34913
  host: this.serviceHost,
34908
34914
  metadata: s,
@@ -34910,7 +34916,7 @@ MovementSensorServiceClient.prototype.getCompassHeading = function t(e, s, i) {
34910
34916
  debug: this.options.debug,
34911
34917
  onEnd: function(g) {
34912
34918
  if (i)
34913
- if (g.status !== grpc$a.Code.OK) {
34919
+ if (g.status !== grpc$b.Code.OK) {
34914
34920
  var p = new Error(g.statusMessage);
34915
34921
  p.code = g.status, p.metadata = g.trailers, i(p, null);
34916
34922
  } else
@@ -34925,7 +34931,7 @@ MovementSensorServiceClient.prototype.getCompassHeading = function t(e, s, i) {
34925
34931
  };
34926
34932
  MovementSensorServiceClient.prototype.getOrientation = function t(e, s, i) {
34927
34933
  arguments.length === 2 && (i = arguments[1]);
34928
- var u = grpc$a.unary(MovementSensorService.GetOrientation, {
34934
+ var u = grpc$b.unary(MovementSensorService.GetOrientation, {
34929
34935
  request: e,
34930
34936
  host: this.serviceHost,
34931
34937
  metadata: s,
@@ -34933,7 +34939,7 @@ MovementSensorServiceClient.prototype.getOrientation = function t(e, s, i) {
34933
34939
  debug: this.options.debug,
34934
34940
  onEnd: function(g) {
34935
34941
  if (i)
34936
- if (g.status !== grpc$a.Code.OK) {
34942
+ if (g.status !== grpc$b.Code.OK) {
34937
34943
  var p = new Error(g.statusMessage);
34938
34944
  p.code = g.status, p.metadata = g.trailers, i(p, null);
34939
34945
  } else
@@ -34948,7 +34954,7 @@ MovementSensorServiceClient.prototype.getOrientation = function t(e, s, i) {
34948
34954
  };
34949
34955
  MovementSensorServiceClient.prototype.getPosition = function t(e, s, i) {
34950
34956
  arguments.length === 2 && (i = arguments[1]);
34951
- var u = grpc$a.unary(MovementSensorService.GetPosition, {
34957
+ var u = grpc$b.unary(MovementSensorService.GetPosition, {
34952
34958
  request: e,
34953
34959
  host: this.serviceHost,
34954
34960
  metadata: s,
@@ -34956,7 +34962,7 @@ MovementSensorServiceClient.prototype.getPosition = function t(e, s, i) {
34956
34962
  debug: this.options.debug,
34957
34963
  onEnd: function(g) {
34958
34964
  if (i)
34959
- if (g.status !== grpc$a.Code.OK) {
34965
+ if (g.status !== grpc$b.Code.OK) {
34960
34966
  var p = new Error(g.statusMessage);
34961
34967
  p.code = g.status, p.metadata = g.trailers, i(p, null);
34962
34968
  } else
@@ -34971,7 +34977,7 @@ MovementSensorServiceClient.prototype.getPosition = function t(e, s, i) {
34971
34977
  };
34972
34978
  MovementSensorServiceClient.prototype.getProperties = function t(e, s, i) {
34973
34979
  arguments.length === 2 && (i = arguments[1]);
34974
- var u = grpc$a.unary(MovementSensorService.GetProperties, {
34980
+ var u = grpc$b.unary(MovementSensorService.GetProperties, {
34975
34981
  request: e,
34976
34982
  host: this.serviceHost,
34977
34983
  metadata: s,
@@ -34979,7 +34985,7 @@ MovementSensorServiceClient.prototype.getProperties = function t(e, s, i) {
34979
34985
  debug: this.options.debug,
34980
34986
  onEnd: function(g) {
34981
34987
  if (i)
34982
- if (g.status !== grpc$a.Code.OK) {
34988
+ if (g.status !== grpc$b.Code.OK) {
34983
34989
  var p = new Error(g.statusMessage);
34984
34990
  p.code = g.status, p.metadata = g.trailers, i(p, null);
34985
34991
  } else
@@ -34994,7 +35000,7 @@ MovementSensorServiceClient.prototype.getProperties = function t(e, s, i) {
34994
35000
  };
34995
35001
  MovementSensorServiceClient.prototype.getAccuracy = function t(e, s, i) {
34996
35002
  arguments.length === 2 && (i = arguments[1]);
34997
- var u = grpc$a.unary(MovementSensorService.GetAccuracy, {
35003
+ var u = grpc$b.unary(MovementSensorService.GetAccuracy, {
34998
35004
  request: e,
34999
35005
  host: this.serviceHost,
35000
35006
  metadata: s,
@@ -35002,7 +35008,7 @@ MovementSensorServiceClient.prototype.getAccuracy = function t(e, s, i) {
35002
35008
  debug: this.options.debug,
35003
35009
  onEnd: function(g) {
35004
35010
  if (i)
35005
- if (g.status !== grpc$a.Code.OK) {
35011
+ if (g.status !== grpc$b.Code.OK) {
35006
35012
  var p = new Error(g.statusMessage);
35007
35013
  p.code = g.status, p.metadata = g.trailers, i(p, null);
35008
35014
  } else
@@ -35017,7 +35023,7 @@ MovementSensorServiceClient.prototype.getAccuracy = function t(e, s, i) {
35017
35023
  };
35018
35024
  MovementSensorServiceClient.prototype.getLinearAcceleration = function t(e, s, i) {
35019
35025
  arguments.length === 2 && (i = arguments[1]);
35020
- var u = grpc$a.unary(MovementSensorService.GetLinearAcceleration, {
35026
+ var u = grpc$b.unary(MovementSensorService.GetLinearAcceleration, {
35021
35027
  request: e,
35022
35028
  host: this.serviceHost,
35023
35029
  metadata: s,
@@ -35025,7 +35031,7 @@ MovementSensorServiceClient.prototype.getLinearAcceleration = function t(e, s, i
35025
35031
  debug: this.options.debug,
35026
35032
  onEnd: function(g) {
35027
35033
  if (i)
35028
- if (g.status !== grpc$a.Code.OK) {
35034
+ if (g.status !== grpc$b.Code.OK) {
35029
35035
  var p = new Error(g.statusMessage);
35030
35036
  p.code = g.status, p.metadata = g.trailers, i(p, null);
35031
35037
  } else
@@ -35040,7 +35046,7 @@ MovementSensorServiceClient.prototype.getLinearAcceleration = function t(e, s, i
35040
35046
  };
35041
35047
  MovementSensorServiceClient.prototype.doCommand = function t(e, s, i) {
35042
35048
  arguments.length === 2 && (i = arguments[1]);
35043
- var u = grpc$a.unary(MovementSensorService.DoCommand, {
35049
+ var u = grpc$b.unary(MovementSensorService.DoCommand, {
35044
35050
  request: e,
35045
35051
  host: this.serviceHost,
35046
35052
  metadata: s,
@@ -35048,7 +35054,7 @@ MovementSensorServiceClient.prototype.doCommand = function t(e, s, i) {
35048
35054
  debug: this.options.debug,
35049
35055
  onEnd: function(g) {
35050
35056
  if (i)
35051
- if (g.status !== grpc$a.Code.OK) {
35057
+ if (g.status !== grpc$b.Code.OK) {
35052
35058
  var p = new Error(g.statusMessage);
35053
35059
  p.code = g.status, p.metadata = g.trailers, i(p, null);
35054
35060
  } else
@@ -35063,7 +35069,7 @@ MovementSensorServiceClient.prototype.doCommand = function t(e, s, i) {
35063
35069
  };
35064
35070
  MovementSensorServiceClient.prototype.getGeometries = function t(e, s, i) {
35065
35071
  arguments.length === 2 && (i = arguments[1]);
35066
- var u = grpc$a.unary(MovementSensorService.GetGeometries, {
35072
+ var u = grpc$b.unary(MovementSensorService.GetGeometries, {
35067
35073
  request: e,
35068
35074
  host: this.serviceHost,
35069
35075
  metadata: s,
@@ -35071,7 +35077,7 @@ MovementSensorServiceClient.prototype.getGeometries = function t(e, s, i) {
35071
35077
  debug: this.options.debug,
35072
35078
  onEnd: function(g) {
35073
35079
  if (i)
35074
- if (g.status !== grpc$a.Code.OK) {
35080
+ if (g.status !== grpc$b.Code.OK) {
35075
35081
  var p = new Error(g.statusMessage);
35076
35082
  p.code = g.status, p.metadata = g.trailers, i(p, null);
35077
35083
  } else
@@ -35941,7 +35947,7 @@ var MovementSensorServiceClient_1 = MovementSensorServiceClient, navigation_pb =
35941
35947
  MODE_WAYPOINT: 2
35942
35948
  }, s.object.extend(t, proto.viam.service.navigation.v1);
35943
35949
  })(navigation_pb);
35944
- var service_navigation_v1_navigation_pb = navigation_pb, common_v1_common_pb$7 = common_pb, grpc$9 = grpcWebClient_umdExports.grpc, NavigationService = function() {
35950
+ var service_navigation_v1_navigation_pb = navigation_pb, common_v1_common_pb$8 = common_pb, grpc$a = grpcWebClient_umdExports.grpc, NavigationService = function() {
35945
35951
  function t() {
35946
35952
  }
35947
35953
  return t.serviceName = "viam.service.navigation.v1.NavigationService", t;
@@ -36007,15 +36013,15 @@ NavigationService.DoCommand = {
36007
36013
  service: NavigationService,
36008
36014
  requestStream: !1,
36009
36015
  responseStream: !1,
36010
- requestType: common_v1_common_pb$7.DoCommandRequest,
36011
- responseType: common_v1_common_pb$7.DoCommandResponse
36016
+ requestType: common_v1_common_pb$8.DoCommandRequest,
36017
+ responseType: common_v1_common_pb$8.DoCommandResponse
36012
36018
  };
36013
36019
  function NavigationServiceClient(t, e) {
36014
36020
  this.serviceHost = t, this.options = e || {};
36015
36021
  }
36016
36022
  NavigationServiceClient.prototype.getMode = function t(e, s, i) {
36017
36023
  arguments.length === 2 && (i = arguments[1]);
36018
- var u = grpc$9.unary(NavigationService.GetMode, {
36024
+ var u = grpc$a.unary(NavigationService.GetMode, {
36019
36025
  request: e,
36020
36026
  host: this.serviceHost,
36021
36027
  metadata: s,
@@ -36023,7 +36029,7 @@ NavigationServiceClient.prototype.getMode = function t(e, s, i) {
36023
36029
  debug: this.options.debug,
36024
36030
  onEnd: function(g) {
36025
36031
  if (i)
36026
- if (g.status !== grpc$9.Code.OK) {
36032
+ if (g.status !== grpc$a.Code.OK) {
36027
36033
  var p = new Error(g.statusMessage);
36028
36034
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36029
36035
  } else
@@ -36038,7 +36044,7 @@ NavigationServiceClient.prototype.getMode = function t(e, s, i) {
36038
36044
  };
36039
36045
  NavigationServiceClient.prototype.setMode = function t(e, s, i) {
36040
36046
  arguments.length === 2 && (i = arguments[1]);
36041
- var u = grpc$9.unary(NavigationService.SetMode, {
36047
+ var u = grpc$a.unary(NavigationService.SetMode, {
36042
36048
  request: e,
36043
36049
  host: this.serviceHost,
36044
36050
  metadata: s,
@@ -36046,7 +36052,7 @@ NavigationServiceClient.prototype.setMode = function t(e, s, i) {
36046
36052
  debug: this.options.debug,
36047
36053
  onEnd: function(g) {
36048
36054
  if (i)
36049
- if (g.status !== grpc$9.Code.OK) {
36055
+ if (g.status !== grpc$a.Code.OK) {
36050
36056
  var p = new Error(g.statusMessage);
36051
36057
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36052
36058
  } else
@@ -36061,7 +36067,7 @@ NavigationServiceClient.prototype.setMode = function t(e, s, i) {
36061
36067
  };
36062
36068
  NavigationServiceClient.prototype.getLocation = function t(e, s, i) {
36063
36069
  arguments.length === 2 && (i = arguments[1]);
36064
- var u = grpc$9.unary(NavigationService.GetLocation, {
36070
+ var u = grpc$a.unary(NavigationService.GetLocation, {
36065
36071
  request: e,
36066
36072
  host: this.serviceHost,
36067
36073
  metadata: s,
@@ -36069,7 +36075,7 @@ NavigationServiceClient.prototype.getLocation = function t(e, s, i) {
36069
36075
  debug: this.options.debug,
36070
36076
  onEnd: function(g) {
36071
36077
  if (i)
36072
- if (g.status !== grpc$9.Code.OK) {
36078
+ if (g.status !== grpc$a.Code.OK) {
36073
36079
  var p = new Error(g.statusMessage);
36074
36080
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36075
36081
  } else
@@ -36084,7 +36090,7 @@ NavigationServiceClient.prototype.getLocation = function t(e, s, i) {
36084
36090
  };
36085
36091
  NavigationServiceClient.prototype.getWaypoints = function t(e, s, i) {
36086
36092
  arguments.length === 2 && (i = arguments[1]);
36087
- var u = grpc$9.unary(NavigationService.GetWaypoints, {
36093
+ var u = grpc$a.unary(NavigationService.GetWaypoints, {
36088
36094
  request: e,
36089
36095
  host: this.serviceHost,
36090
36096
  metadata: s,
@@ -36092,7 +36098,7 @@ NavigationServiceClient.prototype.getWaypoints = function t(e, s, i) {
36092
36098
  debug: this.options.debug,
36093
36099
  onEnd: function(g) {
36094
36100
  if (i)
36095
- if (g.status !== grpc$9.Code.OK) {
36101
+ if (g.status !== grpc$a.Code.OK) {
36096
36102
  var p = new Error(g.statusMessage);
36097
36103
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36098
36104
  } else
@@ -36107,7 +36113,7 @@ NavigationServiceClient.prototype.getWaypoints = function t(e, s, i) {
36107
36113
  };
36108
36114
  NavigationServiceClient.prototype.addWaypoint = function t(e, s, i) {
36109
36115
  arguments.length === 2 && (i = arguments[1]);
36110
- var u = grpc$9.unary(NavigationService.AddWaypoint, {
36116
+ var u = grpc$a.unary(NavigationService.AddWaypoint, {
36111
36117
  request: e,
36112
36118
  host: this.serviceHost,
36113
36119
  metadata: s,
@@ -36115,7 +36121,7 @@ NavigationServiceClient.prototype.addWaypoint = function t(e, s, i) {
36115
36121
  debug: this.options.debug,
36116
36122
  onEnd: function(g) {
36117
36123
  if (i)
36118
- if (g.status !== grpc$9.Code.OK) {
36124
+ if (g.status !== grpc$a.Code.OK) {
36119
36125
  var p = new Error(g.statusMessage);
36120
36126
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36121
36127
  } else
@@ -36130,7 +36136,7 @@ NavigationServiceClient.prototype.addWaypoint = function t(e, s, i) {
36130
36136
  };
36131
36137
  NavigationServiceClient.prototype.removeWaypoint = function t(e, s, i) {
36132
36138
  arguments.length === 2 && (i = arguments[1]);
36133
- var u = grpc$9.unary(NavigationService.RemoveWaypoint, {
36139
+ var u = grpc$a.unary(NavigationService.RemoveWaypoint, {
36134
36140
  request: e,
36135
36141
  host: this.serviceHost,
36136
36142
  metadata: s,
@@ -36138,7 +36144,7 @@ NavigationServiceClient.prototype.removeWaypoint = function t(e, s, i) {
36138
36144
  debug: this.options.debug,
36139
36145
  onEnd: function(g) {
36140
36146
  if (i)
36141
- if (g.status !== grpc$9.Code.OK) {
36147
+ if (g.status !== grpc$a.Code.OK) {
36142
36148
  var p = new Error(g.statusMessage);
36143
36149
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36144
36150
  } else
@@ -36153,7 +36159,7 @@ NavigationServiceClient.prototype.removeWaypoint = function t(e, s, i) {
36153
36159
  };
36154
36160
  NavigationServiceClient.prototype.getObstacles = function t(e, s, i) {
36155
36161
  arguments.length === 2 && (i = arguments[1]);
36156
- var u = grpc$9.unary(NavigationService.GetObstacles, {
36162
+ var u = grpc$a.unary(NavigationService.GetObstacles, {
36157
36163
  request: e,
36158
36164
  host: this.serviceHost,
36159
36165
  metadata: s,
@@ -36161,7 +36167,7 @@ NavigationServiceClient.prototype.getObstacles = function t(e, s, i) {
36161
36167
  debug: this.options.debug,
36162
36168
  onEnd: function(g) {
36163
36169
  if (i)
36164
- if (g.status !== grpc$9.Code.OK) {
36170
+ if (g.status !== grpc$a.Code.OK) {
36165
36171
  var p = new Error(g.statusMessage);
36166
36172
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36167
36173
  } else
@@ -36176,7 +36182,7 @@ NavigationServiceClient.prototype.getObstacles = function t(e, s, i) {
36176
36182
  };
36177
36183
  NavigationServiceClient.prototype.doCommand = function t(e, s, i) {
36178
36184
  arguments.length === 2 && (i = arguments[1]);
36179
- var u = grpc$9.unary(NavigationService.DoCommand, {
36185
+ var u = grpc$a.unary(NavigationService.DoCommand, {
36180
36186
  request: e,
36181
36187
  host: this.serviceHost,
36182
36188
  metadata: s,
@@ -36184,7 +36190,7 @@ NavigationServiceClient.prototype.doCommand = function t(e, s, i) {
36184
36190
  debug: this.options.debug,
36185
36191
  onEnd: function(g) {
36186
36192
  if (i)
36187
- if (g.status !== grpc$9.Code.OK) {
36193
+ if (g.status !== grpc$a.Code.OK) {
36188
36194
  var p = new Error(g.statusMessage);
36189
36195
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36190
36196
  } else
@@ -36197,7 +36203,7 @@ NavigationServiceClient.prototype.doCommand = function t(e, s, i) {
36197
36203
  }
36198
36204
  };
36199
36205
  };
36200
- var NavigationServiceClient_1 = NavigationServiceClient, robot_v1_robot_pb = robot_pb, grpc$8 = grpcWebClient_umdExports.grpc, RobotService = function() {
36206
+ var NavigationServiceClient_1 = NavigationServiceClient, robot_v1_robot_pb = robot_pb, grpc$9 = grpcWebClient_umdExports.grpc, RobotService = function() {
36201
36207
  function t() {
36202
36208
  }
36203
36209
  return t.serviceName = "viam.robot.v1.RobotService", t;
@@ -36327,7 +36333,7 @@ function RobotServiceClient(t, e) {
36327
36333
  }
36328
36334
  RobotServiceClient.prototype.getOperations = function t(e, s, i) {
36329
36335
  arguments.length === 2 && (i = arguments[1]);
36330
- var u = grpc$8.unary(RobotService.GetOperations, {
36336
+ var u = grpc$9.unary(RobotService.GetOperations, {
36331
36337
  request: e,
36332
36338
  host: this.serviceHost,
36333
36339
  metadata: s,
@@ -36335,7 +36341,7 @@ RobotServiceClient.prototype.getOperations = function t(e, s, i) {
36335
36341
  debug: this.options.debug,
36336
36342
  onEnd: function(g) {
36337
36343
  if (i)
36338
- if (g.status !== grpc$8.Code.OK) {
36344
+ if (g.status !== grpc$9.Code.OK) {
36339
36345
  var p = new Error(g.statusMessage);
36340
36346
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36341
36347
  } else
@@ -36350,7 +36356,7 @@ RobotServiceClient.prototype.getOperations = function t(e, s, i) {
36350
36356
  };
36351
36357
  RobotServiceClient.prototype.getSessions = function t(e, s, i) {
36352
36358
  arguments.length === 2 && (i = arguments[1]);
36353
- var u = grpc$8.unary(RobotService.GetSessions, {
36359
+ var u = grpc$9.unary(RobotService.GetSessions, {
36354
36360
  request: e,
36355
36361
  host: this.serviceHost,
36356
36362
  metadata: s,
@@ -36358,7 +36364,7 @@ RobotServiceClient.prototype.getSessions = function t(e, s, i) {
36358
36364
  debug: this.options.debug,
36359
36365
  onEnd: function(g) {
36360
36366
  if (i)
36361
- if (g.status !== grpc$8.Code.OK) {
36367
+ if (g.status !== grpc$9.Code.OK) {
36362
36368
  var p = new Error(g.statusMessage);
36363
36369
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36364
36370
  } else
@@ -36373,7 +36379,7 @@ RobotServiceClient.prototype.getSessions = function t(e, s, i) {
36373
36379
  };
36374
36380
  RobotServiceClient.prototype.resourceNames = function t(e, s, i) {
36375
36381
  arguments.length === 2 && (i = arguments[1]);
36376
- var u = grpc$8.unary(RobotService.ResourceNames, {
36382
+ var u = grpc$9.unary(RobotService.ResourceNames, {
36377
36383
  request: e,
36378
36384
  host: this.serviceHost,
36379
36385
  metadata: s,
@@ -36381,7 +36387,7 @@ RobotServiceClient.prototype.resourceNames = function t(e, s, i) {
36381
36387
  debug: this.options.debug,
36382
36388
  onEnd: function(g) {
36383
36389
  if (i)
36384
- if (g.status !== grpc$8.Code.OK) {
36390
+ if (g.status !== grpc$9.Code.OK) {
36385
36391
  var p = new Error(g.statusMessage);
36386
36392
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36387
36393
  } else
@@ -36396,7 +36402,7 @@ RobotServiceClient.prototype.resourceNames = function t(e, s, i) {
36396
36402
  };
36397
36403
  RobotServiceClient.prototype.resourceRPCSubtypes = function t(e, s, i) {
36398
36404
  arguments.length === 2 && (i = arguments[1]);
36399
- var u = grpc$8.unary(RobotService.ResourceRPCSubtypes, {
36405
+ var u = grpc$9.unary(RobotService.ResourceRPCSubtypes, {
36400
36406
  request: e,
36401
36407
  host: this.serviceHost,
36402
36408
  metadata: s,
@@ -36404,7 +36410,7 @@ RobotServiceClient.prototype.resourceRPCSubtypes = function t(e, s, i) {
36404
36410
  debug: this.options.debug,
36405
36411
  onEnd: function(g) {
36406
36412
  if (i)
36407
- if (g.status !== grpc$8.Code.OK) {
36413
+ if (g.status !== grpc$9.Code.OK) {
36408
36414
  var p = new Error(g.statusMessage);
36409
36415
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36410
36416
  } else
@@ -36419,7 +36425,7 @@ RobotServiceClient.prototype.resourceRPCSubtypes = function t(e, s, i) {
36419
36425
  };
36420
36426
  RobotServiceClient.prototype.cancelOperation = function t(e, s, i) {
36421
36427
  arguments.length === 2 && (i = arguments[1]);
36422
- var u = grpc$8.unary(RobotService.CancelOperation, {
36428
+ var u = grpc$9.unary(RobotService.CancelOperation, {
36423
36429
  request: e,
36424
36430
  host: this.serviceHost,
36425
36431
  metadata: s,
@@ -36427,7 +36433,7 @@ RobotServiceClient.prototype.cancelOperation = function t(e, s, i) {
36427
36433
  debug: this.options.debug,
36428
36434
  onEnd: function(g) {
36429
36435
  if (i)
36430
- if (g.status !== grpc$8.Code.OK) {
36436
+ if (g.status !== grpc$9.Code.OK) {
36431
36437
  var p = new Error(g.statusMessage);
36432
36438
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36433
36439
  } else
@@ -36442,7 +36448,7 @@ RobotServiceClient.prototype.cancelOperation = function t(e, s, i) {
36442
36448
  };
36443
36449
  RobotServiceClient.prototype.blockForOperation = function t(e, s, i) {
36444
36450
  arguments.length === 2 && (i = arguments[1]);
36445
- var u = grpc$8.unary(RobotService.BlockForOperation, {
36451
+ var u = grpc$9.unary(RobotService.BlockForOperation, {
36446
36452
  request: e,
36447
36453
  host: this.serviceHost,
36448
36454
  metadata: s,
@@ -36450,7 +36456,7 @@ RobotServiceClient.prototype.blockForOperation = function t(e, s, i) {
36450
36456
  debug: this.options.debug,
36451
36457
  onEnd: function(g) {
36452
36458
  if (i)
36453
- if (g.status !== grpc$8.Code.OK) {
36459
+ if (g.status !== grpc$9.Code.OK) {
36454
36460
  var p = new Error(g.statusMessage);
36455
36461
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36456
36462
  } else
@@ -36465,7 +36471,7 @@ RobotServiceClient.prototype.blockForOperation = function t(e, s, i) {
36465
36471
  };
36466
36472
  RobotServiceClient.prototype.discoverComponents = function t(e, s, i) {
36467
36473
  arguments.length === 2 && (i = arguments[1]);
36468
- var u = grpc$8.unary(RobotService.DiscoverComponents, {
36474
+ var u = grpc$9.unary(RobotService.DiscoverComponents, {
36469
36475
  request: e,
36470
36476
  host: this.serviceHost,
36471
36477
  metadata: s,
@@ -36473,7 +36479,7 @@ RobotServiceClient.prototype.discoverComponents = function t(e, s, i) {
36473
36479
  debug: this.options.debug,
36474
36480
  onEnd: function(g) {
36475
36481
  if (i)
36476
- if (g.status !== grpc$8.Code.OK) {
36482
+ if (g.status !== grpc$9.Code.OK) {
36477
36483
  var p = new Error(g.statusMessage);
36478
36484
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36479
36485
  } else
@@ -36488,7 +36494,7 @@ RobotServiceClient.prototype.discoverComponents = function t(e, s, i) {
36488
36494
  };
36489
36495
  RobotServiceClient.prototype.frameSystemConfig = function t(e, s, i) {
36490
36496
  arguments.length === 2 && (i = arguments[1]);
36491
- var u = grpc$8.unary(RobotService.FrameSystemConfig, {
36497
+ var u = grpc$9.unary(RobotService.FrameSystemConfig, {
36492
36498
  request: e,
36493
36499
  host: this.serviceHost,
36494
36500
  metadata: s,
@@ -36496,7 +36502,7 @@ RobotServiceClient.prototype.frameSystemConfig = function t(e, s, i) {
36496
36502
  debug: this.options.debug,
36497
36503
  onEnd: function(g) {
36498
36504
  if (i)
36499
- if (g.status !== grpc$8.Code.OK) {
36505
+ if (g.status !== grpc$9.Code.OK) {
36500
36506
  var p = new Error(g.statusMessage);
36501
36507
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36502
36508
  } else
@@ -36511,7 +36517,7 @@ RobotServiceClient.prototype.frameSystemConfig = function t(e, s, i) {
36511
36517
  };
36512
36518
  RobotServiceClient.prototype.transformPose = function t(e, s, i) {
36513
36519
  arguments.length === 2 && (i = arguments[1]);
36514
- var u = grpc$8.unary(RobotService.TransformPose, {
36520
+ var u = grpc$9.unary(RobotService.TransformPose, {
36515
36521
  request: e,
36516
36522
  host: this.serviceHost,
36517
36523
  metadata: s,
@@ -36519,7 +36525,7 @@ RobotServiceClient.prototype.transformPose = function t(e, s, i) {
36519
36525
  debug: this.options.debug,
36520
36526
  onEnd: function(g) {
36521
36527
  if (i)
36522
- if (g.status !== grpc$8.Code.OK) {
36528
+ if (g.status !== grpc$9.Code.OK) {
36523
36529
  var p = new Error(g.statusMessage);
36524
36530
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36525
36531
  } else
@@ -36534,7 +36540,7 @@ RobotServiceClient.prototype.transformPose = function t(e, s, i) {
36534
36540
  };
36535
36541
  RobotServiceClient.prototype.transformPCD = function t(e, s, i) {
36536
36542
  arguments.length === 2 && (i = arguments[1]);
36537
- var u = grpc$8.unary(RobotService.TransformPCD, {
36543
+ var u = grpc$9.unary(RobotService.TransformPCD, {
36538
36544
  request: e,
36539
36545
  host: this.serviceHost,
36540
36546
  metadata: s,
@@ -36542,7 +36548,7 @@ RobotServiceClient.prototype.transformPCD = function t(e, s, i) {
36542
36548
  debug: this.options.debug,
36543
36549
  onEnd: function(g) {
36544
36550
  if (i)
36545
- if (g.status !== grpc$8.Code.OK) {
36551
+ if (g.status !== grpc$9.Code.OK) {
36546
36552
  var p = new Error(g.statusMessage);
36547
36553
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36548
36554
  } else
@@ -36557,7 +36563,7 @@ RobotServiceClient.prototype.transformPCD = function t(e, s, i) {
36557
36563
  };
36558
36564
  RobotServiceClient.prototype.getStatus = function t(e, s, i) {
36559
36565
  arguments.length === 2 && (i = arguments[1]);
36560
- var u = grpc$8.unary(RobotService.GetStatus, {
36566
+ var u = grpc$9.unary(RobotService.GetStatus, {
36561
36567
  request: e,
36562
36568
  host: this.serviceHost,
36563
36569
  metadata: s,
@@ -36565,7 +36571,7 @@ RobotServiceClient.prototype.getStatus = function t(e, s, i) {
36565
36571
  debug: this.options.debug,
36566
36572
  onEnd: function(g) {
36567
36573
  if (i)
36568
- if (g.status !== grpc$8.Code.OK) {
36574
+ if (g.status !== grpc$9.Code.OK) {
36569
36575
  var p = new Error(g.statusMessage);
36570
36576
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36571
36577
  } else
@@ -36583,7 +36589,7 @@ RobotServiceClient.prototype.streamStatus = function t(e, s) {
36583
36589
  data: [],
36584
36590
  end: [],
36585
36591
  status: []
36586
- }, u = grpc$8.invoke(RobotService.StreamStatus, {
36592
+ }, u = grpc$9.invoke(RobotService.StreamStatus, {
36587
36593
  request: e,
36588
36594
  host: this.serviceHost,
36589
36595
  metadata: s,
@@ -36613,7 +36619,7 @@ RobotServiceClient.prototype.streamStatus = function t(e, s) {
36613
36619
  };
36614
36620
  RobotServiceClient.prototype.stopAll = function t(e, s, i) {
36615
36621
  arguments.length === 2 && (i = arguments[1]);
36616
- var u = grpc$8.unary(RobotService.StopAll, {
36622
+ var u = grpc$9.unary(RobotService.StopAll, {
36617
36623
  request: e,
36618
36624
  host: this.serviceHost,
36619
36625
  metadata: s,
@@ -36621,7 +36627,7 @@ RobotServiceClient.prototype.stopAll = function t(e, s, i) {
36621
36627
  debug: this.options.debug,
36622
36628
  onEnd: function(g) {
36623
36629
  if (i)
36624
- if (g.status !== grpc$8.Code.OK) {
36630
+ if (g.status !== grpc$9.Code.OK) {
36625
36631
  var p = new Error(g.statusMessage);
36626
36632
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36627
36633
  } else
@@ -36636,7 +36642,7 @@ RobotServiceClient.prototype.stopAll = function t(e, s, i) {
36636
36642
  };
36637
36643
  RobotServiceClient.prototype.startSession = function t(e, s, i) {
36638
36644
  arguments.length === 2 && (i = arguments[1]);
36639
- var u = grpc$8.unary(RobotService.StartSession, {
36645
+ var u = grpc$9.unary(RobotService.StartSession, {
36640
36646
  request: e,
36641
36647
  host: this.serviceHost,
36642
36648
  metadata: s,
@@ -36644,7 +36650,7 @@ RobotServiceClient.prototype.startSession = function t(e, s, i) {
36644
36650
  debug: this.options.debug,
36645
36651
  onEnd: function(g) {
36646
36652
  if (i)
36647
- if (g.status !== grpc$8.Code.OK) {
36653
+ if (g.status !== grpc$9.Code.OK) {
36648
36654
  var p = new Error(g.statusMessage);
36649
36655
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36650
36656
  } else
@@ -36659,7 +36665,7 @@ RobotServiceClient.prototype.startSession = function t(e, s, i) {
36659
36665
  };
36660
36666
  RobotServiceClient.prototype.sendSessionHeartbeat = function t(e, s, i) {
36661
36667
  arguments.length === 2 && (i = arguments[1]);
36662
- var u = grpc$8.unary(RobotService.SendSessionHeartbeat, {
36668
+ var u = grpc$9.unary(RobotService.SendSessionHeartbeat, {
36663
36669
  request: e,
36664
36670
  host: this.serviceHost,
36665
36671
  metadata: s,
@@ -36667,7 +36673,7 @@ RobotServiceClient.prototype.sendSessionHeartbeat = function t(e, s, i) {
36667
36673
  debug: this.options.debug,
36668
36674
  onEnd: function(g) {
36669
36675
  if (i)
36670
- if (g.status !== grpc$8.Code.OK) {
36676
+ if (g.status !== grpc$9.Code.OK) {
36671
36677
  var p = new Error(g.statusMessage);
36672
36678
  p.code = g.status, p.metadata = g.trailers, i(p, null);
36673
36679
  } else
@@ -37123,7 +37129,7 @@ var RobotServiceClient_1 = RobotServiceClient, slam_pb = {};
37123
37129
  return e.Message.getField(this, 1) != null;
37124
37130
  }, s.object.extend(t, proto.viam.service.slam.v1);
37125
37131
  })(slam_pb);
37126
- var service_slam_v1_slam_pb = slam_pb, common_v1_common_pb$6 = common_pb, grpc$7 = grpcWebClient_umdExports.grpc, SLAMService = function() {
37132
+ var service_slam_v1_slam_pb = slam_pb, common_v1_common_pb$7 = common_pb, grpc$8 = grpcWebClient_umdExports.grpc, SLAMService = function() {
37127
37133
  function t() {
37128
37134
  }
37129
37135
  return t.serviceName = "viam.service.slam.v1.SLAMService", t;
@@ -37165,15 +37171,15 @@ SLAMService.DoCommand = {
37165
37171
  service: SLAMService,
37166
37172
  requestStream: !1,
37167
37173
  responseStream: !1,
37168
- requestType: common_v1_common_pb$6.DoCommandRequest,
37169
- responseType: common_v1_common_pb$6.DoCommandResponse
37174
+ requestType: common_v1_common_pb$7.DoCommandRequest,
37175
+ responseType: common_v1_common_pb$7.DoCommandResponse
37170
37176
  };
37171
37177
  function SLAMServiceClient(t, e) {
37172
37178
  this.serviceHost = t, this.options = e || {};
37173
37179
  }
37174
37180
  SLAMServiceClient.prototype.getPosition = function t(e, s, i) {
37175
37181
  arguments.length === 2 && (i = arguments[1]);
37176
- var u = grpc$7.unary(SLAMService.GetPosition, {
37182
+ var u = grpc$8.unary(SLAMService.GetPosition, {
37177
37183
  request: e,
37178
37184
  host: this.serviceHost,
37179
37185
  metadata: s,
@@ -37181,7 +37187,7 @@ SLAMServiceClient.prototype.getPosition = function t(e, s, i) {
37181
37187
  debug: this.options.debug,
37182
37188
  onEnd: function(g) {
37183
37189
  if (i)
37184
- if (g.status !== grpc$7.Code.OK) {
37190
+ if (g.status !== grpc$8.Code.OK) {
37185
37191
  var p = new Error(g.statusMessage);
37186
37192
  p.code = g.status, p.metadata = g.trailers, i(p, null);
37187
37193
  } else
@@ -37199,7 +37205,7 @@ SLAMServiceClient.prototype.getPointCloudMap = function t(e, s) {
37199
37205
  data: [],
37200
37206
  end: [],
37201
37207
  status: []
37202
- }, u = grpc$7.invoke(SLAMService.GetPointCloudMap, {
37208
+ }, u = grpc$8.invoke(SLAMService.GetPointCloudMap, {
37203
37209
  request: e,
37204
37210
  host: this.serviceHost,
37205
37211
  metadata: s,
@@ -37232,7 +37238,7 @@ SLAMServiceClient.prototype.getInternalState = function t(e, s) {
37232
37238
  data: [],
37233
37239
  end: [],
37234
37240
  status: []
37235
- }, u = grpc$7.invoke(SLAMService.GetInternalState, {
37241
+ }, u = grpc$8.invoke(SLAMService.GetInternalState, {
37236
37242
  request: e,
37237
37243
  host: this.serviceHost,
37238
37244
  metadata: s,
@@ -37262,7 +37268,7 @@ SLAMServiceClient.prototype.getInternalState = function t(e, s) {
37262
37268
  };
37263
37269
  SLAMServiceClient.prototype.getLatestMapInfo = function t(e, s, i) {
37264
37270
  arguments.length === 2 && (i = arguments[1]);
37265
- var u = grpc$7.unary(SLAMService.GetLatestMapInfo, {
37271
+ var u = grpc$8.unary(SLAMService.GetLatestMapInfo, {
37266
37272
  request: e,
37267
37273
  host: this.serviceHost,
37268
37274
  metadata: s,
@@ -37270,7 +37276,7 @@ SLAMServiceClient.prototype.getLatestMapInfo = function t(e, s, i) {
37270
37276
  debug: this.options.debug,
37271
37277
  onEnd: function(g) {
37272
37278
  if (i)
37273
- if (g.status !== grpc$7.Code.OK) {
37279
+ if (g.status !== grpc$8.Code.OK) {
37274
37280
  var p = new Error(g.statusMessage);
37275
37281
  p.code = g.status, p.metadata = g.trailers, i(p, null);
37276
37282
  } else
@@ -37285,7 +37291,7 @@ SLAMServiceClient.prototype.getLatestMapInfo = function t(e, s, i) {
37285
37291
  };
37286
37292
  SLAMServiceClient.prototype.doCommand = function t(e, s, i) {
37287
37293
  arguments.length === 2 && (i = arguments[1]);
37288
- var u = grpc$7.unary(SLAMService.DoCommand, {
37294
+ var u = grpc$8.unary(SLAMService.DoCommand, {
37289
37295
  request: e,
37290
37296
  host: this.serviceHost,
37291
37297
  metadata: s,
@@ -37293,7 +37299,7 @@ SLAMServiceClient.prototype.doCommand = function t(e, s, i) {
37293
37299
  debug: this.options.debug,
37294
37300
  onEnd: function(g) {
37295
37301
  if (i)
37296
- if (g.status !== grpc$7.Code.OK) {
37302
+ if (g.status !== grpc$8.Code.OK) {
37297
37303
  var p = new Error(g.statusMessage);
37298
37304
  p.code = g.status, p.metadata = g.trailers, i(p, null);
37299
37305
  } else
@@ -37639,7 +37645,7 @@ var SLAMServiceClient_1 = SLAMServiceClient, sensors_pb = {};
37639
37645
  return this.setReadingsList([]);
37640
37646
  }, s.object.extend(t, proto.viam.service.sensors.v1);
37641
37647
  })(sensors_pb);
37642
- var service_sensors_v1_sensors_pb = sensors_pb, common_v1_common_pb$5 = common_pb, grpc$6 = grpcWebClient_umdExports.grpc, SensorsService = function() {
37648
+ var service_sensors_v1_sensors_pb = sensors_pb, common_v1_common_pb$6 = common_pb, grpc$7 = grpcWebClient_umdExports.grpc, SensorsService = function() {
37643
37649
  function t() {
37644
37650
  }
37645
37651
  return t.serviceName = "viam.service.sensors.v1.SensorsService", t;
@@ -37665,15 +37671,15 @@ SensorsService.DoCommand = {
37665
37671
  service: SensorsService,
37666
37672
  requestStream: !1,
37667
37673
  responseStream: !1,
37668
- requestType: common_v1_common_pb$5.DoCommandRequest,
37669
- responseType: common_v1_common_pb$5.DoCommandResponse
37674
+ requestType: common_v1_common_pb$6.DoCommandRequest,
37675
+ responseType: common_v1_common_pb$6.DoCommandResponse
37670
37676
  };
37671
37677
  function SensorsServiceClient(t, e) {
37672
37678
  this.serviceHost = t, this.options = e || {};
37673
37679
  }
37674
37680
  SensorsServiceClient.prototype.getSensors = function t(e, s, i) {
37675
37681
  arguments.length === 2 && (i = arguments[1]);
37676
- var u = grpc$6.unary(SensorsService.GetSensors, {
37682
+ var u = grpc$7.unary(SensorsService.GetSensors, {
37677
37683
  request: e,
37678
37684
  host: this.serviceHost,
37679
37685
  metadata: s,
@@ -37681,7 +37687,7 @@ SensorsServiceClient.prototype.getSensors = function t(e, s, i) {
37681
37687
  debug: this.options.debug,
37682
37688
  onEnd: function(g) {
37683
37689
  if (i)
37684
- if (g.status !== grpc$6.Code.OK) {
37690
+ if (g.status !== grpc$7.Code.OK) {
37685
37691
  var p = new Error(g.statusMessage);
37686
37692
  p.code = g.status, p.metadata = g.trailers, i(p, null);
37687
37693
  } else
@@ -37696,7 +37702,7 @@ SensorsServiceClient.prototype.getSensors = function t(e, s, i) {
37696
37702
  };
37697
37703
  SensorsServiceClient.prototype.getReadings = function t(e, s, i) {
37698
37704
  arguments.length === 2 && (i = arguments[1]);
37699
- var u = grpc$6.unary(SensorsService.GetReadings, {
37705
+ var u = grpc$7.unary(SensorsService.GetReadings, {
37700
37706
  request: e,
37701
37707
  host: this.serviceHost,
37702
37708
  metadata: s,
@@ -37704,7 +37710,7 @@ SensorsServiceClient.prototype.getReadings = function t(e, s, i) {
37704
37710
  debug: this.options.debug,
37705
37711
  onEnd: function(g) {
37706
37712
  if (i)
37707
- if (g.status !== grpc$6.Code.OK) {
37713
+ if (g.status !== grpc$7.Code.OK) {
37708
37714
  var p = new Error(g.statusMessage);
37709
37715
  p.code = g.status, p.metadata = g.trailers, i(p, null);
37710
37716
  } else
@@ -37719,7 +37725,7 @@ SensorsServiceClient.prototype.getReadings = function t(e, s, i) {
37719
37725
  };
37720
37726
  SensorsServiceClient.prototype.doCommand = function t(e, s, i) {
37721
37727
  arguments.length === 2 && (i = arguments[1]);
37722
- var u = grpc$6.unary(SensorsService.DoCommand, {
37728
+ var u = grpc$7.unary(SensorsService.DoCommand, {
37723
37729
  request: e,
37724
37730
  host: this.serviceHost,
37725
37731
  metadata: s,
@@ -37727,7 +37733,7 @@ SensorsServiceClient.prototype.doCommand = function t(e, s, i) {
37727
37733
  debug: this.options.debug,
37728
37734
  onEnd: function(g) {
37729
37735
  if (i)
37730
- if (g.status !== grpc$6.Code.OK) {
37736
+ if (g.status !== grpc$7.Code.OK) {
37731
37737
  var p = new Error(g.statusMessage);
37732
37738
  p.code = g.status, p.metadata = g.trailers, i(p, null);
37733
37739
  } else
@@ -38210,7 +38216,7 @@ var SensorsServiceClient_1 = SensorsServiceClient, servo_pb = {};
38210
38216
  return e.Message.setProto3BooleanField(this, 1, o);
38211
38217
  }, s.object.extend(t, proto.viam.component.servo.v1);
38212
38218
  })(servo_pb);
38213
- var component_servo_v1_servo_pb = servo_pb, common_v1_common_pb$4 = common_pb, grpc$5 = grpcWebClient_umdExports.grpc, ServoService = function() {
38219
+ var component_servo_v1_servo_pb = servo_pb, common_v1_common_pb$5 = common_pb, grpc$6 = grpcWebClient_umdExports.grpc, ServoService = function() {
38214
38220
  function t() {
38215
38221
  }
38216
38222
  return t.serviceName = "viam.component.servo.v1.ServoService", t;
@@ -38252,23 +38258,23 @@ ServoService.DoCommand = {
38252
38258
  service: ServoService,
38253
38259
  requestStream: !1,
38254
38260
  responseStream: !1,
38255
- requestType: common_v1_common_pb$4.DoCommandRequest,
38256
- responseType: common_v1_common_pb$4.DoCommandResponse
38261
+ requestType: common_v1_common_pb$5.DoCommandRequest,
38262
+ responseType: common_v1_common_pb$5.DoCommandResponse
38257
38263
  };
38258
38264
  ServoService.GetGeometries = {
38259
38265
  methodName: "GetGeometries",
38260
38266
  service: ServoService,
38261
38267
  requestStream: !1,
38262
38268
  responseStream: !1,
38263
- requestType: common_v1_common_pb$4.GetGeometriesRequest,
38264
- responseType: common_v1_common_pb$4.GetGeometriesResponse
38269
+ requestType: common_v1_common_pb$5.GetGeometriesRequest,
38270
+ responseType: common_v1_common_pb$5.GetGeometriesResponse
38265
38271
  };
38266
38272
  function ServoServiceClient(t, e) {
38267
38273
  this.serviceHost = t, this.options = e || {};
38268
38274
  }
38269
38275
  ServoServiceClient.prototype.move = function t(e, s, i) {
38270
38276
  arguments.length === 2 && (i = arguments[1]);
38271
- var u = grpc$5.unary(ServoService.Move, {
38277
+ var u = grpc$6.unary(ServoService.Move, {
38272
38278
  request: e,
38273
38279
  host: this.serviceHost,
38274
38280
  metadata: s,
@@ -38276,7 +38282,7 @@ ServoServiceClient.prototype.move = function t(e, s, i) {
38276
38282
  debug: this.options.debug,
38277
38283
  onEnd: function(g) {
38278
38284
  if (i)
38279
- if (g.status !== grpc$5.Code.OK) {
38285
+ if (g.status !== grpc$6.Code.OK) {
38280
38286
  var p = new Error(g.statusMessage);
38281
38287
  p.code = g.status, p.metadata = g.trailers, i(p, null);
38282
38288
  } else
@@ -38291,7 +38297,7 @@ ServoServiceClient.prototype.move = function t(e, s, i) {
38291
38297
  };
38292
38298
  ServoServiceClient.prototype.getPosition = function t(e, s, i) {
38293
38299
  arguments.length === 2 && (i = arguments[1]);
38294
- var u = grpc$5.unary(ServoService.GetPosition, {
38300
+ var u = grpc$6.unary(ServoService.GetPosition, {
38295
38301
  request: e,
38296
38302
  host: this.serviceHost,
38297
38303
  metadata: s,
@@ -38299,7 +38305,7 @@ ServoServiceClient.prototype.getPosition = function t(e, s, i) {
38299
38305
  debug: this.options.debug,
38300
38306
  onEnd: function(g) {
38301
38307
  if (i)
38302
- if (g.status !== grpc$5.Code.OK) {
38308
+ if (g.status !== grpc$6.Code.OK) {
38303
38309
  var p = new Error(g.statusMessage);
38304
38310
  p.code = g.status, p.metadata = g.trailers, i(p, null);
38305
38311
  } else
@@ -38314,7 +38320,7 @@ ServoServiceClient.prototype.getPosition = function t(e, s, i) {
38314
38320
  };
38315
38321
  ServoServiceClient.prototype.stop = function t(e, s, i) {
38316
38322
  arguments.length === 2 && (i = arguments[1]);
38317
- var u = grpc$5.unary(ServoService.Stop, {
38323
+ var u = grpc$6.unary(ServoService.Stop, {
38318
38324
  request: e,
38319
38325
  host: this.serviceHost,
38320
38326
  metadata: s,
@@ -38322,7 +38328,7 @@ ServoServiceClient.prototype.stop = function t(e, s, i) {
38322
38328
  debug: this.options.debug,
38323
38329
  onEnd: function(g) {
38324
38330
  if (i)
38325
- if (g.status !== grpc$5.Code.OK) {
38331
+ if (g.status !== grpc$6.Code.OK) {
38326
38332
  var p = new Error(g.statusMessage);
38327
38333
  p.code = g.status, p.metadata = g.trailers, i(p, null);
38328
38334
  } else
@@ -38337,7 +38343,7 @@ ServoServiceClient.prototype.stop = function t(e, s, i) {
38337
38343
  };
38338
38344
  ServoServiceClient.prototype.isMoving = function t(e, s, i) {
38339
38345
  arguments.length === 2 && (i = arguments[1]);
38340
- var u = grpc$5.unary(ServoService.IsMoving, {
38346
+ var u = grpc$6.unary(ServoService.IsMoving, {
38341
38347
  request: e,
38342
38348
  host: this.serviceHost,
38343
38349
  metadata: s,
@@ -38345,7 +38351,7 @@ ServoServiceClient.prototype.isMoving = function t(e, s, i) {
38345
38351
  debug: this.options.debug,
38346
38352
  onEnd: function(g) {
38347
38353
  if (i)
38348
- if (g.status !== grpc$5.Code.OK) {
38354
+ if (g.status !== grpc$6.Code.OK) {
38349
38355
  var p = new Error(g.statusMessage);
38350
38356
  p.code = g.status, p.metadata = g.trailers, i(p, null);
38351
38357
  } else
@@ -38360,7 +38366,7 @@ ServoServiceClient.prototype.isMoving = function t(e, s, i) {
38360
38366
  };
38361
38367
  ServoServiceClient.prototype.doCommand = function t(e, s, i) {
38362
38368
  arguments.length === 2 && (i = arguments[1]);
38363
- var u = grpc$5.unary(ServoService.DoCommand, {
38369
+ var u = grpc$6.unary(ServoService.DoCommand, {
38364
38370
  request: e,
38365
38371
  host: this.serviceHost,
38366
38372
  metadata: s,
@@ -38368,7 +38374,7 @@ ServoServiceClient.prototype.doCommand = function t(e, s, i) {
38368
38374
  debug: this.options.debug,
38369
38375
  onEnd: function(g) {
38370
38376
  if (i)
38371
- if (g.status !== grpc$5.Code.OK) {
38377
+ if (g.status !== grpc$6.Code.OK) {
38372
38378
  var p = new Error(g.statusMessage);
38373
38379
  p.code = g.status, p.metadata = g.trailers, i(p, null);
38374
38380
  } else
@@ -38383,7 +38389,7 @@ ServoServiceClient.prototype.doCommand = function t(e, s, i) {
38383
38389
  };
38384
38390
  ServoServiceClient.prototype.getGeometries = function t(e, s, i) {
38385
38391
  arguments.length === 2 && (i = arguments[1]);
38386
- var u = grpc$5.unary(ServoService.GetGeometries, {
38392
+ var u = grpc$6.unary(ServoService.GetGeometries, {
38387
38393
  request: e,
38388
38394
  host: this.serviceHost,
38389
38395
  metadata: s,
@@ -38391,7 +38397,7 @@ ServoServiceClient.prototype.getGeometries = function t(e, s, i) {
38391
38397
  debug: this.options.debug,
38392
38398
  onEnd: function(g) {
38393
38399
  if (i)
38394
- if (g.status !== grpc$5.Code.OK) {
38400
+ if (g.status !== grpc$6.Code.OK) {
38395
38401
  var p = new Error(g.statusMessage);
38396
38402
  p.code = g.status, p.metadata = g.trailers, i(p, null);
38397
38403
  } else
@@ -39511,7 +39517,7 @@ var ServoServiceClient_1 = ServoServiceClient, vision_pb = {};
39511
39517
  return this.setObjectsList([]);
39512
39518
  }, s.object.extend(t, proto.viam.service.vision.v1);
39513
39519
  })(vision_pb);
39514
- var service_vision_v1_vision_pb = vision_pb, common_v1_common_pb$3 = common_pb, grpc$4 = grpcWebClient_umdExports.grpc, VisionService = function() {
39520
+ var service_vision_v1_vision_pb = vision_pb, common_v1_common_pb$4 = common_pb, grpc$5 = grpcWebClient_umdExports.grpc, VisionService = function() {
39515
39521
  function t() {
39516
39522
  }
39517
39523
  return t.serviceName = "viam.service.vision.v1.VisionService", t;
@@ -39561,15 +39567,15 @@ VisionService.DoCommand = {
39561
39567
  service: VisionService,
39562
39568
  requestStream: !1,
39563
39569
  responseStream: !1,
39564
- requestType: common_v1_common_pb$3.DoCommandRequest,
39565
- responseType: common_v1_common_pb$3.DoCommandResponse
39570
+ requestType: common_v1_common_pb$4.DoCommandRequest,
39571
+ responseType: common_v1_common_pb$4.DoCommandResponse
39566
39572
  };
39567
39573
  function VisionServiceClient(t, e) {
39568
39574
  this.serviceHost = t, this.options = e || {};
39569
39575
  }
39570
39576
  VisionServiceClient.prototype.getDetectionsFromCamera = function t(e, s, i) {
39571
39577
  arguments.length === 2 && (i = arguments[1]);
39572
- var u = grpc$4.unary(VisionService.GetDetectionsFromCamera, {
39578
+ var u = grpc$5.unary(VisionService.GetDetectionsFromCamera, {
39573
39579
  request: e,
39574
39580
  host: this.serviceHost,
39575
39581
  metadata: s,
@@ -39577,7 +39583,7 @@ VisionServiceClient.prototype.getDetectionsFromCamera = function t(e, s, i) {
39577
39583
  debug: this.options.debug,
39578
39584
  onEnd: function(g) {
39579
39585
  if (i)
39580
- if (g.status !== grpc$4.Code.OK) {
39586
+ if (g.status !== grpc$5.Code.OK) {
39581
39587
  var p = new Error(g.statusMessage);
39582
39588
  p.code = g.status, p.metadata = g.trailers, i(p, null);
39583
39589
  } else
@@ -39592,7 +39598,7 @@ VisionServiceClient.prototype.getDetectionsFromCamera = function t(e, s, i) {
39592
39598
  };
39593
39599
  VisionServiceClient.prototype.getDetections = function t(e, s, i) {
39594
39600
  arguments.length === 2 && (i = arguments[1]);
39595
- var u = grpc$4.unary(VisionService.GetDetections, {
39601
+ var u = grpc$5.unary(VisionService.GetDetections, {
39596
39602
  request: e,
39597
39603
  host: this.serviceHost,
39598
39604
  metadata: s,
@@ -39600,7 +39606,7 @@ VisionServiceClient.prototype.getDetections = function t(e, s, i) {
39600
39606
  debug: this.options.debug,
39601
39607
  onEnd: function(g) {
39602
39608
  if (i)
39603
- if (g.status !== grpc$4.Code.OK) {
39609
+ if (g.status !== grpc$5.Code.OK) {
39604
39610
  var p = new Error(g.statusMessage);
39605
39611
  p.code = g.status, p.metadata = g.trailers, i(p, null);
39606
39612
  } else
@@ -39615,7 +39621,7 @@ VisionServiceClient.prototype.getDetections = function t(e, s, i) {
39615
39621
  };
39616
39622
  VisionServiceClient.prototype.getClassificationsFromCamera = function t(e, s, i) {
39617
39623
  arguments.length === 2 && (i = arguments[1]);
39618
- var u = grpc$4.unary(VisionService.GetClassificationsFromCamera, {
39624
+ var u = grpc$5.unary(VisionService.GetClassificationsFromCamera, {
39619
39625
  request: e,
39620
39626
  host: this.serviceHost,
39621
39627
  metadata: s,
@@ -39623,7 +39629,7 @@ VisionServiceClient.prototype.getClassificationsFromCamera = function t(e, s, i)
39623
39629
  debug: this.options.debug,
39624
39630
  onEnd: function(g) {
39625
39631
  if (i)
39626
- if (g.status !== grpc$4.Code.OK) {
39632
+ if (g.status !== grpc$5.Code.OK) {
39627
39633
  var p = new Error(g.statusMessage);
39628
39634
  p.code = g.status, p.metadata = g.trailers, i(p, null);
39629
39635
  } else
@@ -39638,7 +39644,7 @@ VisionServiceClient.prototype.getClassificationsFromCamera = function t(e, s, i)
39638
39644
  };
39639
39645
  VisionServiceClient.prototype.getClassifications = function t(e, s, i) {
39640
39646
  arguments.length === 2 && (i = arguments[1]);
39641
- var u = grpc$4.unary(VisionService.GetClassifications, {
39647
+ var u = grpc$5.unary(VisionService.GetClassifications, {
39642
39648
  request: e,
39643
39649
  host: this.serviceHost,
39644
39650
  metadata: s,
@@ -39646,7 +39652,7 @@ VisionServiceClient.prototype.getClassifications = function t(e, s, i) {
39646
39652
  debug: this.options.debug,
39647
39653
  onEnd: function(g) {
39648
39654
  if (i)
39649
- if (g.status !== grpc$4.Code.OK) {
39655
+ if (g.status !== grpc$5.Code.OK) {
39650
39656
  var p = new Error(g.statusMessage);
39651
39657
  p.code = g.status, p.metadata = g.trailers, i(p, null);
39652
39658
  } else
@@ -39661,7 +39667,7 @@ VisionServiceClient.prototype.getClassifications = function t(e, s, i) {
39661
39667
  };
39662
39668
  VisionServiceClient.prototype.getObjectPointClouds = function t(e, s, i) {
39663
39669
  arguments.length === 2 && (i = arguments[1]);
39664
- var u = grpc$4.unary(VisionService.GetObjectPointClouds, {
39670
+ var u = grpc$5.unary(VisionService.GetObjectPointClouds, {
39665
39671
  request: e,
39666
39672
  host: this.serviceHost,
39667
39673
  metadata: s,
@@ -39669,7 +39675,7 @@ VisionServiceClient.prototype.getObjectPointClouds = function t(e, s, i) {
39669
39675
  debug: this.options.debug,
39670
39676
  onEnd: function(g) {
39671
39677
  if (i)
39672
- if (g.status !== grpc$4.Code.OK) {
39678
+ if (g.status !== grpc$5.Code.OK) {
39673
39679
  var p = new Error(g.statusMessage);
39674
39680
  p.code = g.status, p.metadata = g.trailers, i(p, null);
39675
39681
  } else
@@ -39684,7 +39690,7 @@ VisionServiceClient.prototype.getObjectPointClouds = function t(e, s, i) {
39684
39690
  };
39685
39691
  VisionServiceClient.prototype.doCommand = function t(e, s, i) {
39686
39692
  arguments.length === 2 && (i = arguments[1]);
39687
- var u = grpc$4.unary(VisionService.DoCommand, {
39693
+ var u = grpc$5.unary(VisionService.DoCommand, {
39688
39694
  request: e,
39689
39695
  host: this.serviceHost,
39690
39696
  metadata: s,
@@ -39692,7 +39698,7 @@ VisionServiceClient.prototype.doCommand = function t(e, s, i) {
39692
39698
  debug: this.options.debug,
39693
39699
  onEnd: function(g) {
39694
39700
  if (i)
39695
- if (g.status !== grpc$4.Code.OK) {
39701
+ if (g.status !== grpc$5.Code.OK) {
39696
39702
  var p = new Error(g.statusMessage);
39697
39703
  p.code = g.status, p.metadata = g.trailers, i(p, null);
39698
39704
  } else
@@ -39760,7 +39766,7 @@ class SessionTransport {
39760
39766
  this.transport.cancel();
39761
39767
  }
39762
39768
  }
39763
- const timeoutBlob = new Blob(
39769
+ const timeoutBlob$1 = new Blob(
39764
39770
  [
39765
39771
  `self.onmessage = function(e) {
39766
39772
  setTimeout(() => self.postMessage(""), e.data);
@@ -39818,7 +39824,7 @@ class SessionManager {
39818
39824
  );
39819
39825
  };
39820
39826
  if (this.backgroundHeartbeat && window.Worker) {
39821
- const i = window.URL.createObjectURL(timeoutBlob);
39827
+ const i = window.URL.createObjectURL(timeoutBlob$1);
39822
39828
  e = new Worker(i), URL.revokeObjectURL(i), e.onmessage = () => {
39823
39829
  s();
39824
39830
  };
@@ -39872,10 +39878,80 @@ class SessionManager {
39872
39878
  }
39873
39879
  }
39874
39880
  }
39881
+ const timeoutBlob = new Blob(
39882
+ [
39883
+ `self.onmessage = function(e) {
39884
+ setTimeout(() => self.postMessage(""), e.data);
39885
+ };`
39886
+ ],
39887
+ { type: "text/javascript" }
39888
+ );
39889
+ class GRPCConnectionManager {
39890
+ innerTransportFactory;
39891
+ client;
39892
+ heartbeatIntervalMs;
39893
+ connecting;
39894
+ connectResolve;
39895
+ connectReject;
39896
+ constructor(e, s) {
39897
+ this.innerTransportFactory = s, this.client = new RobotServiceClient_1(e, {
39898
+ transport: this.innerTransportFactory
39899
+ });
39900
+ }
39901
+ heartbeat() {
39902
+ let e;
39903
+ const s = () => {
39904
+ const i = new robot_pb.GetOperationsRequest();
39905
+ this.client.getOperations(
39906
+ i,
39907
+ new grpcWebClient_umdExports.grpc.Metadata(),
39908
+ (u, g) => {
39909
+ if (u) {
39910
+ console.debug(u, g), events.emit(DISCONNECTED, {});
39911
+ return;
39912
+ }
39913
+ e ? e.postMessage(this.heartbeatIntervalMs) : setTimeout(() => s(), this.heartbeatIntervalMs);
39914
+ }
39915
+ );
39916
+ };
39917
+ if (window.Worker) {
39918
+ const i = window.URL.createObjectURL(timeoutBlob);
39919
+ e = new Worker(i), URL.revokeObjectURL(i), e.onmessage = () => {
39920
+ s();
39921
+ };
39922
+ }
39923
+ s();
39924
+ }
39925
+ async start() {
39926
+ this.connecting && await this.connecting, this.connecting = new Promise((s, i) => {
39927
+ this.connectResolve = s, this.connectReject = i;
39928
+ });
39929
+ const e = new robot_pb.GetOperationsRequest();
39930
+ this.client.getOperations(
39931
+ e,
39932
+ new grpcWebClient_umdExports.grpc.Metadata(),
39933
+ (s, i) => {
39934
+ if (s) {
39935
+ this.connectReject?.(s), console.debug("failed to connect");
39936
+ return;
39937
+ }
39938
+ this.connectResolve?.();
39939
+ }
39940
+ );
39941
+ try {
39942
+ await this.connecting;
39943
+ } finally {
39944
+ this.connecting = void 0;
39945
+ }
39946
+ this.heartbeat();
39947
+ }
39948
+ }
39875
39949
  class RobotClient extends EventDispatcher {
39876
39950
  serviceHost;
39877
39951
  webrtcOptions;
39952
+ directOptions;
39878
39953
  sessionOptions;
39954
+ gRPCConnectionManager;
39879
39955
  sessionManager;
39880
39956
  peerConn;
39881
39957
  transportFactory;
@@ -39900,39 +39976,55 @@ class RobotClient extends EventDispatcher {
39900
39976
  sensorsServiceClient;
39901
39977
  servoServiceClient;
39902
39978
  slamServiceClient;
39903
- constructor(e, s, i) {
39904
- super(), this.serviceHost = e, this.webrtcOptions = s, this.sessionOptions = i, this.sessionManager = new SessionManager(
39979
+ constructor(e, s, i, u) {
39980
+ super(), this.serviceHost = e, this.webrtcOptions = s, this.directOptions = u, this.sessionOptions = i, this.gRPCConnectionManager = new GRPCConnectionManager(
39981
+ e,
39982
+ (g) => {
39983
+ if (!this.transportFactory)
39984
+ throw new Error(RobotClient.notConnectedYetStr);
39985
+ return this.transportFactory(g);
39986
+ }
39987
+ ), this.sessionManager = new SessionManager(
39905
39988
  e,
39906
- (u) => {
39989
+ (g) => {
39907
39990
  if (!this.transportFactory)
39908
39991
  throw new Error(RobotClient.notConnectedYetStr);
39909
- return this.transportFactory(u);
39992
+ return this.transportFactory(g);
39910
39993
  }
39911
39994
  ), events.on(RECONNECTED, () => {
39912
39995
  this.emit(RECONNECTED, {});
39913
39996
  }), events.on(DISCONNECTED, () => {
39914
- if (this.emit(DISCONNECTED, {}), this.webrtcOptions?.noReconnect)
39997
+ if (this.emit(DISCONNECTED, {}), this.noReconnect)
39915
39998
  return;
39916
- let u = 0;
39999
+ let g = 0;
39917
40000
  console.debug("connection closed, will try to reconnect"), backOff_1(
39918
40001
  () => this.connect().then(
39919
40002
  () => {
39920
40003
  console.debug("reconnected successfully!"), events.emit(RECONNECTED, {});
39921
40004
  },
39922
- (g) => {
39923
- throw console.debug(`failed to reconnect - retries count: ${u}`), u += 1, u === this.webrtcOptions?.reconnectMaxAttempts && console.log(
39924
- `reached max attempts: ${this.webrtcOptions.reconnectMaxAttempts}`
39925
- ), g;
40005
+ (p) => {
40006
+ throw console.debug(`failed to reconnect - retries count: ${g}`), g += 1, g === this.reconnectMaxAttempts && console.debug(
40007
+ `reached max attempts: ${this.reconnectMaxAttempts}`
40008
+ ), p;
39926
40009
  }
39927
40010
  ),
39928
40011
  {
39929
40012
  // default values taken from `exponential-backoff` library
39930
- maxDelay: this.webrtcOptions?.reconnectMaxWait || Number.POSITIVE_INFINITY,
39931
- numOfAttempts: this.webrtcOptions?.reconnectMaxAttempts || 10
40013
+ maxDelay: this.reconnectMaxWait || Number.POSITIVE_INFINITY,
40014
+ numOfAttempts: this.reconnectMaxAttempts || 10
39932
40015
  }
39933
40016
  );
39934
40017
  });
39935
40018
  }
40019
+ get noReconnect() {
40020
+ return this.webrtcOptions?.noReconnect || this.directOptions?.noReconnect;
40021
+ }
40022
+ get reconnectMaxAttempts() {
40023
+ return this.webrtcOptions?.reconnectMaxAttempts || this.directOptions?.reconnectMaxAttempts;
40024
+ }
40025
+ get reconnectMaxWait() {
40026
+ return this.webrtcOptions?.reconnectMaxWait || this.directOptions?.reconnectMaxWait;
40027
+ }
39936
40028
  get sessionId() {
39937
40029
  return this.sessionManager.sessionID;
39938
40030
  }
@@ -40077,7 +40169,7 @@ class RobotClient extends EventDispatcher {
40077
40169
  }), events.emit("track", o);
40078
40170
  };
40079
40171
  } else
40080
- this.transportFactory = await __webpack_exports__dialDirect(this.serviceHost, i);
40172
+ this.transportFactory = await __webpack_exports__dialDirect(this.serviceHost, i), await this.gRPCConnectionManager.start();
40081
40173
  const g = { transport: this.sessionOptions?.disabled ? this.transportFactory : this.sessionManager.transportFactory };
40082
40174
  this.robotServiceClient = new RobotServiceClient_1(
40083
40175
  this.serviceHost,
@@ -40216,11 +40308,16 @@ const isPosInt = (t) => !!(t > 0 && Number.isInteger(t)), isLocalConnection = (t
40216
40308
  throw new Error(
40217
40309
  `cannot dial "${t.host}" directly, please use a local url instead.`
40218
40310
  );
40219
- let e;
40220
- t.disableSessions && (e = { disabled: !0 });
40221
- const s = new RobotClient(t.host, void 0, e);
40222
- let i;
40223
- return t.credential && (i = t.credential), await s.connect(t.authEntity, i), console.debug("connected via gRPC"), s;
40311
+ const e = {
40312
+ noReconnect: t.noReconnect,
40313
+ reconnectMaxWait: t.reconnectMaxWait,
40314
+ reconnectMaxAttempts: t.reconnectMaxAttempts
40315
+ };
40316
+ let s;
40317
+ t.disableSessions && (s = { disabled: !0 });
40318
+ const i = new RobotClient(t.host, void 0, s, e);
40319
+ let u;
40320
+ return t.credential && (u = t.credential), await i.connect(t.authEntity, u), console.debug("connected via gRPC"), i;
40224
40321
  }, dialWebRTC = async (t) => {
40225
40322
  console.debug("dialing via WebRTC...");
40226
40323
  const e = t.host, { signalingAddress: s } = t, u = { iceServers: t.iceServers ?? [] }, g = {
@@ -40242,21 +40339,20 @@ const isPosInt = (t) => !!(t > 0 && Number.isInteger(t)), isLocalConnection = (t
40242
40339
  return typeof e.signalingAddress != "string" ? !1 : !e.iceServers || Array.isArray(e.iceServers);
40243
40340
  }, createRobotClient = async (t) => {
40244
40341
  let e;
40245
- if (isDialWebRTCConf(t)) {
40246
- if (t.reconnectMaxAttempts && !isPosInt(t.reconnectMaxAttempts))
40247
- throw new Error(
40248
- `Value of max reconnect attempts (${t.reconnectMaxAttempts}) should be a positive integer`
40249
- );
40250
- if (t.reconnectMaxWait && !isPosInt(t.reconnectMaxWait))
40251
- throw new Error(
40252
- `Value of max reconnect wait (${t.reconnectMaxWait}) should be a positive integer`
40253
- );
40342
+ if (t.reconnectMaxAttempts && !isPosInt(t.reconnectMaxAttempts))
40343
+ throw new Error(
40344
+ `Value of max reconnect attempts (${t.reconnectMaxAttempts}) should be a positive integer`
40345
+ );
40346
+ if (t.reconnectMaxWait && !isPosInt(t.reconnectMaxWait))
40347
+ throw new Error(
40348
+ `Value of max reconnect wait (${t.reconnectMaxWait}) should be a positive integer`
40349
+ );
40350
+ if (isDialWebRTCConf(t))
40254
40351
  try {
40255
40352
  e = await dialWebRTC(t);
40256
40353
  } catch {
40257
40354
  console.debug("failed to connect via WebRTC...");
40258
40355
  }
40259
- }
40260
40356
  if (!e)
40261
40357
  try {
40262
40358
  e = await dialDirect(t);
@@ -41843,7 +41939,7 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
41843
41939
  FORMAT_PNG: 4
41844
41940
  }, s.object.extend(t, proto.viam.component.camera.v1);
41845
41941
  })(camera_pb);
41846
- var component_camera_v1_camera_pb = camera_pb, common_v1_common_pb$2 = common_pb, google_api_httpbody_pb = httpbody_pb, grpc$3 = grpcWebClient_umdExports.grpc, CameraService = function() {
41942
+ var component_camera_v1_camera_pb = camera_pb, common_v1_common_pb$3 = common_pb, google_api_httpbody_pb = httpbody_pb, grpc$4 = grpcWebClient_umdExports.grpc, CameraService = function() {
41847
41943
  function t() {
41848
41944
  }
41849
41945
  return t.serviceName = "viam.component.camera.v1.CameraService", t;
@@ -41893,23 +41989,23 @@ CameraService.DoCommand = {
41893
41989
  service: CameraService,
41894
41990
  requestStream: !1,
41895
41991
  responseStream: !1,
41896
- requestType: common_v1_common_pb$2.DoCommandRequest,
41897
- responseType: common_v1_common_pb$2.DoCommandResponse
41992
+ requestType: common_v1_common_pb$3.DoCommandRequest,
41993
+ responseType: common_v1_common_pb$3.DoCommandResponse
41898
41994
  };
41899
41995
  CameraService.GetGeometries = {
41900
41996
  methodName: "GetGeometries",
41901
41997
  service: CameraService,
41902
41998
  requestStream: !1,
41903
41999
  responseStream: !1,
41904
- requestType: common_v1_common_pb$2.GetGeometriesRequest,
41905
- responseType: common_v1_common_pb$2.GetGeometriesResponse
42000
+ requestType: common_v1_common_pb$3.GetGeometriesRequest,
42001
+ responseType: common_v1_common_pb$3.GetGeometriesResponse
41906
42002
  };
41907
42003
  function CameraServiceClient(t, e) {
41908
42004
  this.serviceHost = t, this.options = e || {};
41909
42005
  }
41910
42006
  CameraServiceClient.prototype.getImage = function t(e, s, i) {
41911
42007
  arguments.length === 2 && (i = arguments[1]);
41912
- var u = grpc$3.unary(CameraService.GetImage, {
42008
+ var u = grpc$4.unary(CameraService.GetImage, {
41913
42009
  request: e,
41914
42010
  host: this.serviceHost,
41915
42011
  metadata: s,
@@ -41917,7 +42013,7 @@ CameraServiceClient.prototype.getImage = function t(e, s, i) {
41917
42013
  debug: this.options.debug,
41918
42014
  onEnd: function(g) {
41919
42015
  if (i)
41920
- if (g.status !== grpc$3.Code.OK) {
42016
+ if (g.status !== grpc$4.Code.OK) {
41921
42017
  var p = new Error(g.statusMessage);
41922
42018
  p.code = g.status, p.metadata = g.trailers, i(p, null);
41923
42019
  } else
@@ -41932,7 +42028,7 @@ CameraServiceClient.prototype.getImage = function t(e, s, i) {
41932
42028
  };
41933
42029
  CameraServiceClient.prototype.getImages = function t(e, s, i) {
41934
42030
  arguments.length === 2 && (i = arguments[1]);
41935
- var u = grpc$3.unary(CameraService.GetImages, {
42031
+ var u = grpc$4.unary(CameraService.GetImages, {
41936
42032
  request: e,
41937
42033
  host: this.serviceHost,
41938
42034
  metadata: s,
@@ -41940,7 +42036,7 @@ CameraServiceClient.prototype.getImages = function t(e, s, i) {
41940
42036
  debug: this.options.debug,
41941
42037
  onEnd: function(g) {
41942
42038
  if (i)
41943
- if (g.status !== grpc$3.Code.OK) {
42039
+ if (g.status !== grpc$4.Code.OK) {
41944
42040
  var p = new Error(g.statusMessage);
41945
42041
  p.code = g.status, p.metadata = g.trailers, i(p, null);
41946
42042
  } else
@@ -41955,7 +42051,7 @@ CameraServiceClient.prototype.getImages = function t(e, s, i) {
41955
42051
  };
41956
42052
  CameraServiceClient.prototype.renderFrame = function t(e, s, i) {
41957
42053
  arguments.length === 2 && (i = arguments[1]);
41958
- var u = grpc$3.unary(CameraService.RenderFrame, {
42054
+ var u = grpc$4.unary(CameraService.RenderFrame, {
41959
42055
  request: e,
41960
42056
  host: this.serviceHost,
41961
42057
  metadata: s,
@@ -41963,7 +42059,7 @@ CameraServiceClient.prototype.renderFrame = function t(e, s, i) {
41963
42059
  debug: this.options.debug,
41964
42060
  onEnd: function(g) {
41965
42061
  if (i)
41966
- if (g.status !== grpc$3.Code.OK) {
42062
+ if (g.status !== grpc$4.Code.OK) {
41967
42063
  var p = new Error(g.statusMessage);
41968
42064
  p.code = g.status, p.metadata = g.trailers, i(p, null);
41969
42065
  } else
@@ -41978,7 +42074,7 @@ CameraServiceClient.prototype.renderFrame = function t(e, s, i) {
41978
42074
  };
41979
42075
  CameraServiceClient.prototype.getPointCloud = function t(e, s, i) {
41980
42076
  arguments.length === 2 && (i = arguments[1]);
41981
- var u = grpc$3.unary(CameraService.GetPointCloud, {
42077
+ var u = grpc$4.unary(CameraService.GetPointCloud, {
41982
42078
  request: e,
41983
42079
  host: this.serviceHost,
41984
42080
  metadata: s,
@@ -41986,7 +42082,7 @@ CameraServiceClient.prototype.getPointCloud = function t(e, s, i) {
41986
42082
  debug: this.options.debug,
41987
42083
  onEnd: function(g) {
41988
42084
  if (i)
41989
- if (g.status !== grpc$3.Code.OK) {
42085
+ if (g.status !== grpc$4.Code.OK) {
41990
42086
  var p = new Error(g.statusMessage);
41991
42087
  p.code = g.status, p.metadata = g.trailers, i(p, null);
41992
42088
  } else
@@ -42001,7 +42097,7 @@ CameraServiceClient.prototype.getPointCloud = function t(e, s, i) {
42001
42097
  };
42002
42098
  CameraServiceClient.prototype.getProperties = function t(e, s, i) {
42003
42099
  arguments.length === 2 && (i = arguments[1]);
42004
- var u = grpc$3.unary(CameraService.GetProperties, {
42100
+ var u = grpc$4.unary(CameraService.GetProperties, {
42005
42101
  request: e,
42006
42102
  host: this.serviceHost,
42007
42103
  metadata: s,
@@ -42009,7 +42105,7 @@ CameraServiceClient.prototype.getProperties = function t(e, s, i) {
42009
42105
  debug: this.options.debug,
42010
42106
  onEnd: function(g) {
42011
42107
  if (i)
42012
- if (g.status !== grpc$3.Code.OK) {
42108
+ if (g.status !== grpc$4.Code.OK) {
42013
42109
  var p = new Error(g.statusMessage);
42014
42110
  p.code = g.status, p.metadata = g.trailers, i(p, null);
42015
42111
  } else
@@ -42024,7 +42120,7 @@ CameraServiceClient.prototype.getProperties = function t(e, s, i) {
42024
42120
  };
42025
42121
  CameraServiceClient.prototype.doCommand = function t(e, s, i) {
42026
42122
  arguments.length === 2 && (i = arguments[1]);
42027
- var u = grpc$3.unary(CameraService.DoCommand, {
42123
+ var u = grpc$4.unary(CameraService.DoCommand, {
42028
42124
  request: e,
42029
42125
  host: this.serviceHost,
42030
42126
  metadata: s,
@@ -42032,7 +42128,7 @@ CameraServiceClient.prototype.doCommand = function t(e, s, i) {
42032
42128
  debug: this.options.debug,
42033
42129
  onEnd: function(g) {
42034
42130
  if (i)
42035
- if (g.status !== grpc$3.Code.OK) {
42131
+ if (g.status !== grpc$4.Code.OK) {
42036
42132
  var p = new Error(g.statusMessage);
42037
42133
  p.code = g.status, p.metadata = g.trailers, i(p, null);
42038
42134
  } else
@@ -42047,7 +42143,7 @@ CameraServiceClient.prototype.doCommand = function t(e, s, i) {
42047
42143
  };
42048
42144
  CameraServiceClient.prototype.getGeometries = function t(e, s, i) {
42049
42145
  arguments.length === 2 && (i = arguments[1]);
42050
- var u = grpc$3.unary(CameraService.GetGeometries, {
42146
+ var u = grpc$4.unary(CameraService.GetGeometries, {
42051
42147
  request: e,
42052
42148
  host: this.serviceHost,
42053
42149
  metadata: s,
@@ -42055,7 +42151,7 @@ CameraServiceClient.prototype.getGeometries = function t(e, s, i) {
42055
42151
  debug: this.options.debug,
42056
42152
  onEnd: function(g) {
42057
42153
  if (i)
42058
- if (g.status !== grpc$3.Code.OK) {
42154
+ if (g.status !== grpc$4.Code.OK) {
42059
42155
  var p = new Error(g.statusMessage);
42060
42156
  p.code = g.status, p.metadata = g.trailers, i(p, null);
42061
42157
  } else
@@ -42368,7 +42464,7 @@ class MovementSensorClient {
42368
42464
  );
42369
42465
  }
42370
42466
  }
42371
- var sensor_pb = {};
42467
+ var powersensor_pb = {};
42372
42468
  (function(t) {
42373
42469
  var e = googleProtobuf, s = e, i = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof i < "u" && i || typeof self < "u" && self || function() {
42374
42470
  return this;
@@ -42377,22 +42473,30 @@ var sensor_pb = {};
42377
42473
  var g = annotations_pb;
42378
42474
  s.object.extend(proto, g);
42379
42475
  var p = struct_pb;
42380
- s.object.extend(proto, p), s.exportSymbol("proto.viam.component.sensor.v1.GetReadingsRequest", null, i), s.exportSymbol("proto.viam.component.sensor.v1.GetReadingsResponse", null, i), proto.viam.component.sensor.v1.GetReadingsRequest = function(o) {
42476
+ s.object.extend(proto, p), s.exportSymbol("proto.viam.component.powersensor.v1.GetCurrentRequest", null, i), s.exportSymbol("proto.viam.component.powersensor.v1.GetCurrentResponse", null, i), s.exportSymbol("proto.viam.component.powersensor.v1.GetPowerRequest", null, i), s.exportSymbol("proto.viam.component.powersensor.v1.GetPowerResponse", null, i), s.exportSymbol("proto.viam.component.powersensor.v1.GetVoltageRequest", null, i), s.exportSymbol("proto.viam.component.powersensor.v1.GetVoltageResponse", null, i), proto.viam.component.powersensor.v1.GetVoltageRequest = function(o) {
42381
42477
  e.Message.initialize(this, o, 0, -1, null, null);
42382
- }, s.inherits(proto.viam.component.sensor.v1.GetReadingsRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.sensor.v1.GetReadingsRequest.displayName = "proto.viam.component.sensor.v1.GetReadingsRequest"), proto.viam.component.sensor.v1.GetReadingsResponse = function(o) {
42478
+ }, s.inherits(proto.viam.component.powersensor.v1.GetVoltageRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetVoltageRequest.displayName = "proto.viam.component.powersensor.v1.GetVoltageRequest"), proto.viam.component.powersensor.v1.GetVoltageResponse = function(o) {
42383
42479
  e.Message.initialize(this, o, 0, -1, null, null);
42384
- }, s.inherits(proto.viam.component.sensor.v1.GetReadingsResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.sensor.v1.GetReadingsResponse.displayName = "proto.viam.component.sensor.v1.GetReadingsResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.component.sensor.v1.GetReadingsRequest.prototype.toObject = function(o) {
42385
- return proto.viam.component.sensor.v1.GetReadingsRequest.toObject(o, this);
42386
- }, proto.viam.component.sensor.v1.GetReadingsRequest.toObject = function(o, r) {
42480
+ }, s.inherits(proto.viam.component.powersensor.v1.GetVoltageResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetVoltageResponse.displayName = "proto.viam.component.powersensor.v1.GetVoltageResponse"), proto.viam.component.powersensor.v1.GetCurrentRequest = function(o) {
42481
+ e.Message.initialize(this, o, 0, -1, null, null);
42482
+ }, s.inherits(proto.viam.component.powersensor.v1.GetCurrentRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetCurrentRequest.displayName = "proto.viam.component.powersensor.v1.GetCurrentRequest"), proto.viam.component.powersensor.v1.GetCurrentResponse = function(o) {
42483
+ e.Message.initialize(this, o, 0, -1, null, null);
42484
+ }, s.inherits(proto.viam.component.powersensor.v1.GetCurrentResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetCurrentResponse.displayName = "proto.viam.component.powersensor.v1.GetCurrentResponse"), proto.viam.component.powersensor.v1.GetPowerRequest = function(o) {
42485
+ e.Message.initialize(this, o, 0, -1, null, null);
42486
+ }, s.inherits(proto.viam.component.powersensor.v1.GetPowerRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetPowerRequest.displayName = "proto.viam.component.powersensor.v1.GetPowerRequest"), proto.viam.component.powersensor.v1.GetPowerResponse = function(o) {
42487
+ e.Message.initialize(this, o, 0, -1, null, null);
42488
+ }, s.inherits(proto.viam.component.powersensor.v1.GetPowerResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.powersensor.v1.GetPowerResponse.displayName = "proto.viam.component.powersensor.v1.GetPowerResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.toObject = function(o) {
42489
+ return proto.viam.component.powersensor.v1.GetVoltageRequest.toObject(o, this);
42490
+ }, proto.viam.component.powersensor.v1.GetVoltageRequest.toObject = function(o, r) {
42387
42491
  var n, l = {
42388
42492
  name: e.Message.getFieldWithDefault(r, 1, ""),
42389
42493
  extra: (n = r.getExtra()) && p.Struct.toObject(o, n)
42390
42494
  };
42391
42495
  return o && (l.$jspbMessageInstance = r), l;
42392
- }), proto.viam.component.sensor.v1.GetReadingsRequest.deserializeBinary = function(o) {
42393
- var r = new e.BinaryReader(o), n = new proto.viam.component.sensor.v1.GetReadingsRequest();
42394
- return proto.viam.component.sensor.v1.GetReadingsRequest.deserializeBinaryFromReader(n, r);
42395
- }, proto.viam.component.sensor.v1.GetReadingsRequest.deserializeBinaryFromReader = function(o, r) {
42496
+ }), proto.viam.component.powersensor.v1.GetVoltageRequest.deserializeBinary = function(o) {
42497
+ var r = new e.BinaryReader(o), n = new proto.viam.component.powersensor.v1.GetVoltageRequest();
42498
+ return proto.viam.component.powersensor.v1.GetVoltageRequest.deserializeBinaryFromReader(n, r);
42499
+ }, proto.viam.component.powersensor.v1.GetVoltageRequest.deserializeBinaryFromReader = function(o, r) {
42396
42500
  for (; r.nextField() && !r.isEndGroup(); ) {
42397
42501
  var n = r.getFieldNumber();
42398
42502
  switch (n) {
@@ -42413,10 +42517,10 @@ var sensor_pb = {};
42413
42517
  }
42414
42518
  }
42415
42519
  return o;
42416
- }, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.serializeBinary = function() {
42520
+ }, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.serializeBinary = function() {
42417
42521
  var o = new e.BinaryWriter();
42418
- return proto.viam.component.sensor.v1.GetReadingsRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
42419
- }, proto.viam.component.sensor.v1.GetReadingsRequest.serializeBinaryToWriter = function(o, r) {
42522
+ return proto.viam.component.powersensor.v1.GetVoltageRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
42523
+ }, proto.viam.component.powersensor.v1.GetVoltageRequest.serializeBinaryToWriter = function(o, r) {
42420
42524
  var n = void 0;
42421
42525
  n = o.getName(), n.length > 0 && r.writeString(
42422
42526
  1,
@@ -42426,43 +42530,110 @@ var sensor_pb = {};
42426
42530
  n,
42427
42531
  p.Struct.serializeBinaryToWriter
42428
42532
  );
42429
- }, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.getName = function() {
42533
+ }, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.getName = function() {
42430
42534
  return (
42431
42535
  /** @type {string} */
42432
42536
  e.Message.getFieldWithDefault(this, 1, "")
42433
42537
  );
42434
- }, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.setName = function(o) {
42538
+ }, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.setName = function(o) {
42435
42539
  return e.Message.setProto3StringField(this, 1, o);
42436
- }, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.getExtra = function() {
42540
+ }, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.getExtra = function() {
42437
42541
  return (
42438
42542
  /** @type{?proto.google.protobuf.Struct} */
42439
42543
  e.Message.getWrapperField(this, p.Struct, 99)
42440
42544
  );
42441
- }, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.setExtra = function(o) {
42545
+ }, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.setExtra = function(o) {
42442
42546
  return e.Message.setWrapperField(this, 99, o);
42443
- }, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.clearExtra = function() {
42547
+ }, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.clearExtra = function() {
42444
42548
  return this.setExtra(void 0);
42445
- }, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.hasExtra = function() {
42549
+ }, proto.viam.component.powersensor.v1.GetVoltageRequest.prototype.hasExtra = function() {
42446
42550
  return e.Message.getField(this, 99) != null;
42447
- }, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.sensor.v1.GetReadingsResponse.prototype.toObject = function(o) {
42448
- return proto.viam.component.sensor.v1.GetReadingsResponse.toObject(o, this);
42449
- }, proto.viam.component.sensor.v1.GetReadingsResponse.toObject = function(o, r) {
42551
+ }, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.toObject = function(o) {
42552
+ return proto.viam.component.powersensor.v1.GetVoltageResponse.toObject(o, this);
42553
+ }, proto.viam.component.powersensor.v1.GetVoltageResponse.toObject = function(o, r) {
42554
+ var n = {
42555
+ volts: e.Message.getFloatingPointFieldWithDefault(r, 1, 0),
42556
+ isAc: e.Message.getBooleanFieldWithDefault(r, 2, !1)
42557
+ };
42558
+ return o && (n.$jspbMessageInstance = r), n;
42559
+ }), proto.viam.component.powersensor.v1.GetVoltageResponse.deserializeBinary = function(o) {
42560
+ var r = new e.BinaryReader(o), n = new proto.viam.component.powersensor.v1.GetVoltageResponse();
42561
+ return proto.viam.component.powersensor.v1.GetVoltageResponse.deserializeBinaryFromReader(n, r);
42562
+ }, proto.viam.component.powersensor.v1.GetVoltageResponse.deserializeBinaryFromReader = function(o, r) {
42563
+ for (; r.nextField() && !r.isEndGroup(); ) {
42564
+ var n = r.getFieldNumber();
42565
+ switch (n) {
42566
+ case 1:
42567
+ var l = (
42568
+ /** @type {number} */
42569
+ r.readDouble()
42570
+ );
42571
+ o.setVolts(l);
42572
+ break;
42573
+ case 2:
42574
+ var l = (
42575
+ /** @type {boolean} */
42576
+ r.readBool()
42577
+ );
42578
+ o.setIsAc(l);
42579
+ break;
42580
+ default:
42581
+ r.skipField();
42582
+ break;
42583
+ }
42584
+ }
42585
+ return o;
42586
+ }, proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.serializeBinary = function() {
42587
+ var o = new e.BinaryWriter();
42588
+ return proto.viam.component.powersensor.v1.GetVoltageResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
42589
+ }, proto.viam.component.powersensor.v1.GetVoltageResponse.serializeBinaryToWriter = function(o, r) {
42590
+ var n = void 0;
42591
+ n = o.getVolts(), n !== 0 && r.writeDouble(
42592
+ 1,
42593
+ n
42594
+ ), n = o.getIsAc(), n && r.writeBool(
42595
+ 2,
42596
+ n
42597
+ );
42598
+ }, proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.getVolts = function() {
42599
+ return (
42600
+ /** @type {number} */
42601
+ e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
42602
+ );
42603
+ }, proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.setVolts = function(o) {
42604
+ return e.Message.setProto3FloatField(this, 1, o);
42605
+ }, proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.getIsAc = function() {
42606
+ return (
42607
+ /** @type {boolean} */
42608
+ e.Message.getBooleanFieldWithDefault(this, 2, !1)
42609
+ );
42610
+ }, proto.viam.component.powersensor.v1.GetVoltageResponse.prototype.setIsAc = function(o) {
42611
+ return e.Message.setProto3BooleanField(this, 2, o);
42612
+ }, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.toObject = function(o) {
42613
+ return proto.viam.component.powersensor.v1.GetCurrentRequest.toObject(o, this);
42614
+ }, proto.viam.component.powersensor.v1.GetCurrentRequest.toObject = function(o, r) {
42450
42615
  var n, l = {
42451
- readingsMap: (n = r.getReadingsMap()) ? n.toObject(o, proto.google.protobuf.Value.toObject) : []
42616
+ name: e.Message.getFieldWithDefault(r, 1, ""),
42617
+ extra: (n = r.getExtra()) && p.Struct.toObject(o, n)
42452
42618
  };
42453
42619
  return o && (l.$jspbMessageInstance = r), l;
42454
- }), proto.viam.component.sensor.v1.GetReadingsResponse.deserializeBinary = function(o) {
42455
- var r = new e.BinaryReader(o), n = new proto.viam.component.sensor.v1.GetReadingsResponse();
42456
- return proto.viam.component.sensor.v1.GetReadingsResponse.deserializeBinaryFromReader(n, r);
42457
- }, proto.viam.component.sensor.v1.GetReadingsResponse.deserializeBinaryFromReader = function(o, r) {
42620
+ }), proto.viam.component.powersensor.v1.GetCurrentRequest.deserializeBinary = function(o) {
42621
+ var r = new e.BinaryReader(o), n = new proto.viam.component.powersensor.v1.GetCurrentRequest();
42622
+ return proto.viam.component.powersensor.v1.GetCurrentRequest.deserializeBinaryFromReader(n, r);
42623
+ }, proto.viam.component.powersensor.v1.GetCurrentRequest.deserializeBinaryFromReader = function(o, r) {
42458
42624
  for (; r.nextField() && !r.isEndGroup(); ) {
42459
42625
  var n = r.getFieldNumber();
42460
42626
  switch (n) {
42461
42627
  case 1:
42462
- var l = o.getReadingsMap();
42463
- r.readMessage(l, function(c, m) {
42464
- e.Map.deserializeBinary(c, m, e.BinaryReader.prototype.readString, e.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
42465
- });
42628
+ var l = (
42629
+ /** @type {string} */
42630
+ r.readString()
42631
+ );
42632
+ o.setName(l);
42633
+ break;
42634
+ case 99:
42635
+ var l = new p.Struct();
42636
+ r.readMessage(l, p.Struct.deserializeBinaryFromReader), o.setExtra(l);
42466
42637
  break;
42467
42638
  default:
42468
42639
  r.skipField();
@@ -42470,20 +42641,516 @@ var sensor_pb = {};
42470
42641
  }
42471
42642
  }
42472
42643
  return o;
42473
- }, proto.viam.component.sensor.v1.GetReadingsResponse.prototype.serializeBinary = function() {
42644
+ }, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.serializeBinary = function() {
42474
42645
  var o = new e.BinaryWriter();
42475
- return proto.viam.component.sensor.v1.GetReadingsResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
42476
- }, proto.viam.component.sensor.v1.GetReadingsResponse.serializeBinaryToWriter = function(o, r) {
42646
+ return proto.viam.component.powersensor.v1.GetCurrentRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
42647
+ }, proto.viam.component.powersensor.v1.GetCurrentRequest.serializeBinaryToWriter = function(o, r) {
42477
42648
  var n = void 0;
42478
- n = o.getReadingsMap(!0), n && n.getLength() > 0 && n.serializeBinary(1, r, e.BinaryWriter.prototype.writeString, e.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
42479
- }, proto.viam.component.sensor.v1.GetReadingsResponse.prototype.getReadingsMap = function(o) {
42649
+ n = o.getName(), n.length > 0 && r.writeString(
42650
+ 1,
42651
+ n
42652
+ ), n = o.getExtra(), n != null && r.writeMessage(
42653
+ 99,
42654
+ n,
42655
+ p.Struct.serializeBinaryToWriter
42656
+ );
42657
+ }, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.getName = function() {
42480
42658
  return (
42481
- /** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
42482
- e.Message.getMapField(
42483
- this,
42484
- 1,
42485
- o,
42486
- proto.google.protobuf.Value
42659
+ /** @type {string} */
42660
+ e.Message.getFieldWithDefault(this, 1, "")
42661
+ );
42662
+ }, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.setName = function(o) {
42663
+ return e.Message.setProto3StringField(this, 1, o);
42664
+ }, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.getExtra = function() {
42665
+ return (
42666
+ /** @type{?proto.google.protobuf.Struct} */
42667
+ e.Message.getWrapperField(this, p.Struct, 99)
42668
+ );
42669
+ }, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.setExtra = function(o) {
42670
+ return e.Message.setWrapperField(this, 99, o);
42671
+ }, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.clearExtra = function() {
42672
+ return this.setExtra(void 0);
42673
+ }, proto.viam.component.powersensor.v1.GetCurrentRequest.prototype.hasExtra = function() {
42674
+ return e.Message.getField(this, 99) != null;
42675
+ }, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.toObject = function(o) {
42676
+ return proto.viam.component.powersensor.v1.GetCurrentResponse.toObject(o, this);
42677
+ }, proto.viam.component.powersensor.v1.GetCurrentResponse.toObject = function(o, r) {
42678
+ var n = {
42679
+ amperes: e.Message.getFloatingPointFieldWithDefault(r, 1, 0),
42680
+ isAc: e.Message.getBooleanFieldWithDefault(r, 2, !1)
42681
+ };
42682
+ return o && (n.$jspbMessageInstance = r), n;
42683
+ }), proto.viam.component.powersensor.v1.GetCurrentResponse.deserializeBinary = function(o) {
42684
+ var r = new e.BinaryReader(o), n = new proto.viam.component.powersensor.v1.GetCurrentResponse();
42685
+ return proto.viam.component.powersensor.v1.GetCurrentResponse.deserializeBinaryFromReader(n, r);
42686
+ }, proto.viam.component.powersensor.v1.GetCurrentResponse.deserializeBinaryFromReader = function(o, r) {
42687
+ for (; r.nextField() && !r.isEndGroup(); ) {
42688
+ var n = r.getFieldNumber();
42689
+ switch (n) {
42690
+ case 1:
42691
+ var l = (
42692
+ /** @type {number} */
42693
+ r.readDouble()
42694
+ );
42695
+ o.setAmperes(l);
42696
+ break;
42697
+ case 2:
42698
+ var l = (
42699
+ /** @type {boolean} */
42700
+ r.readBool()
42701
+ );
42702
+ o.setIsAc(l);
42703
+ break;
42704
+ default:
42705
+ r.skipField();
42706
+ break;
42707
+ }
42708
+ }
42709
+ return o;
42710
+ }, proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.serializeBinary = function() {
42711
+ var o = new e.BinaryWriter();
42712
+ return proto.viam.component.powersensor.v1.GetCurrentResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
42713
+ }, proto.viam.component.powersensor.v1.GetCurrentResponse.serializeBinaryToWriter = function(o, r) {
42714
+ var n = void 0;
42715
+ n = o.getAmperes(), n !== 0 && r.writeDouble(
42716
+ 1,
42717
+ n
42718
+ ), n = o.getIsAc(), n && r.writeBool(
42719
+ 2,
42720
+ n
42721
+ );
42722
+ }, proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.getAmperes = function() {
42723
+ return (
42724
+ /** @type {number} */
42725
+ e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
42726
+ );
42727
+ }, proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.setAmperes = function(o) {
42728
+ return e.Message.setProto3FloatField(this, 1, o);
42729
+ }, proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.getIsAc = function() {
42730
+ return (
42731
+ /** @type {boolean} */
42732
+ e.Message.getBooleanFieldWithDefault(this, 2, !1)
42733
+ );
42734
+ }, proto.viam.component.powersensor.v1.GetCurrentResponse.prototype.setIsAc = function(o) {
42735
+ return e.Message.setProto3BooleanField(this, 2, o);
42736
+ }, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetPowerRequest.prototype.toObject = function(o) {
42737
+ return proto.viam.component.powersensor.v1.GetPowerRequest.toObject(o, this);
42738
+ }, proto.viam.component.powersensor.v1.GetPowerRequest.toObject = function(o, r) {
42739
+ var n, l = {
42740
+ name: e.Message.getFieldWithDefault(r, 1, ""),
42741
+ extra: (n = r.getExtra()) && p.Struct.toObject(o, n)
42742
+ };
42743
+ return o && (l.$jspbMessageInstance = r), l;
42744
+ }), proto.viam.component.powersensor.v1.GetPowerRequest.deserializeBinary = function(o) {
42745
+ var r = new e.BinaryReader(o), n = new proto.viam.component.powersensor.v1.GetPowerRequest();
42746
+ return proto.viam.component.powersensor.v1.GetPowerRequest.deserializeBinaryFromReader(n, r);
42747
+ }, proto.viam.component.powersensor.v1.GetPowerRequest.deserializeBinaryFromReader = function(o, r) {
42748
+ for (; r.nextField() && !r.isEndGroup(); ) {
42749
+ var n = r.getFieldNumber();
42750
+ switch (n) {
42751
+ case 1:
42752
+ var l = (
42753
+ /** @type {string} */
42754
+ r.readString()
42755
+ );
42756
+ o.setName(l);
42757
+ break;
42758
+ case 99:
42759
+ var l = new p.Struct();
42760
+ r.readMessage(l, p.Struct.deserializeBinaryFromReader), o.setExtra(l);
42761
+ break;
42762
+ default:
42763
+ r.skipField();
42764
+ break;
42765
+ }
42766
+ }
42767
+ return o;
42768
+ }, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.serializeBinary = function() {
42769
+ var o = new e.BinaryWriter();
42770
+ return proto.viam.component.powersensor.v1.GetPowerRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
42771
+ }, proto.viam.component.powersensor.v1.GetPowerRequest.serializeBinaryToWriter = function(o, r) {
42772
+ var n = void 0;
42773
+ n = o.getName(), n.length > 0 && r.writeString(
42774
+ 1,
42775
+ n
42776
+ ), n = o.getExtra(), n != null && r.writeMessage(
42777
+ 99,
42778
+ n,
42779
+ p.Struct.serializeBinaryToWriter
42780
+ );
42781
+ }, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.getName = function() {
42782
+ return (
42783
+ /** @type {string} */
42784
+ e.Message.getFieldWithDefault(this, 1, "")
42785
+ );
42786
+ }, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.setName = function(o) {
42787
+ return e.Message.setProto3StringField(this, 1, o);
42788
+ }, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.getExtra = function() {
42789
+ return (
42790
+ /** @type{?proto.google.protobuf.Struct} */
42791
+ e.Message.getWrapperField(this, p.Struct, 99)
42792
+ );
42793
+ }, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.setExtra = function(o) {
42794
+ return e.Message.setWrapperField(this, 99, o);
42795
+ }, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.clearExtra = function() {
42796
+ return this.setExtra(void 0);
42797
+ }, proto.viam.component.powersensor.v1.GetPowerRequest.prototype.hasExtra = function() {
42798
+ return e.Message.getField(this, 99) != null;
42799
+ }, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.powersensor.v1.GetPowerResponse.prototype.toObject = function(o) {
42800
+ return proto.viam.component.powersensor.v1.GetPowerResponse.toObject(o, this);
42801
+ }, proto.viam.component.powersensor.v1.GetPowerResponse.toObject = function(o, r) {
42802
+ var n = {
42803
+ watts: e.Message.getFloatingPointFieldWithDefault(r, 1, 0)
42804
+ };
42805
+ return o && (n.$jspbMessageInstance = r), n;
42806
+ }), proto.viam.component.powersensor.v1.GetPowerResponse.deserializeBinary = function(o) {
42807
+ var r = new e.BinaryReader(o), n = new proto.viam.component.powersensor.v1.GetPowerResponse();
42808
+ return proto.viam.component.powersensor.v1.GetPowerResponse.deserializeBinaryFromReader(n, r);
42809
+ }, proto.viam.component.powersensor.v1.GetPowerResponse.deserializeBinaryFromReader = function(o, r) {
42810
+ for (; r.nextField() && !r.isEndGroup(); ) {
42811
+ var n = r.getFieldNumber();
42812
+ switch (n) {
42813
+ case 1:
42814
+ var l = (
42815
+ /** @type {number} */
42816
+ r.readDouble()
42817
+ );
42818
+ o.setWatts(l);
42819
+ break;
42820
+ default:
42821
+ r.skipField();
42822
+ break;
42823
+ }
42824
+ }
42825
+ return o;
42826
+ }, proto.viam.component.powersensor.v1.GetPowerResponse.prototype.serializeBinary = function() {
42827
+ var o = new e.BinaryWriter();
42828
+ return proto.viam.component.powersensor.v1.GetPowerResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
42829
+ }, proto.viam.component.powersensor.v1.GetPowerResponse.serializeBinaryToWriter = function(o, r) {
42830
+ var n = void 0;
42831
+ n = o.getWatts(), n !== 0 && r.writeDouble(
42832
+ 1,
42833
+ n
42834
+ );
42835
+ }, proto.viam.component.powersensor.v1.GetPowerResponse.prototype.getWatts = function() {
42836
+ return (
42837
+ /** @type {number} */
42838
+ e.Message.getFloatingPointFieldWithDefault(this, 1, 0)
42839
+ );
42840
+ }, proto.viam.component.powersensor.v1.GetPowerResponse.prototype.setWatts = function(o) {
42841
+ return e.Message.setProto3FloatField(this, 1, o);
42842
+ }, s.object.extend(t, proto.viam.component.powersensor.v1);
42843
+ })(powersensor_pb);
42844
+ var component_powersensor_v1_powersensor_pb = powersensor_pb, common_v1_common_pb$2 = common_pb, grpc$3 = grpcWebClient_umdExports.grpc, PowerSensorService = function() {
42845
+ function t() {
42846
+ }
42847
+ return t.serviceName = "viam.component.powersensor.v1.PowerSensorService", t;
42848
+ }();
42849
+ PowerSensorService.GetVoltage = {
42850
+ methodName: "GetVoltage",
42851
+ service: PowerSensorService,
42852
+ requestStream: !1,
42853
+ responseStream: !1,
42854
+ requestType: component_powersensor_v1_powersensor_pb.GetVoltageRequest,
42855
+ responseType: component_powersensor_v1_powersensor_pb.GetVoltageResponse
42856
+ };
42857
+ PowerSensorService.GetCurrent = {
42858
+ methodName: "GetCurrent",
42859
+ service: PowerSensorService,
42860
+ requestStream: !1,
42861
+ responseStream: !1,
42862
+ requestType: component_powersensor_v1_powersensor_pb.GetCurrentRequest,
42863
+ responseType: component_powersensor_v1_powersensor_pb.GetCurrentResponse
42864
+ };
42865
+ PowerSensorService.GetPower = {
42866
+ methodName: "GetPower",
42867
+ service: PowerSensorService,
42868
+ requestStream: !1,
42869
+ responseStream: !1,
42870
+ requestType: component_powersensor_v1_powersensor_pb.GetPowerRequest,
42871
+ responseType: component_powersensor_v1_powersensor_pb.GetPowerResponse
42872
+ };
42873
+ PowerSensorService.DoCommand = {
42874
+ methodName: "DoCommand",
42875
+ service: PowerSensorService,
42876
+ requestStream: !1,
42877
+ responseStream: !1,
42878
+ requestType: common_v1_common_pb$2.DoCommandRequest,
42879
+ responseType: common_v1_common_pb$2.DoCommandResponse
42880
+ };
42881
+ function PowerSensorServiceClient(t, e) {
42882
+ this.serviceHost = t, this.options = e || {};
42883
+ }
42884
+ PowerSensorServiceClient.prototype.getVoltage = function t(e, s, i) {
42885
+ arguments.length === 2 && (i = arguments[1]);
42886
+ var u = grpc$3.unary(PowerSensorService.GetVoltage, {
42887
+ request: e,
42888
+ host: this.serviceHost,
42889
+ metadata: s,
42890
+ transport: this.options.transport,
42891
+ debug: this.options.debug,
42892
+ onEnd: function(g) {
42893
+ if (i)
42894
+ if (g.status !== grpc$3.Code.OK) {
42895
+ var p = new Error(g.statusMessage);
42896
+ p.code = g.status, p.metadata = g.trailers, i(p, null);
42897
+ } else
42898
+ i(null, g.message);
42899
+ }
42900
+ });
42901
+ return {
42902
+ cancel: function() {
42903
+ i = null, u.close();
42904
+ }
42905
+ };
42906
+ };
42907
+ PowerSensorServiceClient.prototype.getCurrent = function t(e, s, i) {
42908
+ arguments.length === 2 && (i = arguments[1]);
42909
+ var u = grpc$3.unary(PowerSensorService.GetCurrent, {
42910
+ request: e,
42911
+ host: this.serviceHost,
42912
+ metadata: s,
42913
+ transport: this.options.transport,
42914
+ debug: this.options.debug,
42915
+ onEnd: function(g) {
42916
+ if (i)
42917
+ if (g.status !== grpc$3.Code.OK) {
42918
+ var p = new Error(g.statusMessage);
42919
+ p.code = g.status, p.metadata = g.trailers, i(p, null);
42920
+ } else
42921
+ i(null, g.message);
42922
+ }
42923
+ });
42924
+ return {
42925
+ cancel: function() {
42926
+ i = null, u.close();
42927
+ }
42928
+ };
42929
+ };
42930
+ PowerSensorServiceClient.prototype.getPower = function t(e, s, i) {
42931
+ arguments.length === 2 && (i = arguments[1]);
42932
+ var u = grpc$3.unary(PowerSensorService.GetPower, {
42933
+ request: e,
42934
+ host: this.serviceHost,
42935
+ metadata: s,
42936
+ transport: this.options.transport,
42937
+ debug: this.options.debug,
42938
+ onEnd: function(g) {
42939
+ if (i)
42940
+ if (g.status !== grpc$3.Code.OK) {
42941
+ var p = new Error(g.statusMessage);
42942
+ p.code = g.status, p.metadata = g.trailers, i(p, null);
42943
+ } else
42944
+ i(null, g.message);
42945
+ }
42946
+ });
42947
+ return {
42948
+ cancel: function() {
42949
+ i = null, u.close();
42950
+ }
42951
+ };
42952
+ };
42953
+ PowerSensorServiceClient.prototype.doCommand = function t(e, s, i) {
42954
+ arguments.length === 2 && (i = arguments[1]);
42955
+ var u = grpc$3.unary(PowerSensorService.DoCommand, {
42956
+ request: e,
42957
+ host: this.serviceHost,
42958
+ metadata: s,
42959
+ transport: this.options.transport,
42960
+ debug: this.options.debug,
42961
+ onEnd: function(g) {
42962
+ if (i)
42963
+ if (g.status !== grpc$3.Code.OK) {
42964
+ var p = new Error(g.statusMessage);
42965
+ p.code = g.status, p.metadata = g.trailers, i(p, null);
42966
+ } else
42967
+ i(null, g.message);
42968
+ }
42969
+ });
42970
+ return {
42971
+ cancel: function() {
42972
+ i = null, u.close();
42973
+ }
42974
+ };
42975
+ };
42976
+ var PowerSensorServiceClient_1 = PowerSensorServiceClient;
42977
+ class PowerSensorClient {
42978
+ client;
42979
+ name;
42980
+ options;
42981
+ constructor(e, s, i = {}) {
42982
+ this.client = e.createServiceClient(PowerSensorServiceClient_1), this.name = s, this.options = i;
42983
+ }
42984
+ get powersensorService() {
42985
+ return this.client;
42986
+ }
42987
+ async getVoltage(e = {}) {
42988
+ const { powersensorService: s } = this, i = new powersensor_pb.GetVoltageRequest();
42989
+ i.setName(this.name), i.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(i);
42990
+ const u = await promisify(s.getVoltage.bind(s), i);
42991
+ return [u.getVolts(), u.getIsAc()];
42992
+ }
42993
+ async getCurrent(e = {}) {
42994
+ const { powersensorService: s } = this, i = new powersensor_pb.GetCurrentRequest();
42995
+ i.setName(this.name), i.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(i);
42996
+ const u = await promisify(s.getCurrent.bind(s), i);
42997
+ return [u.getAmperes(), u.getIsAc()];
42998
+ }
42999
+ async getPower(e = {}) {
43000
+ const { powersensorService: s } = this, i = new powersensor_pb.GetPowerRequest();
43001
+ return i.setName(this.name), i.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(i), (await promisify(
43002
+ s.getPower.bind(s),
43003
+ i
43004
+ )).getWatts();
43005
+ }
43006
+ async getReadings(e = {}) {
43007
+ const s = {};
43008
+ try {
43009
+ [s.voltage, s.isAc] = await this.getVoltage(e);
43010
+ } catch (i) {
43011
+ if (!i.message.includes("Unimplemented"))
43012
+ throw i;
43013
+ }
43014
+ try {
43015
+ [s.current, s.isAc] = await this.getCurrent(e);
43016
+ } catch (i) {
43017
+ if (!i.message.includes("Unimplemented"))
43018
+ throw i;
43019
+ }
43020
+ try {
43021
+ s.power = await this.getPower(e);
43022
+ } catch (i) {
43023
+ if (!i.message.includes("Unimplemented"))
43024
+ throw i;
43025
+ }
43026
+ return s;
43027
+ }
43028
+ async doCommand(e) {
43029
+ const { powersensorService: s } = this;
43030
+ return doCommandFromClient(
43031
+ s,
43032
+ this.name,
43033
+ e,
43034
+ this.options
43035
+ );
43036
+ }
43037
+ }
43038
+ var sensor_pb = {};
43039
+ (function(t) {
43040
+ var e = googleProtobuf, s = e, i = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof i < "u" && i || typeof self < "u" && self || function() {
43041
+ return this;
43042
+ }.call(null) || Function("return this")(), u = common_pb;
43043
+ s.object.extend(proto, u);
43044
+ var g = annotations_pb;
43045
+ s.object.extend(proto, g);
43046
+ var p = struct_pb;
43047
+ s.object.extend(proto, p), s.exportSymbol("proto.viam.component.sensor.v1.GetReadingsRequest", null, i), s.exportSymbol("proto.viam.component.sensor.v1.GetReadingsResponse", null, i), proto.viam.component.sensor.v1.GetReadingsRequest = function(o) {
43048
+ e.Message.initialize(this, o, 0, -1, null, null);
43049
+ }, s.inherits(proto.viam.component.sensor.v1.GetReadingsRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.sensor.v1.GetReadingsRequest.displayName = "proto.viam.component.sensor.v1.GetReadingsRequest"), proto.viam.component.sensor.v1.GetReadingsResponse = function(o) {
43050
+ e.Message.initialize(this, o, 0, -1, null, null);
43051
+ }, s.inherits(proto.viam.component.sensor.v1.GetReadingsResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.component.sensor.v1.GetReadingsResponse.displayName = "proto.viam.component.sensor.v1.GetReadingsResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.component.sensor.v1.GetReadingsRequest.prototype.toObject = function(o) {
43052
+ return proto.viam.component.sensor.v1.GetReadingsRequest.toObject(o, this);
43053
+ }, proto.viam.component.sensor.v1.GetReadingsRequest.toObject = function(o, r) {
43054
+ var n, l = {
43055
+ name: e.Message.getFieldWithDefault(r, 1, ""),
43056
+ extra: (n = r.getExtra()) && p.Struct.toObject(o, n)
43057
+ };
43058
+ return o && (l.$jspbMessageInstance = r), l;
43059
+ }), proto.viam.component.sensor.v1.GetReadingsRequest.deserializeBinary = function(o) {
43060
+ var r = new e.BinaryReader(o), n = new proto.viam.component.sensor.v1.GetReadingsRequest();
43061
+ return proto.viam.component.sensor.v1.GetReadingsRequest.deserializeBinaryFromReader(n, r);
43062
+ }, proto.viam.component.sensor.v1.GetReadingsRequest.deserializeBinaryFromReader = function(o, r) {
43063
+ for (; r.nextField() && !r.isEndGroup(); ) {
43064
+ var n = r.getFieldNumber();
43065
+ switch (n) {
43066
+ case 1:
43067
+ var l = (
43068
+ /** @type {string} */
43069
+ r.readString()
43070
+ );
43071
+ o.setName(l);
43072
+ break;
43073
+ case 99:
43074
+ var l = new p.Struct();
43075
+ r.readMessage(l, p.Struct.deserializeBinaryFromReader), o.setExtra(l);
43076
+ break;
43077
+ default:
43078
+ r.skipField();
43079
+ break;
43080
+ }
43081
+ }
43082
+ return o;
43083
+ }, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.serializeBinary = function() {
43084
+ var o = new e.BinaryWriter();
43085
+ return proto.viam.component.sensor.v1.GetReadingsRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
43086
+ }, proto.viam.component.sensor.v1.GetReadingsRequest.serializeBinaryToWriter = function(o, r) {
43087
+ var n = void 0;
43088
+ n = o.getName(), n.length > 0 && r.writeString(
43089
+ 1,
43090
+ n
43091
+ ), n = o.getExtra(), n != null && r.writeMessage(
43092
+ 99,
43093
+ n,
43094
+ p.Struct.serializeBinaryToWriter
43095
+ );
43096
+ }, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.getName = function() {
43097
+ return (
43098
+ /** @type {string} */
43099
+ e.Message.getFieldWithDefault(this, 1, "")
43100
+ );
43101
+ }, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.setName = function(o) {
43102
+ return e.Message.setProto3StringField(this, 1, o);
43103
+ }, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.getExtra = function() {
43104
+ return (
43105
+ /** @type{?proto.google.protobuf.Struct} */
43106
+ e.Message.getWrapperField(this, p.Struct, 99)
43107
+ );
43108
+ }, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.setExtra = function(o) {
43109
+ return e.Message.setWrapperField(this, 99, o);
43110
+ }, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.clearExtra = function() {
43111
+ return this.setExtra(void 0);
43112
+ }, proto.viam.component.sensor.v1.GetReadingsRequest.prototype.hasExtra = function() {
43113
+ return e.Message.getField(this, 99) != null;
43114
+ }, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.sensor.v1.GetReadingsResponse.prototype.toObject = function(o) {
43115
+ return proto.viam.component.sensor.v1.GetReadingsResponse.toObject(o, this);
43116
+ }, proto.viam.component.sensor.v1.GetReadingsResponse.toObject = function(o, r) {
43117
+ var n, l = {
43118
+ readingsMap: (n = r.getReadingsMap()) ? n.toObject(o, proto.google.protobuf.Value.toObject) : []
43119
+ };
43120
+ return o && (l.$jspbMessageInstance = r), l;
43121
+ }), proto.viam.component.sensor.v1.GetReadingsResponse.deserializeBinary = function(o) {
43122
+ var r = new e.BinaryReader(o), n = new proto.viam.component.sensor.v1.GetReadingsResponse();
43123
+ return proto.viam.component.sensor.v1.GetReadingsResponse.deserializeBinaryFromReader(n, r);
43124
+ }, proto.viam.component.sensor.v1.GetReadingsResponse.deserializeBinaryFromReader = function(o, r) {
43125
+ for (; r.nextField() && !r.isEndGroup(); ) {
43126
+ var n = r.getFieldNumber();
43127
+ switch (n) {
43128
+ case 1:
43129
+ var l = o.getReadingsMap();
43130
+ r.readMessage(l, function(c, m) {
43131
+ e.Map.deserializeBinary(c, m, e.BinaryReader.prototype.readString, e.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
43132
+ });
43133
+ break;
43134
+ default:
43135
+ r.skipField();
43136
+ break;
43137
+ }
43138
+ }
43139
+ return o;
43140
+ }, proto.viam.component.sensor.v1.GetReadingsResponse.prototype.serializeBinary = function() {
43141
+ var o = new e.BinaryWriter();
43142
+ return proto.viam.component.sensor.v1.GetReadingsResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
43143
+ }, proto.viam.component.sensor.v1.GetReadingsResponse.serializeBinaryToWriter = function(o, r) {
43144
+ var n = void 0;
43145
+ n = o.getReadingsMap(!0), n && n.getLength() > 0 && n.serializeBinary(1, r, e.BinaryWriter.prototype.writeString, e.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
43146
+ }, proto.viam.component.sensor.v1.GetReadingsResponse.prototype.getReadingsMap = function(o) {
43147
+ return (
43148
+ /** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
43149
+ e.Message.getMapField(
43150
+ this,
43151
+ 1,
43152
+ o,
43153
+ proto.google.protobuf.Value
42487
43154
  )
42488
43155
  );
42489
43156
  }, proto.viam.component.sensor.v1.GetReadingsResponse.prototype.clearReadingsMap = function() {
@@ -43073,6 +43740,10 @@ class MotionClient {
43073
43740
  p
43074
43741
  )).getSuccess();
43075
43742
  }
43743
+ async moveOnGlobe(e, s, i, u, g, p, o, r = {}) {
43744
+ const { service: n } = this, l = new motion_pb.MoveOnGlobeRequest();
43745
+ return l.setDestination(encodeGeoPoint(e)), l.setComponentName(encodeResourceName(s)), l.setMovementSensorName(encodeResourceName(i)), u && l.setHeading(u), g && l.setObstaclesList(g.map((m) => encodeGeoObstacle(m))), p && l.setLinearMetersPerSec(p), o && l.setAngularDegPerSec(o), l.setExtra(struct_pb.Struct.fromJavaScript(r)), this.options.requestLogger?.(l), (await promisify(n.moveOnGlobe.bind(n), l)).getSuccess();
43746
+ }
43076
43747
  async moveSingleComponent(e, s, i, u = {}) {
43077
43748
  const { service: g } = this, p = new motion_pb.MoveSingleComponentRequest();
43078
43749
  return p.setName(this.name), p.setDestination(encodePoseInFrame(e)), p.setComponentName(encodeResourceName(s)), i !== void 0 && p.setWorldState(encodeWorldState(i)), p.setExtra(struct_pb.Struct.fromJavaScript(u)), this.options.requestLogger?.(p), (await promisify(g.moveSingleComponent.bind(g), p)).getSuccess();
@@ -43293,6 +43964,65 @@ class DataManagerClient {
43293
43964
  );
43294
43965
  }
43295
43966
  }
43967
+ class NavigationClient {
43968
+ client;
43969
+ name;
43970
+ options;
43971
+ constructor(e, s, i = {}) {
43972
+ this.client = e.createServiceClient(NavigationServiceClient_1), this.name = s, this.options = i;
43973
+ }
43974
+ get service() {
43975
+ return this.client;
43976
+ }
43977
+ async getMode(e = {}) {
43978
+ const { service: s } = this, i = new navigation_pb.GetModeRequest();
43979
+ return i.setName(this.name), i.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(i), (await promisify(
43980
+ s.getMode.bind(s),
43981
+ i
43982
+ )).getMode();
43983
+ }
43984
+ async setMode(e, s = {}) {
43985
+ const { service: i } = this, u = new navigation_pb.SetModeRequest();
43986
+ u.setName(this.name), u.setMode(e), u.setExtra(struct_pb.Struct.fromJavaScript(s)), this.options.requestLogger?.(u), await promisify(
43987
+ i.setMode.bind(i),
43988
+ u
43989
+ );
43990
+ }
43991
+ async getLocation(e = {}) {
43992
+ const { service: s } = this, i = new navigation_pb.GetLocationRequest();
43993
+ i.setName(this.name), i.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(i);
43994
+ const g = (await promisify(s.getLocation.bind(s), i)).getLocation();
43995
+ if (!g)
43996
+ throw new Error("no location");
43997
+ return g.toObject();
43998
+ }
43999
+ async getWayPoints(e = {}) {
44000
+ const { service: s } = this, i = new navigation_pb.GetWaypointsRequest();
44001
+ return i.setName(this.name), i.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(i), (await promisify(s.getWaypoints.bind(s), i)).getWaypointsList().map((g) => g.toObject());
44002
+ }
44003
+ async addWayPoint(e, s = {}) {
44004
+ const { service: i } = this, u = new navigation_pb.AddWaypointRequest();
44005
+ u.setName(this.name), u.setLocation(encodeGeoPoint(e)), u.setExtra(struct_pb.Struct.fromJavaScript(s)), this.options.requestLogger?.(u), await promisify(
44006
+ i.addWaypoint.bind(i),
44007
+ u
44008
+ );
44009
+ }
44010
+ async removeWayPoint(e, s = {}) {
44011
+ const { service: i } = this, u = new navigation_pb.RemoveWaypointRequest();
44012
+ u.setName(this.name), u.setId(e), u.setExtra(struct_pb.Struct.fromJavaScript(s)), this.options.requestLogger?.(u), await promisify(
44013
+ i.removeWaypoint.bind(i),
44014
+ u
44015
+ );
44016
+ }
44017
+ async getObstacles(e = {}) {
44018
+ const { service: s } = this, i = new navigation_pb.GetObstaclesRequest();
44019
+ return i.setName(this.name), i.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(i), (await promisify(s.getObstacles.bind(s), i)).getObstaclesList().map((g) => g.toObject());
44020
+ }
44021
+ async doCommand(e) {
44022
+ const { service: s } = this;
44023
+ return doCommandFromClient(s, this.name, e, this.options);
44024
+ }
44025
+ }
43296
44026
  class ServoClient {
43297
44027
  client;
43298
44028
  name;
@@ -43333,7 +44063,42 @@ class ServoClient {
43333
44063
  return doCommandFromClient(s, this.name, e, this.options);
43334
44064
  }
43335
44065
  }
43336
- const version = "0.2.4";
44066
+ class SlamClient {
44067
+ client;
44068
+ name;
44069
+ options;
44070
+ constructor(e, s, i = {}) {
44071
+ this.client = e.createServiceClient(SLAMServiceClient_1), this.name = s, this.options = i;
44072
+ }
44073
+ get service() {
44074
+ return this.client;
44075
+ }
44076
+ async getPosition() {
44077
+ const { service: e } = this, s = new slam_pb.GetPositionRequest();
44078
+ return s.setName(this.name), this.options.requestLogger?.(s), (await promisify(e.getPosition.bind(e), s)).toObject();
44079
+ }
44080
+ async getPointCloudMap() {
44081
+ const { service: e } = this, s = new slam_pb.GetPointCloudMapRequest();
44082
+ return s.setName(this.name), this.options.requestLogger?.(s), (await promisify(e.getPointCloudMap.bind(e), s)).getPointCloudPcdChunk_asU8();
44083
+ }
44084
+ async getInternalState() {
44085
+ const { service: e } = this, s = new slam_pb.GetInternalStateRequest();
44086
+ return s.setName(this.name), this.options.requestLogger?.(s), (await promisify(e.getInternalState.bind(e), s)).getInternalStateChunk_asU8();
44087
+ }
44088
+ async getLatestMapInfo() {
44089
+ const { service: e } = this, s = new slam_pb.GetLatestMapInfoRequest();
44090
+ s.setName(this.name), this.options.requestLogger?.(s);
44091
+ const u = (await promisify(e.getLatestMapInfo.bind(e), s)).getLastMapUpdate();
44092
+ if (!u)
44093
+ throw new Error("no map update");
44094
+ return new Date(u.getSeconds() * 1e3 + u.getNanos() / 1e6);
44095
+ }
44096
+ async doCommand(e) {
44097
+ const { service: s } = this;
44098
+ return doCommandFromClient(s, this.name, e, this.options);
44099
+ }
44100
+ }
44101
+ const version = "0.2.5-next.1";
43337
44102
  export {
43338
44103
  ArmClient,
43339
44104
  BaseClient,
@@ -43348,9 +44113,12 @@ export {
43348
44113
  MotionClient,
43349
44114
  MotorClient,
43350
44115
  MovementSensorClient,
44116
+ NavigationClient,
44117
+ PowerSensorClient,
43351
44118
  RobotClient,
43352
44119
  SensorClient,
43353
44120
  ServoClient,
44121
+ SlamClient,
43354
44122
  StreamClient,
43355
44123
  arm_pb as armApi,
43356
44124
  base_pb as baseApi,
@@ -43367,6 +44135,7 @@ export {
43367
44135
  motor_pb as motorApi,
43368
44136
  movementsensor_pb as movementSensorApi,
43369
44137
  navigation_pb as navigationApi,
44138
+ powersensor_pb as powerSensorApi,
43370
44139
  robot_pb as robotApi,
43371
44140
  sensor_pb as sensorApi,
43372
44141
  sensors_pb as sensorsApi,