@viamrobotics/sdk 0.67.0 → 0.68.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/api-version.d.ts +1 -1
- package/dist/app/data-client.d.ts +0 -5
- package/dist/gen/app/data/v1/data_pb.d.ts +5 -0
- package/dist/gen/app/v1/end_user_pb.d.ts +7 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.es.js +194 -154
- package/dist/main.umd.js +7 -7
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function L(t, e) {
|
|
2
2
|
if (!t)
|
|
3
3
|
throw new Error(e);
|
|
4
4
|
}
|
|
@@ -24,7 +24,7 @@ function er(t) {
|
|
|
24
24
|
const nr = Symbol("@bufbuild/protobuf/enum-type");
|
|
25
25
|
function ff(t) {
|
|
26
26
|
const e = t[nr];
|
|
27
|
-
return
|
|
27
|
+
return L(e, "missing enum type on enum object"), e;
|
|
28
28
|
}
|
|
29
29
|
function ar(t, e, n, a) {
|
|
30
30
|
t[nr] = tr(e, n.map((o) => ({
|
|
@@ -63,7 +63,7 @@ function Rf(t, e, n) {
|
|
|
63
63
|
function sr(t) {
|
|
64
64
|
return "localName" in t ? t : Object.assign(Object.assign({}, t), { localName: t.name });
|
|
65
65
|
}
|
|
66
|
-
class
|
|
66
|
+
class O {
|
|
67
67
|
/**
|
|
68
68
|
* Compare with a message of the same type.
|
|
69
69
|
* Note that this function disregards extensions and unknown fields.
|
|
@@ -168,7 +168,7 @@ function _f(t, e, n, a) {
|
|
|
168
168
|
t.util.initFields(this), t.util.initPartial(c, this);
|
|
169
169
|
}
|
|
170
170
|
}[i];
|
|
171
|
-
return Object.setPrototypeOf(r.prototype, new
|
|
171
|
+
return Object.setPrototypeOf(r.prototype, new O()), Object.assign(r, {
|
|
172
172
|
runtime: t,
|
|
173
173
|
typeName: e,
|
|
174
174
|
fields: t.util.newFieldList(n),
|
|
@@ -326,7 +326,7 @@ function bf() {
|
|
|
326
326
|
}
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
|
-
const n = (o) =>
|
|
329
|
+
const n = (o) => L(/^-?[0-9]+$/.test(o), `int64 invalid: ${o}`), a = (o) => L(/^[0-9]+$/.test(o), `uint64 invalid: ${o}`);
|
|
330
330
|
return {
|
|
331
331
|
zero: "0",
|
|
332
332
|
supported: !1,
|
|
@@ -872,7 +872,7 @@ function lr(t, e) {
|
|
|
872
872
|
return e.extendee.typeName === n.typeName && !!n.runtime.bin.listUnknownFields(t).find((a) => a.no == e.field.no);
|
|
873
873
|
}
|
|
874
874
|
function dr(t, e) {
|
|
875
|
-
|
|
875
|
+
L(t.extendee.typeName == e.getType().typeName, `extension ${t.typeName} can only be applied to message ${t.extendee.typeName}`);
|
|
876
876
|
}
|
|
877
877
|
function pr(t, e) {
|
|
878
878
|
const n = t.localName;
|
|
@@ -913,7 +913,7 @@ function Si(t, e) {
|
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
915
|
function je(t, e) {
|
|
916
|
-
if (t === null || typeof t != "object" || !Object.getOwnPropertyNames(
|
|
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;
|
|
@@ -1028,7 +1028,7 @@ function ae(t) {
|
|
|
1028
1028
|
function Mi(t, e, n, a, o) {
|
|
1029
1029
|
let i = n.localName;
|
|
1030
1030
|
if (n.repeated) {
|
|
1031
|
-
if (
|
|
1031
|
+
if (L(n.kind != "map"), e === null)
|
|
1032
1032
|
return;
|
|
1033
1033
|
if (!Array.isArray(e))
|
|
1034
1034
|
throw new Error(`cannot decode field ${o.typeName}.${n.name} from JSON: ${ae(e)}`);
|
|
@@ -1225,7 +1225,7 @@ function Gf(t) {
|
|
|
1225
1225
|
}
|
|
1226
1226
|
function bi(t, e, n) {
|
|
1227
1227
|
if (t.kind == "map") {
|
|
1228
|
-
|
|
1228
|
+
L(typeof e == "object" && e != null);
|
|
1229
1229
|
const a = {}, o = Object.entries(e);
|
|
1230
1230
|
switch (t.V.kind) {
|
|
1231
1231
|
case "scalar":
|
|
@@ -1245,7 +1245,7 @@ function bi(t, e, n) {
|
|
|
1245
1245
|
return n.emitDefaultValues || o.length > 0 ? a : void 0;
|
|
1246
1246
|
}
|
|
1247
1247
|
if (t.repeated) {
|
|
1248
|
-
|
|
1248
|
+
L(Array.isArray(e));
|
|
1249
1249
|
const a = [];
|
|
1250
1250
|
switch (t.kind) {
|
|
1251
1251
|
case "scalar":
|
|
@@ -1274,7 +1274,7 @@ function bi(t, e, n) {
|
|
|
1274
1274
|
}
|
|
1275
1275
|
function tt(t, e, n) {
|
|
1276
1276
|
var a;
|
|
1277
|
-
if (
|
|
1277
|
+
if (L(typeof e == "number"), t.typeName == "google.protobuf.NullValue")
|
|
1278
1278
|
return null;
|
|
1279
1279
|
if (n)
|
|
1280
1280
|
return e;
|
|
@@ -1288,22 +1288,22 @@ function Xn(t, e) {
|
|
|
1288
1288
|
case R.SINT32:
|
|
1289
1289
|
case R.FIXED32:
|
|
1290
1290
|
case R.UINT32:
|
|
1291
|
-
return
|
|
1291
|
+
return L(typeof e == "number"), e;
|
|
1292
1292
|
case R.FLOAT:
|
|
1293
1293
|
case R.DOUBLE:
|
|
1294
|
-
return
|
|
1294
|
+
return L(typeof e == "number"), Number.isNaN(e) ? "NaN" : e === Number.POSITIVE_INFINITY ? "Infinity" : e === Number.NEGATIVE_INFINITY ? "-Infinity" : e;
|
|
1295
1295
|
case R.STRING:
|
|
1296
|
-
return
|
|
1296
|
+
return L(typeof e == "string"), e;
|
|
1297
1297
|
case R.BOOL:
|
|
1298
|
-
return
|
|
1298
|
+
return L(typeof e == "boolean"), e;
|
|
1299
1299
|
case R.UINT64:
|
|
1300
1300
|
case R.FIXED64:
|
|
1301
1301
|
case R.INT64:
|
|
1302
1302
|
case R.SFIXED64:
|
|
1303
1303
|
case R.SINT64:
|
|
1304
|
-
return
|
|
1304
|
+
return L(typeof e == "bigint" || typeof e == "string" || typeof e == "number"), e.toString();
|
|
1305
1305
|
case R.BYTES:
|
|
1306
|
-
return
|
|
1306
|
+
return L(e instanceof Uint8Array), It.enc(e);
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
1309
|
const on = Symbol("@bufbuild/protobuf/unknown-fields"), Oi = {
|
|
@@ -1491,14 +1491,14 @@ function ta(t, e) {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
}
|
|
1493
1493
|
function Ni(t, e, n, a) {
|
|
1494
|
-
|
|
1494
|
+
L(e !== void 0);
|
|
1495
1495
|
const o = t.repeated;
|
|
1496
1496
|
switch (t.kind) {
|
|
1497
1497
|
case "scalar":
|
|
1498
1498
|
case "enum":
|
|
1499
1499
|
let i = t.kind == "enum" ? R.INT32 : t.T;
|
|
1500
1500
|
if (o)
|
|
1501
|
-
if (
|
|
1501
|
+
if (L(Array.isArray(e)), t.packed)
|
|
1502
1502
|
$f(n, i, t.no, e);
|
|
1503
1503
|
else
|
|
1504
1504
|
for (const r of e)
|
|
@@ -1508,14 +1508,14 @@ function Ni(t, e, n, a) {
|
|
|
1508
1508
|
break;
|
|
1509
1509
|
case "message":
|
|
1510
1510
|
if (o) {
|
|
1511
|
-
|
|
1511
|
+
L(Array.isArray(e));
|
|
1512
1512
|
for (const r of e)
|
|
1513
1513
|
Pi(n, a, t, r);
|
|
1514
1514
|
} else
|
|
1515
1515
|
Pi(n, a, t, e);
|
|
1516
1516
|
break;
|
|
1517
1517
|
case "map":
|
|
1518
|
-
|
|
1518
|
+
L(typeof e == "object" && e != null);
|
|
1519
1519
|
for (const [r, c] of Object.entries(e))
|
|
1520
1520
|
Vf(n, a, t, r, c);
|
|
1521
1521
|
break;
|
|
@@ -1533,7 +1533,7 @@ function Vf(t, e, n, a, o) {
|
|
|
1533
1533
|
i = Number.parseInt(a);
|
|
1534
1534
|
break;
|
|
1535
1535
|
case R.BOOL:
|
|
1536
|
-
|
|
1536
|
+
L(a == "true" || a == "false"), i = a == "true";
|
|
1537
1537
|
break;
|
|
1538
1538
|
}
|
|
1539
1539
|
switch (In(t, n.K, 1, i), n.V.kind) {
|
|
@@ -1544,7 +1544,7 @@ function Vf(t, e, n, a, o) {
|
|
|
1544
1544
|
In(t, R.INT32, 2, o);
|
|
1545
1545
|
break;
|
|
1546
1546
|
case "message":
|
|
1547
|
-
|
|
1547
|
+
L(o !== void 0), t.tag(2, x.LengthDelimited).bytes(o.toBinary(e));
|
|
1548
1548
|
break;
|
|
1549
1549
|
}
|
|
1550
1550
|
t.join();
|
|
@@ -1554,7 +1554,7 @@ function Pi(t, e, n, a) {
|
|
|
1554
1554
|
n.delimited ? t.tag(n.no, x.StartGroup).raw(o.toBinary(e)).tag(n.no, x.EndGroup) : t.tag(n.no, x.LengthDelimited).bytes(o.toBinary(e));
|
|
1555
1555
|
}
|
|
1556
1556
|
function In(t, e, n, a) {
|
|
1557
|
-
|
|
1557
|
+
L(a !== void 0);
|
|
1558
1558
|
let [o, i] = gr(e);
|
|
1559
1559
|
t.tag(n, o)[i](a);
|
|
1560
1560
|
}
|
|
@@ -1853,7 +1853,7 @@ class Zf {
|
|
|
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 = Hf(e);
|
|
1854
1854
|
}
|
|
1855
1855
|
addField(e) {
|
|
1856
|
-
|
|
1856
|
+
L(e.oneof === this, `field ${e.name} not one of ${this.name}`), this.fields.push(e);
|
|
1857
1857
|
}
|
|
1858
1858
|
findField(e) {
|
|
1859
1859
|
if (!this._lookup) {
|
|
@@ -1955,7 +1955,7 @@ g.util.setEnumType(ne, "google.protobuf.Edition", [
|
|
|
1955
1955
|
{ no: 99999, name: "EDITION_99999_TEST_ONLY" },
|
|
1956
1956
|
{ no: 2147483647, name: "EDITION_MAX" }
|
|
1957
1957
|
]);
|
|
1958
|
-
class Be extends
|
|
1958
|
+
class Be extends O {
|
|
1959
1959
|
constructor(e) {
|
|
1960
1960
|
super(), this.file = [], g.util.initPartial(e, this);
|
|
1961
1961
|
}
|
|
@@ -1977,7 +1977,7 @@ Be.typeName = "google.protobuf.FileDescriptorSet";
|
|
|
1977
1977
|
Be.fields = g.util.newFieldList(() => [
|
|
1978
1978
|
{ no: 1, name: "file", kind: "message", T: te, repeated: !0 }
|
|
1979
1979
|
]);
|
|
1980
|
-
class te extends
|
|
1980
|
+
class te extends O {
|
|
1981
1981
|
constructor(e) {
|
|
1982
1982
|
super(), this.dependency = [], this.publicDependency = [], this.weakDependency = [], this.messageType = [], this.enumType = [], this.service = [], this.extension = [], g.util.initPartial(e, this);
|
|
1983
1983
|
}
|
|
@@ -2011,7 +2011,7 @@ te.fields = g.util.newFieldList(() => [
|
|
|
2011
2011
|
{ no: 12, name: "syntax", kind: "scalar", T: 9, opt: !0 },
|
|
2012
2012
|
{ no: 14, name: "edition", kind: "enum", T: g.getEnumType(ne), opt: !0 }
|
|
2013
2013
|
]);
|
|
2014
|
-
class se extends
|
|
2014
|
+
class se extends O {
|
|
2015
2015
|
constructor(e) {
|
|
2016
2016
|
super(), this.field = [], this.extension = [], this.nestedType = [], this.enumType = [], this.extensionRange = [], this.oneofDecl = [], this.reservedRange = [], this.reservedName = [], g.util.initPartial(e, this);
|
|
2017
2017
|
}
|
|
@@ -2042,7 +2042,7 @@ se.fields = g.util.newFieldList(() => [
|
|
|
2042
2042
|
{ no: 9, name: "reserved_range", kind: "message", T: ge, repeated: !0 },
|
|
2043
2043
|
{ no: 10, name: "reserved_name", kind: "scalar", T: 9, repeated: !0 }
|
|
2044
2044
|
]);
|
|
2045
|
-
class ue extends
|
|
2045
|
+
class ue extends O {
|
|
2046
2046
|
constructor(e) {
|
|
2047
2047
|
super(), g.util.initPartial(e, this);
|
|
2048
2048
|
}
|
|
@@ -2066,7 +2066,7 @@ ue.fields = g.util.newFieldList(() => [
|
|
|
2066
2066
|
{ no: 2, name: "end", kind: "scalar", T: 5, opt: !0 },
|
|
2067
2067
|
{ no: 3, name: "options", kind: "message", T: Te, opt: !0 }
|
|
2068
2068
|
]);
|
|
2069
|
-
class ge extends
|
|
2069
|
+
class ge extends O {
|
|
2070
2070
|
constructor(e) {
|
|
2071
2071
|
super(), g.util.initPartial(e, this);
|
|
2072
2072
|
}
|
|
@@ -2089,7 +2089,7 @@ ge.fields = g.util.newFieldList(() => [
|
|
|
2089
2089
|
{ no: 1, name: "start", kind: "scalar", T: 5, opt: !0 },
|
|
2090
2090
|
{ no: 2, name: "end", kind: "scalar", T: 5, opt: !0 }
|
|
2091
2091
|
]);
|
|
2092
|
-
class Te extends
|
|
2092
|
+
class Te extends O {
|
|
2093
2093
|
constructor(e) {
|
|
2094
2094
|
super(), this.uninterpretedOption = [], this.declaration = [], g.util.initPartial(e, this);
|
|
2095
2095
|
}
|
|
@@ -2122,7 +2122,7 @@ g.util.setEnumType(Mn, "google.protobuf.ExtensionRangeOptions.VerificationState"
|
|
|
2122
2122
|
{ no: 0, name: "DECLARATION" },
|
|
2123
2123
|
{ no: 1, name: "UNVERIFIED" }
|
|
2124
2124
|
]);
|
|
2125
|
-
class ke extends
|
|
2125
|
+
class ke extends O {
|
|
2126
2126
|
constructor(e) {
|
|
2127
2127
|
super(), g.util.initPartial(e, this);
|
|
2128
2128
|
}
|
|
@@ -2148,7 +2148,7 @@ ke.fields = g.util.newFieldList(() => [
|
|
|
2148
2148
|
{ no: 5, name: "reserved", kind: "scalar", T: 8, opt: !0 },
|
|
2149
2149
|
{ no: 6, name: "repeated", kind: "scalar", T: 8, opt: !0 }
|
|
2150
2150
|
]);
|
|
2151
|
-
class ee extends
|
|
2151
|
+
class ee extends O {
|
|
2152
2152
|
constructor(e) {
|
|
2153
2153
|
super(), g.util.initPartial(e, this);
|
|
2154
2154
|
}
|
|
@@ -2213,7 +2213,7 @@ g.util.setEnumType(oa, "google.protobuf.FieldDescriptorProto.Label", [
|
|
|
2213
2213
|
{ no: 3, name: "LABEL_REPEATED" },
|
|
2214
2214
|
{ no: 2, name: "LABEL_REQUIRED" }
|
|
2215
2215
|
]);
|
|
2216
|
-
class ye extends
|
|
2216
|
+
class ye extends O {
|
|
2217
2217
|
constructor(e) {
|
|
2218
2218
|
super(), g.util.initPartial(e, this);
|
|
2219
2219
|
}
|
|
@@ -2236,7 +2236,7 @@ ye.fields = g.util.newFieldList(() => [
|
|
|
2236
2236
|
{ no: 1, name: "name", kind: "scalar", T: 9, opt: !0 },
|
|
2237
2237
|
{ no: 2, name: "options", kind: "message", T: Me, opt: !0 }
|
|
2238
2238
|
]);
|
|
2239
|
-
class oe extends
|
|
2239
|
+
class oe extends O {
|
|
2240
2240
|
constructor(e) {
|
|
2241
2241
|
super(), this.value = [], this.reservedRange = [], this.reservedName = [], g.util.initPartial(e, this);
|
|
2242
2242
|
}
|
|
@@ -2262,7 +2262,7 @@ oe.fields = g.util.newFieldList(() => [
|
|
|
2262
2262
|
{ no: 4, name: "reserved_range", kind: "message", T: ve, repeated: !0 },
|
|
2263
2263
|
{ no: 5, name: "reserved_name", kind: "scalar", T: 9, repeated: !0 }
|
|
2264
2264
|
]);
|
|
2265
|
-
class ve extends
|
|
2265
|
+
class ve extends O {
|
|
2266
2266
|
constructor(e) {
|
|
2267
2267
|
super(), g.util.initPartial(e, this);
|
|
2268
2268
|
}
|
|
@@ -2285,7 +2285,7 @@ ve.fields = g.util.newFieldList(() => [
|
|
|
2285
2285
|
{ no: 1, name: "start", kind: "scalar", T: 5, opt: !0 },
|
|
2286
2286
|
{ no: 2, name: "end", kind: "scalar", T: 5, opt: !0 }
|
|
2287
2287
|
]);
|
|
2288
|
-
class he extends
|
|
2288
|
+
class he extends O {
|
|
2289
2289
|
constructor(e) {
|
|
2290
2290
|
super(), g.util.initPartial(e, this);
|
|
2291
2291
|
}
|
|
@@ -2309,7 +2309,7 @@ he.fields = g.util.newFieldList(() => [
|
|
|
2309
2309
|
{ no: 2, name: "number", kind: "scalar", T: 5, opt: !0 },
|
|
2310
2310
|
{ no: 3, name: "options", kind: "message", T: Oe, opt: !0 }
|
|
2311
2311
|
]);
|
|
2312
|
-
class fe extends
|
|
2312
|
+
class fe extends O {
|
|
2313
2313
|
constructor(e) {
|
|
2314
2314
|
super(), this.method = [], g.util.initPartial(e, this);
|
|
2315
2315
|
}
|
|
@@ -2333,7 +2333,7 @@ fe.fields = g.util.newFieldList(() => [
|
|
|
2333
2333
|
{ no: 2, name: "method", kind: "message", T: Re, repeated: !0 },
|
|
2334
2334
|
{ no: 3, name: "options", kind: "message", T: we, opt: !0 }
|
|
2335
2335
|
]);
|
|
2336
|
-
class Re extends
|
|
2336
|
+
class Re extends O {
|
|
2337
2337
|
constructor(e) {
|
|
2338
2338
|
super(), g.util.initPartial(e, this);
|
|
2339
2339
|
}
|
|
@@ -2360,7 +2360,7 @@ Re.fields = g.util.newFieldList(() => [
|
|
|
2360
2360
|
{ no: 5, name: "client_streaming", kind: "scalar", T: 8, opt: !0, default: !1 },
|
|
2361
2361
|
{ no: 6, name: "server_streaming", kind: "scalar", T: 8, opt: !0, default: !1 }
|
|
2362
2362
|
]);
|
|
2363
|
-
class _e extends
|
|
2363
|
+
class _e extends O {
|
|
2364
2364
|
constructor(e) {
|
|
2365
2365
|
super(), this.uninterpretedOption = [], g.util.initPartial(e, this);
|
|
2366
2366
|
}
|
|
@@ -2411,7 +2411,7 @@ g.util.setEnumType(bn, "google.protobuf.FileOptions.OptimizeMode", [
|
|
|
2411
2411
|
{ no: 2, name: "CODE_SIZE" },
|
|
2412
2412
|
{ no: 3, name: "LITE_RUNTIME" }
|
|
2413
2413
|
]);
|
|
2414
|
-
class Se extends
|
|
2414
|
+
class Se extends O {
|
|
2415
2415
|
constructor(e) {
|
|
2416
2416
|
super(), this.uninterpretedOption = [], g.util.initPartial(e, this);
|
|
2417
2417
|
}
|
|
@@ -2439,7 +2439,7 @@ Se.fields = g.util.newFieldList(() => [
|
|
|
2439
2439
|
{ no: 12, name: "features", kind: "message", T: z, opt: !0 },
|
|
2440
2440
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: $, repeated: !0 }
|
|
2441
2441
|
]);
|
|
2442
|
-
class Ie extends
|
|
2442
|
+
class Ie extends O {
|
|
2443
2443
|
constructor(e) {
|
|
2444
2444
|
super(), this.targets = [], this.editionDefaults = [], this.uninterpretedOption = [], g.util.initPartial(e, this);
|
|
2445
2445
|
}
|
|
@@ -2517,7 +2517,7 @@ g.util.setEnumType(ra, "google.protobuf.FieldOptions.OptionTargetType", [
|
|
|
2517
2517
|
{ no: 8, name: "TARGET_TYPE_SERVICE" },
|
|
2518
2518
|
{ no: 9, name: "TARGET_TYPE_METHOD" }
|
|
2519
2519
|
]);
|
|
2520
|
-
class Ee extends
|
|
2520
|
+
class Ee extends O {
|
|
2521
2521
|
constructor(e) {
|
|
2522
2522
|
super(), g.util.initPartial(e, this);
|
|
2523
2523
|
}
|
|
@@ -2540,7 +2540,7 @@ Ee.fields = g.util.newFieldList(() => [
|
|
|
2540
2540
|
{ no: 3, name: "edition", kind: "enum", T: g.getEnumType(ne), opt: !0 },
|
|
2541
2541
|
{ no: 2, name: "value", kind: "scalar", T: 9, opt: !0 }
|
|
2542
2542
|
]);
|
|
2543
|
-
class ie extends
|
|
2543
|
+
class ie extends O {
|
|
2544
2544
|
constructor(e) {
|
|
2545
2545
|
super(), g.util.initPartial(e, this);
|
|
2546
2546
|
}
|
|
@@ -2565,7 +2565,7 @@ ie.fields = g.util.newFieldList(() => [
|
|
|
2565
2565
|
{ no: 3, name: "deprecation_warning", kind: "scalar", T: 9, opt: !0 },
|
|
2566
2566
|
{ no: 4, name: "edition_removed", kind: "enum", T: g.getEnumType(ne), opt: !0 }
|
|
2567
2567
|
]);
|
|
2568
|
-
class Me extends
|
|
2568
|
+
class Me extends O {
|
|
2569
2569
|
constructor(e) {
|
|
2570
2570
|
super(), this.uninterpretedOption = [], g.util.initPartial(e, this);
|
|
2571
2571
|
}
|
|
@@ -2588,7 +2588,7 @@ Me.fields = g.util.newFieldList(() => [
|
|
|
2588
2588
|
{ no: 1, name: "features", kind: "message", T: z, opt: !0 },
|
|
2589
2589
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: $, repeated: !0 }
|
|
2590
2590
|
]);
|
|
2591
|
-
class be extends
|
|
2591
|
+
class be extends O {
|
|
2592
2592
|
constructor(e) {
|
|
2593
2593
|
super(), this.uninterpretedOption = [], g.util.initPartial(e, this);
|
|
2594
2594
|
}
|
|
@@ -2614,7 +2614,7 @@ be.fields = g.util.newFieldList(() => [
|
|
|
2614
2614
|
{ no: 7, name: "features", kind: "message", T: z, opt: !0 },
|
|
2615
2615
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: $, repeated: !0 }
|
|
2616
2616
|
]);
|
|
2617
|
-
class Oe extends
|
|
2617
|
+
class Oe extends O {
|
|
2618
2618
|
constructor(e) {
|
|
2619
2619
|
super(), this.uninterpretedOption = [], g.util.initPartial(e, this);
|
|
2620
2620
|
}
|
|
@@ -2640,7 +2640,7 @@ Oe.fields = g.util.newFieldList(() => [
|
|
|
2640
2640
|
{ no: 4, name: "feature_support", kind: "message", T: ie, opt: !0 },
|
|
2641
2641
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: $, repeated: !0 }
|
|
2642
2642
|
]);
|
|
2643
|
-
class we extends
|
|
2643
|
+
class we extends O {
|
|
2644
2644
|
constructor(e) {
|
|
2645
2645
|
super(), this.uninterpretedOption = [], g.util.initPartial(e, this);
|
|
2646
2646
|
}
|
|
@@ -2664,7 +2664,7 @@ we.fields = g.util.newFieldList(() => [
|
|
|
2664
2664
|
{ no: 33, name: "deprecated", kind: "scalar", T: 8, opt: !0, default: !1 },
|
|
2665
2665
|
{ no: 999, name: "uninterpreted_option", kind: "message", T: $, repeated: !0 }
|
|
2666
2666
|
]);
|
|
2667
|
-
class re extends
|
|
2667
|
+
class re extends O {
|
|
2668
2668
|
constructor(e) {
|
|
2669
2669
|
super(), this.uninterpretedOption = [], g.util.initPartial(e, this);
|
|
2670
2670
|
}
|
|
@@ -2698,7 +2698,7 @@ g.util.setEnumType(Cn, "google.protobuf.MethodOptions.IdempotencyLevel", [
|
|
|
2698
2698
|
{ no: 1, name: "NO_SIDE_EFFECTS" },
|
|
2699
2699
|
{ no: 2, name: "IDEMPOTENT" }
|
|
2700
2700
|
]);
|
|
2701
|
-
class $ extends
|
|
2701
|
+
class $ extends O {
|
|
2702
2702
|
constructor(e) {
|
|
2703
2703
|
super(), this.name = [], g.util.initPartial(e, this);
|
|
2704
2704
|
}
|
|
@@ -2726,7 +2726,7 @@ $.fields = g.util.newFieldList(() => [
|
|
|
2726
2726
|
{ no: 7, name: "string_value", kind: "scalar", T: 12, opt: !0 },
|
|
2727
2727
|
{ no: 8, name: "aggregate_value", kind: "scalar", T: 9, opt: !0 }
|
|
2728
2728
|
]);
|
|
2729
|
-
class Ce extends
|
|
2729
|
+
class Ce extends O {
|
|
2730
2730
|
constructor(e) {
|
|
2731
2731
|
super(), g.util.initPartial(e, this);
|
|
2732
2732
|
}
|
|
@@ -2749,7 +2749,7 @@ Ce.fields = g.util.newFieldList(() => [
|
|
|
2749
2749
|
{ no: 1, name: "name_part", kind: "scalar", T: 9, req: !0 },
|
|
2750
2750
|
{ no: 2, name: "is_extension", kind: "scalar", T: 8, req: !0 }
|
|
2751
2751
|
]);
|
|
2752
|
-
class z extends
|
|
2752
|
+
class z extends O {
|
|
2753
2753
|
constructor(e) {
|
|
2754
2754
|
super(), g.util.initPartial(e, this);
|
|
2755
2755
|
}
|
|
@@ -2831,7 +2831,7 @@ g.util.setEnumType(ua, "google.protobuf.FeatureSet.JsonFormat", [
|
|
|
2831
2831
|
{ no: 1, name: "ALLOW" },
|
|
2832
2832
|
{ no: 2, name: "LEGACY_BEST_EFFORT" }
|
|
2833
2833
|
]);
|
|
2834
|
-
class Fe extends
|
|
2834
|
+
class Fe extends O {
|
|
2835
2835
|
constructor(e) {
|
|
2836
2836
|
super(), this.defaults = [], g.util.initPartial(e, this);
|
|
2837
2837
|
}
|
|
@@ -2855,7 +2855,7 @@ Fe.fields = g.util.newFieldList(() => [
|
|
|
2855
2855
|
{ no: 4, name: "minimum_edition", kind: "enum", T: g.getEnumType(ne), opt: !0 },
|
|
2856
2856
|
{ no: 5, name: "maximum_edition", kind: "enum", T: g.getEnumType(ne), opt: !0 }
|
|
2857
2857
|
]);
|
|
2858
|
-
class Ne extends
|
|
2858
|
+
class Ne extends O {
|
|
2859
2859
|
constructor(e) {
|
|
2860
2860
|
super(), g.util.initPartial(e, this);
|
|
2861
2861
|
}
|
|
@@ -2879,7 +2879,7 @@ Ne.fields = g.util.newFieldList(() => [
|
|
|
2879
2879
|
{ no: 4, name: "overridable_features", kind: "message", T: z, opt: !0 },
|
|
2880
2880
|
{ no: 5, name: "fixed_features", kind: "message", T: z, opt: !0 }
|
|
2881
2881
|
]);
|
|
2882
|
-
class Pe extends
|
|
2882
|
+
class Pe extends O {
|
|
2883
2883
|
constructor(e) {
|
|
2884
2884
|
super(), this.location = [], g.util.initPartial(e, this);
|
|
2885
2885
|
}
|
|
@@ -2901,7 +2901,7 @@ Pe.typeName = "google.protobuf.SourceCodeInfo";
|
|
|
2901
2901
|
Pe.fields = g.util.newFieldList(() => [
|
|
2902
2902
|
{ no: 1, name: "location", kind: "message", T: De, repeated: !0 }
|
|
2903
2903
|
]);
|
|
2904
|
-
class De extends
|
|
2904
|
+
class De extends O {
|
|
2905
2905
|
constructor(e) {
|
|
2906
2906
|
super(), this.path = [], this.span = [], this.leadingDetachedComments = [], g.util.initPartial(e, this);
|
|
2907
2907
|
}
|
|
@@ -2927,7 +2927,7 @@ De.fields = g.util.newFieldList(() => [
|
|
|
2927
2927
|
{ no: 4, name: "trailing_comments", kind: "scalar", T: 9, opt: !0 },
|
|
2928
2928
|
{ no: 6, name: "leading_detached_comments", kind: "scalar", T: 9, repeated: !0 }
|
|
2929
2929
|
]);
|
|
2930
|
-
class Je extends
|
|
2930
|
+
class Je extends O {
|
|
2931
2931
|
constructor(e) {
|
|
2932
2932
|
super(), this.annotation = [], g.util.initPartial(e, this);
|
|
2933
2933
|
}
|
|
@@ -2949,7 +2949,7 @@ Je.typeName = "google.protobuf.GeneratedCodeInfo";
|
|
|
2949
2949
|
Je.fields = g.util.newFieldList(() => [
|
|
2950
2950
|
{ no: 1, name: "annotation", kind: "message", T: Ae, repeated: !0 }
|
|
2951
2951
|
]);
|
|
2952
|
-
class Ae extends
|
|
2952
|
+
class Ae extends O {
|
|
2953
2953
|
constructor(e) {
|
|
2954
2954
|
super(), this.path = [], g.util.initPartial(e, this);
|
|
2955
2955
|
}
|
|
@@ -2984,7 +2984,7 @@ g.util.setEnumType(ga, "google.protobuf.GeneratedCodeInfo.Annotation.Semantic",
|
|
|
2984
2984
|
{ no: 1, name: "SET" },
|
|
2985
2985
|
{ no: 2, name: "ALIAS" }
|
|
2986
2986
|
]);
|
|
2987
|
-
class _ extends
|
|
2987
|
+
class _ extends O {
|
|
2988
2988
|
constructor(e) {
|
|
2989
2989
|
super(), this.seconds = V.zero, this.nanos = 0, s.util.initPartial(e, this);
|
|
2990
2990
|
}
|
|
@@ -3058,7 +3058,7 @@ _.fields = s.util.newFieldList(() => [
|
|
|
3058
3058
|
/* ScalarType.INT32 */
|
|
3059
3059
|
}
|
|
3060
3060
|
]);
|
|
3061
|
-
class F extends
|
|
3061
|
+
class F extends O {
|
|
3062
3062
|
constructor(e) {
|
|
3063
3063
|
super(), this.seconds = V.zero, this.nanos = 0, s.util.initPartial(e, this);
|
|
3064
3064
|
}
|
|
@@ -3118,7 +3118,7 @@ F.fields = s.util.newFieldList(() => [
|
|
|
3118
3118
|
/* ScalarType.INT32 */
|
|
3119
3119
|
}
|
|
3120
3120
|
]);
|
|
3121
|
-
class j extends
|
|
3121
|
+
class j extends O {
|
|
3122
3122
|
constructor(e) {
|
|
3123
3123
|
super(), this.typeUrl = "", this.value = new Uint8Array(0), s.util.initPartial(e, this);
|
|
3124
3124
|
}
|
|
@@ -3219,7 +3219,7 @@ j.fields = s.util.newFieldList(() => [
|
|
|
3219
3219
|
/* ScalarType.BYTES */
|
|
3220
3220
|
}
|
|
3221
3221
|
]);
|
|
3222
|
-
class Ue extends
|
|
3222
|
+
class Ue extends O {
|
|
3223
3223
|
constructor(e) {
|
|
3224
3224
|
super(), this.paths = [], s.util.initPartial(e, this);
|
|
3225
3225
|
}
|
|
@@ -3296,7 +3296,7 @@ var Nn;
|
|
|
3296
3296
|
s.util.setEnumType(Nn, "google.protobuf.NullValue", [
|
|
3297
3297
|
{ no: 0, name: "NULL_VALUE" }
|
|
3298
3298
|
]);
|
|
3299
|
-
class p extends
|
|
3299
|
+
class p extends O {
|
|
3300
3300
|
constructor(e) {
|
|
3301
3301
|
super(), this.fields = {}, s.util.initPartial(e, this);
|
|
3302
3302
|
}
|
|
@@ -3331,7 +3331,7 @@ p.typeName = "google.protobuf.Struct";
|
|
|
3331
3331
|
p.fields = s.util.newFieldList(() => [
|
|
3332
3332
|
{ no: 1, name: "fields", kind: "map", K: 9, V: { kind: "message", T: X } }
|
|
3333
3333
|
]);
|
|
3334
|
-
class X extends
|
|
3334
|
+
class X extends O {
|
|
3335
3335
|
constructor(e) {
|
|
3336
3336
|
super(), this.kind = { case: void 0 }, s.util.initPartial(e, this);
|
|
3337
3337
|
}
|
|
@@ -3395,7 +3395,7 @@ X.fields = s.util.newFieldList(() => [
|
|
|
3395
3395
|
{ no: 5, name: "struct_value", kind: "message", T: p, oneof: "kind" },
|
|
3396
3396
|
{ no: 6, name: "list_value", kind: "message", T: me, oneof: "kind" }
|
|
3397
3397
|
]);
|
|
3398
|
-
class me extends
|
|
3398
|
+
class me extends O {
|
|
3399
3399
|
constructor(e) {
|
|
3400
3400
|
super(), this.values = [], s.util.initPartial(e, this);
|
|
3401
3401
|
}
|
|
@@ -3586,17 +3586,17 @@ var tR = function(t) {
|
|
|
3586
3586
|
};
|
|
3587
3587
|
}
|
|
3588
3588
|
function c(f, I) {
|
|
3589
|
-
a[f] && (o[f] = function(
|
|
3590
|
-
return new Promise(function(C,
|
|
3591
|
-
i.push([f,
|
|
3589
|
+
a[f] && (o[f] = function(w) {
|
|
3590
|
+
return new Promise(function(C, G) {
|
|
3591
|
+
i.push([f, w, C, G]) > 1 || d(f, w);
|
|
3592
3592
|
});
|
|
3593
3593
|
}, I && (o[f] = I(o[f])));
|
|
3594
3594
|
}
|
|
3595
3595
|
function d(f, I) {
|
|
3596
3596
|
try {
|
|
3597
3597
|
l(a[f](I));
|
|
3598
|
-
} catch (
|
|
3599
|
-
S(i[0][3],
|
|
3598
|
+
} catch (w) {
|
|
3599
|
+
S(i[0][3], w);
|
|
3600
3600
|
}
|
|
3601
3601
|
}
|
|
3602
3602
|
function l(f) {
|
|
@@ -3725,17 +3725,17 @@ var Rr = function(t) {
|
|
|
3725
3725
|
};
|
|
3726
3726
|
}
|
|
3727
3727
|
function c(f, I) {
|
|
3728
|
-
a[f] && (o[f] = function(
|
|
3729
|
-
return new Promise(function(C,
|
|
3730
|
-
i.push([f,
|
|
3728
|
+
a[f] && (o[f] = function(w) {
|
|
3729
|
+
return new Promise(function(C, G) {
|
|
3730
|
+
i.push([f, w, C, G]) > 1 || d(f, w);
|
|
3731
3731
|
});
|
|
3732
3732
|
}, I && (o[f] = I(o[f])));
|
|
3733
3733
|
}
|
|
3734
3734
|
function d(f, I) {
|
|
3735
3735
|
try {
|
|
3736
3736
|
l(a[f](I));
|
|
3737
|
-
} catch (
|
|
3738
|
-
S(i[0][3],
|
|
3737
|
+
} catch (w) {
|
|
3738
|
+
S(i[0][3], w);
|
|
3739
3739
|
}
|
|
3740
3740
|
}
|
|
3741
3741
|
function l(f) {
|
|
@@ -3786,13 +3786,13 @@ function dR(t, e, n) {
|
|
|
3786
3786
|
(l = o?.onHeader) === null || l === void 0 || l.call(o, v.header);
|
|
3787
3787
|
let S, f = 0;
|
|
3788
3788
|
try {
|
|
3789
|
-
for (var I = !0,
|
|
3789
|
+
for (var I = !0, w = Rr(v.message), C; C = await w.next(), i = C.done, !i; I = !0)
|
|
3790
3790
|
d = C.value, I = !1, S = d, f++;
|
|
3791
|
-
} catch (
|
|
3792
|
-
r = { error:
|
|
3791
|
+
} catch (G) {
|
|
3792
|
+
r = { error: G };
|
|
3793
3793
|
} finally {
|
|
3794
3794
|
try {
|
|
3795
|
-
!I && !i && (c =
|
|
3795
|
+
!I && !i && (c = w.return) && await c.call(w);
|
|
3796
3796
|
} finally {
|
|
3797
3797
|
if (r) throw r.error;
|
|
3798
3798
|
}
|
|
@@ -3886,7 +3886,7 @@ function Gi(t) {
|
|
|
3886
3886
|
return e;
|
|
3887
3887
|
}
|
|
3888
3888
|
const TR = "Content-Type", kR = "Grpc-Timeout", pn = "Grpc-Status", Ir = "Grpc-Message", yR = "Grpc-Status-Details-Bin", vR = "X-User-Agent", hR = "X-Grpc-Web", fR = "application/grpc-web+proto", RR = "application/grpc-web+json";
|
|
3889
|
-
let Oa = class _n extends
|
|
3889
|
+
let Oa = class _n extends O {
|
|
3890
3890
|
constructor(e) {
|
|
3891
3891
|
super(), this.code = 0, this.message = "", this.details = [], s.util.initPartial(e, this);
|
|
3892
3892
|
}
|
|
@@ -5027,17 +5027,17 @@ var We = function(t) {
|
|
|
5027
5027
|
};
|
|
5028
5028
|
}
|
|
5029
5029
|
function c(f, I) {
|
|
5030
|
-
a[f] && (o[f] = function(
|
|
5031
|
-
return new Promise(function(C,
|
|
5032
|
-
i.push([f,
|
|
5030
|
+
a[f] && (o[f] = function(w) {
|
|
5031
|
+
return new Promise(function(C, G) {
|
|
5032
|
+
i.push([f, w, C, G]) > 1 || d(f, w);
|
|
5033
5033
|
});
|
|
5034
5034
|
}, I && (o[f] = I(o[f])));
|
|
5035
5035
|
}
|
|
5036
5036
|
function d(f, I) {
|
|
5037
5037
|
try {
|
|
5038
5038
|
l(a[f](I));
|
|
5039
|
-
} catch (
|
|
5040
|
-
S(i[0][3],
|
|
5039
|
+
} catch (w) {
|
|
5040
|
+
S(i[0][3], w);
|
|
5041
5041
|
}
|
|
5042
5042
|
}
|
|
5043
5043
|
function l(f) {
|
|
@@ -5082,9 +5082,9 @@ function I1(t) {
|
|
|
5082
5082
|
},
|
|
5083
5083
|
next: async (f) => {
|
|
5084
5084
|
var I;
|
|
5085
|
-
const C = await ((I = t.fetch) !== null && I !== void 0 ? I : globalThis.fetch)(f.url, Object.assign(Object.assign({}, f.init), { headers: f.header, signal: f.signal, body: Li(0, v(f.message)) })), { headerError:
|
|
5085
|
+
const C = await ((I = t.fetch) !== null && I !== void 0 ? I : globalThis.fetch)(f.url, Object.assign(Object.assign({}, f.init), { headers: f.header, signal: f.signal, body: Li(0, v(f.message)) })), { headerError: G } = Vi(C.status, C.headers);
|
|
5086
5086
|
if (!C.body)
|
|
5087
|
-
throw
|
|
5087
|
+
throw G !== void 0 ? G : "missing response body";
|
|
5088
5088
|
const k = qi(C.body).getReader();
|
|
5089
5089
|
let h, T;
|
|
5090
5090
|
for (; ; ) {
|
|
@@ -5105,7 +5105,7 @@ function I1(t) {
|
|
|
5105
5105
|
T = S(E);
|
|
5106
5106
|
}
|
|
5107
5107
|
if (h === void 0)
|
|
5108
|
-
throw
|
|
5108
|
+
throw G !== void 0 ? G : new N("missing trailer", C.headers.has(pn) ? b.Unimplemented : b.Unknown);
|
|
5109
5109
|
if (Ji(h, C.headers), T === void 0)
|
|
5110
5110
|
throw new N("missing message", h.has(pn) ? b.Unimplemented : b.Unknown);
|
|
5111
5111
|
return {
|
|
@@ -5122,9 +5122,9 @@ function I1(t) {
|
|
|
5122
5122
|
async stream(a, o, i, r, c, d, l) {
|
|
5123
5123
|
var u;
|
|
5124
5124
|
const { serialize: v, parse: S } = lt(o, n, t.jsonOptions, t.binaryOptions);
|
|
5125
|
-
function f(
|
|
5125
|
+
function f(w, C, G, k, h) {
|
|
5126
5126
|
return S1(this, arguments, function* () {
|
|
5127
|
-
const y = qi(
|
|
5127
|
+
const y = qi(w).getReader();
|
|
5128
5128
|
if (C) {
|
|
5129
5129
|
if (!(yield We(y.read())).done)
|
|
5130
5130
|
throw "extra data for trailers-only";
|
|
@@ -5141,7 +5141,7 @@ function I1(t) {
|
|
|
5141
5141
|
throw "extra trailer";
|
|
5142
5142
|
M = !0;
|
|
5143
5143
|
const J = Gi(U);
|
|
5144
|
-
Ji(J, k), J.forEach((Za, et) =>
|
|
5144
|
+
Ji(J, k), J.forEach((Za, et) => G.set(et, Za));
|
|
5145
5145
|
continue;
|
|
5146
5146
|
}
|
|
5147
5147
|
if (M)
|
|
@@ -5152,10 +5152,10 @@ function I1(t) {
|
|
|
5152
5152
|
throw "missing trailer";
|
|
5153
5153
|
});
|
|
5154
5154
|
}
|
|
5155
|
-
async function I(
|
|
5155
|
+
async function I(w) {
|
|
5156
5156
|
if (o.kind != m.ServerStreaming)
|
|
5157
5157
|
throw "The fetch API does not support streaming request bodies";
|
|
5158
|
-
const C = await
|
|
5158
|
+
const C = await w[Symbol.asyncIterator]().next();
|
|
5159
5159
|
if (C.done == !0)
|
|
5160
5160
|
throw "missing request message";
|
|
5161
5161
|
return Li(0, v(C.value));
|
|
@@ -5179,15 +5179,15 @@ function I1(t) {
|
|
|
5179
5179
|
contextValues: l ?? Ta(),
|
|
5180
5180
|
message: d
|
|
5181
5181
|
},
|
|
5182
|
-
next: async (
|
|
5182
|
+
next: async (w) => {
|
|
5183
5183
|
var C;
|
|
5184
|
-
const k = await ((C = t.fetch) !== null && C !== void 0 ? C : globalThis.fetch)(
|
|
5184
|
+
const k = await ((C = t.fetch) !== null && C !== void 0 ? C : globalThis.fetch)(w.url, Object.assign(Object.assign({}, w.init), { headers: w.header, signal: w.signal, body: await I(w.message) })), { foundStatus: h, headerError: T } = Vi(k.status, k.headers);
|
|
5185
5185
|
if (T != null)
|
|
5186
5186
|
throw T;
|
|
5187
5187
|
if (!k.body)
|
|
5188
5188
|
throw "missing response body";
|
|
5189
5189
|
const y = new Headers();
|
|
5190
|
-
return Object.assign(Object.assign({},
|
|
5190
|
+
return Object.assign(Object.assign({}, w), { header: k.headers, trailer: y, message: f(k.body, h, y, k.headers, w.signal) });
|
|
5191
5191
|
}
|
|
5192
5192
|
});
|
|
5193
5193
|
}
|
|
@@ -6305,20 +6305,20 @@ const Dn = (t) => {
|
|
|
6305
6305
|
v || S.terminate(new Error("timed out"));
|
|
6306
6306
|
}, I));
|
|
6307
6307
|
try {
|
|
6308
|
-
const
|
|
6308
|
+
const w = await S.doExchange();
|
|
6309
6309
|
n?.externalAuthAddress !== void 0 && n.externalAuthAddress !== "" || n?.credentials?.type, v = !0;
|
|
6310
|
-
const C = new Headers(n?.extraHeaders ?? {}),
|
|
6310
|
+
const C = new Headers(n?.extraHeaders ?? {}), G = new Ra(
|
|
6311
6311
|
{ baseUrl: e },
|
|
6312
|
-
() =>
|
|
6312
|
+
() => w,
|
|
6313
6313
|
C
|
|
6314
6314
|
);
|
|
6315
6315
|
return {
|
|
6316
|
-
transport: ea(
|
|
6316
|
+
transport: ea(G, e),
|
|
6317
6317
|
peerConnection: l,
|
|
6318
6318
|
dataChannel: u
|
|
6319
6319
|
};
|
|
6320
|
-
} catch (
|
|
6321
|
-
throw console.error("error dialing",
|
|
6320
|
+
} catch (w) {
|
|
6321
|
+
throw console.error("error dialing", w), w;
|
|
6322
6322
|
} finally {
|
|
6323
6323
|
f !== void 0 && (clearTimeout(f), f = void 0), v || (l.close(), u.close());
|
|
6324
6324
|
}
|
|
@@ -6369,7 +6369,7 @@ const Dn = (t) => {
|
|
|
6369
6369
|
"cannot set webrtcOptions.signalingCredentials with webrtcOptions.signalingAccessToken"
|
|
6370
6370
|
);
|
|
6371
6371
|
}
|
|
6372
|
-
}, Y1 = "v0.1.
|
|
6372
|
+
}, Y1 = "v0.1.530", Fr = /* @__PURE__ */ s.makeEnum(
|
|
6373
6373
|
"viam.common.v1.KinematicsFileFormat",
|
|
6374
6374
|
[
|
|
6375
6375
|
{ no: 0, name: "KINEMATICS_FILE_FORMAT_UNSPECIFIED", localName: "UNSPECIFIED" },
|
|
@@ -6797,7 +6797,7 @@ const Dn = (t) => {
|
|
|
6797
6797
|
},
|
|
6798
6798
|
{ no: 3, name: "meshes_by_urdf_filepath", kind: "map", K: 9, V: { kind: "message", T: Na } }
|
|
6799
6799
|
]
|
|
6800
|
-
),
|
|
6800
|
+
), q = /* @__PURE__ */ s.makeMessageType(
|
|
6801
6801
|
"viam.common.v1.GetGeometriesRequest",
|
|
6802
6802
|
() => [
|
|
6803
6803
|
{
|
|
@@ -6963,7 +6963,7 @@ const Dn = (t) => {
|
|
|
6963
6963
|
Geometry: Qe,
|
|
6964
6964
|
Get3DModelsRequest: qt,
|
|
6965
6965
|
Get3DModelsResponse: jr,
|
|
6966
|
-
GetGeometriesRequest:
|
|
6966
|
+
GetGeometriesRequest: q,
|
|
6967
6967
|
GetGeometriesResponse: Y,
|
|
6968
6968
|
GetKinematicsRequest: Ln,
|
|
6969
6969
|
GetKinematicsResponse: Pa,
|
|
@@ -6989,7 +6989,7 @@ const Dn = (t) => {
|
|
|
6989
6989
|
WorldState: Hr,
|
|
6990
6990
|
safety_heartbeat_monitored: Kr
|
|
6991
6991
|
}, Symbol.toStringTag, { value: "Module" })), An = new Headers({
|
|
6992
|
-
viam_client: `typescript;v0.
|
|
6992
|
+
viam_client: `typescript;v0.68.0;${Y1}`
|
|
6993
6993
|
}), A = async function(e, n, a, o = {}, i = {}) {
|
|
6994
6994
|
const r = new P({
|
|
6995
6995
|
name: n,
|
|
@@ -7030,7 +7030,7 @@ const Dn = (t) => {
|
|
|
7030
7030
|
meshesByUrdfFilepath: r.meshesByUrdfFilepath
|
|
7031
7031
|
};
|
|
7032
7032
|
}, Zr = async function(e, n, a = p.fromJson({}), o = {}) {
|
|
7033
|
-
const i = new
|
|
7033
|
+
const i = new q({
|
|
7034
7034
|
name: n,
|
|
7035
7035
|
extra: a
|
|
7036
7036
|
});
|
|
@@ -7344,7 +7344,7 @@ const xt = /* @__PURE__ */ s.makeMessageType(
|
|
|
7344
7344
|
*/
|
|
7345
7345
|
getGeometries: {
|
|
7346
7346
|
name: "GetGeometries",
|
|
7347
|
-
I:
|
|
7347
|
+
I: q,
|
|
7348
7348
|
O: Y,
|
|
7349
7349
|
kind: m.Unary
|
|
7350
7350
|
},
|
|
@@ -7634,7 +7634,7 @@ const xt = /* @__PURE__ */ s.makeMessageType(
|
|
|
7634
7634
|
*/
|
|
7635
7635
|
getGeometries: {
|
|
7636
7636
|
name: "GetGeometries",
|
|
7637
|
-
I:
|
|
7637
|
+
I: q,
|
|
7638
7638
|
O: Y,
|
|
7639
7639
|
kind: m.Unary
|
|
7640
7640
|
},
|
|
@@ -8179,7 +8179,7 @@ const xt = /* @__PURE__ */ s.makeMessageType(
|
|
|
8179
8179
|
*/
|
|
8180
8180
|
getGeometries: {
|
|
8181
8181
|
name: "GetGeometries",
|
|
8182
|
-
I:
|
|
8182
|
+
I: q,
|
|
8183
8183
|
O: Y,
|
|
8184
8184
|
kind: m.Unary
|
|
8185
8185
|
}
|
|
@@ -8322,7 +8322,7 @@ const xt = /* @__PURE__ */ s.makeMessageType(
|
|
|
8322
8322
|
*/
|
|
8323
8323
|
getGeometries: {
|
|
8324
8324
|
name: "GetGeometries",
|
|
8325
|
-
I:
|
|
8325
|
+
I: q,
|
|
8326
8326
|
O: Y,
|
|
8327
8327
|
kind: m.Unary
|
|
8328
8328
|
}
|
|
@@ -8562,7 +8562,7 @@ const xt = /* @__PURE__ */ s.makeMessageType(
|
|
|
8562
8562
|
*/
|
|
8563
8563
|
getGeometries: {
|
|
8564
8564
|
name: "GetGeometries",
|
|
8565
|
-
I:
|
|
8565
|
+
I: q,
|
|
8566
8566
|
O: Y,
|
|
8567
8567
|
kind: m.Unary
|
|
8568
8568
|
}
|
|
@@ -8588,7 +8588,7 @@ const xt = /* @__PURE__ */ s.makeMessageType(
|
|
|
8588
8588
|
*/
|
|
8589
8589
|
getGeometries: {
|
|
8590
8590
|
name: "GetGeometries",
|
|
8591
|
-
I:
|
|
8591
|
+
I: q,
|
|
8592
8592
|
O: Y,
|
|
8593
8593
|
kind: m.Unary
|
|
8594
8594
|
}
|
|
@@ -8784,7 +8784,7 @@ const xt = /* @__PURE__ */ s.makeMessageType(
|
|
|
8784
8784
|
*/
|
|
8785
8785
|
getGeometries: {
|
|
8786
8786
|
name: "GetGeometries",
|
|
8787
|
-
I:
|
|
8787
|
+
I: q,
|
|
8788
8788
|
O: Y,
|
|
8789
8789
|
kind: m.Unary
|
|
8790
8790
|
},
|
|
@@ -8992,7 +8992,7 @@ const xt = /* @__PURE__ */ s.makeMessageType(
|
|
|
8992
8992
|
*/
|
|
8993
8993
|
getGeometries: {
|
|
8994
8994
|
name: "GetGeometries",
|
|
8995
|
-
I:
|
|
8995
|
+
I: q,
|
|
8996
8996
|
O: Y,
|
|
8997
8997
|
kind: m.Unary
|
|
8998
8998
|
}
|
|
@@ -9423,7 +9423,7 @@ const xt = /* @__PURE__ */ s.makeMessageType(
|
|
|
9423
9423
|
*/
|
|
9424
9424
|
getGeometries: {
|
|
9425
9425
|
name: "GetGeometries",
|
|
9426
|
-
I:
|
|
9426
|
+
I: q,
|
|
9427
9427
|
O: Y,
|
|
9428
9428
|
kind: m.Unary
|
|
9429
9429
|
}
|
|
@@ -9735,7 +9735,7 @@ const xt = /* @__PURE__ */ s.makeMessageType(
|
|
|
9735
9735
|
*/
|
|
9736
9736
|
getGeometries: {
|
|
9737
9737
|
name: "GetGeometries",
|
|
9738
|
-
I:
|
|
9738
|
+
I: q,
|
|
9739
9739
|
O: Y,
|
|
9740
9740
|
kind: m.Unary
|
|
9741
9741
|
},
|
|
@@ -10078,7 +10078,7 @@ const xt = /* @__PURE__ */ s.makeMessageType(
|
|
|
10078
10078
|
*/
|
|
10079
10079
|
getGeometries: {
|
|
10080
10080
|
name: "GetGeometries",
|
|
10081
|
-
I:
|
|
10081
|
+
I: q,
|
|
10082
10082
|
O: Y,
|
|
10083
10083
|
kind: m.Unary
|
|
10084
10084
|
}
|
|
@@ -14138,6 +14138,13 @@ const xt = /* @__PURE__ */ s.makeMessageType(
|
|
|
14138
14138
|
kind: "scalar",
|
|
14139
14139
|
T: 9
|
|
14140
14140
|
/* ScalarType.STRING */
|
|
14141
|
+
},
|
|
14142
|
+
{
|
|
14143
|
+
no: 11,
|
|
14144
|
+
name: "file_size_bytes",
|
|
14145
|
+
kind: "scalar",
|
|
14146
|
+
T: 4
|
|
14147
|
+
/* ScalarType.UINT64 */
|
|
14141
14148
|
}
|
|
14142
14149
|
]
|
|
14143
14150
|
), Rp = /* @__PURE__ */ s.makeMessageType(
|
|
@@ -25143,11 +25150,11 @@ var Nh = {}, Ph = {};
|
|
|
25143
25150
|
}
|
|
25144
25151
|
function r(k, h) {
|
|
25145
25152
|
var T = 1;
|
|
25146
|
-
if (k && (T +=
|
|
25153
|
+
if (k && (T += G(k) + 1), h == null)
|
|
25147
25154
|
return T;
|
|
25148
25155
|
switch (h.constructor) {
|
|
25149
25156
|
case String:
|
|
25150
|
-
return T + 4 +
|
|
25157
|
+
return T + 4 + G(h) + 1;
|
|
25151
25158
|
case Number:
|
|
25152
25159
|
return Math.floor(h) === h && h <= 2147483647 && h >= -2147483647 ? T + 4 : T + 8;
|
|
25153
25160
|
case Boolean:
|
|
@@ -25184,7 +25191,7 @@ var Nh = {}, Ph = {};
|
|
|
25184
25191
|
return h[T++] = 0, T;
|
|
25185
25192
|
}
|
|
25186
25193
|
function l(k, h, T) {
|
|
25187
|
-
var y =
|
|
25194
|
+
var y = w(k), M = y.length;
|
|
25188
25195
|
return h.set(y, T), h[T + M++] = 0, M;
|
|
25189
25196
|
}
|
|
25190
25197
|
function u(k, h, T) {
|
|
@@ -25326,7 +25333,7 @@ var Nh = {}, Ph = {};
|
|
|
25326
25333
|
var T = 4294967296, y = k[h++] | k[h++] << 8 | k[h++] << 16 | k[h++] << 24, M = k[h++] | k[h++] << 8 | k[h++] << 16 | k[h] << 24;
|
|
25327
25334
|
return M * T + (y >= 0 ? y : T + y);
|
|
25328
25335
|
}
|
|
25329
|
-
function
|
|
25336
|
+
function w(k) {
|
|
25330
25337
|
k = k.replace(/\r\n/g, `
|
|
25331
25338
|
`);
|
|
25332
25339
|
for (var h = [], T = 0, y = 0, M = k.length; y < M; y++) {
|
|
@@ -25340,7 +25347,7 @@ var Nh = {}, Ph = {};
|
|
|
25340
25347
|
M = k[y], M < 128 ? (h += String.fromCharCode(M), y++) : M > 191 && M < 224 ? (E = k[y + 1], h += String.fromCharCode((M & 31) << 6 | E & 63), y += 2) : (E = k[y + 1], Z = k[y + 2], h += String.fromCharCode((M & 15) << 12 | (E & 63) << 6 | Z & 63), y += 3);
|
|
25341
25348
|
return h;
|
|
25342
25349
|
}
|
|
25343
|
-
function
|
|
25350
|
+
function G(k) {
|
|
25344
25351
|
return encodeURI(k).split(/%..|./).length - 1;
|
|
25345
25352
|
}
|
|
25346
25353
|
}(t.BSON || (t.BSON = {}));
|
|
@@ -27510,8 +27517,8 @@ class En {
|
|
|
27510
27517
|
tags: c
|
|
27511
27518
|
}), l = [];
|
|
27512
27519
|
for (const [S, f] of e.entries()) {
|
|
27513
|
-
const I = new mi(),
|
|
27514
|
-
|
|
27520
|
+
const I = new mi(), w = r[S];
|
|
27521
|
+
w && (I.timeRequested = _.fromDate(w[0]), I.timeReceived = _.fromDate(w[1])), l.push(
|
|
27515
27522
|
new _t({
|
|
27516
27523
|
metadata: I,
|
|
27517
27524
|
data: {
|
|
@@ -27527,36 +27534,69 @@ class En {
|
|
|
27527
27534
|
});
|
|
27528
27535
|
return (await this.dataSyncClient.dataCaptureUpload(u)).fileId;
|
|
27529
27536
|
}
|
|
27530
|
-
|
|
27531
|
-
|
|
27532
|
-
|
|
27533
|
-
|
|
27534
|
-
|
|
27535
|
-
|
|
27536
|
-
|
|
27537
|
+
/**
|
|
27538
|
+
* Uploads the content and metadata for binary data.
|
|
27539
|
+
*
|
|
27540
|
+
* Upload binary data collected on a robot through a specific component (for
|
|
27541
|
+
* example, a motor) along with the relevant metadata to app.viam.com. binary
|
|
27542
|
+
* data can be found under the "Sensors" subtab of the Data tab on
|
|
27543
|
+
* app.viam.com.
|
|
27544
|
+
*
|
|
27545
|
+
* @example
|
|
27546
|
+
*
|
|
27547
|
+
* ```ts
|
|
27548
|
+
* const binaryDataId = await dataClient.binaryDataCaptureUpload(
|
|
27549
|
+
* binaryData,
|
|
27550
|
+
* '123abc45-1234-5678-90ab-cdef12345678',
|
|
27551
|
+
* 'rdk:component:camera',
|
|
27552
|
+
* 'my-camera',
|
|
27553
|
+
* 'ReadImage',
|
|
27554
|
+
* [new Date('2025-03-19'), new Date('2025-03-19')],
|
|
27555
|
+
* { mimeType: 'image/jpeg' }
|
|
27556
|
+
* );
|
|
27557
|
+
* ```
|
|
27558
|
+
*
|
|
27559
|
+
* For more information, see [Data
|
|
27560
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#binarydatacaptureupload).
|
|
27561
|
+
*
|
|
27562
|
+
* @param binaryData The data to be uploaded, represented in bytes
|
|
27563
|
+
* @param partId The part ID of the component used to capture the data
|
|
27564
|
+
* @param componentType The type of the component used to capture the data
|
|
27565
|
+
* (for example, "movementSensor")
|
|
27566
|
+
* @param componentName The name of the component used to capture the data
|
|
27567
|
+
* @param methodName The name of the method used to capture the data.
|
|
27568
|
+
* @param dataRequestTimes Tuple containing `Date` objects denoting the times
|
|
27569
|
+
* this data was requested[0] by the robot and received[1] from the
|
|
27570
|
+
* appropriate sensor.
|
|
27571
|
+
* @param options Optional parameters including `mimeType`, `fileExtension`,
|
|
27572
|
+
* `tags`, and `datasetIds`.
|
|
27573
|
+
* @returns The binary data ID of the uploaded data
|
|
27574
|
+
*/
|
|
27575
|
+
async binaryDataCaptureUpload(e, n, a, o, i, r, c) {
|
|
27576
|
+
const d = new cn({
|
|
27537
27577
|
partId: n,
|
|
27538
27578
|
componentType: a,
|
|
27539
27579
|
componentName: o,
|
|
27540
27580
|
methodName: i,
|
|
27541
27581
|
type: na.BINARY_SENSOR,
|
|
27542
|
-
tags:
|
|
27543
|
-
fileExtension:
|
|
27544
|
-
datasetIds:
|
|
27545
|
-
mimeType:
|
|
27546
|
-
}),
|
|
27582
|
+
tags: c?.tags,
|
|
27583
|
+
fileExtension: c?.fileExtension ?? "",
|
|
27584
|
+
datasetIds: c?.datasetIds,
|
|
27585
|
+
mimeType: c?.mimeType ?? ""
|
|
27586
|
+
}), l = new _t({
|
|
27547
27587
|
metadata: {
|
|
27548
|
-
timeRequested: _.fromDate(
|
|
27549
|
-
timeReceived: _.fromDate(
|
|
27588
|
+
timeRequested: _.fromDate(r[0]),
|
|
27589
|
+
timeReceived: _.fromDate(r[1])
|
|
27550
27590
|
},
|
|
27551
27591
|
data: {
|
|
27552
27592
|
case: "binary",
|
|
27553
27593
|
value: e
|
|
27554
27594
|
}
|
|
27555
|
-
}),
|
|
27556
|
-
metadata:
|
|
27557
|
-
sensorContents: [
|
|
27595
|
+
}), u = new ft({
|
|
27596
|
+
metadata: d,
|
|
27597
|
+
sensorContents: [l]
|
|
27558
27598
|
});
|
|
27559
|
-
return (await this.dataSyncClient.dataCaptureUpload(
|
|
27599
|
+
return (await this.dataSyncClient.dataCaptureUpload(u)).binaryDataId;
|
|
27560
27600
|
}
|
|
27561
27601
|
/**
|
|
27562
27602
|
* Upload arbitrary file data.
|
|
@@ -28783,7 +28823,7 @@ const Kh = /* @__PURE__ */ s.makeMessageType(
|
|
|
28783
28823
|
*/
|
|
28784
28824
|
getGeometries: {
|
|
28785
28825
|
name: "GetGeometries",
|
|
28786
|
-
I:
|
|
28826
|
+
I: q,
|
|
28787
28827
|
O: Y,
|
|
28788
28828
|
kind: m.Unary
|
|
28789
28829
|
}
|
|
@@ -28915,7 +28955,7 @@ const nE = {
|
|
|
28915
28955
|
*/
|
|
28916
28956
|
getGeometries: {
|
|
28917
28957
|
name: "GetGeometries",
|
|
28918
|
-
I:
|
|
28958
|
+
I: q,
|
|
28919
28959
|
O: Y,
|
|
28920
28960
|
kind: m.Unary
|
|
28921
28961
|
}
|
|
@@ -28971,7 +29011,7 @@ class sE {
|
|
|
28971
29011
|
this.client = e.createServiceClient(vm), this.name = n, this.options = a;
|
|
28972
29012
|
}
|
|
28973
29013
|
async getGeometries(e = {}, n = this.callOptions) {
|
|
28974
|
-
const a = new
|
|
29014
|
+
const a = new q({
|
|
28975
29015
|
name: this.name,
|
|
28976
29016
|
extra: p.fromJson(e)
|
|
28977
29017
|
});
|
|
@@ -29336,7 +29376,7 @@ const yI = /* @__PURE__ */ s.makeMessageType(
|
|
|
29336
29376
|
*/
|
|
29337
29377
|
getGeometries: {
|
|
29338
29378
|
name: "GetGeometries",
|
|
29339
|
-
I:
|
|
29379
|
+
I: q,
|
|
29340
29380
|
O: Y,
|
|
29341
29381
|
kind: m.Unary
|
|
29342
29382
|
}
|
|
@@ -29351,7 +29391,7 @@ class lE {
|
|
|
29351
29391
|
this.client = e.createServiceClient(vI), this.name = n, this.options = a;
|
|
29352
29392
|
}
|
|
29353
29393
|
async getGeometries(e = {}, n = this.callOptions) {
|
|
29354
|
-
const a = new
|
|
29394
|
+
const a = new q({
|
|
29355
29395
|
name: this.name,
|
|
29356
29396
|
extra: p.fromJson(e)
|
|
29357
29397
|
});
|
|
@@ -29886,7 +29926,7 @@ const Zh = {
|
|
|
29886
29926
|
*/
|
|
29887
29927
|
getGeometries: {
|
|
29888
29928
|
name: "GetGeometries",
|
|
29889
|
-
I:
|
|
29929
|
+
I: q,
|
|
29890
29930
|
O: Y,
|
|
29891
29931
|
kind: m.Unary
|
|
29892
29932
|
}
|
|
@@ -30384,7 +30424,7 @@ let zE = class {
|
|
|
30384
30424
|
this.client = e.createServiceClient(vs), this.name = n, this.options = a;
|
|
30385
30425
|
}
|
|
30386
30426
|
async getGeometries(e = {}, n = this.callOptions) {
|
|
30387
|
-
const a = new
|
|
30427
|
+
const a = new q({
|
|
30388
30428
|
name: this.name,
|
|
30389
30429
|
extra: p.fromJson(e)
|
|
30390
30430
|
});
|
|
@@ -30450,7 +30490,7 @@ const II = /* @__PURE__ */ s.makeMessageType(
|
|
|
30450
30490
|
*/
|
|
30451
30491
|
getGeometries: {
|
|
30452
30492
|
name: "GetGeometries",
|
|
30453
|
-
I:
|
|
30493
|
+
I: q,
|
|
30454
30494
|
O: Y,
|
|
30455
30495
|
kind: m.Unary
|
|
30456
30496
|
}
|
|
@@ -30465,7 +30505,7 @@ class $E {
|
|
|
30465
30505
|
this.client = e.createServiceClient(MI), this.name = n, this.options = a;
|
|
30466
30506
|
}
|
|
30467
30507
|
async getGeometries(e = {}, n = this.callOptions) {
|
|
30468
|
-
const a = new
|
|
30508
|
+
const a = new q({
|
|
30469
30509
|
name: this.name,
|
|
30470
30510
|
extra: p.fromJson(e)
|
|
30471
30511
|
});
|
|
@@ -30490,7 +30530,7 @@ class YE {
|
|
|
30490
30530
|
this.client = e.createServiceClient(Wm), this.name = n, this.options = a;
|
|
30491
30531
|
}
|
|
30492
30532
|
async getGeometries(e = {}, n = this.callOptions) {
|
|
30493
|
-
const a = new
|
|
30533
|
+
const a = new q({
|
|
30494
30534
|
name: this.name,
|
|
30495
30535
|
extra: p.fromJson(e)
|
|
30496
30536
|
});
|
|
@@ -31389,7 +31429,7 @@ class RM {
|
|
|
31389
31429
|
);
|
|
31390
31430
|
}
|
|
31391
31431
|
}
|
|
31392
|
-
const _M = "0.
|
|
31432
|
+
const _M = "0.68.0";
|
|
31393
31433
|
export {
|
|
31394
31434
|
oE as AnalogValue,
|
|
31395
31435
|
ZI as ArmClient,
|