@uipath/insights-tool 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/tool.js +152 -50
  2. package/package.json +4 -4
package/dist/tool.js CHANGED
@@ -2127,7 +2127,7 @@ var require_commander = __commonJS((exports) => {
2127
2127
  // package.json
2128
2128
  var package_default = {
2129
2129
  name: "@uipath/insights-tool",
2130
- version: "0.9.0",
2130
+ version: "0.9.1",
2131
2131
  description: "Query UiPath Insights data — jobs, failures, and performance metrics.",
2132
2132
  private: false,
2133
2133
  repository: {
@@ -20467,7 +20467,7 @@ var require_coreipc = __commonJS2((exports, module) => {
20467
20467
  if (S(n3))
20468
20468
  return r3;
20469
20469
  for (var i3 = function(e6) {
20470
- var t5 = C(e6, o2);
20470
+ var t5 = T(e6, o2);
20471
20471
  if (!k(t5))
20472
20472
  throw new TypeError;
20473
20473
  var r4 = t5.call(e6);
@@ -20530,7 +20530,7 @@ var require_coreipc = __commonJS2((exports, module) => {
20530
20530
  case 5:
20531
20531
  return e5;
20532
20532
  }
20533
- var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = C(e5, n2);
20533
+ var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = T(e5, n2);
20534
20534
  if (o3 !== undefined) {
20535
20535
  var i3 = o3.call(e5, r3);
20536
20536
  if (j(i3))
@@ -20567,10 +20567,10 @@ var require_coreipc = __commonJS2((exports, module) => {
20567
20567
  function k(e5) {
20568
20568
  return typeof e5 == "function";
20569
20569
  }
20570
- function T(e5) {
20570
+ function C(e5) {
20571
20571
  return typeof e5 == "function";
20572
20572
  }
20573
- function C(e5, t4) {
20573
+ function T(e5, t4) {
20574
20574
  var r3 = e5[t4];
20575
20575
  if (r3 != null) {
20576
20576
  if (!k(r3))
@@ -20605,13 +20605,13 @@ var require_coreipc = __commonJS2((exports, module) => {
20605
20605
  if (S(r3)) {
20606
20606
  if (!M(e5))
20607
20607
  throw new TypeError;
20608
- if (!T(t4))
20608
+ if (!C(t4))
20609
20609
  throw new TypeError;
20610
20610
  return function(e6, t5) {
20611
20611
  for (var r4 = e6.length - 1;r4 >= 0; --r4) {
20612
20612
  var n4 = (0, e6[r4])(t5);
20613
20613
  if (!S(n4) && !P(n4)) {
20614
- if (!T(n4))
20614
+ if (!C(n4))
20615
20615
  throw new TypeError;
20616
20616
  t5 = n4;
20617
20617
  }
@@ -20821,13 +20821,13 @@ var require_coreipc = __commonJS2((exports, module) => {
20821
20821
  Object.defineProperty(t2, "EmptyError", { enumerable: true, get: function() {
20822
20822
  return k.EmptyError;
20823
20823
  } });
20824
- var T = r(7628);
20824
+ var C = r(7628);
20825
20825
  Object.defineProperty(t2, "NotFoundError", { enumerable: true, get: function() {
20826
- return T.NotFoundError;
20826
+ return C.NotFoundError;
20827
20827
  } });
20828
- var C = r(740);
20828
+ var T = r(740);
20829
20829
  Object.defineProperty(t2, "ObjectUnsubscribedError", { enumerable: true, get: function() {
20830
- return C.ObjectUnsubscribedError;
20830
+ return T.ObjectUnsubscribedError;
20831
20831
  } });
20832
20832
  var A = r(6968);
20833
20833
  Object.defineProperty(t2, "SequenceError", { enumerable: true, get: function() {
@@ -21037,13 +21037,13 @@ var require_coreipc = __commonJS2((exports, module) => {
21037
21037
  Object.defineProperty(t2, "debounceTime", { enumerable: true, get: function() {
21038
21038
  return ke.debounceTime;
21039
21039
  } });
21040
- var Te = r(6204);
21040
+ var Ce = r(6204);
21041
21041
  Object.defineProperty(t2, "defaultIfEmpty", { enumerable: true, get: function() {
21042
- return Te.defaultIfEmpty;
21042
+ return Ce.defaultIfEmpty;
21043
21043
  } });
21044
- var Ce = r(7752);
21044
+ var Te = r(7752);
21045
21045
  Object.defineProperty(t2, "delay", { enumerable: true, get: function() {
21046
- return Ce.delay;
21046
+ return Te.delay;
21047
21047
  } });
21048
21048
  var Ae = r(7532);
21049
21049
  Object.defineProperty(t2, "delayWhen", { enumerable: true, get: function() {
@@ -21253,13 +21253,13 @@ var require_coreipc = __commonJS2((exports, module) => {
21253
21253
  Object.defineProperty(t2, "share", { enumerable: true, get: function() {
21254
21254
  return kt.share;
21255
21255
  } });
21256
- var Tt = r(4980);
21256
+ var Ct = r(4980);
21257
21257
  Object.defineProperty(t2, "shareReplay", { enumerable: true, get: function() {
21258
- return Tt.shareReplay;
21258
+ return Ct.shareReplay;
21259
21259
  } });
21260
- var Ct = r(1400);
21260
+ var Tt = r(1400);
21261
21261
  Object.defineProperty(t2, "single", { enumerable: true, get: function() {
21262
- return Ct.single;
21262
+ return Tt.single;
21263
21263
  } });
21264
21264
  var At = r(7516);
21265
21265
  Object.defineProperty(t2, "skip", { enumerable: true, get: function() {
@@ -26959,12 +26959,24 @@ var require_coreipc = __commonJS2((exports, module) => {
26959
26959
  static create() {
26960
26960
  return new r;
26961
26961
  }
26962
+ get(e3) {
26963
+ return this._map.get(e3);
26964
+ }
26962
26965
  getOrCreateValue(e3, t3) {
26963
26966
  if (this._map.has(e3))
26964
26967
  return this._map.get(e3);
26965
26968
  let r2 = t3(e3);
26966
26969
  return this._map.set(e3, r2), r2;
26967
26970
  }
26971
+ delete(e3) {
26972
+ return this._map.delete(e3);
26973
+ }
26974
+ values() {
26975
+ return this._map.values();
26976
+ }
26977
+ clear() {
26978
+ this._map.clear();
26979
+ }
26968
26980
  }
26969
26981
  t2.Dictionary = r;
26970
26982
  }, 4444: function(e2, t2, r) {
@@ -28337,25 +28349,61 @@ Object name: '${e3}'.`), t3;
28337
28349
  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);
28338
28350
  }, 1816: (e2, t2) => {
28339
28351
  Object.defineProperty(t2, "__esModule", { value: true });
28340
- }, 5284: (e2, t2, r) => {
28352
+ }, 5284: function(e2, t2, r) {
28353
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
28354
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
28355
+ function s2(e4) {
28356
+ try {
28357
+ c2(n2.next(e4));
28358
+ } catch (e5) {
28359
+ i3(e5);
28360
+ }
28361
+ }
28362
+ function a2(e4) {
28363
+ try {
28364
+ c2(n2.throw(e4));
28365
+ } catch (e5) {
28366
+ i3(e5);
28367
+ }
28368
+ }
28369
+ function c2(e4) {
28370
+ var t4;
28371
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
28372
+ e5(t4);
28373
+ })).then(s2, a2);
28374
+ }
28375
+ c2((n2 = n2.apply(e3, t3 || [])).next());
28376
+ });
28377
+ };
28341
28378
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcBaseImpl = t2.IpcCoreBase = undefined;
28342
- const n = r(5188), o = r(3212), i22 = r(4104), s = r(2760), a = r(9100);
28379
+ const o = r(5188), i22 = r(3212), s = r(4104), a = r(2760), c = r(9100);
28343
28380
  t2.IpcCoreBase = class {
28344
28381
  constructor() {
28345
28382
  this._db = new Map;
28346
28383
  }
28347
28384
  };
28348
28385
 
28349
- class c {
28386
+ class u {
28350
28387
  constructor(e3, t3, r2) {
28351
- 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 i22.ProxySource(this), this.dispatchProxies = new i22.DispatchProxyClassStore, this.wire = new i22.Wire(this), this.contractStore = new s.ContractStore, this.callbackStore = new i22.CallbackStoreImpl, this.$service = t3 != null ? t3 : new o.ServiceAnnotationsWrapper(this).iface, this.$operation = r2 != null ? r2 : new o.OperationAnnotationsWrapper(this).iface;
28388
+ this.addressBuilder = e3, this.proxy = new u.ProxySource(this), this.config = new u.Configuration(this), this.callback = new c.CallbackImpl(this), this.configStore = new i22.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 i22.ServiceAnnotationsWrapper(this).iface, this.$operation = r2 != null ? r2 : new i22.OperationAnnotationsWrapper(this).iface;
28352
28389
  }
28353
28390
  getAddress(e3) {
28354
28391
  const t3 = new this.addressBuilder;
28355
28392
  return e3(t3), t3.assertAddress();
28356
28393
  }
28394
+ disposeChannel(e3) {
28395
+ return n(this, undefined, undefined, function* () {
28396
+ const t3 = this.getAddress(e3);
28397
+ yield this.wire.disposeChannel(t3.key);
28398
+ });
28399
+ }
28400
+ disposeAllChannels() {
28401
+ return n(this, undefined, undefined, function* () {
28402
+ yield this.wire.disposeAllChannels();
28403
+ });
28404
+ }
28357
28405
  }
28358
- t2.IpcBaseImpl = c, function(e3) {
28406
+ t2.IpcBaseImpl = u, function(e3) {
28359
28407
  e3.ProxySource = class {
28360
28408
  constructor(e4) {
28361
28409
  this._serviceProvider = e4;
@@ -28371,7 +28419,7 @@ Object name: '${e3}'.`), t3;
28371
28419
  this._serviceProvider = e4, this._address = t4;
28372
28420
  }
28373
28421
  withService(e4) {
28374
- const t4 = new i22.ProxyId(e4, this._address);
28422
+ const t4 = new s.ProxyId(e4, this._address);
28375
28423
  return this._serviceProvider.proxySource.resolve(t4);
28376
28424
  }
28377
28425
  }
@@ -28393,27 +28441,27 @@ Object name: '${e3}'.`), t3;
28393
28441
  this._ipc = e4, this._address = t4;
28394
28442
  }
28395
28443
  setConnectHelper(e4) {
28396
- (0, n.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
28444
+ (0, o.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
28397
28445
  }
28398
28446
  forAnyService() {
28399
- return new o2(this._ipc, this._address);
28447
+ return new n2(this._ipc, this._address);
28400
28448
  }
28401
28449
  forService(e4) {
28402
- return new o2(this._ipc, this._address, e4);
28450
+ return new n2(this._ipc, this._address, e4);
28403
28451
  }
28404
28452
  }
28405
28453
  e3.ConfigurationWithAddress = r2;
28406
28454
 
28407
- class o2 {
28455
+ class n2 {
28408
28456
  constructor(e4, t4, r3) {
28409
28457
  this._ipc = e4, this._address = t4, this._service = r3;
28410
28458
  }
28411
28459
  setRequestTimeout(e4) {
28412
- (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);
28460
+ (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);
28413
28461
  }
28414
28462
  }
28415
- e3.ConfigurationWithAddressService = o2;
28416
- }(c = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
28463
+ e3.ConfigurationWithAddressService = n2;
28464
+ }(u = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
28417
28465
  }, 3552: (e2, t2) => {
28418
28466
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcError = undefined, t2.IpcError = class {
28419
28467
  constructor(e3, t3, r, n) {
@@ -28486,7 +28534,13 @@ Object name: '${e3}'.`), t3;
28486
28534
  }
28487
28535
  disposeAsync() {
28488
28536
  return n(this, undefined, undefined, function* () {
28489
- this._ctsLoop.cancel(), yield this._loop, this._stream.dispose();
28537
+ this._ctsLoop.cancel();
28538
+ try {
28539
+ yield this._loop;
28540
+ } catch (e3) {
28541
+ e3 instanceof o.OperationCanceledError || o.Trace.log(o.UnknownError.ensureError(e3));
28542
+ }
28543
+ this._stream.dispose();
28490
28544
  });
28491
28545
  }
28492
28546
  static toMessageTypeString(e3) {
@@ -28671,8 +28725,8 @@ ${e3.Data}`);
28671
28725
  static create(e3, t3, r2, n2, o2, i3) {
28672
28726
  return new a(e3, t3, r2, n2, o2, i3);
28673
28727
  }
28674
- constructor(e3, t3, r2, n2, o2, s2) {
28675
- this._observer = o2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
28728
+ constructor(e3, t3, r2, n2, s2, c) {
28729
+ this._observer = s2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
28676
28730
  constructor(e4) {
28677
28731
  this._owner = e4;
28678
28732
  }
@@ -28685,8 +28739,8 @@ ${e3.Data}`);
28685
28739
  complete() {
28686
28740
  this._owner.dispatchNetworkComplete();
28687
28741
  }
28688
- }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i22.MessageStream.Factory.orDefault(s2)), this._$messageStream.catch((e4) => {
28689
- this.disposeAsync();
28742
+ }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i22.MessageStream.Factory.orDefault(c)), this._$messageStream.catch((e4) => {
28743
+ o.Trace.traceErrorNoThrow(this.disposeAsync());
28690
28744
  });
28691
28745
  }
28692
28746
  disposeAsync() {
@@ -28925,6 +28979,12 @@ ${e3.Data}`);
28925
28979
  complete() {}
28926
28980
  }(this);
28927
28981
  }
28982
+ disposeAsync() {
28983
+ return n(this, undefined, undefined, function* () {
28984
+ const e3 = this._latestChannel;
28985
+ this._latestChannel = undefined, e3 && !e3.isDisposed && (yield e3.disposeAsync());
28986
+ });
28987
+ }
28928
28988
  invokeMethod(e3, t3, r2) {
28929
28989
  return n(this, undefined, undefined, function* () {
28930
28990
  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 = i22.Converter.unwrapRpcResponse(f, n2);
@@ -29079,18 +29139,55 @@ ${e3.Data}`);
29079
29139
  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];
29080
29140
  }
29081
29141
  };
29082
- }, 4156: (e2, t2, r) => {
29142
+ }, 4156: function(e2, t2, r) {
29143
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
29144
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
29145
+ function s2(e4) {
29146
+ try {
29147
+ c(n2.next(e4));
29148
+ } catch (e5) {
29149
+ i3(e5);
29150
+ }
29151
+ }
29152
+ function a(e4) {
29153
+ try {
29154
+ c(n2.throw(e4));
29155
+ } catch (e5) {
29156
+ i3(e5);
29157
+ }
29158
+ }
29159
+ function c(e4) {
29160
+ var t4;
29161
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
29162
+ e5(t4);
29163
+ })).then(s2, a);
29164
+ }
29165
+ c((n2 = n2.apply(e3, t3 || [])).next());
29166
+ });
29167
+ };
29083
29168
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Wire = undefined;
29084
- const n = r(3212), o = r(4104), i22 = r(5188);
29169
+ const o = r(3212), i22 = r(4104), s = r(5188);
29085
29170
  t2.Wire = class {
29086
29171
  invokeMethod(e3, t3, r2) {
29087
29172
  return this.getOrCreateChannelManager(e3.address).invokeMethod(e3.service, t3, r2);
29088
29173
  }
29089
- constructor(e3, t3 = n.RpcChannel, r2 = new n.MessageStream.Factory) {
29090
- this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new i22.Dictionary;
29174
+ constructor(e3, t3 = o.RpcChannel, r2 = new o.MessageStream.Factory) {
29175
+ this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new s.Dictionary;
29091
29176
  }
29092
29177
  getOrCreateChannelManager(e3) {
29093
- return this._map.getOrCreateValue(e3.key, () => new o.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
29178
+ return this._map.getOrCreateValue(e3.key, () => new i22.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
29179
+ }
29180
+ disposeChannel(e3) {
29181
+ return n(this, undefined, undefined, function* () {
29182
+ const t3 = this._map.get(e3);
29183
+ t3 && (this._map.delete(e3), yield t3.disposeAsync());
29184
+ });
29185
+ }
29186
+ disposeAllChannels() {
29187
+ return n(this, undefined, undefined, function* () {
29188
+ const e3 = [...this._map.values()];
29189
+ this._map.clear(), yield Promise.all(e3.map((e4) => e4.disposeAsync()));
29190
+ });
29094
29191
  }
29095
29192
  };
29096
29193
  }, 4104: function(e2, t2, r) {
@@ -30053,7 +30150,7 @@ ${e3.Data}`);
30053
30150
  }
30054
30151
  };
30055
30152
  }, 5144: (e2, t2, r) => {
30056
- const n = r(467), o = r(1256), i22 = 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~]+$/;
30153
+ const n = r(467), o = r(1256), i22 = 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~]+$/;
30057
30154
 
30058
30155
  class A extends n {
30059
30156
  constructor(e3, t3, r2) {
@@ -30176,7 +30273,7 @@ ${e3.Data}`);
30176
30273
  let g2, O2;
30177
30274
  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) {
30178
30275
  for (const e4 of r2) {
30179
- if (typeof e4 != "string" || !C.test(e4) || m2.has(e4))
30276
+ if (typeof e4 != "string" || !T.test(e4) || m2.has(e4))
30180
30277
  throw new SyntaxError("An invalid or duplicated subprotocol was specified");
30181
30278
  m2.add(e4);
30182
30279
  }
@@ -30275,7 +30372,7 @@ ${e3.Data}`);
30275
30372
  const r3 = x(t3).length;
30276
30373
  e3._socket ? e3._sender._bufferedBytes += r3 : e3._bufferedAmount += r3;
30277
30374
  }
30278
- r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${T[e3.readyState]})`));
30375
+ r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${C[e3.readyState]})`));
30279
30376
  }
30280
30377
  function W(e3, t3) {
30281
30378
  const r2 = this[O];
@@ -30321,7 +30418,7 @@ ${e3.Data}`);
30321
30418
  const e3 = this[O];
30322
30419
  this.removeListener("error", J), this.on("error", w), e3 && (e3._readyState = A.CLOSING, this.destroy());
30323
30420
  }
30324
- 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) => {
30421
+ 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) => {
30325
30422
  Object.defineProperty(A.prototype, e3, { enumerable: true });
30326
30423
  }), ["open", "error", "close", "message"].forEach((e3) => {
30327
30424
  Object.defineProperty(A.prototype, `on${e3}`, { enumerable: true, get() {
@@ -36638,11 +36735,13 @@ var require_handle_consent_code_message = __commonJS2((exports) => {
36638
36735
  var coreipc_1 = require_coreipc();
36639
36736
 
36640
36737
  class HandleConsentCodeMessage extends coreipc_1.Message {
36641
- constructor(Accept, Domain, ConsentCode) {
36738
+ constructor(Accept, Domain, ConsentCode, SignInUrl) {
36642
36739
  super();
36643
36740
  this.Accept = Accept;
36644
36741
  this.Domain = Domain;
36645
36742
  this.ConsentCode = ConsentCode;
36743
+ this.SignInUrl = SignInUrl;
36744
+ this.RequestTimeout = coreipc_1.TimeSpan.fromSeconds(60);
36646
36745
  }
36647
36746
  }
36648
36747
  exports.HandleConsentCodeMessage = HandleConsentCodeMessage;
@@ -37415,8 +37514,8 @@ var require_robotjs_services2 = __commonJS2((exports) => {
37415
37514
  constructor(_consentCodeServices) {
37416
37515
  this._consentCodeServices = _consentCodeServices;
37417
37516
  }
37418
- HandleConsentCode(accept, domain2, consentCode) {
37419
- return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode), coreipc_1.CancellationToken.none);
37517
+ HandleConsentCode(accept, domain2, consentCode, signInUrl) {
37518
+ return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode, signInUrl), coreipc_1.CancellationToken.none);
37420
37519
  }
37421
37520
  IsDomainAllowed(domain2) {
37422
37521
  return this._consentCodeServices.IsDomainAllowed(new server.IsDomainAllowedMessage(domain2), coreipc_1.CancellationToken.none);
@@ -37556,7 +37655,10 @@ var require_robot_agent_proxy2 = __commonJS2((exports) => {
37556
37655
  this._robotJsServices = new robotjs_services_1.RobotJsServices(this._consentCodeServices);
37557
37656
  }
37558
37657
  CloseAsync() {
37559
- return __awaiter(this, undefined, undefined, function* () {});
37658
+ return __awaiter(this, undefined, undefined, function* () {
37659
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._settings.pipeName));
37660
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._robotJsSettings.pipeName));
37661
+ });
37560
37662
  }
37561
37663
  get RobotStatusChanged() {
37562
37664
  return this._robotStatusChanged;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/insights-tool",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Query UiPath Insights data — jobs, failures, and performance metrics.",
5
5
  "private": false,
6
6
  "repository": {
@@ -32,11 +32,11 @@
32
32
  "lint:fix": "biome check --write ."
33
33
  },
34
34
  "devDependencies": {
35
- "@uipath/common": "0.9.0",
36
- "@uipath/insights-sdk": "0.9.0",
35
+ "@uipath/common": "0.9.1",
36
+ "@uipath/insights-sdk": "0.9.1",
37
37
  "@types/node": "^25.5.0",
38
38
  "commander": "^14.0.3",
39
39
  "typescript": "^5"
40
40
  },
41
- "gitHead": "3f1b4d8e9f910be81e4cab956537f21dbd5d63ac"
41
+ "gitHead": "e8da2857e37a9495c4907cd39f47c9d6ed1a5566"
42
42
  }