@viamrobotics/sdk 0.23.0 → 0.24.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 +2 -2
- package/dist/app/ml-training-client.d.ts +1 -0
- package/dist/app/viam-transport.d.ts +6 -1
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +3 -0
- package/dist/gen/app/v1/billing_pb.d.ts +40 -0
- package/dist/gen/app/v1/billing_pb_service.d.ts +19 -0
- package/dist/main.es.js +1058 -896
- package/dist/main.umd.js +7 -7
- package/dist/robot/client.d.ts +2 -1
- package/dist/robot/dial.d.ts +3 -6
- 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
|
|
@@ -29056,7 +29078,481 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
29056
29078
|
});
|
|
29057
29079
|
}, n;
|
|
29058
29080
|
}()
|
|
29059
|
-
);
|
|
29081
|
+
), auth_pb = {};
|
|
29082
|
+
(function(n) {
|
|
29083
|
+
var e = googleProtobuf$1, s = e, g = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof g < "u" && g || typeof self < "u" && self || function() {
|
|
29084
|
+
return this;
|
|
29085
|
+
}.call(null) || Function("return this")(), u = annotations_pb$1;
|
|
29086
|
+
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) {
|
|
29087
|
+
e.Message.initialize(this, p, 0, -1, null, null);
|
|
29088
|
+
}, 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) {
|
|
29089
|
+
e.Message.initialize(this, p, 0, -1, null, null);
|
|
29090
|
+
}, s.inherits(proto.proto.rpc.v1.AuthenticateRequest, e.Message), s.DEBUG && !COMPILED && (proto.proto.rpc.v1.AuthenticateRequest.displayName = "proto.proto.rpc.v1.AuthenticateRequest"), proto.proto.rpc.v1.AuthenticateResponse = function(p) {
|
|
29091
|
+
e.Message.initialize(this, p, 0, -1, null, null);
|
|
29092
|
+
}, s.inherits(proto.proto.rpc.v1.AuthenticateResponse, e.Message), s.DEBUG && !COMPILED && (proto.proto.rpc.v1.AuthenticateResponse.displayName = "proto.proto.rpc.v1.AuthenticateResponse"), proto.proto.rpc.v1.AuthenticateToRequest = function(p) {
|
|
29093
|
+
e.Message.initialize(this, p, 0, -1, null, null);
|
|
29094
|
+
}, s.inherits(proto.proto.rpc.v1.AuthenticateToRequest, e.Message), s.DEBUG && !COMPILED && (proto.proto.rpc.v1.AuthenticateToRequest.displayName = "proto.proto.rpc.v1.AuthenticateToRequest"), proto.proto.rpc.v1.AuthenticateToResponse = function(p) {
|
|
29095
|
+
e.Message.initialize(this, p, 0, -1, null, null);
|
|
29096
|
+
}, s.inherits(proto.proto.rpc.v1.AuthenticateToResponse, e.Message), s.DEBUG && !COMPILED && (proto.proto.rpc.v1.AuthenticateToResponse.displayName = "proto.proto.rpc.v1.AuthenticateToResponse"), e.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.v1.Credentials.prototype.toObject = function(p) {
|
|
29097
|
+
return proto.proto.rpc.v1.Credentials.toObject(p, this);
|
|
29098
|
+
}, proto.proto.rpc.v1.Credentials.toObject = function(p, l) {
|
|
29099
|
+
var o = {
|
|
29100
|
+
type: e.Message.getFieldWithDefault(l, 1, ""),
|
|
29101
|
+
payload: e.Message.getFieldWithDefault(l, 2, "")
|
|
29102
|
+
};
|
|
29103
|
+
return p && (o.$jspbMessageInstance = l), o;
|
|
29104
|
+
}), proto.proto.rpc.v1.Credentials.deserializeBinary = function(p) {
|
|
29105
|
+
var l = new e.BinaryReader(p), o = new proto.proto.rpc.v1.Credentials();
|
|
29106
|
+
return proto.proto.rpc.v1.Credentials.deserializeBinaryFromReader(o, l);
|
|
29107
|
+
}, proto.proto.rpc.v1.Credentials.deserializeBinaryFromReader = function(p, l) {
|
|
29108
|
+
for (; l.nextField() && !l.isEndGroup(); ) {
|
|
29109
|
+
var o = l.getFieldNumber();
|
|
29110
|
+
switch (o) {
|
|
29111
|
+
case 1:
|
|
29112
|
+
var r = (
|
|
29113
|
+
/** @type {string} */
|
|
29114
|
+
l.readString()
|
|
29115
|
+
);
|
|
29116
|
+
p.setType(r);
|
|
29117
|
+
break;
|
|
29118
|
+
case 2:
|
|
29119
|
+
var r = (
|
|
29120
|
+
/** @type {string} */
|
|
29121
|
+
l.readString()
|
|
29122
|
+
);
|
|
29123
|
+
p.setPayload(r);
|
|
29124
|
+
break;
|
|
29125
|
+
default:
|
|
29126
|
+
l.skipField();
|
|
29127
|
+
break;
|
|
29128
|
+
}
|
|
29129
|
+
}
|
|
29130
|
+
return p;
|
|
29131
|
+
}, proto.proto.rpc.v1.Credentials.prototype.serializeBinary = function() {
|
|
29132
|
+
var p = new e.BinaryWriter();
|
|
29133
|
+
return proto.proto.rpc.v1.Credentials.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
29134
|
+
}, proto.proto.rpc.v1.Credentials.serializeBinaryToWriter = function(p, l) {
|
|
29135
|
+
var o = void 0;
|
|
29136
|
+
o = p.getType(), o.length > 0 && l.writeString(
|
|
29137
|
+
1,
|
|
29138
|
+
o
|
|
29139
|
+
), o = p.getPayload(), o.length > 0 && l.writeString(
|
|
29140
|
+
2,
|
|
29141
|
+
o
|
|
29142
|
+
);
|
|
29143
|
+
}, proto.proto.rpc.v1.Credentials.prototype.getType = function() {
|
|
29144
|
+
return (
|
|
29145
|
+
/** @type {string} */
|
|
29146
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
29147
|
+
);
|
|
29148
|
+
}, proto.proto.rpc.v1.Credentials.prototype.setType = function(p) {
|
|
29149
|
+
return e.Message.setProto3StringField(this, 1, p);
|
|
29150
|
+
}, proto.proto.rpc.v1.Credentials.prototype.getPayload = function() {
|
|
29151
|
+
return (
|
|
29152
|
+
/** @type {string} */
|
|
29153
|
+
e.Message.getFieldWithDefault(this, 2, "")
|
|
29154
|
+
);
|
|
29155
|
+
}, proto.proto.rpc.v1.Credentials.prototype.setPayload = function(p) {
|
|
29156
|
+
return e.Message.setProto3StringField(this, 2, p);
|
|
29157
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.v1.AuthenticateRequest.prototype.toObject = function(p) {
|
|
29158
|
+
return proto.proto.rpc.v1.AuthenticateRequest.toObject(p, this);
|
|
29159
|
+
}, proto.proto.rpc.v1.AuthenticateRequest.toObject = function(p, l) {
|
|
29160
|
+
var o, r = {
|
|
29161
|
+
entity: e.Message.getFieldWithDefault(l, 1, ""),
|
|
29162
|
+
credentials: (o = l.getCredentials()) && proto.proto.rpc.v1.Credentials.toObject(p, o)
|
|
29163
|
+
};
|
|
29164
|
+
return p && (r.$jspbMessageInstance = l), r;
|
|
29165
|
+
}), proto.proto.rpc.v1.AuthenticateRequest.deserializeBinary = function(p) {
|
|
29166
|
+
var l = new e.BinaryReader(p), o = new proto.proto.rpc.v1.AuthenticateRequest();
|
|
29167
|
+
return proto.proto.rpc.v1.AuthenticateRequest.deserializeBinaryFromReader(o, l);
|
|
29168
|
+
}, proto.proto.rpc.v1.AuthenticateRequest.deserializeBinaryFromReader = function(p, l) {
|
|
29169
|
+
for (; l.nextField() && !l.isEndGroup(); ) {
|
|
29170
|
+
var o = l.getFieldNumber();
|
|
29171
|
+
switch (o) {
|
|
29172
|
+
case 1:
|
|
29173
|
+
var r = (
|
|
29174
|
+
/** @type {string} */
|
|
29175
|
+
l.readString()
|
|
29176
|
+
);
|
|
29177
|
+
p.setEntity(r);
|
|
29178
|
+
break;
|
|
29179
|
+
case 2:
|
|
29180
|
+
var r = new proto.proto.rpc.v1.Credentials();
|
|
29181
|
+
l.readMessage(r, proto.proto.rpc.v1.Credentials.deserializeBinaryFromReader), p.setCredentials(r);
|
|
29182
|
+
break;
|
|
29183
|
+
default:
|
|
29184
|
+
l.skipField();
|
|
29185
|
+
break;
|
|
29186
|
+
}
|
|
29187
|
+
}
|
|
29188
|
+
return p;
|
|
29189
|
+
}, proto.proto.rpc.v1.AuthenticateRequest.prototype.serializeBinary = function() {
|
|
29190
|
+
var p = new e.BinaryWriter();
|
|
29191
|
+
return proto.proto.rpc.v1.AuthenticateRequest.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
29192
|
+
}, proto.proto.rpc.v1.AuthenticateRequest.serializeBinaryToWriter = function(p, l) {
|
|
29193
|
+
var o = void 0;
|
|
29194
|
+
o = p.getEntity(), o.length > 0 && l.writeString(
|
|
29195
|
+
1,
|
|
29196
|
+
o
|
|
29197
|
+
), o = p.getCredentials(), o != null && l.writeMessage(
|
|
29198
|
+
2,
|
|
29199
|
+
o,
|
|
29200
|
+
proto.proto.rpc.v1.Credentials.serializeBinaryToWriter
|
|
29201
|
+
);
|
|
29202
|
+
}, proto.proto.rpc.v1.AuthenticateRequest.prototype.getEntity = function() {
|
|
29203
|
+
return (
|
|
29204
|
+
/** @type {string} */
|
|
29205
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
29206
|
+
);
|
|
29207
|
+
}, proto.proto.rpc.v1.AuthenticateRequest.prototype.setEntity = function(p) {
|
|
29208
|
+
return e.Message.setProto3StringField(this, 1, p);
|
|
29209
|
+
}, proto.proto.rpc.v1.AuthenticateRequest.prototype.getCredentials = function() {
|
|
29210
|
+
return (
|
|
29211
|
+
/** @type{?proto.proto.rpc.v1.Credentials} */
|
|
29212
|
+
e.Message.getWrapperField(this, proto.proto.rpc.v1.Credentials, 2)
|
|
29213
|
+
);
|
|
29214
|
+
}, proto.proto.rpc.v1.AuthenticateRequest.prototype.setCredentials = function(p) {
|
|
29215
|
+
return e.Message.setWrapperField(this, 2, p);
|
|
29216
|
+
}, proto.proto.rpc.v1.AuthenticateRequest.prototype.clearCredentials = function() {
|
|
29217
|
+
return this.setCredentials(void 0);
|
|
29218
|
+
}, proto.proto.rpc.v1.AuthenticateRequest.prototype.hasCredentials = function() {
|
|
29219
|
+
return e.Message.getField(this, 2) != null;
|
|
29220
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.v1.AuthenticateResponse.prototype.toObject = function(p) {
|
|
29221
|
+
return proto.proto.rpc.v1.AuthenticateResponse.toObject(p, this);
|
|
29222
|
+
}, proto.proto.rpc.v1.AuthenticateResponse.toObject = function(p, l) {
|
|
29223
|
+
var o = {
|
|
29224
|
+
accessToken: e.Message.getFieldWithDefault(l, 1, "")
|
|
29225
|
+
};
|
|
29226
|
+
return p && (o.$jspbMessageInstance = l), o;
|
|
29227
|
+
}), proto.proto.rpc.v1.AuthenticateResponse.deserializeBinary = function(p) {
|
|
29228
|
+
var l = new e.BinaryReader(p), o = new proto.proto.rpc.v1.AuthenticateResponse();
|
|
29229
|
+
return proto.proto.rpc.v1.AuthenticateResponse.deserializeBinaryFromReader(o, l);
|
|
29230
|
+
}, proto.proto.rpc.v1.AuthenticateResponse.deserializeBinaryFromReader = function(p, l) {
|
|
29231
|
+
for (; l.nextField() && !l.isEndGroup(); ) {
|
|
29232
|
+
var o = l.getFieldNumber();
|
|
29233
|
+
switch (o) {
|
|
29234
|
+
case 1:
|
|
29235
|
+
var r = (
|
|
29236
|
+
/** @type {string} */
|
|
29237
|
+
l.readString()
|
|
29238
|
+
);
|
|
29239
|
+
p.setAccessToken(r);
|
|
29240
|
+
break;
|
|
29241
|
+
default:
|
|
29242
|
+
l.skipField();
|
|
29243
|
+
break;
|
|
29244
|
+
}
|
|
29245
|
+
}
|
|
29246
|
+
return p;
|
|
29247
|
+
}, proto.proto.rpc.v1.AuthenticateResponse.prototype.serializeBinary = function() {
|
|
29248
|
+
var p = new e.BinaryWriter();
|
|
29249
|
+
return proto.proto.rpc.v1.AuthenticateResponse.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
29250
|
+
}, proto.proto.rpc.v1.AuthenticateResponse.serializeBinaryToWriter = function(p, l) {
|
|
29251
|
+
var o = void 0;
|
|
29252
|
+
o = p.getAccessToken(), o.length > 0 && l.writeString(
|
|
29253
|
+
1,
|
|
29254
|
+
o
|
|
29255
|
+
);
|
|
29256
|
+
}, proto.proto.rpc.v1.AuthenticateResponse.prototype.getAccessToken = function() {
|
|
29257
|
+
return (
|
|
29258
|
+
/** @type {string} */
|
|
29259
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
29260
|
+
);
|
|
29261
|
+
}, proto.proto.rpc.v1.AuthenticateResponse.prototype.setAccessToken = function(p) {
|
|
29262
|
+
return e.Message.setProto3StringField(this, 1, p);
|
|
29263
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.v1.AuthenticateToRequest.prototype.toObject = function(p) {
|
|
29264
|
+
return proto.proto.rpc.v1.AuthenticateToRequest.toObject(p, this);
|
|
29265
|
+
}, proto.proto.rpc.v1.AuthenticateToRequest.toObject = function(p, l) {
|
|
29266
|
+
var o = {
|
|
29267
|
+
entity: e.Message.getFieldWithDefault(l, 1, "")
|
|
29268
|
+
};
|
|
29269
|
+
return p && (o.$jspbMessageInstance = l), o;
|
|
29270
|
+
}), proto.proto.rpc.v1.AuthenticateToRequest.deserializeBinary = function(p) {
|
|
29271
|
+
var l = new e.BinaryReader(p), o = new proto.proto.rpc.v1.AuthenticateToRequest();
|
|
29272
|
+
return proto.proto.rpc.v1.AuthenticateToRequest.deserializeBinaryFromReader(o, l);
|
|
29273
|
+
}, proto.proto.rpc.v1.AuthenticateToRequest.deserializeBinaryFromReader = function(p, l) {
|
|
29274
|
+
for (; l.nextField() && !l.isEndGroup(); ) {
|
|
29275
|
+
var o = l.getFieldNumber();
|
|
29276
|
+
switch (o) {
|
|
29277
|
+
case 1:
|
|
29278
|
+
var r = (
|
|
29279
|
+
/** @type {string} */
|
|
29280
|
+
l.readString()
|
|
29281
|
+
);
|
|
29282
|
+
p.setEntity(r);
|
|
29283
|
+
break;
|
|
29284
|
+
default:
|
|
29285
|
+
l.skipField();
|
|
29286
|
+
break;
|
|
29287
|
+
}
|
|
29288
|
+
}
|
|
29289
|
+
return p;
|
|
29290
|
+
}, proto.proto.rpc.v1.AuthenticateToRequest.prototype.serializeBinary = function() {
|
|
29291
|
+
var p = new e.BinaryWriter();
|
|
29292
|
+
return proto.proto.rpc.v1.AuthenticateToRequest.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
29293
|
+
}, proto.proto.rpc.v1.AuthenticateToRequest.serializeBinaryToWriter = function(p, l) {
|
|
29294
|
+
var o = void 0;
|
|
29295
|
+
o = p.getEntity(), o.length > 0 && l.writeString(
|
|
29296
|
+
1,
|
|
29297
|
+
o
|
|
29298
|
+
);
|
|
29299
|
+
}, proto.proto.rpc.v1.AuthenticateToRequest.prototype.getEntity = function() {
|
|
29300
|
+
return (
|
|
29301
|
+
/** @type {string} */
|
|
29302
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
29303
|
+
);
|
|
29304
|
+
}, proto.proto.rpc.v1.AuthenticateToRequest.prototype.setEntity = function(p) {
|
|
29305
|
+
return e.Message.setProto3StringField(this, 1, p);
|
|
29306
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.v1.AuthenticateToResponse.prototype.toObject = function(p) {
|
|
29307
|
+
return proto.proto.rpc.v1.AuthenticateToResponse.toObject(p, this);
|
|
29308
|
+
}, proto.proto.rpc.v1.AuthenticateToResponse.toObject = function(p, l) {
|
|
29309
|
+
var o = {
|
|
29310
|
+
accessToken: e.Message.getFieldWithDefault(l, 1, "")
|
|
29311
|
+
};
|
|
29312
|
+
return p && (o.$jspbMessageInstance = l), o;
|
|
29313
|
+
}), proto.proto.rpc.v1.AuthenticateToResponse.deserializeBinary = function(p) {
|
|
29314
|
+
var l = new e.BinaryReader(p), o = new proto.proto.rpc.v1.AuthenticateToResponse();
|
|
29315
|
+
return proto.proto.rpc.v1.AuthenticateToResponse.deserializeBinaryFromReader(o, l);
|
|
29316
|
+
}, proto.proto.rpc.v1.AuthenticateToResponse.deserializeBinaryFromReader = function(p, l) {
|
|
29317
|
+
for (; l.nextField() && !l.isEndGroup(); ) {
|
|
29318
|
+
var o = l.getFieldNumber();
|
|
29319
|
+
switch (o) {
|
|
29320
|
+
case 1:
|
|
29321
|
+
var r = (
|
|
29322
|
+
/** @type {string} */
|
|
29323
|
+
l.readString()
|
|
29324
|
+
);
|
|
29325
|
+
p.setAccessToken(r);
|
|
29326
|
+
break;
|
|
29327
|
+
default:
|
|
29328
|
+
l.skipField();
|
|
29329
|
+
break;
|
|
29330
|
+
}
|
|
29331
|
+
}
|
|
29332
|
+
return p;
|
|
29333
|
+
}, proto.proto.rpc.v1.AuthenticateToResponse.prototype.serializeBinary = function() {
|
|
29334
|
+
var p = new e.BinaryWriter();
|
|
29335
|
+
return proto.proto.rpc.v1.AuthenticateToResponse.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
29336
|
+
}, proto.proto.rpc.v1.AuthenticateToResponse.serializeBinaryToWriter = function(p, l) {
|
|
29337
|
+
var o = void 0;
|
|
29338
|
+
o = p.getAccessToken(), o.length > 0 && l.writeString(
|
|
29339
|
+
1,
|
|
29340
|
+
o
|
|
29341
|
+
);
|
|
29342
|
+
}, proto.proto.rpc.v1.AuthenticateToResponse.prototype.getAccessToken = function() {
|
|
29343
|
+
return (
|
|
29344
|
+
/** @type {string} */
|
|
29345
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
29346
|
+
);
|
|
29347
|
+
}, proto.proto.rpc.v1.AuthenticateToResponse.prototype.setAccessToken = function(p) {
|
|
29348
|
+
return e.Message.setProto3StringField(this, 1, p);
|
|
29349
|
+
}, s.object.extend(n, proto.proto.rpc.v1);
|
|
29350
|
+
})(auth_pb);
|
|
29351
|
+
var proto_rpc_v1_auth_pb = auth_pb, grpc$u = grpcWebClient_umdExports$1.grpc, AuthService = function() {
|
|
29352
|
+
function n() {
|
|
29353
|
+
}
|
|
29354
|
+
return n.serviceName = "proto.rpc.v1.AuthService", n;
|
|
29355
|
+
}();
|
|
29356
|
+
AuthService.Authenticate = {
|
|
29357
|
+
methodName: "Authenticate",
|
|
29358
|
+
service: AuthService,
|
|
29359
|
+
requestStream: !1,
|
|
29360
|
+
responseStream: !1,
|
|
29361
|
+
requestType: proto_rpc_v1_auth_pb.AuthenticateRequest,
|
|
29362
|
+
responseType: proto_rpc_v1_auth_pb.AuthenticateResponse
|
|
29363
|
+
};
|
|
29364
|
+
function AuthServiceClient(n, e) {
|
|
29365
|
+
this.serviceHost = n, this.options = e || {};
|
|
29366
|
+
}
|
|
29367
|
+
AuthServiceClient.prototype.authenticate = function n(e, s, g) {
|
|
29368
|
+
arguments.length === 2 && (g = arguments[1]);
|
|
29369
|
+
var u = grpc$u.unary(AuthService.Authenticate, {
|
|
29370
|
+
request: e,
|
|
29371
|
+
host: this.serviceHost,
|
|
29372
|
+
metadata: s,
|
|
29373
|
+
transport: this.options.transport,
|
|
29374
|
+
debug: this.options.debug,
|
|
29375
|
+
onEnd: function(p) {
|
|
29376
|
+
if (g)
|
|
29377
|
+
if (p.status !== grpc$u.Code.OK) {
|
|
29378
|
+
var l = new Error(p.statusMessage);
|
|
29379
|
+
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
29380
|
+
} else
|
|
29381
|
+
g(null, p.message);
|
|
29382
|
+
}
|
|
29383
|
+
});
|
|
29384
|
+
return {
|
|
29385
|
+
cancel: function() {
|
|
29386
|
+
g = null, u.close();
|
|
29387
|
+
}
|
|
29388
|
+
};
|
|
29389
|
+
};
|
|
29390
|
+
var AuthServiceClient_1 = AuthServiceClient, ExternalAuthService = function() {
|
|
29391
|
+
function n() {
|
|
29392
|
+
}
|
|
29393
|
+
return n.serviceName = "proto.rpc.v1.ExternalAuthService", n;
|
|
29394
|
+
}();
|
|
29395
|
+
ExternalAuthService.AuthenticateTo = {
|
|
29396
|
+
methodName: "AuthenticateTo",
|
|
29397
|
+
service: ExternalAuthService,
|
|
29398
|
+
requestStream: !1,
|
|
29399
|
+
responseStream: !1,
|
|
29400
|
+
requestType: proto_rpc_v1_auth_pb.AuthenticateToRequest,
|
|
29401
|
+
responseType: proto_rpc_v1_auth_pb.AuthenticateToResponse
|
|
29402
|
+
};
|
|
29403
|
+
function ExternalAuthServiceClient(n, e) {
|
|
29404
|
+
this.serviceHost = n, this.options = e || {};
|
|
29405
|
+
}
|
|
29406
|
+
ExternalAuthServiceClient.prototype.authenticateTo = function n(e, s, g) {
|
|
29407
|
+
arguments.length === 2 && (g = arguments[1]);
|
|
29408
|
+
var u = grpc$u.unary(ExternalAuthService.AuthenticateTo, {
|
|
29409
|
+
request: e,
|
|
29410
|
+
host: this.serviceHost,
|
|
29411
|
+
metadata: s,
|
|
29412
|
+
transport: this.options.transport,
|
|
29413
|
+
debug: this.options.debug,
|
|
29414
|
+
onEnd: function(p) {
|
|
29415
|
+
if (g)
|
|
29416
|
+
if (p.status !== grpc$u.Code.OK) {
|
|
29417
|
+
var l = new Error(p.statusMessage);
|
|
29418
|
+
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
29419
|
+
} else
|
|
29420
|
+
g(null, p.message);
|
|
29421
|
+
}
|
|
29422
|
+
});
|
|
29423
|
+
return {
|
|
29424
|
+
cancel: function() {
|
|
29425
|
+
g = null, u.close();
|
|
29426
|
+
}
|
|
29427
|
+
};
|
|
29428
|
+
};
|
|
29429
|
+
const apiVersion = "v0.1.339", promisify = async (n, e) => new Promise((s, g) => {
|
|
29430
|
+
n(e, new grpcWebClient_umdExports$1.grpc.Metadata(), (u, p) => {
|
|
29431
|
+
if (u) {
|
|
29432
|
+
g(u);
|
|
29433
|
+
return;
|
|
29434
|
+
}
|
|
29435
|
+
if (!p) {
|
|
29436
|
+
g(new Error("no response"));
|
|
29437
|
+
return;
|
|
29438
|
+
}
|
|
29439
|
+
s(p);
|
|
29440
|
+
});
|
|
29441
|
+
}), doCommandFromClient = async function n(e, s, g, u = {}) {
|
|
29442
|
+
const p = new common.DoCommandRequest();
|
|
29443
|
+
p.setName(s), p.setCommand(struct_pb.Struct.fromJavaScript(g)), u.requestLogger?.(p);
|
|
29444
|
+
const o = (await promisify(e.doCommand.bind(e), p)).getResult()?.toJavaScript();
|
|
29445
|
+
return o || {};
|
|
29446
|
+
}, encodeVector3 = (n) => {
|
|
29447
|
+
const e = new common.Vector3();
|
|
29448
|
+
return e.setX(n.x), e.setY(n.y), e.setZ(n.z), e;
|
|
29449
|
+
}, encodePose = (n) => {
|
|
29450
|
+
const e = new common.Pose();
|
|
29451
|
+
return e.setX(n.x), e.setY(n.y), e.setZ(n.z), e.setOX(n.oX), e.setOY(n.oY), e.setOZ(n.oZ), e.setTheta(n.theta), e;
|
|
29452
|
+
}, encodePoseInFrame = (n) => {
|
|
29453
|
+
if (!n.pose)
|
|
29454
|
+
throw new Error("no pose");
|
|
29455
|
+
const e = new common.PoseInFrame();
|
|
29456
|
+
return e.setPose(encodePose(n.pose)), e.setReferenceFrame(n.referenceFrame), e;
|
|
29457
|
+
}, encodeResourceName = (n) => {
|
|
29458
|
+
const e = new common.ResourceName();
|
|
29459
|
+
return e.setNamespace(n.namespace), e.setType(n.type), e.setSubtype(n.subtype), e.setName(n.name), e;
|
|
29460
|
+
}, encodeGeometry = (n) => {
|
|
29461
|
+
const e = new common.Geometry();
|
|
29462
|
+
if (n.label && e.setLabel(n.label), n.center !== void 0 && e.setCenter(encodePose(n.center)), n.sphere !== void 0) {
|
|
29463
|
+
const s = new common.Sphere();
|
|
29464
|
+
s.setRadiusMm(n.sphere.radiusMm), e.setSphere(s);
|
|
29465
|
+
}
|
|
29466
|
+
if (n.box !== void 0) {
|
|
29467
|
+
const s = new common.RectangularPrism();
|
|
29468
|
+
n.box.dimsMm !== void 0 && s.setDimsMm(encodeVector3(n.box.dimsMm)), e.setBox(s);
|
|
29469
|
+
}
|
|
29470
|
+
if (n.capsule !== void 0) {
|
|
29471
|
+
const s = new common.Capsule();
|
|
29472
|
+
s.setLengthMm(n.capsule.lengthMm), s.setRadiusMm(n.capsule.radiusMm), e.setCapsule(s);
|
|
29473
|
+
}
|
|
29474
|
+
return e;
|
|
29475
|
+
}, encodeGeometriesInFrame = (n) => {
|
|
29476
|
+
const e = new common.GeometriesInFrame();
|
|
29477
|
+
return e.setReferenceFrame(n.referenceFrame), e.setGeometriesList(n.geometriesList.map((s) => encodeGeometry(s))), e;
|
|
29478
|
+
}, encodeTransform = (n) => {
|
|
29479
|
+
const e = new common.Transform();
|
|
29480
|
+
return e.setReferenceFrame(n.referenceFrame), n.physicalObject !== void 0 && e.setPhysicalObject(encodeGeometry(n.physicalObject)), n.poseInObserverFrame !== void 0 && e.setPoseInObserverFrame(encodePoseInFrame(n.poseInObserverFrame)), e;
|
|
29481
|
+
}, encodeWorldState = (n) => {
|
|
29482
|
+
const e = new common.WorldState();
|
|
29483
|
+
return e.setObstaclesList(
|
|
29484
|
+
n.obstaclesList.map((s) => encodeGeometriesInFrame(s))
|
|
29485
|
+
), e.setTransformsList(n.transformsList.map((s) => encodeTransform(s))), e;
|
|
29486
|
+
}, encodeGeoPoint = (n) => {
|
|
29487
|
+
const e = new common.GeoPoint();
|
|
29488
|
+
return e.setLatitude(n.latitude), e.setLongitude(n.longitude), e;
|
|
29489
|
+
}, encodeGeoGeometry = (n) => {
|
|
29490
|
+
const e = new common.GeoGeometry();
|
|
29491
|
+
return n.location && e.setLocation(encodeGeoPoint(n.location)), e.setGeometriesList(n.geometriesList.map((s) => encodeGeometry(s))), e;
|
|
29492
|
+
};
|
|
29493
|
+
class MetadataTransport {
|
|
29494
|
+
metadata;
|
|
29495
|
+
transport;
|
|
29496
|
+
constructor(e, s, g) {
|
|
29497
|
+
this.transport = e(s), this.metadata = g ?? new grpcWebClient_umdExports$1.grpc.Metadata(), this.metadata.set(
|
|
29498
|
+
"viam-client",
|
|
29499
|
+
`typescript;v0.24.0;${apiVersion}`
|
|
29500
|
+
);
|
|
29501
|
+
}
|
|
29502
|
+
start(e) {
|
|
29503
|
+
this.metadata.forEach((s, g) => {
|
|
29504
|
+
e.set(s, g);
|
|
29505
|
+
}), this.transport.start(e);
|
|
29506
|
+
}
|
|
29507
|
+
sendMessage(e) {
|
|
29508
|
+
this.transport.sendMessage(e);
|
|
29509
|
+
}
|
|
29510
|
+
finishSend() {
|
|
29511
|
+
this.transport.finishSend();
|
|
29512
|
+
}
|
|
29513
|
+
cancel() {
|
|
29514
|
+
this.transport.cancel();
|
|
29515
|
+
}
|
|
29516
|
+
}
|
|
29517
|
+
const isCredential = (n) => "authEntity" in n, createViamTransportFactory = async (n, e) => e.type === "access-token" ? createWithAccessToken(n, e) : createWithCredential(n, e), createWithAccessToken = async (n, e) => {
|
|
29518
|
+
const s = await dialDirect$1(n);
|
|
29519
|
+
return (g) => new ViamTransport(s, g, e.payload);
|
|
29520
|
+
}, getAccessTokenFromCredential = async (n, e) => {
|
|
29521
|
+
if (e.type === "robot-secret")
|
|
29522
|
+
throw new Error(
|
|
29523
|
+
"credential type cannot be 'robot-secret'. Must be either 'robot-location-secret' or 'api-key'."
|
|
29524
|
+
);
|
|
29525
|
+
if (!e.authEntity)
|
|
29526
|
+
throw new Error(
|
|
29527
|
+
"auth entity cannot be null, undefined, or an empty value."
|
|
29528
|
+
);
|
|
29529
|
+
const s = await dialDirect$1(n), g = new AuthServiceClient_1(n, {
|
|
29530
|
+
transport: s
|
|
29531
|
+
}), u = e.authEntity, p = new auth_pb.Credentials();
|
|
29532
|
+
p.setType(e.type), p.setPayload(e.payload);
|
|
29533
|
+
const l = new auth_pb.AuthenticateRequest();
|
|
29534
|
+
return l.setEntity(u), l.setCredentials(p), { type: "access-token", payload: await new Promise((r, i) => {
|
|
29535
|
+
g.authenticate(l, new grpcWebClient_umdExports$1.grpc.Metadata(), (t, c) => {
|
|
29536
|
+
if (t) {
|
|
29537
|
+
i(t);
|
|
29538
|
+
return;
|
|
29539
|
+
}
|
|
29540
|
+
r(c?.getAccessToken().toString() ?? "");
|
|
29541
|
+
});
|
|
29542
|
+
}) };
|
|
29543
|
+
}, createWithCredential = async (n, e) => {
|
|
29544
|
+
const s = await getAccessTokenFromCredential(
|
|
29545
|
+
n,
|
|
29546
|
+
e
|
|
29547
|
+
), g = await dialDirect$1(n);
|
|
29548
|
+
return (u) => new ViamTransport(g, u, s.payload);
|
|
29549
|
+
};
|
|
29550
|
+
class ViamTransport extends MetadataTransport {
|
|
29551
|
+
constructor(e, s, g) {
|
|
29552
|
+
const u = new grpcWebClient_umdExports$1.grpc.Metadata({ authorization: `Bearer ${g}` });
|
|
29553
|
+
super(e, s, u);
|
|
29554
|
+
}
|
|
29555
|
+
}
|
|
29060
29556
|
const DIAL_TIMEOUT = 5e3;
|
|
29061
29557
|
var MachineConnectionEvent = /* @__PURE__ */ ((n) => (n.CONNECTING = "connecting", n.CONNECTED = "connected", n.DISCONNECTING = "disconnecting", n.DISCONNECTED = "disconnected", n))(MachineConnectionEvent || {});
|
|
29062
29558
|
class EventDispatcher {
|
|
@@ -29849,7 +30345,7 @@ var arm_pb = {};
|
|
|
29849
30345
|
}, s.object.extend(n, proto.viam.component.arm.v1);
|
|
29850
30346
|
})(arm_pb);
|
|
29851
30347
|
const pb$h = /* @__PURE__ */ getDefaultExportFromCjs(arm_pb);
|
|
29852
|
-
var component_arm_v1_arm_pb = arm_pb, common_v1_common_pb$n = common_pb, grpc$
|
|
30348
|
+
var component_arm_v1_arm_pb = arm_pb, common_v1_common_pb$n = common_pb, grpc$t = grpcWebClient_umdExports$1.grpc, ArmService = function() {
|
|
29853
30349
|
function n() {
|
|
29854
30350
|
}
|
|
29855
30351
|
return n.serviceName = "viam.component.arm.v1.ArmService", n;
|
|
@@ -29931,7 +30427,7 @@ function ArmServiceClient(n, e) {
|
|
|
29931
30427
|
}
|
|
29932
30428
|
ArmServiceClient.prototype.getEndPosition = function n(e, s, g) {
|
|
29933
30429
|
arguments.length === 2 && (g = arguments[1]);
|
|
29934
|
-
var u = grpc$
|
|
30430
|
+
var u = grpc$t.unary(ArmService.GetEndPosition, {
|
|
29935
30431
|
request: e,
|
|
29936
30432
|
host: this.serviceHost,
|
|
29937
30433
|
metadata: s,
|
|
@@ -29939,7 +30435,7 @@ ArmServiceClient.prototype.getEndPosition = function n(e, s, g) {
|
|
|
29939
30435
|
debug: this.options.debug,
|
|
29940
30436
|
onEnd: function(p) {
|
|
29941
30437
|
if (g)
|
|
29942
|
-
if (p.status !== grpc$
|
|
30438
|
+
if (p.status !== grpc$t.Code.OK) {
|
|
29943
30439
|
var l = new Error(p.statusMessage);
|
|
29944
30440
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
29945
30441
|
} else
|
|
@@ -29954,7 +30450,7 @@ ArmServiceClient.prototype.getEndPosition = function n(e, s, g) {
|
|
|
29954
30450
|
};
|
|
29955
30451
|
ArmServiceClient.prototype.moveToPosition = function n(e, s, g) {
|
|
29956
30452
|
arguments.length === 2 && (g = arguments[1]);
|
|
29957
|
-
var u = grpc$
|
|
30453
|
+
var u = grpc$t.unary(ArmService.MoveToPosition, {
|
|
29958
30454
|
request: e,
|
|
29959
30455
|
host: this.serviceHost,
|
|
29960
30456
|
metadata: s,
|
|
@@ -29962,7 +30458,7 @@ ArmServiceClient.prototype.moveToPosition = function n(e, s, g) {
|
|
|
29962
30458
|
debug: this.options.debug,
|
|
29963
30459
|
onEnd: function(p) {
|
|
29964
30460
|
if (g)
|
|
29965
|
-
if (p.status !== grpc$
|
|
30461
|
+
if (p.status !== grpc$t.Code.OK) {
|
|
29966
30462
|
var l = new Error(p.statusMessage);
|
|
29967
30463
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
29968
30464
|
} else
|
|
@@ -29977,7 +30473,7 @@ ArmServiceClient.prototype.moveToPosition = function n(e, s, g) {
|
|
|
29977
30473
|
};
|
|
29978
30474
|
ArmServiceClient.prototype.getJointPositions = function n(e, s, g) {
|
|
29979
30475
|
arguments.length === 2 && (g = arguments[1]);
|
|
29980
|
-
var u = grpc$
|
|
30476
|
+
var u = grpc$t.unary(ArmService.GetJointPositions, {
|
|
29981
30477
|
request: e,
|
|
29982
30478
|
host: this.serviceHost,
|
|
29983
30479
|
metadata: s,
|
|
@@ -29985,7 +30481,7 @@ ArmServiceClient.prototype.getJointPositions = function n(e, s, g) {
|
|
|
29985
30481
|
debug: this.options.debug,
|
|
29986
30482
|
onEnd: function(p) {
|
|
29987
30483
|
if (g)
|
|
29988
|
-
if (p.status !== grpc$
|
|
30484
|
+
if (p.status !== grpc$t.Code.OK) {
|
|
29989
30485
|
var l = new Error(p.statusMessage);
|
|
29990
30486
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
29991
30487
|
} else
|
|
@@ -30000,7 +30496,7 @@ ArmServiceClient.prototype.getJointPositions = function n(e, s, g) {
|
|
|
30000
30496
|
};
|
|
30001
30497
|
ArmServiceClient.prototype.moveToJointPositions = function n(e, s, g) {
|
|
30002
30498
|
arguments.length === 2 && (g = arguments[1]);
|
|
30003
|
-
var u = grpc$
|
|
30499
|
+
var u = grpc$t.unary(ArmService.MoveToJointPositions, {
|
|
30004
30500
|
request: e,
|
|
30005
30501
|
host: this.serviceHost,
|
|
30006
30502
|
metadata: s,
|
|
@@ -30008,7 +30504,7 @@ ArmServiceClient.prototype.moveToJointPositions = function n(e, s, g) {
|
|
|
30008
30504
|
debug: this.options.debug,
|
|
30009
30505
|
onEnd: function(p) {
|
|
30010
30506
|
if (g)
|
|
30011
|
-
if (p.status !== grpc$
|
|
30507
|
+
if (p.status !== grpc$t.Code.OK) {
|
|
30012
30508
|
var l = new Error(p.statusMessage);
|
|
30013
30509
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
30014
30510
|
} else
|
|
@@ -30023,7 +30519,7 @@ ArmServiceClient.prototype.moveToJointPositions = function n(e, s, g) {
|
|
|
30023
30519
|
};
|
|
30024
30520
|
ArmServiceClient.prototype.stop = function n(e, s, g) {
|
|
30025
30521
|
arguments.length === 2 && (g = arguments[1]);
|
|
30026
|
-
var u = grpc$
|
|
30522
|
+
var u = grpc$t.unary(ArmService.Stop, {
|
|
30027
30523
|
request: e,
|
|
30028
30524
|
host: this.serviceHost,
|
|
30029
30525
|
metadata: s,
|
|
@@ -30031,7 +30527,7 @@ ArmServiceClient.prototype.stop = function n(e, s, g) {
|
|
|
30031
30527
|
debug: this.options.debug,
|
|
30032
30528
|
onEnd: function(p) {
|
|
30033
30529
|
if (g)
|
|
30034
|
-
if (p.status !== grpc$
|
|
30530
|
+
if (p.status !== grpc$t.Code.OK) {
|
|
30035
30531
|
var l = new Error(p.statusMessage);
|
|
30036
30532
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
30037
30533
|
} else
|
|
@@ -30046,7 +30542,7 @@ ArmServiceClient.prototype.stop = function n(e, s, g) {
|
|
|
30046
30542
|
};
|
|
30047
30543
|
ArmServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
30048
30544
|
arguments.length === 2 && (g = arguments[1]);
|
|
30049
|
-
var u = grpc$
|
|
30545
|
+
var u = grpc$t.unary(ArmService.IsMoving, {
|
|
30050
30546
|
request: e,
|
|
30051
30547
|
host: this.serviceHost,
|
|
30052
30548
|
metadata: s,
|
|
@@ -30054,7 +30550,7 @@ ArmServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
|
30054
30550
|
debug: this.options.debug,
|
|
30055
30551
|
onEnd: function(p) {
|
|
30056
30552
|
if (g)
|
|
30057
|
-
if (p.status !== grpc$
|
|
30553
|
+
if (p.status !== grpc$t.Code.OK) {
|
|
30058
30554
|
var l = new Error(p.statusMessage);
|
|
30059
30555
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
30060
30556
|
} else
|
|
@@ -30069,7 +30565,7 @@ ArmServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
|
30069
30565
|
};
|
|
30070
30566
|
ArmServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
30071
30567
|
arguments.length === 2 && (g = arguments[1]);
|
|
30072
|
-
var u = grpc$
|
|
30568
|
+
var u = grpc$t.unary(ArmService.DoCommand, {
|
|
30073
30569
|
request: e,
|
|
30074
30570
|
host: this.serviceHost,
|
|
30075
30571
|
metadata: s,
|
|
@@ -30077,7 +30573,7 @@ ArmServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
30077
30573
|
debug: this.options.debug,
|
|
30078
30574
|
onEnd: function(p) {
|
|
30079
30575
|
if (g)
|
|
30080
|
-
if (p.status !== grpc$
|
|
30576
|
+
if (p.status !== grpc$t.Code.OK) {
|
|
30081
30577
|
var l = new Error(p.statusMessage);
|
|
30082
30578
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
30083
30579
|
} else
|
|
@@ -30092,7 +30588,7 @@ ArmServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
30092
30588
|
};
|
|
30093
30589
|
ArmServiceClient.prototype.getKinematics = function n(e, s, g) {
|
|
30094
30590
|
arguments.length === 2 && (g = arguments[1]);
|
|
30095
|
-
var u = grpc$
|
|
30591
|
+
var u = grpc$t.unary(ArmService.GetKinematics, {
|
|
30096
30592
|
request: e,
|
|
30097
30593
|
host: this.serviceHost,
|
|
30098
30594
|
metadata: s,
|
|
@@ -30100,7 +30596,7 @@ ArmServiceClient.prototype.getKinematics = function n(e, s, g) {
|
|
|
30100
30596
|
debug: this.options.debug,
|
|
30101
30597
|
onEnd: function(p) {
|
|
30102
30598
|
if (g)
|
|
30103
|
-
if (p.status !== grpc$
|
|
30599
|
+
if (p.status !== grpc$t.Code.OK) {
|
|
30104
30600
|
var l = new Error(p.statusMessage);
|
|
30105
30601
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
30106
30602
|
} else
|
|
@@ -30115,7 +30611,7 @@ ArmServiceClient.prototype.getKinematics = function n(e, s, g) {
|
|
|
30115
30611
|
};
|
|
30116
30612
|
ArmServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
30117
30613
|
arguments.length === 2 && (g = arguments[1]);
|
|
30118
|
-
var u = grpc$
|
|
30614
|
+
var u = grpc$t.unary(ArmService.GetGeometries, {
|
|
30119
30615
|
request: e,
|
|
30120
30616
|
host: this.serviceHost,
|
|
30121
30617
|
metadata: s,
|
|
@@ -30123,7 +30619,7 @@ ArmServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
|
30123
30619
|
debug: this.options.debug,
|
|
30124
30620
|
onEnd: function(p) {
|
|
30125
30621
|
if (g)
|
|
30126
|
-
if (p.status !== grpc$
|
|
30622
|
+
if (p.status !== grpc$t.Code.OK) {
|
|
30127
30623
|
var l = new Error(p.statusMessage);
|
|
30128
30624
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
30129
30625
|
} else
|
|
@@ -30981,7 +31477,7 @@ var ArmServiceClient_1 = ArmServiceClient, base_pb = {};
|
|
|
30981
31477
|
}, s.object.extend(n, proto.viam.component.base.v1);
|
|
30982
31478
|
})(base_pb);
|
|
30983
31479
|
const pb$g = /* @__PURE__ */ getDefaultExportFromCjs(base_pb);
|
|
30984
|
-
var component_base_v1_base_pb = base_pb, common_v1_common_pb$m = common_pb, grpc$
|
|
31480
|
+
var component_base_v1_base_pb = base_pb, common_v1_common_pb$m = common_pb, grpc$s = grpcWebClient_umdExports$1.grpc, BaseService = function() {
|
|
30985
31481
|
function n() {
|
|
30986
31482
|
}
|
|
30987
31483
|
return n.serviceName = "viam.component.base.v1.BaseService", n;
|
|
@@ -31063,7 +31559,7 @@ function BaseServiceClient(n, e) {
|
|
|
31063
31559
|
}
|
|
31064
31560
|
BaseServiceClient.prototype.moveStraight = function n(e, s, g) {
|
|
31065
31561
|
arguments.length === 2 && (g = arguments[1]);
|
|
31066
|
-
var u = grpc$
|
|
31562
|
+
var u = grpc$s.unary(BaseService.MoveStraight, {
|
|
31067
31563
|
request: e,
|
|
31068
31564
|
host: this.serviceHost,
|
|
31069
31565
|
metadata: s,
|
|
@@ -31071,7 +31567,7 @@ BaseServiceClient.prototype.moveStraight = function n(e, s, g) {
|
|
|
31071
31567
|
debug: this.options.debug,
|
|
31072
31568
|
onEnd: function(p) {
|
|
31073
31569
|
if (g)
|
|
31074
|
-
if (p.status !== grpc$
|
|
31570
|
+
if (p.status !== grpc$s.Code.OK) {
|
|
31075
31571
|
var l = new Error(p.statusMessage);
|
|
31076
31572
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
31077
31573
|
} else
|
|
@@ -31086,7 +31582,7 @@ BaseServiceClient.prototype.moveStraight = function n(e, s, g) {
|
|
|
31086
31582
|
};
|
|
31087
31583
|
BaseServiceClient.prototype.spin = function n(e, s, g) {
|
|
31088
31584
|
arguments.length === 2 && (g = arguments[1]);
|
|
31089
|
-
var u = grpc$
|
|
31585
|
+
var u = grpc$s.unary(BaseService.Spin, {
|
|
31090
31586
|
request: e,
|
|
31091
31587
|
host: this.serviceHost,
|
|
31092
31588
|
metadata: s,
|
|
@@ -31094,7 +31590,7 @@ BaseServiceClient.prototype.spin = function n(e, s, g) {
|
|
|
31094
31590
|
debug: this.options.debug,
|
|
31095
31591
|
onEnd: function(p) {
|
|
31096
31592
|
if (g)
|
|
31097
|
-
if (p.status !== grpc$
|
|
31593
|
+
if (p.status !== grpc$s.Code.OK) {
|
|
31098
31594
|
var l = new Error(p.statusMessage);
|
|
31099
31595
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
31100
31596
|
} else
|
|
@@ -31109,7 +31605,7 @@ BaseServiceClient.prototype.spin = function n(e, s, g) {
|
|
|
31109
31605
|
};
|
|
31110
31606
|
BaseServiceClient.prototype.setPower = function n(e, s, g) {
|
|
31111
31607
|
arguments.length === 2 && (g = arguments[1]);
|
|
31112
|
-
var u = grpc$
|
|
31608
|
+
var u = grpc$s.unary(BaseService.SetPower, {
|
|
31113
31609
|
request: e,
|
|
31114
31610
|
host: this.serviceHost,
|
|
31115
31611
|
metadata: s,
|
|
@@ -31117,7 +31613,7 @@ BaseServiceClient.prototype.setPower = function n(e, s, g) {
|
|
|
31117
31613
|
debug: this.options.debug,
|
|
31118
31614
|
onEnd: function(p) {
|
|
31119
31615
|
if (g)
|
|
31120
|
-
if (p.status !== grpc$
|
|
31616
|
+
if (p.status !== grpc$s.Code.OK) {
|
|
31121
31617
|
var l = new Error(p.statusMessage);
|
|
31122
31618
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
31123
31619
|
} else
|
|
@@ -31132,7 +31628,7 @@ BaseServiceClient.prototype.setPower = function n(e, s, g) {
|
|
|
31132
31628
|
};
|
|
31133
31629
|
BaseServiceClient.prototype.setVelocity = function n(e, s, g) {
|
|
31134
31630
|
arguments.length === 2 && (g = arguments[1]);
|
|
31135
|
-
var u = grpc$
|
|
31631
|
+
var u = grpc$s.unary(BaseService.SetVelocity, {
|
|
31136
31632
|
request: e,
|
|
31137
31633
|
host: this.serviceHost,
|
|
31138
31634
|
metadata: s,
|
|
@@ -31140,7 +31636,7 @@ BaseServiceClient.prototype.setVelocity = function n(e, s, g) {
|
|
|
31140
31636
|
debug: this.options.debug,
|
|
31141
31637
|
onEnd: function(p) {
|
|
31142
31638
|
if (g)
|
|
31143
|
-
if (p.status !== grpc$
|
|
31639
|
+
if (p.status !== grpc$s.Code.OK) {
|
|
31144
31640
|
var l = new Error(p.statusMessage);
|
|
31145
31641
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
31146
31642
|
} else
|
|
@@ -31155,7 +31651,7 @@ BaseServiceClient.prototype.setVelocity = function n(e, s, g) {
|
|
|
31155
31651
|
};
|
|
31156
31652
|
BaseServiceClient.prototype.stop = function n(e, s, g) {
|
|
31157
31653
|
arguments.length === 2 && (g = arguments[1]);
|
|
31158
|
-
var u = grpc$
|
|
31654
|
+
var u = grpc$s.unary(BaseService.Stop, {
|
|
31159
31655
|
request: e,
|
|
31160
31656
|
host: this.serviceHost,
|
|
31161
31657
|
metadata: s,
|
|
@@ -31163,7 +31659,7 @@ BaseServiceClient.prototype.stop = function n(e, s, g) {
|
|
|
31163
31659
|
debug: this.options.debug,
|
|
31164
31660
|
onEnd: function(p) {
|
|
31165
31661
|
if (g)
|
|
31166
|
-
if (p.status !== grpc$
|
|
31662
|
+
if (p.status !== grpc$s.Code.OK) {
|
|
31167
31663
|
var l = new Error(p.statusMessage);
|
|
31168
31664
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
31169
31665
|
} else
|
|
@@ -31178,7 +31674,7 @@ BaseServiceClient.prototype.stop = function n(e, s, g) {
|
|
|
31178
31674
|
};
|
|
31179
31675
|
BaseServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
31180
31676
|
arguments.length === 2 && (g = arguments[1]);
|
|
31181
|
-
var u = grpc$
|
|
31677
|
+
var u = grpc$s.unary(BaseService.IsMoving, {
|
|
31182
31678
|
request: e,
|
|
31183
31679
|
host: this.serviceHost,
|
|
31184
31680
|
metadata: s,
|
|
@@ -31186,7 +31682,7 @@ BaseServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
|
31186
31682
|
debug: this.options.debug,
|
|
31187
31683
|
onEnd: function(p) {
|
|
31188
31684
|
if (g)
|
|
31189
|
-
if (p.status !== grpc$
|
|
31685
|
+
if (p.status !== grpc$s.Code.OK) {
|
|
31190
31686
|
var l = new Error(p.statusMessage);
|
|
31191
31687
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
31192
31688
|
} else
|
|
@@ -31201,7 +31697,7 @@ BaseServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
|
31201
31697
|
};
|
|
31202
31698
|
BaseServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
31203
31699
|
arguments.length === 2 && (g = arguments[1]);
|
|
31204
|
-
var u = grpc$
|
|
31700
|
+
var u = grpc$s.unary(BaseService.DoCommand, {
|
|
31205
31701
|
request: e,
|
|
31206
31702
|
host: this.serviceHost,
|
|
31207
31703
|
metadata: s,
|
|
@@ -31209,7 +31705,7 @@ BaseServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
31209
31705
|
debug: this.options.debug,
|
|
31210
31706
|
onEnd: function(p) {
|
|
31211
31707
|
if (g)
|
|
31212
|
-
if (p.status !== grpc$
|
|
31708
|
+
if (p.status !== grpc$s.Code.OK) {
|
|
31213
31709
|
var l = new Error(p.statusMessage);
|
|
31214
31710
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
31215
31711
|
} else
|
|
@@ -31224,7 +31720,7 @@ BaseServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
31224
31720
|
};
|
|
31225
31721
|
BaseServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
31226
31722
|
arguments.length === 2 && (g = arguments[1]);
|
|
31227
|
-
var u = grpc$
|
|
31723
|
+
var u = grpc$s.unary(BaseService.GetGeometries, {
|
|
31228
31724
|
request: e,
|
|
31229
31725
|
host: this.serviceHost,
|
|
31230
31726
|
metadata: s,
|
|
@@ -31232,7 +31728,7 @@ BaseServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
|
31232
31728
|
debug: this.options.debug,
|
|
31233
31729
|
onEnd: function(p) {
|
|
31234
31730
|
if (g)
|
|
31235
|
-
if (p.status !== grpc$
|
|
31731
|
+
if (p.status !== grpc$s.Code.OK) {
|
|
31236
31732
|
var l = new Error(p.statusMessage);
|
|
31237
31733
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
31238
31734
|
} else
|
|
@@ -31247,7 +31743,7 @@ BaseServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
|
31247
31743
|
};
|
|
31248
31744
|
BaseServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
31249
31745
|
arguments.length === 2 && (g = arguments[1]);
|
|
31250
|
-
var u = grpc$
|
|
31746
|
+
var u = grpc$s.unary(BaseService.GetProperties, {
|
|
31251
31747
|
request: e,
|
|
31252
31748
|
host: this.serviceHost,
|
|
31253
31749
|
metadata: s,
|
|
@@ -31255,7 +31751,7 @@ BaseServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
|
31255
31751
|
debug: this.options.debug,
|
|
31256
31752
|
onEnd: function(p) {
|
|
31257
31753
|
if (g)
|
|
31258
|
-
if (p.status !== grpc$
|
|
31754
|
+
if (p.status !== grpc$s.Code.OK) {
|
|
31259
31755
|
var l = new Error(p.statusMessage);
|
|
31260
31756
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
31261
31757
|
} else
|
|
@@ -32840,7 +33336,7 @@ var BaseServiceClient_1 = BaseServiceClient, board_pb = {};
|
|
|
32840
33336
|
}, s.object.extend(n, proto.viam.component.board.v1);
|
|
32841
33337
|
})(board_pb);
|
|
32842
33338
|
const pb$f = /* @__PURE__ */ getDefaultExportFromCjs(board_pb);
|
|
32843
|
-
var component_board_v1_board_pb = board_pb, common_v1_common_pb$l = common_pb, grpc$
|
|
33339
|
+
var component_board_v1_board_pb = board_pb, common_v1_common_pb$l = common_pb, grpc$r = grpcWebClient_umdExports$1.grpc, BoardService = function() {
|
|
32844
33340
|
function n() {
|
|
32845
33341
|
}
|
|
32846
33342
|
return n.serviceName = "viam.component.board.v1.BoardService", n;
|
|
@@ -32954,7 +33450,7 @@ function BoardServiceClient(n, e) {
|
|
|
32954
33450
|
}
|
|
32955
33451
|
BoardServiceClient.prototype.setGPIO = function n(e, s, g) {
|
|
32956
33452
|
arguments.length === 2 && (g = arguments[1]);
|
|
32957
|
-
var u = grpc$
|
|
33453
|
+
var u = grpc$r.unary(BoardService.SetGPIO, {
|
|
32958
33454
|
request: e,
|
|
32959
33455
|
host: this.serviceHost,
|
|
32960
33456
|
metadata: s,
|
|
@@ -32962,7 +33458,7 @@ BoardServiceClient.prototype.setGPIO = function n(e, s, g) {
|
|
|
32962
33458
|
debug: this.options.debug,
|
|
32963
33459
|
onEnd: function(p) {
|
|
32964
33460
|
if (g)
|
|
32965
|
-
if (p.status !== grpc$
|
|
33461
|
+
if (p.status !== grpc$r.Code.OK) {
|
|
32966
33462
|
var l = new Error(p.statusMessage);
|
|
32967
33463
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
32968
33464
|
} else
|
|
@@ -32977,7 +33473,7 @@ BoardServiceClient.prototype.setGPIO = function n(e, s, g) {
|
|
|
32977
33473
|
};
|
|
32978
33474
|
BoardServiceClient.prototype.getGPIO = function n(e, s, g) {
|
|
32979
33475
|
arguments.length === 2 && (g = arguments[1]);
|
|
32980
|
-
var u = grpc$
|
|
33476
|
+
var u = grpc$r.unary(BoardService.GetGPIO, {
|
|
32981
33477
|
request: e,
|
|
32982
33478
|
host: this.serviceHost,
|
|
32983
33479
|
metadata: s,
|
|
@@ -32985,7 +33481,7 @@ BoardServiceClient.prototype.getGPIO = function n(e, s, g) {
|
|
|
32985
33481
|
debug: this.options.debug,
|
|
32986
33482
|
onEnd: function(p) {
|
|
32987
33483
|
if (g)
|
|
32988
|
-
if (p.status !== grpc$
|
|
33484
|
+
if (p.status !== grpc$r.Code.OK) {
|
|
32989
33485
|
var l = new Error(p.statusMessage);
|
|
32990
33486
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
32991
33487
|
} else
|
|
@@ -33000,7 +33496,7 @@ BoardServiceClient.prototype.getGPIO = function n(e, s, g) {
|
|
|
33000
33496
|
};
|
|
33001
33497
|
BoardServiceClient.prototype.pWM = function n(e, s, g) {
|
|
33002
33498
|
arguments.length === 2 && (g = arguments[1]);
|
|
33003
|
-
var u = grpc$
|
|
33499
|
+
var u = grpc$r.unary(BoardService.PWM, {
|
|
33004
33500
|
request: e,
|
|
33005
33501
|
host: this.serviceHost,
|
|
33006
33502
|
metadata: s,
|
|
@@ -33008,7 +33504,7 @@ BoardServiceClient.prototype.pWM = function n(e, s, g) {
|
|
|
33008
33504
|
debug: this.options.debug,
|
|
33009
33505
|
onEnd: function(p) {
|
|
33010
33506
|
if (g)
|
|
33011
|
-
if (p.status !== grpc$
|
|
33507
|
+
if (p.status !== grpc$r.Code.OK) {
|
|
33012
33508
|
var l = new Error(p.statusMessage);
|
|
33013
33509
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
33014
33510
|
} else
|
|
@@ -33023,7 +33519,7 @@ BoardServiceClient.prototype.pWM = function n(e, s, g) {
|
|
|
33023
33519
|
};
|
|
33024
33520
|
BoardServiceClient.prototype.setPWM = function n(e, s, g) {
|
|
33025
33521
|
arguments.length === 2 && (g = arguments[1]);
|
|
33026
|
-
var u = grpc$
|
|
33522
|
+
var u = grpc$r.unary(BoardService.SetPWM, {
|
|
33027
33523
|
request: e,
|
|
33028
33524
|
host: this.serviceHost,
|
|
33029
33525
|
metadata: s,
|
|
@@ -33031,7 +33527,7 @@ BoardServiceClient.prototype.setPWM = function n(e, s, g) {
|
|
|
33031
33527
|
debug: this.options.debug,
|
|
33032
33528
|
onEnd: function(p) {
|
|
33033
33529
|
if (g)
|
|
33034
|
-
if (p.status !== grpc$
|
|
33530
|
+
if (p.status !== grpc$r.Code.OK) {
|
|
33035
33531
|
var l = new Error(p.statusMessage);
|
|
33036
33532
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
33037
33533
|
} else
|
|
@@ -33046,7 +33542,7 @@ BoardServiceClient.prototype.setPWM = function n(e, s, g) {
|
|
|
33046
33542
|
};
|
|
33047
33543
|
BoardServiceClient.prototype.pWMFrequency = function n(e, s, g) {
|
|
33048
33544
|
arguments.length === 2 && (g = arguments[1]);
|
|
33049
|
-
var u = grpc$
|
|
33545
|
+
var u = grpc$r.unary(BoardService.PWMFrequency, {
|
|
33050
33546
|
request: e,
|
|
33051
33547
|
host: this.serviceHost,
|
|
33052
33548
|
metadata: s,
|
|
@@ -33054,7 +33550,7 @@ BoardServiceClient.prototype.pWMFrequency = function n(e, s, g) {
|
|
|
33054
33550
|
debug: this.options.debug,
|
|
33055
33551
|
onEnd: function(p) {
|
|
33056
33552
|
if (g)
|
|
33057
|
-
if (p.status !== grpc$
|
|
33553
|
+
if (p.status !== grpc$r.Code.OK) {
|
|
33058
33554
|
var l = new Error(p.statusMessage);
|
|
33059
33555
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
33060
33556
|
} else
|
|
@@ -33069,7 +33565,7 @@ BoardServiceClient.prototype.pWMFrequency = function n(e, s, g) {
|
|
|
33069
33565
|
};
|
|
33070
33566
|
BoardServiceClient.prototype.setPWMFrequency = function n(e, s, g) {
|
|
33071
33567
|
arguments.length === 2 && (g = arguments[1]);
|
|
33072
|
-
var u = grpc$
|
|
33568
|
+
var u = grpc$r.unary(BoardService.SetPWMFrequency, {
|
|
33073
33569
|
request: e,
|
|
33074
33570
|
host: this.serviceHost,
|
|
33075
33571
|
metadata: s,
|
|
@@ -33077,7 +33573,7 @@ BoardServiceClient.prototype.setPWMFrequency = function n(e, s, g) {
|
|
|
33077
33573
|
debug: this.options.debug,
|
|
33078
33574
|
onEnd: function(p) {
|
|
33079
33575
|
if (g)
|
|
33080
|
-
if (p.status !== grpc$
|
|
33576
|
+
if (p.status !== grpc$r.Code.OK) {
|
|
33081
33577
|
var l = new Error(p.statusMessage);
|
|
33082
33578
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
33083
33579
|
} else
|
|
@@ -33092,7 +33588,7 @@ BoardServiceClient.prototype.setPWMFrequency = function n(e, s, g) {
|
|
|
33092
33588
|
};
|
|
33093
33589
|
BoardServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
33094
33590
|
arguments.length === 2 && (g = arguments[1]);
|
|
33095
|
-
var u = grpc$
|
|
33591
|
+
var u = grpc$r.unary(BoardService.DoCommand, {
|
|
33096
33592
|
request: e,
|
|
33097
33593
|
host: this.serviceHost,
|
|
33098
33594
|
metadata: s,
|
|
@@ -33100,7 +33596,7 @@ BoardServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
33100
33596
|
debug: this.options.debug,
|
|
33101
33597
|
onEnd: function(p) {
|
|
33102
33598
|
if (g)
|
|
33103
|
-
if (p.status !== grpc$
|
|
33599
|
+
if (p.status !== grpc$r.Code.OK) {
|
|
33104
33600
|
var l = new Error(p.statusMessage);
|
|
33105
33601
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
33106
33602
|
} else
|
|
@@ -33115,7 +33611,7 @@ BoardServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
33115
33611
|
};
|
|
33116
33612
|
BoardServiceClient.prototype.readAnalogReader = function n(e, s, g) {
|
|
33117
33613
|
arguments.length === 2 && (g = arguments[1]);
|
|
33118
|
-
var u = grpc$
|
|
33614
|
+
var u = grpc$r.unary(BoardService.ReadAnalogReader, {
|
|
33119
33615
|
request: e,
|
|
33120
33616
|
host: this.serviceHost,
|
|
33121
33617
|
metadata: s,
|
|
@@ -33123,7 +33619,7 @@ BoardServiceClient.prototype.readAnalogReader = function n(e, s, g) {
|
|
|
33123
33619
|
debug: this.options.debug,
|
|
33124
33620
|
onEnd: function(p) {
|
|
33125
33621
|
if (g)
|
|
33126
|
-
if (p.status !== grpc$
|
|
33622
|
+
if (p.status !== grpc$r.Code.OK) {
|
|
33127
33623
|
var l = new Error(p.statusMessage);
|
|
33128
33624
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
33129
33625
|
} else
|
|
@@ -33138,7 +33634,7 @@ BoardServiceClient.prototype.readAnalogReader = function n(e, s, g) {
|
|
|
33138
33634
|
};
|
|
33139
33635
|
BoardServiceClient.prototype.writeAnalog = function n(e, s, g) {
|
|
33140
33636
|
arguments.length === 2 && (g = arguments[1]);
|
|
33141
|
-
var u = grpc$
|
|
33637
|
+
var u = grpc$r.unary(BoardService.WriteAnalog, {
|
|
33142
33638
|
request: e,
|
|
33143
33639
|
host: this.serviceHost,
|
|
33144
33640
|
metadata: s,
|
|
@@ -33146,7 +33642,7 @@ BoardServiceClient.prototype.writeAnalog = function n(e, s, g) {
|
|
|
33146
33642
|
debug: this.options.debug,
|
|
33147
33643
|
onEnd: function(p) {
|
|
33148
33644
|
if (g)
|
|
33149
|
-
if (p.status !== grpc$
|
|
33645
|
+
if (p.status !== grpc$r.Code.OK) {
|
|
33150
33646
|
var l = new Error(p.statusMessage);
|
|
33151
33647
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
33152
33648
|
} else
|
|
@@ -33161,7 +33657,7 @@ BoardServiceClient.prototype.writeAnalog = function n(e, s, g) {
|
|
|
33161
33657
|
};
|
|
33162
33658
|
BoardServiceClient.prototype.getDigitalInterruptValue = function n(e, s, g) {
|
|
33163
33659
|
arguments.length === 2 && (g = arguments[1]);
|
|
33164
|
-
var u = grpc$
|
|
33660
|
+
var u = grpc$r.unary(BoardService.GetDigitalInterruptValue, {
|
|
33165
33661
|
request: e,
|
|
33166
33662
|
host: this.serviceHost,
|
|
33167
33663
|
metadata: s,
|
|
@@ -33169,7 +33665,7 @@ BoardServiceClient.prototype.getDigitalInterruptValue = function n(e, s, g) {
|
|
|
33169
33665
|
debug: this.options.debug,
|
|
33170
33666
|
onEnd: function(p) {
|
|
33171
33667
|
if (g)
|
|
33172
|
-
if (p.status !== grpc$
|
|
33668
|
+
if (p.status !== grpc$r.Code.OK) {
|
|
33173
33669
|
var l = new Error(p.statusMessage);
|
|
33174
33670
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
33175
33671
|
} else
|
|
@@ -33187,7 +33683,7 @@ BoardServiceClient.prototype.streamTicks = function n(e, s) {
|
|
|
33187
33683
|
data: [],
|
|
33188
33684
|
end: [],
|
|
33189
33685
|
status: []
|
|
33190
|
-
}, u = grpc$
|
|
33686
|
+
}, u = grpc$r.invoke(BoardService.StreamTicks, {
|
|
33191
33687
|
request: e,
|
|
33192
33688
|
host: this.serviceHost,
|
|
33193
33689
|
metadata: s,
|
|
@@ -33217,7 +33713,7 @@ BoardServiceClient.prototype.streamTicks = function n(e, s) {
|
|
|
33217
33713
|
};
|
|
33218
33714
|
BoardServiceClient.prototype.setPowerMode = function n(e, s, g) {
|
|
33219
33715
|
arguments.length === 2 && (g = arguments[1]);
|
|
33220
|
-
var u = grpc$
|
|
33716
|
+
var u = grpc$r.unary(BoardService.SetPowerMode, {
|
|
33221
33717
|
request: e,
|
|
33222
33718
|
host: this.serviceHost,
|
|
33223
33719
|
metadata: s,
|
|
@@ -33225,7 +33721,7 @@ BoardServiceClient.prototype.setPowerMode = function n(e, s, g) {
|
|
|
33225
33721
|
debug: this.options.debug,
|
|
33226
33722
|
onEnd: function(p) {
|
|
33227
33723
|
if (g)
|
|
33228
|
-
if (p.status !== grpc$
|
|
33724
|
+
if (p.status !== grpc$r.Code.OK) {
|
|
33229
33725
|
var l = new Error(p.statusMessage);
|
|
33230
33726
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
33231
33727
|
} else
|
|
@@ -33240,7 +33736,7 @@ BoardServiceClient.prototype.setPowerMode = function n(e, s, g) {
|
|
|
33240
33736
|
};
|
|
33241
33737
|
BoardServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
33242
33738
|
arguments.length === 2 && (g = arguments[1]);
|
|
33243
|
-
var u = grpc$
|
|
33739
|
+
var u = grpc$r.unary(BoardService.GetGeometries, {
|
|
33244
33740
|
request: e,
|
|
33245
33741
|
host: this.serviceHost,
|
|
33246
33742
|
metadata: s,
|
|
@@ -33248,7 +33744,7 @@ BoardServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
|
33248
33744
|
debug: this.options.debug,
|
|
33249
33745
|
onEnd: function(p) {
|
|
33250
33746
|
if (g)
|
|
33251
|
-
if (p.status !== grpc$
|
|
33747
|
+
if (p.status !== grpc$r.Code.OK) {
|
|
33252
33748
|
var l = new Error(p.statusMessage);
|
|
33253
33749
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
33254
33750
|
} else
|
|
@@ -33645,7 +34141,7 @@ var BoardServiceClient_1 = BoardServiceClient, encoder_pb = {};
|
|
|
33645
34141
|
}, s.object.extend(n, proto.viam.component.encoder.v1);
|
|
33646
34142
|
})(encoder_pb);
|
|
33647
34143
|
const encoderApi = /* @__PURE__ */ getDefaultExportFromCjs(encoder_pb);
|
|
33648
|
-
var component_encoder_v1_encoder_pb = encoder_pb, common_v1_common_pb$k = common_pb, grpc$
|
|
34144
|
+
var component_encoder_v1_encoder_pb = encoder_pb, common_v1_common_pb$k = common_pb, grpc$q = grpcWebClient_umdExports$1.grpc, EncoderService = function() {
|
|
33649
34145
|
function n() {
|
|
33650
34146
|
}
|
|
33651
34147
|
return n.serviceName = "viam.component.encoder.v1.EncoderService", n;
|
|
@@ -33695,7 +34191,7 @@ function EncoderServiceClient(n, e) {
|
|
|
33695
34191
|
}
|
|
33696
34192
|
EncoderServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
33697
34193
|
arguments.length === 2 && (g = arguments[1]);
|
|
33698
|
-
var u = grpc$
|
|
34194
|
+
var u = grpc$q.unary(EncoderService.GetPosition, {
|
|
33699
34195
|
request: e,
|
|
33700
34196
|
host: this.serviceHost,
|
|
33701
34197
|
metadata: s,
|
|
@@ -33703,7 +34199,7 @@ EncoderServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
|
33703
34199
|
debug: this.options.debug,
|
|
33704
34200
|
onEnd: function(p) {
|
|
33705
34201
|
if (g)
|
|
33706
|
-
if (p.status !== grpc$
|
|
34202
|
+
if (p.status !== grpc$q.Code.OK) {
|
|
33707
34203
|
var l = new Error(p.statusMessage);
|
|
33708
34204
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
33709
34205
|
} else
|
|
@@ -33718,7 +34214,7 @@ EncoderServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
|
33718
34214
|
};
|
|
33719
34215
|
EncoderServiceClient.prototype.resetPosition = function n(e, s, g) {
|
|
33720
34216
|
arguments.length === 2 && (g = arguments[1]);
|
|
33721
|
-
var u = grpc$
|
|
34217
|
+
var u = grpc$q.unary(EncoderService.ResetPosition, {
|
|
33722
34218
|
request: e,
|
|
33723
34219
|
host: this.serviceHost,
|
|
33724
34220
|
metadata: s,
|
|
@@ -33726,7 +34222,7 @@ EncoderServiceClient.prototype.resetPosition = function n(e, s, g) {
|
|
|
33726
34222
|
debug: this.options.debug,
|
|
33727
34223
|
onEnd: function(p) {
|
|
33728
34224
|
if (g)
|
|
33729
|
-
if (p.status !== grpc$
|
|
34225
|
+
if (p.status !== grpc$q.Code.OK) {
|
|
33730
34226
|
var l = new Error(p.statusMessage);
|
|
33731
34227
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
33732
34228
|
} else
|
|
@@ -33741,7 +34237,7 @@ EncoderServiceClient.prototype.resetPosition = function n(e, s, g) {
|
|
|
33741
34237
|
};
|
|
33742
34238
|
EncoderServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
33743
34239
|
arguments.length === 2 && (g = arguments[1]);
|
|
33744
|
-
var u = grpc$
|
|
34240
|
+
var u = grpc$q.unary(EncoderService.GetProperties, {
|
|
33745
34241
|
request: e,
|
|
33746
34242
|
host: this.serviceHost,
|
|
33747
34243
|
metadata: s,
|
|
@@ -33749,7 +34245,7 @@ EncoderServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
|
33749
34245
|
debug: this.options.debug,
|
|
33750
34246
|
onEnd: function(p) {
|
|
33751
34247
|
if (g)
|
|
33752
|
-
if (p.status !== grpc$
|
|
34248
|
+
if (p.status !== grpc$q.Code.OK) {
|
|
33753
34249
|
var l = new Error(p.statusMessage);
|
|
33754
34250
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
33755
34251
|
} else
|
|
@@ -33764,7 +34260,7 @@ EncoderServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
|
33764
34260
|
};
|
|
33765
34261
|
EncoderServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
33766
34262
|
arguments.length === 2 && (g = arguments[1]);
|
|
33767
|
-
var u = grpc$
|
|
34263
|
+
var u = grpc$q.unary(EncoderService.DoCommand, {
|
|
33768
34264
|
request: e,
|
|
33769
34265
|
host: this.serviceHost,
|
|
33770
34266
|
metadata: s,
|
|
@@ -33772,7 +34268,7 @@ EncoderServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
33772
34268
|
debug: this.options.debug,
|
|
33773
34269
|
onEnd: function(p) {
|
|
33774
34270
|
if (g)
|
|
33775
|
-
if (p.status !== grpc$
|
|
34271
|
+
if (p.status !== grpc$q.Code.OK) {
|
|
33776
34272
|
var l = new Error(p.statusMessage);
|
|
33777
34273
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
33778
34274
|
} else
|
|
@@ -33787,7 +34283,7 @@ EncoderServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
33787
34283
|
};
|
|
33788
34284
|
EncoderServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
33789
34285
|
arguments.length === 2 && (g = arguments[1]);
|
|
33790
|
-
var u = grpc$
|
|
34286
|
+
var u = grpc$q.unary(EncoderService.GetGeometries, {
|
|
33791
34287
|
request: e,
|
|
33792
34288
|
host: this.serviceHost,
|
|
33793
34289
|
metadata: s,
|
|
@@ -33795,7 +34291,7 @@ EncoderServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
|
33795
34291
|
debug: this.options.debug,
|
|
33796
34292
|
onEnd: function(p) {
|
|
33797
34293
|
if (g)
|
|
33798
|
-
if (p.status !== grpc$
|
|
34294
|
+
if (p.status !== grpc$q.Code.OK) {
|
|
33799
34295
|
var l = new Error(p.statusMessage);
|
|
33800
34296
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
33801
34297
|
} else
|
|
@@ -34559,7 +35055,7 @@ var EncoderServiceClient_1 = EncoderServiceClient, gantry_pb = {};
|
|
|
34559
35055
|
}, s.object.extend(n, proto.viam.component.gantry.v1);
|
|
34560
35056
|
})(gantry_pb);
|
|
34561
35057
|
const pb$e = /* @__PURE__ */ getDefaultExportFromCjs(gantry_pb);
|
|
34562
|
-
var component_gantry_v1_gantry_pb = gantry_pb, common_v1_common_pb$j = common_pb, grpc$
|
|
35058
|
+
var component_gantry_v1_gantry_pb = gantry_pb, common_v1_common_pb$j = common_pb, grpc$p = grpcWebClient_umdExports$1.grpc, GantryService = function() {
|
|
34563
35059
|
function n() {
|
|
34564
35060
|
}
|
|
34565
35061
|
return n.serviceName = "viam.component.gantry.v1.GantryService", n;
|
|
@@ -34633,7 +35129,7 @@ function GantryServiceClient(n, e) {
|
|
|
34633
35129
|
}
|
|
34634
35130
|
GantryServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
34635
35131
|
arguments.length === 2 && (g = arguments[1]);
|
|
34636
|
-
var u = grpc$
|
|
35132
|
+
var u = grpc$p.unary(GantryService.GetPosition, {
|
|
34637
35133
|
request: e,
|
|
34638
35134
|
host: this.serviceHost,
|
|
34639
35135
|
metadata: s,
|
|
@@ -34641,7 +35137,7 @@ GantryServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
|
34641
35137
|
debug: this.options.debug,
|
|
34642
35138
|
onEnd: function(p) {
|
|
34643
35139
|
if (g)
|
|
34644
|
-
if (p.status !== grpc$
|
|
35140
|
+
if (p.status !== grpc$p.Code.OK) {
|
|
34645
35141
|
var l = new Error(p.statusMessage);
|
|
34646
35142
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
34647
35143
|
} else
|
|
@@ -34656,7 +35152,7 @@ GantryServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
|
34656
35152
|
};
|
|
34657
35153
|
GantryServiceClient.prototype.moveToPosition = function n(e, s, g) {
|
|
34658
35154
|
arguments.length === 2 && (g = arguments[1]);
|
|
34659
|
-
var u = grpc$
|
|
35155
|
+
var u = grpc$p.unary(GantryService.MoveToPosition, {
|
|
34660
35156
|
request: e,
|
|
34661
35157
|
host: this.serviceHost,
|
|
34662
35158
|
metadata: s,
|
|
@@ -34664,7 +35160,7 @@ GantryServiceClient.prototype.moveToPosition = function n(e, s, g) {
|
|
|
34664
35160
|
debug: this.options.debug,
|
|
34665
35161
|
onEnd: function(p) {
|
|
34666
35162
|
if (g)
|
|
34667
|
-
if (p.status !== grpc$
|
|
35163
|
+
if (p.status !== grpc$p.Code.OK) {
|
|
34668
35164
|
var l = new Error(p.statusMessage);
|
|
34669
35165
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
34670
35166
|
} else
|
|
@@ -34679,7 +35175,7 @@ GantryServiceClient.prototype.moveToPosition = function n(e, s, g) {
|
|
|
34679
35175
|
};
|
|
34680
35176
|
GantryServiceClient.prototype.home = function n(e, s, g) {
|
|
34681
35177
|
arguments.length === 2 && (g = arguments[1]);
|
|
34682
|
-
var u = grpc$
|
|
35178
|
+
var u = grpc$p.unary(GantryService.Home, {
|
|
34683
35179
|
request: e,
|
|
34684
35180
|
host: this.serviceHost,
|
|
34685
35181
|
metadata: s,
|
|
@@ -34687,7 +35183,7 @@ GantryServiceClient.prototype.home = function n(e, s, g) {
|
|
|
34687
35183
|
debug: this.options.debug,
|
|
34688
35184
|
onEnd: function(p) {
|
|
34689
35185
|
if (g)
|
|
34690
|
-
if (p.status !== grpc$
|
|
35186
|
+
if (p.status !== grpc$p.Code.OK) {
|
|
34691
35187
|
var l = new Error(p.statusMessage);
|
|
34692
35188
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
34693
35189
|
} else
|
|
@@ -34702,7 +35198,7 @@ GantryServiceClient.prototype.home = function n(e, s, g) {
|
|
|
34702
35198
|
};
|
|
34703
35199
|
GantryServiceClient.prototype.getLengths = function n(e, s, g) {
|
|
34704
35200
|
arguments.length === 2 && (g = arguments[1]);
|
|
34705
|
-
var u = grpc$
|
|
35201
|
+
var u = grpc$p.unary(GantryService.GetLengths, {
|
|
34706
35202
|
request: e,
|
|
34707
35203
|
host: this.serviceHost,
|
|
34708
35204
|
metadata: s,
|
|
@@ -34710,7 +35206,7 @@ GantryServiceClient.prototype.getLengths = function n(e, s, g) {
|
|
|
34710
35206
|
debug: this.options.debug,
|
|
34711
35207
|
onEnd: function(p) {
|
|
34712
35208
|
if (g)
|
|
34713
|
-
if (p.status !== grpc$
|
|
35209
|
+
if (p.status !== grpc$p.Code.OK) {
|
|
34714
35210
|
var l = new Error(p.statusMessage);
|
|
34715
35211
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
34716
35212
|
} else
|
|
@@ -34725,7 +35221,7 @@ GantryServiceClient.prototype.getLengths = function n(e, s, g) {
|
|
|
34725
35221
|
};
|
|
34726
35222
|
GantryServiceClient.prototype.stop = function n(e, s, g) {
|
|
34727
35223
|
arguments.length === 2 && (g = arguments[1]);
|
|
34728
|
-
var u = grpc$
|
|
35224
|
+
var u = grpc$p.unary(GantryService.Stop, {
|
|
34729
35225
|
request: e,
|
|
34730
35226
|
host: this.serviceHost,
|
|
34731
35227
|
metadata: s,
|
|
@@ -34733,7 +35229,7 @@ GantryServiceClient.prototype.stop = function n(e, s, g) {
|
|
|
34733
35229
|
debug: this.options.debug,
|
|
34734
35230
|
onEnd: function(p) {
|
|
34735
35231
|
if (g)
|
|
34736
|
-
if (p.status !== grpc$
|
|
35232
|
+
if (p.status !== grpc$p.Code.OK) {
|
|
34737
35233
|
var l = new Error(p.statusMessage);
|
|
34738
35234
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
34739
35235
|
} else
|
|
@@ -34748,7 +35244,7 @@ GantryServiceClient.prototype.stop = function n(e, s, g) {
|
|
|
34748
35244
|
};
|
|
34749
35245
|
GantryServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
34750
35246
|
arguments.length === 2 && (g = arguments[1]);
|
|
34751
|
-
var u = grpc$
|
|
35247
|
+
var u = grpc$p.unary(GantryService.IsMoving, {
|
|
34752
35248
|
request: e,
|
|
34753
35249
|
host: this.serviceHost,
|
|
34754
35250
|
metadata: s,
|
|
@@ -34756,7 +35252,7 @@ GantryServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
|
34756
35252
|
debug: this.options.debug,
|
|
34757
35253
|
onEnd: function(p) {
|
|
34758
35254
|
if (g)
|
|
34759
|
-
if (p.status !== grpc$
|
|
35255
|
+
if (p.status !== grpc$p.Code.OK) {
|
|
34760
35256
|
var l = new Error(p.statusMessage);
|
|
34761
35257
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
34762
35258
|
} else
|
|
@@ -34771,7 +35267,7 @@ GantryServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
|
34771
35267
|
};
|
|
34772
35268
|
GantryServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
34773
35269
|
arguments.length === 2 && (g = arguments[1]);
|
|
34774
|
-
var u = grpc$
|
|
35270
|
+
var u = grpc$p.unary(GantryService.DoCommand, {
|
|
34775
35271
|
request: e,
|
|
34776
35272
|
host: this.serviceHost,
|
|
34777
35273
|
metadata: s,
|
|
@@ -34779,7 +35275,7 @@ GantryServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
34779
35275
|
debug: this.options.debug,
|
|
34780
35276
|
onEnd: function(p) {
|
|
34781
35277
|
if (g)
|
|
34782
|
-
if (p.status !== grpc$
|
|
35278
|
+
if (p.status !== grpc$p.Code.OK) {
|
|
34783
35279
|
var l = new Error(p.statusMessage);
|
|
34784
35280
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
34785
35281
|
} else
|
|
@@ -34794,7 +35290,7 @@ GantryServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
34794
35290
|
};
|
|
34795
35291
|
GantryServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
34796
35292
|
arguments.length === 2 && (g = arguments[1]);
|
|
34797
|
-
var u = grpc$
|
|
35293
|
+
var u = grpc$p.unary(GantryService.GetGeometries, {
|
|
34798
35294
|
request: e,
|
|
34799
35295
|
host: this.serviceHost,
|
|
34800
35296
|
metadata: s,
|
|
@@ -34802,7 +35298,7 @@ GantryServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
|
34802
35298
|
debug: this.options.debug,
|
|
34803
35299
|
onEnd: function(p) {
|
|
34804
35300
|
if (g)
|
|
34805
|
-
if (p.status !== grpc$
|
|
35301
|
+
if (p.status !== grpc$p.Code.OK) {
|
|
34806
35302
|
var l = new Error(p.statusMessage);
|
|
34807
35303
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
34808
35304
|
} else
|
|
@@ -34821,7 +35317,7 @@ var GantryServiceClient_1 = GantryServiceClient, generic_pb$1 = {}, jspb$2 = goo
|
|
|
34821
35317
|
goog$2.object.extend(proto, common_v1_common_pb$i);
|
|
34822
35318
|
var google_api_annotations_pb$2 = annotations_pb$1;
|
|
34823
35319
|
goog$2.object.extend(proto, google_api_annotations_pb$2);
|
|
34824
|
-
var common_v1_common_pb$h = common_pb, grpc$
|
|
35320
|
+
var common_v1_common_pb$h = common_pb, grpc$o = grpcWebClient_umdExports$1.grpc, GenericService$1 = function() {
|
|
34825
35321
|
function n() {
|
|
34826
35322
|
}
|
|
34827
35323
|
return n.serviceName = "viam.component.generic.v1.GenericService", n;
|
|
@@ -34847,7 +35343,7 @@ function GenericServiceClient$1(n, e) {
|
|
|
34847
35343
|
}
|
|
34848
35344
|
GenericServiceClient$1.prototype.doCommand = function n(e, s, g) {
|
|
34849
35345
|
arguments.length === 2 && (g = arguments[1]);
|
|
34850
|
-
var u = grpc$
|
|
35346
|
+
var u = grpc$o.unary(GenericService$1.DoCommand, {
|
|
34851
35347
|
request: e,
|
|
34852
35348
|
host: this.serviceHost,
|
|
34853
35349
|
metadata: s,
|
|
@@ -34855,7 +35351,7 @@ GenericServiceClient$1.prototype.doCommand = function n(e, s, g) {
|
|
|
34855
35351
|
debug: this.options.debug,
|
|
34856
35352
|
onEnd: function(p) {
|
|
34857
35353
|
if (g)
|
|
34858
|
-
if (p.status !== grpc$
|
|
35354
|
+
if (p.status !== grpc$o.Code.OK) {
|
|
34859
35355
|
var l = new Error(p.statusMessage);
|
|
34860
35356
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
34861
35357
|
} else
|
|
@@ -34870,7 +35366,7 @@ GenericServiceClient$1.prototype.doCommand = function n(e, s, g) {
|
|
|
34870
35366
|
};
|
|
34871
35367
|
GenericServiceClient$1.prototype.getGeometries = function n(e, s, g) {
|
|
34872
35368
|
arguments.length === 2 && (g = arguments[1]);
|
|
34873
|
-
var u = grpc$
|
|
35369
|
+
var u = grpc$o.unary(GenericService$1.GetGeometries, {
|
|
34874
35370
|
request: e,
|
|
34875
35371
|
host: this.serviceHost,
|
|
34876
35372
|
metadata: s,
|
|
@@ -34878,7 +35374,7 @@ GenericServiceClient$1.prototype.getGeometries = function n(e, s, g) {
|
|
|
34878
35374
|
debug: this.options.debug,
|
|
34879
35375
|
onEnd: function(p) {
|
|
34880
35376
|
if (g)
|
|
34881
|
-
if (p.status !== grpc$
|
|
35377
|
+
if (p.status !== grpc$o.Code.OK) {
|
|
34882
35378
|
var l = new Error(p.statusMessage);
|
|
34883
35379
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
34884
35380
|
} else
|
|
@@ -35301,7 +35797,7 @@ var GenericServiceClient_1$1 = GenericServiceClient$1, gripper_pb = {};
|
|
|
35301
35797
|
}, s.object.extend(n, proto.viam.component.gripper.v1);
|
|
35302
35798
|
})(gripper_pb);
|
|
35303
35799
|
const pb$d = /* @__PURE__ */ getDefaultExportFromCjs(gripper_pb);
|
|
35304
|
-
var component_gripper_v1_gripper_pb = gripper_pb, common_v1_common_pb$g = common_pb, grpc$
|
|
35800
|
+
var component_gripper_v1_gripper_pb = gripper_pb, common_v1_common_pb$g = common_pb, grpc$n = grpcWebClient_umdExports$1.grpc, GripperService = function() {
|
|
35305
35801
|
function n() {
|
|
35306
35802
|
}
|
|
35307
35803
|
return n.serviceName = "viam.component.gripper.v1.GripperService", n;
|
|
@@ -35359,7 +35855,7 @@ function GripperServiceClient(n, e) {
|
|
|
35359
35855
|
}
|
|
35360
35856
|
GripperServiceClient.prototype.open = function n(e, s, g) {
|
|
35361
35857
|
arguments.length === 2 && (g = arguments[1]);
|
|
35362
|
-
var u = grpc$
|
|
35858
|
+
var u = grpc$n.unary(GripperService.Open, {
|
|
35363
35859
|
request: e,
|
|
35364
35860
|
host: this.serviceHost,
|
|
35365
35861
|
metadata: s,
|
|
@@ -35367,7 +35863,7 @@ GripperServiceClient.prototype.open = function n(e, s, g) {
|
|
|
35367
35863
|
debug: this.options.debug,
|
|
35368
35864
|
onEnd: function(p) {
|
|
35369
35865
|
if (g)
|
|
35370
|
-
if (p.status !== grpc$
|
|
35866
|
+
if (p.status !== grpc$n.Code.OK) {
|
|
35371
35867
|
var l = new Error(p.statusMessage);
|
|
35372
35868
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
35373
35869
|
} else
|
|
@@ -35382,7 +35878,7 @@ GripperServiceClient.prototype.open = function n(e, s, g) {
|
|
|
35382
35878
|
};
|
|
35383
35879
|
GripperServiceClient.prototype.grab = function n(e, s, g) {
|
|
35384
35880
|
arguments.length === 2 && (g = arguments[1]);
|
|
35385
|
-
var u = grpc$
|
|
35881
|
+
var u = grpc$n.unary(GripperService.Grab, {
|
|
35386
35882
|
request: e,
|
|
35387
35883
|
host: this.serviceHost,
|
|
35388
35884
|
metadata: s,
|
|
@@ -35390,7 +35886,7 @@ GripperServiceClient.prototype.grab = function n(e, s, g) {
|
|
|
35390
35886
|
debug: this.options.debug,
|
|
35391
35887
|
onEnd: function(p) {
|
|
35392
35888
|
if (g)
|
|
35393
|
-
if (p.status !== grpc$
|
|
35889
|
+
if (p.status !== grpc$n.Code.OK) {
|
|
35394
35890
|
var l = new Error(p.statusMessage);
|
|
35395
35891
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
35396
35892
|
} else
|
|
@@ -35405,7 +35901,7 @@ GripperServiceClient.prototype.grab = function n(e, s, g) {
|
|
|
35405
35901
|
};
|
|
35406
35902
|
GripperServiceClient.prototype.stop = function n(e, s, g) {
|
|
35407
35903
|
arguments.length === 2 && (g = arguments[1]);
|
|
35408
|
-
var u = grpc$
|
|
35904
|
+
var u = grpc$n.unary(GripperService.Stop, {
|
|
35409
35905
|
request: e,
|
|
35410
35906
|
host: this.serviceHost,
|
|
35411
35907
|
metadata: s,
|
|
@@ -35413,7 +35909,7 @@ GripperServiceClient.prototype.stop = function n(e, s, g) {
|
|
|
35413
35909
|
debug: this.options.debug,
|
|
35414
35910
|
onEnd: function(p) {
|
|
35415
35911
|
if (g)
|
|
35416
|
-
if (p.status !== grpc$
|
|
35912
|
+
if (p.status !== grpc$n.Code.OK) {
|
|
35417
35913
|
var l = new Error(p.statusMessage);
|
|
35418
35914
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
35419
35915
|
} else
|
|
@@ -35428,7 +35924,7 @@ GripperServiceClient.prototype.stop = function n(e, s, g) {
|
|
|
35428
35924
|
};
|
|
35429
35925
|
GripperServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
35430
35926
|
arguments.length === 2 && (g = arguments[1]);
|
|
35431
|
-
var u = grpc$
|
|
35927
|
+
var u = grpc$n.unary(GripperService.IsMoving, {
|
|
35432
35928
|
request: e,
|
|
35433
35929
|
host: this.serviceHost,
|
|
35434
35930
|
metadata: s,
|
|
@@ -35436,7 +35932,7 @@ GripperServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
|
35436
35932
|
debug: this.options.debug,
|
|
35437
35933
|
onEnd: function(p) {
|
|
35438
35934
|
if (g)
|
|
35439
|
-
if (p.status !== grpc$
|
|
35935
|
+
if (p.status !== grpc$n.Code.OK) {
|
|
35440
35936
|
var l = new Error(p.statusMessage);
|
|
35441
35937
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
35442
35938
|
} else
|
|
@@ -35451,7 +35947,7 @@ GripperServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
|
35451
35947
|
};
|
|
35452
35948
|
GripperServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
35453
35949
|
arguments.length === 2 && (g = arguments[1]);
|
|
35454
|
-
var u = grpc$
|
|
35950
|
+
var u = grpc$n.unary(GripperService.DoCommand, {
|
|
35455
35951
|
request: e,
|
|
35456
35952
|
host: this.serviceHost,
|
|
35457
35953
|
metadata: s,
|
|
@@ -35459,7 +35955,7 @@ GripperServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
35459
35955
|
debug: this.options.debug,
|
|
35460
35956
|
onEnd: function(p) {
|
|
35461
35957
|
if (g)
|
|
35462
|
-
if (p.status !== grpc$
|
|
35958
|
+
if (p.status !== grpc$n.Code.OK) {
|
|
35463
35959
|
var l = new Error(p.statusMessage);
|
|
35464
35960
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
35465
35961
|
} else
|
|
@@ -35474,7 +35970,7 @@ GripperServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
35474
35970
|
};
|
|
35475
35971
|
GripperServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
35476
35972
|
arguments.length === 2 && (g = arguments[1]);
|
|
35477
|
-
var u = grpc$
|
|
35973
|
+
var u = grpc$n.unary(GripperService.GetGeometries, {
|
|
35478
35974
|
request: e,
|
|
35479
35975
|
host: this.serviceHost,
|
|
35480
35976
|
metadata: s,
|
|
@@ -35482,7 +35978,7 @@ GripperServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
|
35482
35978
|
debug: this.options.debug,
|
|
35483
35979
|
onEnd: function(p) {
|
|
35484
35980
|
if (g)
|
|
35485
|
-
if (p.status !== grpc$
|
|
35981
|
+
if (p.status !== grpc$n.Code.OK) {
|
|
35486
35982
|
var l = new Error(p.statusMessage);
|
|
35487
35983
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
35488
35984
|
} else
|
|
@@ -36225,7 +36721,7 @@ var GripperServiceClient_1 = GripperServiceClient, input_controller_pb$1 = {};
|
|
|
36225
36721
|
}, s.object.extend(n, proto.viam.component.inputcontroller.v1);
|
|
36226
36722
|
})(input_controller_pb$1);
|
|
36227
36723
|
const input_controller_pb = /* @__PURE__ */ getDefaultExportFromCjs(input_controller_pb$1);
|
|
36228
|
-
var component_inputcontroller_v1_input_controller_pb = input_controller_pb$1, common_v1_common_pb$f = common_pb, grpc$
|
|
36724
|
+
var component_inputcontroller_v1_input_controller_pb = input_controller_pb$1, common_v1_common_pb$f = common_pb, grpc$m = grpcWebClient_umdExports$1.grpc, InputControllerService = function() {
|
|
36229
36725
|
function n() {
|
|
36230
36726
|
}
|
|
36231
36727
|
return n.serviceName = "viam.component.inputcontroller.v1.InputControllerService", n;
|
|
@@ -36283,7 +36779,7 @@ function InputControllerServiceClient(n, e) {
|
|
|
36283
36779
|
}
|
|
36284
36780
|
InputControllerServiceClient.prototype.getControls = function n(e, s, g) {
|
|
36285
36781
|
arguments.length === 2 && (g = arguments[1]);
|
|
36286
|
-
var u = grpc$
|
|
36782
|
+
var u = grpc$m.unary(InputControllerService.GetControls, {
|
|
36287
36783
|
request: e,
|
|
36288
36784
|
host: this.serviceHost,
|
|
36289
36785
|
metadata: s,
|
|
@@ -36291,7 +36787,7 @@ InputControllerServiceClient.prototype.getControls = function n(e, s, g) {
|
|
|
36291
36787
|
debug: this.options.debug,
|
|
36292
36788
|
onEnd: function(p) {
|
|
36293
36789
|
if (g)
|
|
36294
|
-
if (p.status !== grpc$
|
|
36790
|
+
if (p.status !== grpc$m.Code.OK) {
|
|
36295
36791
|
var l = new Error(p.statusMessage);
|
|
36296
36792
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
36297
36793
|
} else
|
|
@@ -36306,7 +36802,7 @@ InputControllerServiceClient.prototype.getControls = function n(e, s, g) {
|
|
|
36306
36802
|
};
|
|
36307
36803
|
InputControllerServiceClient.prototype.getEvents = function n(e, s, g) {
|
|
36308
36804
|
arguments.length === 2 && (g = arguments[1]);
|
|
36309
|
-
var u = grpc$
|
|
36805
|
+
var u = grpc$m.unary(InputControllerService.GetEvents, {
|
|
36310
36806
|
request: e,
|
|
36311
36807
|
host: this.serviceHost,
|
|
36312
36808
|
metadata: s,
|
|
@@ -36314,7 +36810,7 @@ InputControllerServiceClient.prototype.getEvents = function n(e, s, g) {
|
|
|
36314
36810
|
debug: this.options.debug,
|
|
36315
36811
|
onEnd: function(p) {
|
|
36316
36812
|
if (g)
|
|
36317
|
-
if (p.status !== grpc$
|
|
36813
|
+
if (p.status !== grpc$m.Code.OK) {
|
|
36318
36814
|
var l = new Error(p.statusMessage);
|
|
36319
36815
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
36320
36816
|
} else
|
|
@@ -36332,7 +36828,7 @@ InputControllerServiceClient.prototype.streamEvents = function n(e, s) {
|
|
|
36332
36828
|
data: [],
|
|
36333
36829
|
end: [],
|
|
36334
36830
|
status: []
|
|
36335
|
-
}, u = grpc$
|
|
36831
|
+
}, u = grpc$m.invoke(InputControllerService.StreamEvents, {
|
|
36336
36832
|
request: e,
|
|
36337
36833
|
host: this.serviceHost,
|
|
36338
36834
|
metadata: s,
|
|
@@ -36362,7 +36858,7 @@ InputControllerServiceClient.prototype.streamEvents = function n(e, s) {
|
|
|
36362
36858
|
};
|
|
36363
36859
|
InputControllerServiceClient.prototype.triggerEvent = function n(e, s, g) {
|
|
36364
36860
|
arguments.length === 2 && (g = arguments[1]);
|
|
36365
|
-
var u = grpc$
|
|
36861
|
+
var u = grpc$m.unary(InputControllerService.TriggerEvent, {
|
|
36366
36862
|
request: e,
|
|
36367
36863
|
host: this.serviceHost,
|
|
36368
36864
|
metadata: s,
|
|
@@ -36370,7 +36866,7 @@ InputControllerServiceClient.prototype.triggerEvent = function n(e, s, g) {
|
|
|
36370
36866
|
debug: this.options.debug,
|
|
36371
36867
|
onEnd: function(p) {
|
|
36372
36868
|
if (g)
|
|
36373
|
-
if (p.status !== grpc$
|
|
36869
|
+
if (p.status !== grpc$m.Code.OK) {
|
|
36374
36870
|
var l = new Error(p.statusMessage);
|
|
36375
36871
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
36376
36872
|
} else
|
|
@@ -36385,7 +36881,7 @@ InputControllerServiceClient.prototype.triggerEvent = function n(e, s, g) {
|
|
|
36385
36881
|
};
|
|
36386
36882
|
InputControllerServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
36387
36883
|
arguments.length === 2 && (g = arguments[1]);
|
|
36388
|
-
var u = grpc$
|
|
36884
|
+
var u = grpc$m.unary(InputControllerService.DoCommand, {
|
|
36389
36885
|
request: e,
|
|
36390
36886
|
host: this.serviceHost,
|
|
36391
36887
|
metadata: s,
|
|
@@ -36393,7 +36889,7 @@ InputControllerServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
36393
36889
|
debug: this.options.debug,
|
|
36394
36890
|
onEnd: function(p) {
|
|
36395
36891
|
if (g)
|
|
36396
|
-
if (p.status !== grpc$
|
|
36892
|
+
if (p.status !== grpc$m.Code.OK) {
|
|
36397
36893
|
var l = new Error(p.statusMessage);
|
|
36398
36894
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
36399
36895
|
} else
|
|
@@ -36408,7 +36904,7 @@ InputControllerServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
36408
36904
|
};
|
|
36409
36905
|
InputControllerServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
36410
36906
|
arguments.length === 2 && (g = arguments[1]);
|
|
36411
|
-
var u = grpc$
|
|
36907
|
+
var u = grpc$m.unary(InputControllerService.GetGeometries, {
|
|
36412
36908
|
request: e,
|
|
36413
36909
|
host: this.serviceHost,
|
|
36414
36910
|
metadata: s,
|
|
@@ -36416,7 +36912,7 @@ InputControllerServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
|
36416
36912
|
debug: this.options.debug,
|
|
36417
36913
|
onEnd: function(p) {
|
|
36418
36914
|
if (g)
|
|
36419
|
-
if (p.status !== grpc$
|
|
36915
|
+
if (p.status !== grpc$m.Code.OK) {
|
|
36420
36916
|
var l = new Error(p.statusMessage);
|
|
36421
36917
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
36422
36918
|
} else
|
|
@@ -37620,7 +38116,7 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motor_pb = {}
|
|
|
37620
38116
|
}, s.object.extend(n, proto.viam.component.motor.v1);
|
|
37621
38117
|
})(motor_pb);
|
|
37622
38118
|
const motorApi = /* @__PURE__ */ getDefaultExportFromCjs(motor_pb);
|
|
37623
|
-
var component_motor_v1_motor_pb = motor_pb, common_v1_common_pb$e = common_pb, grpc$
|
|
38119
|
+
var component_motor_v1_motor_pb = motor_pb, common_v1_common_pb$e = common_pb, grpc$l = grpcWebClient_umdExports$1.grpc, MotorService = function() {
|
|
37624
38120
|
function n() {
|
|
37625
38121
|
}
|
|
37626
38122
|
return n.serviceName = "viam.component.motor.v1.MotorService", n;
|
|
@@ -37726,7 +38222,7 @@ function MotorServiceClient(n, e) {
|
|
|
37726
38222
|
}
|
|
37727
38223
|
MotorServiceClient.prototype.setPower = function n(e, s, g) {
|
|
37728
38224
|
arguments.length === 2 && (g = arguments[1]);
|
|
37729
|
-
var u = grpc$
|
|
38225
|
+
var u = grpc$l.unary(MotorService.SetPower, {
|
|
37730
38226
|
request: e,
|
|
37731
38227
|
host: this.serviceHost,
|
|
37732
38228
|
metadata: s,
|
|
@@ -37734,7 +38230,7 @@ MotorServiceClient.prototype.setPower = function n(e, s, g) {
|
|
|
37734
38230
|
debug: this.options.debug,
|
|
37735
38231
|
onEnd: function(p) {
|
|
37736
38232
|
if (g)
|
|
37737
|
-
if (p.status !== grpc$
|
|
38233
|
+
if (p.status !== grpc$l.Code.OK) {
|
|
37738
38234
|
var l = new Error(p.statusMessage);
|
|
37739
38235
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
37740
38236
|
} else
|
|
@@ -37749,7 +38245,7 @@ MotorServiceClient.prototype.setPower = function n(e, s, g) {
|
|
|
37749
38245
|
};
|
|
37750
38246
|
MotorServiceClient.prototype.goFor = function n(e, s, g) {
|
|
37751
38247
|
arguments.length === 2 && (g = arguments[1]);
|
|
37752
|
-
var u = grpc$
|
|
38248
|
+
var u = grpc$l.unary(MotorService.GoFor, {
|
|
37753
38249
|
request: e,
|
|
37754
38250
|
host: this.serviceHost,
|
|
37755
38251
|
metadata: s,
|
|
@@ -37757,7 +38253,7 @@ MotorServiceClient.prototype.goFor = function n(e, s, g) {
|
|
|
37757
38253
|
debug: this.options.debug,
|
|
37758
38254
|
onEnd: function(p) {
|
|
37759
38255
|
if (g)
|
|
37760
|
-
if (p.status !== grpc$
|
|
38256
|
+
if (p.status !== grpc$l.Code.OK) {
|
|
37761
38257
|
var l = new Error(p.statusMessage);
|
|
37762
38258
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
37763
38259
|
} else
|
|
@@ -37772,7 +38268,7 @@ MotorServiceClient.prototype.goFor = function n(e, s, g) {
|
|
|
37772
38268
|
};
|
|
37773
38269
|
MotorServiceClient.prototype.goTo = function n(e, s, g) {
|
|
37774
38270
|
arguments.length === 2 && (g = arguments[1]);
|
|
37775
|
-
var u = grpc$
|
|
38271
|
+
var u = grpc$l.unary(MotorService.GoTo, {
|
|
37776
38272
|
request: e,
|
|
37777
38273
|
host: this.serviceHost,
|
|
37778
38274
|
metadata: s,
|
|
@@ -37780,7 +38276,7 @@ MotorServiceClient.prototype.goTo = function n(e, s, g) {
|
|
|
37780
38276
|
debug: this.options.debug,
|
|
37781
38277
|
onEnd: function(p) {
|
|
37782
38278
|
if (g)
|
|
37783
|
-
if (p.status !== grpc$
|
|
38279
|
+
if (p.status !== grpc$l.Code.OK) {
|
|
37784
38280
|
var l = new Error(p.statusMessage);
|
|
37785
38281
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
37786
38282
|
} else
|
|
@@ -37795,7 +38291,7 @@ MotorServiceClient.prototype.goTo = function n(e, s, g) {
|
|
|
37795
38291
|
};
|
|
37796
38292
|
MotorServiceClient.prototype.setRPM = function n(e, s, g) {
|
|
37797
38293
|
arguments.length === 2 && (g = arguments[1]);
|
|
37798
|
-
var u = grpc$
|
|
38294
|
+
var u = grpc$l.unary(MotorService.SetRPM, {
|
|
37799
38295
|
request: e,
|
|
37800
38296
|
host: this.serviceHost,
|
|
37801
38297
|
metadata: s,
|
|
@@ -37803,7 +38299,7 @@ MotorServiceClient.prototype.setRPM = function n(e, s, g) {
|
|
|
37803
38299
|
debug: this.options.debug,
|
|
37804
38300
|
onEnd: function(p) {
|
|
37805
38301
|
if (g)
|
|
37806
|
-
if (p.status !== grpc$
|
|
38302
|
+
if (p.status !== grpc$l.Code.OK) {
|
|
37807
38303
|
var l = new Error(p.statusMessage);
|
|
37808
38304
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
37809
38305
|
} else
|
|
@@ -37818,7 +38314,7 @@ MotorServiceClient.prototype.setRPM = function n(e, s, g) {
|
|
|
37818
38314
|
};
|
|
37819
38315
|
MotorServiceClient.prototype.resetZeroPosition = function n(e, s, g) {
|
|
37820
38316
|
arguments.length === 2 && (g = arguments[1]);
|
|
37821
|
-
var u = grpc$
|
|
38317
|
+
var u = grpc$l.unary(MotorService.ResetZeroPosition, {
|
|
37822
38318
|
request: e,
|
|
37823
38319
|
host: this.serviceHost,
|
|
37824
38320
|
metadata: s,
|
|
@@ -37826,7 +38322,7 @@ MotorServiceClient.prototype.resetZeroPosition = function n(e, s, g) {
|
|
|
37826
38322
|
debug: this.options.debug,
|
|
37827
38323
|
onEnd: function(p) {
|
|
37828
38324
|
if (g)
|
|
37829
|
-
if (p.status !== grpc$
|
|
38325
|
+
if (p.status !== grpc$l.Code.OK) {
|
|
37830
38326
|
var l = new Error(p.statusMessage);
|
|
37831
38327
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
37832
38328
|
} else
|
|
@@ -37841,7 +38337,7 @@ MotorServiceClient.prototype.resetZeroPosition = function n(e, s, g) {
|
|
|
37841
38337
|
};
|
|
37842
38338
|
MotorServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
37843
38339
|
arguments.length === 2 && (g = arguments[1]);
|
|
37844
|
-
var u = grpc$
|
|
38340
|
+
var u = grpc$l.unary(MotorService.GetPosition, {
|
|
37845
38341
|
request: e,
|
|
37846
38342
|
host: this.serviceHost,
|
|
37847
38343
|
metadata: s,
|
|
@@ -37849,7 +38345,7 @@ MotorServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
|
37849
38345
|
debug: this.options.debug,
|
|
37850
38346
|
onEnd: function(p) {
|
|
37851
38347
|
if (g)
|
|
37852
|
-
if (p.status !== grpc$
|
|
38348
|
+
if (p.status !== grpc$l.Code.OK) {
|
|
37853
38349
|
var l = new Error(p.statusMessage);
|
|
37854
38350
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
37855
38351
|
} else
|
|
@@ -37864,7 +38360,7 @@ MotorServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
|
37864
38360
|
};
|
|
37865
38361
|
MotorServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
37866
38362
|
arguments.length === 2 && (g = arguments[1]);
|
|
37867
|
-
var u = grpc$
|
|
38363
|
+
var u = grpc$l.unary(MotorService.GetProperties, {
|
|
37868
38364
|
request: e,
|
|
37869
38365
|
host: this.serviceHost,
|
|
37870
38366
|
metadata: s,
|
|
@@ -37872,7 +38368,7 @@ MotorServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
|
37872
38368
|
debug: this.options.debug,
|
|
37873
38369
|
onEnd: function(p) {
|
|
37874
38370
|
if (g)
|
|
37875
|
-
if (p.status !== grpc$
|
|
38371
|
+
if (p.status !== grpc$l.Code.OK) {
|
|
37876
38372
|
var l = new Error(p.statusMessage);
|
|
37877
38373
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
37878
38374
|
} else
|
|
@@ -37887,7 +38383,7 @@ MotorServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
|
37887
38383
|
};
|
|
37888
38384
|
MotorServiceClient.prototype.stop = function n(e, s, g) {
|
|
37889
38385
|
arguments.length === 2 && (g = arguments[1]);
|
|
37890
|
-
var u = grpc$
|
|
38386
|
+
var u = grpc$l.unary(MotorService.Stop, {
|
|
37891
38387
|
request: e,
|
|
37892
38388
|
host: this.serviceHost,
|
|
37893
38389
|
metadata: s,
|
|
@@ -37895,7 +38391,7 @@ MotorServiceClient.prototype.stop = function n(e, s, g) {
|
|
|
37895
38391
|
debug: this.options.debug,
|
|
37896
38392
|
onEnd: function(p) {
|
|
37897
38393
|
if (g)
|
|
37898
|
-
if (p.status !== grpc$
|
|
38394
|
+
if (p.status !== grpc$l.Code.OK) {
|
|
37899
38395
|
var l = new Error(p.statusMessage);
|
|
37900
38396
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
37901
38397
|
} else
|
|
@@ -37910,7 +38406,7 @@ MotorServiceClient.prototype.stop = function n(e, s, g) {
|
|
|
37910
38406
|
};
|
|
37911
38407
|
MotorServiceClient.prototype.isPowered = function n(e, s, g) {
|
|
37912
38408
|
arguments.length === 2 && (g = arguments[1]);
|
|
37913
|
-
var u = grpc$
|
|
38409
|
+
var u = grpc$l.unary(MotorService.IsPowered, {
|
|
37914
38410
|
request: e,
|
|
37915
38411
|
host: this.serviceHost,
|
|
37916
38412
|
metadata: s,
|
|
@@ -37918,7 +38414,7 @@ MotorServiceClient.prototype.isPowered = function n(e, s, g) {
|
|
|
37918
38414
|
debug: this.options.debug,
|
|
37919
38415
|
onEnd: function(p) {
|
|
37920
38416
|
if (g)
|
|
37921
|
-
if (p.status !== grpc$
|
|
38417
|
+
if (p.status !== grpc$l.Code.OK) {
|
|
37922
38418
|
var l = new Error(p.statusMessage);
|
|
37923
38419
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
37924
38420
|
} else
|
|
@@ -37933,7 +38429,7 @@ MotorServiceClient.prototype.isPowered = function n(e, s, g) {
|
|
|
37933
38429
|
};
|
|
37934
38430
|
MotorServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
37935
38431
|
arguments.length === 2 && (g = arguments[1]);
|
|
37936
|
-
var u = grpc$
|
|
38432
|
+
var u = grpc$l.unary(MotorService.IsMoving, {
|
|
37937
38433
|
request: e,
|
|
37938
38434
|
host: this.serviceHost,
|
|
37939
38435
|
metadata: s,
|
|
@@ -37941,7 +38437,7 @@ MotorServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
|
37941
38437
|
debug: this.options.debug,
|
|
37942
38438
|
onEnd: function(p) {
|
|
37943
38439
|
if (g)
|
|
37944
|
-
if (p.status !== grpc$
|
|
38440
|
+
if (p.status !== grpc$l.Code.OK) {
|
|
37945
38441
|
var l = new Error(p.statusMessage);
|
|
37946
38442
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
37947
38443
|
} else
|
|
@@ -37956,7 +38452,7 @@ MotorServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
|
37956
38452
|
};
|
|
37957
38453
|
MotorServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
37958
38454
|
arguments.length === 2 && (g = arguments[1]);
|
|
37959
|
-
var u = grpc$
|
|
38455
|
+
var u = grpc$l.unary(MotorService.DoCommand, {
|
|
37960
38456
|
request: e,
|
|
37961
38457
|
host: this.serviceHost,
|
|
37962
38458
|
metadata: s,
|
|
@@ -37964,7 +38460,7 @@ MotorServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
37964
38460
|
debug: this.options.debug,
|
|
37965
38461
|
onEnd: function(p) {
|
|
37966
38462
|
if (g)
|
|
37967
|
-
if (p.status !== grpc$
|
|
38463
|
+
if (p.status !== grpc$l.Code.OK) {
|
|
37968
38464
|
var l = new Error(p.statusMessage);
|
|
37969
38465
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
37970
38466
|
} else
|
|
@@ -37979,7 +38475,7 @@ MotorServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
37979
38475
|
};
|
|
37980
38476
|
MotorServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
37981
38477
|
arguments.length === 2 && (g = arguments[1]);
|
|
37982
|
-
var u = grpc$
|
|
38478
|
+
var u = grpc$l.unary(MotorService.GetGeometries, {
|
|
37983
38479
|
request: e,
|
|
37984
38480
|
host: this.serviceHost,
|
|
37985
38481
|
metadata: s,
|
|
@@ -37987,7 +38483,7 @@ MotorServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
|
37987
38483
|
debug: this.options.debug,
|
|
37988
38484
|
onEnd: function(p) {
|
|
37989
38485
|
if (g)
|
|
37990
|
-
if (p.status !== grpc$
|
|
38486
|
+
if (p.status !== grpc$l.Code.OK) {
|
|
37991
38487
|
var l = new Error(p.statusMessage);
|
|
37992
38488
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
37993
38489
|
} else
|
|
@@ -39103,7 +39599,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
|
|
|
39103
39599
|
}, s.object.extend(n, proto.viam.component.movementsensor.v1);
|
|
39104
39600
|
})(movementsensor_pb);
|
|
39105
39601
|
const pb$c = /* @__PURE__ */ getDefaultExportFromCjs(movementsensor_pb);
|
|
39106
|
-
var component_movementsensor_v1_movementsensor_pb = movementsensor_pb, common_v1_common_pb$d = common_pb, grpc$
|
|
39602
|
+
var component_movementsensor_v1_movementsensor_pb = movementsensor_pb, common_v1_common_pb$d = common_pb, grpc$k = grpcWebClient_umdExports$1.grpc, MovementSensorService = function() {
|
|
39107
39603
|
function n() {
|
|
39108
39604
|
}
|
|
39109
39605
|
return n.serviceName = "viam.component.movementsensor.v1.MovementSensorService", n;
|
|
@@ -39201,7 +39697,7 @@ function MovementSensorServiceClient(n, e) {
|
|
|
39201
39697
|
}
|
|
39202
39698
|
MovementSensorServiceClient.prototype.getLinearVelocity = function n(e, s, g) {
|
|
39203
39699
|
arguments.length === 2 && (g = arguments[1]);
|
|
39204
|
-
var u = grpc$
|
|
39700
|
+
var u = grpc$k.unary(MovementSensorService.GetLinearVelocity, {
|
|
39205
39701
|
request: e,
|
|
39206
39702
|
host: this.serviceHost,
|
|
39207
39703
|
metadata: s,
|
|
@@ -39209,7 +39705,7 @@ MovementSensorServiceClient.prototype.getLinearVelocity = function n(e, s, g) {
|
|
|
39209
39705
|
debug: this.options.debug,
|
|
39210
39706
|
onEnd: function(p) {
|
|
39211
39707
|
if (g)
|
|
39212
|
-
if (p.status !== grpc$
|
|
39708
|
+
if (p.status !== grpc$k.Code.OK) {
|
|
39213
39709
|
var l = new Error(p.statusMessage);
|
|
39214
39710
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39215
39711
|
} else
|
|
@@ -39224,7 +39720,7 @@ MovementSensorServiceClient.prototype.getLinearVelocity = function n(e, s, g) {
|
|
|
39224
39720
|
};
|
|
39225
39721
|
MovementSensorServiceClient.prototype.getAngularVelocity = function n(e, s, g) {
|
|
39226
39722
|
arguments.length === 2 && (g = arguments[1]);
|
|
39227
|
-
var u = grpc$
|
|
39723
|
+
var u = grpc$k.unary(MovementSensorService.GetAngularVelocity, {
|
|
39228
39724
|
request: e,
|
|
39229
39725
|
host: this.serviceHost,
|
|
39230
39726
|
metadata: s,
|
|
@@ -39232,7 +39728,7 @@ MovementSensorServiceClient.prototype.getAngularVelocity = function n(e, s, g) {
|
|
|
39232
39728
|
debug: this.options.debug,
|
|
39233
39729
|
onEnd: function(p) {
|
|
39234
39730
|
if (g)
|
|
39235
|
-
if (p.status !== grpc$
|
|
39731
|
+
if (p.status !== grpc$k.Code.OK) {
|
|
39236
39732
|
var l = new Error(p.statusMessage);
|
|
39237
39733
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39238
39734
|
} else
|
|
@@ -39247,7 +39743,7 @@ MovementSensorServiceClient.prototype.getAngularVelocity = function n(e, s, g) {
|
|
|
39247
39743
|
};
|
|
39248
39744
|
MovementSensorServiceClient.prototype.getCompassHeading = function n(e, s, g) {
|
|
39249
39745
|
arguments.length === 2 && (g = arguments[1]);
|
|
39250
|
-
var u = grpc$
|
|
39746
|
+
var u = grpc$k.unary(MovementSensorService.GetCompassHeading, {
|
|
39251
39747
|
request: e,
|
|
39252
39748
|
host: this.serviceHost,
|
|
39253
39749
|
metadata: s,
|
|
@@ -39255,7 +39751,7 @@ MovementSensorServiceClient.prototype.getCompassHeading = function n(e, s, g) {
|
|
|
39255
39751
|
debug: this.options.debug,
|
|
39256
39752
|
onEnd: function(p) {
|
|
39257
39753
|
if (g)
|
|
39258
|
-
if (p.status !== grpc$
|
|
39754
|
+
if (p.status !== grpc$k.Code.OK) {
|
|
39259
39755
|
var l = new Error(p.statusMessage);
|
|
39260
39756
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39261
39757
|
} else
|
|
@@ -39270,7 +39766,7 @@ MovementSensorServiceClient.prototype.getCompassHeading = function n(e, s, g) {
|
|
|
39270
39766
|
};
|
|
39271
39767
|
MovementSensorServiceClient.prototype.getOrientation = function n(e, s, g) {
|
|
39272
39768
|
arguments.length === 2 && (g = arguments[1]);
|
|
39273
|
-
var u = grpc$
|
|
39769
|
+
var u = grpc$k.unary(MovementSensorService.GetOrientation, {
|
|
39274
39770
|
request: e,
|
|
39275
39771
|
host: this.serviceHost,
|
|
39276
39772
|
metadata: s,
|
|
@@ -39278,7 +39774,7 @@ MovementSensorServiceClient.prototype.getOrientation = function n(e, s, g) {
|
|
|
39278
39774
|
debug: this.options.debug,
|
|
39279
39775
|
onEnd: function(p) {
|
|
39280
39776
|
if (g)
|
|
39281
|
-
if (p.status !== grpc$
|
|
39777
|
+
if (p.status !== grpc$k.Code.OK) {
|
|
39282
39778
|
var l = new Error(p.statusMessage);
|
|
39283
39779
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39284
39780
|
} else
|
|
@@ -39293,7 +39789,7 @@ MovementSensorServiceClient.prototype.getOrientation = function n(e, s, g) {
|
|
|
39293
39789
|
};
|
|
39294
39790
|
MovementSensorServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
39295
39791
|
arguments.length === 2 && (g = arguments[1]);
|
|
39296
|
-
var u = grpc$
|
|
39792
|
+
var u = grpc$k.unary(MovementSensorService.GetPosition, {
|
|
39297
39793
|
request: e,
|
|
39298
39794
|
host: this.serviceHost,
|
|
39299
39795
|
metadata: s,
|
|
@@ -39301,7 +39797,7 @@ MovementSensorServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
|
39301
39797
|
debug: this.options.debug,
|
|
39302
39798
|
onEnd: function(p) {
|
|
39303
39799
|
if (g)
|
|
39304
|
-
if (p.status !== grpc$
|
|
39800
|
+
if (p.status !== grpc$k.Code.OK) {
|
|
39305
39801
|
var l = new Error(p.statusMessage);
|
|
39306
39802
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39307
39803
|
} else
|
|
@@ -39316,7 +39812,7 @@ MovementSensorServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
|
39316
39812
|
};
|
|
39317
39813
|
MovementSensorServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
39318
39814
|
arguments.length === 2 && (g = arguments[1]);
|
|
39319
|
-
var u = grpc$
|
|
39815
|
+
var u = grpc$k.unary(MovementSensorService.GetProperties, {
|
|
39320
39816
|
request: e,
|
|
39321
39817
|
host: this.serviceHost,
|
|
39322
39818
|
metadata: s,
|
|
@@ -39324,7 +39820,7 @@ MovementSensorServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
|
39324
39820
|
debug: this.options.debug,
|
|
39325
39821
|
onEnd: function(p) {
|
|
39326
39822
|
if (g)
|
|
39327
|
-
if (p.status !== grpc$
|
|
39823
|
+
if (p.status !== grpc$k.Code.OK) {
|
|
39328
39824
|
var l = new Error(p.statusMessage);
|
|
39329
39825
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39330
39826
|
} else
|
|
@@ -39339,7 +39835,7 @@ MovementSensorServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
|
39339
39835
|
};
|
|
39340
39836
|
MovementSensorServiceClient.prototype.getAccuracy = function n(e, s, g) {
|
|
39341
39837
|
arguments.length === 2 && (g = arguments[1]);
|
|
39342
|
-
var u = grpc$
|
|
39838
|
+
var u = grpc$k.unary(MovementSensorService.GetAccuracy, {
|
|
39343
39839
|
request: e,
|
|
39344
39840
|
host: this.serviceHost,
|
|
39345
39841
|
metadata: s,
|
|
@@ -39347,7 +39843,7 @@ MovementSensorServiceClient.prototype.getAccuracy = function n(e, s, g) {
|
|
|
39347
39843
|
debug: this.options.debug,
|
|
39348
39844
|
onEnd: function(p) {
|
|
39349
39845
|
if (g)
|
|
39350
|
-
if (p.status !== grpc$
|
|
39846
|
+
if (p.status !== grpc$k.Code.OK) {
|
|
39351
39847
|
var l = new Error(p.statusMessage);
|
|
39352
39848
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39353
39849
|
} else
|
|
@@ -39362,7 +39858,7 @@ MovementSensorServiceClient.prototype.getAccuracy = function n(e, s, g) {
|
|
|
39362
39858
|
};
|
|
39363
39859
|
MovementSensorServiceClient.prototype.getLinearAcceleration = function n(e, s, g) {
|
|
39364
39860
|
arguments.length === 2 && (g = arguments[1]);
|
|
39365
|
-
var u = grpc$
|
|
39861
|
+
var u = grpc$k.unary(MovementSensorService.GetLinearAcceleration, {
|
|
39366
39862
|
request: e,
|
|
39367
39863
|
host: this.serviceHost,
|
|
39368
39864
|
metadata: s,
|
|
@@ -39370,7 +39866,7 @@ MovementSensorServiceClient.prototype.getLinearAcceleration = function n(e, s, g
|
|
|
39370
39866
|
debug: this.options.debug,
|
|
39371
39867
|
onEnd: function(p) {
|
|
39372
39868
|
if (g)
|
|
39373
|
-
if (p.status !== grpc$
|
|
39869
|
+
if (p.status !== grpc$k.Code.OK) {
|
|
39374
39870
|
var l = new Error(p.statusMessage);
|
|
39375
39871
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39376
39872
|
} else
|
|
@@ -39385,7 +39881,7 @@ MovementSensorServiceClient.prototype.getLinearAcceleration = function n(e, s, g
|
|
|
39385
39881
|
};
|
|
39386
39882
|
MovementSensorServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
39387
39883
|
arguments.length === 2 && (g = arguments[1]);
|
|
39388
|
-
var u = grpc$
|
|
39884
|
+
var u = grpc$k.unary(MovementSensorService.DoCommand, {
|
|
39389
39885
|
request: e,
|
|
39390
39886
|
host: this.serviceHost,
|
|
39391
39887
|
metadata: s,
|
|
@@ -39393,7 +39889,7 @@ MovementSensorServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
39393
39889
|
debug: this.options.debug,
|
|
39394
39890
|
onEnd: function(p) {
|
|
39395
39891
|
if (g)
|
|
39396
|
-
if (p.status !== grpc$
|
|
39892
|
+
if (p.status !== grpc$k.Code.OK) {
|
|
39397
39893
|
var l = new Error(p.statusMessage);
|
|
39398
39894
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39399
39895
|
} else
|
|
@@ -39408,7 +39904,7 @@ MovementSensorServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
39408
39904
|
};
|
|
39409
39905
|
MovementSensorServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
39410
39906
|
arguments.length === 2 && (g = arguments[1]);
|
|
39411
|
-
var u = grpc$
|
|
39907
|
+
var u = grpc$k.unary(MovementSensorService.GetGeometries, {
|
|
39412
39908
|
request: e,
|
|
39413
39909
|
host: this.serviceHost,
|
|
39414
39910
|
metadata: s,
|
|
@@ -39416,7 +39912,7 @@ MovementSensorServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
|
39416
39912
|
debug: this.options.debug,
|
|
39417
39913
|
onEnd: function(p) {
|
|
39418
39914
|
if (g)
|
|
39419
|
-
if (p.status !== grpc$
|
|
39915
|
+
if (p.status !== grpc$k.Code.OK) {
|
|
39420
39916
|
var l = new Error(p.statusMessage);
|
|
39421
39917
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39422
39918
|
} else
|
|
@@ -39431,7 +39927,7 @@ MovementSensorServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
|
39431
39927
|
};
|
|
39432
39928
|
MovementSensorServiceClient.prototype.getReadings = function n(e, s, g) {
|
|
39433
39929
|
arguments.length === 2 && (g = arguments[1]);
|
|
39434
|
-
var u = grpc$
|
|
39930
|
+
var u = grpc$k.unary(MovementSensorService.GetReadings, {
|
|
39435
39931
|
request: e,
|
|
39436
39932
|
host: this.serviceHost,
|
|
39437
39933
|
metadata: s,
|
|
@@ -39439,7 +39935,7 @@ MovementSensorServiceClient.prototype.getReadings = function n(e, s, g) {
|
|
|
39439
39935
|
debug: this.options.debug,
|
|
39440
39936
|
onEnd: function(p) {
|
|
39441
39937
|
if (g)
|
|
39442
|
-
if (p.status !== grpc$
|
|
39938
|
+
if (p.status !== grpc$k.Code.OK) {
|
|
39443
39939
|
var l = new Error(p.statusMessage);
|
|
39444
39940
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39445
39941
|
} else
|
|
@@ -39830,7 +40326,7 @@ var MovementSensorServiceClient_1 = MovementSensorServiceClient, powersensor_pb
|
|
|
39830
40326
|
}, s.object.extend(n, proto.viam.component.powersensor.v1);
|
|
39831
40327
|
})(powersensor_pb);
|
|
39832
40328
|
const pb$b = /* @__PURE__ */ getDefaultExportFromCjs(powersensor_pb);
|
|
39833
|
-
var component_powersensor_v1_powersensor_pb = powersensor_pb, common_v1_common_pb$c = common_pb, grpc$
|
|
40329
|
+
var component_powersensor_v1_powersensor_pb = powersensor_pb, common_v1_common_pb$c = common_pb, grpc$j = grpcWebClient_umdExports$1.grpc, PowerSensorService = function() {
|
|
39834
40330
|
function n() {
|
|
39835
40331
|
}
|
|
39836
40332
|
return n.serviceName = "viam.component.powersensor.v1.PowerSensorService", n;
|
|
@@ -39880,7 +40376,7 @@ function PowerSensorServiceClient(n, e) {
|
|
|
39880
40376
|
}
|
|
39881
40377
|
PowerSensorServiceClient.prototype.getVoltage = function n(e, s, g) {
|
|
39882
40378
|
arguments.length === 2 && (g = arguments[1]);
|
|
39883
|
-
var u = grpc$
|
|
40379
|
+
var u = grpc$j.unary(PowerSensorService.GetVoltage, {
|
|
39884
40380
|
request: e,
|
|
39885
40381
|
host: this.serviceHost,
|
|
39886
40382
|
metadata: s,
|
|
@@ -39888,7 +40384,7 @@ PowerSensorServiceClient.prototype.getVoltage = function n(e, s, g) {
|
|
|
39888
40384
|
debug: this.options.debug,
|
|
39889
40385
|
onEnd: function(p) {
|
|
39890
40386
|
if (g)
|
|
39891
|
-
if (p.status !== grpc$
|
|
40387
|
+
if (p.status !== grpc$j.Code.OK) {
|
|
39892
40388
|
var l = new Error(p.statusMessage);
|
|
39893
40389
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39894
40390
|
} else
|
|
@@ -39903,7 +40399,7 @@ PowerSensorServiceClient.prototype.getVoltage = function n(e, s, g) {
|
|
|
39903
40399
|
};
|
|
39904
40400
|
PowerSensorServiceClient.prototype.getCurrent = function n(e, s, g) {
|
|
39905
40401
|
arguments.length === 2 && (g = arguments[1]);
|
|
39906
|
-
var u = grpc$
|
|
40402
|
+
var u = grpc$j.unary(PowerSensorService.GetCurrent, {
|
|
39907
40403
|
request: e,
|
|
39908
40404
|
host: this.serviceHost,
|
|
39909
40405
|
metadata: s,
|
|
@@ -39911,7 +40407,7 @@ PowerSensorServiceClient.prototype.getCurrent = function n(e, s, g) {
|
|
|
39911
40407
|
debug: this.options.debug,
|
|
39912
40408
|
onEnd: function(p) {
|
|
39913
40409
|
if (g)
|
|
39914
|
-
if (p.status !== grpc$
|
|
40410
|
+
if (p.status !== grpc$j.Code.OK) {
|
|
39915
40411
|
var l = new Error(p.statusMessage);
|
|
39916
40412
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39917
40413
|
} else
|
|
@@ -39926,7 +40422,7 @@ PowerSensorServiceClient.prototype.getCurrent = function n(e, s, g) {
|
|
|
39926
40422
|
};
|
|
39927
40423
|
PowerSensorServiceClient.prototype.getPower = function n(e, s, g) {
|
|
39928
40424
|
arguments.length === 2 && (g = arguments[1]);
|
|
39929
|
-
var u = grpc$
|
|
40425
|
+
var u = grpc$j.unary(PowerSensorService.GetPower, {
|
|
39930
40426
|
request: e,
|
|
39931
40427
|
host: this.serviceHost,
|
|
39932
40428
|
metadata: s,
|
|
@@ -39934,7 +40430,7 @@ PowerSensorServiceClient.prototype.getPower = function n(e, s, g) {
|
|
|
39934
40430
|
debug: this.options.debug,
|
|
39935
40431
|
onEnd: function(p) {
|
|
39936
40432
|
if (g)
|
|
39937
|
-
if (p.status !== grpc$
|
|
40433
|
+
if (p.status !== grpc$j.Code.OK) {
|
|
39938
40434
|
var l = new Error(p.statusMessage);
|
|
39939
40435
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39940
40436
|
} else
|
|
@@ -39949,7 +40445,7 @@ PowerSensorServiceClient.prototype.getPower = function n(e, s, g) {
|
|
|
39949
40445
|
};
|
|
39950
40446
|
PowerSensorServiceClient.prototype.getReadings = function n(e, s, g) {
|
|
39951
40447
|
arguments.length === 2 && (g = arguments[1]);
|
|
39952
|
-
var u = grpc$
|
|
40448
|
+
var u = grpc$j.unary(PowerSensorService.GetReadings, {
|
|
39953
40449
|
request: e,
|
|
39954
40450
|
host: this.serviceHost,
|
|
39955
40451
|
metadata: s,
|
|
@@ -39957,7 +40453,7 @@ PowerSensorServiceClient.prototype.getReadings = function n(e, s, g) {
|
|
|
39957
40453
|
debug: this.options.debug,
|
|
39958
40454
|
onEnd: function(p) {
|
|
39959
40455
|
if (g)
|
|
39960
|
-
if (p.status !== grpc$
|
|
40456
|
+
if (p.status !== grpc$j.Code.OK) {
|
|
39961
40457
|
var l = new Error(p.statusMessage);
|
|
39962
40458
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39963
40459
|
} else
|
|
@@ -39972,7 +40468,7 @@ PowerSensorServiceClient.prototype.getReadings = function n(e, s, g) {
|
|
|
39972
40468
|
};
|
|
39973
40469
|
PowerSensorServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
39974
40470
|
arguments.length === 2 && (g = arguments[1]);
|
|
39975
|
-
var u = grpc$
|
|
40471
|
+
var u = grpc$j.unary(PowerSensorService.DoCommand, {
|
|
39976
40472
|
request: e,
|
|
39977
40473
|
host: this.serviceHost,
|
|
39978
40474
|
metadata: s,
|
|
@@ -39980,7 +40476,7 @@ PowerSensorServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
39980
40476
|
debug: this.options.debug,
|
|
39981
40477
|
onEnd: function(p) {
|
|
39982
40478
|
if (g)
|
|
39983
|
-
if (p.status !== grpc$
|
|
40479
|
+
if (p.status !== grpc$j.Code.OK) {
|
|
39984
40480
|
var l = new Error(p.statusMessage);
|
|
39985
40481
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
39986
40482
|
} else
|
|
@@ -40464,7 +40960,7 @@ var PowerSensorServiceClient_1 = PowerSensorServiceClient, servo_pb = {};
|
|
|
40464
40960
|
}, s.object.extend(n, proto.viam.component.servo.v1);
|
|
40465
40961
|
})(servo_pb);
|
|
40466
40962
|
const pb$a = /* @__PURE__ */ getDefaultExportFromCjs(servo_pb);
|
|
40467
|
-
var component_servo_v1_servo_pb = servo_pb, common_v1_common_pb$b = common_pb, grpc$
|
|
40963
|
+
var component_servo_v1_servo_pb = servo_pb, common_v1_common_pb$b = common_pb, grpc$i = grpcWebClient_umdExports$1.grpc, ServoService = function() {
|
|
40468
40964
|
function n() {
|
|
40469
40965
|
}
|
|
40470
40966
|
return n.serviceName = "viam.component.servo.v1.ServoService", n;
|
|
@@ -40522,7 +41018,7 @@ function ServoServiceClient(n, e) {
|
|
|
40522
41018
|
}
|
|
40523
41019
|
ServoServiceClient.prototype.move = function n(e, s, g) {
|
|
40524
41020
|
arguments.length === 2 && (g = arguments[1]);
|
|
40525
|
-
var u = grpc$
|
|
41021
|
+
var u = grpc$i.unary(ServoService.Move, {
|
|
40526
41022
|
request: e,
|
|
40527
41023
|
host: this.serviceHost,
|
|
40528
41024
|
metadata: s,
|
|
@@ -40530,7 +41026,7 @@ ServoServiceClient.prototype.move = function n(e, s, g) {
|
|
|
40530
41026
|
debug: this.options.debug,
|
|
40531
41027
|
onEnd: function(p) {
|
|
40532
41028
|
if (g)
|
|
40533
|
-
if (p.status !== grpc$
|
|
41029
|
+
if (p.status !== grpc$i.Code.OK) {
|
|
40534
41030
|
var l = new Error(p.statusMessage);
|
|
40535
41031
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
40536
41032
|
} else
|
|
@@ -40545,7 +41041,7 @@ ServoServiceClient.prototype.move = function n(e, s, g) {
|
|
|
40545
41041
|
};
|
|
40546
41042
|
ServoServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
40547
41043
|
arguments.length === 2 && (g = arguments[1]);
|
|
40548
|
-
var u = grpc$
|
|
41044
|
+
var u = grpc$i.unary(ServoService.GetPosition, {
|
|
40549
41045
|
request: e,
|
|
40550
41046
|
host: this.serviceHost,
|
|
40551
41047
|
metadata: s,
|
|
@@ -40553,7 +41049,7 @@ ServoServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
|
40553
41049
|
debug: this.options.debug,
|
|
40554
41050
|
onEnd: function(p) {
|
|
40555
41051
|
if (g)
|
|
40556
|
-
if (p.status !== grpc$
|
|
41052
|
+
if (p.status !== grpc$i.Code.OK) {
|
|
40557
41053
|
var l = new Error(p.statusMessage);
|
|
40558
41054
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
40559
41055
|
} else
|
|
@@ -40568,7 +41064,7 @@ ServoServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
|
40568
41064
|
};
|
|
40569
41065
|
ServoServiceClient.prototype.stop = function n(e, s, g) {
|
|
40570
41066
|
arguments.length === 2 && (g = arguments[1]);
|
|
40571
|
-
var u = grpc$
|
|
41067
|
+
var u = grpc$i.unary(ServoService.Stop, {
|
|
40572
41068
|
request: e,
|
|
40573
41069
|
host: this.serviceHost,
|
|
40574
41070
|
metadata: s,
|
|
@@ -40576,7 +41072,7 @@ ServoServiceClient.prototype.stop = function n(e, s, g) {
|
|
|
40576
41072
|
debug: this.options.debug,
|
|
40577
41073
|
onEnd: function(p) {
|
|
40578
41074
|
if (g)
|
|
40579
|
-
if (p.status !== grpc$
|
|
41075
|
+
if (p.status !== grpc$i.Code.OK) {
|
|
40580
41076
|
var l = new Error(p.statusMessage);
|
|
40581
41077
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
40582
41078
|
} else
|
|
@@ -40591,7 +41087,7 @@ ServoServiceClient.prototype.stop = function n(e, s, g) {
|
|
|
40591
41087
|
};
|
|
40592
41088
|
ServoServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
40593
41089
|
arguments.length === 2 && (g = arguments[1]);
|
|
40594
|
-
var u = grpc$
|
|
41090
|
+
var u = grpc$i.unary(ServoService.IsMoving, {
|
|
40595
41091
|
request: e,
|
|
40596
41092
|
host: this.serviceHost,
|
|
40597
41093
|
metadata: s,
|
|
@@ -40599,7 +41095,7 @@ ServoServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
|
40599
41095
|
debug: this.options.debug,
|
|
40600
41096
|
onEnd: function(p) {
|
|
40601
41097
|
if (g)
|
|
40602
|
-
if (p.status !== grpc$
|
|
41098
|
+
if (p.status !== grpc$i.Code.OK) {
|
|
40603
41099
|
var l = new Error(p.statusMessage);
|
|
40604
41100
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
40605
41101
|
} else
|
|
@@ -40614,7 +41110,7 @@ ServoServiceClient.prototype.isMoving = function n(e, s, g) {
|
|
|
40614
41110
|
};
|
|
40615
41111
|
ServoServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
40616
41112
|
arguments.length === 2 && (g = arguments[1]);
|
|
40617
|
-
var u = grpc$
|
|
41113
|
+
var u = grpc$i.unary(ServoService.DoCommand, {
|
|
40618
41114
|
request: e,
|
|
40619
41115
|
host: this.serviceHost,
|
|
40620
41116
|
metadata: s,
|
|
@@ -40622,7 +41118,7 @@ ServoServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
40622
41118
|
debug: this.options.debug,
|
|
40623
41119
|
onEnd: function(p) {
|
|
40624
41120
|
if (g)
|
|
40625
|
-
if (p.status !== grpc$
|
|
41121
|
+
if (p.status !== grpc$i.Code.OK) {
|
|
40626
41122
|
var l = new Error(p.statusMessage);
|
|
40627
41123
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
40628
41124
|
} else
|
|
@@ -40637,7 +41133,7 @@ ServoServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
40637
41133
|
};
|
|
40638
41134
|
ServoServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
40639
41135
|
arguments.length === 2 && (g = arguments[1]);
|
|
40640
|
-
var u = grpc$
|
|
41136
|
+
var u = grpc$i.unary(ServoService.GetGeometries, {
|
|
40641
41137
|
request: e,
|
|
40642
41138
|
host: this.serviceHost,
|
|
40643
41139
|
metadata: s,
|
|
@@ -40645,7 +41141,7 @@ ServoServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
|
40645
41141
|
debug: this.options.debug,
|
|
40646
41142
|
onEnd: function(p) {
|
|
40647
41143
|
if (g)
|
|
40648
|
-
if (p.status !== grpc$
|
|
41144
|
+
if (p.status !== grpc$i.Code.OK) {
|
|
40649
41145
|
var l = new Error(p.statusMessage);
|
|
40650
41146
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
40651
41147
|
} else
|
|
@@ -40658,7 +41154,7 @@ ServoServiceClient.prototype.getGeometries = function n(e, s, g) {
|
|
|
40658
41154
|
}
|
|
40659
41155
|
};
|
|
40660
41156
|
};
|
|
40661
|
-
var ServoServiceClient_1 = ServoServiceClient, robot_v1_robot_pb = robot_pb, grpc$
|
|
41157
|
+
var ServoServiceClient_1 = ServoServiceClient, robot_v1_robot_pb = robot_pb, grpc$h = grpcWebClient_umdExports$1.grpc, RobotService = function() {
|
|
40662
41158
|
function n() {
|
|
40663
41159
|
}
|
|
40664
41160
|
return n.serviceName = "viam.robot.v1.RobotService", n;
|
|
@@ -40836,7 +41332,7 @@ function RobotServiceClient(n, e) {
|
|
|
40836
41332
|
}
|
|
40837
41333
|
RobotServiceClient.prototype.getOperations = function n(e, s, g) {
|
|
40838
41334
|
arguments.length === 2 && (g = arguments[1]);
|
|
40839
|
-
var u = grpc$
|
|
41335
|
+
var u = grpc$h.unary(RobotService.GetOperations, {
|
|
40840
41336
|
request: e,
|
|
40841
41337
|
host: this.serviceHost,
|
|
40842
41338
|
metadata: s,
|
|
@@ -40844,7 +41340,7 @@ RobotServiceClient.prototype.getOperations = function n(e, s, g) {
|
|
|
40844
41340
|
debug: this.options.debug,
|
|
40845
41341
|
onEnd: function(p) {
|
|
40846
41342
|
if (g)
|
|
40847
|
-
if (p.status !== grpc$
|
|
41343
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
40848
41344
|
var l = new Error(p.statusMessage);
|
|
40849
41345
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
40850
41346
|
} else
|
|
@@ -40859,7 +41355,7 @@ RobotServiceClient.prototype.getOperations = function n(e, s, g) {
|
|
|
40859
41355
|
};
|
|
40860
41356
|
RobotServiceClient.prototype.getSessions = function n(e, s, g) {
|
|
40861
41357
|
arguments.length === 2 && (g = arguments[1]);
|
|
40862
|
-
var u = grpc$
|
|
41358
|
+
var u = grpc$h.unary(RobotService.GetSessions, {
|
|
40863
41359
|
request: e,
|
|
40864
41360
|
host: this.serviceHost,
|
|
40865
41361
|
metadata: s,
|
|
@@ -40867,7 +41363,7 @@ RobotServiceClient.prototype.getSessions = function n(e, s, g) {
|
|
|
40867
41363
|
debug: this.options.debug,
|
|
40868
41364
|
onEnd: function(p) {
|
|
40869
41365
|
if (g)
|
|
40870
|
-
if (p.status !== grpc$
|
|
41366
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
40871
41367
|
var l = new Error(p.statusMessage);
|
|
40872
41368
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
40873
41369
|
} else
|
|
@@ -40882,7 +41378,7 @@ RobotServiceClient.prototype.getSessions = function n(e, s, g) {
|
|
|
40882
41378
|
};
|
|
40883
41379
|
RobotServiceClient.prototype.resourceNames = function n(e, s, g) {
|
|
40884
41380
|
arguments.length === 2 && (g = arguments[1]);
|
|
40885
|
-
var u = grpc$
|
|
41381
|
+
var u = grpc$h.unary(RobotService.ResourceNames, {
|
|
40886
41382
|
request: e,
|
|
40887
41383
|
host: this.serviceHost,
|
|
40888
41384
|
metadata: s,
|
|
@@ -40890,7 +41386,7 @@ RobotServiceClient.prototype.resourceNames = function n(e, s, g) {
|
|
|
40890
41386
|
debug: this.options.debug,
|
|
40891
41387
|
onEnd: function(p) {
|
|
40892
41388
|
if (g)
|
|
40893
|
-
if (p.status !== grpc$
|
|
41389
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
40894
41390
|
var l = new Error(p.statusMessage);
|
|
40895
41391
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
40896
41392
|
} else
|
|
@@ -40905,7 +41401,7 @@ RobotServiceClient.prototype.resourceNames = function n(e, s, g) {
|
|
|
40905
41401
|
};
|
|
40906
41402
|
RobotServiceClient.prototype.resourceRPCSubtypes = function n(e, s, g) {
|
|
40907
41403
|
arguments.length === 2 && (g = arguments[1]);
|
|
40908
|
-
var u = grpc$
|
|
41404
|
+
var u = grpc$h.unary(RobotService.ResourceRPCSubtypes, {
|
|
40909
41405
|
request: e,
|
|
40910
41406
|
host: this.serviceHost,
|
|
40911
41407
|
metadata: s,
|
|
@@ -40913,7 +41409,7 @@ RobotServiceClient.prototype.resourceRPCSubtypes = function n(e, s, g) {
|
|
|
40913
41409
|
debug: this.options.debug,
|
|
40914
41410
|
onEnd: function(p) {
|
|
40915
41411
|
if (g)
|
|
40916
|
-
if (p.status !== grpc$
|
|
41412
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
40917
41413
|
var l = new Error(p.statusMessage);
|
|
40918
41414
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
40919
41415
|
} else
|
|
@@ -40928,7 +41424,7 @@ RobotServiceClient.prototype.resourceRPCSubtypes = function n(e, s, g) {
|
|
|
40928
41424
|
};
|
|
40929
41425
|
RobotServiceClient.prototype.cancelOperation = function n(e, s, g) {
|
|
40930
41426
|
arguments.length === 2 && (g = arguments[1]);
|
|
40931
|
-
var u = grpc$
|
|
41427
|
+
var u = grpc$h.unary(RobotService.CancelOperation, {
|
|
40932
41428
|
request: e,
|
|
40933
41429
|
host: this.serviceHost,
|
|
40934
41430
|
metadata: s,
|
|
@@ -40936,7 +41432,7 @@ RobotServiceClient.prototype.cancelOperation = function n(e, s, g) {
|
|
|
40936
41432
|
debug: this.options.debug,
|
|
40937
41433
|
onEnd: function(p) {
|
|
40938
41434
|
if (g)
|
|
40939
|
-
if (p.status !== grpc$
|
|
41435
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
40940
41436
|
var l = new Error(p.statusMessage);
|
|
40941
41437
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
40942
41438
|
} else
|
|
@@ -40951,7 +41447,7 @@ RobotServiceClient.prototype.cancelOperation = function n(e, s, g) {
|
|
|
40951
41447
|
};
|
|
40952
41448
|
RobotServiceClient.prototype.blockForOperation = function n(e, s, g) {
|
|
40953
41449
|
arguments.length === 2 && (g = arguments[1]);
|
|
40954
|
-
var u = grpc$
|
|
41450
|
+
var u = grpc$h.unary(RobotService.BlockForOperation, {
|
|
40955
41451
|
request: e,
|
|
40956
41452
|
host: this.serviceHost,
|
|
40957
41453
|
metadata: s,
|
|
@@ -40959,7 +41455,7 @@ RobotServiceClient.prototype.blockForOperation = function n(e, s, g) {
|
|
|
40959
41455
|
debug: this.options.debug,
|
|
40960
41456
|
onEnd: function(p) {
|
|
40961
41457
|
if (g)
|
|
40962
|
-
if (p.status !== grpc$
|
|
41458
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
40963
41459
|
var l = new Error(p.statusMessage);
|
|
40964
41460
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
40965
41461
|
} else
|
|
@@ -40974,7 +41470,7 @@ RobotServiceClient.prototype.blockForOperation = function n(e, s, g) {
|
|
|
40974
41470
|
};
|
|
40975
41471
|
RobotServiceClient.prototype.discoverComponents = function n(e, s, g) {
|
|
40976
41472
|
arguments.length === 2 && (g = arguments[1]);
|
|
40977
|
-
var u = grpc$
|
|
41473
|
+
var u = grpc$h.unary(RobotService.DiscoverComponents, {
|
|
40978
41474
|
request: e,
|
|
40979
41475
|
host: this.serviceHost,
|
|
40980
41476
|
metadata: s,
|
|
@@ -40982,7 +41478,7 @@ RobotServiceClient.prototype.discoverComponents = function n(e, s, g) {
|
|
|
40982
41478
|
debug: this.options.debug,
|
|
40983
41479
|
onEnd: function(p) {
|
|
40984
41480
|
if (g)
|
|
40985
|
-
if (p.status !== grpc$
|
|
41481
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
40986
41482
|
var l = new Error(p.statusMessage);
|
|
40987
41483
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
40988
41484
|
} else
|
|
@@ -40997,7 +41493,7 @@ RobotServiceClient.prototype.discoverComponents = function n(e, s, g) {
|
|
|
40997
41493
|
};
|
|
40998
41494
|
RobotServiceClient.prototype.frameSystemConfig = function n(e, s, g) {
|
|
40999
41495
|
arguments.length === 2 && (g = arguments[1]);
|
|
41000
|
-
var u = grpc$
|
|
41496
|
+
var u = grpc$h.unary(RobotService.FrameSystemConfig, {
|
|
41001
41497
|
request: e,
|
|
41002
41498
|
host: this.serviceHost,
|
|
41003
41499
|
metadata: s,
|
|
@@ -41005,7 +41501,7 @@ RobotServiceClient.prototype.frameSystemConfig = function n(e, s, g) {
|
|
|
41005
41501
|
debug: this.options.debug,
|
|
41006
41502
|
onEnd: function(p) {
|
|
41007
41503
|
if (g)
|
|
41008
|
-
if (p.status !== grpc$
|
|
41504
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
41009
41505
|
var l = new Error(p.statusMessage);
|
|
41010
41506
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
41011
41507
|
} else
|
|
@@ -41020,7 +41516,7 @@ RobotServiceClient.prototype.frameSystemConfig = function n(e, s, g) {
|
|
|
41020
41516
|
};
|
|
41021
41517
|
RobotServiceClient.prototype.transformPose = function n(e, s, g) {
|
|
41022
41518
|
arguments.length === 2 && (g = arguments[1]);
|
|
41023
|
-
var u = grpc$
|
|
41519
|
+
var u = grpc$h.unary(RobotService.TransformPose, {
|
|
41024
41520
|
request: e,
|
|
41025
41521
|
host: this.serviceHost,
|
|
41026
41522
|
metadata: s,
|
|
@@ -41028,7 +41524,7 @@ RobotServiceClient.prototype.transformPose = function n(e, s, g) {
|
|
|
41028
41524
|
debug: this.options.debug,
|
|
41029
41525
|
onEnd: function(p) {
|
|
41030
41526
|
if (g)
|
|
41031
|
-
if (p.status !== grpc$
|
|
41527
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
41032
41528
|
var l = new Error(p.statusMessage);
|
|
41033
41529
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
41034
41530
|
} else
|
|
@@ -41043,7 +41539,7 @@ RobotServiceClient.prototype.transformPose = function n(e, s, g) {
|
|
|
41043
41539
|
};
|
|
41044
41540
|
RobotServiceClient.prototype.transformPCD = function n(e, s, g) {
|
|
41045
41541
|
arguments.length === 2 && (g = arguments[1]);
|
|
41046
|
-
var u = grpc$
|
|
41542
|
+
var u = grpc$h.unary(RobotService.TransformPCD, {
|
|
41047
41543
|
request: e,
|
|
41048
41544
|
host: this.serviceHost,
|
|
41049
41545
|
metadata: s,
|
|
@@ -41051,7 +41547,7 @@ RobotServiceClient.prototype.transformPCD = function n(e, s, g) {
|
|
|
41051
41547
|
debug: this.options.debug,
|
|
41052
41548
|
onEnd: function(p) {
|
|
41053
41549
|
if (g)
|
|
41054
|
-
if (p.status !== grpc$
|
|
41550
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
41055
41551
|
var l = new Error(p.statusMessage);
|
|
41056
41552
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
41057
41553
|
} else
|
|
@@ -41066,7 +41562,7 @@ RobotServiceClient.prototype.transformPCD = function n(e, s, g) {
|
|
|
41066
41562
|
};
|
|
41067
41563
|
RobotServiceClient.prototype.getStatus = function n(e, s, g) {
|
|
41068
41564
|
arguments.length === 2 && (g = arguments[1]);
|
|
41069
|
-
var u = grpc$
|
|
41565
|
+
var u = grpc$h.unary(RobotService.GetStatus, {
|
|
41070
41566
|
request: e,
|
|
41071
41567
|
host: this.serviceHost,
|
|
41072
41568
|
metadata: s,
|
|
@@ -41074,7 +41570,7 @@ RobotServiceClient.prototype.getStatus = function n(e, s, g) {
|
|
|
41074
41570
|
debug: this.options.debug,
|
|
41075
41571
|
onEnd: function(p) {
|
|
41076
41572
|
if (g)
|
|
41077
|
-
if (p.status !== grpc$
|
|
41573
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
41078
41574
|
var l = new Error(p.statusMessage);
|
|
41079
41575
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
41080
41576
|
} else
|
|
@@ -41092,7 +41588,7 @@ RobotServiceClient.prototype.streamStatus = function n(e, s) {
|
|
|
41092
41588
|
data: [],
|
|
41093
41589
|
end: [],
|
|
41094
41590
|
status: []
|
|
41095
|
-
}, u = grpc$
|
|
41591
|
+
}, u = grpc$h.invoke(RobotService.StreamStatus, {
|
|
41096
41592
|
request: e,
|
|
41097
41593
|
host: this.serviceHost,
|
|
41098
41594
|
metadata: s,
|
|
@@ -41122,7 +41618,7 @@ RobotServiceClient.prototype.streamStatus = function n(e, s) {
|
|
|
41122
41618
|
};
|
|
41123
41619
|
RobotServiceClient.prototype.stopAll = function n(e, s, g) {
|
|
41124
41620
|
arguments.length === 2 && (g = arguments[1]);
|
|
41125
|
-
var u = grpc$
|
|
41621
|
+
var u = grpc$h.unary(RobotService.StopAll, {
|
|
41126
41622
|
request: e,
|
|
41127
41623
|
host: this.serviceHost,
|
|
41128
41624
|
metadata: s,
|
|
@@ -41130,7 +41626,7 @@ RobotServiceClient.prototype.stopAll = function n(e, s, g) {
|
|
|
41130
41626
|
debug: this.options.debug,
|
|
41131
41627
|
onEnd: function(p) {
|
|
41132
41628
|
if (g)
|
|
41133
|
-
if (p.status !== grpc$
|
|
41629
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
41134
41630
|
var l = new Error(p.statusMessage);
|
|
41135
41631
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
41136
41632
|
} else
|
|
@@ -41145,7 +41641,7 @@ RobotServiceClient.prototype.stopAll = function n(e, s, g) {
|
|
|
41145
41641
|
};
|
|
41146
41642
|
RobotServiceClient.prototype.startSession = function n(e, s, g) {
|
|
41147
41643
|
arguments.length === 2 && (g = arguments[1]);
|
|
41148
|
-
var u = grpc$
|
|
41644
|
+
var u = grpc$h.unary(RobotService.StartSession, {
|
|
41149
41645
|
request: e,
|
|
41150
41646
|
host: this.serviceHost,
|
|
41151
41647
|
metadata: s,
|
|
@@ -41153,7 +41649,7 @@ RobotServiceClient.prototype.startSession = function n(e, s, g) {
|
|
|
41153
41649
|
debug: this.options.debug,
|
|
41154
41650
|
onEnd: function(p) {
|
|
41155
41651
|
if (g)
|
|
41156
|
-
if (p.status !== grpc$
|
|
41652
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
41157
41653
|
var l = new Error(p.statusMessage);
|
|
41158
41654
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
41159
41655
|
} else
|
|
@@ -41168,7 +41664,7 @@ RobotServiceClient.prototype.startSession = function n(e, s, g) {
|
|
|
41168
41664
|
};
|
|
41169
41665
|
RobotServiceClient.prototype.sendSessionHeartbeat = function n(e, s, g) {
|
|
41170
41666
|
arguments.length === 2 && (g = arguments[1]);
|
|
41171
|
-
var u = grpc$
|
|
41667
|
+
var u = grpc$h.unary(RobotService.SendSessionHeartbeat, {
|
|
41172
41668
|
request: e,
|
|
41173
41669
|
host: this.serviceHost,
|
|
41174
41670
|
metadata: s,
|
|
@@ -41176,7 +41672,7 @@ RobotServiceClient.prototype.sendSessionHeartbeat = function n(e, s, g) {
|
|
|
41176
41672
|
debug: this.options.debug,
|
|
41177
41673
|
onEnd: function(p) {
|
|
41178
41674
|
if (g)
|
|
41179
|
-
if (p.status !== grpc$
|
|
41675
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
41180
41676
|
var l = new Error(p.statusMessage);
|
|
41181
41677
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
41182
41678
|
} else
|
|
@@ -41191,7 +41687,7 @@ RobotServiceClient.prototype.sendSessionHeartbeat = function n(e, s, g) {
|
|
|
41191
41687
|
};
|
|
41192
41688
|
RobotServiceClient.prototype.log = function n(e, s, g) {
|
|
41193
41689
|
arguments.length === 2 && (g = arguments[1]);
|
|
41194
|
-
var u = grpc$
|
|
41690
|
+
var u = grpc$h.unary(RobotService.Log, {
|
|
41195
41691
|
request: e,
|
|
41196
41692
|
host: this.serviceHost,
|
|
41197
41693
|
metadata: s,
|
|
@@ -41199,7 +41695,7 @@ RobotServiceClient.prototype.log = function n(e, s, g) {
|
|
|
41199
41695
|
debug: this.options.debug,
|
|
41200
41696
|
onEnd: function(p) {
|
|
41201
41697
|
if (g)
|
|
41202
|
-
if (p.status !== grpc$
|
|
41698
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
41203
41699
|
var l = new Error(p.statusMessage);
|
|
41204
41700
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
41205
41701
|
} else
|
|
@@ -41214,7 +41710,7 @@ RobotServiceClient.prototype.log = function n(e, s, g) {
|
|
|
41214
41710
|
};
|
|
41215
41711
|
RobotServiceClient.prototype.getCloudMetadata = function n(e, s, g) {
|
|
41216
41712
|
arguments.length === 2 && (g = arguments[1]);
|
|
41217
|
-
var u = grpc$
|
|
41713
|
+
var u = grpc$h.unary(RobotService.GetCloudMetadata, {
|
|
41218
41714
|
request: e,
|
|
41219
41715
|
host: this.serviceHost,
|
|
41220
41716
|
metadata: s,
|
|
@@ -41222,7 +41718,7 @@ RobotServiceClient.prototype.getCloudMetadata = function n(e, s, g) {
|
|
|
41222
41718
|
debug: this.options.debug,
|
|
41223
41719
|
onEnd: function(p) {
|
|
41224
41720
|
if (g)
|
|
41225
|
-
if (p.status !== grpc$
|
|
41721
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
41226
41722
|
var l = new Error(p.statusMessage);
|
|
41227
41723
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
41228
41724
|
} else
|
|
@@ -41237,7 +41733,7 @@ RobotServiceClient.prototype.getCloudMetadata = function n(e, s, g) {
|
|
|
41237
41733
|
};
|
|
41238
41734
|
RobotServiceClient.prototype.restartModule = function n(e, s, g) {
|
|
41239
41735
|
arguments.length === 2 && (g = arguments[1]);
|
|
41240
|
-
var u = grpc$
|
|
41736
|
+
var u = grpc$h.unary(RobotService.RestartModule, {
|
|
41241
41737
|
request: e,
|
|
41242
41738
|
host: this.serviceHost,
|
|
41243
41739
|
metadata: s,
|
|
@@ -41245,7 +41741,7 @@ RobotServiceClient.prototype.restartModule = function n(e, s, g) {
|
|
|
41245
41741
|
debug: this.options.debug,
|
|
41246
41742
|
onEnd: function(p) {
|
|
41247
41743
|
if (g)
|
|
41248
|
-
if (p.status !== grpc$
|
|
41744
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
41249
41745
|
var l = new Error(p.statusMessage);
|
|
41250
41746
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
41251
41747
|
} else
|
|
@@ -41260,7 +41756,7 @@ RobotServiceClient.prototype.restartModule = function n(e, s, g) {
|
|
|
41260
41756
|
};
|
|
41261
41757
|
RobotServiceClient.prototype.shutdown = function n(e, s, g) {
|
|
41262
41758
|
arguments.length === 2 && (g = arguments[1]);
|
|
41263
|
-
var u = grpc$
|
|
41759
|
+
var u = grpc$h.unary(RobotService.Shutdown, {
|
|
41264
41760
|
request: e,
|
|
41265
41761
|
host: this.serviceHost,
|
|
41266
41762
|
metadata: s,
|
|
@@ -41268,7 +41764,7 @@ RobotServiceClient.prototype.shutdown = function n(e, s, g) {
|
|
|
41268
41764
|
debug: this.options.debug,
|
|
41269
41765
|
onEnd: function(p) {
|
|
41270
41766
|
if (g)
|
|
41271
|
-
if (p.status !== grpc$
|
|
41767
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
41272
41768
|
var l = new Error(p.statusMessage);
|
|
41273
41769
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
41274
41770
|
} else
|
|
@@ -41283,7 +41779,7 @@ RobotServiceClient.prototype.shutdown = function n(e, s, g) {
|
|
|
41283
41779
|
};
|
|
41284
41780
|
RobotServiceClient.prototype.getMachineStatus = function n(e, s, g) {
|
|
41285
41781
|
arguments.length === 2 && (g = arguments[1]);
|
|
41286
|
-
var u = grpc$
|
|
41782
|
+
var u = grpc$h.unary(RobotService.GetMachineStatus, {
|
|
41287
41783
|
request: e,
|
|
41288
41784
|
host: this.serviceHost,
|
|
41289
41785
|
metadata: s,
|
|
@@ -41291,7 +41787,7 @@ RobotServiceClient.prototype.getMachineStatus = function n(e, s, g) {
|
|
|
41291
41787
|
debug: this.options.debug,
|
|
41292
41788
|
onEnd: function(p) {
|
|
41293
41789
|
if (g)
|
|
41294
|
-
if (p.status !== grpc$
|
|
41790
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
41295
41791
|
var l = new Error(p.statusMessage);
|
|
41296
41792
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
41297
41793
|
} else
|
|
@@ -41306,7 +41802,7 @@ RobotServiceClient.prototype.getMachineStatus = function n(e, s, g) {
|
|
|
41306
41802
|
};
|
|
41307
41803
|
RobotServiceClient.prototype.getVersion = function n(e, s, g) {
|
|
41308
41804
|
arguments.length === 2 && (g = arguments[1]);
|
|
41309
|
-
var u = grpc$
|
|
41805
|
+
var u = grpc$h.unary(RobotService.GetVersion, {
|
|
41310
41806
|
request: e,
|
|
41311
41807
|
host: this.serviceHost,
|
|
41312
41808
|
metadata: s,
|
|
@@ -41314,7 +41810,7 @@ RobotServiceClient.prototype.getVersion = function n(e, s, g) {
|
|
|
41314
41810
|
debug: this.options.debug,
|
|
41315
41811
|
onEnd: function(p) {
|
|
41316
41812
|
if (g)
|
|
41317
|
-
if (p.status !== grpc$
|
|
41813
|
+
if (p.status !== grpc$h.Code.OK) {
|
|
41318
41814
|
var l = new Error(p.statusMessage);
|
|
41319
41815
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
41320
41816
|
} else
|
|
@@ -43677,7 +44173,7 @@ var RobotServiceClient_1 = RobotServiceClient, motion_pb = {};
|
|
|
43677
44173
|
}, s.object.extend(n, proto.viam.service.motion.v1);
|
|
43678
44174
|
})(motion_pb);
|
|
43679
44175
|
const pb$9 = /* @__PURE__ */ getDefaultExportFromCjs(motion_pb);
|
|
43680
|
-
var service_motion_v1_motion_pb = motion_pb, common_v1_common_pb$a = common_pb, grpc$
|
|
44176
|
+
var service_motion_v1_motion_pb = motion_pb, common_v1_common_pb$a = common_pb, grpc$g = grpcWebClient_umdExports$1.grpc, MotionService = function() {
|
|
43681
44177
|
function n() {
|
|
43682
44178
|
}
|
|
43683
44179
|
return n.serviceName = "viam.service.motion.v1.MotionService", n;
|
|
@@ -43751,7 +44247,7 @@ function MotionServiceClient(n, e) {
|
|
|
43751
44247
|
}
|
|
43752
44248
|
MotionServiceClient.prototype.move = function n(e, s, g) {
|
|
43753
44249
|
arguments.length === 2 && (g = arguments[1]);
|
|
43754
|
-
var u = grpc$
|
|
44250
|
+
var u = grpc$g.unary(MotionService.Move, {
|
|
43755
44251
|
request: e,
|
|
43756
44252
|
host: this.serviceHost,
|
|
43757
44253
|
metadata: s,
|
|
@@ -43759,7 +44255,7 @@ MotionServiceClient.prototype.move = function n(e, s, g) {
|
|
|
43759
44255
|
debug: this.options.debug,
|
|
43760
44256
|
onEnd: function(p) {
|
|
43761
44257
|
if (g)
|
|
43762
|
-
if (p.status !== grpc$
|
|
44258
|
+
if (p.status !== grpc$g.Code.OK) {
|
|
43763
44259
|
var l = new Error(p.statusMessage);
|
|
43764
44260
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
43765
44261
|
} else
|
|
@@ -43774,7 +44270,7 @@ MotionServiceClient.prototype.move = function n(e, s, g) {
|
|
|
43774
44270
|
};
|
|
43775
44271
|
MotionServiceClient.prototype.moveOnMap = function n(e, s, g) {
|
|
43776
44272
|
arguments.length === 2 && (g = arguments[1]);
|
|
43777
|
-
var u = grpc$
|
|
44273
|
+
var u = grpc$g.unary(MotionService.MoveOnMap, {
|
|
43778
44274
|
request: e,
|
|
43779
44275
|
host: this.serviceHost,
|
|
43780
44276
|
metadata: s,
|
|
@@ -43782,7 +44278,7 @@ MotionServiceClient.prototype.moveOnMap = function n(e, s, g) {
|
|
|
43782
44278
|
debug: this.options.debug,
|
|
43783
44279
|
onEnd: function(p) {
|
|
43784
44280
|
if (g)
|
|
43785
|
-
if (p.status !== grpc$
|
|
44281
|
+
if (p.status !== grpc$g.Code.OK) {
|
|
43786
44282
|
var l = new Error(p.statusMessage);
|
|
43787
44283
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
43788
44284
|
} else
|
|
@@ -43797,7 +44293,7 @@ MotionServiceClient.prototype.moveOnMap = function n(e, s, g) {
|
|
|
43797
44293
|
};
|
|
43798
44294
|
MotionServiceClient.prototype.moveOnGlobe = function n(e, s, g) {
|
|
43799
44295
|
arguments.length === 2 && (g = arguments[1]);
|
|
43800
|
-
var u = grpc$
|
|
44296
|
+
var u = grpc$g.unary(MotionService.MoveOnGlobe, {
|
|
43801
44297
|
request: e,
|
|
43802
44298
|
host: this.serviceHost,
|
|
43803
44299
|
metadata: s,
|
|
@@ -43805,7 +44301,7 @@ MotionServiceClient.prototype.moveOnGlobe = function n(e, s, g) {
|
|
|
43805
44301
|
debug: this.options.debug,
|
|
43806
44302
|
onEnd: function(p) {
|
|
43807
44303
|
if (g)
|
|
43808
|
-
if (p.status !== grpc$
|
|
44304
|
+
if (p.status !== grpc$g.Code.OK) {
|
|
43809
44305
|
var l = new Error(p.statusMessage);
|
|
43810
44306
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
43811
44307
|
} else
|
|
@@ -43820,7 +44316,7 @@ MotionServiceClient.prototype.moveOnGlobe = function n(e, s, g) {
|
|
|
43820
44316
|
};
|
|
43821
44317
|
MotionServiceClient.prototype.getPose = function n(e, s, g) {
|
|
43822
44318
|
arguments.length === 2 && (g = arguments[1]);
|
|
43823
|
-
var u = grpc$
|
|
44319
|
+
var u = grpc$g.unary(MotionService.GetPose, {
|
|
43824
44320
|
request: e,
|
|
43825
44321
|
host: this.serviceHost,
|
|
43826
44322
|
metadata: s,
|
|
@@ -43828,7 +44324,7 @@ MotionServiceClient.prototype.getPose = function n(e, s, g) {
|
|
|
43828
44324
|
debug: this.options.debug,
|
|
43829
44325
|
onEnd: function(p) {
|
|
43830
44326
|
if (g)
|
|
43831
|
-
if (p.status !== grpc$
|
|
44327
|
+
if (p.status !== grpc$g.Code.OK) {
|
|
43832
44328
|
var l = new Error(p.statusMessage);
|
|
43833
44329
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
43834
44330
|
} else
|
|
@@ -43843,7 +44339,7 @@ MotionServiceClient.prototype.getPose = function n(e, s, g) {
|
|
|
43843
44339
|
};
|
|
43844
44340
|
MotionServiceClient.prototype.stopPlan = function n(e, s, g) {
|
|
43845
44341
|
arguments.length === 2 && (g = arguments[1]);
|
|
43846
|
-
var u = grpc$
|
|
44342
|
+
var u = grpc$g.unary(MotionService.StopPlan, {
|
|
43847
44343
|
request: e,
|
|
43848
44344
|
host: this.serviceHost,
|
|
43849
44345
|
metadata: s,
|
|
@@ -43851,7 +44347,7 @@ MotionServiceClient.prototype.stopPlan = function n(e, s, g) {
|
|
|
43851
44347
|
debug: this.options.debug,
|
|
43852
44348
|
onEnd: function(p) {
|
|
43853
44349
|
if (g)
|
|
43854
|
-
if (p.status !== grpc$
|
|
44350
|
+
if (p.status !== grpc$g.Code.OK) {
|
|
43855
44351
|
var l = new Error(p.statusMessage);
|
|
43856
44352
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
43857
44353
|
} else
|
|
@@ -43866,7 +44362,7 @@ MotionServiceClient.prototype.stopPlan = function n(e, s, g) {
|
|
|
43866
44362
|
};
|
|
43867
44363
|
MotionServiceClient.prototype.listPlanStatuses = function n(e, s, g) {
|
|
43868
44364
|
arguments.length === 2 && (g = arguments[1]);
|
|
43869
|
-
var u = grpc$
|
|
44365
|
+
var u = grpc$g.unary(MotionService.ListPlanStatuses, {
|
|
43870
44366
|
request: e,
|
|
43871
44367
|
host: this.serviceHost,
|
|
43872
44368
|
metadata: s,
|
|
@@ -43874,7 +44370,7 @@ MotionServiceClient.prototype.listPlanStatuses = function n(e, s, g) {
|
|
|
43874
44370
|
debug: this.options.debug,
|
|
43875
44371
|
onEnd: function(p) {
|
|
43876
44372
|
if (g)
|
|
43877
|
-
if (p.status !== grpc$
|
|
44373
|
+
if (p.status !== grpc$g.Code.OK) {
|
|
43878
44374
|
var l = new Error(p.statusMessage);
|
|
43879
44375
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
43880
44376
|
} else
|
|
@@ -43889,7 +44385,7 @@ MotionServiceClient.prototype.listPlanStatuses = function n(e, s, g) {
|
|
|
43889
44385
|
};
|
|
43890
44386
|
MotionServiceClient.prototype.getPlan = function n(e, s, g) {
|
|
43891
44387
|
arguments.length === 2 && (g = arguments[1]);
|
|
43892
|
-
var u = grpc$
|
|
44388
|
+
var u = grpc$g.unary(MotionService.GetPlan, {
|
|
43893
44389
|
request: e,
|
|
43894
44390
|
host: this.serviceHost,
|
|
43895
44391
|
metadata: s,
|
|
@@ -43897,7 +44393,7 @@ MotionServiceClient.prototype.getPlan = function n(e, s, g) {
|
|
|
43897
44393
|
debug: this.options.debug,
|
|
43898
44394
|
onEnd: function(p) {
|
|
43899
44395
|
if (g)
|
|
43900
|
-
if (p.status !== grpc$
|
|
44396
|
+
if (p.status !== grpc$g.Code.OK) {
|
|
43901
44397
|
var l = new Error(p.statusMessage);
|
|
43902
44398
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
43903
44399
|
} else
|
|
@@ -43912,7 +44408,7 @@ MotionServiceClient.prototype.getPlan = function n(e, s, g) {
|
|
|
43912
44408
|
};
|
|
43913
44409
|
MotionServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
43914
44410
|
arguments.length === 2 && (g = arguments[1]);
|
|
43915
|
-
var u = grpc$
|
|
44411
|
+
var u = grpc$g.unary(MotionService.DoCommand, {
|
|
43916
44412
|
request: e,
|
|
43917
44413
|
host: this.serviceHost,
|
|
43918
44414
|
metadata: s,
|
|
@@ -43920,7 +44416,7 @@ MotionServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
43920
44416
|
debug: this.options.debug,
|
|
43921
44417
|
onEnd: function(p) {
|
|
43922
44418
|
if (g)
|
|
43923
|
-
if (p.status !== grpc$
|
|
44419
|
+
if (p.status !== grpc$g.Code.OK) {
|
|
43924
44420
|
var l = new Error(p.statusMessage);
|
|
43925
44421
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
43926
44422
|
} else
|
|
@@ -45089,7 +45585,7 @@ var MotionServiceClient_1 = MotionServiceClient, navigation_pb = {};
|
|
|
45089
45585
|
}, s.object.extend(n, proto.viam.service.navigation.v1);
|
|
45090
45586
|
})(navigation_pb);
|
|
45091
45587
|
const pb$8 = /* @__PURE__ */ getDefaultExportFromCjs(navigation_pb);
|
|
45092
|
-
var service_navigation_v1_navigation_pb = navigation_pb, common_v1_common_pb$9 = common_pb, grpc$
|
|
45588
|
+
var service_navigation_v1_navigation_pb = navigation_pb, common_v1_common_pb$9 = common_pb, grpc$f = grpcWebClient_umdExports$1.grpc, NavigationService = function() {
|
|
45093
45589
|
function n() {
|
|
45094
45590
|
}
|
|
45095
45591
|
return n.serviceName = "viam.service.navigation.v1.NavigationService", n;
|
|
@@ -45179,7 +45675,7 @@ function NavigationServiceClient(n, e) {
|
|
|
45179
45675
|
}
|
|
45180
45676
|
NavigationServiceClient.prototype.getMode = function n(e, s, g) {
|
|
45181
45677
|
arguments.length === 2 && (g = arguments[1]);
|
|
45182
|
-
var u = grpc$
|
|
45678
|
+
var u = grpc$f.unary(NavigationService.GetMode, {
|
|
45183
45679
|
request: e,
|
|
45184
45680
|
host: this.serviceHost,
|
|
45185
45681
|
metadata: s,
|
|
@@ -45187,7 +45683,7 @@ NavigationServiceClient.prototype.getMode = function n(e, s, g) {
|
|
|
45187
45683
|
debug: this.options.debug,
|
|
45188
45684
|
onEnd: function(p) {
|
|
45189
45685
|
if (g)
|
|
45190
|
-
if (p.status !== grpc$
|
|
45686
|
+
if (p.status !== grpc$f.Code.OK) {
|
|
45191
45687
|
var l = new Error(p.statusMessage);
|
|
45192
45688
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
45193
45689
|
} else
|
|
@@ -45202,7 +45698,7 @@ NavigationServiceClient.prototype.getMode = function n(e, s, g) {
|
|
|
45202
45698
|
};
|
|
45203
45699
|
NavigationServiceClient.prototype.setMode = function n(e, s, g) {
|
|
45204
45700
|
arguments.length === 2 && (g = arguments[1]);
|
|
45205
|
-
var u = grpc$
|
|
45701
|
+
var u = grpc$f.unary(NavigationService.SetMode, {
|
|
45206
45702
|
request: e,
|
|
45207
45703
|
host: this.serviceHost,
|
|
45208
45704
|
metadata: s,
|
|
@@ -45210,7 +45706,7 @@ NavigationServiceClient.prototype.setMode = function n(e, s, g) {
|
|
|
45210
45706
|
debug: this.options.debug,
|
|
45211
45707
|
onEnd: function(p) {
|
|
45212
45708
|
if (g)
|
|
45213
|
-
if (p.status !== grpc$
|
|
45709
|
+
if (p.status !== grpc$f.Code.OK) {
|
|
45214
45710
|
var l = new Error(p.statusMessage);
|
|
45215
45711
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
45216
45712
|
} else
|
|
@@ -45225,7 +45721,7 @@ NavigationServiceClient.prototype.setMode = function n(e, s, g) {
|
|
|
45225
45721
|
};
|
|
45226
45722
|
NavigationServiceClient.prototype.getLocation = function n(e, s, g) {
|
|
45227
45723
|
arguments.length === 2 && (g = arguments[1]);
|
|
45228
|
-
var u = grpc$
|
|
45724
|
+
var u = grpc$f.unary(NavigationService.GetLocation, {
|
|
45229
45725
|
request: e,
|
|
45230
45726
|
host: this.serviceHost,
|
|
45231
45727
|
metadata: s,
|
|
@@ -45233,7 +45729,7 @@ NavigationServiceClient.prototype.getLocation = function n(e, s, g) {
|
|
|
45233
45729
|
debug: this.options.debug,
|
|
45234
45730
|
onEnd: function(p) {
|
|
45235
45731
|
if (g)
|
|
45236
|
-
if (p.status !== grpc$
|
|
45732
|
+
if (p.status !== grpc$f.Code.OK) {
|
|
45237
45733
|
var l = new Error(p.statusMessage);
|
|
45238
45734
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
45239
45735
|
} else
|
|
@@ -45248,7 +45744,7 @@ NavigationServiceClient.prototype.getLocation = function n(e, s, g) {
|
|
|
45248
45744
|
};
|
|
45249
45745
|
NavigationServiceClient.prototype.getWaypoints = function n(e, s, g) {
|
|
45250
45746
|
arguments.length === 2 && (g = arguments[1]);
|
|
45251
|
-
var u = grpc$
|
|
45747
|
+
var u = grpc$f.unary(NavigationService.GetWaypoints, {
|
|
45252
45748
|
request: e,
|
|
45253
45749
|
host: this.serviceHost,
|
|
45254
45750
|
metadata: s,
|
|
@@ -45256,7 +45752,7 @@ NavigationServiceClient.prototype.getWaypoints = function n(e, s, g) {
|
|
|
45256
45752
|
debug: this.options.debug,
|
|
45257
45753
|
onEnd: function(p) {
|
|
45258
45754
|
if (g)
|
|
45259
|
-
if (p.status !== grpc$
|
|
45755
|
+
if (p.status !== grpc$f.Code.OK) {
|
|
45260
45756
|
var l = new Error(p.statusMessage);
|
|
45261
45757
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
45262
45758
|
} else
|
|
@@ -45271,7 +45767,7 @@ NavigationServiceClient.prototype.getWaypoints = function n(e, s, g) {
|
|
|
45271
45767
|
};
|
|
45272
45768
|
NavigationServiceClient.prototype.addWaypoint = function n(e, s, g) {
|
|
45273
45769
|
arguments.length === 2 && (g = arguments[1]);
|
|
45274
|
-
var u = grpc$
|
|
45770
|
+
var u = grpc$f.unary(NavigationService.AddWaypoint, {
|
|
45275
45771
|
request: e,
|
|
45276
45772
|
host: this.serviceHost,
|
|
45277
45773
|
metadata: s,
|
|
@@ -45279,7 +45775,7 @@ NavigationServiceClient.prototype.addWaypoint = function n(e, s, g) {
|
|
|
45279
45775
|
debug: this.options.debug,
|
|
45280
45776
|
onEnd: function(p) {
|
|
45281
45777
|
if (g)
|
|
45282
|
-
if (p.status !== grpc$
|
|
45778
|
+
if (p.status !== grpc$f.Code.OK) {
|
|
45283
45779
|
var l = new Error(p.statusMessage);
|
|
45284
45780
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
45285
45781
|
} else
|
|
@@ -45294,7 +45790,7 @@ NavigationServiceClient.prototype.addWaypoint = function n(e, s, g) {
|
|
|
45294
45790
|
};
|
|
45295
45791
|
NavigationServiceClient.prototype.removeWaypoint = function n(e, s, g) {
|
|
45296
45792
|
arguments.length === 2 && (g = arguments[1]);
|
|
45297
|
-
var u = grpc$
|
|
45793
|
+
var u = grpc$f.unary(NavigationService.RemoveWaypoint, {
|
|
45298
45794
|
request: e,
|
|
45299
45795
|
host: this.serviceHost,
|
|
45300
45796
|
metadata: s,
|
|
@@ -45302,7 +45798,7 @@ NavigationServiceClient.prototype.removeWaypoint = function n(e, s, g) {
|
|
|
45302
45798
|
debug: this.options.debug,
|
|
45303
45799
|
onEnd: function(p) {
|
|
45304
45800
|
if (g)
|
|
45305
|
-
if (p.status !== grpc$
|
|
45801
|
+
if (p.status !== grpc$f.Code.OK) {
|
|
45306
45802
|
var l = new Error(p.statusMessage);
|
|
45307
45803
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
45308
45804
|
} else
|
|
@@ -45317,7 +45813,7 @@ NavigationServiceClient.prototype.removeWaypoint = function n(e, s, g) {
|
|
|
45317
45813
|
};
|
|
45318
45814
|
NavigationServiceClient.prototype.getObstacles = function n(e, s, g) {
|
|
45319
45815
|
arguments.length === 2 && (g = arguments[1]);
|
|
45320
|
-
var u = grpc$
|
|
45816
|
+
var u = grpc$f.unary(NavigationService.GetObstacles, {
|
|
45321
45817
|
request: e,
|
|
45322
45818
|
host: this.serviceHost,
|
|
45323
45819
|
metadata: s,
|
|
@@ -45325,7 +45821,7 @@ NavigationServiceClient.prototype.getObstacles = function n(e, s, g) {
|
|
|
45325
45821
|
debug: this.options.debug,
|
|
45326
45822
|
onEnd: function(p) {
|
|
45327
45823
|
if (g)
|
|
45328
|
-
if (p.status !== grpc$
|
|
45824
|
+
if (p.status !== grpc$f.Code.OK) {
|
|
45329
45825
|
var l = new Error(p.statusMessage);
|
|
45330
45826
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
45331
45827
|
} else
|
|
@@ -45340,7 +45836,7 @@ NavigationServiceClient.prototype.getObstacles = function n(e, s, g) {
|
|
|
45340
45836
|
};
|
|
45341
45837
|
NavigationServiceClient.prototype.getPaths = function n(e, s, g) {
|
|
45342
45838
|
arguments.length === 2 && (g = arguments[1]);
|
|
45343
|
-
var u = grpc$
|
|
45839
|
+
var u = grpc$f.unary(NavigationService.GetPaths, {
|
|
45344
45840
|
request: e,
|
|
45345
45841
|
host: this.serviceHost,
|
|
45346
45842
|
metadata: s,
|
|
@@ -45348,7 +45844,7 @@ NavigationServiceClient.prototype.getPaths = function n(e, s, g) {
|
|
|
45348
45844
|
debug: this.options.debug,
|
|
45349
45845
|
onEnd: function(p) {
|
|
45350
45846
|
if (g)
|
|
45351
|
-
if (p.status !== grpc$
|
|
45847
|
+
if (p.status !== grpc$f.Code.OK) {
|
|
45352
45848
|
var l = new Error(p.statusMessage);
|
|
45353
45849
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
45354
45850
|
} else
|
|
@@ -45363,7 +45859,7 @@ NavigationServiceClient.prototype.getPaths = function n(e, s, g) {
|
|
|
45363
45859
|
};
|
|
45364
45860
|
NavigationServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
45365
45861
|
arguments.length === 2 && (g = arguments[1]);
|
|
45366
|
-
var u = grpc$
|
|
45862
|
+
var u = grpc$f.unary(NavigationService.GetProperties, {
|
|
45367
45863
|
request: e,
|
|
45368
45864
|
host: this.serviceHost,
|
|
45369
45865
|
metadata: s,
|
|
@@ -45371,7 +45867,7 @@ NavigationServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
|
45371
45867
|
debug: this.options.debug,
|
|
45372
45868
|
onEnd: function(p) {
|
|
45373
45869
|
if (g)
|
|
45374
|
-
if (p.status !== grpc$
|
|
45870
|
+
if (p.status !== grpc$f.Code.OK) {
|
|
45375
45871
|
var l = new Error(p.statusMessage);
|
|
45376
45872
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
45377
45873
|
} else
|
|
@@ -45386,7 +45882,7 @@ NavigationServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
|
45386
45882
|
};
|
|
45387
45883
|
NavigationServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
45388
45884
|
arguments.length === 2 && (g = arguments[1]);
|
|
45389
|
-
var u = grpc$
|
|
45885
|
+
var u = grpc$f.unary(NavigationService.DoCommand, {
|
|
45390
45886
|
request: e,
|
|
45391
45887
|
host: this.serviceHost,
|
|
45392
45888
|
metadata: s,
|
|
@@ -45394,7 +45890,7 @@ NavigationServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
45394
45890
|
debug: this.options.debug,
|
|
45395
45891
|
onEnd: function(p) {
|
|
45396
45892
|
if (g)
|
|
45397
|
-
if (p.status !== grpc$
|
|
45893
|
+
if (p.status !== grpc$f.Code.OK) {
|
|
45398
45894
|
var l = new Error(p.statusMessage);
|
|
45399
45895
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
45400
45896
|
} else
|
|
@@ -45741,7 +46237,7 @@ var NavigationServiceClient_1 = NavigationServiceClient, sensors_pb$1 = {};
|
|
|
45741
46237
|
}, s.object.extend(n, proto.viam.service.sensors.v1);
|
|
45742
46238
|
})(sensors_pb$1);
|
|
45743
46239
|
const sensors_pb = /* @__PURE__ */ getDefaultExportFromCjs(sensors_pb$1);
|
|
45744
|
-
var service_sensors_v1_sensors_pb = sensors_pb$1, common_v1_common_pb$8 = common_pb, grpc$
|
|
46240
|
+
var service_sensors_v1_sensors_pb = sensors_pb$1, common_v1_common_pb$8 = common_pb, grpc$e = grpcWebClient_umdExports$1.grpc, SensorsService = function() {
|
|
45745
46241
|
function n() {
|
|
45746
46242
|
}
|
|
45747
46243
|
return n.serviceName = "viam.service.sensors.v1.SensorsService", n;
|
|
@@ -45775,7 +46271,7 @@ function SensorsServiceClient(n, e) {
|
|
|
45775
46271
|
}
|
|
45776
46272
|
SensorsServiceClient.prototype.getSensors = function n(e, s, g) {
|
|
45777
46273
|
arguments.length === 2 && (g = arguments[1]);
|
|
45778
|
-
var u = grpc$
|
|
46274
|
+
var u = grpc$e.unary(SensorsService.GetSensors, {
|
|
45779
46275
|
request: e,
|
|
45780
46276
|
host: this.serviceHost,
|
|
45781
46277
|
metadata: s,
|
|
@@ -45783,7 +46279,7 @@ SensorsServiceClient.prototype.getSensors = function n(e, s, g) {
|
|
|
45783
46279
|
debug: this.options.debug,
|
|
45784
46280
|
onEnd: function(p) {
|
|
45785
46281
|
if (g)
|
|
45786
|
-
if (p.status !== grpc$
|
|
46282
|
+
if (p.status !== grpc$e.Code.OK) {
|
|
45787
46283
|
var l = new Error(p.statusMessage);
|
|
45788
46284
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
45789
46285
|
} else
|
|
@@ -45798,7 +46294,7 @@ SensorsServiceClient.prototype.getSensors = function n(e, s, g) {
|
|
|
45798
46294
|
};
|
|
45799
46295
|
SensorsServiceClient.prototype.getReadings = function n(e, s, g) {
|
|
45800
46296
|
arguments.length === 2 && (g = arguments[1]);
|
|
45801
|
-
var u = grpc$
|
|
46297
|
+
var u = grpc$e.unary(SensorsService.GetReadings, {
|
|
45802
46298
|
request: e,
|
|
45803
46299
|
host: this.serviceHost,
|
|
45804
46300
|
metadata: s,
|
|
@@ -45806,7 +46302,7 @@ SensorsServiceClient.prototype.getReadings = function n(e, s, g) {
|
|
|
45806
46302
|
debug: this.options.debug,
|
|
45807
46303
|
onEnd: function(p) {
|
|
45808
46304
|
if (g)
|
|
45809
|
-
if (p.status !== grpc$
|
|
46305
|
+
if (p.status !== grpc$e.Code.OK) {
|
|
45810
46306
|
var l = new Error(p.statusMessage);
|
|
45811
46307
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
45812
46308
|
} else
|
|
@@ -45821,7 +46317,7 @@ SensorsServiceClient.prototype.getReadings = function n(e, s, g) {
|
|
|
45821
46317
|
};
|
|
45822
46318
|
SensorsServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
45823
46319
|
arguments.length === 2 && (g = arguments[1]);
|
|
45824
|
-
var u = grpc$
|
|
46320
|
+
var u = grpc$e.unary(SensorsService.DoCommand, {
|
|
45825
46321
|
request: e,
|
|
45826
46322
|
host: this.serviceHost,
|
|
45827
46323
|
metadata: s,
|
|
@@ -45829,7 +46325,7 @@ SensorsServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
45829
46325
|
debug: this.options.debug,
|
|
45830
46326
|
onEnd: function(p) {
|
|
45831
46327
|
if (g)
|
|
45832
|
-
if (p.status !== grpc$
|
|
46328
|
+
if (p.status !== grpc$e.Code.OK) {
|
|
45833
46329
|
var l = new Error(p.statusMessage);
|
|
45834
46330
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
45835
46331
|
} else
|
|
@@ -46402,7 +46898,7 @@ var SensorsServiceClient_1 = SensorsServiceClient, slam_pb = {};
|
|
|
46402
46898
|
}, s.object.extend(n, proto.viam.service.slam.v1);
|
|
46403
46899
|
})(slam_pb);
|
|
46404
46900
|
const pb$7 = /* @__PURE__ */ getDefaultExportFromCjs(slam_pb);
|
|
46405
|
-
var service_slam_v1_slam_pb = slam_pb, common_v1_common_pb$7 = common_pb, grpc$
|
|
46901
|
+
var service_slam_v1_slam_pb = slam_pb, common_v1_common_pb$7 = common_pb, grpc$d = grpcWebClient_umdExports$1.grpc, SLAMService = function() {
|
|
46406
46902
|
function n() {
|
|
46407
46903
|
}
|
|
46408
46904
|
return n.serviceName = "viam.service.slam.v1.SLAMService", n;
|
|
@@ -46452,7 +46948,7 @@ function SLAMServiceClient(n, e) {
|
|
|
46452
46948
|
}
|
|
46453
46949
|
SLAMServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
46454
46950
|
arguments.length === 2 && (g = arguments[1]);
|
|
46455
|
-
var u = grpc$
|
|
46951
|
+
var u = grpc$d.unary(SLAMService.GetPosition, {
|
|
46456
46952
|
request: e,
|
|
46457
46953
|
host: this.serviceHost,
|
|
46458
46954
|
metadata: s,
|
|
@@ -46460,7 +46956,7 @@ SLAMServiceClient.prototype.getPosition = function n(e, s, g) {
|
|
|
46460
46956
|
debug: this.options.debug,
|
|
46461
46957
|
onEnd: function(p) {
|
|
46462
46958
|
if (g)
|
|
46463
|
-
if (p.status !== grpc$
|
|
46959
|
+
if (p.status !== grpc$d.Code.OK) {
|
|
46464
46960
|
var l = new Error(p.statusMessage);
|
|
46465
46961
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
46466
46962
|
} else
|
|
@@ -46478,7 +46974,7 @@ SLAMServiceClient.prototype.getPointCloudMap = function n(e, s) {
|
|
|
46478
46974
|
data: [],
|
|
46479
46975
|
end: [],
|
|
46480
46976
|
status: []
|
|
46481
|
-
}, u = grpc$
|
|
46977
|
+
}, u = grpc$d.invoke(SLAMService.GetPointCloudMap, {
|
|
46482
46978
|
request: e,
|
|
46483
46979
|
host: this.serviceHost,
|
|
46484
46980
|
metadata: s,
|
|
@@ -46511,7 +47007,7 @@ SLAMServiceClient.prototype.getInternalState = function n(e, s) {
|
|
|
46511
47007
|
data: [],
|
|
46512
47008
|
end: [],
|
|
46513
47009
|
status: []
|
|
46514
|
-
}, u = grpc$
|
|
47010
|
+
}, u = grpc$d.invoke(SLAMService.GetInternalState, {
|
|
46515
47011
|
request: e,
|
|
46516
47012
|
host: this.serviceHost,
|
|
46517
47013
|
metadata: s,
|
|
@@ -46541,7 +47037,7 @@ SLAMServiceClient.prototype.getInternalState = function n(e, s) {
|
|
|
46541
47037
|
};
|
|
46542
47038
|
SLAMServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
46543
47039
|
arguments.length === 2 && (g = arguments[1]);
|
|
46544
|
-
var u = grpc$
|
|
47040
|
+
var u = grpc$d.unary(SLAMService.GetProperties, {
|
|
46545
47041
|
request: e,
|
|
46546
47042
|
host: this.serviceHost,
|
|
46547
47043
|
metadata: s,
|
|
@@ -46549,7 +47045,7 @@ SLAMServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
|
46549
47045
|
debug: this.options.debug,
|
|
46550
47046
|
onEnd: function(p) {
|
|
46551
47047
|
if (g)
|
|
46552
|
-
if (p.status !== grpc$
|
|
47048
|
+
if (p.status !== grpc$d.Code.OK) {
|
|
46553
47049
|
var l = new Error(p.statusMessage);
|
|
46554
47050
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
46555
47051
|
} else
|
|
@@ -46564,7 +47060,7 @@ SLAMServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
|
46564
47060
|
};
|
|
46565
47061
|
SLAMServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
46566
47062
|
arguments.length === 2 && (g = arguments[1]);
|
|
46567
|
-
var u = grpc$
|
|
47063
|
+
var u = grpc$d.unary(SLAMService.DoCommand, {
|
|
46568
47064
|
request: e,
|
|
46569
47065
|
host: this.serviceHost,
|
|
46570
47066
|
metadata: s,
|
|
@@ -46572,7 +47068,7 @@ SLAMServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
46572
47068
|
debug: this.options.debug,
|
|
46573
47069
|
onEnd: function(p) {
|
|
46574
47070
|
if (g)
|
|
46575
|
-
if (p.status !== grpc$
|
|
47071
|
+
if (p.status !== grpc$d.Code.OK) {
|
|
46576
47072
|
var l = new Error(p.statusMessage);
|
|
46577
47073
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
46578
47074
|
} else
|
|
@@ -49591,7 +50087,7 @@ const pb$6 = /* @__PURE__ */ getDefaultExportFromCjs(camera_pb);
|
|
|
49591
50087
|
}, s.object.extend(n, proto.viam.service.vision.v1);
|
|
49592
50088
|
})(vision_pb);
|
|
49593
50089
|
const pb$5 = /* @__PURE__ */ getDefaultExportFromCjs(vision_pb);
|
|
49594
|
-
var service_vision_v1_vision_pb = vision_pb, common_v1_common_pb$6 = common_pb, grpc$
|
|
50090
|
+
var service_vision_v1_vision_pb = vision_pb, common_v1_common_pb$6 = common_pb, grpc$c = grpcWebClient_umdExports$1.grpc, VisionService = function() {
|
|
49595
50091
|
function n() {
|
|
49596
50092
|
}
|
|
49597
50093
|
return n.serviceName = "viam.service.vision.v1.VisionService", n;
|
|
@@ -49665,7 +50161,7 @@ function VisionServiceClient(n, e) {
|
|
|
49665
50161
|
}
|
|
49666
50162
|
VisionServiceClient.prototype.getDetectionsFromCamera = function n(e, s, g) {
|
|
49667
50163
|
arguments.length === 2 && (g = arguments[1]);
|
|
49668
|
-
var u = grpc$
|
|
50164
|
+
var u = grpc$c.unary(VisionService.GetDetectionsFromCamera, {
|
|
49669
50165
|
request: e,
|
|
49670
50166
|
host: this.serviceHost,
|
|
49671
50167
|
metadata: s,
|
|
@@ -49673,7 +50169,7 @@ VisionServiceClient.prototype.getDetectionsFromCamera = function n(e, s, g) {
|
|
|
49673
50169
|
debug: this.options.debug,
|
|
49674
50170
|
onEnd: function(p) {
|
|
49675
50171
|
if (g)
|
|
49676
|
-
if (p.status !== grpc$
|
|
50172
|
+
if (p.status !== grpc$c.Code.OK) {
|
|
49677
50173
|
var l = new Error(p.statusMessage);
|
|
49678
50174
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
49679
50175
|
} else
|
|
@@ -49688,7 +50184,7 @@ VisionServiceClient.prototype.getDetectionsFromCamera = function n(e, s, g) {
|
|
|
49688
50184
|
};
|
|
49689
50185
|
VisionServiceClient.prototype.getDetections = function n(e, s, g) {
|
|
49690
50186
|
arguments.length === 2 && (g = arguments[1]);
|
|
49691
|
-
var u = grpc$
|
|
50187
|
+
var u = grpc$c.unary(VisionService.GetDetections, {
|
|
49692
50188
|
request: e,
|
|
49693
50189
|
host: this.serviceHost,
|
|
49694
50190
|
metadata: s,
|
|
@@ -49696,7 +50192,7 @@ VisionServiceClient.prototype.getDetections = function n(e, s, g) {
|
|
|
49696
50192
|
debug: this.options.debug,
|
|
49697
50193
|
onEnd: function(p) {
|
|
49698
50194
|
if (g)
|
|
49699
|
-
if (p.status !== grpc$
|
|
50195
|
+
if (p.status !== grpc$c.Code.OK) {
|
|
49700
50196
|
var l = new Error(p.statusMessage);
|
|
49701
50197
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
49702
50198
|
} else
|
|
@@ -49711,7 +50207,7 @@ VisionServiceClient.prototype.getDetections = function n(e, s, g) {
|
|
|
49711
50207
|
};
|
|
49712
50208
|
VisionServiceClient.prototype.getClassificationsFromCamera = function n(e, s, g) {
|
|
49713
50209
|
arguments.length === 2 && (g = arguments[1]);
|
|
49714
|
-
var u = grpc$
|
|
50210
|
+
var u = grpc$c.unary(VisionService.GetClassificationsFromCamera, {
|
|
49715
50211
|
request: e,
|
|
49716
50212
|
host: this.serviceHost,
|
|
49717
50213
|
metadata: s,
|
|
@@ -49719,7 +50215,7 @@ VisionServiceClient.prototype.getClassificationsFromCamera = function n(e, s, g)
|
|
|
49719
50215
|
debug: this.options.debug,
|
|
49720
50216
|
onEnd: function(p) {
|
|
49721
50217
|
if (g)
|
|
49722
|
-
if (p.status !== grpc$
|
|
50218
|
+
if (p.status !== grpc$c.Code.OK) {
|
|
49723
50219
|
var l = new Error(p.statusMessage);
|
|
49724
50220
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
49725
50221
|
} else
|
|
@@ -49734,7 +50230,7 @@ VisionServiceClient.prototype.getClassificationsFromCamera = function n(e, s, g)
|
|
|
49734
50230
|
};
|
|
49735
50231
|
VisionServiceClient.prototype.getClassifications = function n(e, s, g) {
|
|
49736
50232
|
arguments.length === 2 && (g = arguments[1]);
|
|
49737
|
-
var u = grpc$
|
|
50233
|
+
var u = grpc$c.unary(VisionService.GetClassifications, {
|
|
49738
50234
|
request: e,
|
|
49739
50235
|
host: this.serviceHost,
|
|
49740
50236
|
metadata: s,
|
|
@@ -49742,7 +50238,7 @@ VisionServiceClient.prototype.getClassifications = function n(e, s, g) {
|
|
|
49742
50238
|
debug: this.options.debug,
|
|
49743
50239
|
onEnd: function(p) {
|
|
49744
50240
|
if (g)
|
|
49745
|
-
if (p.status !== grpc$
|
|
50241
|
+
if (p.status !== grpc$c.Code.OK) {
|
|
49746
50242
|
var l = new Error(p.statusMessage);
|
|
49747
50243
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
49748
50244
|
} else
|
|
@@ -49757,7 +50253,7 @@ VisionServiceClient.prototype.getClassifications = function n(e, s, g) {
|
|
|
49757
50253
|
};
|
|
49758
50254
|
VisionServiceClient.prototype.getObjectPointClouds = function n(e, s, g) {
|
|
49759
50255
|
arguments.length === 2 && (g = arguments[1]);
|
|
49760
|
-
var u = grpc$
|
|
50256
|
+
var u = grpc$c.unary(VisionService.GetObjectPointClouds, {
|
|
49761
50257
|
request: e,
|
|
49762
50258
|
host: this.serviceHost,
|
|
49763
50259
|
metadata: s,
|
|
@@ -49765,7 +50261,7 @@ VisionServiceClient.prototype.getObjectPointClouds = function n(e, s, g) {
|
|
|
49765
50261
|
debug: this.options.debug,
|
|
49766
50262
|
onEnd: function(p) {
|
|
49767
50263
|
if (g)
|
|
49768
|
-
if (p.status !== grpc$
|
|
50264
|
+
if (p.status !== grpc$c.Code.OK) {
|
|
49769
50265
|
var l = new Error(p.statusMessage);
|
|
49770
50266
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
49771
50267
|
} else
|
|
@@ -49780,7 +50276,7 @@ VisionServiceClient.prototype.getObjectPointClouds = function n(e, s, g) {
|
|
|
49780
50276
|
};
|
|
49781
50277
|
VisionServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
49782
50278
|
arguments.length === 2 && (g = arguments[1]);
|
|
49783
|
-
var u = grpc$
|
|
50279
|
+
var u = grpc$c.unary(VisionService.GetProperties, {
|
|
49784
50280
|
request: e,
|
|
49785
50281
|
host: this.serviceHost,
|
|
49786
50282
|
metadata: s,
|
|
@@ -49788,7 +50284,7 @@ VisionServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
|
49788
50284
|
debug: this.options.debug,
|
|
49789
50285
|
onEnd: function(p) {
|
|
49790
50286
|
if (g)
|
|
49791
|
-
if (p.status !== grpc$
|
|
50287
|
+
if (p.status !== grpc$c.Code.OK) {
|
|
49792
50288
|
var l = new Error(p.statusMessage);
|
|
49793
50289
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
49794
50290
|
} else
|
|
@@ -49803,7 +50299,7 @@ VisionServiceClient.prototype.getProperties = function n(e, s, g) {
|
|
|
49803
50299
|
};
|
|
49804
50300
|
VisionServiceClient.prototype.captureAllFromCamera = function n(e, s, g) {
|
|
49805
50301
|
arguments.length === 2 && (g = arguments[1]);
|
|
49806
|
-
var u = grpc$
|
|
50302
|
+
var u = grpc$c.unary(VisionService.CaptureAllFromCamera, {
|
|
49807
50303
|
request: e,
|
|
49808
50304
|
host: this.serviceHost,
|
|
49809
50305
|
metadata: s,
|
|
@@ -49811,7 +50307,7 @@ VisionServiceClient.prototype.captureAllFromCamera = function n(e, s, g) {
|
|
|
49811
50307
|
debug: this.options.debug,
|
|
49812
50308
|
onEnd: function(p) {
|
|
49813
50309
|
if (g)
|
|
49814
|
-
if (p.status !== grpc$
|
|
50310
|
+
if (p.status !== grpc$c.Code.OK) {
|
|
49815
50311
|
var l = new Error(p.statusMessage);
|
|
49816
50312
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
49817
50313
|
} else
|
|
@@ -49826,7 +50322,7 @@ VisionServiceClient.prototype.captureAllFromCamera = function n(e, s, g) {
|
|
|
49826
50322
|
};
|
|
49827
50323
|
VisionServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
49828
50324
|
arguments.length === 2 && (g = arguments[1]);
|
|
49829
|
-
var u = grpc$
|
|
50325
|
+
var u = grpc$c.unary(VisionService.DoCommand, {
|
|
49830
50326
|
request: e,
|
|
49831
50327
|
host: this.serviceHost,
|
|
49832
50328
|
metadata: s,
|
|
@@ -49834,7 +50330,7 @@ VisionServiceClient.prototype.doCommand = function n(e, s, g) {
|
|
|
49834
50330
|
debug: this.options.debug,
|
|
49835
50331
|
onEnd: function(p) {
|
|
49836
50332
|
if (g)
|
|
49837
|
-
if (p.status !== grpc$
|
|
50333
|
+
if (p.status !== grpc$c.Code.OK) {
|
|
49838
50334
|
var l = new Error(p.statusMessage);
|
|
49839
50335
|
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
49840
50336
|
} else
|
|
@@ -49860,94 +50356,6 @@ class ViamResponseStream extends EventDispatcher {
|
|
|
49860
50356
|
this.listeners = {}, this.stream.cancel();
|
|
49861
50357
|
}
|
|
49862
50358
|
}
|
|
49863
|
-
const apiVersion = "v0.1.337", promisify = async (n, e) => new Promise((s, g) => {
|
|
49864
|
-
n(e, new grpcWebClient_umdExports$1.grpc.Metadata(), (u, p) => {
|
|
49865
|
-
if (u) {
|
|
49866
|
-
g(u);
|
|
49867
|
-
return;
|
|
49868
|
-
}
|
|
49869
|
-
if (!p) {
|
|
49870
|
-
g(new Error("no response"));
|
|
49871
|
-
return;
|
|
49872
|
-
}
|
|
49873
|
-
s(p);
|
|
49874
|
-
});
|
|
49875
|
-
}), doCommandFromClient = async function n(e, s, g, u = {}) {
|
|
49876
|
-
const p = new common.DoCommandRequest();
|
|
49877
|
-
p.setName(s), p.setCommand(struct_pb.Struct.fromJavaScript(g)), u.requestLogger?.(p);
|
|
49878
|
-
const o = (await promisify(e.doCommand.bind(e), p)).getResult()?.toJavaScript();
|
|
49879
|
-
return o || {};
|
|
49880
|
-
}, encodeVector3 = (n) => {
|
|
49881
|
-
const e = new common.Vector3();
|
|
49882
|
-
return e.setX(n.x), e.setY(n.y), e.setZ(n.z), e;
|
|
49883
|
-
}, encodePose = (n) => {
|
|
49884
|
-
const e = new common.Pose();
|
|
49885
|
-
return e.setX(n.x), e.setY(n.y), e.setZ(n.z), e.setOX(n.oX), e.setOY(n.oY), e.setOZ(n.oZ), e.setTheta(n.theta), e;
|
|
49886
|
-
}, encodePoseInFrame = (n) => {
|
|
49887
|
-
if (!n.pose)
|
|
49888
|
-
throw new Error("no pose");
|
|
49889
|
-
const e = new common.PoseInFrame();
|
|
49890
|
-
return e.setPose(encodePose(n.pose)), e.setReferenceFrame(n.referenceFrame), e;
|
|
49891
|
-
}, encodeResourceName = (n) => {
|
|
49892
|
-
const e = new common.ResourceName();
|
|
49893
|
-
return e.setNamespace(n.namespace), e.setType(n.type), e.setSubtype(n.subtype), e.setName(n.name), e;
|
|
49894
|
-
}, encodeGeometry = (n) => {
|
|
49895
|
-
const e = new common.Geometry();
|
|
49896
|
-
if (n.label && e.setLabel(n.label), n.center !== void 0 && e.setCenter(encodePose(n.center)), n.sphere !== void 0) {
|
|
49897
|
-
const s = new common.Sphere();
|
|
49898
|
-
s.setRadiusMm(n.sphere.radiusMm), e.setSphere(s);
|
|
49899
|
-
}
|
|
49900
|
-
if (n.box !== void 0) {
|
|
49901
|
-
const s = new common.RectangularPrism();
|
|
49902
|
-
n.box.dimsMm !== void 0 && s.setDimsMm(encodeVector3(n.box.dimsMm)), e.setBox(s);
|
|
49903
|
-
}
|
|
49904
|
-
if (n.capsule !== void 0) {
|
|
49905
|
-
const s = new common.Capsule();
|
|
49906
|
-
s.setLengthMm(n.capsule.lengthMm), s.setRadiusMm(n.capsule.radiusMm), e.setCapsule(s);
|
|
49907
|
-
}
|
|
49908
|
-
return e;
|
|
49909
|
-
}, encodeGeometriesInFrame = (n) => {
|
|
49910
|
-
const e = new common.GeometriesInFrame();
|
|
49911
|
-
return e.setReferenceFrame(n.referenceFrame), e.setGeometriesList(n.geometriesList.map((s) => encodeGeometry(s))), e;
|
|
49912
|
-
}, encodeTransform = (n) => {
|
|
49913
|
-
const e = new common.Transform();
|
|
49914
|
-
return e.setReferenceFrame(n.referenceFrame), n.physicalObject !== void 0 && e.setPhysicalObject(encodeGeometry(n.physicalObject)), n.poseInObserverFrame !== void 0 && e.setPoseInObserverFrame(encodePoseInFrame(n.poseInObserverFrame)), e;
|
|
49915
|
-
}, encodeWorldState = (n) => {
|
|
49916
|
-
const e = new common.WorldState();
|
|
49917
|
-
return e.setObstaclesList(
|
|
49918
|
-
n.obstaclesList.map((s) => encodeGeometriesInFrame(s))
|
|
49919
|
-
), e.setTransformsList(n.transformsList.map((s) => encodeTransform(s))), e;
|
|
49920
|
-
}, encodeGeoPoint = (n) => {
|
|
49921
|
-
const e = new common.GeoPoint();
|
|
49922
|
-
return e.setLatitude(n.latitude), e.setLongitude(n.longitude), e;
|
|
49923
|
-
}, encodeGeoGeometry = (n) => {
|
|
49924
|
-
const e = new common.GeoGeometry();
|
|
49925
|
-
return n.location && e.setLocation(encodeGeoPoint(n.location)), e.setGeometriesList(n.geometriesList.map((s) => encodeGeometry(s))), e;
|
|
49926
|
-
};
|
|
49927
|
-
class MetadataTransport {
|
|
49928
|
-
metadata;
|
|
49929
|
-
transport;
|
|
49930
|
-
constructor(e, s, g) {
|
|
49931
|
-
this.transport = e(s), this.metadata = g ?? new grpcWebClient_umdExports$1.grpc.Metadata(), this.metadata.set(
|
|
49932
|
-
"viam-client",
|
|
49933
|
-
`typescript;v0.23.0;${apiVersion}`
|
|
49934
|
-
);
|
|
49935
|
-
}
|
|
49936
|
-
start(e) {
|
|
49937
|
-
this.metadata.forEach((s, g) => {
|
|
49938
|
-
e.set(s, g);
|
|
49939
|
-
}), this.transport.start(e);
|
|
49940
|
-
}
|
|
49941
|
-
sendMessage(e) {
|
|
49942
|
-
this.transport.sendMessage(e);
|
|
49943
|
-
}
|
|
49944
|
-
finishSend() {
|
|
49945
|
-
this.transport.finishSend();
|
|
49946
|
-
}
|
|
49947
|
-
cancel() {
|
|
49948
|
-
this.transport.cancel();
|
|
49949
|
-
}
|
|
49950
|
-
}
|
|
49951
50359
|
const timeoutBlob$1 = new Blob(
|
|
49952
50360
|
[
|
|
49953
50361
|
`self.onmessage = function(e) {
|
|
@@ -50184,6 +50592,7 @@ class RobotClient extends EventDispatcher {
|
|
|
50184
50592
|
connectResolve;
|
|
50185
50593
|
savedAuthEntity;
|
|
50186
50594
|
savedCreds;
|
|
50595
|
+
closed;
|
|
50187
50596
|
robotServiceClient;
|
|
50188
50597
|
armServiceClient;
|
|
50189
50598
|
baseServiceClient;
|
|
@@ -50225,9 +50634,10 @@ class RobotClient extends EventDispatcher {
|
|
|
50225
50634
|
this.on(p, () => {
|
|
50226
50635
|
this.emit("connectionstatechange", { eventType: p });
|
|
50227
50636
|
});
|
|
50637
|
+
this.closed = !1;
|
|
50228
50638
|
}
|
|
50229
50639
|
onDisconnect(e) {
|
|
50230
|
-
this.emit(MachineConnectionEvent.DISCONNECTED, e ?? {}), !this.noReconnect && (console.debug("Connection closed, will try to reconnect"), backOff_1(async () => this.connect(), {
|
|
50640
|
+
this.emit(MachineConnectionEvent.DISCONNECTED, e ?? {}), !this.noReconnect && (this.closed || (console.debug("Connection closed, will try to reconnect"), backOff_1(async () => this.connect(), {
|
|
50231
50641
|
maxDelay: this.reconnectMaxWait,
|
|
50232
50642
|
numOfAttempts: this.reconnectMaxAttempts,
|
|
50233
50643
|
retry: (s, g) => (console.debug(
|
|
@@ -50237,7 +50647,7 @@ class RobotClient extends EventDispatcher {
|
|
|
50237
50647
|
console.debug("Reconnected successfully!");
|
|
50238
50648
|
}).catch(() => {
|
|
50239
50649
|
console.debug(`Reached max attempts: ${this.reconnectMaxAttempts}`);
|
|
50240
|
-
}));
|
|
50650
|
+
})));
|
|
50241
50651
|
}
|
|
50242
50652
|
get noReconnect() {
|
|
50243
50653
|
return this.webrtcOptions?.noReconnect ?? this.directOptions?.noReconnect;
|
|
@@ -50355,7 +50765,7 @@ class RobotClient extends EventDispatcher {
|
|
|
50355
50765
|
async disconnect() {
|
|
50356
50766
|
for (this.emit(MachineConnectionEvent.DISCONNECTING, {}); this.connecting; )
|
|
50357
50767
|
await this.connecting;
|
|
50358
|
-
this.peerConn && (this.peerConn.close(), this.peerConn = void 0), this.sessionManager.reset(), this.emit(MachineConnectionEvent.DISCONNECTED, {});
|
|
50768
|
+
this.peerConn && (this.peerConn.close(), this.peerConn = void 0), this.sessionManager.reset(), this.closed = !0, this.emit(MachineConnectionEvent.DISCONNECTED, {});
|
|
50359
50769
|
}
|
|
50360
50770
|
isConnected() {
|
|
50361
50771
|
return this.peerConn?.iceConnectionState === "connected";
|
|
@@ -50368,7 +50778,7 @@ class RobotClient extends EventDispatcher {
|
|
|
50368
50778
|
priority: g,
|
|
50369
50779
|
dialTimeout: u
|
|
50370
50780
|
} = {}) {
|
|
50371
|
-
if (this.emit(MachineConnectionEvent.CONNECTING, {}), this.connecting) {
|
|
50781
|
+
if (this.emit(MachineConnectionEvent.CONNECTING, {}), this.closed = !1, this.connecting) {
|
|
50372
50782
|
for (; this.connecting; )
|
|
50373
50783
|
await this.connecting;
|
|
50374
50784
|
return;
|
|
@@ -50379,14 +50789,13 @@ class RobotClient extends EventDispatcher {
|
|
|
50379
50789
|
try {
|
|
50380
50790
|
const p = {
|
|
50381
50791
|
authEntity: e,
|
|
50382
|
-
credentials: s,
|
|
50383
50792
|
webrtcOptions: {
|
|
50384
50793
|
disableTrickleICE: !1,
|
|
50385
50794
|
rtcConfig: this.webrtcOptions?.rtcConfig
|
|
50386
50795
|
},
|
|
50387
50796
|
dialTimeout: u ?? DIAL_TIMEOUT
|
|
50388
50797
|
};
|
|
50389
|
-
if (g !== void 0 && p.webrtcOptions && (p.webrtcOptions.additionalSdpFields = { "x-priority": g }), this.savedAuthEntity = e, this.savedCreds = s, this.webrtcOptions?.enabled) {
|
|
50798
|
+
if (s && (isCredential(s) ? p.credentials = s : p.accessToken = s.payload), g !== void 0 && p.webrtcOptions && (p.webrtcOptions.additionalSdpFields = { "x-priority": g }), this.savedAuthEntity = e, this.savedCreds = s, this.webrtcOptions?.enabled) {
|
|
50390
50799
|
p.webrtcOptions && (p.webrtcOptions.signalingAuthEntity = p.authEntity, p.webrtcOptions.signalingCredentials = p.credentials);
|
|
50391
50800
|
const i = await dialWebRTC$1(
|
|
50392
50801
|
this.webrtcOptions.signalingAddress || this.serviceHost,
|
|
@@ -50597,12 +51006,11 @@ const isPosInt = (n) => !!(n > 0 && Number.isInteger(n)), isLocalConnection = (n
|
|
|
50597
51006
|
let l;
|
|
50598
51007
|
n.disableSessions && (l = { disabled: !0 });
|
|
50599
51008
|
const o = new RobotClient(e, p, l);
|
|
50600
|
-
|
|
50601
|
-
return n.credential && (r = n.credential), await o.connect({
|
|
51009
|
+
return await o.connect({
|
|
50602
51010
|
authEntity: n.authEntity ?? e,
|
|
50603
|
-
creds: r,
|
|
50604
51011
|
priority: n.priority,
|
|
50605
|
-
dialTimeout: n.dialTimeout ?? DIAL_TIMEOUT
|
|
51012
|
+
dialTimeout: n.dialTimeout ?? DIAL_TIMEOUT,
|
|
51013
|
+
creds: n.credential
|
|
50606
51014
|
}), console.debug("connected via WebRTC"), o;
|
|
50607
51015
|
}, isDialWebRTCConf = (n) => {
|
|
50608
51016
|
const e = n;
|
|
@@ -50644,393 +51052,6 @@ const isPosInt = (n) => !!(n > 0 && Number.isInteger(n)), isLocalConnection = (n
|
|
|
50644
51052
|
`Value of max reconnect wait (${n.reconnectMaxWait}) should be a positive integer`
|
|
50645
51053
|
);
|
|
50646
51054
|
};
|
|
50647
|
-
var auth_pb = {};
|
|
50648
|
-
(function(n) {
|
|
50649
|
-
var e = googleProtobuf$1, s = e, g = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof g < "u" && g || typeof self < "u" && self || function() {
|
|
50650
|
-
return this;
|
|
50651
|
-
}.call(null) || Function("return this")(), u = annotations_pb$1;
|
|
50652
|
-
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) {
|
|
50653
|
-
e.Message.initialize(this, p, 0, -1, null, null);
|
|
50654
|
-
}, 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) {
|
|
50655
|
-
e.Message.initialize(this, p, 0, -1, null, null);
|
|
50656
|
-
}, s.inherits(proto.proto.rpc.v1.AuthenticateRequest, e.Message), s.DEBUG && !COMPILED && (proto.proto.rpc.v1.AuthenticateRequest.displayName = "proto.proto.rpc.v1.AuthenticateRequest"), proto.proto.rpc.v1.AuthenticateResponse = function(p) {
|
|
50657
|
-
e.Message.initialize(this, p, 0, -1, null, null);
|
|
50658
|
-
}, s.inherits(proto.proto.rpc.v1.AuthenticateResponse, e.Message), s.DEBUG && !COMPILED && (proto.proto.rpc.v1.AuthenticateResponse.displayName = "proto.proto.rpc.v1.AuthenticateResponse"), proto.proto.rpc.v1.AuthenticateToRequest = function(p) {
|
|
50659
|
-
e.Message.initialize(this, p, 0, -1, null, null);
|
|
50660
|
-
}, s.inherits(proto.proto.rpc.v1.AuthenticateToRequest, e.Message), s.DEBUG && !COMPILED && (proto.proto.rpc.v1.AuthenticateToRequest.displayName = "proto.proto.rpc.v1.AuthenticateToRequest"), proto.proto.rpc.v1.AuthenticateToResponse = function(p) {
|
|
50661
|
-
e.Message.initialize(this, p, 0, -1, null, null);
|
|
50662
|
-
}, s.inherits(proto.proto.rpc.v1.AuthenticateToResponse, e.Message), s.DEBUG && !COMPILED && (proto.proto.rpc.v1.AuthenticateToResponse.displayName = "proto.proto.rpc.v1.AuthenticateToResponse"), e.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.v1.Credentials.prototype.toObject = function(p) {
|
|
50663
|
-
return proto.proto.rpc.v1.Credentials.toObject(p, this);
|
|
50664
|
-
}, proto.proto.rpc.v1.Credentials.toObject = function(p, l) {
|
|
50665
|
-
var o = {
|
|
50666
|
-
type: e.Message.getFieldWithDefault(l, 1, ""),
|
|
50667
|
-
payload: e.Message.getFieldWithDefault(l, 2, "")
|
|
50668
|
-
};
|
|
50669
|
-
return p && (o.$jspbMessageInstance = l), o;
|
|
50670
|
-
}), proto.proto.rpc.v1.Credentials.deserializeBinary = function(p) {
|
|
50671
|
-
var l = new e.BinaryReader(p), o = new proto.proto.rpc.v1.Credentials();
|
|
50672
|
-
return proto.proto.rpc.v1.Credentials.deserializeBinaryFromReader(o, l);
|
|
50673
|
-
}, proto.proto.rpc.v1.Credentials.deserializeBinaryFromReader = function(p, l) {
|
|
50674
|
-
for (; l.nextField() && !l.isEndGroup(); ) {
|
|
50675
|
-
var o = l.getFieldNumber();
|
|
50676
|
-
switch (o) {
|
|
50677
|
-
case 1:
|
|
50678
|
-
var r = (
|
|
50679
|
-
/** @type {string} */
|
|
50680
|
-
l.readString()
|
|
50681
|
-
);
|
|
50682
|
-
p.setType(r);
|
|
50683
|
-
break;
|
|
50684
|
-
case 2:
|
|
50685
|
-
var r = (
|
|
50686
|
-
/** @type {string} */
|
|
50687
|
-
l.readString()
|
|
50688
|
-
);
|
|
50689
|
-
p.setPayload(r);
|
|
50690
|
-
break;
|
|
50691
|
-
default:
|
|
50692
|
-
l.skipField();
|
|
50693
|
-
break;
|
|
50694
|
-
}
|
|
50695
|
-
}
|
|
50696
|
-
return p;
|
|
50697
|
-
}, proto.proto.rpc.v1.Credentials.prototype.serializeBinary = function() {
|
|
50698
|
-
var p = new e.BinaryWriter();
|
|
50699
|
-
return proto.proto.rpc.v1.Credentials.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
50700
|
-
}, proto.proto.rpc.v1.Credentials.serializeBinaryToWriter = function(p, l) {
|
|
50701
|
-
var o = void 0;
|
|
50702
|
-
o = p.getType(), o.length > 0 && l.writeString(
|
|
50703
|
-
1,
|
|
50704
|
-
o
|
|
50705
|
-
), o = p.getPayload(), o.length > 0 && l.writeString(
|
|
50706
|
-
2,
|
|
50707
|
-
o
|
|
50708
|
-
);
|
|
50709
|
-
}, proto.proto.rpc.v1.Credentials.prototype.getType = function() {
|
|
50710
|
-
return (
|
|
50711
|
-
/** @type {string} */
|
|
50712
|
-
e.Message.getFieldWithDefault(this, 1, "")
|
|
50713
|
-
);
|
|
50714
|
-
}, proto.proto.rpc.v1.Credentials.prototype.setType = function(p) {
|
|
50715
|
-
return e.Message.setProto3StringField(this, 1, p);
|
|
50716
|
-
}, proto.proto.rpc.v1.Credentials.prototype.getPayload = function() {
|
|
50717
|
-
return (
|
|
50718
|
-
/** @type {string} */
|
|
50719
|
-
e.Message.getFieldWithDefault(this, 2, "")
|
|
50720
|
-
);
|
|
50721
|
-
}, proto.proto.rpc.v1.Credentials.prototype.setPayload = function(p) {
|
|
50722
|
-
return e.Message.setProto3StringField(this, 2, p);
|
|
50723
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.v1.AuthenticateRequest.prototype.toObject = function(p) {
|
|
50724
|
-
return proto.proto.rpc.v1.AuthenticateRequest.toObject(p, this);
|
|
50725
|
-
}, proto.proto.rpc.v1.AuthenticateRequest.toObject = function(p, l) {
|
|
50726
|
-
var o, r = {
|
|
50727
|
-
entity: e.Message.getFieldWithDefault(l, 1, ""),
|
|
50728
|
-
credentials: (o = l.getCredentials()) && proto.proto.rpc.v1.Credentials.toObject(p, o)
|
|
50729
|
-
};
|
|
50730
|
-
return p && (r.$jspbMessageInstance = l), r;
|
|
50731
|
-
}), proto.proto.rpc.v1.AuthenticateRequest.deserializeBinary = function(p) {
|
|
50732
|
-
var l = new e.BinaryReader(p), o = new proto.proto.rpc.v1.AuthenticateRequest();
|
|
50733
|
-
return proto.proto.rpc.v1.AuthenticateRequest.deserializeBinaryFromReader(o, l);
|
|
50734
|
-
}, proto.proto.rpc.v1.AuthenticateRequest.deserializeBinaryFromReader = function(p, l) {
|
|
50735
|
-
for (; l.nextField() && !l.isEndGroup(); ) {
|
|
50736
|
-
var o = l.getFieldNumber();
|
|
50737
|
-
switch (o) {
|
|
50738
|
-
case 1:
|
|
50739
|
-
var r = (
|
|
50740
|
-
/** @type {string} */
|
|
50741
|
-
l.readString()
|
|
50742
|
-
);
|
|
50743
|
-
p.setEntity(r);
|
|
50744
|
-
break;
|
|
50745
|
-
case 2:
|
|
50746
|
-
var r = new proto.proto.rpc.v1.Credentials();
|
|
50747
|
-
l.readMessage(r, proto.proto.rpc.v1.Credentials.deserializeBinaryFromReader), p.setCredentials(r);
|
|
50748
|
-
break;
|
|
50749
|
-
default:
|
|
50750
|
-
l.skipField();
|
|
50751
|
-
break;
|
|
50752
|
-
}
|
|
50753
|
-
}
|
|
50754
|
-
return p;
|
|
50755
|
-
}, proto.proto.rpc.v1.AuthenticateRequest.prototype.serializeBinary = function() {
|
|
50756
|
-
var p = new e.BinaryWriter();
|
|
50757
|
-
return proto.proto.rpc.v1.AuthenticateRequest.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
50758
|
-
}, proto.proto.rpc.v1.AuthenticateRequest.serializeBinaryToWriter = function(p, l) {
|
|
50759
|
-
var o = void 0;
|
|
50760
|
-
o = p.getEntity(), o.length > 0 && l.writeString(
|
|
50761
|
-
1,
|
|
50762
|
-
o
|
|
50763
|
-
), o = p.getCredentials(), o != null && l.writeMessage(
|
|
50764
|
-
2,
|
|
50765
|
-
o,
|
|
50766
|
-
proto.proto.rpc.v1.Credentials.serializeBinaryToWriter
|
|
50767
|
-
);
|
|
50768
|
-
}, proto.proto.rpc.v1.AuthenticateRequest.prototype.getEntity = function() {
|
|
50769
|
-
return (
|
|
50770
|
-
/** @type {string} */
|
|
50771
|
-
e.Message.getFieldWithDefault(this, 1, "")
|
|
50772
|
-
);
|
|
50773
|
-
}, proto.proto.rpc.v1.AuthenticateRequest.prototype.setEntity = function(p) {
|
|
50774
|
-
return e.Message.setProto3StringField(this, 1, p);
|
|
50775
|
-
}, proto.proto.rpc.v1.AuthenticateRequest.prototype.getCredentials = function() {
|
|
50776
|
-
return (
|
|
50777
|
-
/** @type{?proto.proto.rpc.v1.Credentials} */
|
|
50778
|
-
e.Message.getWrapperField(this, proto.proto.rpc.v1.Credentials, 2)
|
|
50779
|
-
);
|
|
50780
|
-
}, proto.proto.rpc.v1.AuthenticateRequest.prototype.setCredentials = function(p) {
|
|
50781
|
-
return e.Message.setWrapperField(this, 2, p);
|
|
50782
|
-
}, proto.proto.rpc.v1.AuthenticateRequest.prototype.clearCredentials = function() {
|
|
50783
|
-
return this.setCredentials(void 0);
|
|
50784
|
-
}, proto.proto.rpc.v1.AuthenticateRequest.prototype.hasCredentials = function() {
|
|
50785
|
-
return e.Message.getField(this, 2) != null;
|
|
50786
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.v1.AuthenticateResponse.prototype.toObject = function(p) {
|
|
50787
|
-
return proto.proto.rpc.v1.AuthenticateResponse.toObject(p, this);
|
|
50788
|
-
}, proto.proto.rpc.v1.AuthenticateResponse.toObject = function(p, l) {
|
|
50789
|
-
var o = {
|
|
50790
|
-
accessToken: e.Message.getFieldWithDefault(l, 1, "")
|
|
50791
|
-
};
|
|
50792
|
-
return p && (o.$jspbMessageInstance = l), o;
|
|
50793
|
-
}), proto.proto.rpc.v1.AuthenticateResponse.deserializeBinary = function(p) {
|
|
50794
|
-
var l = new e.BinaryReader(p), o = new proto.proto.rpc.v1.AuthenticateResponse();
|
|
50795
|
-
return proto.proto.rpc.v1.AuthenticateResponse.deserializeBinaryFromReader(o, l);
|
|
50796
|
-
}, proto.proto.rpc.v1.AuthenticateResponse.deserializeBinaryFromReader = function(p, l) {
|
|
50797
|
-
for (; l.nextField() && !l.isEndGroup(); ) {
|
|
50798
|
-
var o = l.getFieldNumber();
|
|
50799
|
-
switch (o) {
|
|
50800
|
-
case 1:
|
|
50801
|
-
var r = (
|
|
50802
|
-
/** @type {string} */
|
|
50803
|
-
l.readString()
|
|
50804
|
-
);
|
|
50805
|
-
p.setAccessToken(r);
|
|
50806
|
-
break;
|
|
50807
|
-
default:
|
|
50808
|
-
l.skipField();
|
|
50809
|
-
break;
|
|
50810
|
-
}
|
|
50811
|
-
}
|
|
50812
|
-
return p;
|
|
50813
|
-
}, proto.proto.rpc.v1.AuthenticateResponse.prototype.serializeBinary = function() {
|
|
50814
|
-
var p = new e.BinaryWriter();
|
|
50815
|
-
return proto.proto.rpc.v1.AuthenticateResponse.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
50816
|
-
}, proto.proto.rpc.v1.AuthenticateResponse.serializeBinaryToWriter = function(p, l) {
|
|
50817
|
-
var o = void 0;
|
|
50818
|
-
o = p.getAccessToken(), o.length > 0 && l.writeString(
|
|
50819
|
-
1,
|
|
50820
|
-
o
|
|
50821
|
-
);
|
|
50822
|
-
}, proto.proto.rpc.v1.AuthenticateResponse.prototype.getAccessToken = function() {
|
|
50823
|
-
return (
|
|
50824
|
-
/** @type {string} */
|
|
50825
|
-
e.Message.getFieldWithDefault(this, 1, "")
|
|
50826
|
-
);
|
|
50827
|
-
}, proto.proto.rpc.v1.AuthenticateResponse.prototype.setAccessToken = function(p) {
|
|
50828
|
-
return e.Message.setProto3StringField(this, 1, p);
|
|
50829
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.v1.AuthenticateToRequest.prototype.toObject = function(p) {
|
|
50830
|
-
return proto.proto.rpc.v1.AuthenticateToRequest.toObject(p, this);
|
|
50831
|
-
}, proto.proto.rpc.v1.AuthenticateToRequest.toObject = function(p, l) {
|
|
50832
|
-
var o = {
|
|
50833
|
-
entity: e.Message.getFieldWithDefault(l, 1, "")
|
|
50834
|
-
};
|
|
50835
|
-
return p && (o.$jspbMessageInstance = l), o;
|
|
50836
|
-
}), proto.proto.rpc.v1.AuthenticateToRequest.deserializeBinary = function(p) {
|
|
50837
|
-
var l = new e.BinaryReader(p), o = new proto.proto.rpc.v1.AuthenticateToRequest();
|
|
50838
|
-
return proto.proto.rpc.v1.AuthenticateToRequest.deserializeBinaryFromReader(o, l);
|
|
50839
|
-
}, proto.proto.rpc.v1.AuthenticateToRequest.deserializeBinaryFromReader = function(p, l) {
|
|
50840
|
-
for (; l.nextField() && !l.isEndGroup(); ) {
|
|
50841
|
-
var o = l.getFieldNumber();
|
|
50842
|
-
switch (o) {
|
|
50843
|
-
case 1:
|
|
50844
|
-
var r = (
|
|
50845
|
-
/** @type {string} */
|
|
50846
|
-
l.readString()
|
|
50847
|
-
);
|
|
50848
|
-
p.setEntity(r);
|
|
50849
|
-
break;
|
|
50850
|
-
default:
|
|
50851
|
-
l.skipField();
|
|
50852
|
-
break;
|
|
50853
|
-
}
|
|
50854
|
-
}
|
|
50855
|
-
return p;
|
|
50856
|
-
}, proto.proto.rpc.v1.AuthenticateToRequest.prototype.serializeBinary = function() {
|
|
50857
|
-
var p = new e.BinaryWriter();
|
|
50858
|
-
return proto.proto.rpc.v1.AuthenticateToRequest.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
50859
|
-
}, proto.proto.rpc.v1.AuthenticateToRequest.serializeBinaryToWriter = function(p, l) {
|
|
50860
|
-
var o = void 0;
|
|
50861
|
-
o = p.getEntity(), o.length > 0 && l.writeString(
|
|
50862
|
-
1,
|
|
50863
|
-
o
|
|
50864
|
-
);
|
|
50865
|
-
}, proto.proto.rpc.v1.AuthenticateToRequest.prototype.getEntity = function() {
|
|
50866
|
-
return (
|
|
50867
|
-
/** @type {string} */
|
|
50868
|
-
e.Message.getFieldWithDefault(this, 1, "")
|
|
50869
|
-
);
|
|
50870
|
-
}, proto.proto.rpc.v1.AuthenticateToRequest.prototype.setEntity = function(p) {
|
|
50871
|
-
return e.Message.setProto3StringField(this, 1, p);
|
|
50872
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.v1.AuthenticateToResponse.prototype.toObject = function(p) {
|
|
50873
|
-
return proto.proto.rpc.v1.AuthenticateToResponse.toObject(p, this);
|
|
50874
|
-
}, proto.proto.rpc.v1.AuthenticateToResponse.toObject = function(p, l) {
|
|
50875
|
-
var o = {
|
|
50876
|
-
accessToken: e.Message.getFieldWithDefault(l, 1, "")
|
|
50877
|
-
};
|
|
50878
|
-
return p && (o.$jspbMessageInstance = l), o;
|
|
50879
|
-
}), proto.proto.rpc.v1.AuthenticateToResponse.deserializeBinary = function(p) {
|
|
50880
|
-
var l = new e.BinaryReader(p), o = new proto.proto.rpc.v1.AuthenticateToResponse();
|
|
50881
|
-
return proto.proto.rpc.v1.AuthenticateToResponse.deserializeBinaryFromReader(o, l);
|
|
50882
|
-
}, proto.proto.rpc.v1.AuthenticateToResponse.deserializeBinaryFromReader = function(p, l) {
|
|
50883
|
-
for (; l.nextField() && !l.isEndGroup(); ) {
|
|
50884
|
-
var o = l.getFieldNumber();
|
|
50885
|
-
switch (o) {
|
|
50886
|
-
case 1:
|
|
50887
|
-
var r = (
|
|
50888
|
-
/** @type {string} */
|
|
50889
|
-
l.readString()
|
|
50890
|
-
);
|
|
50891
|
-
p.setAccessToken(r);
|
|
50892
|
-
break;
|
|
50893
|
-
default:
|
|
50894
|
-
l.skipField();
|
|
50895
|
-
break;
|
|
50896
|
-
}
|
|
50897
|
-
}
|
|
50898
|
-
return p;
|
|
50899
|
-
}, proto.proto.rpc.v1.AuthenticateToResponse.prototype.serializeBinary = function() {
|
|
50900
|
-
var p = new e.BinaryWriter();
|
|
50901
|
-
return proto.proto.rpc.v1.AuthenticateToResponse.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
50902
|
-
}, proto.proto.rpc.v1.AuthenticateToResponse.serializeBinaryToWriter = function(p, l) {
|
|
50903
|
-
var o = void 0;
|
|
50904
|
-
o = p.getAccessToken(), o.length > 0 && l.writeString(
|
|
50905
|
-
1,
|
|
50906
|
-
o
|
|
50907
|
-
);
|
|
50908
|
-
}, proto.proto.rpc.v1.AuthenticateToResponse.prototype.getAccessToken = function() {
|
|
50909
|
-
return (
|
|
50910
|
-
/** @type {string} */
|
|
50911
|
-
e.Message.getFieldWithDefault(this, 1, "")
|
|
50912
|
-
);
|
|
50913
|
-
}, proto.proto.rpc.v1.AuthenticateToResponse.prototype.setAccessToken = function(p) {
|
|
50914
|
-
return e.Message.setProto3StringField(this, 1, p);
|
|
50915
|
-
}, s.object.extend(n, proto.proto.rpc.v1);
|
|
50916
|
-
})(auth_pb);
|
|
50917
|
-
var proto_rpc_v1_auth_pb = auth_pb, grpc$c = grpcWebClient_umdExports$1.grpc, AuthService = function() {
|
|
50918
|
-
function n() {
|
|
50919
|
-
}
|
|
50920
|
-
return n.serviceName = "proto.rpc.v1.AuthService", n;
|
|
50921
|
-
}();
|
|
50922
|
-
AuthService.Authenticate = {
|
|
50923
|
-
methodName: "Authenticate",
|
|
50924
|
-
service: AuthService,
|
|
50925
|
-
requestStream: !1,
|
|
50926
|
-
responseStream: !1,
|
|
50927
|
-
requestType: proto_rpc_v1_auth_pb.AuthenticateRequest,
|
|
50928
|
-
responseType: proto_rpc_v1_auth_pb.AuthenticateResponse
|
|
50929
|
-
};
|
|
50930
|
-
function AuthServiceClient(n, e) {
|
|
50931
|
-
this.serviceHost = n, this.options = e || {};
|
|
50932
|
-
}
|
|
50933
|
-
AuthServiceClient.prototype.authenticate = function n(e, s, g) {
|
|
50934
|
-
arguments.length === 2 && (g = arguments[1]);
|
|
50935
|
-
var u = grpc$c.unary(AuthService.Authenticate, {
|
|
50936
|
-
request: e,
|
|
50937
|
-
host: this.serviceHost,
|
|
50938
|
-
metadata: s,
|
|
50939
|
-
transport: this.options.transport,
|
|
50940
|
-
debug: this.options.debug,
|
|
50941
|
-
onEnd: function(p) {
|
|
50942
|
-
if (g)
|
|
50943
|
-
if (p.status !== grpc$c.Code.OK) {
|
|
50944
|
-
var l = new Error(p.statusMessage);
|
|
50945
|
-
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
50946
|
-
} else
|
|
50947
|
-
g(null, p.message);
|
|
50948
|
-
}
|
|
50949
|
-
});
|
|
50950
|
-
return {
|
|
50951
|
-
cancel: function() {
|
|
50952
|
-
g = null, u.close();
|
|
50953
|
-
}
|
|
50954
|
-
};
|
|
50955
|
-
};
|
|
50956
|
-
var AuthServiceClient_1 = AuthServiceClient, ExternalAuthService = function() {
|
|
50957
|
-
function n() {
|
|
50958
|
-
}
|
|
50959
|
-
return n.serviceName = "proto.rpc.v1.ExternalAuthService", n;
|
|
50960
|
-
}();
|
|
50961
|
-
ExternalAuthService.AuthenticateTo = {
|
|
50962
|
-
methodName: "AuthenticateTo",
|
|
50963
|
-
service: ExternalAuthService,
|
|
50964
|
-
requestStream: !1,
|
|
50965
|
-
responseStream: !1,
|
|
50966
|
-
requestType: proto_rpc_v1_auth_pb.AuthenticateToRequest,
|
|
50967
|
-
responseType: proto_rpc_v1_auth_pb.AuthenticateToResponse
|
|
50968
|
-
};
|
|
50969
|
-
function ExternalAuthServiceClient(n, e) {
|
|
50970
|
-
this.serviceHost = n, this.options = e || {};
|
|
50971
|
-
}
|
|
50972
|
-
ExternalAuthServiceClient.prototype.authenticateTo = function n(e, s, g) {
|
|
50973
|
-
arguments.length === 2 && (g = arguments[1]);
|
|
50974
|
-
var u = grpc$c.unary(ExternalAuthService.AuthenticateTo, {
|
|
50975
|
-
request: e,
|
|
50976
|
-
host: this.serviceHost,
|
|
50977
|
-
metadata: s,
|
|
50978
|
-
transport: this.options.transport,
|
|
50979
|
-
debug: this.options.debug,
|
|
50980
|
-
onEnd: function(p) {
|
|
50981
|
-
if (g)
|
|
50982
|
-
if (p.status !== grpc$c.Code.OK) {
|
|
50983
|
-
var l = new Error(p.statusMessage);
|
|
50984
|
-
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
50985
|
-
} else
|
|
50986
|
-
g(null, p.message);
|
|
50987
|
-
}
|
|
50988
|
-
});
|
|
50989
|
-
return {
|
|
50990
|
-
cancel: function() {
|
|
50991
|
-
g = null, u.close();
|
|
50992
|
-
}
|
|
50993
|
-
};
|
|
50994
|
-
};
|
|
50995
|
-
const isCredential = (n) => "authEntity" in n, createViamTransportFactory = async (n, e) => e.type === "access-token" ? createWithAccessToken(n, e) : createWithCredential(n, e), createWithAccessToken = async (n, e) => {
|
|
50996
|
-
const s = await dialDirect$1(n);
|
|
50997
|
-
return (g) => new ViamTransport(s, g, e.payload);
|
|
50998
|
-
}, getAccessTokenFromCredential = async (n, e) => {
|
|
50999
|
-
if (e.type === "robot-secret")
|
|
51000
|
-
throw new Error(
|
|
51001
|
-
"credential type cannot be 'robot-secret'. Must be either 'robot-location-secret' or 'api-key'."
|
|
51002
|
-
);
|
|
51003
|
-
if (!e.authEntity)
|
|
51004
|
-
throw new Error(
|
|
51005
|
-
"auth entity cannot be null, undefined, or an empty value."
|
|
51006
|
-
);
|
|
51007
|
-
const s = await dialDirect$1(n), g = new AuthServiceClient_1(n, {
|
|
51008
|
-
transport: s
|
|
51009
|
-
}), u = e.authEntity, p = new auth_pb.Credentials();
|
|
51010
|
-
p.setType(e.type), p.setPayload(e.payload);
|
|
51011
|
-
const l = new auth_pb.AuthenticateRequest();
|
|
51012
|
-
return l.setEntity(u), l.setCredentials(p), { type: "access-token", payload: await new Promise((r, i) => {
|
|
51013
|
-
g.authenticate(l, new grpcWebClient_umdExports$1.grpc.Metadata(), (t, c) => {
|
|
51014
|
-
if (t) {
|
|
51015
|
-
i(t);
|
|
51016
|
-
return;
|
|
51017
|
-
}
|
|
51018
|
-
r(c?.getAccessToken().toString() ?? "");
|
|
51019
|
-
});
|
|
51020
|
-
}) };
|
|
51021
|
-
}, createWithCredential = async (n, e) => {
|
|
51022
|
-
const s = await getAccessTokenFromCredential(
|
|
51023
|
-
n,
|
|
51024
|
-
e
|
|
51025
|
-
), g = await dialDirect$1(n);
|
|
51026
|
-
return (u) => new ViamTransport(g, u, s.payload);
|
|
51027
|
-
};
|
|
51028
|
-
class ViamTransport extends MetadataTransport {
|
|
51029
|
-
constructor(e, s, g) {
|
|
51030
|
-
const u = new grpcWebClient_umdExports$1.grpc.Metadata({ authorization: `Bearer ${g}` });
|
|
51031
|
-
super(e, s, u);
|
|
51032
|
-
}
|
|
51033
|
-
}
|
|
51034
51055
|
var data_pb = {};
|
|
51035
51056
|
(function(n) {
|
|
51036
51057
|
var e = googleProtobuf$1, s = e, g = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof g < "u" && g || typeof self < "u" && self || function() {
|
|
@@ -58131,13 +58152,13 @@ class DataClient {
|
|
|
58131
58152
|
* @returns The file ID of the uploaded data
|
|
58132
58153
|
*/
|
|
58133
58154
|
async tabularDataCaptureUpload(e, s, g, u, p, l, o) {
|
|
58134
|
-
if (
|
|
58155
|
+
if (l.length !== e.length)
|
|
58135
58156
|
throw new Error("dataRequestTimes and data lengths must be equal.");
|
|
58136
58157
|
const { dataSyncService: r } = this, i = new dataSyncPb.UploadMetadata();
|
|
58137
|
-
i.setPartId(s), i.setComponentType(g), i.setComponentName(u), i.setMethodName(p), i.setType(dataSyncPb.DataType.DATA_TYPE_TABULAR_SENSOR), i.setTagsList(
|
|
58158
|
+
i.setPartId(s), i.setComponentType(g), i.setComponentName(u), i.setMethodName(p), i.setType(dataSyncPb.DataType.DATA_TYPE_TABULAR_SENSOR), i.setTagsList(o ?? []);
|
|
58138
58159
|
const t = [];
|
|
58139
58160
|
for (const [d, y] of e.entries()) {
|
|
58140
|
-
const m = new dataSyncPb.SensorData(), f = new dataSyncPb.SensorMetadata(), h =
|
|
58161
|
+
const m = new dataSyncPb.SensorData(), f = new dataSyncPb.SensorMetadata(), h = l[d];
|
|
58141
58162
|
h && (f.setTimeRequested(timestamp_pb$1.Timestamp.fromDate(h[0])), f.setTimeReceived(timestamp_pb$1.Timestamp.fromDate(h[1]))), m.setMetadata(f), m.setStruct(struct_pb.Struct.fromJavaScript(y)), t.push(m);
|
|
58142
58163
|
}
|
|
58143
58164
|
const c = new dataSyncPb.DataCaptureUploadRequest();
|
|
@@ -58169,9 +58190,9 @@ class DataClient {
|
|
|
58169
58190
|
*/
|
|
58170
58191
|
async binaryDataCaptureUpload(e, s, g, u, p, l, o, r) {
|
|
58171
58192
|
const { dataSyncService: i } = this, t = new dataSyncPb.UploadMetadata();
|
|
58172
|
-
t.setPartId(s), t.setComponentType(g), t.setComponentName(u), t.setMethodName(p), t.setType(dataSyncPb.DataType.DATA_TYPE_BINARY_SENSOR), t.setTagsList(
|
|
58193
|
+
t.setPartId(s), t.setComponentType(g), t.setComponentName(u), t.setMethodName(p), t.setType(dataSyncPb.DataType.DATA_TYPE_BINARY_SENSOR), t.setTagsList(r ?? []), l && t.setFileExtension(l);
|
|
58173
58194
|
const c = new dataSyncPb.SensorData(), v = new dataSyncPb.SensorMetadata();
|
|
58174
|
-
|
|
58195
|
+
v.setTimeRequested(timestamp_pb$1.Timestamp.fromDate(o[0])), v.setTimeReceived(timestamp_pb$1.Timestamp.fromDate(o[1])), c.setMetadata(v), c.setBinary(e);
|
|
58175
58196
|
const d = new dataSyncPb.DataCaptureUploadRequest();
|
|
58176
58197
|
return d.setMetadata(t), d.setSensorContentsList([c]), (await promisify(i.dataCaptureUpload.bind(i), d)).getFileId();
|
|
58177
58198
|
}
|
|
@@ -58538,15 +58559,16 @@ var tagger_pb = {};
|
|
|
58538
58559
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.toObject = function(o) {
|
|
58539
58560
|
return proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.toObject(o, this);
|
|
58540
58561
|
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.toObject = function(o, r) {
|
|
58541
|
-
var i = {
|
|
58562
|
+
var i, t = {
|
|
58542
58563
|
datasetId: e.Message.getFieldWithDefault(r, 1, ""),
|
|
58543
58564
|
registryItemId: e.Message.getFieldWithDefault(r, 2, ""),
|
|
58544
58565
|
registryItemVersion: e.Message.getFieldWithDefault(r, 6, ""),
|
|
58545
58566
|
organizationId: e.Message.getFieldWithDefault(r, 3, ""),
|
|
58546
58567
|
modelName: e.Message.getFieldWithDefault(r, 4, ""),
|
|
58547
|
-
modelVersion: e.Message.getFieldWithDefault(r, 5, "")
|
|
58568
|
+
modelVersion: e.Message.getFieldWithDefault(r, 5, ""),
|
|
58569
|
+
argumentsMap: (i = r.getArgumentsMap()) ? i.toObject(o, void 0) : []
|
|
58548
58570
|
};
|
|
58549
|
-
return o && (
|
|
58571
|
+
return o && (t.$jspbMessageInstance = r), t;
|
|
58550
58572
|
}), proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.deserializeBinary = function(o) {
|
|
58551
58573
|
var r = new e.BinaryReader(o), i = new proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest();
|
|
58552
58574
|
return proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.deserializeBinaryFromReader(i, r);
|
|
@@ -58596,6 +58618,12 @@ var tagger_pb = {};
|
|
|
58596
58618
|
);
|
|
58597
58619
|
o.setModelVersion(t);
|
|
58598
58620
|
break;
|
|
58621
|
+
case 7:
|
|
58622
|
+
var t = o.getArgumentsMap();
|
|
58623
|
+
r.readMessage(t, function(c, v) {
|
|
58624
|
+
e.Map.deserializeBinary(c, v, e.BinaryReader.prototype.readString, e.BinaryReader.prototype.readString, null, "", "");
|
|
58625
|
+
});
|
|
58626
|
+
break;
|
|
58599
58627
|
default:
|
|
58600
58628
|
r.skipField();
|
|
58601
58629
|
break;
|
|
@@ -58625,7 +58653,7 @@ var tagger_pb = {};
|
|
|
58625
58653
|
), i = o.getModelVersion(), i.length > 0 && r.writeString(
|
|
58626
58654
|
5,
|
|
58627
58655
|
i
|
|
58628
|
-
);
|
|
58656
|
+
), i = o.getArgumentsMap(!0), i && i.getLength() > 0 && i.serializeBinary(7, r, e.BinaryWriter.prototype.writeString, e.BinaryWriter.prototype.writeString);
|
|
58629
58657
|
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.getDatasetId = function() {
|
|
58630
58658
|
return (
|
|
58631
58659
|
/** @type {string} */
|
|
@@ -58668,6 +58696,18 @@ var tagger_pb = {};
|
|
|
58668
58696
|
);
|
|
58669
58697
|
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.setModelVersion = function(o) {
|
|
58670
58698
|
return e.Message.setProto3StringField(this, 5, o);
|
|
58699
|
+
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.getArgumentsMap = function(o) {
|
|
58700
|
+
return (
|
|
58701
|
+
/** @type {!jspb.Map<string,string>} */
|
|
58702
|
+
e.Message.getMapField(
|
|
58703
|
+
this,
|
|
58704
|
+
7,
|
|
58705
|
+
o,
|
|
58706
|
+
null
|
|
58707
|
+
)
|
|
58708
|
+
);
|
|
58709
|
+
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest.prototype.clearArgumentsMap = function() {
|
|
58710
|
+
return this.getArgumentsMap().clear(), this;
|
|
58671
58711
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.mltraining.v1.SubmitCustomTrainingJobResponse.prototype.toObject = function(o) {
|
|
58672
58712
|
return proto.viam.app.mltraining.v1.SubmitCustomTrainingJobResponse.toObject(o, this);
|
|
58673
58713
|
}, proto.viam.app.mltraining.v1.SubmitCustomTrainingJobResponse.toObject = function(o, r) {
|
|
@@ -75872,7 +75912,7 @@ var billing_pb = {};
|
|
|
75872
75912
|
var e = googleProtobuf$1, s = e, g = typeof globalThis < "u" && globalThis || typeof window < "u" && window || typeof g < "u" && g || typeof self < "u" && self || function() {
|
|
75873
75913
|
return this;
|
|
75874
75914
|
}.call(null) || Function("return this")(), u = timestamp_pb$1;
|
|
75875
|
-
s.object.extend(proto, u), s.exportSymbol("proto.viam.app.v1.BillableResourceEvent", null, g), s.exportSymbol("proto.viam.app.v1.GetCurrentMonthUsageRequest", null, g), s.exportSymbol("proto.viam.app.v1.GetCurrentMonthUsageResponse", null, g), s.exportSymbol("proto.viam.app.v1.GetInvoicePdfRequest", null, g), s.exportSymbol("proto.viam.app.v1.GetInvoicePdfResponse", null, g), s.exportSymbol("proto.viam.app.v1.GetInvoicesSummaryRequest", null, g), s.exportSymbol("proto.viam.app.v1.GetInvoicesSummaryResponse", null, g), s.exportSymbol("proto.viam.app.v1.GetOrgBillingInformationRequest", null, g), s.exportSymbol("proto.viam.app.v1.GetOrgBillingInformationResponse", null, g), s.exportSymbol("proto.viam.app.v1.Invoice", null, g), s.exportSymbol("proto.viam.app.v1.InvoiceSummary", null, g), s.exportSymbol("proto.viam.app.v1.PaymentMethodCard", null, g), s.exportSymbol("proto.viam.app.v1.PaymentMethodType", null, g), proto.viam.app.v1.InvoiceSummary = function(p) {
|
|
75915
|
+
s.object.extend(proto, u), s.exportSymbol("proto.viam.app.v1.BillableResourceEvent", null, g), s.exportSymbol("proto.viam.app.v1.GetCurrentMonthUsageRequest", null, g), s.exportSymbol("proto.viam.app.v1.GetCurrentMonthUsageResponse", null, g), s.exportSymbol("proto.viam.app.v1.GetInvoicePdfRequest", null, g), s.exportSymbol("proto.viam.app.v1.GetInvoicePdfResponse", null, g), s.exportSymbol("proto.viam.app.v1.GetInvoicesSummaryRequest", null, g), s.exportSymbol("proto.viam.app.v1.GetInvoicesSummaryResponse", null, g), s.exportSymbol("proto.viam.app.v1.GetOrgBillingInformationRequest", null, g), s.exportSymbol("proto.viam.app.v1.GetOrgBillingInformationResponse", null, g), s.exportSymbol("proto.viam.app.v1.Invoice", null, g), s.exportSymbol("proto.viam.app.v1.InvoiceSummary", null, g), s.exportSymbol("proto.viam.app.v1.PaymentMethodCard", null, g), s.exportSymbol("proto.viam.app.v1.PaymentMethodType", null, g), s.exportSymbol("proto.viam.app.v1.SendPaymentRequiredEmailRequest", null, g), s.exportSymbol("proto.viam.app.v1.SendPaymentRequiredEmailResponse", null, g), proto.viam.app.v1.InvoiceSummary = function(p) {
|
|
75876
75916
|
e.Message.initialize(this, p, 0, -1, null, null);
|
|
75877
75917
|
}, s.inherits(proto.viam.app.v1.InvoiceSummary, e.Message), s.DEBUG && !COMPILED && (proto.viam.app.v1.InvoiceSummary.displayName = "proto.viam.app.v1.InvoiceSummary"), proto.viam.app.v1.BillableResourceEvent = function(p) {
|
|
75878
75918
|
e.Message.initialize(this, p, 0, -1, null, null);
|
|
@@ -75896,7 +75936,11 @@ var billing_pb = {};
|
|
|
75896
75936
|
e.Message.initialize(this, p, 0, -1, null, null);
|
|
75897
75937
|
}, s.inherits(proto.viam.app.v1.GetInvoicePdfRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.app.v1.GetInvoicePdfRequest.displayName = "proto.viam.app.v1.GetInvoicePdfRequest"), proto.viam.app.v1.GetInvoicePdfResponse = function(p) {
|
|
75898
75938
|
e.Message.initialize(this, p, 0, -1, null, null);
|
|
75899
|
-
}, s.inherits(proto.viam.app.v1.GetInvoicePdfResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.app.v1.GetInvoicePdfResponse.displayName = "proto.viam.app.v1.GetInvoicePdfResponse"),
|
|
75939
|
+
}, s.inherits(proto.viam.app.v1.GetInvoicePdfResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.app.v1.GetInvoicePdfResponse.displayName = "proto.viam.app.v1.GetInvoicePdfResponse"), proto.viam.app.v1.SendPaymentRequiredEmailRequest = function(p) {
|
|
75940
|
+
e.Message.initialize(this, p, 0, -1, null, null);
|
|
75941
|
+
}, s.inherits(proto.viam.app.v1.SendPaymentRequiredEmailRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.app.v1.SendPaymentRequiredEmailRequest.displayName = "proto.viam.app.v1.SendPaymentRequiredEmailRequest"), proto.viam.app.v1.SendPaymentRequiredEmailResponse = function(p) {
|
|
75942
|
+
e.Message.initialize(this, p, 0, -1, null, null);
|
|
75943
|
+
}, s.inherits(proto.viam.app.v1.SendPaymentRequiredEmailResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.app.v1.SendPaymentRequiredEmailResponse.displayName = "proto.viam.app.v1.SendPaymentRequiredEmailResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.app.v1.InvoiceSummary.prototype.toObject = function(p) {
|
|
75900
75944
|
return proto.viam.app.v1.InvoiceSummary.toObject(p, this);
|
|
75901
75945
|
}, proto.viam.app.v1.InvoiceSummary.toObject = function(p, l) {
|
|
75902
75946
|
var o, r = {
|
|
@@ -77091,6 +77135,89 @@ var billing_pb = {};
|
|
|
77091
77135
|
);
|
|
77092
77136
|
}, proto.viam.app.v1.GetInvoicePdfResponse.prototype.setChunk = function(p) {
|
|
77093
77137
|
return e.Message.setProto3BytesField(this, 1, p);
|
|
77138
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.v1.SendPaymentRequiredEmailRequest.prototype.toObject = function(p) {
|
|
77139
|
+
return proto.viam.app.v1.SendPaymentRequiredEmailRequest.toObject(p, this);
|
|
77140
|
+
}, proto.viam.app.v1.SendPaymentRequiredEmailRequest.toObject = function(p, l) {
|
|
77141
|
+
var o = {
|
|
77142
|
+
customerOrgId: e.Message.getFieldWithDefault(l, 1, ""),
|
|
77143
|
+
billingOwnerOrgId: e.Message.getFieldWithDefault(l, 2, "")
|
|
77144
|
+
};
|
|
77145
|
+
return p && (o.$jspbMessageInstance = l), o;
|
|
77146
|
+
}), proto.viam.app.v1.SendPaymentRequiredEmailRequest.deserializeBinary = function(p) {
|
|
77147
|
+
var l = new e.BinaryReader(p), o = new proto.viam.app.v1.SendPaymentRequiredEmailRequest();
|
|
77148
|
+
return proto.viam.app.v1.SendPaymentRequiredEmailRequest.deserializeBinaryFromReader(o, l);
|
|
77149
|
+
}, proto.viam.app.v1.SendPaymentRequiredEmailRequest.deserializeBinaryFromReader = function(p, l) {
|
|
77150
|
+
for (; l.nextField() && !l.isEndGroup(); ) {
|
|
77151
|
+
var o = l.getFieldNumber();
|
|
77152
|
+
switch (o) {
|
|
77153
|
+
case 1:
|
|
77154
|
+
var r = (
|
|
77155
|
+
/** @type {string} */
|
|
77156
|
+
l.readString()
|
|
77157
|
+
);
|
|
77158
|
+
p.setCustomerOrgId(r);
|
|
77159
|
+
break;
|
|
77160
|
+
case 2:
|
|
77161
|
+
var r = (
|
|
77162
|
+
/** @type {string} */
|
|
77163
|
+
l.readString()
|
|
77164
|
+
);
|
|
77165
|
+
p.setBillingOwnerOrgId(r);
|
|
77166
|
+
break;
|
|
77167
|
+
default:
|
|
77168
|
+
l.skipField();
|
|
77169
|
+
break;
|
|
77170
|
+
}
|
|
77171
|
+
}
|
|
77172
|
+
return p;
|
|
77173
|
+
}, proto.viam.app.v1.SendPaymentRequiredEmailRequest.prototype.serializeBinary = function() {
|
|
77174
|
+
var p = new e.BinaryWriter();
|
|
77175
|
+
return proto.viam.app.v1.SendPaymentRequiredEmailRequest.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
77176
|
+
}, proto.viam.app.v1.SendPaymentRequiredEmailRequest.serializeBinaryToWriter = function(p, l) {
|
|
77177
|
+
var o = void 0;
|
|
77178
|
+
o = p.getCustomerOrgId(), o.length > 0 && l.writeString(
|
|
77179
|
+
1,
|
|
77180
|
+
o
|
|
77181
|
+
), o = p.getBillingOwnerOrgId(), o.length > 0 && l.writeString(
|
|
77182
|
+
2,
|
|
77183
|
+
o
|
|
77184
|
+
);
|
|
77185
|
+
}, proto.viam.app.v1.SendPaymentRequiredEmailRequest.prototype.getCustomerOrgId = function() {
|
|
77186
|
+
return (
|
|
77187
|
+
/** @type {string} */
|
|
77188
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
77189
|
+
);
|
|
77190
|
+
}, proto.viam.app.v1.SendPaymentRequiredEmailRequest.prototype.setCustomerOrgId = function(p) {
|
|
77191
|
+
return e.Message.setProto3StringField(this, 1, p);
|
|
77192
|
+
}, proto.viam.app.v1.SendPaymentRequiredEmailRequest.prototype.getBillingOwnerOrgId = function() {
|
|
77193
|
+
return (
|
|
77194
|
+
/** @type {string} */
|
|
77195
|
+
e.Message.getFieldWithDefault(this, 2, "")
|
|
77196
|
+
);
|
|
77197
|
+
}, proto.viam.app.v1.SendPaymentRequiredEmailRequest.prototype.setBillingOwnerOrgId = function(p) {
|
|
77198
|
+
return e.Message.setProto3StringField(this, 2, p);
|
|
77199
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.v1.SendPaymentRequiredEmailResponse.prototype.toObject = function(p) {
|
|
77200
|
+
return proto.viam.app.v1.SendPaymentRequiredEmailResponse.toObject(p, this);
|
|
77201
|
+
}, proto.viam.app.v1.SendPaymentRequiredEmailResponse.toObject = function(p, l) {
|
|
77202
|
+
var o = {};
|
|
77203
|
+
return p && (o.$jspbMessageInstance = l), o;
|
|
77204
|
+
}), proto.viam.app.v1.SendPaymentRequiredEmailResponse.deserializeBinary = function(p) {
|
|
77205
|
+
var l = new e.BinaryReader(p), o = new proto.viam.app.v1.SendPaymentRequiredEmailResponse();
|
|
77206
|
+
return proto.viam.app.v1.SendPaymentRequiredEmailResponse.deserializeBinaryFromReader(o, l);
|
|
77207
|
+
}, proto.viam.app.v1.SendPaymentRequiredEmailResponse.deserializeBinaryFromReader = function(p, l) {
|
|
77208
|
+
for (; l.nextField() && !l.isEndGroup(); ) {
|
|
77209
|
+
var o = l.getFieldNumber();
|
|
77210
|
+
switch (o) {
|
|
77211
|
+
default:
|
|
77212
|
+
l.skipField();
|
|
77213
|
+
break;
|
|
77214
|
+
}
|
|
77215
|
+
}
|
|
77216
|
+
return p;
|
|
77217
|
+
}, proto.viam.app.v1.SendPaymentRequiredEmailResponse.prototype.serializeBinary = function() {
|
|
77218
|
+
var p = new e.BinaryWriter();
|
|
77219
|
+
return proto.viam.app.v1.SendPaymentRequiredEmailResponse.serializeBinaryToWriter(this, p), p.getResultBuffer();
|
|
77220
|
+
}, proto.viam.app.v1.SendPaymentRequiredEmailResponse.serializeBinaryToWriter = function(p, l) {
|
|
77094
77221
|
}, proto.viam.app.v1.PaymentMethodType = {
|
|
77095
77222
|
PAYMENT_METHOD_TYPE_UNSPECIFIED: 0,
|
|
77096
77223
|
PAYMENT_METHOD_TYPE_CARD: 1
|
|
@@ -77134,6 +77261,14 @@ BillingService.GetInvoicePdf = {
|
|
|
77134
77261
|
requestType: app_v1_billing_pb.GetInvoicePdfRequest,
|
|
77135
77262
|
responseType: app_v1_billing_pb.GetInvoicePdfResponse
|
|
77136
77263
|
};
|
|
77264
|
+
BillingService.SendPaymentRequiredEmail = {
|
|
77265
|
+
methodName: "SendPaymentRequiredEmail",
|
|
77266
|
+
service: BillingService,
|
|
77267
|
+
requestStream: !1,
|
|
77268
|
+
responseStream: !1,
|
|
77269
|
+
requestType: app_v1_billing_pb.SendPaymentRequiredEmailRequest,
|
|
77270
|
+
responseType: app_v1_billing_pb.SendPaymentRequiredEmailResponse
|
|
77271
|
+
};
|
|
77137
77272
|
function BillingServiceClient(n, e) {
|
|
77138
77273
|
this.serviceHost = n, this.options = e || {};
|
|
77139
77274
|
}
|
|
@@ -77239,6 +77374,29 @@ BillingServiceClient.prototype.getInvoicePdf = function n(e, s) {
|
|
|
77239
77374
|
}
|
|
77240
77375
|
};
|
|
77241
77376
|
};
|
|
77377
|
+
BillingServiceClient.prototype.sendPaymentRequiredEmail = function n(e, s, g) {
|
|
77378
|
+
arguments.length === 2 && (g = arguments[1]);
|
|
77379
|
+
var u = grpc$7.unary(BillingService.SendPaymentRequiredEmail, {
|
|
77380
|
+
request: e,
|
|
77381
|
+
host: this.serviceHost,
|
|
77382
|
+
metadata: s,
|
|
77383
|
+
transport: this.options.transport,
|
|
77384
|
+
debug: this.options.debug,
|
|
77385
|
+
onEnd: function(p) {
|
|
77386
|
+
if (g)
|
|
77387
|
+
if (p.status !== grpc$7.Code.OK) {
|
|
77388
|
+
var l = new Error(p.statusMessage);
|
|
77389
|
+
l.code = p.status, l.metadata = p.trailers, g(l, null);
|
|
77390
|
+
} else
|
|
77391
|
+
g(null, p.message);
|
|
77392
|
+
}
|
|
77393
|
+
});
|
|
77394
|
+
return {
|
|
77395
|
+
cancel: function() {
|
|
77396
|
+
g = null, u.close();
|
|
77397
|
+
}
|
|
77398
|
+
};
|
|
77399
|
+
};
|
|
77242
77400
|
var BillingServiceClient_1 = BillingServiceClient;
|
|
77243
77401
|
class BillingClient {
|
|
77244
77402
|
service;
|
|
@@ -77536,6 +77694,10 @@ class MlTrainingClient {
|
|
|
77536
77694
|
const { service: o } = this, r = new pb$4.SubmitTrainingJobRequest();
|
|
77537
77695
|
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();
|
|
77538
77696
|
}
|
|
77697
|
+
async submitCustomTrainingJob(e, s, g, u, p, l) {
|
|
77698
|
+
const { service: o } = this, r = new pb$4.SubmitCustomTrainingJobRequest();
|
|
77699
|
+
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();
|
|
77700
|
+
}
|
|
77539
77701
|
async getTrainingJob(e) {
|
|
77540
77702
|
const { service: s } = this, g = new pb$4.GetTrainingJobRequest();
|
|
77541
77703
|
return g.setId(e), (await promisify(s.getTrainingJob.bind(s), g)).getMetadata();
|
|
@@ -80581,7 +80743,7 @@ class GenericClient {
|
|
|
80581
80743
|
return doCommandFromClient(s, this.name, e, this.options);
|
|
80582
80744
|
}
|
|
80583
80745
|
}
|
|
80584
|
-
const version = "0.
|
|
80746
|
+
const version = "0.24.0";
|
|
80585
80747
|
export {
|
|
80586
80748
|
ArmClient,
|
|
80587
80749
|
BaseClient,
|