@viamrobotics/sdk 0.63.0 → 0.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.es.js CHANGED
@@ -3,7 +3,7 @@ function L(t, e) {
3
3
  throw new Error(e);
4
4
  }
5
5
  const df = 34028234663852886e22, lf = -34028234663852886e22, pf = 4294967295, uf = 2147483647, gf = -2147483648;
6
- function Hn(t) {
6
+ function jn(t) {
7
7
  if (typeof t != "number")
8
8
  throw new Error("invalid int 32: " + typeof t);
9
9
  if (!Number.isInteger(t) || t > uf || t < gf)
@@ -219,7 +219,7 @@ function Za(t, e, n) {
219
219
  n.push(e >>> 31 & 1);
220
220
  }
221
221
  }
222
- const jn = 4294967296;
222
+ const Hn = 4294967296;
223
223
  function yi(t) {
224
224
  const e = t[0] === "-";
225
225
  e && (t = t.slice(1));
@@ -227,7 +227,7 @@ function yi(t) {
227
227
  let a = 0, o = 0;
228
228
  function i(r, c) {
229
229
  const l = Number(t.slice(r, c));
230
- o *= n, a = a * n + l, a >= jn && (o = o + (a / jn | 0), a = a % jn);
230
+ o *= n, a = a * n + l, a >= Hn && (o = o + (a / Hn | 0), a = a % Hn);
231
231
  }
232
232
  return i(-24, -18), i(-18, -12), i(-12, -6), i(-6), e ? ar(a, o) : Rt(a, o);
233
233
  }
@@ -240,7 +240,7 @@ function hf(t, e) {
240
240
  }
241
241
  function nr(t, e) {
242
242
  if ({ lo: t, hi: e } = ff(t, e), e <= 2097151)
243
- return String(jn * e + t);
243
+ return String(Hn * e + t);
244
244
  const n = t & 16777215, a = (t >>> 24 | e << 8) & 16777215, o = e >> 16 & 65535;
245
245
  let i = n + a * 6777216 + o * 6710656, r = a + o * 8147497, c = o * 2;
246
246
  const l = 1e7;
@@ -481,7 +481,7 @@ class Sf {
481
481
  * Write a `int32` value, a signed 32 bit varint.
482
482
  */
483
483
  int32(e) {
484
- return Hn(e), hi(e, this.buf), this;
484
+ return jn(e), hi(e, this.buf), this;
485
485
  }
486
486
  /**
487
487
  * Write a `bool` value, a variant.
@@ -529,7 +529,7 @@ class Sf {
529
529
  * Write a `sfixed32` value, a signed, fixed-length 32-bit integer.
530
530
  */
531
531
  sfixed32(e) {
532
- Hn(e);
532
+ jn(e);
533
533
  let n = new Uint8Array(4);
534
534
  return new DataView(n.buffer).setInt32(0, e, !0), this.raw(n);
535
535
  }
@@ -537,7 +537,7 @@ class Sf {
537
537
  * Write a `sint32` value, a signed, zigzag-encoded 32-bit varint.
538
538
  */
539
539
  sint32(e) {
540
- return Hn(e), e = (e << 1 ^ e >> 31) >>> 0, hi(e, this.buf), this;
540
+ return jn(e), e = (e << 1 ^ e >> 31) >>> 0, hi(e, this.buf), this;
541
541
  }
542
542
  /**
543
543
  * Write a `fixed64` value, a signed, fixed-length 64-bit integer.
@@ -912,14 +912,14 @@ function fi(t, e) {
912
912
  break;
913
913
  }
914
914
  }
915
- function je(t, e) {
915
+ function He(t, e) {
916
916
  if (t === null || typeof t != "object" || !Object.getOwnPropertyNames(O.prototype).every((a) => a in t && typeof t[a] == "function"))
917
917
  return !1;
918
918
  const n = t.getType();
919
919
  return n === null || typeof n != "function" || !("typeName" in n) || typeof n.typeName != "string" ? !1 : e === void 0 ? !0 : n.typeName == e.typeName;
920
920
  }
921
921
  function cr(t, e) {
922
- return je(e) || !t.fieldWrapper ? e : t.fieldWrapper.wrapField(e);
922
+ return He(e) || !t.fieldWrapper ? e : t.fieldWrapper.wrapField(e);
923
923
  }
924
924
  R.DOUBLE, R.FLOAT, R.INT64, R.UINT64, R.INT32, R.UINT32, R.BOOL, R.STRING, R.BYTES;
925
925
  const Ri = {
@@ -1095,7 +1095,7 @@ function Si(t, e, n, a, o) {
1095
1095
  if (e === null && r.typeName != "google.protobuf.Value")
1096
1096
  return;
1097
1097
  let c = t[i];
1098
- je(c) ? c.fromJson(e, a) : (t[i] = c = r.fromJson(e, a), r.fieldWrapper && !n.oneof && (t[i] = r.fieldWrapper.unwrapField(c)));
1098
+ He(c) ? c.fromJson(e, a) : (t[i] = c = r.fromJson(e, a), r.fieldWrapper && !n.oneof && (t[i] = r.fieldWrapper.unwrapField(c)));
1099
1099
  break;
1100
1100
  case "enum":
1101
1101
  const l = et(n.T, e, a.ignoreUnknownFields, !1);
@@ -1166,7 +1166,7 @@ function Sn(t, e, n, a) {
1166
1166
  let i;
1167
1167
  if (typeof e == "number" ? i = e : typeof e == "string" && e.length > 0 && e.trim().length === e.length && (i = Number(e)), i === void 0)
1168
1168
  break;
1169
- return t == R.UINT32 || t == R.FIXED32 ? it(i) : Hn(i), i;
1169
+ return t == R.UINT32 || t == R.FIXED32 ? it(i) : jn(i), i;
1170
1170
  case R.INT64:
1171
1171
  case R.SFIXED64:
1172
1172
  case R.SINT64:
@@ -1395,7 +1395,7 @@ function bi(t, e, n, a, o) {
1395
1395
  break;
1396
1396
  case "message":
1397
1397
  const d = n.T;
1398
- i ? t[r].push(Qn(e, new d(), o, n)) : je(t[r]) ? Qn(e, t[r], o, n) : (t[r] = Qn(e, new d(), o, n), d.fieldWrapper && !n.oneof && !n.repeated && (t[r] = d.fieldWrapper.unwrapField(t[r])));
1398
+ i ? t[r].push(Qn(e, new d(), o, n)) : He(t[r]) ? Qn(e, t[r], o, n) : (t[r] = Qn(e, new d(), o, n), d.fieldWrapper && !n.oneof && !n.repeated && (t[r] = d.fieldWrapper.unwrapField(t[r])));
1399
1399
  break;
1400
1400
  case "map":
1401
1401
  let [u, h] = Lf(n, e, o);
@@ -1605,7 +1605,7 @@ function Ff() {
1605
1605
  continue;
1606
1606
  const l = a.findField(c);
1607
1607
  let d = r[o].value;
1608
- l && l.kind == "message" && !je(d, l.T) ? d = new l.T(d) : l && l.kind === "scalar" && l.T === R.BYTES && (d = hn(d)), i[o] = { case: c, value: d };
1608
+ l && l.kind == "message" && !He(d, l.T) ? d = new l.T(d) : l && l.kind === "scalar" && l.T === R.BYTES && (d = hn(d)), i[o] = { case: c, value: d };
1609
1609
  break;
1610
1610
  case "scalar":
1611
1611
  case "enum":
@@ -1634,10 +1634,10 @@ function Ff() {
1634
1634
  case "message":
1635
1635
  const h = a.T;
1636
1636
  if (a.repeated)
1637
- i[o] = r[o].map((S) => je(S, h) ? S : new h(S));
1637
+ i[o] = r[o].map((S) => He(S, h) ? S : new h(S));
1638
1638
  else {
1639
1639
  const S = r[o];
1640
- h.fieldWrapper ? /* We can't use BytesValue.typeName as that will create a circular import */ h.typeName === "google.protobuf.BytesValue" ? i[o] = hn(S) : i[o] = S : i[o] = je(S, h) ? S : new h(S);
1640
+ h.fieldWrapper ? /* We can't use BytesValue.typeName as that will create a circular import */ h.typeName === "google.protobuf.BytesValue" ? i[o] = hn(S) : i[o] = S : i[o] = He(S, h) ? S : new h(S);
1641
1641
  }
1642
1642
  break;
1643
1643
  }
@@ -1722,7 +1722,7 @@ function Ff() {
1722
1722
  function Yn(t) {
1723
1723
  if (t === void 0)
1724
1724
  return t;
1725
- if (je(t))
1725
+ if (He(t))
1726
1726
  return t.clone();
1727
1727
  if (t instanceof Uint8Array) {
1728
1728
  const e = new Uint8Array(t.byteLength);
@@ -1848,7 +1848,7 @@ const $f = /* @__PURE__ */ new Set([
1848
1848
  // names reserved by the runtime for the future
1849
1849
  "toObject"
1850
1850
  ]), Tr = (t) => `${t}$`, Yf = (t) => Vf.has(t) ? Tr(t) : t, Wf = (t) => $f.has(t) ? Tr(t) : t;
1851
- class Hf {
1851
+ class jf {
1852
1852
  constructor(e) {
1853
1853
  this.kind = "oneof", this.repeated = !1, this.packed = !1, this.opt = !1, this.req = !1, this.default = void 0, this.fields = [], this.name = e, this.localName = Jf(e);
1854
1854
  }
@@ -1872,7 +1872,7 @@ function kr(t, e) {
1872
1872
  const h = u;
1873
1873
  if (h.localName = ur(u.name, u.oneof !== void 0), h.jsonName = (n = u.jsonName) !== null && n !== void 0 ? n : zf(u.name), h.repeated = (a = u.repeated) !== null && a !== void 0 ? a : !1, u.kind == "scalar" && (h.L = (o = u.L) !== null && o !== void 0 ? o : ze.BIGINT), h.delimited = (i = u.delimited) !== null && i !== void 0 ? i : !1, h.req = (r = u.req) !== null && r !== void 0 ? r : !1, h.opt = (c = u.opt) !== null && c !== void 0 ? c : !1, u.packed === void 0 && (e ? h.packed = u.kind == "enum" || u.kind == "scalar" && u.T != R.BYTES && u.T != R.STRING : h.packed = !1), u.oneof !== void 0) {
1874
1874
  const S = typeof u.oneof == "string" ? u.oneof : u.oneof.name;
1875
- (!d || d.name != S) && (d = new Hf(S)), h.oneof = d, d.addField(h);
1875
+ (!d || d.name != S) && (d = new jf(S)), h.oneof = d, d.addField(h);
1876
1876
  }
1877
1877
  l.push(h);
1878
1878
  }
@@ -3444,7 +3444,7 @@ class C extends Error {
3444
3444
  * to encode and send the details along with error.
3445
3445
  */
3446
3446
  constructor(e, n = b.Unknown, a, o, i) {
3447
- super(jf(e, n)), this.name = "ConnectError", Object.setPrototypeOf(this, new.target.prototype), this.rawMessage = e, this.code = n, this.metadata = new Headers(a ?? {}), this.details = o ?? [], this.cause = i;
3447
+ super(Hf(e, n)), this.name = "ConnectError", Object.setPrototypeOf(this, new.target.prototype), this.rawMessage = e, this.code = n, this.metadata = new Headers(a ?? {}), this.details = o ?? [], this.cause = i;
3448
3448
  }
3449
3449
  /**
3450
3450
  * Convert any value - typically a caught error into a ConnectError,
@@ -3483,7 +3483,7 @@ class C extends Error {
3483
3483
  return a;
3484
3484
  }
3485
3485
  }
3486
- function jf(t, e) {
3486
+ function Hf(t, e) {
3487
3487
  return t.length ? `[${Ni(e)}] ${t}` : `[${Ni(e)}]`;
3488
3488
  }
3489
3489
  function Kf(t, e, n) {
@@ -4064,7 +4064,7 @@ function Mr(t) {
4064
4064
  }
4065
4065
  ];
4066
4066
  }
4067
- var H = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, br = {}, St = {}, ka = H && H.__assign || function() {
4067
+ var j = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, br = {}, St = {}, ka = j && j.__assign || function() {
4068
4068
  return ka = Object.assign || function(t) {
4069
4069
  for (var e, n = 1, a = arguments.length; n < a; n++) {
4070
4070
  e = arguments[n];
@@ -4153,7 +4153,7 @@ var bR = Mt, OR = (
4153
4153
  }()
4154
4154
  );
4155
4155
  Oa.Delay = OR;
4156
- var wR = H && H.__extends || /* @__PURE__ */ function() {
4156
+ var wR = j && j.__extends || /* @__PURE__ */ function() {
4157
4157
  var t = function(e, n) {
4158
4158
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, o) {
4159
4159
  a.__proto__ = o;
@@ -4168,7 +4168,7 @@ var wR = H && H.__extends || /* @__PURE__ */ function() {
4168
4168
  }
4169
4169
  e.prototype = n === null ? Object.create(n) : (a.prototype = n.prototype, new a());
4170
4170
  };
4171
- }(), CR = H && H.__awaiter || function(t, e, n, a) {
4171
+ }(), CR = j && j.__awaiter || function(t, e, n, a) {
4172
4172
  function o(i) {
4173
4173
  return i instanceof n ? i : new n(function(r) {
4174
4174
  r(i);
@@ -4194,7 +4194,7 @@ var wR = H && H.__extends || /* @__PURE__ */ function() {
4194
4194
  }
4195
4195
  d((a = a.apply(t, e || [])).next());
4196
4196
  });
4197
- }, NR = H && H.__generator || function(t, e) {
4197
+ }, NR = j && j.__generator || function(t, e) {
4198
4198
  var n = { label: 0, sent: function() {
4199
4199
  if (i[0] & 1) throw i[1];
4200
4200
  return i[1];
@@ -4284,7 +4284,7 @@ var PR = Oa, DR = (
4284
4284
  }(PR.Delay)
4285
4285
  );
4286
4286
  Et.SkipFirstDelay = DR;
4287
- var wt = {}, AR = H && H.__extends || /* @__PURE__ */ function() {
4287
+ var wt = {}, AR = j && j.__extends || /* @__PURE__ */ function() {
4288
4288
  var t = function(e, n) {
4289
4289
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, o) {
4290
4290
  a.__proto__ = o;
@@ -4322,7 +4322,7 @@ It.DelayFactory = BR;
4322
4322
  function xR(t) {
4323
4323
  return t.delayFirstAttempt ? new GR.AlwaysDelay(t) : new LR.SkipFirstDelay(t);
4324
4324
  }
4325
- var ct = H && H.__awaiter || function(t, e, n, a) {
4325
+ var ct = j && j.__awaiter || function(t, e, n, a) {
4326
4326
  function o(i) {
4327
4327
  return i instanceof n ? i : new n(function(r) {
4328
4328
  r(i);
@@ -4348,7 +4348,7 @@ var ct = H && H.__awaiter || function(t, e, n, a) {
4348
4348
  }
4349
4349
  d((a = a.apply(t, e || [])).next());
4350
4350
  });
4351
- }, dt = H && H.__generator || function(t, e) {
4351
+ }, dt = j && j.__generator || function(t, e) {
4352
4352
  var n = { label: 0, sent: function() {
4353
4353
  if (i[0] & 1) throw i[1];
4354
4354
  return i[1];
@@ -4543,7 +4543,7 @@ const Or = /* @__PURE__ */ s.makeMessageType(
4543
4543
  /* ScalarType.STRING */
4544
4544
  }
4545
4545
  ]
4546
- ), HR = {
4546
+ ), jR = {
4547
4547
  typeName: "proto.rpc.v1.AuthService",
4548
4548
  methods: {
4549
4549
  /**
@@ -4562,7 +4562,7 @@ const Or = /* @__PURE__ */ s.makeMessageType(
4562
4562
  kind: m.Unary
4563
4563
  }
4564
4564
  }
4565
- }, jR = {
4565
+ }, HR = {
4566
4566
  typeName: "proto.rpc.v1.ExternalAuthService",
4567
4567
  methods: {
4568
4568
  /**
@@ -5013,8 +5013,8 @@ function Fi(t, e) {
5013
5013
  };
5014
5014
  throw new C(decodeURIComponent((n = e.get(fr)) !== null && n !== void 0 ? n : `HTTP ${t}`), y1(t), e);
5015
5015
  }
5016
- var He = function(t) {
5017
- return this instanceof He ? (this.v = t, this) : new He(t);
5016
+ var je = function(t) {
5017
+ return this instanceof je ? (this.v = t, this) : new je(t);
5018
5018
  }, v1 = function(t, e, n) {
5019
5019
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
5020
5020
  var a = n.apply(t, e || []), o, i = [];
@@ -5041,7 +5041,7 @@ var He = function(t) {
5041
5041
  }
5042
5042
  }
5043
5043
  function d(f) {
5044
- f.value instanceof He ? Promise.resolve(f.value.v).then(u, h) : S(i[0][2], f);
5044
+ f.value instanceof je ? Promise.resolve(f.value.v).then(u, h) : S(i[0][2], f);
5045
5045
  }
5046
5046
  function u(f) {
5047
5047
  l("next", f);
@@ -5126,13 +5126,13 @@ function h1(t) {
5126
5126
  return v1(this, arguments, function* () {
5127
5127
  const y = Di(w).getReader();
5128
5128
  if (N) {
5129
- if (!(yield He(y.read())).done)
5129
+ if (!(yield je(y.read())).done)
5130
5130
  throw "extra data for trailers-only";
5131
- return yield He(void 0);
5131
+ return yield je(void 0);
5132
5132
  }
5133
5133
  let M = !1;
5134
5134
  for (; ; ) {
5135
- const E = yield He(y.read());
5135
+ const E = yield je(y.read());
5136
5136
  if (E.done)
5137
5137
  break;
5138
5138
  const { flags: Z, data: U } = E.value;
@@ -5146,7 +5146,7 @@ function h1(t) {
5146
5146
  }
5147
5147
  if (M)
5148
5148
  throw "extra message";
5149
- yield yield He(S(U));
5149
+ yield yield je(S(U));
5150
5150
  }
5151
5151
  if ("throwIfAborted" in v && v.throwIfAborted(), !M)
5152
5152
  throw "missing trailer";
@@ -6023,7 +6023,7 @@ var Ur = { exports: {} };
6023
6023
  (function(t, e) {
6024
6024
  (function(n, a) {
6025
6025
  t.exports = a();
6026
- })(H, function() {
6026
+ })(j, function() {
6027
6027
  return function(n) {
6028
6028
  var a = {};
6029
6029
  function o(i) {
@@ -6183,7 +6183,7 @@ const ea = (t, e) => globalThis.VIAM?.GRPC_TRACE_LOGGING === !0 ? { ...t, unary:
6183
6183
  payload: n.credentials.payload
6184
6184
  }));
6185
6185
  const c = n.externalAuthAddress ?? t, l = e({ baseUrl: c });
6186
- i = (await W(HR, l).authenticate(r)).accessToken;
6186
+ i = (await W(jR, l).authenticate(r)).accessToken;
6187
6187
  } else
6188
6188
  i = n.accessToken;
6189
6189
  if (n.externalAuthAddress !== void 0 && n.externalAuthAddress !== "" && n.externalAuthToEntity !== void 0 && n.externalAuthToEntity !== "") {
@@ -6194,7 +6194,7 @@ const ea = (t, e) => globalThis.VIAM?.GRPC_TRACE_LOGGING === !0 ? { ...t, unary:
6194
6194
  }), l = e({
6195
6195
  baseUrl: n.externalAuthAddress
6196
6196
  });
6197
- i = (await W(jR, l).authenticateTo(c, {
6197
+ i = (await W(HR, l).authenticateTo(c, {
6198
6198
  headers: r
6199
6199
  })).accessToken;
6200
6200
  }
@@ -6358,7 +6358,7 @@ const Dn = (t) => {
6358
6358
  "cannot set webrtcOptions.signalingCredentials with webrtcOptions.signalingAccessToken"
6359
6359
  );
6360
6360
  }
6361
- }, F1 = "v0.1.518", Gr = /* @__PURE__ */ s.makeEnum(
6361
+ }, F1 = "v0.1.521", Gr = /* @__PURE__ */ s.makeEnum(
6362
6362
  "viam.common.v1.KinematicsFileFormat",
6363
6363
  [
6364
6364
  { no: 0, name: "KINEMATICS_FILE_FORMAT_UNSPECIFIED", localName: "UNSPECIFIED" },
@@ -6885,7 +6885,7 @@ const Dn = (t) => {
6885
6885
  "viam.common.v1.safety_heartbeat_monitored",
6886
6886
  re,
6887
6887
  { no: 84260, kind: "scalar", T: 8, opt: !0 }
6888
- ), Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6888
+ ), jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6889
6889
  __proto__: null,
6890
6890
  ActuatorStatus: J1,
6891
6891
  AudioInfo: At,
@@ -6923,7 +6923,7 @@ const Dn = (t) => {
6923
6923
  WorldState: $r,
6924
6924
  safety_heartbeat_monitored: Wr
6925
6925
  }, Symbol.toStringTag, { value: "Module" })), An = new Headers({
6926
- viam_client: `typescript;v0.63.0;${F1}`
6926
+ viam_client: `typescript;v0.64.0;${F1}`
6927
6927
  }), A = async function(e, n, a, o = {}, i = {}) {
6928
6928
  const r = new P({
6929
6929
  name: n,
@@ -6953,7 +6953,7 @@ const Dn = (t) => {
6953
6953
  }, bI = (t, e) => {
6954
6954
  const { [e]: n, ...a } = t.headers;
6955
6955
  t.headers = a;
6956
- }, jr = async function(e, n, a = p.fromJson({}), o = {}) {
6956
+ }, Hr = async function(e, n, a = p.fromJson({}), o = {}) {
6957
6957
  const i = new Ln({
6958
6958
  name: n,
6959
6959
  extra: a
@@ -6976,7 +6976,7 @@ const Dn = (t) => {
6976
6976
  credentials: e,
6977
6977
  extraHeaders: An
6978
6978
  }), ot = 1e4;
6979
- var j = /* @__PURE__ */ ((t) => (t.CONNECTING = "connecting", t.CONNECTED = "connected", t.DISCONNECTING = "disconnecting", t.DISCONNECTED = "disconnected", t.DIALING = "dialing", t))(j || {});
6979
+ var H = /* @__PURE__ */ ((t) => (t.CONNECTING = "connecting", t.CONNECTED = "connected", t.DISCONNECTING = "disconnecting", t.DISCONNECTED = "disconnected", t.DIALING = "dialing", t))(H || {});
6980
6980
  class Xr {
6981
6981
  listeners = {};
6982
6982
  on(e, n) {
@@ -7142,7 +7142,9 @@ const qt = /* @__PURE__ */ s.makeMessageType(
7142
7142
  "viam.component.arm.v1.MoveOptions",
7143
7143
  () => [
7144
7144
  { no: 1, name: "max_vel_degs_per_sec", kind: "scalar", T: 1, opt: !0 },
7145
- { no: 2, name: "max_acc_degs_per_sec2", kind: "scalar", T: 1, opt: !0 }
7145
+ { no: 2, name: "max_acc_degs_per_sec2", kind: "scalar", T: 1, opt: !0 },
7146
+ { no: 3, name: "max_vel_degs_per_sec_joints", kind: "scalar", T: 1, repeated: !0 },
7147
+ { no: 4, name: "max_acc_degs_per_sec2_joints", kind: "scalar", T: 1, repeated: !0 }
7146
7148
  ]
7147
7149
  ), V1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7148
7150
  __proto__: null,
@@ -7603,7 +7605,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
7603
7605
  /* ScalarType.INT64 */
7604
7606
  } }
7605
7607
  ]
7606
- ), Ht = /* @__PURE__ */ s.makeMessageType(
7608
+ ), jt = /* @__PURE__ */ s.makeMessageType(
7607
7609
  "viam.component.board.v1.SetGPIORequest",
7608
7610
  () => [
7609
7611
  {
@@ -7632,7 +7634,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
7632
7634
  ), ym = /* @__PURE__ */ s.makeMessageType(
7633
7635
  "viam.component.board.v1.SetGPIOResponse",
7634
7636
  []
7635
- ), jt = /* @__PURE__ */ s.makeMessageType(
7637
+ ), Ht = /* @__PURE__ */ s.makeMessageType(
7636
7638
  "viam.component.board.v1.GetGPIORequest",
7637
7639
  () => [
7638
7640
  {
@@ -7945,11 +7947,11 @@ const qt = /* @__PURE__ */ s.makeMessageType(
7945
7947
  ), bm = /* @__PURE__ */ s.makeMessageType(
7946
7948
  "viam.component.board.v1.SetPowerModeResponse",
7947
7949
  []
7948
- ), H1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7950
+ ), j1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7949
7951
  __proto__: null,
7950
7952
  GetDigitalInterruptValueRequest: as,
7951
7953
  GetDigitalInterruptValueResponse: Em,
7952
- GetGPIORequest: jt,
7954
+ GetGPIORequest: Ht,
7953
7955
  GetGPIOResponse: vm,
7954
7956
  PWMFrequencyRequest: Qt,
7955
7957
  PWMFrequencyResponse: Rm,
@@ -7958,7 +7960,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
7958
7960
  PowerMode: km,
7959
7961
  ReadAnalogReaderRequest: es,
7960
7962
  ReadAnalogReaderResponse: Sm,
7961
- SetGPIORequest: Ht,
7963
+ SetGPIORequest: jt,
7962
7964
  SetGPIOResponse: ym,
7963
7965
  SetPWMFrequencyRequest: Zt,
7964
7966
  SetPWMFrequencyResponse: _m,
@@ -7979,7 +7981,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
7979
7981
  */
7980
7982
  setGPIO: {
7981
7983
  name: "SetGPIO",
7982
- I: Ht,
7984
+ I: jt,
7983
7985
  O: ym,
7984
7986
  kind: m.Unary
7985
7987
  },
@@ -7990,7 +7992,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
7990
7992
  */
7991
7993
  getGPIO: {
7992
7994
  name: "GetGPIO",
7993
- I: jt,
7995
+ I: Ht,
7994
7996
  O: vm,
7995
7997
  kind: m.Unary
7996
7998
  },
@@ -8193,7 +8195,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
8193
8195
  /* ScalarType.BOOL */
8194
8196
  }
8195
8197
  ]
8196
- ), j1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8198
+ ), H1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8197
8199
  __proto__: null,
8198
8200
  GetPositionRequest: is,
8199
8201
  GetPositionResponse: wm,
@@ -8744,7 +8746,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
8744
8746
  },
8745
8747
  { no: 99, name: "extra", kind: "message", T: p }
8746
8748
  ]
8747
- ), Hm = /* @__PURE__ */ s.makeMessageType(
8749
+ ), jm = /* @__PURE__ */ s.makeMessageType(
8748
8750
  "viam.component.inputcontroller.v1.GetControlsResponse",
8749
8751
  () => [
8750
8752
  { no: 1, name: "controls", kind: "scalar", T: 9, repeated: !0 }
@@ -8761,7 +8763,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
8761
8763
  },
8762
8764
  { no: 99, name: "extra", kind: "message", T: p }
8763
8765
  ]
8764
- ), jm = /* @__PURE__ */ s.makeMessageType(
8766
+ ), Hm = /* @__PURE__ */ s.makeMessageType(
8765
8767
  "viam.component.inputcontroller.v1.GetEventsResponse",
8766
8768
  () => [
8767
8769
  { no: 1, name: "events", kind: "message", T: Fn, repeated: !0 }
@@ -8849,9 +8851,9 @@ const qt = /* @__PURE__ */ s.makeMessageType(
8849
8851
  __proto__: null,
8850
8852
  Event: Fn,
8851
8853
  GetControlsRequest: Wm,
8852
- GetControlsResponse: Hm,
8854
+ GetControlsResponse: jm,
8853
8855
  GetEventsRequest: fs,
8854
- GetEventsResponse: jm,
8856
+ GetEventsResponse: Hm,
8855
8857
  Status: X1,
8856
8858
  StreamEventsRequest: Xm,
8857
8859
  StreamEventsRequest_Events: Qm,
@@ -8869,7 +8871,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
8869
8871
  getControls: {
8870
8872
  name: "GetControls",
8871
8873
  I: Wm,
8872
- O: Hm,
8874
+ O: jm,
8873
8875
  kind: m.Unary
8874
8876
  },
8875
8877
  /**
@@ -8880,7 +8882,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
8880
8882
  getEvents: {
8881
8883
  name: "GetEvents",
8882
8884
  I: fs,
8883
- O: jm,
8885
+ O: Hm,
8884
8886
  kind: m.Unary
8885
8887
  },
8886
8888
  /**
@@ -10414,7 +10416,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
10414
10416
  () => [
10415
10417
  { no: 1, name: "pose", kind: "message", T: $e }
10416
10418
  ]
10417
- ), Hs = /* @__PURE__ */ s.makeMessageType(
10419
+ ), js = /* @__PURE__ */ s.makeMessageType(
10418
10420
  "viam.robot.v1.TransformPCDRequest",
10419
10421
  () => [
10420
10422
  {
@@ -10473,12 +10475,12 @@ const qt = /* @__PURE__ */ s.makeMessageType(
10473
10475
  ), Wc = /* @__PURE__ */ s.makeMessageType(
10474
10476
  "viam.robot.v1.ResourceRPCSubtypesRequest",
10475
10477
  []
10476
- ), Hc = /* @__PURE__ */ s.makeMessageType(
10478
+ ), jc = /* @__PURE__ */ s.makeMessageType(
10477
10479
  "viam.robot.v1.ResourceRPCSubtypesResponse",
10478
10480
  () => [
10479
10481
  { no: 1, name: "resource_rpc_subtypes", kind: "message", T: Yc, repeated: !0 }
10480
10482
  ]
10481
- ), jc = /* @__PURE__ */ s.makeMessageType(
10483
+ ), Hc = /* @__PURE__ */ s.makeMessageType(
10482
10484
  "viam.robot.v1.Operation",
10483
10485
  () => [
10484
10486
  {
@@ -10505,7 +10507,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
10505
10507
  ), Xc = /* @__PURE__ */ s.makeMessageType(
10506
10508
  "viam.robot.v1.GetOperationsResponse",
10507
10509
  () => [
10508
- { no: 1, name: "operations", kind: "message", T: jc, repeated: !0 }
10510
+ { no: 1, name: "operations", kind: "message", T: Hc, repeated: !0 }
10509
10511
  ]
10510
10512
  ), Qc = /* @__PURE__ */ s.makeMessageType(
10511
10513
  "viam.robot.v1.CancelOperationRequest",
@@ -10594,7 +10596,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
10594
10596
  /* ScalarType.BOOL */
10595
10597
  }
10596
10598
  ]
10597
- ), js = /* @__PURE__ */ s.makeMessageType(
10599
+ ), Hs = /* @__PURE__ */ s.makeMessageType(
10598
10600
  "viam.robot.v1.GetModelsFromModulesRequest",
10599
10601
  []
10600
10602
  ), rd = /* @__PURE__ */ s.makeMessageType(
@@ -10889,7 +10891,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
10889
10891
  GetMachineStatusRequest: Sd,
10890
10892
  GetMachineStatusResponse: Id,
10891
10893
  GetMachineStatusResponse_State: Ed,
10892
- GetModelsFromModulesRequest: js,
10894
+ GetModelsFromModulesRequest: Hs,
10893
10895
  GetModelsFromModulesResponse: rd,
10894
10896
  GetOperationsRequest: Kc,
10895
10897
  GetOperationsResponse: Xc,
@@ -10907,14 +10909,14 @@ const qt = /* @__PURE__ */ s.makeMessageType(
10907
10909
  LogRequest: yd,
10908
10910
  LogResponse: vd,
10909
10911
  ModuleModel: id,
10910
- Operation: jc,
10912
+ Operation: Hc,
10911
10913
  PeerConnectionInfo: ad,
10912
10914
  PeerConnectionType: Nc,
10913
10915
  ResourceNamesRequest: $c,
10914
10916
  ResourceNamesResponse: Vc,
10915
10917
  ResourceRPCSubtype: Yc,
10916
10918
  ResourceRPCSubtypesRequest: Wc,
10917
- ResourceRPCSubtypesResponse: Hc,
10919
+ ResourceRPCSubtypesResponse: jc,
10918
10920
  ResourceStatus: bd,
10919
10921
  ResourceStatus_State: Od,
10920
10922
  RestartModuleRequest: eo,
@@ -10934,7 +10936,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
10934
10936
  StopExtraParameters: pd,
10935
10937
  StreamStatusRequest: dd,
10936
10938
  StreamStatusResponse: ld,
10937
- TransformPCDRequest: Hs,
10939
+ TransformPCDRequest: js,
10938
10940
  TransformPCDResponse: zc,
10939
10941
  TransformPoseRequest: Ws,
10940
10942
  TransformPoseResponse: Jc,
@@ -10981,7 +10983,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
10981
10983
  resourceRPCSubtypes: {
10982
10984
  name: "ResourceRPCSubtypes",
10983
10985
  I: Wc,
10984
- O: Hc,
10986
+ O: jc,
10985
10987
  kind: m.Unary
10986
10988
  },
10987
10989
  /**
@@ -11009,7 +11011,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
11009
11011
  */
11010
11012
  getModelsFromModules: {
11011
11013
  name: "GetModelsFromModules",
11012
- I: js,
11014
+ I: Hs,
11013
11015
  O: rd,
11014
11016
  kind: m.Unary
11015
11017
  },
@@ -11199,7 +11201,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
11199
11201
  */
11200
11202
  transformPCD: {
11201
11203
  name: "TransformPCD",
11202
- I: Hs,
11204
+ I: js,
11203
11205
  O: zc,
11204
11206
  kind: m.Unary
11205
11207
  },
@@ -11708,8 +11710,8 @@ const qt = /* @__PURE__ */ s.makeMessageType(
11708
11710
  T: 9
11709
11711
  /* ScalarType.STRING */
11710
11712
  },
11711
- { no: 2, name: "translation", kind: "message", T: Hd },
11712
- { no: 3, name: "orientation", kind: "message", T: jd },
11713
+ { no: 2, name: "translation", kind: "message", T: jd },
11714
+ { no: 3, name: "orientation", kind: "message", T: Hd },
11713
11715
  { no: 4, name: "geometry", kind: "message", T: Qe }
11714
11716
  ]
11715
11717
  ), qa = /* @__PURE__ */ s.makeMessageType(
@@ -11723,7 +11725,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
11723
11725
  /* ScalarType.STRING */
11724
11726
  }
11725
11727
  ]
11726
- ), Hd = /* @__PURE__ */ s.makeMessageType(
11728
+ ), jd = /* @__PURE__ */ s.makeMessageType(
11727
11729
  "viam.app.v1.Translation",
11728
11730
  () => [
11729
11731
  {
@@ -11748,7 +11750,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
11748
11750
  /* ScalarType.DOUBLE */
11749
11751
  }
11750
11752
  ]
11751
- ), jd = /* @__PURE__ */ s.makeMessageType(
11753
+ ), Hd = /* @__PURE__ */ s.makeMessageType(
11752
11754
  "viam.app.v1.Orientation",
11753
11755
  () => [
11754
11756
  { no: 1, name: "no_orientation", kind: "message", T: Kd, oneof: "type" },
@@ -12254,7 +12256,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
12254
12256
  NeedsRestartRequest: R_,
12255
12257
  NeedsRestartResponse: __,
12256
12258
  NetworkConfig: Fd,
12257
- Orientation: jd,
12259
+ Orientation: Hd,
12258
12260
  Orientation_AxisAngles: el,
12259
12261
  Orientation_EulerAngles: Zd,
12260
12262
  Orientation_NoOrientation: Kd,
@@ -12272,7 +12274,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
12272
12274
  SessionsConfig: Jd,
12273
12275
  TracingConfig: qd,
12274
12276
  TrafficTunnelEndpoint: zd,
12275
- Translation: Hd
12277
+ Translation: jd
12276
12278
  }, Symbol.toStringTag, { value: "Module" })), io = /* @__PURE__ */ s.makeMessageType(
12277
12279
  "viam.service.discovery.v1.DiscoverResourcesRequest",
12278
12280
  () => [
@@ -13243,7 +13245,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
13243
13245
  /* ScalarType.STRING */
13244
13246
  }
13245
13247
  ]
13246
- ), Hl = /* @__PURE__ */ s.makeMessageType(
13248
+ ), jl = /* @__PURE__ */ s.makeMessageType(
13247
13249
  "viam.service.slam.v1.GetInternalStateResponse",
13248
13250
  () => [
13249
13251
  {
@@ -13265,7 +13267,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
13265
13267
  /* ScalarType.STRING */
13266
13268
  }
13267
13269
  ]
13268
- ), jl = /* @__PURE__ */ s.makeMessageType(
13270
+ ), Hl = /* @__PURE__ */ s.makeMessageType(
13269
13271
  "viam.service.slam.v1.GetPropertiesResponse",
13270
13272
  () => [
13271
13273
  {
@@ -13294,13 +13296,13 @@ const qt = /* @__PURE__ */ s.makeMessageType(
13294
13296
  ), E_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13295
13297
  __proto__: null,
13296
13298
  GetInternalStateRequest: Oo,
13297
- GetInternalStateResponse: Hl,
13299
+ GetInternalStateResponse: jl,
13298
13300
  GetPointCloudMapRequest: bo,
13299
13301
  GetPointCloudMapResponse: Wl,
13300
13302
  GetPositionRequest: Mo,
13301
13303
  GetPositionResponse: Yl,
13302
13304
  GetPropertiesRequest: wo,
13303
- GetPropertiesResponse: jl,
13305
+ GetPropertiesResponse: Hl,
13304
13306
  MappingMode: $l,
13305
13307
  SensorInfo: Kl,
13306
13308
  SensorType: Vl
@@ -13341,7 +13343,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
13341
13343
  getInternalState: {
13342
13344
  name: "GetInternalState",
13343
13345
  I: Oo,
13344
- O: Hl,
13346
+ O: jl,
13345
13347
  kind: m.ServerStreaming
13346
13348
  },
13347
13349
  /**
@@ -13354,7 +13356,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
13354
13356
  getProperties: {
13355
13357
  name: "GetProperties",
13356
13358
  I: wo,
13357
- O: jl,
13359
+ O: Hl,
13358
13360
  kind: m.Unary
13359
13361
  },
13360
13362
  /**
@@ -14386,10 +14388,10 @@ const qt = /* @__PURE__ */ s.makeMessageType(
14386
14388
  /* ScalarType.STRING */
14387
14389
  }
14388
14390
  ]
14389
- ), Hp = /* @__PURE__ */ s.makeMessageType(
14391
+ ), jp = /* @__PURE__ */ s.makeMessageType(
14390
14392
  "viam.app.data.v1.AddBinaryDataToDatasetByIDsResponse",
14391
14393
  []
14392
- ), jp = /* @__PURE__ */ s.makeMessageType(
14394
+ ), Hp = /* @__PURE__ */ s.makeMessageType(
14393
14395
  "viam.app.data.v1.RemoveBinaryDataFromDatasetByIDsRequest",
14394
14396
  () => [
14395
14397
  { no: 1, name: "binary_ids", kind: "message", T: ce, repeated: !0 },
@@ -14638,7 +14640,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
14638
14640
  ), LI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14639
14641
  __proto__: null,
14640
14642
  AddBinaryDataToDatasetByIDsRequest: Wp,
14641
- AddBinaryDataToDatasetByIDsResponse: Hp,
14643
+ AddBinaryDataToDatasetByIDsResponse: jp,
14642
14644
  AddBoundingBoxToImageByIDRequest: Up,
14643
14645
  AddBoundingBoxToImageByIDResponse: qp,
14644
14646
  AddTagsToBinaryDataByFilterRequest: bp,
@@ -14696,7 +14698,7 @@ const qt = /* @__PURE__ */ s.makeMessageType(
14696
14698
  ListSavedQueriesResponse: uu,
14697
14699
  Order: Ql,
14698
14700
  Query: Ao,
14699
- RemoveBinaryDataFromDatasetByIDsRequest: jp,
14701
+ RemoveBinaryDataFromDatasetByIDsRequest: Hp,
14700
14702
  RemoveBinaryDataFromDatasetByIDsResponse: Kp,
14701
14703
  RemoveBoundingBoxFromImageByIDRequest: Lp,
14702
14704
  RemoveBoundingBoxFromImageByIDResponse: Gp,
@@ -16003,12 +16005,12 @@ const x_ = /* @__PURE__ */ s.makeEnum(
16003
16005
  () => [
16004
16006
  { no: 1, name: "data", kind: "scalar", T: 7, repeated: !0 }
16005
16007
  ]
16006
- ), H_ = /* @__PURE__ */ s.makeMessageType(
16008
+ ), j_ = /* @__PURE__ */ s.makeMessageType(
16007
16009
  "viam.service.mlmodel.v1.FlatTensorDataUInt16",
16008
16010
  () => [
16009
16011
  { no: 1, name: "data", kind: "scalar", T: 7, repeated: !0 }
16010
16012
  ]
16011
- ), j_ = /* @__PURE__ */ s.makeMessageType(
16013
+ ), H_ = /* @__PURE__ */ s.makeMessageType(
16012
16014
  "viam.service.mlmodel.v1.FlatTensorDataInt32",
16013
16015
  () => [
16014
16016
  { no: 1, name: "data", kind: "scalar", T: 15, repeated: !0 }
@@ -16045,8 +16047,8 @@ const x_ = /* @__PURE__ */ s.makeEnum(
16045
16047
  { no: 2, name: "int8_tensor", kind: "message", T: V_, oneof: "tensor" },
16046
16048
  { no: 3, name: "uint8_tensor", kind: "message", T: Y_, oneof: "tensor" },
16047
16049
  { no: 4, name: "int16_tensor", kind: "message", T: W_, oneof: "tensor" },
16048
- { no: 5, name: "uint16_tensor", kind: "message", T: H_, oneof: "tensor" },
16049
- { no: 6, name: "int32_tensor", kind: "message", T: j_, oneof: "tensor" },
16050
+ { no: 5, name: "uint16_tensor", kind: "message", T: j_, oneof: "tensor" },
16051
+ { no: 6, name: "int32_tensor", kind: "message", T: H_, oneof: "tensor" },
16050
16052
  { no: 7, name: "uint32_tensor", kind: "message", T: K_, oneof: "tensor" },
16051
16053
  { no: 8, name: "int64_tensor", kind: "message", T: X_, oneof: "tensor" },
16052
16054
  { no: 9, name: "uint64_tensor", kind: "message", T: Q_, oneof: "tensor" },
@@ -16308,7 +16310,7 @@ class mn extends Xr {
16308
16310
  return this.transport;
16309
16311
  }
16310
16312
  );
16311
- for (const i of Object.values(j))
16313
+ for (const i of Object.values(H))
16312
16314
  this.on(i, () => {
16313
16315
  this.emit("connectionstatechange", { eventType: i });
16314
16316
  });
@@ -16321,7 +16323,7 @@ class mn extends Xr {
16321
16323
  ), this.onICEConnectionStateChange = void 0), this.peerConn && this.onTrack && (this.peerConn.removeEventListener("track", this.onTrack), this.onTrack = void 0), this.dataChannel && this.onDataChannelClose && (this.dataChannel.removeEventListener("close", this.onDataChannelClose), this.onDataChannelClose = void 0);
16322
16324
  }
16323
16325
  onDisconnect(e) {
16324
- if (this.emit(j.DISCONNECTED, e ?? {}), this.noReconnect !== void 0 && this.noReconnect || this.closed)
16326
+ if (this.emit(H.DISCONNECTED, e ?? {}), this.noReconnect !== void 0 && this.noReconnect || this.closed)
16325
16327
  return;
16326
16328
  console.debug("Connection closed, will try to reconnect");
16327
16329
  const n = {
@@ -16436,7 +16438,7 @@ class mn extends Xr {
16436
16438
  async dialWebRTC(e, n) {
16437
16439
  if (n?.abort === !0)
16438
16440
  throw new Error(rn);
16439
- return this.emit(j.DIALING, {
16441
+ return this.emit(H.DIALING, {
16440
16442
  method: "webrtc",
16441
16443
  attempt: this.currentRetryAttempt
16442
16444
  }), this.serviceHost = e.serviceHost ?? e.host, this.sessionManager.setHost(this.serviceHost), this.webrtcOptions.enabled = !0, this.webrtcOptions.host = e.host, this.webrtcOptions.signalingAddress = e.signalingAddress, this.webrtcOptions.rtcConfig.iceServers = e.iceServers ?? [], this.webrtcOptions.noReconnect = e.noReconnect, this.webrtcOptions.reconnectMaxWait = e.reconnectMaxWait, this.webrtcOptions.reconnectMaxAttempts = e.reconnectMaxAttempts, this.sessionOptions.disabled = e.disableSessions ?? !1, await this.connect({
@@ -16448,7 +16450,7 @@ class mn extends Xr {
16448
16450
  async dialDirect(e, n) {
16449
16451
  if (n?.abort === !0)
16450
16452
  throw new Error(rn);
16451
- if (this.emit(j.DIALING, {
16453
+ if (this.emit(H.DIALING, {
16452
16454
  method: "grpc",
16453
16455
  attempt: this.currentRetryAttempt
16454
16456
  }), !e.host.includes("local"))
@@ -16506,7 +16508,7 @@ class mn extends Xr {
16506
16508
  } catch (o) {
16507
16509
  Yi(o);
16508
16510
  const i = o instanceof Error ? o : new Error(String(o));
16509
- return console.debug("Failed to connect via WebRTC", i), this.emit(j.DISCONNECTED, {
16511
+ return console.debug("Failed to connect via WebRTC", i), this.emit(H.DISCONNECTED, {
16510
16512
  error: i
16511
16513
  }), { dialer: this, error: i };
16512
16514
  }
@@ -16520,7 +16522,7 @@ class mn extends Xr {
16520
16522
  } catch (o) {
16521
16523
  Yi(o);
16522
16524
  const i = o instanceof Error ? o : new Error(String(o));
16523
- return console.debug("Failed to connect via gRPC", i), this.emit(j.DISCONNECTED, {
16525
+ return console.debug("Failed to connect via gRPC", i), this.emit(H.DISCONNECTED, {
16524
16526
  error: i
16525
16527
  }), { dialer: this, error: i };
16526
16528
  }
@@ -16559,11 +16561,11 @@ class mn extends Xr {
16559
16561
  return this;
16560
16562
  }
16561
16563
  async disconnect() {
16562
- for (this.emit(j.DISCONNECTING, {}), this.currentDialAbortSignal && this.dialing && (this.currentDialAbortSignal.abort = !0, this.dialing.catch(() => {
16564
+ for (this.emit(H.DISCONNECTING, {}), this.currentDialAbortSignal && this.dialing && (this.currentDialAbortSignal.abort = !0, this.dialing.catch(() => {
16563
16565
  console.debug("Ignored abort error from previous dial");
16564
16566
  }), this.resetDialing(this.dialing)); this.connecting; )
16565
16567
  await this.connecting;
16566
- this.cleanupEventListeners(), this.peerConn && (this.peerConn.close(), this.peerConn = void 0), this.dataChannel && (this.dataChannel.close(), this.dataChannel = void 0), this.sessionManager.reset(), this.closed = !0, this.emit(j.DISCONNECTED, {});
16568
+ this.cleanupEventListeners(), this.peerConn && (this.peerConn.close(), this.peerConn = void 0), this.dataChannel && (this.dataChannel.close(), this.dataChannel = void 0), this.sessionManager.reset(), this.closed = !0, this.emit(H.DISCONNECTED, {});
16567
16569
  }
16568
16570
  isConnected() {
16569
16571
  return this.peerConn?.iceConnectionState === "connected";
@@ -16575,7 +16577,7 @@ class mn extends Xr {
16575
16577
  priority: n,
16576
16578
  dialTimeout: a
16577
16579
  } = {}) {
16578
- if (this.emit(j.CONNECTING, {}), this.closed = !1, this.connecting) {
16580
+ if (this.emit(H.CONNECTING, {}), this.closed = !1, this.connecting) {
16579
16581
  for (; this.connecting !== void 0; )
16580
16582
  await this.connecting;
16581
16583
  return;
@@ -16601,7 +16603,7 @@ class mn extends Xr {
16601
16603
  this.serviceHost !== "" && r !== this.serviceHost
16602
16604
  );
16603
16605
  this.peerConn = c.peerConnection, this.dataChannel = c.dataChannel, this.cleanupEventListeners(), this.onICEConnectionStateChange = () => {
16604
- this.peerConn?.iceConnectionState === "connected" ? this.emit(j.CONNECTED, {}) : this.peerConn?.iceConnectionState === "closed" && this.onDisconnect();
16606
+ this.peerConn?.iceConnectionState === "connected" ? this.emit(H.CONNECTED, {}) : this.peerConn?.iceConnectionState === "closed" && this.onDisconnect();
16605
16607
  }, this.peerConn.addEventListener(
16606
16608
  "iceconnectionstatechange",
16607
16609
  this.onICEConnectionStateChange
@@ -16617,9 +16619,9 @@ class mn extends Xr {
16617
16619
  } else
16618
16620
  this.transport = await fa(this.serviceHost, o), await this.gRPCConnectionManager.start();
16619
16621
  const i = this.sessionOptions.disabled ? this.transport : this.sessionManager.transport;
16620
- this.robotServiceClient = W(ao, i), this.emit(j.CONNECTED, {});
16622
+ this.robotServiceClient = W(ao, i), this.emit(H.CONNECTED, {});
16621
16623
  } catch (o) {
16622
- throw this.emit(j.DISCONNECTED, {}), o;
16624
+ throw this.emit(H.DISCONNECTED, {}), o;
16623
16625
  } finally {
16624
16626
  this.connectResolve?.(), this.connectResolve = void 0, this.connecting = void 0;
16625
16627
  }
@@ -16658,7 +16660,7 @@ class mn extends Xr {
16658
16660
  return r;
16659
16661
  }
16660
16662
  async transformPCD(e, n, a) {
16661
- const o = new Hs({
16663
+ const o = new js({
16662
16664
  pointCloudPcd: e,
16663
16665
  source: n,
16664
16666
  destination: a
@@ -16667,7 +16669,7 @@ class mn extends Xr {
16667
16669
  }
16668
16670
  // GET MODELS FROM MODULES
16669
16671
  async getModelsFromModules() {
16670
- const e = new js({});
16672
+ const e = new Hs({});
16671
16673
  return (await this.robotService.getModelsFromModules(e)).models;
16672
16674
  }
16673
16675
  // GET CLOUD METADATA
@@ -16864,7 +16866,7 @@ const cS = async (t) => {
16864
16866
  /* ScalarType.STRING */
16865
16867
  }
16866
16868
  ]
16867
- ), Hu = /* @__PURE__ */ s.makeMessageType(
16869
+ ), ju = /* @__PURE__ */ s.makeMessageType(
16868
16870
  "viam.app.mltraining.v1.GetTrainingJobRequest",
16869
16871
  () => [
16870
16872
  {
@@ -16875,7 +16877,7 @@ const cS = async (t) => {
16875
16877
  /* ScalarType.STRING */
16876
16878
  }
16877
16879
  ]
16878
- ), ju = /* @__PURE__ */ s.makeMessageType(
16880
+ ), Hu = /* @__PURE__ */ s.makeMessageType(
16879
16881
  "viam.app.mltraining.v1.GetTrainingJobResponse",
16880
16882
  () => [
16881
16883
  { no: 1, name: "metadata", kind: "message", T: Yo }
@@ -17106,8 +17108,8 @@ const cS = async (t) => {
17106
17108
  DeleteCompletedTrainingJobResponse: ng,
17107
17109
  GetTrainingJobLogsRequest: tg,
17108
17110
  GetTrainingJobLogsResponse: sg,
17109
- GetTrainingJobRequest: Hu,
17110
- GetTrainingJobResponse: ju,
17111
+ GetTrainingJobRequest: ju,
17112
+ GetTrainingJobResponse: Hu,
17111
17113
  ListSupportedContainersRequest: og,
17112
17114
  ListSupportedContainersResponse: ig,
17113
17115
  ListTrainingJobsRequest: Ku,
@@ -17417,7 +17419,7 @@ const cS = async (t) => {
17417
17419
  /* ScalarType.STRING */
17418
17420
  },
17419
17421
  { no: 6, name: "cid", kind: "scalar", T: 9, opt: !0 },
17420
- { no: 7, name: "default_fragments", kind: "message", T: Ho, opt: !0 }
17422
+ { no: 7, name: "default_fragments", kind: "message", T: jo, opt: !0 }
17421
17423
  ]
17422
17424
  ), vg = /* @__PURE__ */ s.makeMessageType(
17423
17425
  "viam.app.v1.OrganizationMember",
@@ -17520,7 +17522,7 @@ const cS = async (t) => {
17520
17522
  /* ScalarType.BOOL */
17521
17523
  }
17522
17524
  ]
17523
- ), Ho = /* @__PURE__ */ s.makeMessageType(
17525
+ ), jo = /* @__PURE__ */ s.makeMessageType(
17524
17526
  "viam.app.v1.FragmentImportList",
17525
17527
  () => [
17526
17528
  { no: 1, name: "fragments", kind: "message", T: gk, repeated: !0 }
@@ -17539,7 +17541,7 @@ const cS = async (t) => {
17539
17541
  { no: 3, name: "public_namespace", kind: "scalar", T: 9, opt: !0 },
17540
17542
  { no: 4, name: "region", kind: "scalar", T: 9, opt: !0 },
17541
17543
  { no: 5, name: "cid", kind: "scalar", T: 9, opt: !0 },
17542
- { no: 6, name: "default_fragments", kind: "message", T: Ho, opt: !0 }
17544
+ { no: 6, name: "default_fragments", kind: "message", T: jo, opt: !0 }
17543
17545
  ]
17544
17546
  ), bg = /* @__PURE__ */ s.makeMessageType(
17545
17547
  "viam.app.v1.UpdateOrganizationResponse",
@@ -17794,7 +17796,7 @@ const cS = async (t) => {
17794
17796
  /* ScalarType.STRING */
17795
17797
  }
17796
17798
  ]
17797
- ), Hg = /* @__PURE__ */ s.makeMessageType(
17799
+ ), jg = /* @__PURE__ */ s.makeMessageType(
17798
17800
  "viam.app.v1.EnableBillingServiceRequest",
17799
17801
  () => [
17800
17802
  {
@@ -17806,7 +17808,7 @@ const cS = async (t) => {
17806
17808
  },
17807
17809
  { no: 2, name: "billing_address", kind: "message", T: Va }
17808
17810
  ]
17809
- ), jg = /* @__PURE__ */ s.makeMessageType(
17811
+ ), Hg = /* @__PURE__ */ s.makeMessageType(
17810
17812
  "viam.app.v1.EnableBillingServiceResponse",
17811
17813
  []
17812
17814
  ), Kg = /* @__PURE__ */ s.makeMessageType(
@@ -17918,7 +17920,7 @@ const cS = async (t) => {
17918
17920
  /* ScalarType.STRING */
17919
17921
  }
17920
17922
  ]
17921
- ), jo = /* @__PURE__ */ s.makeMessageType(
17923
+ ), Ho = /* @__PURE__ */ s.makeMessageType(
17922
17924
  "viam.app.v1.OrganizationIdentity",
17923
17925
  () => [
17924
17926
  {
@@ -18019,7 +18021,7 @@ const cS = async (t) => {
18019
18021
  /* ScalarType.INT32 */
18020
18022
  },
18021
18023
  { no: 8, name: "config", kind: "message", T: rT },
18022
- { no: 9, name: "primary_org_identity", kind: "message", T: jo, opt: !0 }
18024
+ { no: 9, name: "primary_org_identity", kind: "message", T: Ho, opt: !0 }
18023
18025
  ]
18024
18026
  ), Ko = /* @__PURE__ */ s.makeMessageType(
18025
18027
  "viam.app.v1.SharedSecret",
@@ -18166,7 +18168,7 @@ const cS = async (t) => {
18166
18168
  ), _T = /* @__PURE__ */ s.makeMessageType(
18167
18169
  "viam.app.v1.GetOrganizationsWithAccessToLocationResponse",
18168
18170
  () => [
18169
- { no: 1, name: "organization_identities", kind: "message", T: jo, repeated: !0 }
18171
+ { no: 1, name: "organization_identities", kind: "message", T: Ho, repeated: !0 }
18170
18172
  ]
18171
18173
  ), ST = /* @__PURE__ */ s.makeMessageType(
18172
18174
  "viam.app.v1.ListLocationsRequest",
@@ -18443,7 +18445,7 @@ const cS = async (t) => {
18443
18445
  /* ScalarType.STRING */
18444
18446
  }
18445
18447
  ]
18446
- ), HT = /* @__PURE__ */ s.makeMessageType(
18448
+ ), jT = /* @__PURE__ */ s.makeMessageType(
18447
18449
  "viam.app.v1.TailRobotPartLogsRequest",
18448
18450
  () => [
18449
18451
  {
@@ -18462,7 +18464,7 @@ const cS = async (t) => {
18462
18464
  },
18463
18465
  { no: 3, name: "filter", kind: "scalar", T: 9, opt: !0 }
18464
18466
  ]
18465
- ), jT = /* @__PURE__ */ s.makeMessageType(
18467
+ ), HT = /* @__PURE__ */ s.makeMessageType(
18466
18468
  "viam.app.v1.TailRobotPartLogsResponse",
18467
18469
  () => [
18468
18470
  { no: 1, name: "logs", kind: "message", T: Gn, repeated: !0 }
@@ -18766,7 +18768,7 @@ const cS = async (t) => {
18766
18768
  /* ScalarType.STRING */
18767
18769
  }
18768
18770
  ]
18769
- ), Ha = /* @__PURE__ */ s.makeMessageType(
18771
+ ), ja = /* @__PURE__ */ s.makeMessageType(
18770
18772
  "viam.app.v1.FragmentUsage",
18771
18773
  () => [
18772
18774
  {
@@ -18866,7 +18868,7 @@ const cS = async (t) => {
18866
18868
  "viam.app.v1.ListFragmentsResponse",
18867
18869
  () => [
18868
18870
  { no: 1, name: "fragments", kind: "message", T: We, repeated: !0 },
18869
- { no: 2, name: "fragment_usages", kind: "message", T: Ha, repeated: !0 }
18871
+ { no: 2, name: "fragment_usages", kind: "message", T: ja, repeated: !0 }
18870
18872
  ]
18871
18873
  ), yk = /* @__PURE__ */ s.makeMessageType(
18872
18874
  "viam.app.v1.GetFragmentRequest",
@@ -18891,7 +18893,7 @@ const cS = async (t) => {
18891
18893
  "viam.app.v1.GetFragmentResponse",
18892
18894
  () => [
18893
18895
  { no: 1, name: "fragment", kind: "message", T: We },
18894
- { no: 2, name: "fragment_usage", kind: "message", T: Ha },
18896
+ { no: 2, name: "fragment_usage", kind: "message", T: ja },
18895
18897
  { no: 3, name: "revisions", kind: "message", T: pk, repeated: !0 },
18896
18898
  { no: 4, name: "tags", kind: "message", T: Wa, repeated: !0 }
18897
18899
  ]
@@ -19000,7 +19002,7 @@ const cS = async (t) => {
19000
19002
  ), Ok = /* @__PURE__ */ s.makeMessageType(
19001
19003
  "viam.app.v1.GetFragmentUsageResponse",
19002
19004
  () => [
19003
- { no: 1, name: "version_usages", kind: "message", T: Ha, repeated: !0 }
19005
+ { no: 1, name: "version_usages", kind: "message", T: ja, repeated: !0 }
19004
19006
  ]
19005
19007
  ), wk = /* @__PURE__ */ s.makeMessageType(
19006
19008
  "viam.app.v1.SetFragmentTagRequest",
@@ -19259,12 +19261,12 @@ const cS = async (t) => {
19259
19261
  () => [
19260
19262
  { no: 1, name: "robots", kind: "message", T: yn, repeated: !0 }
19261
19263
  ]
19262
- ), Hk = /* @__PURE__ */ s.makeMessageType(
19264
+ ), jk = /* @__PURE__ */ s.makeMessageType(
19263
19265
  "viam.app.v1.ListRobotsForLocationsResponse",
19264
19266
  () => [
19265
19267
  { no: 1, name: "robots", kind: "message", T: yn, repeated: !0 }
19266
19268
  ]
19267
- ), jk = /* @__PURE__ */ s.makeMessageType(
19269
+ ), Hk = /* @__PURE__ */ s.makeMessageType(
19268
19270
  "viam.app.v1.ListRobotsForOrgResponse",
19269
19271
  () => [
19270
19272
  { no: 1, name: "robots", kind: "message", T: yn, repeated: !0 }
@@ -19649,7 +19651,7 @@ const cS = async (t) => {
19649
19651
  /* ScalarType.BOOL */
19650
19652
  }
19651
19653
  ]
19652
- ), ja = /* @__PURE__ */ s.makeMessageType(
19654
+ ), Ha = /* @__PURE__ */ s.makeMessageType(
19653
19655
  "viam.app.v1.RegistryItem",
19654
19656
  () => [
19655
19657
  {
@@ -19745,7 +19747,7 @@ const cS = async (t) => {
19745
19747
  ), Ny = /* @__PURE__ */ s.makeMessageType(
19746
19748
  "viam.app.v1.GetRegistryItemResponse",
19747
19749
  () => [
19748
- { no: 1, name: "item", kind: "message", T: ja }
19750
+ { no: 1, name: "item", kind: "message", T: Ha }
19749
19751
  ]
19750
19752
  ), Py = /* @__PURE__ */ s.makeMessageType(
19751
19753
  "viam.app.v1.CreateRegistryItemRequest",
@@ -19789,8 +19791,8 @@ const cS = async (t) => {
19789
19791
  },
19790
19792
  { no: 4, name: "visibility", kind: "enum", T: s.getEnumType(kn) },
19791
19793
  { no: 5, name: "url", kind: "scalar", T: 9, opt: !0 },
19792
- { no: 6, name: "update_module_metadata", kind: "message", T: Hy, oneof: "metadata" },
19793
- { no: 7, name: "update_ml_model_metadata", kind: "message", T: jy, oneof: "metadata" },
19794
+ { no: 6, name: "update_module_metadata", kind: "message", T: jy, oneof: "metadata" },
19795
+ { no: 7, name: "update_ml_model_metadata", kind: "message", T: Hy, oneof: "metadata" },
19794
19796
  { no: 8, name: "update_ml_training_metadata", kind: "message", T: Ky, oneof: "metadata" },
19795
19797
  { no: 9, name: "markdown_description", kind: "scalar", T: 9, opt: !0 }
19796
19798
  ]
@@ -19815,7 +19817,7 @@ const cS = async (t) => {
19815
19817
  ), Ly = /* @__PURE__ */ s.makeMessageType(
19816
19818
  "viam.app.v1.ListRegistryItemsResponse",
19817
19819
  () => [
19818
- { no: 1, name: "items", kind: "message", T: ja, repeated: !0 }
19820
+ { no: 1, name: "items", kind: "message", T: Ha, repeated: !0 }
19819
19821
  ]
19820
19822
  ), Gy = /* @__PURE__ */ s.makeMessageType(
19821
19823
  "viam.app.v1.DeleteRegistryItemRequest",
@@ -19852,7 +19854,7 @@ const cS = async (t) => {
19852
19854
  ), Fy = /* @__PURE__ */ s.makeMessageType(
19853
19855
  "viam.app.v1.RenameRegistryItemResponse",
19854
19856
  () => [
19855
- { no: 1, name: "item", kind: "message", T: ja }
19857
+ { no: 1, name: "item", kind: "message", T: Ha }
19856
19858
  ]
19857
19859
  ), Jy = /* @__PURE__ */ s.makeMessageType(
19858
19860
  "viam.app.v1.TransferRegistryItemRequest",
@@ -19987,7 +19989,7 @@ const cS = async (t) => {
19987
19989
  /* ScalarType.STRING */
19988
19990
  }
19989
19991
  ]
19990
- ), Hy = /* @__PURE__ */ s.makeMessageType(
19992
+ ), jy = /* @__PURE__ */ s.makeMessageType(
19991
19993
  "viam.app.v1.UpdateModuleMetadata",
19992
19994
  () => [
19993
19995
  { no: 1, name: "models", kind: "message", T: sn, repeated: !0 },
@@ -20002,7 +20004,7 @@ const cS = async (t) => {
20002
20004
  { no: 4, name: "source_type", kind: "enum", T: s.getEnumType(za), opt: !0 },
20003
20005
  { no: 5, name: "language", kind: "enum", T: s.getEnumType($a), opt: !0 }
20004
20006
  ]
20005
- ), jy = /* @__PURE__ */ s.makeMessageType(
20007
+ ), Hy = /* @__PURE__ */ s.makeMessageType(
20006
20008
  "viam.app.v1.UpdateMLModelMetadata",
20007
20009
  () => [
20008
20010
  { no: 1, name: "model_type", kind: "enum", T: s.getEnumType(en) },
@@ -20801,9 +20803,9 @@ const cS = async (t) => {
20801
20803
  ), Wv = /* @__PURE__ */ s.makeMessageType(
20802
20804
  "viam.app.v1.AppCustomizations",
20803
20805
  () => [
20804
- { no: 1, name: "machine_picker", kind: "message", T: Hv }
20806
+ { no: 1, name: "machine_picker", kind: "message", T: jv }
20805
20807
  ]
20806
- ), Hv = /* @__PURE__ */ s.makeMessageType(
20808
+ ), jv = /* @__PURE__ */ s.makeMessageType(
20807
20809
  "viam.app.v1.MachinePickerCustomizations",
20808
20810
  () => [
20809
20811
  { no: 1, name: "heading", kind: "scalar", T: 9, opt: !0 },
@@ -20884,19 +20886,19 @@ const cS = async (t) => {
20884
20886
  DisableBillingServiceResponse: nT,
20885
20887
  EnableAuthServiceRequest: Cv,
20886
20888
  EnableAuthServiceResponse: Nv,
20887
- EnableBillingServiceRequest: Hg,
20888
- EnableBillingServiceResponse: jg,
20889
+ EnableBillingServiceRequest: jg,
20890
+ EnableBillingServiceResponse: Hg,
20889
20891
  EnabledGrant: Tg,
20890
20892
  Fragment: We,
20891
20893
  FragmentError: uk,
20892
20894
  FragmentErrorType: cg,
20893
20895
  FragmentHistoryEntry: lk,
20894
20896
  FragmentImport: gk,
20895
- FragmentImportList: Ho,
20897
+ FragmentImportList: jo,
20896
20898
  FragmentRevision: pk,
20897
20899
  FragmentSummary: zk,
20898
20900
  FragmentTag: Wa,
20899
- FragmentUsage: Ha,
20901
+ FragmentUsage: ja,
20900
20902
  FragmentVisibility: zn,
20901
20903
  GetAppBrandingRequest: $v,
20902
20904
  GetAppBrandingResponse: Yv,
@@ -20975,9 +20977,9 @@ const cS = async (t) => {
20975
20977
  ListRegistryItemsRequest: qy,
20976
20978
  ListRegistryItemsResponse: Ly,
20977
20979
  ListRobotsForLocationsRequest: Ak,
20978
- ListRobotsForLocationsResponse: Hk,
20980
+ ListRobotsForLocationsResponse: jk,
20979
20981
  ListRobotsForOrgRequest: Uk,
20980
- ListRobotsForOrgResponse: jk,
20982
+ ListRobotsForOrgResponse: Hk,
20981
20983
  ListRobotsRequest: Dk,
20982
20984
  ListRobotsResponse: Wk,
20983
20985
  Location: Vn,
@@ -20990,7 +20992,7 @@ const cS = async (t) => {
20990
20992
  MLModelVersion: My,
20991
20993
  MLTrainingMetadata: wy,
20992
20994
  MLTrainingVersion: Oy,
20993
- MachinePickerCustomizations: Hv,
20995
+ MachinePickerCustomizations: jv,
20994
20996
  MachineSummary: Jk,
20995
20997
  MarkPartAsMainRequest: iy,
20996
20998
  MarkPartAsMainResponse: ry,
@@ -21015,7 +21017,7 @@ const cS = async (t) => {
21015
21017
  OrganizationGetLogoResponse: wv,
21016
21018
  OrganizationGetSupportEmailRequest: sT,
21017
21019
  OrganizationGetSupportEmailResponse: oT,
21018
- OrganizationIdentity: jo,
21020
+ OrganizationIdentity: Ho,
21019
21021
  OrganizationInvite: $n,
21020
21022
  OrganizationMember: vg,
21021
21023
  OrganizationSetLogoRequest: Mv,
@@ -21026,7 +21028,7 @@ const cS = async (t) => {
21026
21028
  PartSummary: Yk,
21027
21029
  ReadOAuthAppRequest: qv,
21028
21030
  ReadOAuthAppResponse: Lv,
21029
- RegistryItem: ja,
21031
+ RegistryItem: Ha,
21030
21032
  RegistryItemStatus: dg,
21031
21033
  RemoveRoleRequest: ky,
21032
21034
  RemoveRoleResponse: yy,
@@ -21052,8 +21054,8 @@ const cS = async (t) => {
21052
21054
  SharedSecret: Ko,
21053
21055
  SharedSecret_State: mT,
21054
21056
  StorageConfig: rT,
21055
- TailRobotPartLogsRequest: HT,
21056
- TailRobotPartLogsResponse: jT,
21057
+ TailRobotPartLogsRequest: jT,
21058
+ TailRobotPartLogsResponse: HT,
21057
21059
  TextOverrides: Vv,
21058
21060
  TransferRegistryItemRequest: Jy,
21059
21061
  TransferRegistryItemResponse: zy,
@@ -21068,9 +21070,9 @@ const cS = async (t) => {
21068
21070
  UpdateLocationMetadataResponse: fT,
21069
21071
  UpdateLocationRequest: uT,
21070
21072
  UpdateLocationResponse: gT,
21071
- UpdateMLModelMetadata: jy,
21073
+ UpdateMLModelMetadata: Hy,
21072
21074
  UpdateMLTrainingMetadata: Ky,
21073
- UpdateModuleMetadata: Hy,
21075
+ UpdateModuleMetadata: jy,
21074
21076
  UpdateModuleRequest: Yy,
21075
21077
  UpdateModuleResponse: Wy,
21076
21078
  UpdateOAuthAppRequest: Gv,
@@ -21317,8 +21319,8 @@ const cS = async (t) => {
21317
21319
  */
21318
21320
  enableBillingService: {
21319
21321
  name: "EnableBillingService",
21320
- I: Hg,
21321
- O: jg,
21322
+ I: jg,
21323
+ O: Hg,
21322
21324
  kind: m.Unary
21323
21325
  },
21324
21326
  /**
@@ -21669,8 +21671,8 @@ const cS = async (t) => {
21669
21671
  */
21670
21672
  tailRobotPartLogs: {
21671
21673
  name: "TailRobotPartLogs",
21672
- I: HT,
21673
- O: jT,
21674
+ I: jT,
21675
+ O: HT,
21674
21676
  kind: m.ServerStreaming
21675
21677
  },
21676
21678
  /**
@@ -21818,7 +21820,7 @@ const cS = async (t) => {
21818
21820
  listRobotsForLocations: {
21819
21821
  name: "ListRobotsForLocations",
21820
21822
  I: Ak,
21821
- O: Hk,
21823
+ O: jk,
21822
21824
  kind: m.Unary
21823
21825
  },
21824
21826
  /**
@@ -21829,7 +21831,7 @@ const cS = async (t) => {
21829
21831
  listRobotsForOrg: {
21830
21832
  name: "ListRobotsForOrg",
21831
21833
  I: Uk,
21832
- O: jk,
21834
+ O: Hk,
21833
21835
  kind: m.Unary
21834
21836
  },
21835
21837
  /**
@@ -22935,17 +22937,23 @@ class lS {
22935
22937
  * @param filter Optional string to filter logs on
22936
22938
  * @param levels Optional array of log levels to return. Defaults to returning
22937
22939
  * all log levels
22940
+ * @param start Optional start time for log retrieval. Only logs created after
22941
+ * this time will be returned.
22942
+ * @param end Optional end time for log retrieval. Only logs created before
22943
+ * this time will be returned.
22938
22944
  * @param pageToken Optional string indicating which page of logs to query.
22939
22945
  * Defaults to the most recent
22940
22946
  * @returns The robot requested logs and the page token for the next page of
22941
22947
  * logs
22942
22948
  */
22943
- async getRobotPartLogs(e, n, a, o = "") {
22949
+ async getRobotPartLogs(e, n, a, o, i, r = "") {
22944
22950
  return this.client.getRobotPartLogs({
22945
22951
  id: e,
22946
22952
  filter: n,
22947
22953
  levels: a,
22948
- pageToken: o
22954
+ pageToken: r,
22955
+ start: o ? _.fromDate(o) : void 0,
22956
+ end: i ? _.fromDate(i) : void 0
22949
22957
  });
22950
22958
  }
22951
22959
  /**
@@ -24116,7 +24124,7 @@ class lS {
24116
24124
  return (await this.client.listMachineSummaries(i)).locationSummaries;
24117
24125
  }
24118
24126
  }
24119
- const jv = /* @__PURE__ */ s.makeEnum(
24127
+ const Hv = /* @__PURE__ */ s.makeEnum(
24120
24128
  "viam.app.v1.PaymentMethodType",
24121
24129
  [
24122
24130
  { no: 0, name: "PAYMENT_METHOD_TYPE_UNSPECIFIED", localName: "UNSPECIFIED" },
@@ -24425,7 +24433,7 @@ const jv = /* @__PURE__ */ s.makeEnum(
24425
24433
  ), mh = /* @__PURE__ */ s.makeMessageType(
24426
24434
  "viam.app.v1.GetOrgBillingInformationResponse",
24427
24435
  () => [
24428
- { no: 1, name: "type", kind: "enum", T: s.getEnumType(jv) },
24436
+ { no: 1, name: "type", kind: "enum", T: s.getEnumType(Hv) },
24429
24437
  {
24430
24438
  no: 2,
24431
24439
  name: "billing_email",
@@ -24685,7 +24693,7 @@ const jv = /* @__PURE__ */ s.makeEnum(
24685
24693
  GetOrgBillingInformationResponse: mh,
24686
24694
  InvoiceSummary: Qv,
24687
24695
  PaymentMethodCard: Zv,
24688
- PaymentMethodType: jv,
24696
+ PaymentMethodType: Hv,
24689
24697
  PaymentMethodUSBankAccount: nh,
24690
24698
  ResourceUsageCosts: oh,
24691
24699
  ResourceUsageCostsBySource: sh,
@@ -25435,7 +25443,7 @@ const kS = {
25435
25443
  addBinaryDataToDatasetByIDs: {
25436
25444
  name: "AddBinaryDataToDatasetByIDs",
25437
25445
  I: Wp,
25438
- O: Hp,
25446
+ O: jp,
25439
25447
  kind: m.Unary
25440
25448
  },
25441
25449
  /**
@@ -25445,7 +25453,7 @@ const kS = {
25445
25453
  */
25446
25454
  removeBinaryDataFromDatasetByIDs: {
25447
25455
  name: "RemoveBinaryDataFromDatasetByIDs",
25448
- I: jp,
25456
+ I: Hp,
25449
25457
  O: Kp,
25450
25458
  kind: m.Unary
25451
25459
  },
@@ -26040,7 +26048,7 @@ const kS = {
26040
26048
  /* ScalarType.STRING */
26041
26049
  }
26042
26050
  ]
26043
- ), HS = {
26051
+ ), jS = {
26044
26052
  typeName: "viam.app.dataset.v1.DatasetService",
26045
26053
  methods: {
26046
26054
  /**
@@ -26133,7 +26141,7 @@ const kS = {
26133
26141
  { no: 1, name: "metadata", kind: "message", T: cn },
26134
26142
  { no: 2, name: "sensor_contents", kind: "message", T: ft, repeated: !0 }
26135
26143
  ]
26136
- ), jS = /* @__PURE__ */ s.makeMessageType(
26144
+ ), HS = /* @__PURE__ */ s.makeMessageType(
26137
26145
  "viam.app.datasync.v1.DataCaptureUploadResponse",
26138
26146
  () => [
26139
26147
  {
@@ -26257,6 +26265,7 @@ const kS = {
26257
26265
  /* ScalarType.STRING */
26258
26266
  },
26259
26267
  { no: 6, name: "type", kind: "enum", T: s.getEnumType(na) },
26268
+ { no: 8, name: "method_parameters", kind: "map", K: 9, V: { kind: "message", T: K } },
26260
26269
  {
26261
26270
  no: 7,
26262
26271
  name: "file_name",
@@ -26264,7 +26273,6 @@ const kS = {
26264
26273
  T: 9
26265
26274
  /* ScalarType.STRING */
26266
26275
  },
26267
- { no: 8, name: "method_parameters", kind: "map", K: 9, V: { kind: "message", T: K } },
26268
26276
  {
26269
26277
  no: 9,
26270
26278
  name: "file_extension",
@@ -26272,6 +26280,8 @@ const kS = {
26272
26280
  T: 9
26273
26281
  /* ScalarType.STRING */
26274
26282
  },
26283
+ { no: 14, name: "file_create_time", kind: "message", T: _ },
26284
+ { no: 15, name: "file_modify_time", kind: "message", T: _ },
26275
26285
  { no: 10, name: "tags", kind: "scalar", T: 9, repeated: !0 },
26276
26286
  { no: 12, name: "dataset_ids", kind: "scalar", T: 9, repeated: !0 },
26277
26287
  {
@@ -26299,7 +26309,7 @@ const kS = {
26299
26309
  dataCaptureUpload: {
26300
26310
  name: "DataCaptureUpload",
26301
26311
  I: vt,
26302
- O: jS,
26312
+ O: HS,
26303
26313
  kind: m.Unary
26304
26314
  },
26305
26315
  /**
@@ -26339,7 +26349,7 @@ class En {
26339
26349
  dataPipelinesClient;
26340
26350
  static UPLOAD_CHUNK_SIZE = 1024 * 64;
26341
26351
  constructor(e) {
26342
- this.dataClient = W(kS, e), this.datasetClient = W(HS, e), this.dataSyncClient = W(eI, e), this.dataPipelinesClient = W(US, e);
26352
+ this.dataClient = W(kS, e), this.datasetClient = W(jS, e), this.dataSyncClient = W(eI, e), this.dataPipelinesClient = W(US, e);
26343
26353
  }
26344
26354
  /**
26345
26355
  * Obtain unified tabular data and metadata from the specified data source.
@@ -27826,8 +27836,8 @@ const nI = {
27826
27836
  */
27827
27837
  getTrainingJob: {
27828
27838
  name: "GetTrainingJob",
27829
- I: Hu,
27830
- O: ju,
27839
+ I: ju,
27840
+ O: Hu,
27831
27841
  kind: m.Unary
27832
27842
  },
27833
27843
  /**
@@ -28449,7 +28459,7 @@ class VI {
28449
28459
  );
28450
28460
  }
28451
28461
  async getKinematics(e = {}, n = this.callOptions) {
28452
- return jr(
28462
+ return Hr(
28453
28463
  this.client.getKinematics,
28454
28464
  this.name,
28455
28465
  p.fromJson(e),
@@ -28780,7 +28790,7 @@ const WI = {
28780
28790
  }
28781
28791
  }
28782
28792
  };
28783
- class HI {
28793
+ class jI {
28784
28794
  client;
28785
28795
  name;
28786
28796
  options;
@@ -28819,7 +28829,7 @@ class HI {
28819
28829
  );
28820
28830
  }
28821
28831
  }
28822
- const { GetPropertiesResponse: jI } = Y1;
28832
+ const { GetPropertiesResponse: HI } = Y1;
28823
28833
  class KI {
28824
28834
  client;
28825
28835
  name;
@@ -28901,7 +28911,7 @@ class KI {
28901
28911
  return this.options.requestLogger?.(a), this.client.getProperties(a, n);
28902
28912
  }
28903
28913
  }
28904
- const { ReadAnalogReaderResponse: XI, PowerMode: QI } = H1;
28914
+ const { ReadAnalogReaderResponse: XI, PowerMode: QI } = j1;
28905
28915
  class ZI {
28906
28916
  client;
28907
28917
  name;
@@ -28911,7 +28921,7 @@ class ZI {
28911
28921
  this.client = e.createServiceClient(Om), this.name = n, this.options = a;
28912
28922
  }
28913
28923
  async setGPIO(e, n, a = {}, o = this.callOptions) {
28914
- const i = new Ht({
28924
+ const i = new jt({
28915
28925
  name: this.name,
28916
28926
  pin: e,
28917
28927
  high: n,
@@ -28920,7 +28930,7 @@ class ZI {
28920
28930
  this.options.requestLogger?.(i), await this.client.setGPIO(i, o);
28921
28931
  }
28922
28932
  async getGPIO(e, n = {}, a = this.callOptions) {
28923
- const o = new jt({
28933
+ const o = new Ht({
28924
28934
  name: this.name,
28925
28935
  pin: e,
28926
28936
  extra: p.fromJson(n)
@@ -29039,13 +29049,13 @@ const ri = /* @__PURE__ */ s.makeMessageType(
29039
29049
  },
29040
29050
  { no: 99, name: "extra", kind: "message", T: p }
29041
29051
  ]
29042
- ), Hh = /* @__PURE__ */ s.makeMessageType(
29052
+ ), jh = /* @__PURE__ */ s.makeMessageType(
29043
29053
  "viam.component.button.v1.PushResponse",
29044
29054
  []
29045
29055
  ), eE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
29046
29056
  __proto__: null,
29047
29057
  PushRequest: ri,
29048
- PushResponse: Hh
29058
+ PushResponse: jh
29049
29059
  }, Symbol.toStringTag, { value: "Module" })), lI = {
29050
29060
  typeName: "viam.component.button.v1.ButtonService",
29051
29061
  methods: {
@@ -29057,7 +29067,7 @@ const ri = /* @__PURE__ */ s.makeMessageType(
29057
29067
  push: {
29058
29068
  name: "Push",
29059
29069
  I: ri,
29060
- O: Hh,
29070
+ O: jh,
29061
29071
  kind: m.Unary
29062
29072
  },
29063
29073
  /**
@@ -29283,7 +29293,7 @@ class tE {
29283
29293
  const {
29284
29294
  GetPropertiesResponse: sE,
29285
29295
  PositionType: TI
29286
- } = j1;
29296
+ } = H1;
29287
29297
  class oE {
29288
29298
  client;
29289
29299
  name;
@@ -29343,7 +29353,7 @@ class iE {
29343
29353
  );
29344
29354
  }
29345
29355
  async getKinematics(e = {}, n = this.callOptions) {
29346
- return jr(
29356
+ return Hr(
29347
29357
  this.client.getKinematics,
29348
29358
  this.name,
29349
29359
  p.fromJson(e),
@@ -29419,7 +29429,7 @@ const {
29419
29429
  Transform: hE,
29420
29430
  Vector3: fE,
29421
29431
  WorldState: RE
29422
- } = Hr, kI = (t) => {
29432
+ } = jr, kI = (t) => {
29423
29433
  const { latitude: e, longitude: n } = t;
29424
29434
  return !(typeof e != "number" || typeof n != "number" || Number.isNaN(e) || Number.isNaN(n));
29425
29435
  };
@@ -29712,7 +29722,7 @@ class OE {
29712
29722
  );
29713
29723
  }
29714
29724
  }
29715
- const jh = {
29725
+ const Hh = {
29716
29726
  typeName: "viam.component.sensor.v1.SensorService",
29717
29727
  methods: {
29718
29728
  /**
@@ -29751,7 +29761,7 @@ const jh = {
29751
29761
  }
29752
29762
  }, wE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
29753
29763
  __proto__: null,
29754
- SensorService: jh
29764
+ SensorService: Hh
29755
29765
  }, Symbol.toStringTag, { value: "Module" }));
29756
29766
  class CE {
29757
29767
  client;
@@ -29759,7 +29769,7 @@ class CE {
29759
29769
  options;
29760
29770
  callOptions = { headers: {} };
29761
29771
  constructor(e, n, a = {}) {
29762
- this.client = e.createServiceClient(jh), this.name = n, this.options = a;
29772
+ this.client = e.createServiceClient(Hh), this.name = n, this.options = a;
29763
29773
  }
29764
29774
  async getReadings(e = {}, n = this.callOptions) {
29765
29775
  const a = new Ze({
@@ -29951,7 +29961,7 @@ class PE extends Xr {
29951
29961
  constructor(e, n = {}) {
29952
29962
  super(), this.client = e.createServiceClient(yI), this.options = n, this.streams = /* @__PURE__ */ new Set(), e.on("track", (a) => {
29953
29963
  this.emit("track", a);
29954
- }), e.on(j.CONNECTED, () => {
29964
+ }), e.on(H.CONNECTED, () => {
29955
29965
  for (const a of this.streams.values())
29956
29966
  this.add(a);
29957
29967
  });
@@ -30432,8 +30442,8 @@ const { Event: xE } = Q1, {
30432
30442
  PseudolinearConstraint: VE,
30433
30443
  ListPlanStatusesResponse: YE,
30434
30444
  MotionConfiguration: WE,
30435
- ObstacleDetector: HE,
30436
- OrientationConstraint: jE,
30445
+ ObstacleDetector: jE,
30446
+ OrientationConstraint: HE,
30437
30447
  PlanState: KE
30438
30448
  } = S_;
30439
30449
  class XE {
@@ -30880,7 +30890,7 @@ class rM {
30880
30890
  const o = [], i = this.client.getPointCloudMap(a, n);
30881
30891
  for await (const r of i)
30882
30892
  o.push(r.pointCloudPcdChunk);
30883
- return Hi(o);
30893
+ return ji(o);
30884
30894
  }
30885
30895
  async getInternalState(e = this.callOptions) {
30886
30896
  const n = new Oo({
@@ -30890,7 +30900,7 @@ class rM {
30890
30900
  const a = [], o = this.client.getInternalState(n, e);
30891
30901
  for await (const i of o)
30892
30902
  a.push(i.internalStateChunk);
30893
- return Hi(a);
30903
+ return ji(a);
30894
30904
  }
30895
30905
  async getProperties(e = this.callOptions) {
30896
30906
  const n = new wo({
@@ -30908,7 +30918,7 @@ class rM {
30908
30918
  );
30909
30919
  }
30910
30920
  }
30911
- const Hi = (t) => {
30921
+ const ji = (t) => {
30912
30922
  const e = t.reduce((o, i) => o + i.length, 0), n = new Uint8Array(e);
30913
30923
  let a = 0;
30914
30924
  for (const o of t)
@@ -31033,7 +31043,7 @@ class dM {
31033
31043
  );
31034
31044
  }
31035
31045
  }
31036
- const { Classification: lM, Detection: pM } = b_, { PointCloudObject: uM } = Hr, mf = (t) => ha.UuidTool.toString([...t]), SI = (t) => new Uint8Array(ha.UuidTool.toBytes(t)), ji = (t) => ({
31046
+ const { Classification: lM, Detection: pM } = b_, { PointCloudObject: uM } = jr, mf = (t) => ha.UuidTool.toString([...t]), SI = (t) => new Uint8Array(ha.UuidTool.toBytes(t)), Hi = (t) => ({
31037
31047
  ...t,
31038
31048
  uuidString: mf(t.uuid)
31039
31049
  });
@@ -31062,7 +31072,7 @@ class gM {
31062
31072
  const i = await this.client.getTransform(o, a);
31063
31073
  if (!i.transform)
31064
31074
  throw new Error("No transform returned from server");
31065
- return ji(i.transform);
31075
+ return Hi(i.transform);
31066
31076
  }
31067
31077
  async *streamTransformChanges(e = {}, n = this.callOptions) {
31068
31078
  const a = new Ju({
@@ -31074,7 +31084,7 @@ class gM {
31074
31084
  for await (const i of o)
31075
31085
  i.transform && (yield {
31076
31086
  ...i,
31077
- transform: ji(i.transform)
31087
+ transform: Hi(i.transform)
31078
31088
  });
31079
31089
  }
31080
31090
  async doCommand(e, n = this.callOptions) {
@@ -31124,16 +31134,16 @@ class kM {
31124
31134
  );
31125
31135
  }
31126
31136
  }
31127
- const yM = "0.63.0";
31137
+ const yM = "0.64.0";
31128
31138
  export {
31129
31139
  XI as AnalogValue,
31130
31140
  VI as ArmClient,
31131
31141
  $I as ArmJointPositions,
31132
31142
  WI as AudioCodec,
31133
31143
  YI as AudioInClient,
31134
- HI as AudioOutClient,
31144
+ jI as AudioOutClient,
31135
31145
  KI as BaseClient,
31136
- jI as BaseProperties,
31146
+ HI as BaseProperties,
31137
31147
  ZI as BoardClient,
31138
31148
  nE as ButtonClient,
31139
31149
  aE as CameraClient,
@@ -31166,7 +31176,7 @@ export {
31166
31176
  $E as LinearConstraint,
31167
31177
  YE as ListPlanStatusesResponse,
31168
31178
  _E as MLModelClient,
31169
- j as MachineConnectionEvent,
31179
+ H as MachineConnectionEvent,
31170
31180
  en as ModelType,
31171
31181
  XE as MotionClient,
31172
31182
  WE as MotionConfiguration,
@@ -31178,9 +31188,9 @@ export {
31178
31188
  eM as NavigationClient,
31179
31189
  nM as NavigationPosition,
31180
31190
  aM as NavigationProperties,
31181
- HE as ObstacleDetector,
31191
+ jE as ObstacleDetector,
31182
31192
  pE as Orientation,
31183
- jE as OrientationConstraint,
31193
+ HE as OrientationConstraint,
31184
31194
  sM as Path,
31185
31195
  uE as PointCloud,
31186
31196
  uM as PointCloudObject,
@@ -31216,10 +31226,10 @@ export {
31216
31226
  V1 as armApi,
31217
31227
  Y1 as baseApi,
31218
31228
  FI as billingApi,
31219
- H1 as boardApi,
31229
+ j1 as boardApi,
31220
31230
  eE as buttonApi,
31221
31231
  GI as cameraApi,
31222
- Hr as commonApi,
31232
+ jr as commonApi,
31223
31233
  cS as createRobotClient,
31224
31234
  zI as createViamClient,
31225
31235
  LI as dataApi,
@@ -31229,7 +31239,7 @@ export {
31229
31239
  qI as discoveryApi,
31230
31240
  A as doCommandFromClient,
31231
31241
  II as enableDebugLogging,
31232
- j1 as encoderApi,
31242
+ H1 as encoderApi,
31233
31243
  OI as gantryApi,
31234
31244
  wI as genericComponentApi,
31235
31245
  TM as genericServiceApi,
@@ -31249,7 +31259,7 @@ export {
31249
31259
  E_ as slamApi,
31250
31260
  NE as streamApi,
31251
31261
  DE as switchApi,
31252
- ji as transformWithUUID,
31262
+ Hi as transformWithUUID,
31253
31263
  yM as version,
31254
31264
  b_ as visionApi
31255
31265
  };