@viamrobotics/sdk 0.2.0-rc.4 → 0.2.1-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.es.js +28 -28
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -13749,10 +13749,10 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13749
13749
|
var C = c(this.buffer, this.position, this.position + 5), q = new DataView(C.buffer, C.byteOffset, C.byteLength), G = n(q);
|
|
13750
13750
|
if (!l(this.buffer, this.position, 5 + G))
|
|
13751
13751
|
return b;
|
|
13752
|
-
var
|
|
13752
|
+
var x = c(this.buffer, this.position + 5, this.position + 5 + G);
|
|
13753
13753
|
if (this.position += 5 + G, r(q))
|
|
13754
|
-
return b.push({ chunkType: u.TRAILERS, trailers: (f =
|
|
13755
|
-
b.push({ chunkType: u.MESSAGE, data:
|
|
13754
|
+
return b.push({ chunkType: u.TRAILERS, trailers: (f = x, new g.Metadata(o(f))) }), b;
|
|
13755
|
+
b.push({ chunkType: u.MESSAGE, data: x });
|
|
13756
13756
|
}
|
|
13757
13757
|
}, m;
|
|
13758
13758
|
}();
|
|
@@ -20329,22 +20329,22 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20329
20329
|
}
|
|
20330
20330
|
function y(h, O, w) {
|
|
20331
20331
|
return i.__awaiter(this, void 0, void 0, function() {
|
|
20332
|
-
var C, q, G,
|
|
20332
|
+
var C, q, G, x = this;
|
|
20333
20333
|
return i.__generator(this, function(U) {
|
|
20334
20334
|
switch (U.label) {
|
|
20335
20335
|
case 0:
|
|
20336
20336
|
return C = "", q = function() {
|
|
20337
|
-
return i.__awaiter(
|
|
20338
|
-
var I,
|
|
20337
|
+
return i.__awaiter(x, void 0, void 0, function() {
|
|
20338
|
+
var I, z, k, S, R, _, E, F, P, T;
|
|
20339
20339
|
return i.__generator(this, function(j) {
|
|
20340
20340
|
switch (j.label) {
|
|
20341
20341
|
case 0:
|
|
20342
20342
|
return C != "" ? [3, 5] : (I = "", w.accessToken && w.accessToken !== "" ? [3, 2] : ((E = new n.AuthenticateRequest()).setEntity(w.authEntity ? w.authEntity : h.replace(/^(.*:\/\/)/, "")), (S = new n.Credentials()).setType((P = w.credentials) === null || P === void 0 ? void 0 : P.type), S.setPayload((T = w.credentials) === null || T === void 0 ? void 0 : T.payload), E.setCredentials(S), _ = new Promise(function(A, D) {
|
|
20343
|
-
|
|
20343
|
+
z = A, k = D;
|
|
20344
20344
|
}), u.grpc.invoke(l.AuthService.Authenticate, { request: E, host: w.externalAuthAddress ? w.externalAuthAddress : h, transport: O, onMessage: function(A) {
|
|
20345
20345
|
I = A.getAccessToken();
|
|
20346
20346
|
}, onEnd: function(A, D, B) {
|
|
20347
|
-
A == u.grpc.Code.OK ?
|
|
20347
|
+
A == u.grpc.Code.OK ? z(F) : k(D);
|
|
20348
20348
|
} }), [4, _]));
|
|
20349
20349
|
case 1:
|
|
20350
20350
|
return j.sent(), [3, 3];
|
|
@@ -20352,11 +20352,11 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20352
20352
|
I = w.accessToken, j.label = 3;
|
|
20353
20353
|
case 3:
|
|
20354
20354
|
return C = I, w.externalAuthAddress && w.externalAuthToEntity ? ((R = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(C)), _ = new Promise(function(A, D) {
|
|
20355
|
-
|
|
20355
|
+
z = A, k = D;
|
|
20356
20356
|
}), I = "", (E = new n.AuthenticateToRequest()).setEntity(w.externalAuthToEntity), u.grpc.invoke(l.ExternalAuthService.AuthenticateTo, { request: E, host: w.externalAuthAddress, transport: O, metadata: R, onMessage: function(A) {
|
|
20357
20357
|
I = A.getAccessToken();
|
|
20358
20358
|
}, onEnd: function(A, D, B) {
|
|
20359
|
-
A == u.grpc.Code.OK ?
|
|
20359
|
+
A == u.grpc.Code.OK ? z(R) : k(D);
|
|
20360
20360
|
} }), [4, _]) : [3, 5];
|
|
20361
20361
|
case 4:
|
|
20362
20362
|
j.sent(), C = I, j.label = 5;
|
|
@@ -20393,14 +20393,14 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20393
20393
|
}();
|
|
20394
20394
|
function b(h, O, w) {
|
|
20395
20395
|
return i.__awaiter(this, void 0, void 0, function() {
|
|
20396
|
-
var C, q, G,
|
|
20397
|
-
return i.__generator(this, function(
|
|
20398
|
-
switch (
|
|
20396
|
+
var C, q, G, x, U, I;
|
|
20397
|
+
return i.__generator(this, function(z) {
|
|
20398
|
+
switch (z.label) {
|
|
20399
20399
|
case 0:
|
|
20400
20400
|
return C = i.__assign({}, w), [4, v(h, C)];
|
|
20401
20401
|
case 1:
|
|
20402
|
-
return q =
|
|
20403
|
-
G = k,
|
|
20402
|
+
return q = z.sent(), I = new Promise(function(k, S) {
|
|
20403
|
+
G = k, x = S;
|
|
20404
20404
|
}), u.grpc.unary(d.SignalingService.OptionalWebRTCConfig, { request: new c.OptionalWebRTCConfigRequest(), metadata: { "rpc-host": O }, host: h, transport: q, onEnd: function(k) {
|
|
20405
20405
|
var S = k.status, R = k.statusMessage, _ = k.message;
|
|
20406
20406
|
if (S === u.grpc.Code.OK && _) {
|
|
@@ -20408,10 +20408,10 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20408
20408
|
return void G(new c.WebRTCConfig());
|
|
20409
20409
|
G(U);
|
|
20410
20410
|
} else
|
|
20411
|
-
|
|
20411
|
+
x(R);
|
|
20412
20412
|
} }), [4, I];
|
|
20413
20413
|
case 2:
|
|
20414
|
-
if (
|
|
20414
|
+
if (z.sent(), !U)
|
|
20415
20415
|
throw new Error("no config");
|
|
20416
20416
|
return [2, U];
|
|
20417
20417
|
}
|
|
@@ -20444,7 +20444,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20444
20444
|
}
|
|
20445
20445
|
}
|
|
20446
20446
|
e.dialWebRTC = function(h, O, w) {
|
|
20447
|
-
var C, q, G,
|
|
20447
|
+
var C, q, G, x, U, I, z;
|
|
20448
20448
|
return i.__awaiter(this, void 0, void 0, function() {
|
|
20449
20449
|
var k, S, R, _, E, F, P, T, j, A, D, B, W, V, Z, oe, re, ge, ae, ne, pe, ie, le, se, ce, ue, de = this;
|
|
20450
20450
|
return i.__generator(this, function(J) {
|
|
@@ -20458,7 +20458,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20458
20458
|
case 2:
|
|
20459
20459
|
_ = J.sent(), E = _.pc, F = _.dc, P = !1, J.label = 3;
|
|
20460
20460
|
case 3:
|
|
20461
|
-
return J.trys.push([3, , 10, 11]), T = w, w && (T = i.__assign({}, w), w.accessToken || (T.authEntity = (C = w?.webrtcOptions) === null || C === void 0 ? void 0 : C.signalingAuthEntity, T.authEntity || (T.externalAuthAddress ? T.authEntity = (q = w.externalAuthAddress) === null || q === void 0 ? void 0 : q.replace(/^(.*:\/\/)/, "") : T.authEntity = h.replace(/^(.*:\/\/)/, "")), T.credentials = (G = w?.webrtcOptions) === null || G === void 0 ? void 0 : G.signalingCredentials, T.accessToken = (
|
|
20461
|
+
return J.trys.push([3, , 10, 11]), T = w, w && (T = i.__assign({}, w), w.accessToken || (T.authEntity = (C = w?.webrtcOptions) === null || C === void 0 ? void 0 : C.signalingAuthEntity, T.authEntity || (T.externalAuthAddress ? T.authEntity = (q = w.externalAuthAddress) === null || q === void 0 ? void 0 : q.replace(/^(.*:\/\/)/, "") : T.authEntity = h.replace(/^(.*:\/\/)/, "")), T.credentials = (G = w?.webrtcOptions) === null || G === void 0 ? void 0 : G.signalingCredentials, T.accessToken = (x = w?.webrtcOptions) === null || x === void 0 ? void 0 : x.signalingAccessToken), T.externalAuthAddress = (U = w?.webrtcOptions) === null || U === void 0 ? void 0 : U.signalingExternalAuthAddress, T.externalAuthToEntity = (I = w?.webrtcOptions) === null || I === void 0 ? void 0 : I.signalingExternalAuthToEntity), [4, v(h, T)];
|
|
20462
20462
|
case 4:
|
|
20463
20463
|
return j = J.sent(), A = u.grpc.client(d.SignalingService.Call, { host: h, transport: j }), D = "", B = !1, W = function(L) {
|
|
20464
20464
|
if (!B) {
|
|
@@ -20549,7 +20549,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20549
20549
|
case 8:
|
|
20550
20550
|
return J.sent(), [4, ue.ready];
|
|
20551
20551
|
case 9:
|
|
20552
|
-
return J.sent(), re = !0, V(), w?.externalAuthAddress || (
|
|
20552
|
+
return J.sent(), re = !0, V(), w?.externalAuthAddress || (z = w?.credentials) === null || z === void 0 || z.type, P = !0, [2, { transportFactory: ue.transportFactory(), peerConnection: E }];
|
|
20553
20553
|
case 10:
|
|
20554
20554
|
return P || E.close(), [7];
|
|
20555
20555
|
case 11:
|
|
@@ -20653,7 +20653,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20653
20653
|
});
|
|
20654
20654
|
};
|
|
20655
20655
|
}, 655: (t, e, s) => {
|
|
20656
|
-
s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => w, __asyncGenerator: () => O, __asyncValues: () => C, __await: () => h, __awaiter: () => l, __classPrivateFieldGet: () => I, __classPrivateFieldIn: () => k, __classPrivateFieldSet: () =>
|
|
20656
|
+
s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => w, __asyncGenerator: () => O, __asyncValues: () => C, __await: () => h, __awaiter: () => l, __classPrivateFieldGet: () => I, __classPrivateFieldIn: () => k, __classPrivateFieldSet: () => z, __createBinding: () => d, __decorate: () => o, __exportStar: () => m, __extends: () => u, __generator: () => c, __importDefault: () => U, __importStar: () => x, __makeTemplateObject: () => q, __metadata: () => n, __param: () => r, __read: () => y, __rest: () => p, __spread: () => f, __spreadArray: () => M, __spreadArrays: () => b, __values: () => v });
|
|
20657
20657
|
var i = function(S, R) {
|
|
20658
20658
|
return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, E) {
|
|
20659
20659
|
_.__proto__ = E;
|
|
@@ -20934,7 +20934,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20934
20934
|
} : function(S, R) {
|
|
20935
20935
|
S.default = R;
|
|
20936
20936
|
};
|
|
20937
|
-
function
|
|
20937
|
+
function x(S) {
|
|
20938
20938
|
if (S && S.__esModule)
|
|
20939
20939
|
return S;
|
|
20940
20940
|
var R = {};
|
|
@@ -20953,7 +20953,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20953
20953
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
20954
20954
|
return _ === "m" ? E : _ === "a" ? E.call(S) : E ? E.value : R.get(S);
|
|
20955
20955
|
}
|
|
20956
|
-
function
|
|
20956
|
+
function z(S, R, _, E, F) {
|
|
20957
20957
|
if (E === "m")
|
|
20958
20958
|
throw new TypeError("Private method is not writable");
|
|
20959
20959
|
if (E === "a" && !F)
|
|
@@ -23145,13 +23145,13 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
|
|
|
23145
23145
|
for (; ; ) {
|
|
23146
23146
|
if (!m(this.buffer, this.position, 5))
|
|
23147
23147
|
return O;
|
|
23148
|
-
var
|
|
23148
|
+
var x = v(this.buffer, this.position, this.position + 5), U = new DataView(x.buffer, x.byteOffset, x.byteLength), I = d(U);
|
|
23149
23149
|
if (!m(this.buffer, this.position, 5 + I))
|
|
23150
23150
|
return O;
|
|
23151
|
-
var
|
|
23151
|
+
var z = v(this.buffer, this.position + 5, this.position + 5 + I);
|
|
23152
23152
|
if (this.position += 5 + I, c(U))
|
|
23153
|
-
return O.push({ chunkType: o.TRAILERS, trailers: (h =
|
|
23154
|
-
O.push({ chunkType: o.MESSAGE, data:
|
|
23153
|
+
return O.push({ chunkType: o.TRAILERS, trailers: (h = z, new r.Metadata(l(h))) }), O;
|
|
23154
|
+
O.push({ chunkType: o.MESSAGE, data: z });
|
|
23155
23155
|
}
|
|
23156
23156
|
}, f;
|
|
23157
23157
|
}();
|
|
@@ -42324,7 +42324,7 @@ class ServoClient {
|
|
|
42324
42324
|
return doCommandFromClient(s, this.name, e, this.options);
|
|
42325
42325
|
}
|
|
42326
42326
|
}
|
|
42327
|
-
const version = "0.2.
|
|
42327
|
+
const version = "0.2.1-next.0";
|
|
42328
42328
|
export {
|
|
42329
42329
|
ArmClient,
|
|
42330
42330
|
BaseClient,
|