@uipath/auth 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +151 -49
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -10416,7 +10416,7 @@ var require_coreipc = __commonJS((exports, module) => {
10416
10416
  if (S(n3))
10417
10417
  return r3;
10418
10418
  for (var i3 = function(e6) {
10419
- var t5 = C(e6, o2);
10419
+ var t5 = T(e6, o2);
10420
10420
  if (!k(t5))
10421
10421
  throw new TypeError;
10422
10422
  var r4 = t5.call(e6);
@@ -10479,7 +10479,7 @@ var require_coreipc = __commonJS((exports, module) => {
10479
10479
  case 5:
10480
10480
  return e5;
10481
10481
  }
10482
- var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = C(e5, n2);
10482
+ var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = T(e5, n2);
10483
10483
  if (o3 !== undefined) {
10484
10484
  var i3 = o3.call(e5, r3);
10485
10485
  if (j(i3))
@@ -10516,10 +10516,10 @@ var require_coreipc = __commonJS((exports, module) => {
10516
10516
  function k(e5) {
10517
10517
  return typeof e5 == "function";
10518
10518
  }
10519
- function T(e5) {
10519
+ function C(e5) {
10520
10520
  return typeof e5 == "function";
10521
10521
  }
10522
- function C(e5, t4) {
10522
+ function T(e5, t4) {
10523
10523
  var r3 = e5[t4];
10524
10524
  if (r3 != null) {
10525
10525
  if (!k(r3))
@@ -10554,13 +10554,13 @@ var require_coreipc = __commonJS((exports, module) => {
10554
10554
  if (S(r3)) {
10555
10555
  if (!M(e5))
10556
10556
  throw new TypeError;
10557
- if (!T(t4))
10557
+ if (!C(t4))
10558
10558
  throw new TypeError;
10559
10559
  return function(e6, t5) {
10560
10560
  for (var r4 = e6.length - 1;r4 >= 0; --r4) {
10561
10561
  var n4 = (0, e6[r4])(t5);
10562
10562
  if (!S(n4) && !P(n4)) {
10563
- if (!T(n4))
10563
+ if (!C(n4))
10564
10564
  throw new TypeError;
10565
10565
  t5 = n4;
10566
10566
  }
@@ -10770,13 +10770,13 @@ var require_coreipc = __commonJS((exports, module) => {
10770
10770
  Object.defineProperty(t2, "EmptyError", { enumerable: true, get: function() {
10771
10771
  return k.EmptyError;
10772
10772
  } });
10773
- var T = r(7628);
10773
+ var C = r(7628);
10774
10774
  Object.defineProperty(t2, "NotFoundError", { enumerable: true, get: function() {
10775
- return T.NotFoundError;
10775
+ return C.NotFoundError;
10776
10776
  } });
10777
- var C = r(740);
10777
+ var T = r(740);
10778
10778
  Object.defineProperty(t2, "ObjectUnsubscribedError", { enumerable: true, get: function() {
10779
- return C.ObjectUnsubscribedError;
10779
+ return T.ObjectUnsubscribedError;
10780
10780
  } });
10781
10781
  var A = r(6968);
10782
10782
  Object.defineProperty(t2, "SequenceError", { enumerable: true, get: function() {
@@ -10986,13 +10986,13 @@ var require_coreipc = __commonJS((exports, module) => {
10986
10986
  Object.defineProperty(t2, "debounceTime", { enumerable: true, get: function() {
10987
10987
  return ke.debounceTime;
10988
10988
  } });
10989
- var Te = r(6204);
10989
+ var Ce = r(6204);
10990
10990
  Object.defineProperty(t2, "defaultIfEmpty", { enumerable: true, get: function() {
10991
- return Te.defaultIfEmpty;
10991
+ return Ce.defaultIfEmpty;
10992
10992
  } });
10993
- var Ce = r(7752);
10993
+ var Te = r(7752);
10994
10994
  Object.defineProperty(t2, "delay", { enumerable: true, get: function() {
10995
- return Ce.delay;
10995
+ return Te.delay;
10996
10996
  } });
10997
10997
  var Ae = r(7532);
10998
10998
  Object.defineProperty(t2, "delayWhen", { enumerable: true, get: function() {
@@ -11202,13 +11202,13 @@ var require_coreipc = __commonJS((exports, module) => {
11202
11202
  Object.defineProperty(t2, "share", { enumerable: true, get: function() {
11203
11203
  return kt.share;
11204
11204
  } });
11205
- var Tt = r(4980);
11205
+ var Ct = r(4980);
11206
11206
  Object.defineProperty(t2, "shareReplay", { enumerable: true, get: function() {
11207
- return Tt.shareReplay;
11207
+ return Ct.shareReplay;
11208
11208
  } });
11209
- var Ct = r(1400);
11209
+ var Tt = r(1400);
11210
11210
  Object.defineProperty(t2, "single", { enumerable: true, get: function() {
11211
- return Ct.single;
11211
+ return Tt.single;
11212
11212
  } });
11213
11213
  var At = r(7516);
11214
11214
  Object.defineProperty(t2, "skip", { enumerable: true, get: function() {
@@ -16908,12 +16908,24 @@ var require_coreipc = __commonJS((exports, module) => {
16908
16908
  static create() {
16909
16909
  return new r;
16910
16910
  }
16911
+ get(e3) {
16912
+ return this._map.get(e3);
16913
+ }
16911
16914
  getOrCreateValue(e3, t3) {
16912
16915
  if (this._map.has(e3))
16913
16916
  return this._map.get(e3);
16914
16917
  let r2 = t3(e3);
16915
16918
  return this._map.set(e3, r2), r2;
16916
16919
  }
16920
+ delete(e3) {
16921
+ return this._map.delete(e3);
16922
+ }
16923
+ values() {
16924
+ return this._map.values();
16925
+ }
16926
+ clear() {
16927
+ this._map.clear();
16928
+ }
16917
16929
  }
16918
16930
  t2.Dictionary = r;
16919
16931
  }, 4444: function(e2, t2, r) {
@@ -18286,25 +18298,61 @@ Object name: '${e3}'.`), t3;
18286
18298
  Object.defineProperty(t2, "__esModule", { value: true }), o(r(1476), t2), o(r(9108), t2), o(r(4236), t2), o(r(2988), t2), o(r(5276), t2), o(r(7540), t2), o(r(2432), t2), o(r(712), t2);
18287
18299
  }, 1816: (e2, t2) => {
18288
18300
  Object.defineProperty(t2, "__esModule", { value: true });
18289
- }, 5284: (e2, t2, r) => {
18301
+ }, 5284: function(e2, t2, r) {
18302
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
18303
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
18304
+ function s2(e4) {
18305
+ try {
18306
+ c2(n2.next(e4));
18307
+ } catch (e5) {
18308
+ i3(e5);
18309
+ }
18310
+ }
18311
+ function a2(e4) {
18312
+ try {
18313
+ c2(n2.throw(e4));
18314
+ } catch (e5) {
18315
+ i3(e5);
18316
+ }
18317
+ }
18318
+ function c2(e4) {
18319
+ var t4;
18320
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
18321
+ e5(t4);
18322
+ })).then(s2, a2);
18323
+ }
18324
+ c2((n2 = n2.apply(e3, t3 || [])).next());
18325
+ });
18326
+ };
18290
18327
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcBaseImpl = t2.IpcCoreBase = undefined;
18291
- const n = r(5188), o = r(3212), i2 = r(4104), s = r(2760), a = r(9100);
18328
+ const o = r(5188), i2 = r(3212), s = r(4104), a = r(2760), c = r(9100);
18292
18329
  t2.IpcCoreBase = class {
18293
18330
  constructor() {
18294
18331
  this._db = new Map;
18295
18332
  }
18296
18333
  };
18297
18334
 
18298
- class c {
18335
+ class u {
18299
18336
  constructor(e3, t3, r2) {
18300
- this.addressBuilder = e3, this.proxy = new c.ProxySource(this), this.config = new c.Configuration(this), this.callback = new a.CallbackImpl(this), this.configStore = new o.ConfigStore(this), this.proxySource = new i2.ProxySource(this), this.dispatchProxies = new i2.DispatchProxyClassStore, this.wire = new i2.Wire(this), this.contractStore = new s.ContractStore, this.callbackStore = new i2.CallbackStoreImpl, this.$service = t3 != null ? t3 : new o.ServiceAnnotationsWrapper(this).iface, this.$operation = r2 != null ? r2 : new o.OperationAnnotationsWrapper(this).iface;
18337
+ this.addressBuilder = e3, this.proxy = new u.ProxySource(this), this.config = new u.Configuration(this), this.callback = new c.CallbackImpl(this), this.configStore = new i2.ConfigStore(this), this.proxySource = new s.ProxySource(this), this.dispatchProxies = new s.DispatchProxyClassStore, this.wire = new s.Wire(this), this.contractStore = new a.ContractStore, this.callbackStore = new s.CallbackStoreImpl, this.$service = t3 != null ? t3 : new i2.ServiceAnnotationsWrapper(this).iface, this.$operation = r2 != null ? r2 : new i2.OperationAnnotationsWrapper(this).iface;
18301
18338
  }
18302
18339
  getAddress(e3) {
18303
18340
  const t3 = new this.addressBuilder;
18304
18341
  return e3(t3), t3.assertAddress();
18305
18342
  }
18343
+ disposeChannel(e3) {
18344
+ return n(this, undefined, undefined, function* () {
18345
+ const t3 = this.getAddress(e3);
18346
+ yield this.wire.disposeChannel(t3.key);
18347
+ });
18348
+ }
18349
+ disposeAllChannels() {
18350
+ return n(this, undefined, undefined, function* () {
18351
+ yield this.wire.disposeAllChannels();
18352
+ });
18353
+ }
18306
18354
  }
18307
- t2.IpcBaseImpl = c, function(e3) {
18355
+ t2.IpcBaseImpl = u, function(e3) {
18308
18356
  e3.ProxySource = class {
18309
18357
  constructor(e4) {
18310
18358
  this._serviceProvider = e4;
@@ -18320,7 +18368,7 @@ Object name: '${e3}'.`), t3;
18320
18368
  this._serviceProvider = e4, this._address = t4;
18321
18369
  }
18322
18370
  withService(e4) {
18323
- const t4 = new i2.ProxyId(e4, this._address);
18371
+ const t4 = new s.ProxyId(e4, this._address);
18324
18372
  return this._serviceProvider.proxySource.resolve(t4);
18325
18373
  }
18326
18374
  }
@@ -18342,27 +18390,27 @@ Object name: '${e3}'.`), t3;
18342
18390
  this._ipc = e4, this._address = t4;
18343
18391
  }
18344
18392
  setConnectHelper(e4) {
18345
- (0, n.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
18393
+ (0, o.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
18346
18394
  }
18347
18395
  forAnyService() {
18348
- return new o2(this._ipc, this._address);
18396
+ return new n2(this._ipc, this._address);
18349
18397
  }
18350
18398
  forService(e4) {
18351
- return new o2(this._ipc, this._address, e4);
18399
+ return new n2(this._ipc, this._address, e4);
18352
18400
  }
18353
18401
  }
18354
18402
  e3.ConfigurationWithAddress = r2;
18355
18403
 
18356
- class o2 {
18404
+ class n2 {
18357
18405
  constructor(e4, t4, r3) {
18358
18406
  this._ipc = e4, this._address = t4, this._service = r3;
18359
18407
  }
18360
18408
  setRequestTimeout(e4) {
18361
- (0, n.assertArgument)({ value: e4 }, "number", n.TimeSpan), typeof e4 == "number" && (e4 = n.TimeSpan.fromMilliseconds(e4)), this._ipc.configStore.setRequestTimeout(this._address, this._service, e4);
18409
+ (0, o.assertArgument)({ value: e4 }, "number", o.TimeSpan), typeof e4 == "number" && (e4 = o.TimeSpan.fromMilliseconds(e4)), this._ipc.configStore.setRequestTimeout(this._address, this._service, e4);
18362
18410
  }
18363
18411
  }
18364
- e3.ConfigurationWithAddressService = o2;
18365
- }(c = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
18412
+ e3.ConfigurationWithAddressService = n2;
18413
+ }(u = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
18366
18414
  }, 3552: (e2, t2) => {
18367
18415
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcError = undefined, t2.IpcError = class {
18368
18416
  constructor(e3, t3, r, n) {
@@ -18435,7 +18483,13 @@ Object name: '${e3}'.`), t3;
18435
18483
  }
18436
18484
  disposeAsync() {
18437
18485
  return n(this, undefined, undefined, function* () {
18438
- this._ctsLoop.cancel(), yield this._loop, this._stream.dispose();
18486
+ this._ctsLoop.cancel();
18487
+ try {
18488
+ yield this._loop;
18489
+ } catch (e3) {
18490
+ e3 instanceof o.OperationCanceledError || o.Trace.log(o.UnknownError.ensureError(e3));
18491
+ }
18492
+ this._stream.dispose();
18439
18493
  });
18440
18494
  }
18441
18495
  static toMessageTypeString(e3) {
@@ -18620,8 +18674,8 @@ ${e3.Data}`);
18620
18674
  static create(e3, t3, r2, n2, o2, i3) {
18621
18675
  return new a(e3, t3, r2, n2, o2, i3);
18622
18676
  }
18623
- constructor(e3, t3, r2, n2, o2, s2) {
18624
- this._observer = o2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
18677
+ constructor(e3, t3, r2, n2, s2, c) {
18678
+ this._observer = s2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
18625
18679
  constructor(e4) {
18626
18680
  this._owner = e4;
18627
18681
  }
@@ -18634,8 +18688,8 @@ ${e3.Data}`);
18634
18688
  complete() {
18635
18689
  this._owner.dispatchNetworkComplete();
18636
18690
  }
18637
- }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(s2)), this._$messageStream.catch((e4) => {
18638
- this.disposeAsync();
18691
+ }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(c)), this._$messageStream.catch((e4) => {
18692
+ o.Trace.traceErrorNoThrow(this.disposeAsync());
18639
18693
  });
18640
18694
  }
18641
18695
  disposeAsync() {
@@ -18874,6 +18928,12 @@ ${e3.Data}`);
18874
18928
  complete() {}
18875
18929
  }(this);
18876
18930
  }
18931
+ disposeAsync() {
18932
+ return n(this, undefined, undefined, function* () {
18933
+ const e3 = this._latestChannel;
18934
+ this._latestChannel = undefined, e3 && !e3.isDisposed && (yield e3.disposeAsync());
18935
+ });
18936
+ }
18877
18937
  invokeMethod(e3, t3, r2) {
18878
18938
  return n(this, undefined, undefined, function* () {
18879
18939
  const [n2, a, c, u] = s.RpcRequestFactory.create({ sp: this._sp, service: e3, address: this._address, methodName: t3, args: r2 }), l = yield this.ensureConnection(o.Timeout.infiniteTimeSpan, c), f = yield l.call(n2, u, c), d = i2.Converter.unwrapRpcResponse(f, n2);
@@ -19028,18 +19088,55 @@ ${e3.Data}`);
19028
19088
  return !d || e3.args.length !== 0 && e3.args[e3.args.length - 1] instanceof n.CancellationToken || (y = [...y, n.CancellationToken.none]), [o.Converter.toRpcRequest(l, f, y, b), p, v, b];
19029
19089
  }
19030
19090
  };
19031
- }, 4156: (e2, t2, r) => {
19091
+ }, 4156: function(e2, t2, r) {
19092
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
19093
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
19094
+ function s2(e4) {
19095
+ try {
19096
+ c(n2.next(e4));
19097
+ } catch (e5) {
19098
+ i3(e5);
19099
+ }
19100
+ }
19101
+ function a(e4) {
19102
+ try {
19103
+ c(n2.throw(e4));
19104
+ } catch (e5) {
19105
+ i3(e5);
19106
+ }
19107
+ }
19108
+ function c(e4) {
19109
+ var t4;
19110
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
19111
+ e5(t4);
19112
+ })).then(s2, a);
19113
+ }
19114
+ c((n2 = n2.apply(e3, t3 || [])).next());
19115
+ });
19116
+ };
19032
19117
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Wire = undefined;
19033
- const n = r(3212), o = r(4104), i2 = r(5188);
19118
+ const o = r(3212), i2 = r(4104), s = r(5188);
19034
19119
  t2.Wire = class {
19035
19120
  invokeMethod(e3, t3, r2) {
19036
19121
  return this.getOrCreateChannelManager(e3.address).invokeMethod(e3.service, t3, r2);
19037
19122
  }
19038
- constructor(e3, t3 = n.RpcChannel, r2 = new n.MessageStream.Factory) {
19039
- this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new i2.Dictionary;
19123
+ constructor(e3, t3 = o.RpcChannel, r2 = new o.MessageStream.Factory) {
19124
+ this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new s.Dictionary;
19040
19125
  }
19041
19126
  getOrCreateChannelManager(e3) {
19042
- return this._map.getOrCreateValue(e3.key, () => new o.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
19127
+ return this._map.getOrCreateValue(e3.key, () => new i2.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
19128
+ }
19129
+ disposeChannel(e3) {
19130
+ return n(this, undefined, undefined, function* () {
19131
+ const t3 = this._map.get(e3);
19132
+ t3 && (this._map.delete(e3), yield t3.disposeAsync());
19133
+ });
19134
+ }
19135
+ disposeAllChannels() {
19136
+ return n(this, undefined, undefined, function* () {
19137
+ const e3 = [...this._map.values()];
19138
+ this._map.clear(), yield Promise.all(e3.map((e4) => e4.disposeAsync()));
19139
+ });
19043
19140
  }
19044
19141
  };
19045
19142
  }, 4104: function(e2, t2, r) {
@@ -20002,7 +20099,7 @@ ${e3.Data}`);
20002
20099
  }
20003
20100
  };
20004
20101
  }, 5144: (e2, t2, r) => {
20005
- const n = r(467), o = r(1256), i2 = r(3755), s = r(5256), a = r(192), { randomBytes: c, createHash: u } = r(7968), { Readable: l } = r(8378), { URL: f } = r(8716), d = r(516), p = r(6804), h = r(957), { BINARY_TYPES: v, EMPTY_BUFFER: b, GUID: y, kForOnEventAttribute: _, kListener: m, kStatusCode: g, kWebSocket: O, NOOP: w } = r(5820), { EventTarget: { addEventListener: S, removeEventListener: P } } = r(2584), { format: j, parse: E } = r(1056), { toBuffer: x } = r(3092), M = Symbol("kAborted"), k = [8, 13], T = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"], C = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
20102
+ const n = r(467), o = r(1256), i2 = r(3755), s = r(5256), a = r(192), { randomBytes: c, createHash: u } = r(7968), { Readable: l } = r(8378), { URL: f } = r(8716), d = r(516), p = r(6804), h = r(957), { BINARY_TYPES: v, EMPTY_BUFFER: b, GUID: y, kForOnEventAttribute: _, kListener: m, kStatusCode: g, kWebSocket: O, NOOP: w } = r(5820), { EventTarget: { addEventListener: S, removeEventListener: P } } = r(2584), { format: j, parse: E } = r(1056), { toBuffer: x } = r(3092), M = Symbol("kAborted"), k = [8, 13], C = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"], T = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
20006
20103
 
20007
20104
  class A extends n {
20008
20105
  constructor(e3, t3, r2) {
@@ -20125,7 +20222,7 @@ ${e3.Data}`);
20125
20222
  let g2, O2;
20126
20223
  if (s2.createConnection = l2 ? F : R, s2.defaultPort = s2.defaultPort || v2, s2.port = a2.port || v2, s2.host = a2.hostname.startsWith("[") ? a2.hostname.slice(1, -1) : a2.hostname, s2.headers = { ...s2.headers, "Sec-WebSocket-Version": s2.protocolVersion, "Sec-WebSocket-Key": b2, Connection: "Upgrade", Upgrade: "websocket" }, s2.path = a2.pathname + a2.search, s2.timeout = s2.handshakeTimeout, s2.perMessageDeflate && (g2 = new d(s2.perMessageDeflate !== true ? s2.perMessageDeflate : {}, false, s2.maxPayload), s2.headers["Sec-WebSocket-Extensions"] = j({ [d.extensionName]: g2.offer() })), r2.length) {
20127
20224
  for (const e4 of r2) {
20128
- if (typeof e4 != "string" || !C.test(e4) || m2.has(e4))
20225
+ if (typeof e4 != "string" || !T.test(e4) || m2.has(e4))
20129
20226
  throw new SyntaxError("An invalid or duplicated subprotocol was specified");
20130
20227
  m2.add(e4);
20131
20228
  }
@@ -20224,7 +20321,7 @@ ${e3.Data}`);
20224
20321
  const r3 = x(t3).length;
20225
20322
  e3._socket ? e3._sender._bufferedBytes += r3 : e3._bufferedAmount += r3;
20226
20323
  }
20227
- r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${T[e3.readyState]})`));
20324
+ r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${C[e3.readyState]})`));
20228
20325
  }
20229
20326
  function W(e3, t3) {
20230
20327
  const r2 = this[O];
@@ -20270,7 +20367,7 @@ ${e3.Data}`);
20270
20367
  const e3 = this[O];
20271
20368
  this.removeListener("error", J), this.on("error", w), e3 && (e3._readyState = A.CLOSING, this.destroy());
20272
20369
  }
20273
- Object.defineProperty(A, "CONNECTING", { enumerable: true, value: T.indexOf("CONNECTING") }), Object.defineProperty(A.prototype, "CONNECTING", { enumerable: true, value: T.indexOf("CONNECTING") }), Object.defineProperty(A, "OPEN", { enumerable: true, value: T.indexOf("OPEN") }), Object.defineProperty(A.prototype, "OPEN", { enumerable: true, value: T.indexOf("OPEN") }), Object.defineProperty(A, "CLOSING", { enumerable: true, value: T.indexOf("CLOSING") }), Object.defineProperty(A.prototype, "CLOSING", { enumerable: true, value: T.indexOf("CLOSING") }), Object.defineProperty(A, "CLOSED", { enumerable: true, value: T.indexOf("CLOSED") }), Object.defineProperty(A.prototype, "CLOSED", { enumerable: true, value: T.indexOf("CLOSED") }), ["binaryType", "bufferedAmount", "extensions", "isPaused", "protocol", "readyState", "url"].forEach((e3) => {
20370
+ Object.defineProperty(A, "CONNECTING", { enumerable: true, value: C.indexOf("CONNECTING") }), Object.defineProperty(A.prototype, "CONNECTING", { enumerable: true, value: C.indexOf("CONNECTING") }), Object.defineProperty(A, "OPEN", { enumerable: true, value: C.indexOf("OPEN") }), Object.defineProperty(A.prototype, "OPEN", { enumerable: true, value: C.indexOf("OPEN") }), Object.defineProperty(A, "CLOSING", { enumerable: true, value: C.indexOf("CLOSING") }), Object.defineProperty(A.prototype, "CLOSING", { enumerable: true, value: C.indexOf("CLOSING") }), Object.defineProperty(A, "CLOSED", { enumerable: true, value: C.indexOf("CLOSED") }), Object.defineProperty(A.prototype, "CLOSED", { enumerable: true, value: C.indexOf("CLOSED") }), ["binaryType", "bufferedAmount", "extensions", "isPaused", "protocol", "readyState", "url"].forEach((e3) => {
20274
20371
  Object.defineProperty(A.prototype, e3, { enumerable: true });
20275
20372
  }), ["open", "error", "close", "message"].forEach((e3) => {
20276
20373
  Object.defineProperty(A.prototype, `on${e3}`, { enumerable: true, get() {
@@ -26947,11 +27044,13 @@ var require_handle_consent_code_message = __commonJS((exports) => {
26947
27044
  var coreipc_1 = require_coreipc();
26948
27045
 
26949
27046
  class HandleConsentCodeMessage extends coreipc_1.Message {
26950
- constructor(Accept, Domain, ConsentCode) {
27047
+ constructor(Accept, Domain, ConsentCode, SignInUrl) {
26951
27048
  super();
26952
27049
  this.Accept = Accept;
26953
27050
  this.Domain = Domain;
26954
27051
  this.ConsentCode = ConsentCode;
27052
+ this.SignInUrl = SignInUrl;
27053
+ this.RequestTimeout = coreipc_1.TimeSpan.fromSeconds(60);
26955
27054
  }
26956
27055
  }
26957
27056
  exports.HandleConsentCodeMessage = HandleConsentCodeMessage;
@@ -27752,8 +27851,8 @@ var require_robotjs_services2 = __commonJS((exports) => {
27752
27851
  constructor(_consentCodeServices) {
27753
27852
  this._consentCodeServices = _consentCodeServices;
27754
27853
  }
27755
- HandleConsentCode(accept, domain2, consentCode) {
27756
- return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode), coreipc_1.CancellationToken.none);
27854
+ HandleConsentCode(accept, domain2, consentCode, signInUrl) {
27855
+ return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode, signInUrl), coreipc_1.CancellationToken.none);
27757
27856
  }
27758
27857
  IsDomainAllowed(domain2) {
27759
27858
  return this._consentCodeServices.IsDomainAllowed(new server.IsDomainAllowedMessage(domain2), coreipc_1.CancellationToken.none);
@@ -27895,7 +27994,10 @@ var require_robot_agent_proxy2 = __commonJS((exports) => {
27895
27994
  this._robotJsServices = new robotjs_services_1.RobotJsServices(this._consentCodeServices);
27896
27995
  }
27897
27996
  CloseAsync() {
27898
- return __awaiter(this, undefined, undefined, function* () {});
27997
+ return __awaiter(this, undefined, undefined, function* () {
27998
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._settings.pipeName));
27999
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._robotJsSettings.pipeName));
28000
+ });
27899
28001
  }
27900
28002
  get RobotStatusChanged() {
27901
28003
  return this._robotStatusChanged;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/auth",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/UiPath/cli.git",
@@ -44,12 +44,12 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "^25.5.0",
47
- "@uipath/common": "0.9.0",
48
- "@uipath/filesystem": "0.9.0",
49
- "@uipath/robot-client": "26.0.0-alpha21819",
47
+ "@uipath/common": "0.9.1",
48
+ "@uipath/filesystem": "0.9.1",
49
+ "@uipath/robot-client": "26.0.193-alpha22964",
50
50
  "openid-client": "^6.8.2",
51
51
  "typescript": "^5",
52
52
  "zod": "^4.3.6"
53
53
  },
54
- "gitHead": "3f1b4d8e9f910be81e4cab956537f21dbd5d63ac"
54
+ "gitHead": "e8da2857e37a9495c4907cd39f47c9d6ed1a5566"
55
55
  }