@uipath/maestro-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 +302 -98
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -10557,7 +10557,7 @@ var require_coreipc = __commonJS((exports, module) => {
10557
10557
  if (S(n3))
10558
10558
  return r3;
10559
10559
  for (var i3 = function(e6) {
10560
- var t5 = C(e6, o2);
10560
+ var t5 = T(e6, o2);
10561
10561
  if (!k(t5))
10562
10562
  throw new TypeError;
10563
10563
  var r4 = t5.call(e6);
@@ -10620,7 +10620,7 @@ var require_coreipc = __commonJS((exports, module) => {
10620
10620
  case 5:
10621
10621
  return e5;
10622
10622
  }
10623
- var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = C(e5, n2);
10623
+ var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = T(e5, n2);
10624
10624
  if (o3 !== undefined) {
10625
10625
  var i3 = o3.call(e5, r3);
10626
10626
  if (j(i3))
@@ -10657,10 +10657,10 @@ var require_coreipc = __commonJS((exports, module) => {
10657
10657
  function k(e5) {
10658
10658
  return typeof e5 == "function";
10659
10659
  }
10660
- function T(e5) {
10660
+ function C(e5) {
10661
10661
  return typeof e5 == "function";
10662
10662
  }
10663
- function C(e5, t4) {
10663
+ function T(e5, t4) {
10664
10664
  var r3 = e5[t4];
10665
10665
  if (r3 != null) {
10666
10666
  if (!k(r3))
@@ -10695,13 +10695,13 @@ var require_coreipc = __commonJS((exports, module) => {
10695
10695
  if (S(r3)) {
10696
10696
  if (!M(e5))
10697
10697
  throw new TypeError;
10698
- if (!T(t4))
10698
+ if (!C(t4))
10699
10699
  throw new TypeError;
10700
10700
  return function(e6, t5) {
10701
10701
  for (var r4 = e6.length - 1;r4 >= 0; --r4) {
10702
10702
  var n4 = (0, e6[r4])(t5);
10703
10703
  if (!S(n4) && !P(n4)) {
10704
- if (!T(n4))
10704
+ if (!C(n4))
10705
10705
  throw new TypeError;
10706
10706
  t5 = n4;
10707
10707
  }
@@ -10911,13 +10911,13 @@ var require_coreipc = __commonJS((exports, module) => {
10911
10911
  Object.defineProperty(t2, "EmptyError", { enumerable: true, get: function() {
10912
10912
  return k.EmptyError;
10913
10913
  } });
10914
- var T = r(7628);
10914
+ var C = r(7628);
10915
10915
  Object.defineProperty(t2, "NotFoundError", { enumerable: true, get: function() {
10916
- return T.NotFoundError;
10916
+ return C.NotFoundError;
10917
10917
  } });
10918
- var C = r(740);
10918
+ var T = r(740);
10919
10919
  Object.defineProperty(t2, "ObjectUnsubscribedError", { enumerable: true, get: function() {
10920
- return C.ObjectUnsubscribedError;
10920
+ return T.ObjectUnsubscribedError;
10921
10921
  } });
10922
10922
  var A = r(6968);
10923
10923
  Object.defineProperty(t2, "SequenceError", { enumerable: true, get: function() {
@@ -11127,13 +11127,13 @@ var require_coreipc = __commonJS((exports, module) => {
11127
11127
  Object.defineProperty(t2, "debounceTime", { enumerable: true, get: function() {
11128
11128
  return ke.debounceTime;
11129
11129
  } });
11130
- var Te = r(6204);
11130
+ var Ce = r(6204);
11131
11131
  Object.defineProperty(t2, "defaultIfEmpty", { enumerable: true, get: function() {
11132
- return Te.defaultIfEmpty;
11132
+ return Ce.defaultIfEmpty;
11133
11133
  } });
11134
- var Ce = r(7752);
11134
+ var Te = r(7752);
11135
11135
  Object.defineProperty(t2, "delay", { enumerable: true, get: function() {
11136
- return Ce.delay;
11136
+ return Te.delay;
11137
11137
  } });
11138
11138
  var Ae = r(7532);
11139
11139
  Object.defineProperty(t2, "delayWhen", { enumerable: true, get: function() {
@@ -11343,13 +11343,13 @@ var require_coreipc = __commonJS((exports, module) => {
11343
11343
  Object.defineProperty(t2, "share", { enumerable: true, get: function() {
11344
11344
  return kt.share;
11345
11345
  } });
11346
- var Tt = r(4980);
11346
+ var Ct = r(4980);
11347
11347
  Object.defineProperty(t2, "shareReplay", { enumerable: true, get: function() {
11348
- return Tt.shareReplay;
11348
+ return Ct.shareReplay;
11349
11349
  } });
11350
- var Ct = r(1400);
11350
+ var Tt = r(1400);
11351
11351
  Object.defineProperty(t2, "single", { enumerable: true, get: function() {
11352
- return Ct.single;
11352
+ return Tt.single;
11353
11353
  } });
11354
11354
  var At = r(7516);
11355
11355
  Object.defineProperty(t2, "skip", { enumerable: true, get: function() {
@@ -17049,12 +17049,24 @@ var require_coreipc = __commonJS((exports, module) => {
17049
17049
  static create() {
17050
17050
  return new r;
17051
17051
  }
17052
+ get(e3) {
17053
+ return this._map.get(e3);
17054
+ }
17052
17055
  getOrCreateValue(e3, t3) {
17053
17056
  if (this._map.has(e3))
17054
17057
  return this._map.get(e3);
17055
17058
  let r2 = t3(e3);
17056
17059
  return this._map.set(e3, r2), r2;
17057
17060
  }
17061
+ delete(e3) {
17062
+ return this._map.delete(e3);
17063
+ }
17064
+ values() {
17065
+ return this._map.values();
17066
+ }
17067
+ clear() {
17068
+ this._map.clear();
17069
+ }
17058
17070
  }
17059
17071
  t2.Dictionary = r;
17060
17072
  }, 4444: function(e2, t2, r) {
@@ -18427,25 +18439,61 @@ Object name: '${e3}'.`), t3;
18427
18439
  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);
18428
18440
  }, 1816: (e2, t2) => {
18429
18441
  Object.defineProperty(t2, "__esModule", { value: true });
18430
- }, 5284: (e2, t2, r) => {
18442
+ }, 5284: function(e2, t2, r) {
18443
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
18444
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
18445
+ function s2(e4) {
18446
+ try {
18447
+ c2(n2.next(e4));
18448
+ } catch (e5) {
18449
+ i3(e5);
18450
+ }
18451
+ }
18452
+ function a2(e4) {
18453
+ try {
18454
+ c2(n2.throw(e4));
18455
+ } catch (e5) {
18456
+ i3(e5);
18457
+ }
18458
+ }
18459
+ function c2(e4) {
18460
+ var t4;
18461
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
18462
+ e5(t4);
18463
+ })).then(s2, a2);
18464
+ }
18465
+ c2((n2 = n2.apply(e3, t3 || [])).next());
18466
+ });
18467
+ };
18431
18468
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcBaseImpl = t2.IpcCoreBase = undefined;
18432
- const n = r(5188), o = r(3212), i2 = r(4104), s = r(2760), a = r(9100);
18469
+ const o = r(5188), i2 = r(3212), s = r(4104), a = r(2760), c = r(9100);
18433
18470
  t2.IpcCoreBase = class {
18434
18471
  constructor() {
18435
18472
  this._db = new Map;
18436
18473
  }
18437
18474
  };
18438
18475
 
18439
- class c {
18476
+ class u {
18440
18477
  constructor(e3, t3, r2) {
18441
- 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;
18478
+ 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;
18442
18479
  }
18443
18480
  getAddress(e3) {
18444
18481
  const t3 = new this.addressBuilder;
18445
18482
  return e3(t3), t3.assertAddress();
18446
18483
  }
18484
+ disposeChannel(e3) {
18485
+ return n(this, undefined, undefined, function* () {
18486
+ const t3 = this.getAddress(e3);
18487
+ yield this.wire.disposeChannel(t3.key);
18488
+ });
18489
+ }
18490
+ disposeAllChannels() {
18491
+ return n(this, undefined, undefined, function* () {
18492
+ yield this.wire.disposeAllChannels();
18493
+ });
18494
+ }
18447
18495
  }
18448
- t2.IpcBaseImpl = c, function(e3) {
18496
+ t2.IpcBaseImpl = u, function(e3) {
18449
18497
  e3.ProxySource = class {
18450
18498
  constructor(e4) {
18451
18499
  this._serviceProvider = e4;
@@ -18461,7 +18509,7 @@ Object name: '${e3}'.`), t3;
18461
18509
  this._serviceProvider = e4, this._address = t4;
18462
18510
  }
18463
18511
  withService(e4) {
18464
- const t4 = new i2.ProxyId(e4, this._address);
18512
+ const t4 = new s.ProxyId(e4, this._address);
18465
18513
  return this._serviceProvider.proxySource.resolve(t4);
18466
18514
  }
18467
18515
  }
@@ -18483,27 +18531,27 @@ Object name: '${e3}'.`), t3;
18483
18531
  this._ipc = e4, this._address = t4;
18484
18532
  }
18485
18533
  setConnectHelper(e4) {
18486
- (0, n.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
18534
+ (0, o.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
18487
18535
  }
18488
18536
  forAnyService() {
18489
- return new o2(this._ipc, this._address);
18537
+ return new n2(this._ipc, this._address);
18490
18538
  }
18491
18539
  forService(e4) {
18492
- return new o2(this._ipc, this._address, e4);
18540
+ return new n2(this._ipc, this._address, e4);
18493
18541
  }
18494
18542
  }
18495
18543
  e3.ConfigurationWithAddress = r2;
18496
18544
 
18497
- class o2 {
18545
+ class n2 {
18498
18546
  constructor(e4, t4, r3) {
18499
18547
  this._ipc = e4, this._address = t4, this._service = r3;
18500
18548
  }
18501
18549
  setRequestTimeout(e4) {
18502
- (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);
18550
+ (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);
18503
18551
  }
18504
18552
  }
18505
- e3.ConfigurationWithAddressService = o2;
18506
- }(c = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
18553
+ e3.ConfigurationWithAddressService = n2;
18554
+ }(u = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
18507
18555
  }, 3552: (e2, t2) => {
18508
18556
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcError = undefined, t2.IpcError = class {
18509
18557
  constructor(e3, t3, r, n) {
@@ -18576,7 +18624,13 @@ Object name: '${e3}'.`), t3;
18576
18624
  }
18577
18625
  disposeAsync() {
18578
18626
  return n(this, undefined, undefined, function* () {
18579
- this._ctsLoop.cancel(), yield this._loop, this._stream.dispose();
18627
+ this._ctsLoop.cancel();
18628
+ try {
18629
+ yield this._loop;
18630
+ } catch (e3) {
18631
+ e3 instanceof o.OperationCanceledError || o.Trace.log(o.UnknownError.ensureError(e3));
18632
+ }
18633
+ this._stream.dispose();
18580
18634
  });
18581
18635
  }
18582
18636
  static toMessageTypeString(e3) {
@@ -18761,8 +18815,8 @@ ${e3.Data}`);
18761
18815
  static create(e3, t3, r2, n2, o2, i3) {
18762
18816
  return new a(e3, t3, r2, n2, o2, i3);
18763
18817
  }
18764
- constructor(e3, t3, r2, n2, o2, s2) {
18765
- this._observer = o2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
18818
+ constructor(e3, t3, r2, n2, s2, c) {
18819
+ this._observer = s2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
18766
18820
  constructor(e4) {
18767
18821
  this._owner = e4;
18768
18822
  }
@@ -18775,8 +18829,8 @@ ${e3.Data}`);
18775
18829
  complete() {
18776
18830
  this._owner.dispatchNetworkComplete();
18777
18831
  }
18778
- }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(s2)), this._$messageStream.catch((e4) => {
18779
- this.disposeAsync();
18832
+ }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i2.MessageStream.Factory.orDefault(c)), this._$messageStream.catch((e4) => {
18833
+ o.Trace.traceErrorNoThrow(this.disposeAsync());
18780
18834
  });
18781
18835
  }
18782
18836
  disposeAsync() {
@@ -19015,6 +19069,12 @@ ${e3.Data}`);
19015
19069
  complete() {}
19016
19070
  }(this);
19017
19071
  }
19072
+ disposeAsync() {
19073
+ return n(this, undefined, undefined, function* () {
19074
+ const e3 = this._latestChannel;
19075
+ this._latestChannel = undefined, e3 && !e3.isDisposed && (yield e3.disposeAsync());
19076
+ });
19077
+ }
19018
19078
  invokeMethod(e3, t3, r2) {
19019
19079
  return n(this, undefined, undefined, function* () {
19020
19080
  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);
@@ -19169,18 +19229,55 @@ ${e3.Data}`);
19169
19229
  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];
19170
19230
  }
19171
19231
  };
19172
- }, 4156: (e2, t2, r) => {
19232
+ }, 4156: function(e2, t2, r) {
19233
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
19234
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
19235
+ function s2(e4) {
19236
+ try {
19237
+ c(n2.next(e4));
19238
+ } catch (e5) {
19239
+ i3(e5);
19240
+ }
19241
+ }
19242
+ function a(e4) {
19243
+ try {
19244
+ c(n2.throw(e4));
19245
+ } catch (e5) {
19246
+ i3(e5);
19247
+ }
19248
+ }
19249
+ function c(e4) {
19250
+ var t4;
19251
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
19252
+ e5(t4);
19253
+ })).then(s2, a);
19254
+ }
19255
+ c((n2 = n2.apply(e3, t3 || [])).next());
19256
+ });
19257
+ };
19173
19258
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Wire = undefined;
19174
- const n = r(3212), o = r(4104), i2 = r(5188);
19259
+ const o = r(3212), i2 = r(4104), s = r(5188);
19175
19260
  t2.Wire = class {
19176
19261
  invokeMethod(e3, t3, r2) {
19177
19262
  return this.getOrCreateChannelManager(e3.address).invokeMethod(e3.service, t3, r2);
19178
19263
  }
19179
- constructor(e3, t3 = n.RpcChannel, r2 = new n.MessageStream.Factory) {
19180
- this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new i2.Dictionary;
19264
+ constructor(e3, t3 = o.RpcChannel, r2 = new o.MessageStream.Factory) {
19265
+ this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new s.Dictionary;
19181
19266
  }
19182
19267
  getOrCreateChannelManager(e3) {
19183
- return this._map.getOrCreateValue(e3.key, () => new o.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
19268
+ return this._map.getOrCreateValue(e3.key, () => new i2.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
19269
+ }
19270
+ disposeChannel(e3) {
19271
+ return n(this, undefined, undefined, function* () {
19272
+ const t3 = this._map.get(e3);
19273
+ t3 && (this._map.delete(e3), yield t3.disposeAsync());
19274
+ });
19275
+ }
19276
+ disposeAllChannels() {
19277
+ return n(this, undefined, undefined, function* () {
19278
+ const e3 = [...this._map.values()];
19279
+ this._map.clear(), yield Promise.all(e3.map((e4) => e4.disposeAsync()));
19280
+ });
19184
19281
  }
19185
19282
  };
19186
19283
  }, 4104: function(e2, t2, r) {
@@ -20143,7 +20240,7 @@ ${e3.Data}`);
20143
20240
  }
20144
20241
  };
20145
20242
  }, 5144: (e2, t2, r) => {
20146
- 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~]+$/;
20243
+ 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~]+$/;
20147
20244
 
20148
20245
  class A extends n {
20149
20246
  constructor(e3, t3, r2) {
@@ -20266,7 +20363,7 @@ ${e3.Data}`);
20266
20363
  let g2, O2;
20267
20364
  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) {
20268
20365
  for (const e4 of r2) {
20269
- if (typeof e4 != "string" || !C.test(e4) || m2.has(e4))
20366
+ if (typeof e4 != "string" || !T.test(e4) || m2.has(e4))
20270
20367
  throw new SyntaxError("An invalid or duplicated subprotocol was specified");
20271
20368
  m2.add(e4);
20272
20369
  }
@@ -20365,7 +20462,7 @@ ${e3.Data}`);
20365
20462
  const r3 = x(t3).length;
20366
20463
  e3._socket ? e3._sender._bufferedBytes += r3 : e3._bufferedAmount += r3;
20367
20464
  }
20368
- r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${T[e3.readyState]})`));
20465
+ r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${C[e3.readyState]})`));
20369
20466
  }
20370
20467
  function W(e3, t3) {
20371
20468
  const r2 = this[O];
@@ -20411,7 +20508,7 @@ ${e3.Data}`);
20411
20508
  const e3 = this[O];
20412
20509
  this.removeListener("error", J), this.on("error", w), e3 && (e3._readyState = A.CLOSING, this.destroy());
20413
20510
  }
20414
- 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) => {
20511
+ 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) => {
20415
20512
  Object.defineProperty(A.prototype, e3, { enumerable: true });
20416
20513
  }), ["open", "error", "close", "message"].forEach((e3) => {
20417
20514
  Object.defineProperty(A.prototype, `on${e3}`, { enumerable: true, get() {
@@ -27088,11 +27185,13 @@ var require_handle_consent_code_message = __commonJS((exports) => {
27088
27185
  var coreipc_1 = require_coreipc();
27089
27186
 
27090
27187
  class HandleConsentCodeMessage extends coreipc_1.Message {
27091
- constructor(Accept, Domain, ConsentCode) {
27188
+ constructor(Accept, Domain, ConsentCode, SignInUrl) {
27092
27189
  super();
27093
27190
  this.Accept = Accept;
27094
27191
  this.Domain = Domain;
27095
27192
  this.ConsentCode = ConsentCode;
27193
+ this.SignInUrl = SignInUrl;
27194
+ this.RequestTimeout = coreipc_1.TimeSpan.fromSeconds(60);
27096
27195
  }
27097
27196
  }
27098
27197
  exports.HandleConsentCodeMessage = HandleConsentCodeMessage;
@@ -27893,8 +27992,8 @@ var require_robotjs_services2 = __commonJS((exports) => {
27893
27992
  constructor(_consentCodeServices) {
27894
27993
  this._consentCodeServices = _consentCodeServices;
27895
27994
  }
27896
- HandleConsentCode(accept, domain2, consentCode) {
27897
- return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode), coreipc_1.CancellationToken.none);
27995
+ HandleConsentCode(accept, domain2, consentCode, signInUrl) {
27996
+ return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain2, consentCode, signInUrl), coreipc_1.CancellationToken.none);
27898
27997
  }
27899
27998
  IsDomainAllowed(domain2) {
27900
27999
  return this._consentCodeServices.IsDomainAllowed(new server.IsDomainAllowedMessage(domain2), coreipc_1.CancellationToken.none);
@@ -28036,7 +28135,10 @@ var require_robot_agent_proxy2 = __commonJS((exports) => {
28036
28135
  this._robotJsServices = new robotjs_services_1.RobotJsServices(this._consentCodeServices);
28037
28136
  }
28038
28137
  CloseAsync() {
28039
- return __awaiter(this, undefined, undefined, function* () {});
28138
+ return __awaiter(this, undefined, undefined, function* () {
28139
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._settings.pipeName));
28140
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._robotJsSettings.pipeName));
28141
+ });
28040
28142
  }
28041
28143
  get RobotStatusChanged() {
28042
28144
  return this._robotStatusChanged;
@@ -98243,7 +98345,7 @@ var require_coreipc2 = __commonJS2((exports, module) => {
98243
98345
  if (S(n3))
98244
98346
  return r3;
98245
98347
  for (var i3 = function(e6) {
98246
- var t5 = C(e6, o2);
98348
+ var t5 = T(e6, o2);
98247
98349
  if (!k(t5))
98248
98350
  throw new TypeError;
98249
98351
  var r4 = t5.call(e6);
@@ -98306,7 +98408,7 @@ var require_coreipc2 = __commonJS2((exports, module) => {
98306
98408
  case 5:
98307
98409
  return e5;
98308
98410
  }
98309
- var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = C(e5, n2);
98411
+ var r3 = t4 === 3 ? "string" : t4 === 5 ? "number" : "default", o3 = T(e5, n2);
98310
98412
  if (o3 !== undefined) {
98311
98413
  var i3 = o3.call(e5, r3);
98312
98414
  if (j(i3))
@@ -98343,10 +98445,10 @@ var require_coreipc2 = __commonJS2((exports, module) => {
98343
98445
  function k(e5) {
98344
98446
  return typeof e5 == "function";
98345
98447
  }
98346
- function T(e5) {
98448
+ function C(e5) {
98347
98449
  return typeof e5 == "function";
98348
98450
  }
98349
- function C(e5, t4) {
98451
+ function T(e5, t4) {
98350
98452
  var r3 = e5[t4];
98351
98453
  if (r3 != null) {
98352
98454
  if (!k(r3))
@@ -98381,13 +98483,13 @@ var require_coreipc2 = __commonJS2((exports, module) => {
98381
98483
  if (S(r3)) {
98382
98484
  if (!M(e5))
98383
98485
  throw new TypeError;
98384
- if (!T(t4))
98486
+ if (!C(t4))
98385
98487
  throw new TypeError;
98386
98488
  return function(e6, t5) {
98387
98489
  for (var r4 = e6.length - 1;r4 >= 0; --r4) {
98388
98490
  var n4 = (0, e6[r4])(t5);
98389
98491
  if (!S(n4) && !P(n4)) {
98390
- if (!T(n4))
98492
+ if (!C(n4))
98391
98493
  throw new TypeError;
98392
98494
  t5 = n4;
98393
98495
  }
@@ -98597,13 +98699,13 @@ var require_coreipc2 = __commonJS2((exports, module) => {
98597
98699
  Object.defineProperty(t2, "EmptyError", { enumerable: true, get: function() {
98598
98700
  return k.EmptyError;
98599
98701
  } });
98600
- var T = r(7628);
98702
+ var C = r(7628);
98601
98703
  Object.defineProperty(t2, "NotFoundError", { enumerable: true, get: function() {
98602
- return T.NotFoundError;
98704
+ return C.NotFoundError;
98603
98705
  } });
98604
- var C = r(740);
98706
+ var T = r(740);
98605
98707
  Object.defineProperty(t2, "ObjectUnsubscribedError", { enumerable: true, get: function() {
98606
- return C.ObjectUnsubscribedError;
98708
+ return T.ObjectUnsubscribedError;
98607
98709
  } });
98608
98710
  var A = r(6968);
98609
98711
  Object.defineProperty(t2, "SequenceError", { enumerable: true, get: function() {
@@ -98813,13 +98915,13 @@ var require_coreipc2 = __commonJS2((exports, module) => {
98813
98915
  Object.defineProperty(t2, "debounceTime", { enumerable: true, get: function() {
98814
98916
  return ke.debounceTime;
98815
98917
  } });
98816
- var Te = r(6204);
98918
+ var Ce = r(6204);
98817
98919
  Object.defineProperty(t2, "defaultIfEmpty", { enumerable: true, get: function() {
98818
- return Te.defaultIfEmpty;
98920
+ return Ce.defaultIfEmpty;
98819
98921
  } });
98820
- var Ce = r(7752);
98922
+ var Te = r(7752);
98821
98923
  Object.defineProperty(t2, "delay", { enumerable: true, get: function() {
98822
- return Ce.delay;
98924
+ return Te.delay;
98823
98925
  } });
98824
98926
  var Ae = r(7532);
98825
98927
  Object.defineProperty(t2, "delayWhen", { enumerable: true, get: function() {
@@ -99029,13 +99131,13 @@ var require_coreipc2 = __commonJS2((exports, module) => {
99029
99131
  Object.defineProperty(t2, "share", { enumerable: true, get: function() {
99030
99132
  return kt.share;
99031
99133
  } });
99032
- var Tt = r(4980);
99134
+ var Ct = r(4980);
99033
99135
  Object.defineProperty(t2, "shareReplay", { enumerable: true, get: function() {
99034
- return Tt.shareReplay;
99136
+ return Ct.shareReplay;
99035
99137
  } });
99036
- var Ct = r(1400);
99138
+ var Tt = r(1400);
99037
99139
  Object.defineProperty(t2, "single", { enumerable: true, get: function() {
99038
- return Ct.single;
99140
+ return Tt.single;
99039
99141
  } });
99040
99142
  var At = r(7516);
99041
99143
  Object.defineProperty(t2, "skip", { enumerable: true, get: function() {
@@ -104735,12 +104837,24 @@ var require_coreipc2 = __commonJS2((exports, module) => {
104735
104837
  static create() {
104736
104838
  return new r;
104737
104839
  }
104840
+ get(e3) {
104841
+ return this._map.get(e3);
104842
+ }
104738
104843
  getOrCreateValue(e3, t3) {
104739
104844
  if (this._map.has(e3))
104740
104845
  return this._map.get(e3);
104741
104846
  let r2 = t3(e3);
104742
104847
  return this._map.set(e3, r2), r2;
104743
104848
  }
104849
+ delete(e3) {
104850
+ return this._map.delete(e3);
104851
+ }
104852
+ values() {
104853
+ return this._map.values();
104854
+ }
104855
+ clear() {
104856
+ this._map.clear();
104857
+ }
104744
104858
  }
104745
104859
  t2.Dictionary = r;
104746
104860
  }, 4444: function(e2, t2, r) {
@@ -106113,25 +106227,61 @@ Object name: '${e3}'.`), t3;
106113
106227
  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);
106114
106228
  }, 1816: (e2, t2) => {
106115
106229
  Object.defineProperty(t2, "__esModule", { value: true });
106116
- }, 5284: (e2, t2, r) => {
106230
+ }, 5284: function(e2, t2, r) {
106231
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
106232
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
106233
+ function s2(e4) {
106234
+ try {
106235
+ c2(n2.next(e4));
106236
+ } catch (e5) {
106237
+ i3(e5);
106238
+ }
106239
+ }
106240
+ function a2(e4) {
106241
+ try {
106242
+ c2(n2.throw(e4));
106243
+ } catch (e5) {
106244
+ i3(e5);
106245
+ }
106246
+ }
106247
+ function c2(e4) {
106248
+ var t4;
106249
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
106250
+ e5(t4);
106251
+ })).then(s2, a2);
106252
+ }
106253
+ c2((n2 = n2.apply(e3, t3 || [])).next());
106254
+ });
106255
+ };
106117
106256
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcBaseImpl = t2.IpcCoreBase = undefined;
106118
- const n = r(5188), o = r(3212), i22 = r(4104), s = r(2760), a = r(9100);
106257
+ const o = r(5188), i22 = r(3212), s = r(4104), a = r(2760), c = r(9100);
106119
106258
  t2.IpcCoreBase = class {
106120
106259
  constructor() {
106121
106260
  this._db = new Map;
106122
106261
  }
106123
106262
  };
106124
106263
 
106125
- class c {
106264
+ class u {
106126
106265
  constructor(e3, t3, r2) {
106127
- 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;
106266
+ 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;
106128
106267
  }
106129
106268
  getAddress(e3) {
106130
106269
  const t3 = new this.addressBuilder;
106131
106270
  return e3(t3), t3.assertAddress();
106132
106271
  }
106272
+ disposeChannel(e3) {
106273
+ return n(this, undefined, undefined, function* () {
106274
+ const t3 = this.getAddress(e3);
106275
+ yield this.wire.disposeChannel(t3.key);
106276
+ });
106277
+ }
106278
+ disposeAllChannels() {
106279
+ return n(this, undefined, undefined, function* () {
106280
+ yield this.wire.disposeAllChannels();
106281
+ });
106282
+ }
106133
106283
  }
106134
- t2.IpcBaseImpl = c, function(e3) {
106284
+ t2.IpcBaseImpl = u, function(e3) {
106135
106285
  e3.ProxySource = class {
106136
106286
  constructor(e4) {
106137
106287
  this._serviceProvider = e4;
@@ -106147,7 +106297,7 @@ Object name: '${e3}'.`), t3;
106147
106297
  this._serviceProvider = e4, this._address = t4;
106148
106298
  }
106149
106299
  withService(e4) {
106150
- const t4 = new i22.ProxyId(e4, this._address);
106300
+ const t4 = new s.ProxyId(e4, this._address);
106151
106301
  return this._serviceProvider.proxySource.resolve(t4);
106152
106302
  }
106153
106303
  }
@@ -106169,27 +106319,27 @@ Object name: '${e3}'.`), t3;
106169
106319
  this._ipc = e4, this._address = t4;
106170
106320
  }
106171
106321
  setConnectHelper(e4) {
106172
- (0, n.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
106322
+ (0, o.assertArgument)({ value: e4 }, "function"), this._ipc.configStore.setConnectHelper(this._address, e4);
106173
106323
  }
106174
106324
  forAnyService() {
106175
- return new o2(this._ipc, this._address);
106325
+ return new n2(this._ipc, this._address);
106176
106326
  }
106177
106327
  forService(e4) {
106178
- return new o2(this._ipc, this._address, e4);
106328
+ return new n2(this._ipc, this._address, e4);
106179
106329
  }
106180
106330
  }
106181
106331
  e3.ConfigurationWithAddress = r2;
106182
106332
 
106183
- class o2 {
106333
+ class n2 {
106184
106334
  constructor(e4, t4, r3) {
106185
106335
  this._ipc = e4, this._address = t4, this._service = r3;
106186
106336
  }
106187
106337
  setRequestTimeout(e4) {
106188
- (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);
106338
+ (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);
106189
106339
  }
106190
106340
  }
106191
- e3.ConfigurationWithAddressService = o2;
106192
- }(c = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
106341
+ e3.ConfigurationWithAddressService = n2;
106342
+ }(u = t2.IpcBaseImpl || (t2.IpcBaseImpl = {}));
106193
106343
  }, 3552: (e2, t2) => {
106194
106344
  Object.defineProperty(t2, "__esModule", { value: true }), t2.IpcError = undefined, t2.IpcError = class {
106195
106345
  constructor(e3, t3, r, n) {
@@ -106262,7 +106412,13 @@ Object name: '${e3}'.`), t3;
106262
106412
  }
106263
106413
  disposeAsync() {
106264
106414
  return n(this, undefined, undefined, function* () {
106265
- this._ctsLoop.cancel(), yield this._loop, this._stream.dispose();
106415
+ this._ctsLoop.cancel();
106416
+ try {
106417
+ yield this._loop;
106418
+ } catch (e3) {
106419
+ e3 instanceof o.OperationCanceledError || o.Trace.log(o.UnknownError.ensureError(e3));
106420
+ }
106421
+ this._stream.dispose();
106266
106422
  });
106267
106423
  }
106268
106424
  static toMessageTypeString(e3) {
@@ -106447,8 +106603,8 @@ ${e3.Data}`);
106447
106603
  static create(e3, t3, r2, n2, o2, i3) {
106448
106604
  return new a(e3, t3, r2, n2, o2, i3);
106449
106605
  }
106450
- constructor(e3, t3, r2, n2, o2, s2) {
106451
- this._observer = o2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
106606
+ constructor(e3, t3, r2, n2, s2, c) {
106607
+ this._observer = s2, this._isDisposed = false, this._outgoingCalls = new a.OutgoingCallTable, this._networkObserver = new class {
106452
106608
  constructor(e4) {
106453
106609
  this._owner = e4;
106454
106610
  }
@@ -106461,8 +106617,8 @@ ${e3.Data}`);
106461
106617
  complete() {
106462
106618
  this._owner.dispatchNetworkComplete();
106463
106619
  }
106464
- }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i22.MessageStream.Factory.orDefault(s2)), this._$messageStream.catch((e4) => {
106465
- this.disposeAsync();
106620
+ }(this), this._$messageStream = a.createMessageStream(e3, t3, r2, n2, this._networkObserver, i22.MessageStream.Factory.orDefault(c)), this._$messageStream.catch((e4) => {
106621
+ o.Trace.traceErrorNoThrow(this.disposeAsync());
106466
106622
  });
106467
106623
  }
106468
106624
  disposeAsync() {
@@ -106701,6 +106857,12 @@ ${e3.Data}`);
106701
106857
  complete() {}
106702
106858
  }(this);
106703
106859
  }
106860
+ disposeAsync() {
106861
+ return n(this, undefined, undefined, function* () {
106862
+ const e3 = this._latestChannel;
106863
+ this._latestChannel = undefined, e3 && !e3.isDisposed && (yield e3.disposeAsync());
106864
+ });
106865
+ }
106704
106866
  invokeMethod(e3, t3, r2) {
106705
106867
  return n(this, undefined, undefined, function* () {
106706
106868
  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);
@@ -106855,18 +107017,55 @@ ${e3.Data}`);
106855
107017
  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];
106856
107018
  }
106857
107019
  };
106858
- }, 4156: (e2, t2, r) => {
107020
+ }, 4156: function(e2, t2, r) {
107021
+ var n = this && this.__awaiter || function(e3, t3, r2, n2) {
107022
+ return new (r2 || (r2 = Promise))(function(o2, i3) {
107023
+ function s2(e4) {
107024
+ try {
107025
+ c(n2.next(e4));
107026
+ } catch (e5) {
107027
+ i3(e5);
107028
+ }
107029
+ }
107030
+ function a(e4) {
107031
+ try {
107032
+ c(n2.throw(e4));
107033
+ } catch (e5) {
107034
+ i3(e5);
107035
+ }
107036
+ }
107037
+ function c(e4) {
107038
+ var t4;
107039
+ e4.done ? o2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
107040
+ e5(t4);
107041
+ })).then(s2, a);
107042
+ }
107043
+ c((n2 = n2.apply(e3, t3 || [])).next());
107044
+ });
107045
+ };
106859
107046
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Wire = undefined;
106860
- const n = r(3212), o = r(4104), i22 = r(5188);
107047
+ const o = r(3212), i22 = r(4104), s = r(5188);
106861
107048
  t2.Wire = class {
106862
107049
  invokeMethod(e3, t3, r2) {
106863
107050
  return this.getOrCreateChannelManager(e3.address).invokeMethod(e3.service, t3, r2);
106864
107051
  }
106865
- constructor(e3, t3 = n.RpcChannel, r2 = new n.MessageStream.Factory) {
106866
- this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new i22.Dictionary;
107052
+ constructor(e3, t3 = o.RpcChannel, r2 = new o.MessageStream.Factory) {
107053
+ this._sp = e3, this._rpcChannelFactory = t3, this._messageStreamFactory = r2, this._map = new s.Dictionary;
106867
107054
  }
106868
107055
  getOrCreateChannelManager(e3) {
106869
- return this._map.getOrCreateValue(e3.key, () => new o.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
107056
+ return this._map.getOrCreateValue(e3.key, () => new i22.ChannelManager(this._sp, e3, this._rpcChannelFactory, this._messageStreamFactory));
107057
+ }
107058
+ disposeChannel(e3) {
107059
+ return n(this, undefined, undefined, function* () {
107060
+ const t3 = this._map.get(e3);
107061
+ t3 && (this._map.delete(e3), yield t3.disposeAsync());
107062
+ });
107063
+ }
107064
+ disposeAllChannels() {
107065
+ return n(this, undefined, undefined, function* () {
107066
+ const e3 = [...this._map.values()];
107067
+ this._map.clear(), yield Promise.all(e3.map((e4) => e4.disposeAsync()));
107068
+ });
106870
107069
  }
106871
107070
  };
106872
107071
  }, 4104: function(e2, t2, r) {
@@ -107829,7 +108028,7 @@ ${e3.Data}`);
107829
108028
  }
107830
108029
  };
107831
108030
  }, 5144: (e2, t2, r) => {
107832
- 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~]+$/;
108031
+ 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~]+$/;
107833
108032
 
107834
108033
  class A extends n {
107835
108034
  constructor(e3, t3, r2) {
@@ -107952,7 +108151,7 @@ ${e3.Data}`);
107952
108151
  let g2, O2;
107953
108152
  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) {
107954
108153
  for (const e4 of r2) {
107955
- if (typeof e4 != "string" || !C.test(e4) || m2.has(e4))
108154
+ if (typeof e4 != "string" || !T.test(e4) || m2.has(e4))
107956
108155
  throw new SyntaxError("An invalid or duplicated subprotocol was specified");
107957
108156
  m2.add(e4);
107958
108157
  }
@@ -108051,7 +108250,7 @@ ${e3.Data}`);
108051
108250
  const r3 = x(t3).length;
108052
108251
  e3._socket ? e3._sender._bufferedBytes += r3 : e3._bufferedAmount += r3;
108053
108252
  }
108054
- r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${T[e3.readyState]})`));
108253
+ r2 && r2(new Error(`WebSocket is not open: readyState ${e3.readyState} (${C[e3.readyState]})`));
108055
108254
  }
108056
108255
  function W(e3, t3) {
108057
108256
  const r2 = this[O];
@@ -108097,7 +108296,7 @@ ${e3.Data}`);
108097
108296
  const e3 = this[O];
108098
108297
  this.removeListener("error", J), this.on("error", w), e3 && (e3._readyState = A.CLOSING, this.destroy());
108099
108298
  }
108100
- 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) => {
108299
+ 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) => {
108101
108300
  Object.defineProperty(A.prototype, e3, { enumerable: true });
108102
108301
  }), ["open", "error", "close", "message"].forEach((e3) => {
108103
108302
  Object.defineProperty(A.prototype, `on${e3}`, { enumerable: true, get() {
@@ -114414,11 +114613,13 @@ var require_handle_consent_code_message2 = __commonJS2((exports) => {
114414
114613
  var coreipc_1 = require_coreipc2();
114415
114614
 
114416
114615
  class HandleConsentCodeMessage extends coreipc_1.Message {
114417
- constructor(Accept, Domain, ConsentCode) {
114616
+ constructor(Accept, Domain, ConsentCode, SignInUrl) {
114418
114617
  super();
114419
114618
  this.Accept = Accept;
114420
114619
  this.Domain = Domain;
114421
114620
  this.ConsentCode = ConsentCode;
114621
+ this.SignInUrl = SignInUrl;
114622
+ this.RequestTimeout = coreipc_1.TimeSpan.fromSeconds(60);
114422
114623
  }
114423
114624
  }
114424
114625
  exports.HandleConsentCodeMessage = HandleConsentCodeMessage;
@@ -115191,8 +115392,8 @@ var require_robotjs_services22 = __commonJS2((exports) => {
115191
115392
  constructor(_consentCodeServices) {
115192
115393
  this._consentCodeServices = _consentCodeServices;
115193
115394
  }
115194
- HandleConsentCode(accept, domain22, consentCode) {
115195
- return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain22, consentCode), coreipc_1.CancellationToken.none);
115395
+ HandleConsentCode(accept, domain22, consentCode, signInUrl) {
115396
+ return this._consentCodeServices.HandleConsentCode(new server.HandleConsentCodeMessage(accept, domain22, consentCode, signInUrl), coreipc_1.CancellationToken.none);
115196
115397
  }
115197
115398
  IsDomainAllowed(domain22) {
115198
115399
  return this._consentCodeServices.IsDomainAllowed(new server.IsDomainAllowedMessage(domain22), coreipc_1.CancellationToken.none);
@@ -115332,7 +115533,10 @@ var require_robot_agent_proxy22 = __commonJS2((exports) => {
115332
115533
  this._robotJsServices = new robotjs_services_1.RobotJsServices(this._consentCodeServices);
115333
115534
  }
115334
115535
  CloseAsync() {
115335
- return __awaiter(this, undefined, undefined, function* () {});
115536
+ return __awaiter(this, undefined, undefined, function* () {
115537
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._settings.pipeName));
115538
+ yield coreipc_1.ipc.disposeChannel(coreipc_1.ipc.namedPipe(this._robotJsSettings.pipeName));
115539
+ });
115336
115540
  }
115337
115541
  get RobotStatusChanged() {
115338
115542
  return this._robotStatusChanged;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-sdk",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "SDK for the UiPath Maestro (PIMS) API — process instance management.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,15 +35,15 @@
35
35
  "lint": "biome check ."
36
36
  },
37
37
  "devDependencies": {
38
- "@uipath/auth": "0.9.0",
39
- "@uipath/common": "0.9.0",
40
- "@uipath/filesystem": "0.9.0",
38
+ "@uipath/auth": "0.9.1",
39
+ "@uipath/common": "0.9.1",
40
+ "@uipath/filesystem": "0.9.1",
41
41
  "@uipath/flow-core": "^0.2.0",
42
- "@uipath/integrationservice-sdk": "1.0.1",
43
- "@uipath/orchestrator-sdk": "0.9.0",
42
+ "@uipath/integrationservice-sdk": "0.9.1",
43
+ "@uipath/orchestrator-sdk": "0.9.1",
44
44
  "@types/node": "^25.5.0",
45
45
  "commander": "^14.0.3",
46
46
  "typescript": "^5"
47
47
  },
48
- "gitHead": "3f1b4d8e9f910be81e4cab956537f21dbd5d63ac"
48
+ "gitHead": "e8da2857e37a9495c4907cd39f47c9d6ed1a5566"
49
49
  }