@viamrobotics/sdk 0.22.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-version.d.ts +1 -1
- package/dist/app/ml-training-client.d.ts +1 -0
- package/dist/gen/app/build/v1/build_pb.d.ts +346 -0
- package/dist/gen/app/build/v1/build_pb_service.d.ts +133 -0
- package/dist/gen/app/data/v1/data_pb.d.ts +72 -0
- package/dist/gen/app/data/v1/data_pb_service.d.ts +19 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +3 -0
- package/dist/gen/app/v1/app_pb.d.ts +42 -0
- package/dist/gen/google/api/client_pb.d.ts +26 -0
- package/dist/main.es.js +547 -109
- package/dist/main.umd.js +7 -7
- package/dist/robot/client.d.ts +1 -0
- package/dist/robot/robot.d.ts +7 -0
- package/dist/services/vision/client.d.ts +5 -1
- package/package.json +2 -2
package/dist/main.es.js
CHANGED
|
@@ -13955,21 +13955,21 @@ var grpcWebClient_umd$1 = { exports: {} };
|
|
|
13955
13955
|
else if (this.position === this.buffer.byteLength)
|
|
13956
13956
|
this.buffer = h, this.position = 0;
|
|
13957
13957
|
else {
|
|
13958
|
-
var S = this.buffer.byteLength - this.position, T = new Uint8Array(S + h.byteLength),
|
|
13959
|
-
T.set(
|
|
13960
|
-
var
|
|
13961
|
-
T.set(
|
|
13958
|
+
var S = this.buffer.byteLength - this.position, T = new Uint8Array(S + h.byteLength), W = y(this.buffer, this.position);
|
|
13959
|
+
T.set(W, 0);
|
|
13960
|
+
var P = new Uint8Array(h);
|
|
13961
|
+
T.set(P, S), this.buffer = T, this.position = 0;
|
|
13962
13962
|
}
|
|
13963
13963
|
for (; ; ) {
|
|
13964
13964
|
if (!d(this.buffer, this.position, 5))
|
|
13965
13965
|
return M;
|
|
13966
|
-
var
|
|
13966
|
+
var C = y(this.buffer, this.position, this.position + 5), _ = new DataView(C.buffer, C.byteOffset, C.byteLength), O = v(_);
|
|
13967
13967
|
if (!d(this.buffer, this.position, 5 + O))
|
|
13968
13968
|
return M;
|
|
13969
|
-
var
|
|
13970
|
-
if (this.position += 5 + O, c(
|
|
13971
|
-
return M.push({ chunkType: o.TRAILERS, trailers: (R =
|
|
13972
|
-
M.push({ chunkType: o.MESSAGE, data:
|
|
13969
|
+
var G = y(this.buffer, this.position + 5, this.position + 5 + O);
|
|
13970
|
+
if (this.position += 5 + O, c(_))
|
|
13971
|
+
return M.push({ chunkType: o.TRAILERS, trailers: (R = G, new r.Metadata(t(R))) }), M;
|
|
13972
|
+
M.push({ chunkType: o.MESSAGE, data: G });
|
|
13973
13973
|
}
|
|
13974
13974
|
}, f;
|
|
13975
13975
|
}();
|
|
@@ -14490,7 +14490,7 @@ var grpcWebClient_umd$1 = { exports: {} };
|
|
|
14490
14490
|
var s, g;
|
|
14491
14491
|
});
|
|
14492
14492
|
})(grpcWebClient_umd$1);
|
|
14493
|
-
var grpcWebClient_umdExports$1 = grpcWebClient_umd$1.exports,
|
|
14493
|
+
var grpcWebClient_umdExports$1 = grpcWebClient_umd$1.exports, X = Object.defineProperty, Z = (n, e, s) => e in n ? X(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s, E = (n, e, s) => (Z(n, typeof e != "symbol" ? e + "" : e, s), s), commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, grpcWebClient_umd = { exports: {} };
|
|
14494
14494
|
(function(n, e) {
|
|
14495
14495
|
(function(s, g) {
|
|
14496
14496
|
n.exports = g();
|
|
@@ -15082,17 +15082,17 @@ var grpcWebClient_umdExports$1 = grpcWebClient_umd$1.exports, q = Object.defineP
|
|
|
15082
15082
|
else {
|
|
15083
15083
|
var M = this.buffer.byteLength - this.position, S = new Uint8Array(M + f.byteLength), T = d(this.buffer, this.position);
|
|
15084
15084
|
S.set(T, 0);
|
|
15085
|
-
var
|
|
15086
|
-
S.set(
|
|
15085
|
+
var W = new Uint8Array(f);
|
|
15086
|
+
S.set(W, M), this.buffer = S, this.position = 0;
|
|
15087
15087
|
}
|
|
15088
15088
|
for (; ; ) {
|
|
15089
15089
|
if (!v(this.buffer, this.position, 5))
|
|
15090
15090
|
return R;
|
|
15091
|
-
var
|
|
15092
|
-
if (!v(this.buffer, this.position, 5 +
|
|
15091
|
+
var P = d(this.buffer, this.position, this.position + 5), C = new DataView(P.buffer, P.byteOffset, P.byteLength), _ = c(C);
|
|
15092
|
+
if (!v(this.buffer, this.position, 5 + _))
|
|
15093
15093
|
return R;
|
|
15094
|
-
var O = d(this.buffer, this.position + 5, this.position + 5 +
|
|
15095
|
-
if (this.position += 5 +
|
|
15094
|
+
var O = d(this.buffer, this.position + 5, this.position + 5 + _);
|
|
15095
|
+
if (this.position += 5 + _, t(C))
|
|
15096
15096
|
return R.push({ chunkType: p.TRAILERS, trailers: (b = O, new l.Metadata(i(b))) }), R;
|
|
15097
15097
|
R.push({ chunkType: p.MESSAGE, data: O });
|
|
15098
15098
|
}
|
|
@@ -21001,9 +21001,9 @@ var status_pb$1 = {}, any_pb$1 = {};
|
|
|
21001
21001
|
};
|
|
21002
21002
|
})(any_pb$1);
|
|
21003
21003
|
(function(n) {
|
|
21004
|
-
var e = googleProtobuf, s = e, g = function() {
|
|
21005
|
-
return this
|
|
21006
|
-
}.call(null), u = any_pb$1;
|
|
21004
|
+
var e = googleProtobuf, s = e, g = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof g < "u" && g || typeof self < "u" && self || function() {
|
|
21005
|
+
return this;
|
|
21006
|
+
}.call(null) || Function("return this")(), u = any_pb$1;
|
|
21007
21007
|
s.object.extend(proto, u), s.exportSymbol("proto.google.rpc.Status", null, g), proto.google.rpc.Status = function(p) {
|
|
21008
21008
|
e.Message.initialize(this, p, 0, -1, proto.google.rpc.Status.repeatedFields_, null);
|
|
21009
21009
|
}, s.inherits(proto.google.rpc.Status, e.Message), s.DEBUG && !COMPILED && (proto.google.rpc.Status.displayName = "proto.google.rpc.Status"), proto.google.rpc.Status.repeatedFields_ = [3], e.Message.GENERATE_TO_OBJECT && (proto.google.rpc.Status.prototype.toObject = function(p) {
|
|
@@ -21094,9 +21094,9 @@ var status_pb$1 = {}, any_pb$1 = {};
|
|
|
21094
21094
|
}, s.object.extend(n, proto.google.rpc);
|
|
21095
21095
|
})(status_pb$1);
|
|
21096
21096
|
(function(n) {
|
|
21097
|
-
var e = googleProtobuf, s = e, g = function() {
|
|
21098
|
-
return this
|
|
21099
|
-
}.call(null), u = duration_pb;
|
|
21097
|
+
var e = googleProtobuf, s = e, g = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof g < "u" && g || typeof self < "u" && self || function() {
|
|
21098
|
+
return this;
|
|
21099
|
+
}.call(null) || Function("return this")(), u = duration_pb;
|
|
21100
21100
|
s.object.extend(proto, u);
|
|
21101
21101
|
var p = status_pb$1;
|
|
21102
21102
|
s.object.extend(proto, p), s.exportSymbol("proto.proto.rpc.webrtc.v1.Metadata", null, g), s.exportSymbol("proto.proto.rpc.webrtc.v1.PacketMessage", null, g), s.exportSymbol("proto.proto.rpc.webrtc.v1.Request", null, g), s.exportSymbol("proto.proto.rpc.webrtc.v1.Request.TypeCase", null, g), s.exportSymbol("proto.proto.rpc.webrtc.v1.RequestHeaders", null, g), s.exportSymbol("proto.proto.rpc.webrtc.v1.RequestMessage", null, g), s.exportSymbol("proto.proto.rpc.webrtc.v1.Response", null, g), s.exportSymbol("proto.proto.rpc.webrtc.v1.Response.TypeCase", null, g), s.exportSymbol("proto.proto.rpc.webrtc.v1.ResponseHeaders", null, g), s.exportSymbol("proto.proto.rpc.webrtc.v1.ResponseMessage", null, g), s.exportSymbol("proto.proto.rpc.webrtc.v1.ResponseTrailers", null, g), s.exportSymbol("proto.proto.rpc.webrtc.v1.Stream", null, g), s.exportSymbol("proto.proto.rpc.webrtc.v1.Strings", null, g), proto.proto.rpc.webrtc.v1.PacketMessage = function(l) {
|
|
@@ -21256,7 +21256,7 @@ var status_pb$1 = {}, any_pb$1 = {};
|
|
|
21256
21256
|
stream: (r = o.getStream()) && proto.proto.rpc.webrtc.v1.Stream.toObject(l, r),
|
|
21257
21257
|
headers: (r = o.getHeaders()) && proto.proto.rpc.webrtc.v1.RequestHeaders.toObject(l, r),
|
|
21258
21258
|
message: (r = o.getMessage()) && proto.proto.rpc.webrtc.v1.RequestMessage.toObject(l, r),
|
|
21259
|
-
rstStream: e.Message.
|
|
21259
|
+
rstStream: (r = e.Message.getBooleanField(o, 4)) == null ? void 0 : r
|
|
21260
21260
|
};
|
|
21261
21261
|
return l && (i.$jspbMessageInstance = o), i;
|
|
21262
21262
|
}), proto.proto.rpc.webrtc.v1.Request.deserializeBinary = function(l) {
|
|
@@ -22128,9 +22128,9 @@ class FailingClientStream {
|
|
|
22128
22128
|
}
|
|
22129
22129
|
var code_pb = {};
|
|
22130
22130
|
(function(n) {
|
|
22131
|
-
var e = googleProtobuf, s = e, g = function() {
|
|
22132
|
-
return this
|
|
22133
|
-
}.call(null);
|
|
22131
|
+
var e = googleProtobuf, s = e, g = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof g < "u" && g || typeof self < "u" && self || function() {
|
|
22132
|
+
return this;
|
|
22133
|
+
}.call(null) || Function("return this")();
|
|
22134
22134
|
s.exportSymbol("proto.google.rpc.Code", null, g), proto.google.rpc.Code = {
|
|
22135
22135
|
OK: 0,
|
|
22136
22136
|
CANCELLED: 1,
|
|
@@ -22153,9 +22153,9 @@ var code_pb = {};
|
|
|
22153
22153
|
})(code_pb);
|
|
22154
22154
|
var auth_pb$1 = {}, annotations_pb = {}, http_pb = {};
|
|
22155
22155
|
(function(n) {
|
|
22156
|
-
var e = googleProtobuf, s = e, g = function() {
|
|
22157
|
-
return this
|
|
22158
|
-
}.call(null);
|
|
22156
|
+
var e = googleProtobuf, s = e, g = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof g < "u" && g || typeof self < "u" && self || function() {
|
|
22157
|
+
return this;
|
|
22158
|
+
}.call(null) || Function("return this")();
|
|
22159
22159
|
s.exportSymbol("proto.google.api.CustomHttpPattern", null, g), s.exportSymbol("proto.google.api.Http", null, g), s.exportSymbol("proto.google.api.HttpRule", null, g), s.exportSymbol("proto.google.api.HttpRule.PatternCase", null, g), proto.google.api.Http = function(u) {
|
|
22160
22160
|
e.Message.initialize(this, u, 0, -1, proto.google.api.Http.repeatedFields_, null);
|
|
22161
22161
|
}, s.inherits(proto.google.api.Http, e.Message), s.DEBUG && !COMPILED && (proto.google.api.Http.displayName = "proto.google.api.Http"), proto.google.api.HttpRule = function(u) {
|
|
@@ -22247,11 +22247,11 @@ var auth_pb$1 = {}, annotations_pb = {}, http_pb = {};
|
|
|
22247
22247
|
}, proto.google.api.HttpRule.toObject = function(u, p) {
|
|
22248
22248
|
var l, o = {
|
|
22249
22249
|
selector: e.Message.getFieldWithDefault(p, 1, ""),
|
|
22250
|
-
get: e.Message.
|
|
22251
|
-
put: e.Message.
|
|
22252
|
-
post: e.Message.
|
|
22253
|
-
pb_delete: e.Message.
|
|
22254
|
-
patch: e.Message.
|
|
22250
|
+
get: (l = e.Message.getField(p, 2)) == null ? void 0 : l,
|
|
22251
|
+
put: (l = e.Message.getField(p, 3)) == null ? void 0 : l,
|
|
22252
|
+
post: (l = e.Message.getField(p, 4)) == null ? void 0 : l,
|
|
22253
|
+
pb_delete: (l = e.Message.getField(p, 5)) == null ? void 0 : l,
|
|
22254
|
+
patch: (l = e.Message.getField(p, 6)) == null ? void 0 : l,
|
|
22255
22255
|
custom: (l = p.getCustom()) && proto.google.api.CustomHttpPattern.toObject(u, l),
|
|
22256
22256
|
body: e.Message.getFieldWithDefault(p, 7, ""),
|
|
22257
22257
|
responseBody: e.Message.getFieldWithDefault(p, 12, ""),
|
|
@@ -26356,9 +26356,9 @@ var descriptor_pb = {};
|
|
|
26356
26356
|
}, s.object.extend(n, proto.google.protobuf);
|
|
26357
26357
|
})(descriptor_pb);
|
|
26358
26358
|
(function(n) {
|
|
26359
|
-
var e = googleProtobuf, s = e, g = function() {
|
|
26360
|
-
return this
|
|
26361
|
-
}.call(null), u = http_pb;
|
|
26359
|
+
var e = googleProtobuf, s = e, g = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof g < "u" && g || typeof self < "u" && self || function() {
|
|
26360
|
+
return this;
|
|
26361
|
+
}.call(null) || Function("return this")(), u = http_pb;
|
|
26362
26362
|
s.object.extend(proto, u);
|
|
26363
26363
|
var p = descriptor_pb;
|
|
26364
26364
|
s.object.extend(proto, p), s.exportSymbol("proto.google.api.http", null, g), proto.google.api.http = new e.ExtensionFieldInfo(
|
|
@@ -26378,9 +26378,9 @@ var descriptor_pb = {};
|
|
|
26378
26378
|
), p.MethodOptions.extensions[72295728] = proto.google.api.http, s.object.extend(n, proto.google.api);
|
|
26379
26379
|
})(annotations_pb);
|
|
26380
26380
|
(function(n) {
|
|
26381
|
-
var e = googleProtobuf, s = e, g = function() {
|
|
26382
|
-
return this
|
|
26383
|
-
}.call(null), u = annotations_pb;
|
|
26381
|
+
var e = googleProtobuf, s = e, g = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof g < "u" && g || typeof self < "u" && self || function() {
|
|
26382
|
+
return this;
|
|
26383
|
+
}.call(null) || Function("return this")(), u = annotations_pb;
|
|
26384
26384
|
s.object.extend(proto, u), s.exportSymbol("proto.proto.rpc.v1.AuthenticateRequest", null, g), s.exportSymbol("proto.proto.rpc.v1.AuthenticateResponse", null, g), s.exportSymbol("proto.proto.rpc.v1.AuthenticateToRequest", null, g), s.exportSymbol("proto.proto.rpc.v1.AuthenticateToResponse", null, g), s.exportSymbol("proto.proto.rpc.v1.Credentials", null, g), proto.proto.rpc.v1.Credentials = function(p) {
|
|
26385
26385
|
e.Message.initialize(this, p, 0, -1, null, null);
|
|
26386
26386
|
}, s.inherits(proto.proto.rpc.v1.Credentials, e.Message), s.DEBUG && !COMPILED && (proto.proto.rpc.v1.Credentials.displayName = "proto.proto.rpc.v1.Credentials"), proto.proto.rpc.v1.AuthenticateRequest = function(p) {
|
|
@@ -26751,9 +26751,9 @@ var ExternalAuthService_1 = ExternalAuthService$1, signaling_pb = {}, timestamp_
|
|
|
26751
26751
|
};
|
|
26752
26752
|
})(timestamp_pb);
|
|
26753
26753
|
(function(n) {
|
|
26754
|
-
var e = googleProtobuf, s = e, g = function() {
|
|
26755
|
-
return this
|
|
26756
|
-
}.call(null), u = annotations_pb;
|
|
26754
|
+
var e = googleProtobuf, s = e, g = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof g < "u" && g || typeof self < "u" && self || function() {
|
|
26755
|
+
return this;
|
|
26756
|
+
}.call(null) || Function("return this")(), u = annotations_pb;
|
|
26757
26757
|
s.object.extend(proto, u);
|
|
26758
26758
|
var p = timestamp_pb;
|
|
26759
26759
|
s.object.extend(proto, p);
|
|
@@ -26803,13 +26803,13 @@ var ExternalAuthService_1 = ExternalAuthService$1, signaling_pb = {}, timestamp_
|
|
|
26803
26803
|
}, s.inherits(proto.proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse, e.Message), s.DEBUG && !COMPILED && (proto.proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse.displayName = "proto.proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse"), e.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.webrtc.v1.ICECandidate.prototype.toObject = function(o) {
|
|
26804
26804
|
return proto.proto.rpc.webrtc.v1.ICECandidate.toObject(o, this);
|
|
26805
26805
|
}, proto.proto.rpc.webrtc.v1.ICECandidate.toObject = function(o, r) {
|
|
26806
|
-
var i = {
|
|
26806
|
+
var i, t = {
|
|
26807
26807
|
candidate: e.Message.getFieldWithDefault(r, 1, ""),
|
|
26808
|
-
sdpMid: e.Message.
|
|
26809
|
-
sdpmLineIndex: e.Message.
|
|
26810
|
-
usernameFragment: e.Message.
|
|
26808
|
+
sdpMid: (i = e.Message.getField(r, 2)) == null ? void 0 : i,
|
|
26809
|
+
sdpmLineIndex: (i = e.Message.getField(r, 3)) == null ? void 0 : i,
|
|
26810
|
+
usernameFragment: (i = e.Message.getField(r, 4)) == null ? void 0 : i
|
|
26811
26811
|
};
|
|
26812
|
-
return o && (
|
|
26812
|
+
return o && (t.$jspbMessageInstance = r), t;
|
|
26813
26813
|
}), proto.proto.rpc.webrtc.v1.ICECandidate.deserializeBinary = function(o) {
|
|
26814
26814
|
var r = new e.BinaryReader(o), i = new proto.proto.rpc.webrtc.v1.ICECandidate();
|
|
26815
26815
|
return proto.proto.rpc.webrtc.v1.ICECandidate.deserializeBinaryFromReader(i, r);
|
|
@@ -27169,7 +27169,7 @@ var ExternalAuthService_1 = ExternalAuthService$1, signaling_pb = {}, timestamp_
|
|
|
27169
27169
|
var i, t = {
|
|
27170
27170
|
uuid: e.Message.getFieldWithDefault(r, 1, ""),
|
|
27171
27171
|
candidate: (i = r.getCandidate()) && proto.proto.rpc.webrtc.v1.ICECandidate.toObject(o, i),
|
|
27172
|
-
done: e.Message.
|
|
27172
|
+
done: (i = e.Message.getBooleanField(r, 3)) == null ? void 0 : i,
|
|
27173
27173
|
error: (i = r.getError()) && l.Status.toObject(o, i)
|
|
27174
27174
|
};
|
|
27175
27175
|
return o && (t.$jspbMessageInstance = r), t;
|
|
@@ -28392,6 +28392,9 @@ async function getOptionalWebRTCConfig(n, e, s) {
|
|
|
28392
28392
|
return;
|
|
28393
28393
|
}
|
|
28394
28394
|
p(o);
|
|
28395
|
+
} else if (t === grpcWebClient_umdExports.grpc.Code.Unimplemented) {
|
|
28396
|
+
p(new signaling_pb.WebRTCConfig());
|
|
28397
|
+
return;
|
|
28395
28398
|
} else
|
|
28396
28399
|
l(c);
|
|
28397
28400
|
}
|
|
@@ -28409,7 +28412,7 @@ async function dialWebRTC$1(n, e, s) {
|
|
|
28409
28412
|
}));
|
|
28410
28413
|
s || (s = {});
|
|
28411
28414
|
let d;
|
|
28412
|
-
s.webrtcOptions ? (d = s.webrtcOptions, d.rtcConfig ? d.rtcConfig.iceServers = [
|
|
28415
|
+
s.webrtcOptions ? (d = JSON.parse(JSON.stringify(s.webrtcOptions)), d.rtcConfig ? d.rtcConfig.iceServers = [
|
|
28413
28416
|
...d.rtcConfig.iceServers || [],
|
|
28414
28417
|
...v
|
|
28415
28418
|
] : d.rtcConfig = { iceServers: v }) : d = {
|
|
@@ -28449,12 +28452,12 @@ async function dialWebRTC$1(n, e, s) {
|
|
|
28449
28452
|
},
|
|
28450
28453
|
host: n,
|
|
28451
28454
|
transport: b,
|
|
28452
|
-
onEnd: (
|
|
28453
|
-
const { status:
|
|
28454
|
-
|
|
28455
|
+
onEnd: (D) => {
|
|
28456
|
+
const { status: I, statusMessage: z, message: L } = D;
|
|
28457
|
+
I === grpcWebClient_umdExports.grpc.Code.OK && L || console.error(z);
|
|
28455
28458
|
}
|
|
28456
28459
|
});
|
|
28457
|
-
},
|
|
28460
|
+
}, W = () => {
|
|
28458
28461
|
if (S)
|
|
28459
28462
|
return;
|
|
28460
28463
|
S = !0;
|
|
@@ -28467,65 +28470,83 @@ async function dialWebRTC$1(n, e, s) {
|
|
|
28467
28470
|
host: n,
|
|
28468
28471
|
transport: b,
|
|
28469
28472
|
onEnd: (F) => {
|
|
28470
|
-
const { status: w, statusMessage:
|
|
28471
|
-
w === grpcWebClient_umdExports.grpc.Code.OK &&
|
|
28473
|
+
const { status: w, statusMessage: D, message: I } = F;
|
|
28474
|
+
w === grpcWebClient_umdExports.grpc.Code.OK && I || console.error(D);
|
|
28472
28475
|
}
|
|
28473
28476
|
});
|
|
28474
28477
|
};
|
|
28475
|
-
let
|
|
28476
|
-
|
|
28477
|
-
}),
|
|
28478
|
+
let P, C = new Promise((B) => {
|
|
28479
|
+
P = B;
|
|
28480
|
+
}), _ = !1;
|
|
28478
28481
|
if (!(d != null && d.disableTrickleICE)) {
|
|
28479
28482
|
const B = await y.createOffer({});
|
|
28480
|
-
let F = !1;
|
|
28481
|
-
y.addEventListener(
|
|
28483
|
+
let F = !1, w = 0, D = 0, I = 0;
|
|
28484
|
+
y.addEventListener("iceconnectionstatechange", () => {
|
|
28485
|
+
if (y.iceConnectionState !== "completed" || w === 0)
|
|
28486
|
+
return;
|
|
28487
|
+
let z = I / w;
|
|
28488
|
+
console.groupCollapsed("Caller update statistics"), console.table({
|
|
28489
|
+
num_updates: w,
|
|
28490
|
+
average_duration: `${z}ms`,
|
|
28491
|
+
max_duration: `${D}ms`
|
|
28492
|
+
}), console.groupEnd();
|
|
28493
|
+
}), y.addEventListener(
|
|
28482
28494
|
"icecandidate",
|
|
28483
|
-
async (
|
|
28484
|
-
if (await
|
|
28495
|
+
async (z) => {
|
|
28496
|
+
if (await C, _)
|
|
28485
28497
|
return;
|
|
28486
|
-
if (
|
|
28487
|
-
F = !0,
|
|
28498
|
+
if (z.candidate === null) {
|
|
28499
|
+
F = !0, W();
|
|
28488
28500
|
return;
|
|
28489
28501
|
}
|
|
28490
|
-
|
|
28491
|
-
|
|
28492
|
-
|
|
28502
|
+
z.candidate.candidate !== null && console.debug(`gathered local ICE ${z.candidate.candidate}`);
|
|
28503
|
+
const L = iceCandidateToProto(z.candidate), N = new signaling_pb.CallUpdateRequest();
|
|
28504
|
+
N.setUuid(M), N.setCandidate(L);
|
|
28505
|
+
const H = /* @__PURE__ */ new Date();
|
|
28506
|
+
grpcWebClient_umdExports.grpc.unary(SignalingService_1.CallUpdate, {
|
|
28507
|
+
request: N,
|
|
28493
28508
|
metadata: {
|
|
28494
28509
|
"rpc-host": e
|
|
28495
28510
|
},
|
|
28496
28511
|
host: n,
|
|
28497
28512
|
transport: b,
|
|
28498
|
-
onEnd: (
|
|
28499
|
-
const { status:
|
|
28500
|
-
|
|
28513
|
+
onEnd: (V) => {
|
|
28514
|
+
const { status: J, statusMessage: K, message: Y } = V;
|
|
28515
|
+
if (J === grpcWebClient_umdExports.grpc.Code.OK && Y) {
|
|
28516
|
+
w++;
|
|
28517
|
+
let $ = (/* @__PURE__ */ new Date()).getTime() - H.getTime();
|
|
28518
|
+
$ > D && (D = $), I += $;
|
|
28519
|
+
return;
|
|
28520
|
+
}
|
|
28521
|
+
_ || F || console.error("error sending candidate", K);
|
|
28501
28522
|
}
|
|
28502
28523
|
});
|
|
28503
28524
|
}
|
|
28504
28525
|
), await y.setLocalDescription(B);
|
|
28505
28526
|
}
|
|
28506
|
-
let O,
|
|
28527
|
+
let O, G = !1;
|
|
28507
28528
|
R.onMessage(async (B) => {
|
|
28508
28529
|
const F = B;
|
|
28509
28530
|
if (F.hasInit()) {
|
|
28510
|
-
if (
|
|
28531
|
+
if (G) {
|
|
28511
28532
|
T("got init stage more than once");
|
|
28512
28533
|
return;
|
|
28513
28534
|
}
|
|
28514
28535
|
const w = F.getInit();
|
|
28515
|
-
|
|
28516
|
-
const
|
|
28536
|
+
G = !0, M = F.getUuid();
|
|
28537
|
+
const D = new RTCSessionDescription(
|
|
28517
28538
|
JSON.parse(atob(w.getSdp()))
|
|
28518
28539
|
);
|
|
28519
28540
|
if (O != null && O.isClosed()) {
|
|
28520
28541
|
T("client channel is closed");
|
|
28521
28542
|
return;
|
|
28522
28543
|
}
|
|
28523
|
-
if (await y.setRemoteDescription(
|
|
28524
|
-
|
|
28544
|
+
if (await y.setRemoteDescription(D), P(!0), d != null && d.disableTrickleICE) {
|
|
28545
|
+
_ = !0, W();
|
|
28525
28546
|
return;
|
|
28526
28547
|
}
|
|
28527
28548
|
} else if (F.hasUpdate()) {
|
|
28528
|
-
if (!
|
|
28549
|
+
if (!G) {
|
|
28529
28550
|
T("got update stage before init stage");
|
|
28530
28551
|
return;
|
|
28531
28552
|
}
|
|
@@ -28533,11 +28554,12 @@ async function dialWebRTC$1(n, e, s) {
|
|
|
28533
28554
|
T(`uuid mismatch; have=${F.getUuid()} want=${M}`);
|
|
28534
28555
|
return;
|
|
28535
28556
|
}
|
|
28536
|
-
const w = F.getUpdate(),
|
|
28557
|
+
const w = F.getUpdate(), D = iceCandidateFromProto(w.getCandidate());
|
|
28558
|
+
D.candidate !== null && console.debug(`received remote ICE ${D.candidate}`);
|
|
28537
28559
|
try {
|
|
28538
|
-
await y.addIceCandidate(
|
|
28539
|
-
} catch (
|
|
28540
|
-
T(JSON.stringify(
|
|
28560
|
+
await y.addIceCandidate(D);
|
|
28561
|
+
} catch (I) {
|
|
28562
|
+
T(JSON.stringify(I));
|
|
28541
28563
|
return;
|
|
28542
28564
|
}
|
|
28543
28565
|
} else {
|
|
@@ -28545,8 +28567,8 @@ async function dialWebRTC$1(n, e, s) {
|
|
|
28545
28567
|
return;
|
|
28546
28568
|
}
|
|
28547
28569
|
});
|
|
28548
|
-
let j,
|
|
28549
|
-
j = B,
|
|
28570
|
+
let j, q, x = new Promise((B, F) => {
|
|
28571
|
+
j = B, q = F;
|
|
28550
28572
|
});
|
|
28551
28573
|
R.onEnd(
|
|
28552
28574
|
(B, F, w) => {
|
|
@@ -28555,25 +28577,25 @@ async function dialWebRTC$1(n, e, s) {
|
|
|
28555
28577
|
return;
|
|
28556
28578
|
}
|
|
28557
28579
|
if (F === "Response closed without headers") {
|
|
28558
|
-
|
|
28580
|
+
q(new ConnectionClosedError("failed to dial"));
|
|
28559
28581
|
return;
|
|
28560
28582
|
}
|
|
28561
28583
|
if (O != null && O.isClosed()) {
|
|
28562
|
-
|
|
28584
|
+
q(
|
|
28563
28585
|
new ConnectionClosedError("client channel is closed")
|
|
28564
28586
|
);
|
|
28565
28587
|
return;
|
|
28566
28588
|
}
|
|
28567
|
-
console.error(F),
|
|
28589
|
+
console.error(F), q(F);
|
|
28568
28590
|
}
|
|
28569
28591
|
), R.start({ "rpc-host": e });
|
|
28570
|
-
const A = new signaling_pb.CallRequest(),
|
|
28592
|
+
const A = new signaling_pb.CallRequest(), U = addSdpFields(
|
|
28571
28593
|
y.localDescription,
|
|
28572
28594
|
(i = s.webrtcOptions) == null ? void 0 : i.additionalSdpFields
|
|
28573
|
-
),
|
|
28574
|
-
return A.setSdp(
|
|
28595
|
+
), k = btoa(JSON.stringify(U));
|
|
28596
|
+
return A.setSdp(k), d && d.disableTrickleICE && A.setDisableTrickle(d.disableTrickleICE), R.send(A), O = new ClientChannel(y, m), s.dialTimeout && setTimeout(() => {
|
|
28575
28597
|
f || O.close();
|
|
28576
|
-
}, s.dialTimeout), O.ready.then(() => j()).catch((B) =>
|
|
28598
|
+
}, s.dialTimeout), O.ready.then(() => j()).catch((B) => q(B)), await x, await O.ready, _ = !0, W(), s != null && s.externalAuthAddress || (t = s?.credentials) != null && t.type, f = !0, {
|
|
28577
28599
|
transportFactory: O.transportFactory(),
|
|
28578
28600
|
peerConnection: y,
|
|
28579
28601
|
dataChannel: m
|
|
@@ -49860,7 +49882,7 @@ class ViamResponseStream extends EventDispatcher {
|
|
|
49860
49882
|
this.listeners = {}, this.stream.cancel();
|
|
49861
49883
|
}
|
|
49862
49884
|
}
|
|
49863
|
-
const apiVersion = "v0.1.
|
|
49885
|
+
const apiVersion = "v0.1.338", promisify = async (n, e) => new Promise((s, g) => {
|
|
49864
49886
|
n(e, new grpcWebClient_umdExports$1.grpc.Metadata(), (u, p) => {
|
|
49865
49887
|
if (u) {
|
|
49866
49888
|
g(u);
|
|
@@ -49930,7 +49952,7 @@ class MetadataTransport {
|
|
|
49930
49952
|
constructor(e, s, g) {
|
|
49931
49953
|
this.transport = e(s), this.metadata = g ?? new grpcWebClient_umdExports$1.grpc.Metadata(), this.metadata.set(
|
|
49932
49954
|
"viam-client",
|
|
49933
|
-
`typescript;v0.
|
|
49955
|
+
`typescript;v0.23.1;${apiVersion}`
|
|
49934
49956
|
);
|
|
49935
49957
|
}
|
|
49936
49958
|
start(e) {
|
|
@@ -50473,6 +50495,11 @@ class RobotClient extends EventDispatcher {
|
|
|
50473
50495
|
this.connectResolve?.(), this.connectResolve = void 0, this.connecting = void 0;
|
|
50474
50496
|
}
|
|
50475
50497
|
}
|
|
50498
|
+
// SESSIONS
|
|
50499
|
+
async getSessions() {
|
|
50500
|
+
const { robotService: e } = this, s = new proto$1.GetSessionsRequest();
|
|
50501
|
+
return (await promisify(e.getSessions.bind(e), s)).getSessionsList().map((u) => u.toObject());
|
|
50502
|
+
}
|
|
50476
50503
|
// OPERATIONS
|
|
50477
50504
|
async getOperations() {
|
|
50478
50505
|
const { robotService: e } = this, s = new proto$1.GetOperationsRequest();
|
|
@@ -51035,7 +51062,7 @@ var data_pb = {};
|
|
|
51035
51062
|
var p = struct_pb;
|
|
51036
51063
|
s.object.extend(proto, p);
|
|
51037
51064
|
var l = timestamp_pb$1;
|
|
51038
|
-
s.object.extend(proto, l), s.exportSymbol("proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.AddBoundingBoxToImageByIDRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.AddBoundingBoxToImageByIDResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByFilterRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByFilterResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByIDsRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByIDsResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.Annotations", null, g), s.exportSymbol("proto.viam.app.data.v1.BinaryData", null, g), s.exportSymbol("proto.viam.app.data.v1.BinaryDataByFilterRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.BinaryDataByFilterResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.BinaryDataByIDsRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.BinaryDataByIDsResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.BinaryID", null, g), s.exportSymbol("proto.viam.app.data.v1.BinaryMetadata", null, g), s.exportSymbol("proto.viam.app.data.v1.BoundingBox", null, g), s.exportSymbol("proto.viam.app.data.v1.BoundingBoxLabelsByFilterRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.BoundingBoxLabelsByFilterResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.CaptureInterval", null, g), s.exportSymbol("proto.viam.app.data.v1.CaptureMetadata", null, g), s.exportSymbol("proto.viam.app.data.v1.ConfigureDatabaseUserRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.ConfigureDatabaseUserResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.DataRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByFilterRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByFilterResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByIDsRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByIDsResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.DeleteTabularDataRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.DeleteTabularDataResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.Filter", null, g), s.exportSymbol("proto.viam.app.data.v1.GetDatabaseConnectionRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.GetDatabaseConnectionResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.Order", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveBinaryDataFromDatasetByIDsRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveBinaryDataFromDatasetByIDsResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByFilterRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByFilterResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByIDsRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByIDsResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.TabularData", null, g), s.exportSymbol("proto.viam.app.data.v1.TabularDataByFilterRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.TabularDataByFilterResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.TabularDataByMQLRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.TabularDataByMQLResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.TabularDataBySQLRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.TabularDataBySQLResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.TagsByFilterRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.TagsByFilterResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.TagsFilter", null, g), s.exportSymbol("proto.viam.app.data.v1.TagsFilterType", null, g), proto.viam.app.data.v1.DataRequest = function(o) {
|
|
51065
|
+
s.object.extend(proto, l), s.exportSymbol("proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.AddBoundingBoxToImageByIDRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.AddBoundingBoxToImageByIDResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByFilterRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByFilterResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByIDsRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByIDsResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.Annotations", null, g), s.exportSymbol("proto.viam.app.data.v1.BinaryData", null, g), s.exportSymbol("proto.viam.app.data.v1.BinaryDataByFilterRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.BinaryDataByFilterResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.BinaryDataByIDsRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.BinaryDataByIDsResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.BinaryID", null, g), s.exportSymbol("proto.viam.app.data.v1.BinaryMetadata", null, g), s.exportSymbol("proto.viam.app.data.v1.BoundingBox", null, g), s.exportSymbol("proto.viam.app.data.v1.BoundingBoxLabelsByFilterRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.BoundingBoxLabelsByFilterResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.CaptureInterval", null, g), s.exportSymbol("proto.viam.app.data.v1.CaptureMetadata", null, g), s.exportSymbol("proto.viam.app.data.v1.ConfigureDatabaseUserRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.ConfigureDatabaseUserResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.DataRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByFilterRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByFilterResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByIDsRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByIDsResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.DeleteTabularDataRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.DeleteTabularDataResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.Filter", null, g), s.exportSymbol("proto.viam.app.data.v1.GetDatabaseConnectionRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.GetDatabaseConnectionResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.Order", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveBinaryDataFromDatasetByIDsRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveBinaryDataFromDatasetByIDsResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByFilterRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByFilterResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByIDsRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByIDsResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.TabularData", null, g), s.exportSymbol("proto.viam.app.data.v1.TabularDataByFilterRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.TabularDataByFilterResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.TabularDataByMQLRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.TabularDataByMQLResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.TabularDataBySQLRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.TabularDataBySQLResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.TagsByFilterRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.TagsByFilterResponse", null, g), s.exportSymbol("proto.viam.app.data.v1.TagsFilter", null, g), s.exportSymbol("proto.viam.app.data.v1.TagsFilterType", null, g), s.exportSymbol("proto.viam.app.data.v1.UpdateBoundingBoxRequest", null, g), s.exportSymbol("proto.viam.app.data.v1.UpdateBoundingBoxResponse", null, g), proto.viam.app.data.v1.DataRequest = function(o) {
|
|
51039
51066
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
51040
51067
|
}, s.inherits(proto.viam.app.data.v1.DataRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.app.data.v1.DataRequest.displayName = "proto.viam.app.data.v1.DataRequest"), proto.viam.app.data.v1.Filter = function(o) {
|
|
51041
51068
|
e.Message.initialize(this, o, 0, -1, proto.viam.app.data.v1.Filter.repeatedFields_, null);
|
|
@@ -51117,7 +51144,11 @@ var data_pb = {};
|
|
|
51117
51144
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
51118
51145
|
}, s.inherits(proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDRequest.displayName = "proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDRequest"), proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDResponse = function(o) {
|
|
51119
51146
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
51120
|
-
}, s.inherits(proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDResponse.displayName = "proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDResponse"), proto.viam.app.data.v1.
|
|
51147
|
+
}, s.inherits(proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDResponse.displayName = "proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDResponse"), proto.viam.app.data.v1.UpdateBoundingBoxRequest = function(o) {
|
|
51148
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
51149
|
+
}, s.inherits(proto.viam.app.data.v1.UpdateBoundingBoxRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.app.data.v1.UpdateBoundingBoxRequest.displayName = "proto.viam.app.data.v1.UpdateBoundingBoxRequest"), proto.viam.app.data.v1.UpdateBoundingBoxResponse = function(o) {
|
|
51150
|
+
e.Message.initialize(this, o, 0, -1, null, null);
|
|
51151
|
+
}, s.inherits(proto.viam.app.data.v1.UpdateBoundingBoxResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.app.data.v1.UpdateBoundingBoxResponse.displayName = "proto.viam.app.data.v1.UpdateBoundingBoxResponse"), proto.viam.app.data.v1.BoundingBoxLabelsByFilterRequest = function(o) {
|
|
51121
51152
|
e.Message.initialize(this, o, 0, -1, null, null);
|
|
51122
51153
|
}, s.inherits(proto.viam.app.data.v1.BoundingBoxLabelsByFilterRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.app.data.v1.BoundingBoxLabelsByFilterRequest.displayName = "proto.viam.app.data.v1.BoundingBoxLabelsByFilterRequest"), proto.viam.app.data.v1.BoundingBoxLabelsByFilterResponse = function(o) {
|
|
51123
51154
|
e.Message.initialize(this, o, 0, -1, proto.viam.app.data.v1.BoundingBoxLabelsByFilterResponse.repeatedFields_, null);
|
|
@@ -54394,6 +54425,206 @@ var data_pb = {};
|
|
|
54394
54425
|
var o = new e.BinaryWriter();
|
|
54395
54426
|
return proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
54396
54427
|
}, proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDResponse.serializeBinaryToWriter = function(o, r) {
|
|
54428
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.toObject = function(o) {
|
|
54429
|
+
return proto.viam.app.data.v1.UpdateBoundingBoxRequest.toObject(o, this);
|
|
54430
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.toObject = function(o, r) {
|
|
54431
|
+
var i, t = {
|
|
54432
|
+
binaryId: (i = r.getBinaryId()) && proto.viam.app.data.v1.BinaryID.toObject(o, i),
|
|
54433
|
+
bboxId: e.Message.getFieldWithDefault(r, 2, ""),
|
|
54434
|
+
label: e.Message.getFieldWithDefault(r, 3, ""),
|
|
54435
|
+
xMinNormalized: e.Message.getFloatingPointFieldWithDefault(r, 4, 0),
|
|
54436
|
+
yMinNormalized: e.Message.getFloatingPointFieldWithDefault(r, 5, 0),
|
|
54437
|
+
xMaxNormalized: e.Message.getFloatingPointFieldWithDefault(r, 6, 0),
|
|
54438
|
+
yMaxNormalized: e.Message.getFloatingPointFieldWithDefault(r, 7, 0)
|
|
54439
|
+
};
|
|
54440
|
+
return o && (t.$jspbMessageInstance = r), t;
|
|
54441
|
+
}), proto.viam.app.data.v1.UpdateBoundingBoxRequest.deserializeBinary = function(o) {
|
|
54442
|
+
var r = new e.BinaryReader(o), i = new proto.viam.app.data.v1.UpdateBoundingBoxRequest();
|
|
54443
|
+
return proto.viam.app.data.v1.UpdateBoundingBoxRequest.deserializeBinaryFromReader(i, r);
|
|
54444
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.deserializeBinaryFromReader = function(o, r) {
|
|
54445
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
54446
|
+
var i = r.getFieldNumber();
|
|
54447
|
+
switch (i) {
|
|
54448
|
+
case 1:
|
|
54449
|
+
var t = new proto.viam.app.data.v1.BinaryID();
|
|
54450
|
+
r.readMessage(t, proto.viam.app.data.v1.BinaryID.deserializeBinaryFromReader), o.setBinaryId(t);
|
|
54451
|
+
break;
|
|
54452
|
+
case 2:
|
|
54453
|
+
var t = (
|
|
54454
|
+
/** @type {string} */
|
|
54455
|
+
r.readString()
|
|
54456
|
+
);
|
|
54457
|
+
o.setBboxId(t);
|
|
54458
|
+
break;
|
|
54459
|
+
case 3:
|
|
54460
|
+
var t = (
|
|
54461
|
+
/** @type {string} */
|
|
54462
|
+
r.readString()
|
|
54463
|
+
);
|
|
54464
|
+
o.setLabel(t);
|
|
54465
|
+
break;
|
|
54466
|
+
case 4:
|
|
54467
|
+
var t = (
|
|
54468
|
+
/** @type {number} */
|
|
54469
|
+
r.readDouble()
|
|
54470
|
+
);
|
|
54471
|
+
o.setXMinNormalized(t);
|
|
54472
|
+
break;
|
|
54473
|
+
case 5:
|
|
54474
|
+
var t = (
|
|
54475
|
+
/** @type {number} */
|
|
54476
|
+
r.readDouble()
|
|
54477
|
+
);
|
|
54478
|
+
o.setYMinNormalized(t);
|
|
54479
|
+
break;
|
|
54480
|
+
case 6:
|
|
54481
|
+
var t = (
|
|
54482
|
+
/** @type {number} */
|
|
54483
|
+
r.readDouble()
|
|
54484
|
+
);
|
|
54485
|
+
o.setXMaxNormalized(t);
|
|
54486
|
+
break;
|
|
54487
|
+
case 7:
|
|
54488
|
+
var t = (
|
|
54489
|
+
/** @type {number} */
|
|
54490
|
+
r.readDouble()
|
|
54491
|
+
);
|
|
54492
|
+
o.setYMaxNormalized(t);
|
|
54493
|
+
break;
|
|
54494
|
+
default:
|
|
54495
|
+
r.skipField();
|
|
54496
|
+
break;
|
|
54497
|
+
}
|
|
54498
|
+
}
|
|
54499
|
+
return o;
|
|
54500
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.serializeBinary = function() {
|
|
54501
|
+
var o = new e.BinaryWriter();
|
|
54502
|
+
return proto.viam.app.data.v1.UpdateBoundingBoxRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
54503
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.serializeBinaryToWriter = function(o, r) {
|
|
54504
|
+
var i = void 0;
|
|
54505
|
+
i = o.getBinaryId(), i != null && r.writeMessage(
|
|
54506
|
+
1,
|
|
54507
|
+
i,
|
|
54508
|
+
proto.viam.app.data.v1.BinaryID.serializeBinaryToWriter
|
|
54509
|
+
), i = o.getBboxId(), i.length > 0 && r.writeString(
|
|
54510
|
+
2,
|
|
54511
|
+
i
|
|
54512
|
+
), i = /** @type {string} */
|
|
54513
|
+
e.Message.getField(o, 3), i != null && r.writeString(
|
|
54514
|
+
3,
|
|
54515
|
+
i
|
|
54516
|
+
), i = /** @type {number} */
|
|
54517
|
+
e.Message.getField(o, 4), i != null && r.writeDouble(
|
|
54518
|
+
4,
|
|
54519
|
+
i
|
|
54520
|
+
), i = /** @type {number} */
|
|
54521
|
+
e.Message.getField(o, 5), i != null && r.writeDouble(
|
|
54522
|
+
5,
|
|
54523
|
+
i
|
|
54524
|
+
), i = /** @type {number} */
|
|
54525
|
+
e.Message.getField(o, 6), i != null && r.writeDouble(
|
|
54526
|
+
6,
|
|
54527
|
+
i
|
|
54528
|
+
), i = /** @type {number} */
|
|
54529
|
+
e.Message.getField(o, 7), i != null && r.writeDouble(
|
|
54530
|
+
7,
|
|
54531
|
+
i
|
|
54532
|
+
);
|
|
54533
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.getBinaryId = function() {
|
|
54534
|
+
return (
|
|
54535
|
+
/** @type{?proto.viam.app.data.v1.BinaryID} */
|
|
54536
|
+
e.Message.getWrapperField(this, proto.viam.app.data.v1.BinaryID, 1)
|
|
54537
|
+
);
|
|
54538
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.setBinaryId = function(o) {
|
|
54539
|
+
return e.Message.setWrapperField(this, 1, o);
|
|
54540
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.clearBinaryId = function() {
|
|
54541
|
+
return this.setBinaryId(void 0);
|
|
54542
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.hasBinaryId = function() {
|
|
54543
|
+
return e.Message.getField(this, 1) != null;
|
|
54544
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.getBboxId = function() {
|
|
54545
|
+
return (
|
|
54546
|
+
/** @type {string} */
|
|
54547
|
+
e.Message.getFieldWithDefault(this, 2, "")
|
|
54548
|
+
);
|
|
54549
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.setBboxId = function(o) {
|
|
54550
|
+
return e.Message.setProto3StringField(this, 2, o);
|
|
54551
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.getLabel = function() {
|
|
54552
|
+
return (
|
|
54553
|
+
/** @type {string} */
|
|
54554
|
+
e.Message.getFieldWithDefault(this, 3, "")
|
|
54555
|
+
);
|
|
54556
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.setLabel = function(o) {
|
|
54557
|
+
return e.Message.setField(this, 3, o);
|
|
54558
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.clearLabel = function() {
|
|
54559
|
+
return e.Message.setField(this, 3, void 0);
|
|
54560
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.hasLabel = function() {
|
|
54561
|
+
return e.Message.getField(this, 3) != null;
|
|
54562
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.getXMinNormalized = function() {
|
|
54563
|
+
return (
|
|
54564
|
+
/** @type {number} */
|
|
54565
|
+
e.Message.getFloatingPointFieldWithDefault(this, 4, 0)
|
|
54566
|
+
);
|
|
54567
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.setXMinNormalized = function(o) {
|
|
54568
|
+
return e.Message.setField(this, 4, o);
|
|
54569
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.clearXMinNormalized = function() {
|
|
54570
|
+
return e.Message.setField(this, 4, void 0);
|
|
54571
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.hasXMinNormalized = function() {
|
|
54572
|
+
return e.Message.getField(this, 4) != null;
|
|
54573
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.getYMinNormalized = function() {
|
|
54574
|
+
return (
|
|
54575
|
+
/** @type {number} */
|
|
54576
|
+
e.Message.getFloatingPointFieldWithDefault(this, 5, 0)
|
|
54577
|
+
);
|
|
54578
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.setYMinNormalized = function(o) {
|
|
54579
|
+
return e.Message.setField(this, 5, o);
|
|
54580
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.clearYMinNormalized = function() {
|
|
54581
|
+
return e.Message.setField(this, 5, void 0);
|
|
54582
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.hasYMinNormalized = function() {
|
|
54583
|
+
return e.Message.getField(this, 5) != null;
|
|
54584
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.getXMaxNormalized = function() {
|
|
54585
|
+
return (
|
|
54586
|
+
/** @type {number} */
|
|
54587
|
+
e.Message.getFloatingPointFieldWithDefault(this, 6, 0)
|
|
54588
|
+
);
|
|
54589
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.setXMaxNormalized = function(o) {
|
|
54590
|
+
return e.Message.setField(this, 6, o);
|
|
54591
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.clearXMaxNormalized = function() {
|
|
54592
|
+
return e.Message.setField(this, 6, void 0);
|
|
54593
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.hasXMaxNormalized = function() {
|
|
54594
|
+
return e.Message.getField(this, 6) != null;
|
|
54595
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.getYMaxNormalized = function() {
|
|
54596
|
+
return (
|
|
54597
|
+
/** @type {number} */
|
|
54598
|
+
e.Message.getFloatingPointFieldWithDefault(this, 7, 0)
|
|
54599
|
+
);
|
|
54600
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.setYMaxNormalized = function(o) {
|
|
54601
|
+
return e.Message.setField(this, 7, o);
|
|
54602
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.clearYMaxNormalized = function() {
|
|
54603
|
+
return e.Message.setField(this, 7, void 0);
|
|
54604
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxRequest.prototype.hasYMaxNormalized = function() {
|
|
54605
|
+
return e.Message.getField(this, 7) != null;
|
|
54606
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.UpdateBoundingBoxResponse.prototype.toObject = function(o) {
|
|
54607
|
+
return proto.viam.app.data.v1.UpdateBoundingBoxResponse.toObject(o, this);
|
|
54608
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxResponse.toObject = function(o, r) {
|
|
54609
|
+
var i = {};
|
|
54610
|
+
return o && (i.$jspbMessageInstance = r), i;
|
|
54611
|
+
}), proto.viam.app.data.v1.UpdateBoundingBoxResponse.deserializeBinary = function(o) {
|
|
54612
|
+
var r = new e.BinaryReader(o), i = new proto.viam.app.data.v1.UpdateBoundingBoxResponse();
|
|
54613
|
+
return proto.viam.app.data.v1.UpdateBoundingBoxResponse.deserializeBinaryFromReader(i, r);
|
|
54614
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxResponse.deserializeBinaryFromReader = function(o, r) {
|
|
54615
|
+
for (; r.nextField() && !r.isEndGroup(); ) {
|
|
54616
|
+
var i = r.getFieldNumber();
|
|
54617
|
+
switch (i) {
|
|
54618
|
+
default:
|
|
54619
|
+
r.skipField();
|
|
54620
|
+
break;
|
|
54621
|
+
}
|
|
54622
|
+
}
|
|
54623
|
+
return o;
|
|
54624
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxResponse.prototype.serializeBinary = function() {
|
|
54625
|
+
var o = new e.BinaryWriter();
|
|
54626
|
+
return proto.viam.app.data.v1.UpdateBoundingBoxResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
54627
|
+
}, proto.viam.app.data.v1.UpdateBoundingBoxResponse.serializeBinaryToWriter = function(o, r) {
|
|
54397
54628
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.BoundingBoxLabelsByFilterRequest.prototype.toObject = function(o) {
|
|
54398
54629
|
return proto.viam.app.data.v1.BoundingBoxLabelsByFilterRequest.toObject(o, this);
|
|
54399
54630
|
}, proto.viam.app.data.v1.BoundingBoxLabelsByFilterRequest.toObject = function(o, r) {
|
|
@@ -56702,6 +56933,14 @@ DataService.BoundingBoxLabelsByFilter = {
|
|
|
56702
56933
|
requestType: app_data_v1_data_pb.BoundingBoxLabelsByFilterRequest,
|
|
56703
56934
|
responseType: app_data_v1_data_pb.BoundingBoxLabelsByFilterResponse
|
|
56704
56935
|
};
|
|
56936
|
+
DataService.UpdateBoundingBox = {
|
|
56937
|
+
methodName: "UpdateBoundingBox",
|
|
56938
|
+
service: DataService,
|
|
56939
|
+
requestStream: !1,
|
|
56940
|
+
responseStream: !1,
|
|
56941
|
+
requestType: app_data_v1_data_pb.UpdateBoundingBoxRequest,
|
|
56942
|
+
responseType: app_data_v1_data_pb.UpdateBoundingBoxResponse
|
|
56943
|
+
};
|
|
56705
56944
|
DataService.GetDatabaseConnection = {
|
|
56706
56945
|
methodName: "GetDatabaseConnection",
|
|
56707
56946
|
service: DataService,
|
|
@@ -57105,6 +57344,29 @@ DataServiceClient.prototype.boundingBoxLabelsByFilter = function n(e, s, g) {
|
|
|
57105
57344
|
}
|
|
57106
57345
|
};
|
|
57107
57346
|
};
|
|
57347
|
+
DataServiceClient.prototype.updateBoundingBox = function n(e, s, g) {
|
|
57348
|
+
arguments.length === 2 && (g = arguments[1]);
|
|
57349
|
+
var u = grpc$b.unary(DataService.UpdateBoundingBox, {
|
|
57350
|
+
request: e,
|
|
57351
|
+
host: this.serviceHost,
|
|
57352
|
+
metadata: s,
|
|
57353
|
+
transport: this.options.transport,
|
|
57354
|
+
debug: this.options.debug,
|
|
57355
|
+
onEnd: function(p) {
|
|
57356
|
+
if (g)
|
|
57357
|
+
if (p.status !== grpc$b.Code.OK) {
|
|
57358
|
+
var l = new Error(p.statusMessage);
|
|
57359
|
+
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
57360
|
+
} else
|
|
57361
|
+
g(null, p.message);
|
|
57362
|
+
}
|
|
57363
|
+
});
|
|
57364
|
+
return {
|
|
57365
|
+
cancel: function() {
|
|
57366
|
+
g = null, u.close();
|
|
57367
|
+
}
|
|
57368
|
+
};
|
|
57369
|
+
};
|
|
57108
57370
|
DataServiceClient.prototype.getDatabaseConnection = function n(e, s, g) {
|
|
57109
57371
|
arguments.length === 2 && (g = arguments[1]);
|
|
57110
57372
|
var u = grpc$b.unary(DataService.GetDatabaseConnection, {
|
|
@@ -58298,15 +58560,16 @@ var tagger_pb = {};
|
|
|
58298
58560
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.toObject = function(o) {
|
|
58299
58561
|
return proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.toObject(o, this);
|
|
58300
58562
|
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.toObject = function(o, r) {
|
|
58301
|
-
var i = {
|
|
58563
|
+
var i, t = {
|
|
58302
58564
|
datasetId: e.Message.getFieldWithDefault(r, 1, ""),
|
|
58303
58565
|
registryItemId: e.Message.getFieldWithDefault(r, 2, ""),
|
|
58304
58566
|
registryItemVersion: e.Message.getFieldWithDefault(r, 6, ""),
|
|
58305
58567
|
organizationId: e.Message.getFieldWithDefault(r, 3, ""),
|
|
58306
58568
|
modelName: e.Message.getFieldWithDefault(r, 4, ""),
|
|
58307
|
-
modelVersion: e.Message.getFieldWithDefault(r, 5, "")
|
|
58569
|
+
modelVersion: e.Message.getFieldWithDefault(r, 5, ""),
|
|
58570
|
+
argumentsMap: (i = r.getArgumentsMap()) ? i.toObject(o, void 0) : []
|
|
58308
58571
|
};
|
|
58309
|
-
return o && (
|
|
58572
|
+
return o && (t.$jspbMessageInstance = r), t;
|
|
58310
58573
|
}), proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.deserializeBinary = function(o) {
|
|
58311
58574
|
var r = new e.BinaryReader(o), i = new proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest();
|
|
58312
58575
|
return proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.deserializeBinaryFromReader(i, r);
|
|
@@ -58356,6 +58619,12 @@ var tagger_pb = {};
|
|
|
58356
58619
|
);
|
|
58357
58620
|
o.setModelVersion(t);
|
|
58358
58621
|
break;
|
|
58622
|
+
case 7:
|
|
58623
|
+
var t = o.getArgumentsMap();
|
|
58624
|
+
r.readMessage(t, function(c, v) {
|
|
58625
|
+
e.Map.deserializeBinary(c, v, e.BinaryReader.prototype.readString, e.BinaryReader.prototype.readString, null, "", "");
|
|
58626
|
+
});
|
|
58627
|
+
break;
|
|
58359
58628
|
default:
|
|
58360
58629
|
r.skipField();
|
|
58361
58630
|
break;
|
|
@@ -58385,7 +58654,7 @@ var tagger_pb = {};
|
|
|
58385
58654
|
), i = o.getModelVersion(), i.length > 0 && r.writeString(
|
|
58386
58655
|
5,
|
|
58387
58656
|
i
|
|
58388
|
-
);
|
|
58657
|
+
), i = o.getArgumentsMap(!0), i && i.getLength() > 0 && i.serializeBinary(7, r, e.BinaryWriter.prototype.writeString, e.BinaryWriter.prototype.writeString);
|
|
58389
58658
|
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.getDatasetId = function() {
|
|
58390
58659
|
return (
|
|
58391
58660
|
/** @type {string} */
|
|
@@ -58428,6 +58697,18 @@ var tagger_pb = {};
|
|
|
58428
58697
|
);
|
|
58429
58698
|
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.setModelVersion = function(o) {
|
|
58430
58699
|
return e.Message.setProto3StringField(this, 5, o);
|
|
58700
|
+
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.getArgumentsMap = function(o) {
|
|
58701
|
+
return (
|
|
58702
|
+
/** @type {!jspb.Map<string,string>} */
|
|
58703
|
+
e.Message.getMapField(
|
|
58704
|
+
this,
|
|
58705
|
+
7,
|
|
58706
|
+
o,
|
|
58707
|
+
null
|
|
58708
|
+
)
|
|
58709
|
+
);
|
|
58710
|
+
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.clearArgumentsMap = function() {
|
|
58711
|
+
return this.getArgumentsMap().clear(), this;
|
|
58431
58712
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.mltraining.v1.SubmitCustomTrainingJobResponse.prototype.toObject = function(o) {
|
|
58432
58713
|
return proto.viam.app.mltraining.v1.SubmitCustomTrainingJobResponse.toObject(o, this);
|
|
58433
58714
|
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobResponse.toObject = function(o, r) {
|
|
@@ -60929,7 +61210,8 @@ var packages_pb = {};
|
|
|
60929
61210
|
c.getSecretsList(),
|
|
60930
61211
|
proto.viam.app.v1.SharedSecret.toObject,
|
|
60931
61212
|
t
|
|
60932
|
-
)
|
|
61213
|
+
),
|
|
61214
|
+
lastUpdated: (v = c.getLastUpdated()) && r.Timestamp.toObject(t, v)
|
|
60933
61215
|
};
|
|
60934
61216
|
return t && (d.$jspbMessageInstance = c), d;
|
|
60935
61217
|
}), proto.viam.app.v1.RobotPart.deserializeBinary = function(t) {
|
|
@@ -61022,6 +61304,10 @@ var packages_pb = {};
|
|
|
61022
61304
|
var d = new proto.viam.app.v1.SharedSecret();
|
|
61023
61305
|
c.readMessage(d, proto.viam.app.v1.SharedSecret.deserializeBinaryFromReader), t.addSecrets(d);
|
|
61024
61306
|
break;
|
|
61307
|
+
case 15:
|
|
61308
|
+
var d = new r.Timestamp();
|
|
61309
|
+
c.readMessage(d, r.Timestamp.deserializeBinaryFromReader), t.setLastUpdated(d);
|
|
61310
|
+
break;
|
|
61025
61311
|
default:
|
|
61026
61312
|
c.skipField();
|
|
61027
61313
|
break;
|
|
@@ -61080,6 +61366,10 @@ var packages_pb = {};
|
|
|
61080
61366
|
14,
|
|
61081
61367
|
v,
|
|
61082
61368
|
proto.viam.app.v1.SharedSecret.serializeBinaryToWriter
|
|
61369
|
+
), v = t.getLastUpdated(), v != null && c.writeMessage(
|
|
61370
|
+
15,
|
|
61371
|
+
v,
|
|
61372
|
+
r.Timestamp.serializeBinaryToWriter
|
|
61083
61373
|
);
|
|
61084
61374
|
}, proto.viam.app.v1.RobotPart.prototype.getId = function() {
|
|
61085
61375
|
return (
|
|
@@ -61199,6 +61489,17 @@ var packages_pb = {};
|
|
|
61199
61489
|
return e.Message.addToRepeatedWrapperField(this, 14, t, proto.viam.app.v1.SharedSecret, c);
|
|
61200
61490
|
}, proto.viam.app.v1.RobotPart.prototype.clearSecretsList = function() {
|
|
61201
61491
|
return this.setSecretsList([]);
|
|
61492
|
+
}, proto.viam.app.v1.RobotPart.prototype.getLastUpdated = function() {
|
|
61493
|
+
return (
|
|
61494
|
+
/** @type{?proto.google.protobuf.Timestamp} */
|
|
61495
|
+
e.Message.getWrapperField(this, r.Timestamp, 15)
|
|
61496
|
+
);
|
|
61497
|
+
}, proto.viam.app.v1.RobotPart.prototype.setLastUpdated = function(t) {
|
|
61498
|
+
return e.Message.setWrapperField(this, 15, t);
|
|
61499
|
+
}, proto.viam.app.v1.RobotPart.prototype.clearLastUpdated = function() {
|
|
61500
|
+
return this.setLastUpdated(void 0);
|
|
61501
|
+
}, proto.viam.app.v1.RobotPart.prototype.hasLastUpdated = function() {
|
|
61502
|
+
return e.Message.getField(this, 15) != null;
|
|
61202
61503
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.v1.RobotPartHistoryEntry.prototype.toObject = function(t) {
|
|
61203
61504
|
return proto.viam.app.v1.RobotPartHistoryEntry.toObject(t, this);
|
|
61204
61505
|
}, proto.viam.app.v1.RobotPartHistoryEntry.toObject = function(t, c) {
|
|
@@ -65105,7 +65406,11 @@ var packages_pb = {};
|
|
|
65105
65406
|
errorsOnly: e.Message.getBooleanFieldWithDefault(c, 2, !1),
|
|
65106
65407
|
filter: e.Message.getFieldWithDefault(c, 3, ""),
|
|
65107
65408
|
pageToken: e.Message.getFieldWithDefault(c, 4, ""),
|
|
65108
|
-
levelsList: (v = e.Message.getRepeatedField(c, 5)) == null ? void 0 : v
|
|
65409
|
+
levelsList: (v = e.Message.getRepeatedField(c, 5)) == null ? void 0 : v,
|
|
65410
|
+
start: (v = c.getStart()) && r.Timestamp.toObject(t, v),
|
|
65411
|
+
end: (v = c.getEnd()) && r.Timestamp.toObject(t, v),
|
|
65412
|
+
limit: e.Message.getFieldWithDefault(c, 8, 0),
|
|
65413
|
+
source: e.Message.getFieldWithDefault(c, 9, "")
|
|
65109
65414
|
};
|
|
65110
65415
|
return t && (d.$jspbMessageInstance = c), d;
|
|
65111
65416
|
}), proto.viam.app.v1.GetRobotPartLogsRequest.deserializeBinary = function(t) {
|
|
@@ -65150,6 +65455,28 @@ var packages_pb = {};
|
|
|
65150
65455
|
);
|
|
65151
65456
|
t.addLevels(d);
|
|
65152
65457
|
break;
|
|
65458
|
+
case 6:
|
|
65459
|
+
var d = new r.Timestamp();
|
|
65460
|
+
c.readMessage(d, r.Timestamp.deserializeBinaryFromReader), t.setStart(d);
|
|
65461
|
+
break;
|
|
65462
|
+
case 7:
|
|
65463
|
+
var d = new r.Timestamp();
|
|
65464
|
+
c.readMessage(d, r.Timestamp.deserializeBinaryFromReader), t.setEnd(d);
|
|
65465
|
+
break;
|
|
65466
|
+
case 8:
|
|
65467
|
+
var d = (
|
|
65468
|
+
/** @type {number} */
|
|
65469
|
+
c.readInt64()
|
|
65470
|
+
);
|
|
65471
|
+
t.setLimit(d);
|
|
65472
|
+
break;
|
|
65473
|
+
case 9:
|
|
65474
|
+
var d = (
|
|
65475
|
+
/** @type {string} */
|
|
65476
|
+
c.readString()
|
|
65477
|
+
);
|
|
65478
|
+
t.setSource(d);
|
|
65479
|
+
break;
|
|
65153
65480
|
default:
|
|
65154
65481
|
c.skipField();
|
|
65155
65482
|
break;
|
|
@@ -65178,6 +65505,22 @@ var packages_pb = {};
|
|
|
65178
65505
|
), v = t.getLevelsList(), v.length > 0 && c.writeRepeatedString(
|
|
65179
65506
|
5,
|
|
65180
65507
|
v
|
|
65508
|
+
), v = t.getStart(), v != null && c.writeMessage(
|
|
65509
|
+
6,
|
|
65510
|
+
v,
|
|
65511
|
+
r.Timestamp.serializeBinaryToWriter
|
|
65512
|
+
), v = t.getEnd(), v != null && c.writeMessage(
|
|
65513
|
+
7,
|
|
65514
|
+
v,
|
|
65515
|
+
r.Timestamp.serializeBinaryToWriter
|
|
65516
|
+
), v = /** @type {number} */
|
|
65517
|
+
e.Message.getField(t, 8), v != null && c.writeInt64(
|
|
65518
|
+
8,
|
|
65519
|
+
v
|
|
65520
|
+
), v = /** @type {string} */
|
|
65521
|
+
e.Message.getField(t, 9), v != null && c.writeString(
|
|
65522
|
+
9,
|
|
65523
|
+
v
|
|
65181
65524
|
);
|
|
65182
65525
|
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.getId = function() {
|
|
65183
65526
|
return (
|
|
@@ -65226,6 +65569,50 @@ var packages_pb = {};
|
|
|
65226
65569
|
return e.Message.addToRepeatedField(this, 5, t, c);
|
|
65227
65570
|
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.clearLevelsList = function() {
|
|
65228
65571
|
return this.setLevelsList([]);
|
|
65572
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.getStart = function() {
|
|
65573
|
+
return (
|
|
65574
|
+
/** @type{?proto.google.protobuf.Timestamp} */
|
|
65575
|
+
e.Message.getWrapperField(this, r.Timestamp, 6)
|
|
65576
|
+
);
|
|
65577
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.setStart = function(t) {
|
|
65578
|
+
return e.Message.setWrapperField(this, 6, t);
|
|
65579
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.clearStart = function() {
|
|
65580
|
+
return this.setStart(void 0);
|
|
65581
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.hasStart = function() {
|
|
65582
|
+
return e.Message.getField(this, 6) != null;
|
|
65583
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.getEnd = function() {
|
|
65584
|
+
return (
|
|
65585
|
+
/** @type{?proto.google.protobuf.Timestamp} */
|
|
65586
|
+
e.Message.getWrapperField(this, r.Timestamp, 7)
|
|
65587
|
+
);
|
|
65588
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.setEnd = function(t) {
|
|
65589
|
+
return e.Message.setWrapperField(this, 7, t);
|
|
65590
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.clearEnd = function() {
|
|
65591
|
+
return this.setEnd(void 0);
|
|
65592
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.hasEnd = function() {
|
|
65593
|
+
return e.Message.getField(this, 7) != null;
|
|
65594
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.getLimit = function() {
|
|
65595
|
+
return (
|
|
65596
|
+
/** @type {number} */
|
|
65597
|
+
e.Message.getFieldWithDefault(this, 8, 0)
|
|
65598
|
+
);
|
|
65599
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.setLimit = function(t) {
|
|
65600
|
+
return e.Message.setField(this, 8, t);
|
|
65601
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.clearLimit = function() {
|
|
65602
|
+
return e.Message.setField(this, 8, void 0);
|
|
65603
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.hasLimit = function() {
|
|
65604
|
+
return e.Message.getField(this, 8) != null;
|
|
65605
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.getSource = function() {
|
|
65606
|
+
return (
|
|
65607
|
+
/** @type {string} */
|
|
65608
|
+
e.Message.getFieldWithDefault(this, 9, "")
|
|
65609
|
+
);
|
|
65610
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.setSource = function(t) {
|
|
65611
|
+
return e.Message.setField(this, 9, t);
|
|
65612
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.clearSource = function() {
|
|
65613
|
+
return e.Message.setField(this, 9, void 0);
|
|
65614
|
+
}, proto.viam.app.v1.GetRobotPartLogsRequest.prototype.hasSource = function() {
|
|
65615
|
+
return e.Message.getField(this, 9) != null;
|
|
65229
65616
|
}, proto.viam.app.v1.GetRobotPartLogsResponse.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.v1.GetRobotPartLogsResponse.prototype.toObject = function(t) {
|
|
65230
65617
|
return proto.viam.app.v1.GetRobotPartLogsResponse.toObject(t, this);
|
|
65231
65618
|
}, proto.viam.app.v1.GetRobotPartLogsResponse.toObject = function(t, c) {
|
|
@@ -66018,7 +66405,8 @@ var packages_pb = {};
|
|
|
66018
66405
|
robotPartCount: e.Message.getFieldWithDefault(c, 9, 0),
|
|
66019
66406
|
organizationCount: e.Message.getFieldWithDefault(c, 10, 0),
|
|
66020
66407
|
onlyUsedByOwner: e.Message.getBooleanFieldWithDefault(c, 11, !1),
|
|
66021
|
-
visibility: e.Message.getFieldWithDefault(c, 12, 0)
|
|
66408
|
+
visibility: e.Message.getFieldWithDefault(c, 12, 0),
|
|
66409
|
+
lastUpdated: (v = c.getLastUpdated()) && r.Timestamp.toObject(t, v)
|
|
66022
66410
|
};
|
|
66023
66411
|
return t && (d.$jspbMessageInstance = c), d;
|
|
66024
66412
|
}), proto.viam.app.v1.Fragment.deserializeBinary = function(t) {
|
|
@@ -66099,6 +66487,10 @@ var packages_pb = {};
|
|
|
66099
66487
|
);
|
|
66100
66488
|
t.setVisibility(d);
|
|
66101
66489
|
break;
|
|
66490
|
+
case 13:
|
|
66491
|
+
var d = new r.Timestamp();
|
|
66492
|
+
c.readMessage(d, r.Timestamp.deserializeBinaryFromReader), t.setLastUpdated(d);
|
|
66493
|
+
break;
|
|
66102
66494
|
default:
|
|
66103
66495
|
c.skipField();
|
|
66104
66496
|
break;
|
|
@@ -66145,6 +66537,10 @@ var packages_pb = {};
|
|
|
66145
66537
|
), v = t.getVisibility(), v !== 0 && c.writeEnum(
|
|
66146
66538
|
12,
|
|
66147
66539
|
v
|
|
66540
|
+
), v = t.getLastUpdated(), v != null && c.writeMessage(
|
|
66541
|
+
13,
|
|
66542
|
+
v,
|
|
66543
|
+
r.Timestamp.serializeBinaryToWriter
|
|
66148
66544
|
);
|
|
66149
66545
|
}, proto.viam.app.v1.Fragment.prototype.getId = function() {
|
|
66150
66546
|
return (
|
|
@@ -66231,6 +66627,17 @@ var packages_pb = {};
|
|
|
66231
66627
|
);
|
|
66232
66628
|
}, proto.viam.app.v1.Fragment.prototype.setVisibility = function(t) {
|
|
66233
66629
|
return e.Message.setProto3EnumField(this, 12, t);
|
|
66630
|
+
}, proto.viam.app.v1.Fragment.prototype.getLastUpdated = function() {
|
|
66631
|
+
return (
|
|
66632
|
+
/** @type{?proto.google.protobuf.Timestamp} */
|
|
66633
|
+
e.Message.getWrapperField(this, r.Timestamp, 13)
|
|
66634
|
+
);
|
|
66635
|
+
}, proto.viam.app.v1.Fragment.prototype.setLastUpdated = function(t) {
|
|
66636
|
+
return e.Message.setWrapperField(this, 13, t);
|
|
66637
|
+
}, proto.viam.app.v1.Fragment.prototype.clearLastUpdated = function() {
|
|
66638
|
+
return this.setLastUpdated(void 0);
|
|
66639
|
+
}, proto.viam.app.v1.Fragment.prototype.hasLastUpdated = function() {
|
|
66640
|
+
return e.Message.getField(this, 13) != null;
|
|
66234
66641
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.v1.FragmentHistoryEntry.prototype.toObject = function(t) {
|
|
66235
66642
|
return proto.viam.app.v1.FragmentHistoryEntry.toObject(t, this);
|
|
66236
66643
|
}, proto.viam.app.v1.FragmentHistoryEntry.toObject = function(t, c) {
|
|
@@ -66560,7 +66967,8 @@ var packages_pb = {};
|
|
|
66560
66967
|
var v, d = {
|
|
66561
66968
|
name: e.Message.getFieldWithDefault(c, 1, ""),
|
|
66562
66969
|
config: (v = c.getConfig()) && o.Struct.toObject(t, v),
|
|
66563
|
-
organizationId: e.Message.getFieldWithDefault(c, 3, "")
|
|
66970
|
+
organizationId: e.Message.getFieldWithDefault(c, 3, ""),
|
|
66971
|
+
visibility: e.Message.getFieldWithDefault(c, 4, 0)
|
|
66564
66972
|
};
|
|
66565
66973
|
return t && (d.$jspbMessageInstance = c), d;
|
|
66566
66974
|
}), proto.viam.app.v1.CreateFragmentRequest.deserializeBinary = function(t) {
|
|
@@ -66588,6 +66996,13 @@ var packages_pb = {};
|
|
|
66588
66996
|
);
|
|
66589
66997
|
t.setOrganizationId(d);
|
|
66590
66998
|
break;
|
|
66999
|
+
case 4:
|
|
67000
|
+
var d = (
|
|
67001
|
+
/** @type {!proto.viam.app.v1.FragmentVisibility} */
|
|
67002
|
+
c.readEnum()
|
|
67003
|
+
);
|
|
67004
|
+
t.setVisibility(d);
|
|
67005
|
+
break;
|
|
66591
67006
|
default:
|
|
66592
67007
|
c.skipField();
|
|
66593
67008
|
break;
|
|
@@ -66609,6 +67024,10 @@ var packages_pb = {};
|
|
|
66609
67024
|
), v = t.getOrganizationId(), v.length > 0 && c.writeString(
|
|
66610
67025
|
3,
|
|
66611
67026
|
v
|
|
67027
|
+
), v = /** @type {!proto.viam.app.v1.FragmentVisibility} */
|
|
67028
|
+
e.Message.getField(t, 4), v != null && c.writeEnum(
|
|
67029
|
+
4,
|
|
67030
|
+
v
|
|
66612
67031
|
);
|
|
66613
67032
|
}, proto.viam.app.v1.CreateFragmentRequest.prototype.getName = function() {
|
|
66614
67033
|
return (
|
|
@@ -66635,6 +67054,17 @@ var packages_pb = {};
|
|
|
66635
67054
|
);
|
|
66636
67055
|
}, proto.viam.app.v1.CreateFragmentRequest.prototype.setOrganizationId = function(t) {
|
|
66637
67056
|
return e.Message.setProto3StringField(this, 3, t);
|
|
67057
|
+
}, proto.viam.app.v1.CreateFragmentRequest.prototype.getVisibility = function() {
|
|
67058
|
+
return (
|
|
67059
|
+
/** @type {!proto.viam.app.v1.FragmentVisibility} */
|
|
67060
|
+
e.Message.getFieldWithDefault(this, 4, 0)
|
|
67061
|
+
);
|
|
67062
|
+
}, proto.viam.app.v1.CreateFragmentRequest.prototype.setVisibility = function(t) {
|
|
67063
|
+
return e.Message.setField(this, 4, t);
|
|
67064
|
+
}, proto.viam.app.v1.CreateFragmentRequest.prototype.clearVisibility = function() {
|
|
67065
|
+
return e.Message.setField(this, 4, void 0);
|
|
67066
|
+
}, proto.viam.app.v1.CreateFragmentRequest.prototype.hasVisibility = function() {
|
|
67067
|
+
return e.Message.getField(this, 4) != null;
|
|
66638
67068
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.v1.CreateFragmentResponse.prototype.toObject = function(t) {
|
|
66639
67069
|
return proto.viam.app.v1.CreateFragmentResponse.toObject(t, this);
|
|
66640
67070
|
}, proto.viam.app.v1.CreateFragmentResponse.toObject = function(t, c) {
|
|
@@ -77147,6 +77577,10 @@ class MlTrainingClient {
|
|
|
77147
77577
|
const { service: o } = this, r = new pb$4.SubmitTrainingJobRequest();
|
|
77148
77578
|
return r.setOrganizationId(e), r.setDatasetId(s), r.setModelName(g), r.setModelVersion(u), r.setModelType(p), r.setTagsList(l), (await promisify(o.submitTrainingJob.bind(o), r)).getId();
|
|
77149
77579
|
}
|
|
77580
|
+
async submitCustomTrainingJob(e, s, g, u, p, l) {
|
|
77581
|
+
const { service: o } = this, r = new pb$4.SubmitCustomTrainingJobRequest();
|
|
77582
|
+
return r.setOrganizationId(e), r.setDatasetId(s), r.setRegistryItemId(g), r.setRegistryItemVersion(u), r.setModelName(p), r.setModelVersion(l), (await promisify(o.submitCustomTrainingJob.bind(o), r)).getId();
|
|
77583
|
+
}
|
|
77150
77584
|
async getTrainingJob(e) {
|
|
77151
77585
|
const { service: s } = this, g = new pb$4.GetTrainingJobRequest();
|
|
77152
77586
|
return g.setId(e), (await promisify(s.getTrainingJob.bind(s), g)).getMetadata();
|
|
@@ -80114,12 +80548,16 @@ class VisionClient {
|
|
|
80114
80548
|
}, l = {}) {
|
|
80115
80549
|
const { service: o } = this, r = new pb$5.CaptureAllFromCameraRequest();
|
|
80116
80550
|
r.setName(this.name), r.setCameraName(e), r.setReturnImage(s), r.setReturnClassifications(g), r.setReturnDetections(u), r.setReturnObjectPointClouds(p), r.setExtra(struct_pb.Struct.fromJavaScript(l)), this.options.requestLogger?.(r);
|
|
80117
|
-
const i = await promisify(o.captureAllFromCamera.bind(o), r);
|
|
80551
|
+
const i = await promisify(o.captureAllFromCamera.bind(o), r), t = i.getImage();
|
|
80118
80552
|
return {
|
|
80119
|
-
image:
|
|
80120
|
-
|
|
80121
|
-
|
|
80122
|
-
|
|
80553
|
+
image: t ? {
|
|
80554
|
+
format: t.getFormat(),
|
|
80555
|
+
sourceName: t.getSourceName(),
|
|
80556
|
+
image: t.getImage_asU8()
|
|
80557
|
+
} : void 0,
|
|
80558
|
+
classifications: i.getClassificationsList().map((c) => c.toObject()),
|
|
80559
|
+
detections: i.getDetectionsList().map((c) => c.toObject()),
|
|
80560
|
+
objectPointClouds: i.getObjectsList().map((c) => c.toObject())
|
|
80123
80561
|
};
|
|
80124
80562
|
}
|
|
80125
80563
|
async doCommand(e) {
|
|
@@ -80188,7 +80626,7 @@ class GenericClient {
|
|
|
80188
80626
|
return doCommandFromClient(s, this.name, e, this.options);
|
|
80189
80627
|
}
|
|
80190
80628
|
}
|
|
80191
|
-
const version = "0.
|
|
80629
|
+
const version = "0.23.1";
|
|
80192
80630
|
export {
|
|
80193
80631
|
ArmClient,
|
|
80194
80632
|
BaseClient,
|