@uipath/insights-sdk 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 +4 -4
package/dist/index.js CHANGED
@@ -10407,7 +10407,7 @@ var require_coreipc = __commonJS((exports, module) => {
10407
10407
  if (S(n3))
10408
10408
  return r3;
10409
10409
  for (var i3 = function(e6) {
10410
- var t5 = C(e6, o2);
10410
+ var t5 = T(e6, o2);
10411
10411
  if (!k(t5))
10412
10412
  throw new TypeError;
10413
10413
  var r4 = t5.call(e6);
@@ -10470,7 +10470,7 @@ var require_coreipc = __commonJS((exports, module) => {
10470
10470
  case 5:
10471
10471
  return e5;
10472
10472
  }
10473
- var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = C(e5, n2);
10473
+ var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = T(e5, n2);
10474
10474
  if (o3 !== undefined) {
10475
10475
  var i3 = o3.call(e5, r3);
10476
10476
  if (j(i3))
@@ -10507,10 +10507,10 @@ var require_coreipc = __commonJS((exports, module) => {
10507
10507
  function k(e5) {
10508
10508
  return typeof e5 == "function";
10509
10509
  }
10510
- function T(e5) {
10510
+ function C(e5) {
10511
10511
  return typeof e5 == "function";
10512
10512
  }
10513
- function C(e5, t4) {
10513
+ function T(e5, t4) {
10514
10514
  var r3 = e5[t4];
10515
10515
  if (r3 != null) {
10516
10516
  if (!k(r3))
@@ -10545,13 +10545,13 @@ var require_coreipc = __commonJS((exports, module) => {
10545
10545
  if (S(r3)) {
10546
10546
  if (!M(e5))
10547
10547
  throw new TypeError;
10548
- if (!T(t4))
10548
+ if (!C(t4))
10549
10549
  throw new TypeError;
10550
10550
  return function(e6, t5) {
10551
10551
  for (var r4 = e6.length - 1;r4 >= 0; --r4) {
10552
10552
  var n4 = (0, e6[r4])(t5);
10553
10553
  if (!S(n4) && !P(n4)) {
10554
- if (!T(n4))
10554
+ if (!C(n4))
10555
10555
  throw new TypeError;
10556
10556
  t5 = n4;
10557
10557
  }
@@ -10761,13 +10761,13 @@ var require_coreipc = __commonJS((exports, module) => {
10761
10761
  Object.defineProperty(t2, "EmptyError", { enumerable: true, get: function() {
10762
10762
  return k.EmptyError;
10763
10763
  } });
10764
- var T = r(7628);
10764
+ var C = r(7628);
10765
10765
  Object.defineProperty(t2, "NotFoundError", { enumerable: true, get: function() {
10766
- return T.NotFoundError;
10766
+ return C.NotFoundError;
10767
10767
  } });
10768
- var C = r(740);
10768
+ var T = r(740);
10769
10769
  Object.defineProperty(t2, "ObjectUnsubscribedError", { enumerable: true, get: function() {
10770
- return C.ObjectUnsubscribedError;
10770
+ return T.ObjectUnsubscribedError;
10771
10771
  } });
10772
10772
  var A = r(6968);
10773
10773
  Object.defineProperty(t2, "SequenceError", { enumerable: true, get: function() {
@@ -10977,13 +10977,13 @@ var require_coreipc = __commonJS((exports, module) => {
10977
10977
  Object.defineProperty(t2, "debounceTime", { enumerable: true, get: function() {
10978
10978
  return ke.debounceTime;
10979
10979
  } });
10980
- var Te = r(6204);
10980
+ var Ce = r(6204);
10981
10981
  Object.defineProperty(t2, "defaultIfEmpty", { enumerable: true, get: function() {
10982
- return Te.defaultIfEmpty;
10982
+ return Ce.defaultIfEmpty;
10983
10983
  } });
10984
- var Ce = r(7752);
10984
+ var Te = r(7752);
10985
10985
  Object.defineProperty(t2, "delay", { enumerable: true, get: function() {
10986
- return Ce.delay;
10986
+ return Te.delay;
10987
10987
  } });
10988
10988
  var Ae = r(7532);
10989
10989
  Object.defineProperty(t2, "delayWhen", { enumerable: true, get: function() {
@@ -11193,13 +11193,13 @@ var require_coreipc = __commonJS((exports, module) => {
11193
11193
  Object.defineProperty(t2, "share", { enumerable: true, get: function() {
11194
11194
  return kt.share;
11195
11195
  } });
11196
- var Tt = r(4980);
11196
+ var Ct = r(4980);
11197
11197
  Object.defineProperty(t2, "shareReplay", { enumerable: true, get: function() {
11198
- return Tt.shareReplay;
11198
+ return Ct.shareReplay;
11199
11199
  } });
11200
- var Ct = r(1400);
11200
+ var Tt = r(1400);
11201
11201
  Object.defineProperty(t2, "single", { enumerable: true, get: function() {
11202
- return Ct.single;
11202
+ return Tt.single;
11203
11203
  } });
11204
11204
  var At = r(7516);
11205
11205
  Object.defineProperty(t2, "skip", { enumerable: true, get: function() {
@@ -16899,12 +16899,24 @@ var require_coreipc = __commonJS((exports, module) => {
16899
16899
  static create() {
16900
16900
  return new r;
16901
16901
  }
16902
+ get(e3) {
16903
+ return this._map.get(e3);
16904
+ }
16902
16905
  getOrCreateValue(e3, t3) {
16903
16906
  if (this._map.has(e3))
16904
16907
  return this._map.get(e3);
16905
16908
  let r2 = t3(e3);
16906
16909
  return this._map.set(e3, r2), r2;
16907
16910
  }
16911
+ delete(e3) {
16912
+ return this._map.delete(e3);
16913
+ }
16914
+ values() {
16915
+ return this._map.values();
16916
+ }
16917
+ clear() {
16918
+ this._map.clear();
16919
+ }
16908
16920
  }
16909
16921
  t2.Dictionary = r;
16910
16922
  }, 4444: function(e2, t2, r) {
@@ -18277,25 +18289,61 @@ Object name: '${e3}'.`), t3;
18277
18289
  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);
18278
18290
  }, 1816: (e2, t2) => {
18279
18291
  Object.defineProperty(t2, "__esModule", { value: true });
18280
- }, 5284: (e2, t2, r) => {
18292
+ }, 5284: function(e2, t2, r) {
18293
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
18294
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
18295
+ function s2(e4) {
18296
+ try {
18297
+ c2(n2.next(e4));
18298
+ } catch (e5) {
18299
+ i3(e5);
18300
+ }
18301
+ }
18302
+ function a2(e4) {
18303
+ try {
18304
+ c2(n2.throw(e4));
18305
+ } catch (e5) {
18306
+ i3(e5);
18307
+ }
18308
+ }
18309
+ function c2(e4) {
18310
+ var t4;
18311
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
18312
+ e5(t4);
18313
+ })).then(s2, a2);
18314
+ }
18315
+ c2((n2 = n2.apply(e3, t3 || [])).next());
18316
+ });
18317
+ };
18281
18318
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcBaseImpl = t2.IpcCoreBase = undefined;
18282
- const n = r(5188), o = r(3212), i2 = r(4104), s = r(2760), a = r(9100);
18319
+ const o = r(5188), i2 = r(3212), s = r(4104), a = r(2760), c = r(9100);
18283
18320
  t2.IpcCoreBase = class {
18284
18321
  constructor() {
18285
18322
  this._db = new Map;
18286
18323
  }
18287
18324
  };
18288
18325
 
18289
- class c {
18326
+ class u {
18290
18327
  constructor(e3, t3, r2) {
18291
- 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;
18328
+ 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;
18292
18329
  }
18293
18330
  getAddress(e3) {
18294
18331
  const t3 = new this.addressBuilder;
18295
18332
  return e3(t3), t3.assertAddress();
18296
18333
  }
18334
+ disposeChannel(e3) {
18335
+ return n(this, undefined, undefined, function* () {
18336
+ const t3 = this.getAddress(e3);
18337
+ yield this.wire.disposeChannel(t3.key);
18338
+ });
18339
+ }
18340
+ disposeAllChannels() {
18341
+ return n(this, undefined, undefined, function* () {
18342
+ yield this.wire.disposeAllChannels();
18343
+ });
18344
+ }
18297
18345
  }
18298
- t2.IpcBaseImpl = c, function(e3) {
18346
+ t2.IpcBaseImpl = u, function(e3) {
18299
18347
  e3.ProxySource = class {
18300
18348
  constructor(e4) {
18301
18349
  this._serviceProvider = e4;
@@ -18311,7 +18359,7 @@ Object name: '${e3}'.`), t3;
18311
18359
  this._serviceProvider = e4, this._address = t4;
18312
18360
  }
18313
18361
  withService(e4) {
18314
- const t4 = new i2.ProxyId(e4, this._address);
18362
+ const t4 = new s.ProxyId(e4, this._address);
18315
18363
  return this._serviceProvider.proxySource.resolve(t4);
18316
18364
  }
18317
18365
  }
@@ -18333,27 +18381,27 @@ Object name: '${e3}'.`), t3;
18333
18381
  this._ipc = e4, this._address = t4;
18334
18382
  }
18335
18383
  setConnectHelper(e4) {
18336
- (0, n.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
18384
+ (0, o.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
18337
18385
  }
18338
18386
  forAnyService() {
18339
- return new o2(this._ipc, this._address);
18387
+ return new n2(this._ipc, this._address);
18340
18388
  }
18341
18389
  forService(e4) {
18342
- return new o2(this._ipc, this._address, e4);
18390
+ return new n2(this._ipc, this._address, e4);
18343
18391
  }
18344
18392
  }
18345
18393
  e3.ConfigurationWithAddress = r2;
18346
18394
 
18347
- class o2 {
18395
+ class n2 {
18348
18396
  constructor(e4, t4, r3) {
18349
18397
  this._ipc = e4, this._address = t4, this._service = r3;
18350
18398
  }
18351
18399
  setRequestTimeout(e4) {
18352
- (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);
18400
+ (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);
18353
18401
  }
18354
18402
  }
18355
- e3.ConfigurationWithAddressService = o2;
18356
- }(c = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
18403
+ e3.ConfigurationWithAddressService = n2;
18404
+ }(u = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
18357
18405
  }, 3552: (e2, t2) => {
18358
18406
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcError = undefined, t2.IpcError = class {
18359
18407
  constructor(e3, t3, r, n) {
@@ -18426,7 +18474,13 @@ Object name: '${e3}'.`), t3;
18426
18474
  }
18427
18475
  disposeAsync() {
18428
18476
  return n(this, undefined, undefined, function* () {
18429
- this._ctsLoop.cancel(), yield this._loop, this._stream.dispose();
18477
+ this._ctsLoop.cancel();
18478
+ try {
18479
+ yield this._loop;
18480
+ } catch (e3) {
18481
+ e3 instanceof o.OperationCanceledError || o.Trace.log(o.UnknownError.ensureError(e3));
18482
+ }
18483
+ this._stream.dispose();
18430
18484
  });
18431
18485
  }
18432
18486
  static toMessageTypeString(e3) {
@@ -18611,8 +18665,8 @@ ${e3.Data}`);
18611
18665
  static create(e3, t3, r2, n2, o2, i3) {
18612
18666
  return new a(e3, t3, r2, n2, o2, i3);
18613
18667
  }
18614
- constructor(e3, t3, r2, n2, o2, s2) {
18615
- this._observer = o2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
18668
+ constructor(e3, t3, r2, n2, s2, c) {
18669
+ this._observer = s2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
18616
18670
  constructor(e4) {
18617
18671
  this._owner = e4;
18618
18672
  }
@@ -18625,8 +18679,8 @@ ${e3.Data}`);
18625
18679
  complete() {
18626
18680
  this._owner.dispatchNetworkComplete();
18627
18681
  }
18628
- }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(s2)), this._$messageStream.catch((e4) => {
18629
- this.disposeAsync();
18682
+ }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(c)), this._$messageStream.catch((e4) => {
18683
+ o.Trace.traceErrorNoThrow(this.disposeAsync());
18630
18684
  });
18631
18685
  }
18632
18686
  disposeAsync() {
@@ -18865,6 +18919,12 @@ ${e3.Data}`);
18865
18919
  complete() {}
18866
18920
  }(this);
18867
18921
  }
18922
+ disposeAsync() {
18923
+ return n(this, undefined, undefined, function* () {
18924
+ const e3 = this._latestChannel;
18925
+ this._latestChannel = undefined, e3 && !e3.isDisposed && (yield e3.disposeAsync());
18926
+ });
18927
+ }
18868
18928
  invokeMethod(e3, t3, r2) {
18869
18929
  return n(this, undefined, undefined, function* () {
18870
18930
  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);
@@ -19019,18 +19079,55 @@ ${e3.Data}`);
19019
19079
  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];
19020
19080
  }
19021
19081
  };
19022
- }, 4156: (e2, t2, r) => {
19082
+ }, 4156: function(e2, t2, r) {
19083
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
19084
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
19085
+ function s2(e4) {
19086
+ try {
19087
+ c(n2.next(e4));
19088
+ } catch (e5) {
19089
+ i3(e5);
19090
+ }
19091
+ }
19092
+ function a(e4) {
19093
+ try {
19094
+ c(n2.throw(e4));
19095
+ } catch (e5) {
19096
+ i3(e5);
19097
+ }
19098
+ }
19099
+ function c(e4) {
19100
+ var t4;
19101
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
19102
+ e5(t4);
19103
+ })).then(s2, a);
19104
+ }
19105
+ c((n2 = n2.apply(e3, t3 || [])).next());
19106
+ });
19107
+ };
19023
19108
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Wire = undefined;
19024
- const n = r(3212), o = r(4104), i2 = r(5188);
19109
+ const o = r(3212), i2 = r(4104), s = r(5188);
19025
19110
  t2.Wire = class {
19026
19111
  invokeMethod(e3, t3, r2) {
19027
19112
  return this.getOrCreateChannelManager(e3.address).invokeMethod(e3.service, t3, r2);
19028
19113
  }
19029
- constructor(e3, t3 = n.RpcChannel, r2 = new n.MessageStream.Factory) {
19030
- this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new i2.Dictionary;
19114
+ constructor(e3, t3 = o.RpcChannel, r2 = new o.MessageStream.Factory) {
19115
+ this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new s.Dictionary;
19031
19116
  }
19032
19117
  getOrCreateChannelManager(e3) {
19033
- return this._map.getOrCreateValue(e3.key, () => new o.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
19118
+ return this._map.getOrCreateValue(e3.key, () => new i2.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
19119
+ }
19120
+ disposeChannel(e3) {
19121
+ return n(this, undefined, undefined, function* () {
19122
+ const t3 = this._map.get(e3);
19123
+ t3 && (this._map.delete(e3), yield t3.disposeAsync());
19124
+ });
19125
+ }
19126
+ disposeAllChannels() {
19127
+ return n(this, undefined, undefined, function* () {
19128
+ const e3 = [...this._map.values()];
19129
+ this._map.clear(), yield Promise.all(e3.map((e4) => e4.disposeAsync()));
19130
+ });
19034
19131
  }
19035
19132
  };
19036
19133
  }, 4104: function(e2, t2, r) {
@@ -19993,7 +20090,7 @@ ${e3.Data}`);
19993
20090
  }
19994
20091
  };
19995
20092
  }, 5144: (e2, t2, r) => {
19996
- 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~]+$/;
20093
+ 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~]+$/;
19997
20094
 
19998
20095
  class A extends n {
19999
20096
  constructor(e3, t3, r2) {
@@ -20116,7 +20213,7 @@ ${e3.Data}`);
20116
20213
  let g2, O2;
20117
20214
  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) {
20118
20215
  for (const e4 of r2) {
20119
- if (typeof e4 != "string" || !C.test(e4) || m2.has(e4))
20216
+ if (typeof e4 != "string" || !T.test(e4) || m2.has(e4))
20120
20217
  throw new SyntaxError("An invalid or duplicated subprotocol was specified");
20121
20218
  m2.add(e4);
20122
20219
  }
@@ -20215,7 +20312,7 @@ ${e3.Data}`);
20215
20312
  const r3 = x(t3).length;
20216
20313
  e3._socket ? e3._sender._bufferedBytes += r3 : e3._bufferedAmount += r3;
20217
20314
  }
20218
- r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${T[e3.readyState]})`));
20315
+ r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${C[e3.readyState]})`));
20219
20316
  }
20220
20317
  function W(e3, t3) {
20221
20318
  const r2 = this[O];
@@ -20261,7 +20358,7 @@ ${e3.Data}`);
20261
20358
  const e3 = this[O];
20262
20359
  this.removeListener("error", J), this.on("error", w), e3 && (e3._readyState = A.CLOSING, this.destroy());
20263
20360
  }
20264
- 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) => {
20361
+ 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) => {
20265
20362
  Object.defineProperty(A.prototype, e3, { enumerable: true });
20266
20363
  }), ["open", "error", "close", "message"].forEach((e3) => {
20267
20364
  Object.defineProperty(A.prototype, `on${e3}`, { enumerable: true, get() {
@@ -26938,11 +27035,13 @@ var require_handle_consent_code_message = __commonJS((exports) => {
26938
27035
  var coreipc_1 = require_coreipc();
26939
27036
 
26940
27037
  class HandleConsentCodeMessage extends coreipc_1.Message {
26941
- constructor(Accept, Domain, ConsentCode) {
27038
+ constructor(Accept, Domain, ConsentCode, SignInUrl) {
26942
27039
  super();
26943
27040
  this.Accept = Accept;
26944
27041
  this.Domain = Domain;
26945
27042
  this.ConsentCode = ConsentCode;
27043
+ this.SignInUrl = SignInUrl;
27044
+ this.RequestTimeout = coreipc_1.TimeSpan.fromSeconds(60);
26946
27045
  }
26947
27046
  }
26948
27047
  exports.HandleConsentCodeMessage = HandleConsentCodeMessage;
@@ -27743,8 +27842,8 @@ var require_robotjs_services2 = __commonJS((exports) => {
27743
27842
  constructor(_consentCodeServices) {
27744
27843
  this._consentCodeServices = _consentCodeServices;
27745
27844
  }
27746
- HandleConsentCode(accept, domain2, consentCode) {
27747
- return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode), coreipc_1.CancellationToken.none);
27845
+ HandleConsentCode(accept, domain2, consentCode, signInUrl) {
27846
+ return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode, signInUrl), coreipc_1.CancellationToken.none);
27748
27847
  }
27749
27848
  IsDomainAllowed(domain2) {
27750
27849
  return this._consentCodeServices.IsDomainAllowed(new server.IsDomainAllowedMessage(domain2), coreipc_1.CancellationToken.none);
@@ -27886,7 +27985,10 @@ var require_robot_agent_proxy2 = __commonJS((exports) => {
27886
27985
  this._robotJsServices = new robotjs_services_1.RobotJsServices(this._consentCodeServices);
27887
27986
  }
27888
27987
  CloseAsync() {
27889
- return __awaiter(this, undefined, undefined, function* () {});
27988
+ return __awaiter(this, undefined, undefined, function* () {
27989
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._settings.pipeName));
27990
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._robotJsSettings.pipeName));
27991
+ });
27890
27992
  }
27891
27993
  get RobotStatusChanged() {
27892
27994
  return this._robotStatusChanged;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/insights-sdk",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "SDK for the UiPath Insights API — jobs, failures, and performance metrics.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,10 +29,10 @@
29
29
  "lint:fix": "biome check --write ."
30
30
  },
31
31
  "devDependencies": {
32
- "@uipath/auth": "0.9.0",
33
- "@uipath/common": "0.9.0",
32
+ "@uipath/auth": "0.9.1",
33
+ "@uipath/common": "0.9.1",
34
34
  "@types/node": "^25.5.0",
35
35
  "typescript": "^5"
36
36
  },
37
- "gitHead": "3f1b4d8e9f910be81e4cab956537f21dbd5d63ac"
37
+ "gitHead": "e8da2857e37a9495c4907cd39f47c9d6ed1a5566"
38
38
  }