@milaboratories/pl-client 2.8.2 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,46 +1,46 @@
1
- var Ji = Object.defineProperty;
2
- var zi = (l, e, t) => e in l ? Ji(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t;
3
- var y = (l, e, t) => zi(l, typeof e != "symbol" ? e + "" : e, t);
4
- import { notEmpty as I, Aborted as pi, assertNever as yi, createRetryState as wi, nextRetryStateOrError as mi } from "@milaboratories/ts-helpers";
5
- import { ServiceType as Hi, stackIntercept as g } from "@protobuf-ts/runtime-rpc";
6
- import { MessageType as h, PbLong as F, typeofJsonValue as _n, reflectionMergePartial as p, UnknownFieldHandler as f, WireType as d, jsonWriteOptions as Yi, isJsonObject as jn } from "@protobuf-ts/runtime";
7
- import { compressionAlgorithms as Zi, ChannelCredentials as Vn, InterceptingCall as Mn, status as Gn } from "@grpc/grpc-js";
8
- import { GrpcTransport as Xi } from "@protobuf-ts/grpc-transport";
9
- import Qi from "denque";
10
- import { defaultHttpDispatcher as er } from "@milaboratories/pl-http";
11
- import { createHash as gi, randomUUID as ki } from "node:crypto";
1
+ var zi = Object.defineProperty;
2
+ var Hi = (l, e, t) => e in l ? zi(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t;
3
+ var y = (l, e, t) => Hi(l, typeof e != "symbol" ? e + "" : e, t);
4
+ import { cachedDeserialize as pi, notEmpty as T, Aborted as yi, assertNever as wi, deepFreeze as jn, createRetryState as mi, nextRetryStateOrError as gi } from "@milaboratories/ts-helpers";
5
+ import { ServiceType as Yi, stackIntercept as g } from "@protobuf-ts/runtime-rpc";
6
+ import { MessageType as h, PbLong as F, typeofJsonValue as _n, reflectionMergePartial as p, UnknownFieldHandler as f, WireType as d, jsonWriteOptions as Zi, isJsonObject as Vn } from "@protobuf-ts/runtime";
7
+ import { compressionAlgorithms as Xi, ChannelCredentials as Mn, InterceptingCall as Gn, status as Jn } from "@grpc/grpc-js";
8
+ import { GrpcTransport as Qi } from "@protobuf-ts/grpc-transport";
9
+ import er from "denque";
10
+ import { defaultHttpDispatcher as tr } from "@milaboratories/pl-http";
11
+ import { createHash as ki, randomUUID as bi } from "node:crypto";
12
12
  import * as Tn from "node:timers/promises";
13
- import { LRUCache as tr } from "lru-cache";
14
- import * as $ from "node:fs";
13
+ import { LRUCache as nr } from "lru-cache";
14
+ import * as U from "node:fs";
15
15
  import E from "node:fs";
16
- import nr from "canonicalize";
17
- import ir from "yaml";
18
- import * as bi from "node:os";
16
+ import ir from "canonicalize";
17
+ import rr from "yaml";
18
+ import * as Ti from "node:os";
19
19
  import * as Ln from "node:path";
20
- const W = 0n;
21
- function U(l) {
22
- return l === W;
20
+ const S = 0n;
21
+ function B(l) {
22
+ return l === S;
23
23
  }
24
- function S(l) {
25
- return l !== W;
24
+ function C(l) {
25
+ return l !== S;
26
26
  }
27
27
  function Rn(l) {
28
- if (!S(l)) throw new Error("null resource id");
28
+ if (!C(l)) throw new Error("null resource id");
29
29
  return l;
30
30
  }
31
- function Yu(l) {
31
+ function Xu(l) {
32
32
  return l !== 0n;
33
33
  }
34
- function Zu(l, e) {
34
+ function Qu(l, e) {
35
35
  return { name: l, version: e };
36
36
  }
37
- function Xu(l) {
37
+ function ef(l) {
38
38
  return `${l.name}:${l.version}`;
39
39
  }
40
- function Qu(l, e) {
40
+ function tf(l, e) {
41
41
  return l.name === e.name && l.version === e.version;
42
42
  }
43
- function Jn(l) {
43
+ function sr(l) {
44
44
  const {
45
45
  id: e,
46
46
  originalResourceId: t,
@@ -66,57 +66,57 @@ function Jn(l) {
66
66
  final: u
67
67
  };
68
68
  }
69
- const ef = (l) => Buffer.from(JSON.stringify(l)), tf = (l) => JSON.parse(I(l.data).toString());
69
+ const nf = (l) => Buffer.from(JSON.stringify(l)), rf = (l) => pi(T(l.data));
70
70
  function zn(l, e) {
71
- return I(l.fields.find((t) => t.name === e));
71
+ return T(l.fields.find((t) => t.name === e));
72
72
  }
73
- const An = 1n << 63n, Ti = 1n << 62n, rr = 0x3fffffffffffffffn, Ri = 24n, Ii = 16777215, Bn = 4294967295, sr = BigInt(Bn), or = BigInt(Ii);
73
+ const An = 1n << 63n, Ri = 1n << 62n, or = 0x3fffffffffffffffn, Ii = 24n, Pi = 16777215, Bn = 4294967295, ar = BigInt(Bn), lr = BigInt(Pi);
74
74
  function Hn(l) {
75
75
  return (l & An) !== 0n;
76
76
  }
77
- function O(l) {
78
- return (l & Ti) !== 0n;
77
+ function x(l) {
78
+ return (l & Ri) !== 0n;
79
79
  }
80
- function Pi(l, e, t) {
81
- if (e > Ii || t > Bn || e < 0 || t <= 0)
80
+ function Ni(l, e, t) {
81
+ if (e > Pi || t > Bn || e < 0 || t <= 0)
82
82
  throw Error("wrong local id or tx id");
83
- return (l ? An : 0n) | Ti | BigInt(e) | BigInt(t) << Ri;
83
+ return (l ? An : 0n) | Ri | BigInt(e) | BigInt(t) << Ii;
84
84
  }
85
- function ar(l, e) {
85
+ function cr(l, e) {
86
86
  return (l ? An : 0n) | e;
87
87
  }
88
- function Ni(l) {
89
- return Number(l >> Ri & sr);
88
+ function _i(l) {
89
+ return Number(l >> Ii & ar);
90
90
  }
91
- function nf(l, e) {
92
- if (O(l) && Ni(l) !== e)
91
+ function sf(l, e) {
92
+ if (x(l) && _i(l) !== e)
93
93
  throw Error(
94
94
  "local id from another transaction, globalize id before leaking it from the transaction"
95
95
  );
96
96
  }
97
97
  function we(l) {
98
- return U(l) ? "XX:0x0" : O(l) ? (Hn(l) ? "R" : "N") + "L:0x" + (or & l).toString(16) + "[0x" + Ni(l).toString(16) + "]" : (Hn(l) ? "R" : "N") + "G:0x" + (rr & l).toString(16);
98
+ return B(l) ? "XX:0x0" : x(l) ? (Hn(l) ? "R" : "N") + "L:0x" + (lr & l).toString(16) + "[0x" + _i(l).toString(16) + "]" : (Hn(l) ? "R" : "N") + "G:0x" + (or & l).toString(16);
99
99
  }
100
- const lr = /^(?:(?<xx>XX)|(?<rn>[XRN])(?<lg>[XLG])):0x(?<rid>[0-9a-fA-F]+)(?:\[0x(?<txid>[0-9a-fA-F]+)])?$/;
101
- function rf(l) {
102
- const e = l.match(lr);
100
+ const ur = /^(?:(?<xx>XX)|(?<rn>[XRN])(?<lg>[XLG])):0x(?<rid>[0-9a-fA-F]+)(?:\[0x(?<txid>[0-9a-fA-F]+)])?$/;
101
+ function of(l) {
102
+ const e = l.match(ur);
103
103
  if (e === null) return;
104
104
  const { xx: t, rn: i, lg: n, rid: r, txid: c } = e.groups;
105
- return t ? W : n === "L" ? Pi(i === "R", Number.parseInt(r, 16), Number.parseInt(c, 16)) : ar(i === "R", BigInt("0x" + r));
105
+ return t ? S : n === "L" ? Ni(i === "R", Number.parseInt(r, 16), Number.parseInt(c, 16)) : cr(i === "R", BigInt("0x" + r));
106
106
  }
107
- function sf(l) {
108
- if (O(l))
107
+ function af(l) {
108
+ if (x(l))
109
109
  throw new Error(`Local resource id: ${we(l)}`);
110
- if (U(l)) throw new Error("Null resource id.");
110
+ if (B(l)) throw new Error("Null resource id.");
111
111
  return l;
112
112
  }
113
- function of(l) {
113
+ function lf(l) {
114
114
  return JSON.stringify(
115
115
  l,
116
116
  (e, t) => typeof t == "bigint" ? we(t) : t
117
117
  );
118
118
  }
119
- class cr extends h {
119
+ class fr extends h {
120
120
  constructor() {
121
121
  super("google.protobuf.Duration", [
122
122
  {
@@ -202,9 +202,9 @@ class cr extends h {
202
202
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
203
203
  }
204
204
  }
205
- const P = new cr();
205
+ const P = new fr();
206
206
  var k = /* @__PURE__ */ ((l) => (l[l.INVALID = 0] = "INVALID", l[l.INPUT = 1] = "INPUT", l[l.OUTPUT = 2] = "OUTPUT", l[l.SERVICE = 6] = "SERVICE", l[l.ONE_TIME_WRITABLE = 4] = "ONE_TIME_WRITABLE", l[l.DYNAMIC = 3] = "DYNAMIC", l[l.MULTIPLE_TIMES_WRITABLE = 5] = "MULTIPLE_TIMES_WRITABLE", l))(k || {});
207
- class ur extends h {
207
+ class dr extends h {
208
208
  constructor() {
209
209
  super("MiLaboratories.PL.Base.ResourceType", [
210
210
  {
@@ -256,8 +256,8 @@ class ur extends h {
256
256
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
257
257
  }
258
258
  }
259
- const w = new ur();
260
- class fr extends h {
259
+ const w = new dr();
260
+ class hr extends h {
261
261
  constructor() {
262
262
  super("MiLaboratories.PL.Base.FieldRef", [
263
263
  {
@@ -310,8 +310,8 @@ class fr extends h {
310
310
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
311
311
  }
312
312
  }
313
- const m = new fr();
314
- class dr extends h {
313
+ const m = new hr();
314
+ class pr extends h {
315
315
  constructor() {
316
316
  super("MiLaboratories.PL.RTypes.Number", [
317
317
  {
@@ -433,8 +433,8 @@ class dr extends h {
433
433
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
434
434
  }
435
435
  }
436
- new dr();
437
- class hr extends h {
436
+ new pr();
437
+ class yr extends h {
438
438
  constructor() {
439
439
  super("MiLaboratories.PL.RTypes.ControllerSettings", [
440
440
  {
@@ -475,8 +475,8 @@ class hr extends h {
475
475
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
476
476
  }
477
477
  }
478
- new hr();
479
- class pr extends h {
478
+ new yr();
479
+ class wr extends h {
480
480
  constructor() {
481
481
  super("MiLaboratories.PL.RTypes.SubscriptionSettings", [
482
482
  {
@@ -529,8 +529,8 @@ class pr extends h {
529
529
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
530
530
  }
531
531
  }
532
- new pr();
533
- class yr extends h {
532
+ new wr();
533
+ class mr extends h {
534
534
  constructor() {
535
535
  super("MiLaboratories.PL.RTypes.NotificationFilter", [
536
536
  { no: 1, name: "resource_type", kind: "message", oneof: "resourceFilter", T: () => w },
@@ -594,8 +594,8 @@ class yr extends h {
594
594
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
595
595
  }
596
596
  }
597
- const L = new yr();
598
- class wr extends h {
597
+ const L = new mr();
598
+ class gr extends h {
599
599
  constructor() {
600
600
  super("MiLaboratories.PL.RTypes.NotificationFilter.EventFilter", [
601
601
  {
@@ -817,8 +817,8 @@ class wr extends h {
817
817
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
818
818
  }
819
819
  }
820
- const ke = new wr();
821
- class mr extends h {
820
+ const ke = new gr();
821
+ class kr extends h {
822
822
  constructor() {
823
823
  super("MiLaboratories.PL.RTypes.NotificationFilter.Payload", [
824
824
  { no: 1, name: "values", kind: "map", K: 9, V: {
@@ -875,8 +875,8 @@ class mr extends h {
875
875
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
876
876
  }
877
877
  }
878
- const q = new mr();
879
- class gr extends h {
878
+ const q = new kr();
879
+ class br extends h {
880
880
  constructor() {
881
881
  super("google.protobuf.Timestamp", [
882
882
  {
@@ -983,9 +983,9 @@ class gr extends h {
983
983
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
984
984
  }
985
985
  }
986
- const C = new gr();
986
+ const D = new br();
987
987
  var he = /* @__PURE__ */ ((l) => (l[l.INVALID = 0] = "INVALID", l[l.STRUCTURAL = 1] = "STRUCTURAL", l[l.VALUE = 2] = "VALUE", l))(he || {}), H = /* @__PURE__ */ ((l) => (l[l.INVALID = 0] = "INVALID", l[l.EMPTY = 1] = "EMPTY", l[l.ASSIGNED = 2] = "ASSIGNED", l[l.RESOLVED = 3] = "RESOLVED", l))(H || {});
988
- class kr extends h {
988
+ class Tr extends h {
989
989
  constructor() {
990
990
  super("MiLaboratories.PL.API.Tx", [
991
991
  {
@@ -1038,8 +1038,8 @@ class kr extends h {
1038
1038
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
1039
1039
  }
1040
1040
  }
1041
- const be = new kr();
1042
- class br extends h {
1041
+ const be = new Tr();
1042
+ class Rr extends h {
1043
1043
  constructor() {
1044
1044
  super("MiLaboratories.PL.API.Resource", [
1045
1045
  {
@@ -1112,8 +1112,8 @@ class br extends h {
1112
1112
  L: 0
1113
1113
  /*LongType.BIGINT*/
1114
1114
  },
1115
- { no: 12, name: "created_time", kind: "message", T: () => C },
1116
- { no: 13, name: "deleted_time", kind: "message", T: () => C }
1115
+ { no: 12, name: "created_time", kind: "message", T: () => D },
1116
+ { no: 13, name: "deleted_time", kind: "message", T: () => D }
1117
1117
  ]);
1118
1118
  }
1119
1119
  create(e) {
@@ -1179,11 +1179,11 @@ class br extends h {
1179
1179
  break;
1180
1180
  case /* google.protobuf.Timestamp created_time */
1181
1181
  12:
1182
- r.createdTime = C.internalBinaryRead(e, e.uint32(), i, r.createdTime);
1182
+ r.createdTime = D.internalBinaryRead(e, e.uint32(), i, r.createdTime);
1183
1183
  break;
1184
1184
  case /* google.protobuf.Timestamp deleted_time */
1185
1185
  13:
1186
- r.deletedTime = C.internalBinaryRead(e, e.uint32(), i, r.deletedTime);
1186
+ r.deletedTime = D.internalBinaryRead(e, e.uint32(), i, r.deletedTime);
1187
1187
  break;
1188
1188
  default:
1189
1189
  let s = i.readUnknownField;
@@ -1199,13 +1199,13 @@ class br extends h {
1199
1199
  e.id !== 0n && t.tag(2, d.Varint).uint64(e.id), e.kind !== 0 && t.tag(3, d.Varint).int32(e.kind), e.type && w.internalBinaryWrite(e.type, t.tag(4, d.LengthDelimited).fork(), i).join(), e.data.length && t.tag(5, d.LengthDelimited).bytes(e.data), e.features && K.internalBinaryWrite(e.features, t.tag(16, d.LengthDelimited).fork(), i).join();
1200
1200
  for (let r = 0; r < e.fields.length; r++)
1201
1201
  b.internalBinaryWrite(e.fields[r], t.tag(6, d.LengthDelimited).fork(), i).join();
1202
- e.hasErrors !== !1 && t.tag(7, d.Varint).bool(e.hasErrors), e.inputsLocked !== !1 && t.tag(8, d.Varint).bool(e.inputsLocked), e.outputsLocked !== !1 && t.tag(9, d.Varint).bool(e.outputsLocked), e.resourceReady !== !1 && t.tag(14, d.Varint).bool(e.resourceReady), e.isFinal !== !1 && t.tag(15, d.Varint).bool(e.isFinal), e.originalResourceId !== 0n && t.tag(10, d.Varint).uint64(e.originalResourceId), e.parentResourceId !== 0n && t.tag(11, d.Varint).uint64(e.parentResourceId), e.createdTime && C.internalBinaryWrite(e.createdTime, t.tag(12, d.LengthDelimited).fork(), i).join(), e.deletedTime && C.internalBinaryWrite(e.deletedTime, t.tag(13, d.LengthDelimited).fork(), i).join();
1202
+ e.hasErrors !== !1 && t.tag(7, d.Varint).bool(e.hasErrors), e.inputsLocked !== !1 && t.tag(8, d.Varint).bool(e.inputsLocked), e.outputsLocked !== !1 && t.tag(9, d.Varint).bool(e.outputsLocked), e.resourceReady !== !1 && t.tag(14, d.Varint).bool(e.resourceReady), e.isFinal !== !1 && t.tag(15, d.Varint).bool(e.isFinal), e.originalResourceId !== 0n && t.tag(10, d.Varint).uint64(e.originalResourceId), e.parentResourceId !== 0n && t.tag(11, d.Varint).uint64(e.parentResourceId), e.createdTime && D.internalBinaryWrite(e.createdTime, t.tag(12, d.LengthDelimited).fork(), i).join(), e.deletedTime && D.internalBinaryWrite(e.deletedTime, t.tag(13, d.LengthDelimited).fork(), i).join();
1203
1203
  let n = i.writeUnknownFields;
1204
1204
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
1205
1205
  }
1206
1206
  }
1207
- const T = new br();
1208
- class Tr extends h {
1207
+ const R = new Rr();
1208
+ class Ir extends h {
1209
1209
  constructor() {
1210
1210
  super("MiLaboratories.PL.API.Resource.Features", [
1211
1211
  {
@@ -1246,8 +1246,8 @@ class Tr extends h {
1246
1246
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
1247
1247
  }
1248
1248
  }
1249
- const K = new Tr();
1250
- class Rr extends h {
1249
+ const K = new Ir();
1250
+ class Pr extends h {
1251
1251
  constructor() {
1252
1252
  super("MiLaboratories.PL.API.Field", [
1253
1253
  { no: 1, name: "id", kind: "message", T: () => m },
@@ -1332,8 +1332,8 @@ class Rr extends h {
1332
1332
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
1333
1333
  }
1334
1334
  }
1335
- const b = new Rr();
1336
- class Ir extends h {
1335
+ const b = new Pr();
1336
+ class Nr extends h {
1337
1337
  constructor() {
1338
1338
  super("MiLaboratories.PL.API.Notification", [
1339
1339
  {
@@ -1455,8 +1455,8 @@ class Ir extends h {
1455
1455
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
1456
1456
  }
1457
1457
  }
1458
- const j = new Ir();
1459
- class Pr extends h {
1458
+ const j = new Nr();
1459
+ class _r extends h {
1460
1460
  constructor() {
1461
1461
  super("MiLaboratories.PL.API.Notification.Events", [
1462
1462
  {
@@ -1651,8 +1651,8 @@ class Pr extends h {
1651
1651
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
1652
1652
  }
1653
1653
  }
1654
- const Te = new Pr();
1655
- class Nr extends h {
1654
+ const Te = new _r();
1655
+ class Lr extends h {
1656
1656
  constructor() {
1657
1657
  super("MiLaboratories.PL.API.Notification.FieldChange", [
1658
1658
  { no: 1, name: "old", kind: "message", T: () => b },
@@ -1692,8 +1692,8 @@ class Nr extends h {
1692
1692
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
1693
1693
  }
1694
1694
  }
1695
- const Q = new Nr();
1696
- class _r extends h {
1695
+ const Q = new Lr();
1696
+ class Ar extends h {
1697
1697
  constructor() {
1698
1698
  super("MiLaboratories.PL.API.SpanInfo", [
1699
1699
  {
@@ -1762,8 +1762,8 @@ class _r extends h {
1762
1762
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
1763
1763
  }
1764
1764
  }
1765
- const Re = new _r();
1766
- class Lr extends h {
1765
+ const Re = new Ar();
1766
+ class Br extends h {
1767
1767
  constructor() {
1768
1768
  super("MiLaboratories.PL.API.Subscription", [
1769
1769
  {
@@ -1816,8 +1816,8 @@ class Lr extends h {
1816
1816
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
1817
1817
  }
1818
1818
  }
1819
- const Ie = new Lr();
1820
- class Ar extends h {
1819
+ const Ie = new Br();
1820
+ class $r extends h {
1821
1821
  constructor() {
1822
1822
  super("MiLaboratories.PL.API.Controller", [
1823
1823
  {
@@ -1882,8 +1882,8 @@ class Ar extends h {
1882
1882
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
1883
1883
  }
1884
1884
  }
1885
- const Pe = new Ar();
1886
- class Br extends h {
1885
+ const Pe = new $r();
1886
+ class Ur extends h {
1887
1887
  constructor() {
1888
1888
  super("MiLaboratories.PL.API.ResourceSchema", [
1889
1889
  { no: 1, name: "type", kind: "message", T: () => w },
@@ -1925,8 +1925,8 @@ class Br extends h {
1925
1925
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
1926
1926
  }
1927
1927
  }
1928
- const V = new Br();
1929
- class $r extends h {
1928
+ const V = new Ur();
1929
+ class Fr extends h {
1930
1930
  constructor() {
1931
1931
  super("MiLaboratories.PL.API.FieldSchema", [
1932
1932
  { no: 1, name: "type", kind: "enum", T: () => ["MiLaboratories.PL.Base.FieldType", k] },
@@ -1972,8 +1972,8 @@ class $r extends h {
1972
1972
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
1973
1973
  }
1974
1974
  }
1975
- const Ne = new $r();
1976
- class Ur extends h {
1975
+ const Ne = new Fr();
1976
+ class Er extends h {
1977
1977
  constructor() {
1978
1978
  super("MiLaboratories.PL.API.ResourceAPIFeature", [
1979
1979
  {
@@ -2041,8 +2041,8 @@ class Ur extends h {
2041
2041
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
2042
2042
  }
2043
2043
  }
2044
- const _e = new Ur();
2045
- class Fr extends h {
2044
+ const _e = new Er();
2045
+ class xr extends h {
2046
2046
  constructor() {
2047
2047
  super("google.protobuf.Any", [
2048
2048
  {
@@ -2102,15 +2102,15 @@ class Fr extends h {
2102
2102
  var o;
2103
2103
  if (e.typeUrl === "")
2104
2104
  return {};
2105
- let i = this.typeUrlToName(e.typeUrl), n = Yi(t), r = (o = n.typeRegistry) == null ? void 0 : o.find((s) => s.typeName === i);
2105
+ let i = this.typeUrlToName(e.typeUrl), n = Zi(t), r = (o = n.typeRegistry) == null ? void 0 : o.find((s) => s.typeName === i);
2106
2106
  if (!r)
2107
2107
  throw new globalThis.Error("Unable to convert google.protobuf.Any with typeUrl '" + e.typeUrl + "' to JSON. The specified type " + i + " is not available in the type registry.");
2108
2108
  let c = r.fromBinary(e.value, { readUnknownField: !1 }), a = r.internalJsonWrite(c, n);
2109
- return (i.startsWith("google.protobuf.") || !jn(a)) && (a = { value: a }), a["@type"] = e.typeUrl, a;
2109
+ return (i.startsWith("google.protobuf.") || !Vn(a)) && (a = { value: a }), a["@type"] = e.typeUrl, a;
2110
2110
  }
2111
2111
  internalJsonRead(e, t, i) {
2112
2112
  var a;
2113
- if (!jn(e))
2113
+ if (!Vn(e))
2114
2114
  throw new globalThis.Error("Unable to parse google.protobuf.Any from JSON " + _n(e) + ".");
2115
2115
  if (typeof e["@type"] != "string" || e["@type"] == "")
2116
2116
  return this.create();
@@ -2172,8 +2172,8 @@ class Fr extends h {
2172
2172
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
2173
2173
  }
2174
2174
  }
2175
- const Le = new Fr();
2176
- class Er extends h {
2175
+ const Le = new xr();
2176
+ class Wr extends h {
2177
2177
  constructor() {
2178
2178
  super("google.rpc.Status", [
2179
2179
  {
@@ -2232,9 +2232,9 @@ class Er extends h {
2232
2232
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
2233
2233
  }
2234
2234
  }
2235
- const Ae = new Er();
2235
+ const Ae = new Wr();
2236
2236
  var pe = /* @__PURE__ */ ((l) => (l[l.INVALID = 0] = "INVALID", l[l.WRITABLE = 1] = "WRITABLE", l[l.NOT_WRITABLE = 2] = "NOT_WRITABLE", l))(pe || {}), $n = /* @__PURE__ */ ((l) => (l[l.NONE = 0] = "NONE", l[l.GZIP = 1] = "GZIP", l))($n || {});
2237
- class xr extends h {
2237
+ class Sr extends h {
2238
2238
  constructor() {
2239
2239
  super("MiLaboratories.PL.API.TxAPI", []);
2240
2240
  }
@@ -2262,8 +2262,8 @@ class xr extends h {
2262
2262
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
2263
2263
  }
2264
2264
  }
2265
- new xr();
2266
- class Wr extends h {
2265
+ new Sr();
2266
+ class Cr extends h {
2267
2267
  constructor() {
2268
2268
  super("MiLaboratories.PL.API.TxAPI.ClientMessage", [
2269
2269
  {
@@ -2315,8 +2315,8 @@ class Wr extends h {
2315
2315
  { no: 201, name: "resource_key_value_get", kind: "message", oneof: "request", T: () => Xt },
2316
2316
  { no: 202, name: "resource_key_value_get_if_exists", kind: "message", oneof: "request", T: () => en },
2317
2317
  { no: 203, name: "resource_key_value_set_flag", kind: "message", oneof: "request", T: () => sn },
2318
- { no: 204, name: "resource_key_value_get_flag", kind: "message", oneof: "request", T: () => D },
2319
- { no: 205, name: "resource_key_value_get_flag_if_exists", kind: "message", oneof: "request", T: () => D },
2318
+ { no: 204, name: "resource_key_value_get_flag", kind: "message", oneof: "request", T: () => v },
2319
+ { no: 205, name: "resource_key_value_get_flag_if_exists", kind: "message", oneof: "request", T: () => v },
2320
2320
  { no: 206, name: "resource_key_value_delete", kind: "message", oneof: "request", T: () => nn },
2321
2321
  { no: 207, name: "resource_key_value_list", kind: "message", oneof: "request", T: () => Jt },
2322
2322
  { no: 250, name: "controller_key_value_set", kind: "message", oneof: "request", T: () => an },
@@ -2639,14 +2639,14 @@ class Wr extends h {
2639
2639
  204:
2640
2640
  r.request = {
2641
2641
  oneofKind: "resourceKeyValueGetFlag",
2642
- resourceKeyValueGetFlag: D.internalBinaryRead(e, e.uint32(), i, r.request.resourceKeyValueGetFlag)
2642
+ resourceKeyValueGetFlag: v.internalBinaryRead(e, e.uint32(), i, r.request.resourceKeyValueGetFlag)
2643
2643
  };
2644
2644
  break;
2645
2645
  case /* MiLaboratories.PL.API.ResourceKVAPI.GetFlag.Request resource_key_value_get_flag_if_exists */
2646
2646
  205:
2647
2647
  r.request = {
2648
2648
  oneofKind: "resourceKeyValueGetFlagIfExists",
2649
- resourceKeyValueGetFlagIfExists: D.internalBinaryRead(e, e.uint32(), i, r.request.resourceKeyValueGetFlagIfExists)
2649
+ resourceKeyValueGetFlagIfExists: v.internalBinaryRead(e, e.uint32(), i, r.request.resourceKeyValueGetFlagIfExists)
2650
2650
  };
2651
2651
  break;
2652
2652
  case /* MiLaboratories.PL.API.ResourceKVAPI.Delete.Request resource_key_value_delete */
@@ -2723,13 +2723,13 @@ class Wr extends h {
2723
2723
  return r;
2724
2724
  }
2725
2725
  internalBinaryWrite(e, t, i) {
2726
- e.requestId !== 0 && t.tag(1, d.Varint).uint32(e.requestId), e.request.oneofKind === "txOpen" && $e.internalBinaryWrite(e.request.txOpen, t.tag(11, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "txCommit" && Fe.internalBinaryWrite(e.request.txCommit, t.tag(12, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "txDiscard" && xe.internalBinaryWrite(e.request.txDiscard, t.tag(13, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateRoot" && lt.internalBinaryWrite(e.request.resourceCreateRoot, t.tag(58, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceRemove" && ut.internalBinaryWrite(e.request.resourceRemove, t.tag(57, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateStruct" && Se.internalBinaryWrite(e.request.resourceCreateStruct, t.tag(51, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateEphemeral" && De.internalBinaryWrite(e.request.resourceCreateEphemeral, t.tag(62, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateValue" && Ke.internalBinaryWrite(e.request.resourceCreateValue, t.tag(52, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceGetValueId" && Ve.internalBinaryWrite(e.request.resourceGetValueId, t.tag(63, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateSingleton" && Ge.internalBinaryWrite(e.request.resourceCreateSingleton, t.tag(64, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceGetSingleton" && ze.internalBinaryWrite(e.request.resourceGetSingleton, t.tag(65, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateChild" && Oe.internalBinaryWrite(e.request.resourceCreateChild, t.tag(59, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceLockInputs" && Ye.internalBinaryWrite(e.request.resourceLockInputs, t.tag(53, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceLockOutputs" && Xe.internalBinaryWrite(e.request.resourceLockOutputs, t.tag(56, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceExists" && et.internalBinaryWrite(e.request.resourceExists, t.tag(54, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceGet" && rt.internalBinaryWrite(e.request.resourceGet, t.tag(55, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceSetError" && nt.internalBinaryWrite(e.request.resourceSetError, t.tag(61, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceListByType" && ot.internalBinaryWrite(e.request.resourceListByType, t.tag(60, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceNameSet" && dt.internalBinaryWrite(e.request.resourceNameSet, t.tag(66, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceNameGet" && pt.internalBinaryWrite(e.request.resourceNameGet, t.tag(67, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceNameExists" && wt.internalBinaryWrite(e.request.resourceNameExists, t.tag(68, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceNameDelete" && gt.internalBinaryWrite(e.request.resourceNameDelete, t.tag(69, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceTree" && bt.internalBinaryWrite(e.request.resourceTree, t.tag(70, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldCreate" && Rt.internalBinaryWrite(e.request.fieldCreate, t.tag(101, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldExists" && Pt.internalBinaryWrite(e.request.fieldExists, t.tag(107, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldSet" && _t.internalBinaryWrite(e.request.fieldSet, t.tag(102, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldSetError" && At.internalBinaryWrite(e.request.fieldSetError, t.tag(105, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldGet" && $t.internalBinaryWrite(e.request.fieldGet, t.tag(103, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldReset" && Ft.internalBinaryWrite(e.request.fieldReset, t.tag(104, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldRemove" && xt.internalBinaryWrite(e.request.fieldRemove, t.tag(106, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldList" && St.internalBinaryWrite(e.request.fieldList, t.tag(108, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "subscriptionCreate" && Kt.internalBinaryWrite(e.request.subscriptionCreate, t.tag(111, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "subscriptionAttachFilter" && ie.internalBinaryWrite(e.request.subscriptionAttachFilter, t.tag(112, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "subscriptionDetachFilter" && se.internalBinaryWrite(e.request.subscriptionDetachFilter, t.tag(113, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "subscriptionCreateFilter" && Vt.internalBinaryWrite(e.request.subscriptionCreateFilter, t.tag(115, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "notificationGet" && te.internalBinaryWrite(e.request.notificationGet, t.tag(154, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "notificationAck" && Dt.internalBinaryWrite(e.request.notificationAck, t.tag(155, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "notificationDiscard" && Ot.internalBinaryWrite(e.request.notificationDiscard, t.tag(156, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueSet" && Yt.internalBinaryWrite(e.request.resourceKeyValueSet, t.tag(200, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueGet" && Xt.internalBinaryWrite(e.request.resourceKeyValueGet, t.tag(201, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueGetIfExists" && en.internalBinaryWrite(e.request.resourceKeyValueGetIfExists, t.tag(202, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueSetFlag" && sn.internalBinaryWrite(e.request.resourceKeyValueSetFlag, t.tag(203, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueGetFlag" && D.internalBinaryWrite(e.request.resourceKeyValueGetFlag, t.tag(204, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueGetFlagIfExists" && D.internalBinaryWrite(e.request.resourceKeyValueGetFlagIfExists, t.tag(205, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueDelete" && nn.internalBinaryWrite(e.request.resourceKeyValueDelete, t.tag(206, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueList" && Jt.internalBinaryWrite(e.request.resourceKeyValueList, t.tag(207, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "controllerKeyValueSet" && an.internalBinaryWrite(e.request.controllerKeyValueSet, t.tag(250, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "controllerKeyValueGet" && cn.internalBinaryWrite(e.request.controllerKeyValueGet, t.tag(251, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "controllerKeyValueGetIfExists" && fn.internalBinaryWrite(e.request.controllerKeyValueGetIfExists, t.tag(252, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "cacheSetToField" && hn.internalBinaryWrite(e.request.cacheSetToField, t.tag(300, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "cacheDeleteExpiredRecords" && yn.internalBinaryWrite(e.request.cacheDeleteExpiredRecords, t.tag(301, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "controllerFeaturesSet" && ae.internalBinaryWrite(e.request.controllerFeaturesSet, t.tag(350, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "controllerFeaturesClear" && ce.internalBinaryWrite(e.request.controllerFeaturesClear, t.tag(351, d.LengthDelimited).fork(), i).join();
2726
+ e.requestId !== 0 && t.tag(1, d.Varint).uint32(e.requestId), e.request.oneofKind === "txOpen" && $e.internalBinaryWrite(e.request.txOpen, t.tag(11, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "txCommit" && Fe.internalBinaryWrite(e.request.txCommit, t.tag(12, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "txDiscard" && xe.internalBinaryWrite(e.request.txDiscard, t.tag(13, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateRoot" && lt.internalBinaryWrite(e.request.resourceCreateRoot, t.tag(58, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceRemove" && ut.internalBinaryWrite(e.request.resourceRemove, t.tag(57, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateStruct" && Se.internalBinaryWrite(e.request.resourceCreateStruct, t.tag(51, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateEphemeral" && De.internalBinaryWrite(e.request.resourceCreateEphemeral, t.tag(62, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateValue" && Ke.internalBinaryWrite(e.request.resourceCreateValue, t.tag(52, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceGetValueId" && Ve.internalBinaryWrite(e.request.resourceGetValueId, t.tag(63, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateSingleton" && Ge.internalBinaryWrite(e.request.resourceCreateSingleton, t.tag(64, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceGetSingleton" && ze.internalBinaryWrite(e.request.resourceGetSingleton, t.tag(65, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateChild" && Oe.internalBinaryWrite(e.request.resourceCreateChild, t.tag(59, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceLockInputs" && Ye.internalBinaryWrite(e.request.resourceLockInputs, t.tag(53, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceLockOutputs" && Xe.internalBinaryWrite(e.request.resourceLockOutputs, t.tag(56, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceExists" && et.internalBinaryWrite(e.request.resourceExists, t.tag(54, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceGet" && rt.internalBinaryWrite(e.request.resourceGet, t.tag(55, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceSetError" && nt.internalBinaryWrite(e.request.resourceSetError, t.tag(61, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceListByType" && ot.internalBinaryWrite(e.request.resourceListByType, t.tag(60, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceNameSet" && dt.internalBinaryWrite(e.request.resourceNameSet, t.tag(66, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceNameGet" && pt.internalBinaryWrite(e.request.resourceNameGet, t.tag(67, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceNameExists" && wt.internalBinaryWrite(e.request.resourceNameExists, t.tag(68, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceNameDelete" && gt.internalBinaryWrite(e.request.resourceNameDelete, t.tag(69, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceTree" && bt.internalBinaryWrite(e.request.resourceTree, t.tag(70, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldCreate" && Rt.internalBinaryWrite(e.request.fieldCreate, t.tag(101, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldExists" && Pt.internalBinaryWrite(e.request.fieldExists, t.tag(107, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldSet" && _t.internalBinaryWrite(e.request.fieldSet, t.tag(102, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldSetError" && At.internalBinaryWrite(e.request.fieldSetError, t.tag(105, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldGet" && $t.internalBinaryWrite(e.request.fieldGet, t.tag(103, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldReset" && Ft.internalBinaryWrite(e.request.fieldReset, t.tag(104, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldRemove" && xt.internalBinaryWrite(e.request.fieldRemove, t.tag(106, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldList" && St.internalBinaryWrite(e.request.fieldList, t.tag(108, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "subscriptionCreate" && Kt.internalBinaryWrite(e.request.subscriptionCreate, t.tag(111, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "subscriptionAttachFilter" && ie.internalBinaryWrite(e.request.subscriptionAttachFilter, t.tag(112, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "subscriptionDetachFilter" && se.internalBinaryWrite(e.request.subscriptionDetachFilter, t.tag(113, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "subscriptionCreateFilter" && Vt.internalBinaryWrite(e.request.subscriptionCreateFilter, t.tag(115, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "notificationGet" && te.internalBinaryWrite(e.request.notificationGet, t.tag(154, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "notificationAck" && Dt.internalBinaryWrite(e.request.notificationAck, t.tag(155, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "notificationDiscard" && Ot.internalBinaryWrite(e.request.notificationDiscard, t.tag(156, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueSet" && Yt.internalBinaryWrite(e.request.resourceKeyValueSet, t.tag(200, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueGet" && Xt.internalBinaryWrite(e.request.resourceKeyValueGet, t.tag(201, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueGetIfExists" && en.internalBinaryWrite(e.request.resourceKeyValueGetIfExists, t.tag(202, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueSetFlag" && sn.internalBinaryWrite(e.request.resourceKeyValueSetFlag, t.tag(203, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueGetFlag" && v.internalBinaryWrite(e.request.resourceKeyValueGetFlag, t.tag(204, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueGetFlagIfExists" && v.internalBinaryWrite(e.request.resourceKeyValueGetFlagIfExists, t.tag(205, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueDelete" && nn.internalBinaryWrite(e.request.resourceKeyValueDelete, t.tag(206, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueList" && Jt.internalBinaryWrite(e.request.resourceKeyValueList, t.tag(207, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "controllerKeyValueSet" && an.internalBinaryWrite(e.request.controllerKeyValueSet, t.tag(250, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "controllerKeyValueGet" && cn.internalBinaryWrite(e.request.controllerKeyValueGet, t.tag(251, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "controllerKeyValueGetIfExists" && fn.internalBinaryWrite(e.request.controllerKeyValueGetIfExists, t.tag(252, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "cacheSetToField" && hn.internalBinaryWrite(e.request.cacheSetToField, t.tag(300, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "cacheDeleteExpiredRecords" && yn.internalBinaryWrite(e.request.cacheDeleteExpiredRecords, t.tag(301, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "controllerFeaturesSet" && ae.internalBinaryWrite(e.request.controllerFeaturesSet, t.tag(350, d.LengthDelimited).fork(), i).join(), e.request.oneofKind === "controllerFeaturesClear" && ce.internalBinaryWrite(e.request.controllerFeaturesClear, t.tag(351, d.LengthDelimited).fork(), i).join();
2727
2727
  let n = i.writeUnknownFields;
2728
2728
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
2729
2729
  }
2730
2730
  }
2731
- const Sr = new Wr();
2732
- class Cr extends h {
2731
+ const Dr = new Cr();
2732
+ class vr extends h {
2733
2733
  constructor() {
2734
2734
  super("MiLaboratories.PL.API.TxAPI.ServerMessage", [
2735
2735
  {
@@ -2782,8 +2782,8 @@ class Cr extends h {
2782
2782
  { no: 201, name: "resource_key_value_get", kind: "message", oneof: "response", T: () => Qt },
2783
2783
  { no: 202, name: "resource_key_value_get_if_exists", kind: "message", oneof: "response", T: () => tn },
2784
2784
  { no: 203, name: "resource_key_value_set_flag", kind: "message", oneof: "response", T: () => on },
2785
- { no: 204, name: "resource_key_value_get_flag", kind: "message", oneof: "response", T: () => v },
2786
- { no: 205, name: "resource_key_value_get_flag_if_exists", kind: "message", oneof: "response", T: () => v },
2785
+ { no: 204, name: "resource_key_value_get_flag", kind: "message", oneof: "response", T: () => O },
2786
+ { no: 205, name: "resource_key_value_get_flag_if_exists", kind: "message", oneof: "response", T: () => O },
2787
2787
  { no: 206, name: "resource_key_value_delete", kind: "message", oneof: "response", T: () => rn },
2788
2788
  { no: 207, name: "resource_key_value_list", kind: "message", oneof: "response", T: () => zt },
2789
2789
  { no: 250, name: "controller_key_value_set", kind: "message", oneof: "response", T: () => ln },
@@ -3111,14 +3111,14 @@ class Cr extends h {
3111
3111
  204:
3112
3112
  r.response = {
3113
3113
  oneofKind: "resourceKeyValueGetFlag",
3114
- resourceKeyValueGetFlag: v.internalBinaryRead(e, e.uint32(), i, r.response.resourceKeyValueGetFlag)
3114
+ resourceKeyValueGetFlag: O.internalBinaryRead(e, e.uint32(), i, r.response.resourceKeyValueGetFlag)
3115
3115
  };
3116
3116
  break;
3117
3117
  case /* MiLaboratories.PL.API.ResourceKVAPI.GetFlag.Response resource_key_value_get_flag_if_exists */
3118
3118
  205:
3119
3119
  r.response = {
3120
3120
  oneofKind: "resourceKeyValueGetFlagIfExists",
3121
- resourceKeyValueGetFlagIfExists: v.internalBinaryRead(e, e.uint32(), i, r.response.resourceKeyValueGetFlagIfExists)
3121
+ resourceKeyValueGetFlagIfExists: O.internalBinaryRead(e, e.uint32(), i, r.response.resourceKeyValueGetFlagIfExists)
3122
3122
  };
3123
3123
  break;
3124
3124
  case /* MiLaboratories.PL.API.ResourceKVAPI.Delete.Response resource_key_value_delete */
@@ -3199,13 +3199,13 @@ class Cr extends h {
3199
3199
  return r;
3200
3200
  }
3201
3201
  internalBinaryWrite(e, t, i) {
3202
- e.requestId !== 0 && t.tag(1, d.Varint).uint32(e.requestId), e.multiMessage && Be.internalBinaryWrite(e.multiMessage, t.tag(2, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "txOpen" && Ue.internalBinaryWrite(e.response.txOpen, t.tag(11, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "txCommit" && Ee.internalBinaryWrite(e.response.txCommit, t.tag(12, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "txDiscard" && We.internalBinaryWrite(e.response.txDiscard, t.tag(13, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateRoot" && ct.internalBinaryWrite(e.response.resourceCreateRoot, t.tag(58, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceRemove" && ft.internalBinaryWrite(e.response.resourceRemove, t.tag(57, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateStruct" && Ce.internalBinaryWrite(e.response.resourceCreateStruct, t.tag(51, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateEphemeral" && ve.internalBinaryWrite(e.response.resourceCreateEphemeral, t.tag(62, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateValue" && je.internalBinaryWrite(e.response.resourceCreateValue, t.tag(52, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceGetValueId" && Me.internalBinaryWrite(e.response.resourceGetValueId, t.tag(63, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateSingleton" && Je.internalBinaryWrite(e.response.resourceCreateSingleton, t.tag(64, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceGetSingleton" && He.internalBinaryWrite(e.response.resourceGetSingleton, t.tag(65, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateChild" && qe.internalBinaryWrite(e.response.resourceCreateChild, t.tag(59, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceLockInputs" && Ze.internalBinaryWrite(e.response.resourceLockInputs, t.tag(53, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceLockOutputs" && Qe.internalBinaryWrite(e.response.resourceLockOutputs, t.tag(56, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceExists" && tt.internalBinaryWrite(e.response.resourceExists, t.tag(54, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceGet" && st.internalBinaryWrite(e.response.resourceGet, t.tag(55, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceSetError" && it.internalBinaryWrite(e.response.resourceSetError, t.tag(61, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceListByType" && at.internalBinaryWrite(e.response.resourceListByType, t.tag(60, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceNameSet" && ht.internalBinaryWrite(e.response.resourceNameSet, t.tag(66, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceNameGet" && yt.internalBinaryWrite(e.response.resourceNameGet, t.tag(67, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceNameExists" && mt.internalBinaryWrite(e.response.resourceNameExists, t.tag(68, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceNameDelete" && kt.internalBinaryWrite(e.response.resourceNameDelete, t.tag(69, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceTree" && Tt.internalBinaryWrite(e.response.resourceTree, t.tag(70, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldCreate" && It.internalBinaryWrite(e.response.fieldCreate, t.tag(101, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldExists" && Nt.internalBinaryWrite(e.response.fieldExists, t.tag(107, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldSet" && Lt.internalBinaryWrite(e.response.fieldSet, t.tag(102, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldSetError" && Bt.internalBinaryWrite(e.response.fieldSetError, t.tag(105, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldGet" && Ut.internalBinaryWrite(e.response.fieldGet, t.tag(103, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldReset" && Et.internalBinaryWrite(e.response.fieldReset, t.tag(104, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldRemove" && Wt.internalBinaryWrite(e.response.fieldRemove, t.tag(106, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldList" && Ct.internalBinaryWrite(e.response.fieldList, t.tag(108, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "subscriptionCreate" && jt.internalBinaryWrite(e.response.subscriptionCreate, t.tag(111, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "subscriptionCreateFilter" && Mt.internalBinaryWrite(e.response.subscriptionCreateFilter, t.tag(115, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "subscriptionAttachFilter" && re.internalBinaryWrite(e.response.subscriptionAttachFilter, t.tag(112, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "subscriptionDetachFilter" && oe.internalBinaryWrite(e.response.subscriptionDetachFilter, t.tag(113, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "notificationGet" && ne.internalBinaryWrite(e.response.notificationGet, t.tag(154, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "notificationAck" && vt.internalBinaryWrite(e.response.notificationAck, t.tag(155, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "notificationDiscard" && qt.internalBinaryWrite(e.response.notificationDiscard, t.tag(156, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueSet" && Zt.internalBinaryWrite(e.response.resourceKeyValueSet, t.tag(200, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueGet" && Qt.internalBinaryWrite(e.response.resourceKeyValueGet, t.tag(201, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueGetIfExists" && tn.internalBinaryWrite(e.response.resourceKeyValueGetIfExists, t.tag(202, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueSetFlag" && on.internalBinaryWrite(e.response.resourceKeyValueSetFlag, t.tag(203, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueGetFlag" && v.internalBinaryWrite(e.response.resourceKeyValueGetFlag, t.tag(204, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueGetFlagIfExists" && v.internalBinaryWrite(e.response.resourceKeyValueGetFlagIfExists, t.tag(205, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueDelete" && rn.internalBinaryWrite(e.response.resourceKeyValueDelete, t.tag(206, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueList" && zt.internalBinaryWrite(e.response.resourceKeyValueList, t.tag(207, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "controllerKeyValueSet" && ln.internalBinaryWrite(e.response.controllerKeyValueSet, t.tag(250, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "controllerKeyValueGet" && un.internalBinaryWrite(e.response.controllerKeyValueGet, t.tag(251, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "controllerKeyValueGetIfExists" && dn.internalBinaryWrite(e.response.controllerKeyValueGetIfExists, t.tag(252, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "cacheSetToField" && pn.internalBinaryWrite(e.response.cacheSetToField, t.tag(300, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "cacheDeleteExpiredRecords" && wn.internalBinaryWrite(e.response.cacheDeleteExpiredRecords, t.tag(301, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "controllerFeaturesSet" && le.internalBinaryWrite(e.response.controllerFeaturesSet, t.tag(350, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "controllerFeaturesClear" && ue.internalBinaryWrite(e.response.controllerFeaturesClear, t.tag(351, d.LengthDelimited).fork(), i).join(), e.error && Ae.internalBinaryWrite(e.error, t.tag(3, d.LengthDelimited).fork(), i).join();
3202
+ e.requestId !== 0 && t.tag(1, d.Varint).uint32(e.requestId), e.multiMessage && Be.internalBinaryWrite(e.multiMessage, t.tag(2, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "txOpen" && Ue.internalBinaryWrite(e.response.txOpen, t.tag(11, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "txCommit" && Ee.internalBinaryWrite(e.response.txCommit, t.tag(12, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "txDiscard" && We.internalBinaryWrite(e.response.txDiscard, t.tag(13, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateRoot" && ct.internalBinaryWrite(e.response.resourceCreateRoot, t.tag(58, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceRemove" && ft.internalBinaryWrite(e.response.resourceRemove, t.tag(57, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateStruct" && Ce.internalBinaryWrite(e.response.resourceCreateStruct, t.tag(51, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateEphemeral" && ve.internalBinaryWrite(e.response.resourceCreateEphemeral, t.tag(62, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateValue" && je.internalBinaryWrite(e.response.resourceCreateValue, t.tag(52, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceGetValueId" && Me.internalBinaryWrite(e.response.resourceGetValueId, t.tag(63, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateSingleton" && Je.internalBinaryWrite(e.response.resourceCreateSingleton, t.tag(64, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceGetSingleton" && He.internalBinaryWrite(e.response.resourceGetSingleton, t.tag(65, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateChild" && qe.internalBinaryWrite(e.response.resourceCreateChild, t.tag(59, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceLockInputs" && Ze.internalBinaryWrite(e.response.resourceLockInputs, t.tag(53, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceLockOutputs" && Qe.internalBinaryWrite(e.response.resourceLockOutputs, t.tag(56, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceExists" && tt.internalBinaryWrite(e.response.resourceExists, t.tag(54, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceGet" && st.internalBinaryWrite(e.response.resourceGet, t.tag(55, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceSetError" && it.internalBinaryWrite(e.response.resourceSetError, t.tag(61, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceListByType" && at.internalBinaryWrite(e.response.resourceListByType, t.tag(60, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceNameSet" && ht.internalBinaryWrite(e.response.resourceNameSet, t.tag(66, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceNameGet" && yt.internalBinaryWrite(e.response.resourceNameGet, t.tag(67, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceNameExists" && mt.internalBinaryWrite(e.response.resourceNameExists, t.tag(68, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceNameDelete" && kt.internalBinaryWrite(e.response.resourceNameDelete, t.tag(69, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceTree" && Tt.internalBinaryWrite(e.response.resourceTree, t.tag(70, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldCreate" && It.internalBinaryWrite(e.response.fieldCreate, t.tag(101, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldExists" && Nt.internalBinaryWrite(e.response.fieldExists, t.tag(107, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldSet" && Lt.internalBinaryWrite(e.response.fieldSet, t.tag(102, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldSetError" && Bt.internalBinaryWrite(e.response.fieldSetError, t.tag(105, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldGet" && Ut.internalBinaryWrite(e.response.fieldGet, t.tag(103, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldReset" && Et.internalBinaryWrite(e.response.fieldReset, t.tag(104, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldRemove" && Wt.internalBinaryWrite(e.response.fieldRemove, t.tag(106, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldList" && Ct.internalBinaryWrite(e.response.fieldList, t.tag(108, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "subscriptionCreate" && jt.internalBinaryWrite(e.response.subscriptionCreate, t.tag(111, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "subscriptionCreateFilter" && Mt.internalBinaryWrite(e.response.subscriptionCreateFilter, t.tag(115, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "subscriptionAttachFilter" && re.internalBinaryWrite(e.response.subscriptionAttachFilter, t.tag(112, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "subscriptionDetachFilter" && oe.internalBinaryWrite(e.response.subscriptionDetachFilter, t.tag(113, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "notificationGet" && ne.internalBinaryWrite(e.response.notificationGet, t.tag(154, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "notificationAck" && vt.internalBinaryWrite(e.response.notificationAck, t.tag(155, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "notificationDiscard" && qt.internalBinaryWrite(e.response.notificationDiscard, t.tag(156, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueSet" && Zt.internalBinaryWrite(e.response.resourceKeyValueSet, t.tag(200, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueGet" && Qt.internalBinaryWrite(e.response.resourceKeyValueGet, t.tag(201, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueGetIfExists" && tn.internalBinaryWrite(e.response.resourceKeyValueGetIfExists, t.tag(202, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueSetFlag" && on.internalBinaryWrite(e.response.resourceKeyValueSetFlag, t.tag(203, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueGetFlag" && O.internalBinaryWrite(e.response.resourceKeyValueGetFlag, t.tag(204, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueGetFlagIfExists" && O.internalBinaryWrite(e.response.resourceKeyValueGetFlagIfExists, t.tag(205, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueDelete" && rn.internalBinaryWrite(e.response.resourceKeyValueDelete, t.tag(206, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueList" && zt.internalBinaryWrite(e.response.resourceKeyValueList, t.tag(207, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "controllerKeyValueSet" && ln.internalBinaryWrite(e.response.controllerKeyValueSet, t.tag(250, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "controllerKeyValueGet" && un.internalBinaryWrite(e.response.controllerKeyValueGet, t.tag(251, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "controllerKeyValueGetIfExists" && dn.internalBinaryWrite(e.response.controllerKeyValueGetIfExists, t.tag(252, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "cacheSetToField" && pn.internalBinaryWrite(e.response.cacheSetToField, t.tag(300, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "cacheDeleteExpiredRecords" && wn.internalBinaryWrite(e.response.cacheDeleteExpiredRecords, t.tag(301, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "controllerFeaturesSet" && le.internalBinaryWrite(e.response.controllerFeaturesSet, t.tag(350, d.LengthDelimited).fork(), i).join(), e.response.oneofKind === "controllerFeaturesClear" && ue.internalBinaryWrite(e.response.controllerFeaturesClear, t.tag(351, d.LengthDelimited).fork(), i).join(), e.error && Ae.internalBinaryWrite(e.error, t.tag(3, d.LengthDelimited).fork(), i).join();
3203
3203
  let n = i.writeUnknownFields;
3204
3204
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3205
3205
  }
3206
3206
  }
3207
- const Dr = new Cr();
3208
- class vr extends h {
3207
+ const Or = new vr();
3208
+ class qr extends h {
3209
3209
  constructor() {
3210
3210
  super("MiLaboratories.PL.API.TxAPI.ServerMessage.Multi", [
3211
3211
  {
@@ -3268,8 +3268,8 @@ class vr extends h {
3268
3268
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3269
3269
  }
3270
3270
  }
3271
- const Be = new vr();
3272
- class Or extends h {
3271
+ const Be = new qr();
3272
+ class Kr extends h {
3273
3273
  constructor() {
3274
3274
  super("MiLaboratories.PL.API.TxAPI.Open", []);
3275
3275
  }
@@ -3297,8 +3297,8 @@ class Or extends h {
3297
3297
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3298
3298
  }
3299
3299
  }
3300
- new Or();
3301
- class qr extends h {
3300
+ new Kr();
3301
+ class jr extends h {
3302
3302
  constructor() {
3303
3303
  super("MiLaboratories.PL.API.TxAPI.Open.Request", [
3304
3304
  {
@@ -3344,8 +3344,8 @@ class qr extends h {
3344
3344
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3345
3345
  }
3346
3346
  }
3347
- const $e = new qr();
3348
- class Kr extends h {
3347
+ const $e = new jr();
3348
+ class Vr extends h {
3349
3349
  constructor() {
3350
3350
  super("MiLaboratories.PL.API.TxAPI.Open.Response", [
3351
3351
  { no: 1, name: "tx", kind: "message", T: () => be }
@@ -3380,8 +3380,8 @@ class Kr extends h {
3380
3380
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3381
3381
  }
3382
3382
  }
3383
- const Ue = new Kr();
3384
- class jr extends h {
3383
+ const Ue = new Vr();
3384
+ class Mr extends h {
3385
3385
  constructor() {
3386
3386
  super("MiLaboratories.PL.API.TxAPI.Commit", []);
3387
3387
  }
@@ -3409,8 +3409,8 @@ class jr extends h {
3409
3409
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3410
3410
  }
3411
3411
  }
3412
- new jr();
3413
- class Vr extends h {
3412
+ new Mr();
3413
+ class Gr extends h {
3414
3414
  constructor() {
3415
3415
  super("MiLaboratories.PL.API.TxAPI.Commit.Request", []);
3416
3416
  }
@@ -3438,8 +3438,8 @@ class Vr extends h {
3438
3438
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3439
3439
  }
3440
3440
  }
3441
- const Fe = new Vr();
3442
- class Mr extends h {
3441
+ const Fe = new Gr();
3442
+ class Jr extends h {
3443
3443
  constructor() {
3444
3444
  super("MiLaboratories.PL.API.TxAPI.Commit.Response", [
3445
3445
  {
@@ -3480,8 +3480,8 @@ class Mr extends h {
3480
3480
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3481
3481
  }
3482
3482
  }
3483
- const Ee = new Mr();
3484
- class Gr extends h {
3483
+ const Ee = new Jr();
3484
+ class zr extends h {
3485
3485
  constructor() {
3486
3486
  super("MiLaboratories.PL.API.TxAPI.Discard", []);
3487
3487
  }
@@ -3509,8 +3509,8 @@ class Gr extends h {
3509
3509
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3510
3510
  }
3511
3511
  }
3512
- new Gr();
3513
- class Jr extends h {
3512
+ new zr();
3513
+ class Hr extends h {
3514
3514
  constructor() {
3515
3515
  super("MiLaboratories.PL.API.TxAPI.Discard.Request", []);
3516
3516
  }
@@ -3538,8 +3538,8 @@ class Jr extends h {
3538
3538
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3539
3539
  }
3540
3540
  }
3541
- const xe = new Jr();
3542
- class zr extends h {
3541
+ const xe = new Hr();
3542
+ class Yr extends h {
3543
3543
  constructor() {
3544
3544
  super("MiLaboratories.PL.API.TxAPI.Discard.Response", []);
3545
3545
  }
@@ -3567,8 +3567,8 @@ class zr extends h {
3567
3567
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3568
3568
  }
3569
3569
  }
3570
- const We = new zr();
3571
- class Hr extends h {
3570
+ const We = new Yr();
3571
+ class Zr extends h {
3572
3572
  constructor() {
3573
3573
  super("MiLaboratories.PL.API.TxAPI.Sync", []);
3574
3574
  }
@@ -3596,8 +3596,8 @@ class Hr extends h {
3596
3596
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3597
3597
  }
3598
3598
  }
3599
- new Hr();
3600
- class Yr extends h {
3599
+ new Zr();
3600
+ class Xr extends h {
3601
3601
  constructor() {
3602
3602
  super("MiLaboratories.PL.API.TxAPI.Sync.Request", [
3603
3603
  {
@@ -3639,8 +3639,8 @@ class Yr extends h {
3639
3639
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3640
3640
  }
3641
3641
  }
3642
- const Zr = new Yr();
3643
- class Xr extends h {
3642
+ const Qr = new Xr();
3643
+ class es extends h {
3644
3644
  constructor() {
3645
3645
  super("MiLaboratories.PL.API.TxAPI.Sync.Response", []);
3646
3646
  }
@@ -3668,8 +3668,8 @@ class Xr extends h {
3668
3668
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3669
3669
  }
3670
3670
  }
3671
- const Qr = new Xr();
3672
- class es extends h {
3671
+ const ts = new es();
3672
+ class ns extends h {
3673
3673
  constructor() {
3674
3674
  super("MiLaboratories.PL.API.ResourceAPI", []);
3675
3675
  }
@@ -3697,8 +3697,8 @@ class es extends h {
3697
3697
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3698
3698
  }
3699
3699
  }
3700
- new es();
3701
- class ts extends h {
3700
+ new ns();
3701
+ class is extends h {
3702
3702
  constructor() {
3703
3703
  super("MiLaboratories.PL.API.ResourceAPI.CreateStruct", []);
3704
3704
  }
@@ -3726,8 +3726,8 @@ class ts extends h {
3726
3726
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3727
3727
  }
3728
3728
  }
3729
- new ts();
3730
- class ns extends h {
3729
+ new is();
3730
+ class rs extends h {
3731
3731
  constructor() {
3732
3732
  super("MiLaboratories.PL.API.ResourceAPI.CreateStruct.Request", [
3733
3733
  {
@@ -3786,8 +3786,8 @@ class ns extends h {
3786
3786
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3787
3787
  }
3788
3788
  }
3789
- const Se = new ns();
3790
- class is extends h {
3789
+ const Se = new rs();
3790
+ class ss extends h {
3791
3791
  constructor() {
3792
3792
  super("MiLaboratories.PL.API.ResourceAPI.CreateStruct.Response", [
3793
3793
  {
@@ -3829,8 +3829,8 @@ class is extends h {
3829
3829
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3830
3830
  }
3831
3831
  }
3832
- const Ce = new is();
3833
- class rs extends h {
3832
+ const Ce = new ss();
3833
+ class os extends h {
3834
3834
  constructor() {
3835
3835
  super("MiLaboratories.PL.API.ResourceAPI.CreateEphemeral", []);
3836
3836
  }
@@ -3858,8 +3858,8 @@ class rs extends h {
3858
3858
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3859
3859
  }
3860
3860
  }
3861
- new rs();
3862
- class ss extends h {
3861
+ new os();
3862
+ class as extends h {
3863
3863
  constructor() {
3864
3864
  super("MiLaboratories.PL.API.ResourceAPI.CreateEphemeral.Request", [
3865
3865
  {
@@ -3918,8 +3918,8 @@ class ss extends h {
3918
3918
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3919
3919
  }
3920
3920
  }
3921
- const De = new ss();
3922
- class os extends h {
3921
+ const De = new as();
3922
+ class ls extends h {
3923
3923
  constructor() {
3924
3924
  super("MiLaboratories.PL.API.ResourceAPI.CreateEphemeral.Response", [
3925
3925
  {
@@ -3961,8 +3961,8 @@ class os extends h {
3961
3961
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3962
3962
  }
3963
3963
  }
3964
- const ve = new os();
3965
- class as extends h {
3964
+ const ve = new ls();
3965
+ class cs extends h {
3966
3966
  constructor() {
3967
3967
  super("MiLaboratories.PL.API.ResourceAPI.CreateChild", []);
3968
3968
  }
@@ -3990,8 +3990,8 @@ class as extends h {
3990
3990
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
3991
3991
  }
3992
3992
  }
3993
- new as();
3994
- class ls extends h {
3993
+ new cs();
3994
+ class us extends h {
3995
3995
  constructor() {
3996
3996
  super("MiLaboratories.PL.API.ResourceAPI.CreateChild.Request", [
3997
3997
  {
@@ -4043,8 +4043,8 @@ class ls extends h {
4043
4043
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4044
4044
  }
4045
4045
  }
4046
- const Oe = new ls();
4047
- class cs extends h {
4046
+ const Oe = new us();
4047
+ class fs extends h {
4048
4048
  constructor() {
4049
4049
  super("MiLaboratories.PL.API.ResourceAPI.CreateChild.Response", [
4050
4050
  {
@@ -4086,8 +4086,8 @@ class cs extends h {
4086
4086
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4087
4087
  }
4088
4088
  }
4089
- const qe = new cs();
4090
- class us extends h {
4089
+ const qe = new fs();
4090
+ class ds extends h {
4091
4091
  constructor() {
4092
4092
  super("MiLaboratories.PL.API.ResourceAPI.CreateValue", []);
4093
4093
  }
@@ -4115,8 +4115,8 @@ class us extends h {
4115
4115
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4116
4116
  }
4117
4117
  }
4118
- new us();
4119
- class fs extends h {
4118
+ new ds();
4119
+ class hs extends h {
4120
4120
  constructor() {
4121
4121
  super("MiLaboratories.PL.API.ResourceAPI.CreateValue.Request", [
4122
4122
  {
@@ -4185,8 +4185,8 @@ class fs extends h {
4185
4185
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4186
4186
  }
4187
4187
  }
4188
- const Ke = new fs();
4189
- class ds extends h {
4188
+ const Ke = new hs();
4189
+ class ps extends h {
4190
4190
  constructor() {
4191
4191
  super("MiLaboratories.PL.API.ResourceAPI.CreateValue.Response", [
4192
4192
  {
@@ -4228,8 +4228,8 @@ class ds extends h {
4228
4228
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4229
4229
  }
4230
4230
  }
4231
- const je = new ds();
4232
- class hs extends h {
4231
+ const je = new ps();
4232
+ class ys extends h {
4233
4233
  constructor() {
4234
4234
  super("MiLaboratories.PL.API.ResourceAPI.GetValueID", []);
4235
4235
  }
@@ -4257,8 +4257,8 @@ class hs extends h {
4257
4257
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4258
4258
  }
4259
4259
  }
4260
- new hs();
4261
- class ps extends h {
4260
+ new ys();
4261
+ class ws extends h {
4262
4262
  constructor() {
4263
4263
  super("MiLaboratories.PL.API.ResourceAPI.GetValueID.Request", [
4264
4264
  { no: 1, name: "type", kind: "message", T: () => w },
@@ -4304,8 +4304,8 @@ class ps extends h {
4304
4304
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4305
4305
  }
4306
4306
  }
4307
- const Ve = new ps();
4308
- class ys extends h {
4307
+ const Ve = new ws();
4308
+ class ms extends h {
4309
4309
  constructor() {
4310
4310
  super("MiLaboratories.PL.API.ResourceAPI.GetValueID.Response", [
4311
4311
  {
@@ -4347,8 +4347,8 @@ class ys extends h {
4347
4347
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4348
4348
  }
4349
4349
  }
4350
- const Me = new ys();
4351
- class ws extends h {
4350
+ const Me = new ms();
4351
+ class gs extends h {
4352
4352
  constructor() {
4353
4353
  super("MiLaboratories.PL.API.ResourceAPI.CreateSingleton", []);
4354
4354
  }
@@ -4376,8 +4376,8 @@ class ws extends h {
4376
4376
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4377
4377
  }
4378
4378
  }
4379
- new ws();
4380
- class ms extends h {
4379
+ new gs();
4380
+ class ks extends h {
4381
4381
  constructor() {
4382
4382
  super("MiLaboratories.PL.API.ResourceAPI.CreateSingleton.Request", [
4383
4383
  {
@@ -4446,8 +4446,8 @@ class ms extends h {
4446
4446
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4447
4447
  }
4448
4448
  }
4449
- const Ge = new ms();
4450
- class gs extends h {
4449
+ const Ge = new ks();
4450
+ class bs extends h {
4451
4451
  constructor() {
4452
4452
  super("MiLaboratories.PL.API.ResourceAPI.CreateSingleton.Response", [
4453
4453
  {
@@ -4489,8 +4489,8 @@ class gs extends h {
4489
4489
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4490
4490
  }
4491
4491
  }
4492
- const Je = new gs();
4493
- class ks extends h {
4492
+ const Je = new bs();
4493
+ class Ts extends h {
4494
4494
  constructor() {
4495
4495
  super("MiLaboratories.PL.API.ResourceAPI.GetSingleton", []);
4496
4496
  }
@@ -4518,8 +4518,8 @@ class ks extends h {
4518
4518
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4519
4519
  }
4520
4520
  }
4521
- new ks();
4522
- class bs extends h {
4521
+ new Ts();
4522
+ class Rs extends h {
4523
4523
  constructor() {
4524
4524
  super("MiLaboratories.PL.API.ResourceAPI.GetSingleton.Request", [
4525
4525
  { no: 1, name: "type", kind: "message", T: () => w },
@@ -4576,11 +4576,11 @@ class bs extends h {
4576
4576
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4577
4577
  }
4578
4578
  }
4579
- const ze = new bs();
4580
- class Ts extends h {
4579
+ const ze = new Rs();
4580
+ class Is extends h {
4581
4581
  constructor() {
4582
4582
  super("MiLaboratories.PL.API.ResourceAPI.GetSingleton.Response", [
4583
- { no: 1, name: "resource", kind: "message", T: () => T }
4583
+ { no: 1, name: "resource", kind: "message", T: () => R }
4584
4584
  ]);
4585
4585
  }
4586
4586
  create(e) {
@@ -4594,7 +4594,7 @@ class Ts extends h {
4594
4594
  switch (a) {
4595
4595
  case /* MiLaboratories.PL.API.Resource resource */
4596
4596
  1:
4597
- r.resource = T.internalBinaryRead(e, e.uint32(), i, r.resource);
4597
+ r.resource = R.internalBinaryRead(e, e.uint32(), i, r.resource);
4598
4598
  break;
4599
4599
  default:
4600
4600
  let s = i.readUnknownField;
@@ -4607,13 +4607,13 @@ class Ts extends h {
4607
4607
  return r;
4608
4608
  }
4609
4609
  internalBinaryWrite(e, t, i) {
4610
- e.resource && T.internalBinaryWrite(e.resource, t.tag(1, d.LengthDelimited).fork(), i).join();
4610
+ e.resource && R.internalBinaryWrite(e.resource, t.tag(1, d.LengthDelimited).fork(), i).join();
4611
4611
  let n = i.writeUnknownFields;
4612
4612
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4613
4613
  }
4614
4614
  }
4615
- const He = new Ts();
4616
- class Rs extends h {
4615
+ const He = new Is();
4616
+ class Ps extends h {
4617
4617
  constructor() {
4618
4618
  super("MiLaboratories.PL.API.ResourceAPI.LockInputs", []);
4619
4619
  }
@@ -4641,8 +4641,8 @@ class Rs extends h {
4641
4641
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4642
4642
  }
4643
4643
  }
4644
- new Rs();
4645
- class Is extends h {
4644
+ new Ps();
4645
+ class Ns extends h {
4646
4646
  constructor() {
4647
4647
  super("MiLaboratories.PL.API.ResourceAPI.LockInputs.Request", [
4648
4648
  {
@@ -4684,8 +4684,8 @@ class Is extends h {
4684
4684
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4685
4685
  }
4686
4686
  }
4687
- const Ye = new Is();
4688
- class Ps extends h {
4687
+ const Ye = new Ns();
4688
+ class _s extends h {
4689
4689
  constructor() {
4690
4690
  super("MiLaboratories.PL.API.ResourceAPI.LockInputs.Response", []);
4691
4691
  }
@@ -4713,8 +4713,8 @@ class Ps extends h {
4713
4713
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4714
4714
  }
4715
4715
  }
4716
- const Ze = new Ps();
4717
- class Ns extends h {
4716
+ const Ze = new _s();
4717
+ class Ls extends h {
4718
4718
  constructor() {
4719
4719
  super("MiLaboratories.PL.API.ResourceAPI.LockOutputs", []);
4720
4720
  }
@@ -4742,8 +4742,8 @@ class Ns extends h {
4742
4742
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4743
4743
  }
4744
4744
  }
4745
- new Ns();
4746
- class _s extends h {
4745
+ new Ls();
4746
+ class As extends h {
4747
4747
  constructor() {
4748
4748
  super("MiLaboratories.PL.API.ResourceAPI.LockOutputs.Request", [
4749
4749
  {
@@ -4785,8 +4785,8 @@ class _s extends h {
4785
4785
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4786
4786
  }
4787
4787
  }
4788
- const Xe = new _s();
4789
- class Ls extends h {
4788
+ const Xe = new As();
4789
+ class Bs extends h {
4790
4790
  constructor() {
4791
4791
  super("MiLaboratories.PL.API.ResourceAPI.LockOutputs.Response", []);
4792
4792
  }
@@ -4814,8 +4814,8 @@ class Ls extends h {
4814
4814
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4815
4815
  }
4816
4816
  }
4817
- const Qe = new Ls();
4818
- class As extends h {
4817
+ const Qe = new Bs();
4818
+ class $s extends h {
4819
4819
  constructor() {
4820
4820
  super("MiLaboratories.PL.API.ResourceAPI.Exists", []);
4821
4821
  }
@@ -4843,8 +4843,8 @@ class As extends h {
4843
4843
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4844
4844
  }
4845
4845
  }
4846
- new As();
4847
- class Bs extends h {
4846
+ new $s();
4847
+ class Us extends h {
4848
4848
  constructor() {
4849
4849
  super("MiLaboratories.PL.API.ResourceAPI.Exists.Request", [
4850
4850
  {
@@ -4886,8 +4886,8 @@ class Bs extends h {
4886
4886
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4887
4887
  }
4888
4888
  }
4889
- const et = new Bs();
4890
- class $s extends h {
4889
+ const et = new Us();
4890
+ class Fs extends h {
4891
4891
  constructor() {
4892
4892
  super("MiLaboratories.PL.API.ResourceAPI.Exists.Response", [
4893
4893
  {
@@ -4928,8 +4928,8 @@ class $s extends h {
4928
4928
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4929
4929
  }
4930
4930
  }
4931
- const tt = new $s();
4932
- class Us extends h {
4931
+ const tt = new Fs();
4932
+ class Es extends h {
4933
4933
  constructor() {
4934
4934
  super("MiLaboratories.PL.API.ResourceAPI.SetError", []);
4935
4935
  }
@@ -4957,8 +4957,8 @@ class Us extends h {
4957
4957
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
4958
4958
  }
4959
4959
  }
4960
- new Us();
4961
- class Fs extends h {
4960
+ new Es();
4961
+ class xs extends h {
4962
4962
  constructor() {
4963
4963
  super("MiLaboratories.PL.API.ResourceAPI.SetError.Request", [
4964
4964
  {
@@ -5012,8 +5012,8 @@ class Fs extends h {
5012
5012
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5013
5013
  }
5014
5014
  }
5015
- const nt = new Fs();
5016
- class Es extends h {
5015
+ const nt = new xs();
5016
+ class Ws extends h {
5017
5017
  constructor() {
5018
5018
  super("MiLaboratories.PL.API.ResourceAPI.SetError.Response", []);
5019
5019
  }
@@ -5041,8 +5041,8 @@ class Es extends h {
5041
5041
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5042
5042
  }
5043
5043
  }
5044
- const it = new Es();
5045
- class xs extends h {
5044
+ const it = new Ws();
5045
+ class Ss extends h {
5046
5046
  constructor() {
5047
5047
  super("MiLaboratories.PL.API.ResourceAPI.Get", []);
5048
5048
  }
@@ -5070,8 +5070,8 @@ class xs extends h {
5070
5070
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5071
5071
  }
5072
5072
  }
5073
- new xs();
5074
- class Ws extends h {
5073
+ new Ss();
5074
+ class Cs extends h {
5075
5075
  constructor() {
5076
5076
  super("MiLaboratories.PL.API.ResourceAPI.Get.Request", [
5077
5077
  {
@@ -5124,11 +5124,11 @@ class Ws extends h {
5124
5124
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5125
5125
  }
5126
5126
  }
5127
- const rt = new Ws();
5128
- class Ss extends h {
5127
+ const rt = new Cs();
5128
+ class Ds extends h {
5129
5129
  constructor() {
5130
5130
  super("MiLaboratories.PL.API.ResourceAPI.Get.Response", [
5131
- { no: 1, name: "resource", kind: "message", T: () => T }
5131
+ { no: 1, name: "resource", kind: "message", T: () => R }
5132
5132
  ]);
5133
5133
  }
5134
5134
  create(e) {
@@ -5142,7 +5142,7 @@ class Ss extends h {
5142
5142
  switch (a) {
5143
5143
  case /* MiLaboratories.PL.API.Resource resource */
5144
5144
  1:
5145
- r.resource = T.internalBinaryRead(e, e.uint32(), i, r.resource);
5145
+ r.resource = R.internalBinaryRead(e, e.uint32(), i, r.resource);
5146
5146
  break;
5147
5147
  default:
5148
5148
  let s = i.readUnknownField;
@@ -5155,13 +5155,13 @@ class Ss extends h {
5155
5155
  return r;
5156
5156
  }
5157
5157
  internalBinaryWrite(e, t, i) {
5158
- e.resource && T.internalBinaryWrite(e.resource, t.tag(1, d.LengthDelimited).fork(), i).join();
5158
+ e.resource && R.internalBinaryWrite(e.resource, t.tag(1, d.LengthDelimited).fork(), i).join();
5159
5159
  let n = i.writeUnknownFields;
5160
5160
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5161
5161
  }
5162
5162
  }
5163
- const st = new Ss();
5164
- class Cs extends h {
5163
+ const st = new Ds();
5164
+ class vs extends h {
5165
5165
  constructor() {
5166
5166
  super("MiLaboratories.PL.API.ResourceAPI.List", []);
5167
5167
  }
@@ -5189,8 +5189,8 @@ class Cs extends h {
5189
5189
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5190
5190
  }
5191
5191
  }
5192
- new Cs();
5193
- class Ds extends h {
5192
+ new vs();
5193
+ class Os extends h {
5194
5194
  constructor() {
5195
5195
  super("MiLaboratories.PL.API.ResourceAPI.List.ByType", []);
5196
5196
  }
@@ -5218,8 +5218,8 @@ class Ds extends h {
5218
5218
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5219
5219
  }
5220
5220
  }
5221
- new Ds();
5222
- class vs extends h {
5221
+ new Os();
5222
+ class qs extends h {
5223
5223
  constructor() {
5224
5224
  super("MiLaboratories.PL.API.ResourceAPI.List.ByType.Request", [
5225
5225
  { no: 1, name: "resource_type", kind: "message", T: () => w }
@@ -5254,11 +5254,11 @@ class vs extends h {
5254
5254
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5255
5255
  }
5256
5256
  }
5257
- const ot = new vs();
5258
- class Os extends h {
5257
+ const ot = new qs();
5258
+ class Ks extends h {
5259
5259
  constructor() {
5260
5260
  super("MiLaboratories.PL.API.ResourceAPI.List.ByType.Response", [
5261
- { no: 1, name: "resources", kind: "map", K: 4, V: { kind: "message", T: () => T } }
5261
+ { no: 1, name: "resources", kind: "map", K: 4, V: { kind: "message", T: () => R } }
5262
5262
  ]);
5263
5263
  }
5264
5264
  create(e) {
@@ -5293,23 +5293,23 @@ class Os extends h {
5293
5293
  c = t.uint64().toString();
5294
5294
  break;
5295
5295
  case 2:
5296
- a = T.internalBinaryRead(t, t.uint32(), i);
5296
+ a = R.internalBinaryRead(t, t.uint32(), i);
5297
5297
  break;
5298
5298
  default:
5299
5299
  throw new globalThis.Error("unknown map entry field for field MiLaboratories.PL.API.ResourceAPI.List.ByType.Response.resources");
5300
5300
  }
5301
5301
  }
5302
- e[c ?? "0"] = a ?? T.create();
5302
+ e[c ?? "0"] = a ?? R.create();
5303
5303
  }
5304
5304
  internalBinaryWrite(e, t, i) {
5305
5305
  for (let r of globalThis.Object.keys(e.resources))
5306
- t.tag(1, d.LengthDelimited).fork().tag(1, d.Varint).uint64(r), t.tag(2, d.LengthDelimited).fork(), T.internalBinaryWrite(e.resources[r], t, i), t.join().join();
5306
+ t.tag(1, d.LengthDelimited).fork().tag(1, d.Varint).uint64(r), t.tag(2, d.LengthDelimited).fork(), R.internalBinaryWrite(e.resources[r], t, i), t.join().join();
5307
5307
  let n = i.writeUnknownFields;
5308
5308
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5309
5309
  }
5310
5310
  }
5311
- const at = new Os();
5312
- class qs extends h {
5311
+ const at = new Ks();
5312
+ class js extends h {
5313
5313
  constructor() {
5314
5314
  super("MiLaboratories.PL.API.ResourceAPI.CreateRoot", []);
5315
5315
  }
@@ -5337,8 +5337,8 @@ class qs extends h {
5337
5337
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5338
5338
  }
5339
5339
  }
5340
- new qs();
5341
- class Ks extends h {
5340
+ new js();
5341
+ class Vs extends h {
5342
5342
  constructor() {
5343
5343
  super("MiLaboratories.PL.API.ResourceAPI.CreateRoot.Request", [
5344
5344
  {
@@ -5385,8 +5385,8 @@ class Ks extends h {
5385
5385
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5386
5386
  }
5387
5387
  }
5388
- const lt = new Ks();
5389
- class js extends h {
5388
+ const lt = new Vs();
5389
+ class Ms extends h {
5390
5390
  constructor() {
5391
5391
  super("MiLaboratories.PL.API.ResourceAPI.CreateRoot.Response", [
5392
5392
  {
@@ -5428,8 +5428,8 @@ class js extends h {
5428
5428
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5429
5429
  }
5430
5430
  }
5431
- const ct = new js();
5432
- class Vs extends h {
5431
+ const ct = new Ms();
5432
+ class Gs extends h {
5433
5433
  constructor() {
5434
5434
  super("MiLaboratories.PL.API.ResourceAPI.Remove", []);
5435
5435
  }
@@ -5457,8 +5457,8 @@ class Vs extends h {
5457
5457
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5458
5458
  }
5459
5459
  }
5460
- new Vs();
5461
- class Ms extends h {
5460
+ new Gs();
5461
+ class Js extends h {
5462
5462
  constructor() {
5463
5463
  super("MiLaboratories.PL.API.ResourceAPI.Remove.Request", [
5464
5464
  {
@@ -5500,8 +5500,8 @@ class Ms extends h {
5500
5500
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5501
5501
  }
5502
5502
  }
5503
- const ut = new Ms();
5504
- class Gs extends h {
5503
+ const ut = new Js();
5504
+ class zs extends h {
5505
5505
  constructor() {
5506
5506
  super("MiLaboratories.PL.API.ResourceAPI.Remove.Response", []);
5507
5507
  }
@@ -5529,8 +5529,8 @@ class Gs extends h {
5529
5529
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5530
5530
  }
5531
5531
  }
5532
- const ft = new Gs();
5533
- class Js extends h {
5532
+ const ft = new zs();
5533
+ class Hs extends h {
5534
5534
  constructor() {
5535
5535
  super("MiLaboratories.PL.API.ResourceAPI.Name", []);
5536
5536
  }
@@ -5558,8 +5558,8 @@ class Js extends h {
5558
5558
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5559
5559
  }
5560
5560
  }
5561
- new Js();
5562
- class zs extends h {
5561
+ new Hs();
5562
+ class Ys extends h {
5563
5563
  constructor() {
5564
5564
  super("MiLaboratories.PL.API.ResourceAPI.Name.Set", []);
5565
5565
  }
@@ -5587,8 +5587,8 @@ class zs extends h {
5587
5587
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5588
5588
  }
5589
5589
  }
5590
- new zs();
5591
- class Hs extends h {
5590
+ new Ys();
5591
+ class Zs extends h {
5592
5592
  constructor() {
5593
5593
  super("MiLaboratories.PL.API.ResourceAPI.Name.Set.Request", [
5594
5594
  {
@@ -5641,8 +5641,8 @@ class Hs extends h {
5641
5641
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5642
5642
  }
5643
5643
  }
5644
- const dt = new Hs();
5645
- class Ys extends h {
5644
+ const dt = new Zs();
5645
+ class Xs extends h {
5646
5646
  constructor() {
5647
5647
  super("MiLaboratories.PL.API.ResourceAPI.Name.Set.Response", []);
5648
5648
  }
@@ -5670,8 +5670,8 @@ class Ys extends h {
5670
5670
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5671
5671
  }
5672
5672
  }
5673
- const ht = new Ys();
5674
- class Zs extends h {
5673
+ const ht = new Xs();
5674
+ class Qs extends h {
5675
5675
  constructor() {
5676
5676
  super("MiLaboratories.PL.API.ResourceAPI.Name.Get", []);
5677
5677
  }
@@ -5699,8 +5699,8 @@ class Zs extends h {
5699
5699
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5700
5700
  }
5701
5701
  }
5702
- new Zs();
5703
- class Xs extends h {
5702
+ new Qs();
5703
+ class eo extends h {
5704
5704
  constructor() {
5705
5705
  super("MiLaboratories.PL.API.ResourceAPI.Name.Get.Request", [
5706
5706
  {
@@ -5741,8 +5741,8 @@ class Xs extends h {
5741
5741
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5742
5742
  }
5743
5743
  }
5744
- const pt = new Xs();
5745
- class Qs extends h {
5744
+ const pt = new eo();
5745
+ class to extends h {
5746
5746
  constructor() {
5747
5747
  super("MiLaboratories.PL.API.ResourceAPI.Name.Get.Response", [
5748
5748
  {
@@ -5784,8 +5784,8 @@ class Qs extends h {
5784
5784
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5785
5785
  }
5786
5786
  }
5787
- const yt = new Qs();
5788
- class eo extends h {
5787
+ const yt = new to();
5788
+ class no extends h {
5789
5789
  constructor() {
5790
5790
  super("MiLaboratories.PL.API.ResourceAPI.Name.Exists", []);
5791
5791
  }
@@ -5813,8 +5813,8 @@ class eo extends h {
5813
5813
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5814
5814
  }
5815
5815
  }
5816
- new eo();
5817
- class to extends h {
5816
+ new no();
5817
+ class io extends h {
5818
5818
  constructor() {
5819
5819
  super("MiLaboratories.PL.API.ResourceAPI.Name.Exists.Request", [
5820
5820
  {
@@ -5855,8 +5855,8 @@ class to extends h {
5855
5855
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5856
5856
  }
5857
5857
  }
5858
- const wt = new to();
5859
- class no extends h {
5858
+ const wt = new io();
5859
+ class ro extends h {
5860
5860
  constructor() {
5861
5861
  super("MiLaboratories.PL.API.ResourceAPI.Name.Exists.Response", [
5862
5862
  {
@@ -5897,8 +5897,8 @@ class no extends h {
5897
5897
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5898
5898
  }
5899
5899
  }
5900
- const mt = new no();
5901
- class io extends h {
5900
+ const mt = new ro();
5901
+ class so extends h {
5902
5902
  constructor() {
5903
5903
  super("MiLaboratories.PL.API.ResourceAPI.Name.Delete", []);
5904
5904
  }
@@ -5926,8 +5926,8 @@ class io extends h {
5926
5926
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5927
5927
  }
5928
5928
  }
5929
- new io();
5930
- class ro extends h {
5929
+ new so();
5930
+ class oo extends h {
5931
5931
  constructor() {
5932
5932
  super("MiLaboratories.PL.API.ResourceAPI.Name.Delete.Request", [
5933
5933
  {
@@ -5968,8 +5968,8 @@ class ro extends h {
5968
5968
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5969
5969
  }
5970
5970
  }
5971
- const gt = new ro();
5972
- class so extends h {
5971
+ const gt = new oo();
5972
+ class ao extends h {
5973
5973
  constructor() {
5974
5974
  super("MiLaboratories.PL.API.ResourceAPI.Name.Delete.Response", []);
5975
5975
  }
@@ -5997,8 +5997,8 @@ class so extends h {
5997
5997
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
5998
5998
  }
5999
5999
  }
6000
- const kt = new so();
6001
- class oo extends h {
6000
+ const kt = new ao();
6001
+ class lo extends h {
6002
6002
  constructor() {
6003
6003
  super("MiLaboratories.PL.API.ResourceAPI.Tree", []);
6004
6004
  }
@@ -6026,8 +6026,8 @@ class oo extends h {
6026
6026
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6027
6027
  }
6028
6028
  }
6029
- new oo();
6030
- class ao extends h {
6029
+ new lo();
6030
+ class co extends h {
6031
6031
  constructor() {
6032
6032
  super("MiLaboratories.PL.API.ResourceAPI.Tree.Request", [
6033
6033
  {
@@ -6081,11 +6081,11 @@ class ao extends h {
6081
6081
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6082
6082
  }
6083
6083
  }
6084
- const bt = new ao();
6085
- class lo extends h {
6084
+ const bt = new co();
6085
+ class uo extends h {
6086
6086
  constructor() {
6087
6087
  super("MiLaboratories.PL.API.ResourceAPI.Tree.Response", [
6088
- { no: 1, name: "resource", kind: "message", T: () => T }
6088
+ { no: 1, name: "resource", kind: "message", T: () => R }
6089
6089
  ]);
6090
6090
  }
6091
6091
  create(e) {
@@ -6099,7 +6099,7 @@ class lo extends h {
6099
6099
  switch (a) {
6100
6100
  case /* MiLaboratories.PL.API.Resource resource */
6101
6101
  1:
6102
- r.resource = T.internalBinaryRead(e, e.uint32(), i, r.resource);
6102
+ r.resource = R.internalBinaryRead(e, e.uint32(), i, r.resource);
6103
6103
  break;
6104
6104
  default:
6105
6105
  let s = i.readUnknownField;
@@ -6112,13 +6112,13 @@ class lo extends h {
6112
6112
  return r;
6113
6113
  }
6114
6114
  internalBinaryWrite(e, t, i) {
6115
- e.resource && T.internalBinaryWrite(e.resource, t.tag(1, d.LengthDelimited).fork(), i).join();
6115
+ e.resource && R.internalBinaryWrite(e.resource, t.tag(1, d.LengthDelimited).fork(), i).join();
6116
6116
  let n = i.writeUnknownFields;
6117
6117
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6118
6118
  }
6119
6119
  }
6120
- const Tt = new lo();
6121
- class co extends h {
6120
+ const Tt = new uo();
6121
+ class fo extends h {
6122
6122
  constructor() {
6123
6123
  super("MiLaboratories.PL.API.FieldAPI", []);
6124
6124
  }
@@ -6146,8 +6146,8 @@ class co extends h {
6146
6146
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6147
6147
  }
6148
6148
  }
6149
- new co();
6150
- class uo extends h {
6149
+ new fo();
6150
+ class ho extends h {
6151
6151
  constructor() {
6152
6152
  super("MiLaboratories.PL.API.FieldAPI.Create", []);
6153
6153
  }
@@ -6175,8 +6175,8 @@ class uo extends h {
6175
6175
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6176
6176
  }
6177
6177
  }
6178
- new uo();
6179
- class fo extends h {
6178
+ new ho();
6179
+ class po extends h {
6180
6180
  constructor() {
6181
6181
  super("MiLaboratories.PL.API.FieldAPI.Create.Request", [
6182
6182
  { no: 1, name: "type", kind: "enum", T: () => ["MiLaboratories.PL.Base.FieldType", k] },
@@ -6216,8 +6216,8 @@ class fo extends h {
6216
6216
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6217
6217
  }
6218
6218
  }
6219
- const Rt = new fo();
6220
- class ho extends h {
6219
+ const Rt = new po();
6220
+ class yo extends h {
6221
6221
  constructor() {
6222
6222
  super("MiLaboratories.PL.API.FieldAPI.Create.Response", [
6223
6223
  { no: 1, name: "global_id", kind: "message", T: () => m }
@@ -6252,8 +6252,8 @@ class ho extends h {
6252
6252
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6253
6253
  }
6254
6254
  }
6255
- const It = new ho();
6256
- class po extends h {
6255
+ const It = new yo();
6256
+ class wo extends h {
6257
6257
  constructor() {
6258
6258
  super("MiLaboratories.PL.API.FieldAPI.Exists", []);
6259
6259
  }
@@ -6281,8 +6281,8 @@ class po extends h {
6281
6281
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6282
6282
  }
6283
6283
  }
6284
- new po();
6285
- class yo extends h {
6284
+ new wo();
6285
+ class mo extends h {
6286
6286
  constructor() {
6287
6287
  super("MiLaboratories.PL.API.FieldAPI.Exists.Request", [
6288
6288
  { no: 1, name: "field", kind: "message", T: () => m }
@@ -6317,8 +6317,8 @@ class yo extends h {
6317
6317
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6318
6318
  }
6319
6319
  }
6320
- const Pt = new yo();
6321
- class wo extends h {
6320
+ const Pt = new mo();
6321
+ class go extends h {
6322
6322
  constructor() {
6323
6323
  super("MiLaboratories.PL.API.FieldAPI.Exists.Response", [
6324
6324
  {
@@ -6359,8 +6359,8 @@ class wo extends h {
6359
6359
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6360
6360
  }
6361
6361
  }
6362
- const Nt = new wo();
6363
- class mo extends h {
6362
+ const Nt = new go();
6363
+ class ko extends h {
6364
6364
  constructor() {
6365
6365
  super("MiLaboratories.PL.API.FieldAPI.Set", []);
6366
6366
  }
@@ -6388,8 +6388,8 @@ class mo extends h {
6388
6388
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6389
6389
  }
6390
6390
  }
6391
- new mo();
6392
- class go extends h {
6391
+ new ko();
6392
+ class bo extends h {
6393
6393
  constructor() {
6394
6394
  super("MiLaboratories.PL.API.FieldAPI.Set.Request", [
6395
6395
  { no: 1, name: "field", kind: "message", T: () => m },
@@ -6429,8 +6429,8 @@ class go extends h {
6429
6429
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6430
6430
  }
6431
6431
  }
6432
- const _t = new go();
6433
- class ko extends h {
6432
+ const _t = new bo();
6433
+ class To extends h {
6434
6434
  constructor() {
6435
6435
  super("MiLaboratories.PL.API.FieldAPI.Set.Response", []);
6436
6436
  }
@@ -6458,8 +6458,8 @@ class ko extends h {
6458
6458
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6459
6459
  }
6460
6460
  }
6461
- const Lt = new ko();
6462
- class bo extends h {
6461
+ const Lt = new To();
6462
+ class Ro extends h {
6463
6463
  constructor() {
6464
6464
  super("MiLaboratories.PL.API.FieldAPI.SetError", []);
6465
6465
  }
@@ -6487,8 +6487,8 @@ class bo extends h {
6487
6487
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6488
6488
  }
6489
6489
  }
6490
- new bo();
6491
- class To extends h {
6490
+ new Ro();
6491
+ class Io extends h {
6492
6492
  constructor() {
6493
6493
  super("MiLaboratories.PL.API.FieldAPI.SetError.Request", [
6494
6494
  { no: 1, name: "field", kind: "message", T: () => m },
@@ -6535,8 +6535,8 @@ class To extends h {
6535
6535
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6536
6536
  }
6537
6537
  }
6538
- const At = new To();
6539
- class Ro extends h {
6538
+ const At = new Io();
6539
+ class Po extends h {
6540
6540
  constructor() {
6541
6541
  super("MiLaboratories.PL.API.FieldAPI.SetError.Response", []);
6542
6542
  }
@@ -6564,8 +6564,8 @@ class Ro extends h {
6564
6564
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6565
6565
  }
6566
6566
  }
6567
- const Bt = new Ro();
6568
- class Io extends h {
6567
+ const Bt = new Po();
6568
+ class No extends h {
6569
6569
  constructor() {
6570
6570
  super("MiLaboratories.PL.API.FieldAPI.Get", []);
6571
6571
  }
@@ -6593,8 +6593,8 @@ class Io extends h {
6593
6593
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6594
6594
  }
6595
6595
  }
6596
- new Io();
6597
- class Po extends h {
6596
+ new No();
6597
+ class _o extends h {
6598
6598
  constructor() {
6599
6599
  super("MiLaboratories.PL.API.FieldAPI.Get.Request", [
6600
6600
  { no: 1, name: "field", kind: "message", T: () => m }
@@ -6629,8 +6629,8 @@ class Po extends h {
6629
6629
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6630
6630
  }
6631
6631
  }
6632
- const $t = new Po();
6633
- class No extends h {
6632
+ const $t = new _o();
6633
+ class Lo extends h {
6634
6634
  constructor() {
6635
6635
  super("MiLaboratories.PL.API.FieldAPI.Get.Response", [
6636
6636
  { no: 1, name: "field", kind: "message", T: () => b }
@@ -6665,8 +6665,8 @@ class No extends h {
6665
6665
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6666
6666
  }
6667
6667
  }
6668
- const Ut = new No();
6669
- class _o extends h {
6668
+ const Ut = new Lo();
6669
+ class Ao extends h {
6670
6670
  constructor() {
6671
6671
  super("MiLaboratories.PL.API.FieldAPI.Reset", []);
6672
6672
  }
@@ -6694,8 +6694,8 @@ class _o extends h {
6694
6694
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6695
6695
  }
6696
6696
  }
6697
- new _o();
6698
- class Lo extends h {
6697
+ new Ao();
6698
+ class Bo extends h {
6699
6699
  constructor() {
6700
6700
  super("MiLaboratories.PL.API.FieldAPI.Reset.Request", [
6701
6701
  { no: 1, name: "field", kind: "message", T: () => m }
@@ -6730,8 +6730,8 @@ class Lo extends h {
6730
6730
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6731
6731
  }
6732
6732
  }
6733
- const Ft = new Lo();
6734
- class Ao extends h {
6733
+ const Ft = new Bo();
6734
+ class $o extends h {
6735
6735
  constructor() {
6736
6736
  super("MiLaboratories.PL.API.FieldAPI.Reset.Response", []);
6737
6737
  }
@@ -6759,8 +6759,8 @@ class Ao extends h {
6759
6759
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6760
6760
  }
6761
6761
  }
6762
- const Et = new Ao();
6763
- class Bo extends h {
6762
+ const Et = new $o();
6763
+ class Uo extends h {
6764
6764
  constructor() {
6765
6765
  super("MiLaboratories.PL.API.FieldAPI.Remove", []);
6766
6766
  }
@@ -6788,8 +6788,8 @@ class Bo extends h {
6788
6788
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6789
6789
  }
6790
6790
  }
6791
- new Bo();
6792
- class $o extends h {
6791
+ new Uo();
6792
+ class Fo extends h {
6793
6793
  constructor() {
6794
6794
  super("MiLaboratories.PL.API.FieldAPI.Remove.Request", [
6795
6795
  { no: 1, name: "field", kind: "message", T: () => m }
@@ -6824,8 +6824,8 @@ class $o extends h {
6824
6824
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6825
6825
  }
6826
6826
  }
6827
- const xt = new $o();
6828
- class Uo extends h {
6827
+ const xt = new Fo();
6828
+ class Eo extends h {
6829
6829
  constructor() {
6830
6830
  super("MiLaboratories.PL.API.FieldAPI.Remove.Response", []);
6831
6831
  }
@@ -6853,8 +6853,8 @@ class Uo extends h {
6853
6853
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6854
6854
  }
6855
6855
  }
6856
- const Wt = new Uo();
6857
- class Fo extends h {
6856
+ const Wt = new Eo();
6857
+ class xo extends h {
6858
6858
  constructor() {
6859
6859
  super("MiLaboratories.PL.API.FieldAPI.List", []);
6860
6860
  }
@@ -6882,8 +6882,8 @@ class Fo extends h {
6882
6882
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6883
6883
  }
6884
6884
  }
6885
- new Fo();
6886
- class Eo extends h {
6885
+ new xo();
6886
+ class Wo extends h {
6887
6887
  constructor() {
6888
6888
  super("MiLaboratories.PL.API.FieldAPI.List.Request", [
6889
6889
  {
@@ -6947,8 +6947,8 @@ class Eo extends h {
6947
6947
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6948
6948
  }
6949
6949
  }
6950
- const St = new Eo();
6951
- class xo extends h {
6950
+ const St = new Wo();
6951
+ class So extends h {
6952
6952
  constructor() {
6953
6953
  super("MiLaboratories.PL.API.FieldAPI.List.Response", [
6954
6954
  { no: 1, name: "field", kind: "message", T: () => b },
@@ -6994,8 +6994,8 @@ class xo extends h {
6994
6994
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
6995
6995
  }
6996
6996
  }
6997
- const Ct = new xo();
6998
- class Wo extends h {
6997
+ const Ct = new So();
6998
+ class Co extends h {
6999
6999
  constructor() {
7000
7000
  super("MiLaboratories.PL.API.NotificationAPI", []);
7001
7001
  }
@@ -7023,8 +7023,8 @@ class Wo extends h {
7023
7023
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7024
7024
  }
7025
7025
  }
7026
- new Wo();
7027
- class So extends h {
7026
+ new Co();
7027
+ class Do extends h {
7028
7028
  constructor() {
7029
7029
  super("MiLaboratories.PL.API.NotificationAPI.Get", []);
7030
7030
  }
@@ -7052,8 +7052,8 @@ class So extends h {
7052
7052
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7053
7053
  }
7054
7054
  }
7055
- new So();
7056
- class Co extends h {
7055
+ new Do();
7056
+ class vo extends h {
7057
7057
  constructor() {
7058
7058
  super("MiLaboratories.PL.API.NotificationAPI.Get.Request", [
7059
7059
  {
@@ -7106,8 +7106,8 @@ class Co extends h {
7106
7106
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7107
7107
  }
7108
7108
  }
7109
- const te = new Co();
7110
- class Do extends h {
7109
+ const te = new vo();
7110
+ class Oo extends h {
7111
7111
  constructor() {
7112
7112
  super("MiLaboratories.PL.API.NotificationAPI.Get.Response", [
7113
7113
  { no: 1, name: "notifications", kind: "message", repeat: 1, T: () => j }
@@ -7143,8 +7143,8 @@ class Do extends h {
7143
7143
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7144
7144
  }
7145
7145
  }
7146
- const ne = new Do();
7147
- class vo extends h {
7146
+ const ne = new Oo();
7147
+ class qo extends h {
7148
7148
  constructor() {
7149
7149
  super("MiLaboratories.PL.API.NotificationAPI.Ack", []);
7150
7150
  }
@@ -7172,8 +7172,8 @@ class vo extends h {
7172
7172
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7173
7173
  }
7174
7174
  }
7175
- new vo();
7176
- class Oo extends h {
7175
+ new qo();
7176
+ class Ko extends h {
7177
7177
  constructor() {
7178
7178
  super("MiLaboratories.PL.API.NotificationAPI.Ack.Request", [
7179
7179
  {
@@ -7227,8 +7227,8 @@ class Oo extends h {
7227
7227
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7228
7228
  }
7229
7229
  }
7230
- const Dt = new Oo();
7231
- class qo extends h {
7230
+ const Dt = new Ko();
7231
+ class jo extends h {
7232
7232
  constructor() {
7233
7233
  super("MiLaboratories.PL.API.NotificationAPI.Ack.Response", []);
7234
7234
  }
@@ -7256,8 +7256,8 @@ class qo extends h {
7256
7256
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7257
7257
  }
7258
7258
  }
7259
- const vt = new qo();
7260
- class Ko extends h {
7259
+ const vt = new jo();
7260
+ class Vo extends h {
7261
7261
  constructor() {
7262
7262
  super("MiLaboratories.PL.API.NotificationAPI.Discard", []);
7263
7263
  }
@@ -7285,8 +7285,8 @@ class Ko extends h {
7285
7285
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7286
7286
  }
7287
7287
  }
7288
- new Ko();
7289
- class jo extends h {
7288
+ new Vo();
7289
+ class Mo extends h {
7290
7290
  constructor() {
7291
7291
  super("MiLaboratories.PL.API.NotificationAPI.Discard.Request", [
7292
7292
  {
@@ -7340,8 +7340,8 @@ class jo extends h {
7340
7340
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7341
7341
  }
7342
7342
  }
7343
- const Ot = new jo();
7344
- class Vo extends h {
7343
+ const Ot = new Mo();
7344
+ class Go extends h {
7345
7345
  constructor() {
7346
7346
  super("MiLaboratories.PL.API.NotificationAPI.Discard.Response", []);
7347
7347
  }
@@ -7369,8 +7369,8 @@ class Vo extends h {
7369
7369
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7370
7370
  }
7371
7371
  }
7372
- const qt = new Vo();
7373
- class Mo extends h {
7372
+ const qt = new Go();
7373
+ class Jo extends h {
7374
7374
  constructor() {
7375
7375
  super("MiLaboratories.PL.API.SubscriptionAPI", []);
7376
7376
  }
@@ -7398,8 +7398,8 @@ class Mo extends h {
7398
7398
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7399
7399
  }
7400
7400
  }
7401
- new Mo();
7402
- class Go extends h {
7401
+ new Jo();
7402
+ class zo extends h {
7403
7403
  constructor() {
7404
7404
  super("MiLaboratories.PL.API.SubscriptionAPI.CreateSubscription", []);
7405
7405
  }
@@ -7427,8 +7427,8 @@ class Go extends h {
7427
7427
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7428
7428
  }
7429
7429
  }
7430
- new Go();
7431
- class Jo extends h {
7430
+ new zo();
7431
+ class Ho extends h {
7432
7432
  constructor() {
7433
7433
  super("MiLaboratories.PL.API.SubscriptionAPI.CreateSubscription.Request", [
7434
7434
  {
@@ -7492,8 +7492,8 @@ class Jo extends h {
7492
7492
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7493
7493
  }
7494
7494
  }
7495
- const Kt = new Jo();
7496
- class zo extends h {
7495
+ const Kt = new Ho();
7496
+ class Yo extends h {
7497
7497
  constructor() {
7498
7498
  super("MiLaboratories.PL.API.SubscriptionAPI.CreateSubscription.Response", [
7499
7499
  {
@@ -7535,8 +7535,8 @@ class zo extends h {
7535
7535
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7536
7536
  }
7537
7537
  }
7538
- const jt = new zo();
7539
- class Ho extends h {
7538
+ const jt = new Yo();
7539
+ class Zo extends h {
7540
7540
  constructor() {
7541
7541
  super("MiLaboratories.PL.API.SubscriptionAPI.CreateFilter", []);
7542
7542
  }
@@ -7564,8 +7564,8 @@ class Ho extends h {
7564
7564
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7565
7565
  }
7566
7566
  }
7567
- new Ho();
7568
- class Yo extends h {
7567
+ new Zo();
7568
+ class Xo extends h {
7569
7569
  constructor() {
7570
7570
  super("MiLaboratories.PL.API.SubscriptionAPI.CreateFilter.Request", [
7571
7571
  {
@@ -7612,8 +7612,8 @@ class Yo extends h {
7612
7612
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7613
7613
  }
7614
7614
  }
7615
- const Vt = new Yo();
7616
- class Zo extends h {
7615
+ const Vt = new Xo();
7616
+ class Qo extends h {
7617
7617
  constructor() {
7618
7618
  super("MiLaboratories.PL.API.SubscriptionAPI.CreateFilter.Response", [
7619
7619
  {
@@ -7655,8 +7655,8 @@ class Zo extends h {
7655
7655
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7656
7656
  }
7657
7657
  }
7658
- const Mt = new Zo();
7659
- class Xo extends h {
7658
+ const Mt = new Qo();
7659
+ class ea extends h {
7660
7660
  constructor() {
7661
7661
  super("MiLaboratories.PL.API.SubscriptionAPI.ListSubscriptions", []);
7662
7662
  }
@@ -7684,8 +7684,8 @@ class Xo extends h {
7684
7684
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7685
7685
  }
7686
7686
  }
7687
- new Xo();
7688
- class Qo extends h {
7687
+ new ea();
7688
+ class ta extends h {
7689
7689
  constructor() {
7690
7690
  super("MiLaboratories.PL.API.SubscriptionAPI.ListSubscriptions.SubscriptionInfo", [
7691
7691
  { no: 1, name: "subscription", kind: "message", T: () => Ie },
@@ -7744,8 +7744,8 @@ class Qo extends h {
7744
7744
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7745
7745
  }
7746
7746
  }
7747
- const Gt = new Qo();
7748
- class ea extends h {
7747
+ const Gt = new ta();
7748
+ class na extends h {
7749
7749
  constructor() {
7750
7750
  super("MiLaboratories.PL.API.SubscriptionAPI.ListSubscriptions.Request", []);
7751
7751
  }
@@ -7773,8 +7773,8 @@ class ea extends h {
7773
7773
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7774
7774
  }
7775
7775
  }
7776
- new ea();
7777
- class ta extends h {
7776
+ new na();
7777
+ class ia extends h {
7778
7778
  constructor() {
7779
7779
  super("MiLaboratories.PL.API.SubscriptionAPI.ListSubscriptions.Response", [
7780
7780
  { no: 1, name: "subscriptions", kind: "message", repeat: 1, T: () => Gt }
@@ -7810,8 +7810,8 @@ class ta extends h {
7810
7810
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7811
7811
  }
7812
7812
  }
7813
- new ta();
7814
- class na extends h {
7813
+ new ia();
7814
+ class ra extends h {
7815
7815
  constructor() {
7816
7816
  super("MiLaboratories.PL.API.SubscriptionAPI.AttachFilter", []);
7817
7817
  }
@@ -7839,8 +7839,8 @@ class na extends h {
7839
7839
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7840
7840
  }
7841
7841
  }
7842
- new na();
7843
- class ia extends h {
7842
+ new ra();
7843
+ class sa extends h {
7844
7844
  constructor() {
7845
7845
  super("MiLaboratories.PL.API.SubscriptionAPI.AttachFilter.Request", [
7846
7846
  {
@@ -7905,8 +7905,8 @@ class ia extends h {
7905
7905
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7906
7906
  }
7907
7907
  }
7908
- const ie = new ia();
7909
- class ra extends h {
7908
+ const ie = new sa();
7909
+ class oa extends h {
7910
7910
  constructor() {
7911
7911
  super("MiLaboratories.PL.API.SubscriptionAPI.AttachFilter.Response", []);
7912
7912
  }
@@ -7934,8 +7934,8 @@ class ra extends h {
7934
7934
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7935
7935
  }
7936
7936
  }
7937
- const re = new ra();
7938
- class sa extends h {
7937
+ const re = new oa();
7938
+ class aa extends h {
7939
7939
  constructor() {
7940
7940
  super("MiLaboratories.PL.API.SubscriptionAPI.DetachFilter", []);
7941
7941
  }
@@ -7963,8 +7963,8 @@ class sa extends h {
7963
7963
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
7964
7964
  }
7965
7965
  }
7966
- new sa();
7967
- class oa extends h {
7966
+ new aa();
7967
+ class la extends h {
7968
7968
  constructor() {
7969
7969
  super("MiLaboratories.PL.API.SubscriptionAPI.DetachFilter.Request", [
7970
7970
  {
@@ -8017,8 +8017,8 @@ class oa extends h {
8017
8017
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8018
8018
  }
8019
8019
  }
8020
- const se = new oa();
8021
- class aa extends h {
8020
+ const se = new la();
8021
+ class ca extends h {
8022
8022
  constructor() {
8023
8023
  super("MiLaboratories.PL.API.SubscriptionAPI.DetachFilter.Response", []);
8024
8024
  }
@@ -8046,8 +8046,8 @@ class aa extends h {
8046
8046
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8047
8047
  }
8048
8048
  }
8049
- const oe = new aa();
8050
- class la extends h {
8049
+ const oe = new ca();
8050
+ class ua extends h {
8051
8051
  constructor() {
8052
8052
  super("MiLaboratories.PL.API.ControllerAPI", []);
8053
8053
  }
@@ -8075,8 +8075,8 @@ class la extends h {
8075
8075
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8076
8076
  }
8077
8077
  }
8078
- new la();
8079
- class ca extends h {
8078
+ new ua();
8079
+ class fa extends h {
8080
8080
  constructor() {
8081
8081
  super("MiLaboratories.PL.API.ControllerAPI.Register", []);
8082
8082
  }
@@ -8104,8 +8104,8 @@ class ca extends h {
8104
8104
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8105
8105
  }
8106
8106
  }
8107
- new ca();
8108
- class ua extends h {
8107
+ new fa();
8108
+ class da extends h {
8109
8109
  constructor() {
8110
8110
  super("MiLaboratories.PL.API.ControllerAPI.Register.Request", [
8111
8111
  {
@@ -8177,8 +8177,8 @@ class ua extends h {
8177
8177
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8178
8178
  }
8179
8179
  }
8180
- const fa = new ua();
8181
- class da extends h {
8180
+ const ha = new da();
8181
+ class pa extends h {
8182
8182
  constructor() {
8183
8183
  super("MiLaboratories.PL.API.ControllerAPI.Register.Response", [
8184
8184
  {
@@ -8232,8 +8232,8 @@ class da extends h {
8232
8232
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8233
8233
  }
8234
8234
  }
8235
- const ha = new da();
8236
- class pa extends h {
8235
+ const ya = new pa();
8236
+ class wa extends h {
8237
8237
  constructor() {
8238
8238
  super("MiLaboratories.PL.API.ControllerAPI.Exists", []);
8239
8239
  }
@@ -8261,8 +8261,8 @@ class pa extends h {
8261
8261
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8262
8262
  }
8263
8263
  }
8264
- new pa();
8265
- class ya extends h {
8264
+ new wa();
8265
+ class ma extends h {
8266
8266
  constructor() {
8267
8267
  super("MiLaboratories.PL.API.ControllerAPI.Exists.Request", [
8268
8268
  {
@@ -8303,8 +8303,8 @@ class ya extends h {
8303
8303
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8304
8304
  }
8305
8305
  }
8306
- const wa = new ya();
8307
- class ma extends h {
8306
+ const ga = new ma();
8307
+ class ka extends h {
8308
8308
  constructor() {
8309
8309
  super("MiLaboratories.PL.API.ControllerAPI.Exists.Response", [
8310
8310
  {
@@ -8345,8 +8345,8 @@ class ma extends h {
8345
8345
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8346
8346
  }
8347
8347
  }
8348
- const ga = new ma();
8349
- class ka extends h {
8348
+ const ba = new ka();
8349
+ class Ta extends h {
8350
8350
  constructor() {
8351
8351
  super("MiLaboratories.PL.API.ControllerAPI.Update", []);
8352
8352
  }
@@ -8374,8 +8374,8 @@ class ka extends h {
8374
8374
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8375
8375
  }
8376
8376
  }
8377
- new ka();
8378
- class ba extends h {
8377
+ new Ta();
8378
+ class Ra extends h {
8379
8379
  constructor() {
8380
8380
  super("MiLaboratories.PL.API.ControllerAPI.Update.Request", [
8381
8381
  {
@@ -8447,8 +8447,8 @@ class ba extends h {
8447
8447
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8448
8448
  }
8449
8449
  }
8450
- const Ta = new ba();
8451
- class Ra extends h {
8450
+ const Ia = new Ra();
8451
+ class Pa extends h {
8452
8452
  constructor() {
8453
8453
  super("MiLaboratories.PL.API.ControllerAPI.Update.Response", []);
8454
8454
  }
@@ -8476,8 +8476,8 @@ class Ra extends h {
8476
8476
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8477
8477
  }
8478
8478
  }
8479
- const Ia = new Ra();
8480
- class Pa extends h {
8479
+ const Na = new Pa();
8480
+ class _a extends h {
8481
8481
  constructor() {
8482
8482
  super("MiLaboratories.PL.API.ControllerAPI.Deregister", []);
8483
8483
  }
@@ -8505,8 +8505,8 @@ class Pa extends h {
8505
8505
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8506
8506
  }
8507
8507
  }
8508
- new Pa();
8509
- class Na extends h {
8508
+ new _a();
8509
+ class La extends h {
8510
8510
  constructor() {
8511
8511
  super("MiLaboratories.PL.API.ControllerAPI.Deregister.Request", [
8512
8512
  {
@@ -8547,8 +8547,8 @@ class Na extends h {
8547
8547
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8548
8548
  }
8549
8549
  }
8550
- const _a = new Na();
8551
- class La extends h {
8550
+ const Aa = new La();
8551
+ class Ba extends h {
8552
8552
  constructor() {
8553
8553
  super("MiLaboratories.PL.API.ControllerAPI.Deregister.Response", []);
8554
8554
  }
@@ -8576,8 +8576,8 @@ class La extends h {
8576
8576
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8577
8577
  }
8578
8578
  }
8579
- const Aa = new La();
8580
- class Ba extends h {
8579
+ const $a = new Ba();
8580
+ class Ua extends h {
8581
8581
  constructor() {
8582
8582
  super("MiLaboratories.PL.API.ControllerAPI.Create", []);
8583
8583
  }
@@ -8605,8 +8605,8 @@ class Ba extends h {
8605
8605
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8606
8606
  }
8607
8607
  }
8608
- new Ba();
8609
- class $a extends h {
8608
+ new Ua();
8609
+ class Fa extends h {
8610
8610
  constructor() {
8611
8611
  super("MiLaboratories.PL.API.ControllerAPI.Create.Request", [
8612
8612
  {
@@ -8659,8 +8659,8 @@ class $a extends h {
8659
8659
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8660
8660
  }
8661
8661
  }
8662
- const Ua = new $a();
8663
- class Fa extends h {
8662
+ const Ea = new Fa();
8663
+ class xa extends h {
8664
8664
  constructor() {
8665
8665
  super("MiLaboratories.PL.API.ControllerAPI.Create.Response", [
8666
8666
  {
@@ -8702,8 +8702,8 @@ class Fa extends h {
8702
8702
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8703
8703
  }
8704
8704
  }
8705
- const Ea = new Fa();
8706
- class xa extends h {
8705
+ const Wa = new xa();
8706
+ class Sa extends h {
8707
8707
  constructor() {
8708
8708
  super("MiLaboratories.PL.API.ControllerAPI.Get", []);
8709
8709
  }
@@ -8731,8 +8731,8 @@ class xa extends h {
8731
8731
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8732
8732
  }
8733
8733
  }
8734
- new xa();
8735
- class Wa extends h {
8734
+ new Sa();
8735
+ class Ca extends h {
8736
8736
  constructor() {
8737
8737
  super("MiLaboratories.PL.API.ControllerAPI.Get.Request", [
8738
8738
  {
@@ -8773,8 +8773,8 @@ class Wa extends h {
8773
8773
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8774
8774
  }
8775
8775
  }
8776
- const Sa = new Wa();
8777
- class Ca extends h {
8776
+ const Da = new Ca();
8777
+ class va extends h {
8778
8778
  constructor() {
8779
8779
  super("MiLaboratories.PL.API.ControllerAPI.Get.Response", [
8780
8780
  { no: 1, name: "controller", kind: "message", T: () => Pe }
@@ -8809,8 +8809,8 @@ class Ca extends h {
8809
8809
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8810
8810
  }
8811
8811
  }
8812
- const Da = new Ca();
8813
- class va extends h {
8812
+ const Oa = new va();
8813
+ class qa extends h {
8814
8814
  constructor() {
8815
8815
  super("MiLaboratories.PL.API.ControllerAPI.AttachSubscription", []);
8816
8816
  }
@@ -8838,8 +8838,8 @@ class va extends h {
8838
8838
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8839
8839
  }
8840
8840
  }
8841
- new va();
8842
- class Oa extends h {
8841
+ new qa();
8842
+ class Ka extends h {
8843
8843
  constructor() {
8844
8844
  super("MiLaboratories.PL.API.ControllerAPI.AttachSubscription.Request", [
8845
8845
  {
@@ -8893,8 +8893,8 @@ class Oa extends h {
8893
8893
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8894
8894
  }
8895
8895
  }
8896
- const qa = new Oa();
8897
- class Ka extends h {
8896
+ const ja = new Ka();
8897
+ class Va extends h {
8898
8898
  constructor() {
8899
8899
  super("MiLaboratories.PL.API.ControllerAPI.AttachSubscription.Response", []);
8900
8900
  }
@@ -8922,8 +8922,8 @@ class Ka extends h {
8922
8922
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8923
8923
  }
8924
8924
  }
8925
- const ja = new Ka();
8926
- class Va extends h {
8925
+ const Ma = new Va();
8926
+ class Ga extends h {
8927
8927
  constructor() {
8928
8928
  super("MiLaboratories.PL.API.ControllerAPI.GetNotifications", []);
8929
8929
  }
@@ -8951,8 +8951,8 @@ class Va extends h {
8951
8951
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
8952
8952
  }
8953
8953
  }
8954
- new Va();
8955
- class Ma extends h {
8954
+ new Ga();
8955
+ class Ja extends h {
8956
8956
  constructor() {
8957
8957
  super("MiLaboratories.PL.API.ControllerAPI.GetNotifications.Request", [
8958
8958
  {
@@ -9004,8 +9004,8 @@ class Ma extends h {
9004
9004
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9005
9005
  }
9006
9006
  }
9007
- const Ga = new Ma();
9008
- class Ja extends h {
9007
+ const za = new Ja();
9008
+ class Ha extends h {
9009
9009
  constructor() {
9010
9010
  super("MiLaboratories.PL.API.ControllerAPI.GetNotifications.Response", [
9011
9011
  { no: 1, name: "notifications", kind: "message", repeat: 1, T: () => j }
@@ -9041,8 +9041,8 @@ class Ja extends h {
9041
9041
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9042
9042
  }
9043
9043
  }
9044
- const za = new Ja();
9045
- class Ha extends h {
9044
+ const Ya = new Ha();
9045
+ class Za extends h {
9046
9046
  constructor() {
9047
9047
  super("MiLaboratories.PL.API.ControllerAPI.WriteAliasesAndUrls", []);
9048
9048
  }
@@ -9070,8 +9070,8 @@ class Ha extends h {
9070
9070
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9071
9071
  }
9072
9072
  }
9073
- new Ha();
9074
- class Ya extends h {
9073
+ new Za();
9074
+ class Xa extends h {
9075
9075
  constructor() {
9076
9076
  super("MiLaboratories.PL.API.ControllerAPI.WriteAliasesAndUrls.Request", [
9077
9077
  {
@@ -9140,8 +9140,8 @@ class Ya extends h {
9140
9140
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9141
9141
  }
9142
9142
  }
9143
- const Za = new Ya();
9144
- class Xa extends h {
9143
+ const Qa = new Xa();
9144
+ class el extends h {
9145
9145
  constructor() {
9146
9146
  super("MiLaboratories.PL.API.ControllerAPI.WriteAliasesAndUrls.Response", []);
9147
9147
  }
@@ -9169,8 +9169,8 @@ class Xa extends h {
9169
9169
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9170
9170
  }
9171
9171
  }
9172
- const Qa = new Xa();
9173
- class el extends h {
9172
+ const tl = new el();
9173
+ class nl extends h {
9174
9174
  constructor() {
9175
9175
  super("MiLaboratories.PL.API.ControllerAPI.GetUrl", []);
9176
9176
  }
@@ -9198,8 +9198,8 @@ class el extends h {
9198
9198
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9199
9199
  }
9200
9200
  }
9201
- new el();
9202
- class tl extends h {
9201
+ new nl();
9202
+ class il extends h {
9203
9203
  constructor() {
9204
9204
  super("MiLaboratories.PL.API.ControllerAPI.GetUrl.Request", [
9205
9205
  {
@@ -9252,8 +9252,8 @@ class tl extends h {
9252
9252
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9253
9253
  }
9254
9254
  }
9255
- const nl = new tl();
9256
- class il extends h {
9255
+ const rl = new il();
9256
+ class sl extends h {
9257
9257
  constructor() {
9258
9258
  super("MiLaboratories.PL.API.ControllerAPI.GetUrl.Response", [
9259
9259
  {
@@ -9294,8 +9294,8 @@ class il extends h {
9294
9294
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9295
9295
  }
9296
9296
  }
9297
- const rl = new il();
9298
- class sl extends h {
9297
+ const ol = new sl();
9298
+ class al extends h {
9299
9299
  constructor() {
9300
9300
  super("MiLaboratories.PL.API.ControllerAPI.RemoveAliasesAndUrls", []);
9301
9301
  }
@@ -9323,8 +9323,8 @@ class sl extends h {
9323
9323
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9324
9324
  }
9325
9325
  }
9326
- new sl();
9327
- class ol extends h {
9326
+ new al();
9327
+ class ll extends h {
9328
9328
  constructor() {
9329
9329
  super("MiLaboratories.PL.API.ControllerAPI.RemoveAliasesAndUrls.Request", [
9330
9330
  {
@@ -9365,8 +9365,8 @@ class ol extends h {
9365
9365
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9366
9366
  }
9367
9367
  }
9368
- const al = new ol();
9369
- class ll extends h {
9368
+ const cl = new ll();
9369
+ class ul extends h {
9370
9370
  constructor() {
9371
9371
  super("MiLaboratories.PL.API.ControllerAPI.RemoveAliasesAndUrls.Response", []);
9372
9372
  }
@@ -9394,8 +9394,8 @@ class ll extends h {
9394
9394
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9395
9395
  }
9396
9396
  }
9397
- const cl = new ll();
9398
- class ul extends h {
9397
+ const fl = new ul();
9398
+ class dl extends h {
9399
9399
  constructor() {
9400
9400
  super("MiLaboratories.PL.API.ControllerAPI.SetFeatures", []);
9401
9401
  }
@@ -9423,8 +9423,8 @@ class ul extends h {
9423
9423
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9424
9424
  }
9425
9425
  }
9426
- new ul();
9427
- class fl extends h {
9426
+ new dl();
9427
+ class hl extends h {
9428
9428
  constructor() {
9429
9429
  super("MiLaboratories.PL.API.ControllerAPI.SetFeatures.Request", [
9430
9430
  { no: 2, name: "features", kind: "message", repeat: 1, T: () => _e }
@@ -9460,8 +9460,8 @@ class fl extends h {
9460
9460
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9461
9461
  }
9462
9462
  }
9463
- const ae = new fl();
9464
- class dl extends h {
9463
+ const ae = new hl();
9464
+ class pl extends h {
9465
9465
  constructor() {
9466
9466
  super("MiLaboratories.PL.API.ControllerAPI.SetFeatures.Response", []);
9467
9467
  }
@@ -9489,8 +9489,8 @@ class dl extends h {
9489
9489
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9490
9490
  }
9491
9491
  }
9492
- const le = new dl();
9493
- class hl extends h {
9492
+ const le = new pl();
9493
+ class yl extends h {
9494
9494
  constructor() {
9495
9495
  super("MiLaboratories.PL.API.ControllerAPI.ClearFeatures", []);
9496
9496
  }
@@ -9518,8 +9518,8 @@ class hl extends h {
9518
9518
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9519
9519
  }
9520
9520
  }
9521
- new hl();
9522
- class pl extends h {
9521
+ new yl();
9522
+ class wl extends h {
9523
9523
  constructor() {
9524
9524
  super("MiLaboratories.PL.API.ControllerAPI.ClearFeatures.Request", [
9525
9525
  {
@@ -9560,8 +9560,8 @@ class pl extends h {
9560
9560
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9561
9561
  }
9562
9562
  }
9563
- const ce = new pl();
9564
- class yl extends h {
9563
+ const ce = new wl();
9564
+ class ml extends h {
9565
9565
  constructor() {
9566
9566
  super("MiLaboratories.PL.API.ControllerAPI.ClearFeatures.Response", []);
9567
9567
  }
@@ -9589,8 +9589,8 @@ class yl extends h {
9589
9589
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9590
9590
  }
9591
9591
  }
9592
- const ue = new yl();
9593
- class wl extends h {
9592
+ const ue = new ml();
9593
+ class gl extends h {
9594
9594
  constructor() {
9595
9595
  super("MiLaboratories.PL.API.ResourceKVAPI", []);
9596
9596
  }
@@ -9618,8 +9618,8 @@ class wl extends h {
9618
9618
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9619
9619
  }
9620
9620
  }
9621
- new wl();
9622
- class ml extends h {
9621
+ new gl();
9622
+ class kl extends h {
9623
9623
  constructor() {
9624
9624
  super("MiLaboratories.PL.API.ResourceKVAPI.List", []);
9625
9625
  }
@@ -9647,8 +9647,8 @@ class ml extends h {
9647
9647
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9648
9648
  }
9649
9649
  }
9650
- new ml();
9651
- class gl extends h {
9650
+ new kl();
9651
+ class bl extends h {
9652
9652
  constructor() {
9653
9653
  super("MiLaboratories.PL.API.ResourceKVAPI.List.Request", [
9654
9654
  {
@@ -9712,8 +9712,8 @@ class gl extends h {
9712
9712
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9713
9713
  }
9714
9714
  }
9715
- const Jt = new gl();
9716
- class kl extends h {
9715
+ const Jt = new bl();
9716
+ class Tl extends h {
9717
9717
  constructor() {
9718
9718
  super("MiLaboratories.PL.API.ResourceKVAPI.List.Response", [
9719
9719
  { no: 1, name: "record", kind: "message", T: () => Ht },
@@ -9759,8 +9759,8 @@ class kl extends h {
9759
9759
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9760
9760
  }
9761
9761
  }
9762
- const zt = new kl();
9763
- class bl extends h {
9762
+ const zt = new Tl();
9763
+ class Rl extends h {
9764
9764
  constructor() {
9765
9765
  super("MiLaboratories.PL.API.ResourceKVAPI.List.Response.KV", [
9766
9766
  {
@@ -9812,8 +9812,8 @@ class bl extends h {
9812
9812
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9813
9813
  }
9814
9814
  }
9815
- const Ht = new bl();
9816
- class Tl extends h {
9815
+ const Ht = new Rl();
9816
+ class Il extends h {
9817
9817
  constructor() {
9818
9818
  super("MiLaboratories.PL.API.ResourceKVAPI.Set", []);
9819
9819
  }
@@ -9841,8 +9841,8 @@ class Tl extends h {
9841
9841
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9842
9842
  }
9843
9843
  }
9844
- new Tl();
9845
- class Rl extends h {
9844
+ new Il();
9845
+ class Pl extends h {
9846
9846
  constructor() {
9847
9847
  super("MiLaboratories.PL.API.ResourceKVAPI.Set.Request", [
9848
9848
  {
@@ -9906,8 +9906,8 @@ class Rl extends h {
9906
9906
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9907
9907
  }
9908
9908
  }
9909
- const Yt = new Rl();
9910
- class Il extends h {
9909
+ const Yt = new Pl();
9910
+ class Nl extends h {
9911
9911
  constructor() {
9912
9912
  super("MiLaboratories.PL.API.ResourceKVAPI.Set.Response", []);
9913
9913
  }
@@ -9935,8 +9935,8 @@ class Il extends h {
9935
9935
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9936
9936
  }
9937
9937
  }
9938
- const Zt = new Il();
9939
- class Pl extends h {
9938
+ const Zt = new Nl();
9939
+ class _l extends h {
9940
9940
  constructor() {
9941
9941
  super("MiLaboratories.PL.API.ResourceKVAPI.Get", []);
9942
9942
  }
@@ -9964,8 +9964,8 @@ class Pl extends h {
9964
9964
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
9965
9965
  }
9966
9966
  }
9967
- new Pl();
9968
- class Nl extends h {
9967
+ new _l();
9968
+ class Ll extends h {
9969
9969
  constructor() {
9970
9970
  super("MiLaboratories.PL.API.ResourceKVAPI.Get.Request", [
9971
9971
  {
@@ -10018,8 +10018,8 @@ class Nl extends h {
10018
10018
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10019
10019
  }
10020
10020
  }
10021
- const Xt = new Nl();
10022
- class _l extends h {
10021
+ const Xt = new Ll();
10022
+ class Al extends h {
10023
10023
  constructor() {
10024
10024
  super("MiLaboratories.PL.API.ResourceKVAPI.Get.Response", [
10025
10025
  {
@@ -10060,8 +10060,8 @@ class _l extends h {
10060
10060
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10061
10061
  }
10062
10062
  }
10063
- const Qt = new _l();
10064
- class Ll extends h {
10063
+ const Qt = new Al();
10064
+ class Bl extends h {
10065
10065
  constructor() {
10066
10066
  super("MiLaboratories.PL.API.ResourceKVAPI.GetIfExists", []);
10067
10067
  }
@@ -10089,8 +10089,8 @@ class Ll extends h {
10089
10089
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10090
10090
  }
10091
10091
  }
10092
- new Ll();
10093
- class Al extends h {
10092
+ new Bl();
10093
+ class $l extends h {
10094
10094
  constructor() {
10095
10095
  super("MiLaboratories.PL.API.ResourceKVAPI.GetIfExists.Request", [
10096
10096
  {
@@ -10143,8 +10143,8 @@ class Al extends h {
10143
10143
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10144
10144
  }
10145
10145
  }
10146
- const en = new Al();
10147
- class Bl extends h {
10146
+ const en = new $l();
10147
+ class Ul extends h {
10148
10148
  constructor() {
10149
10149
  super("MiLaboratories.PL.API.ResourceKVAPI.GetIfExists.Response", [
10150
10150
  {
@@ -10196,8 +10196,8 @@ class Bl extends h {
10196
10196
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10197
10197
  }
10198
10198
  }
10199
- const tn = new Bl();
10200
- class $l extends h {
10199
+ const tn = new Ul();
10200
+ class Fl extends h {
10201
10201
  constructor() {
10202
10202
  super("MiLaboratories.PL.API.ResourceKVAPI.Delete", []);
10203
10203
  }
@@ -10225,8 +10225,8 @@ class $l extends h {
10225
10225
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10226
10226
  }
10227
10227
  }
10228
- new $l();
10229
- class Ul extends h {
10228
+ new Fl();
10229
+ class El extends h {
10230
10230
  constructor() {
10231
10231
  super("MiLaboratories.PL.API.ResourceKVAPI.Delete.Request", [
10232
10232
  {
@@ -10279,8 +10279,8 @@ class Ul extends h {
10279
10279
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10280
10280
  }
10281
10281
  }
10282
- const nn = new Ul();
10283
- class Fl extends h {
10282
+ const nn = new El();
10283
+ class xl extends h {
10284
10284
  constructor() {
10285
10285
  super("MiLaboratories.PL.API.ResourceKVAPI.Delete.Response", []);
10286
10286
  }
@@ -10308,8 +10308,8 @@ class Fl extends h {
10308
10308
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10309
10309
  }
10310
10310
  }
10311
- const rn = new Fl();
10312
- class El extends h {
10311
+ const rn = new xl();
10312
+ class Wl extends h {
10313
10313
  constructor() {
10314
10314
  super("MiLaboratories.PL.API.ResourceKVAPI.SetFlag", []);
10315
10315
  }
@@ -10337,8 +10337,8 @@ class El extends h {
10337
10337
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10338
10338
  }
10339
10339
  }
10340
- new El();
10341
- class xl extends h {
10340
+ new Wl();
10341
+ class Sl extends h {
10342
10342
  constructor() {
10343
10343
  super("MiLaboratories.PL.API.ResourceKVAPI.SetFlag.Request", [
10344
10344
  {
@@ -10402,8 +10402,8 @@ class xl extends h {
10402
10402
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10403
10403
  }
10404
10404
  }
10405
- const sn = new xl();
10406
- class Wl extends h {
10405
+ const sn = new Sl();
10406
+ class Cl extends h {
10407
10407
  constructor() {
10408
10408
  super("MiLaboratories.PL.API.ResourceKVAPI.SetFlag.Response", []);
10409
10409
  }
@@ -10431,8 +10431,8 @@ class Wl extends h {
10431
10431
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10432
10432
  }
10433
10433
  }
10434
- const on = new Wl();
10435
- class Sl extends h {
10434
+ const on = new Cl();
10435
+ class Dl extends h {
10436
10436
  constructor() {
10437
10437
  super("MiLaboratories.PL.API.ResourceKVAPI.GetFlag", []);
10438
10438
  }
@@ -10460,8 +10460,8 @@ class Sl extends h {
10460
10460
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10461
10461
  }
10462
10462
  }
10463
- new Sl();
10464
- class Cl extends h {
10463
+ new Dl();
10464
+ class vl extends h {
10465
10465
  constructor() {
10466
10466
  super("MiLaboratories.PL.API.ResourceKVAPI.GetFlag.Request", [
10467
10467
  {
@@ -10514,8 +10514,8 @@ class Cl extends h {
10514
10514
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10515
10515
  }
10516
10516
  }
10517
- const D = new Cl();
10518
- class Dl extends h {
10517
+ const v = new vl();
10518
+ class Ol extends h {
10519
10519
  constructor() {
10520
10520
  super("MiLaboratories.PL.API.ResourceKVAPI.GetFlag.Response", [
10521
10521
  {
@@ -10556,8 +10556,8 @@ class Dl extends h {
10556
10556
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10557
10557
  }
10558
10558
  }
10559
- const v = new Dl();
10560
- class vl extends h {
10559
+ const O = new Ol();
10560
+ class ql extends h {
10561
10561
  constructor() {
10562
10562
  super("MiLaboratories.PL.API.ControllerKVAPI", []);
10563
10563
  }
@@ -10585,8 +10585,8 @@ class vl extends h {
10585
10585
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10586
10586
  }
10587
10587
  }
10588
- new vl();
10589
- class Ol extends h {
10588
+ new ql();
10589
+ class Kl extends h {
10590
10590
  constructor() {
10591
10591
  super("MiLaboratories.PL.API.ControllerKVAPI.Set", []);
10592
10592
  }
@@ -10614,8 +10614,8 @@ class Ol extends h {
10614
10614
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10615
10615
  }
10616
10616
  }
10617
- new Ol();
10618
- class ql extends h {
10617
+ new Kl();
10618
+ class jl extends h {
10619
10619
  constructor() {
10620
10620
  super("MiLaboratories.PL.API.ControllerKVAPI.Set.Request", [
10621
10621
  {
@@ -10678,8 +10678,8 @@ class ql extends h {
10678
10678
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10679
10679
  }
10680
10680
  }
10681
- const an = new ql();
10682
- class Kl extends h {
10681
+ const an = new jl();
10682
+ class Vl extends h {
10683
10683
  constructor() {
10684
10684
  super("MiLaboratories.PL.API.ControllerKVAPI.Set.Response", []);
10685
10685
  }
@@ -10707,8 +10707,8 @@ class Kl extends h {
10707
10707
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10708
10708
  }
10709
10709
  }
10710
- const ln = new Kl();
10711
- class jl extends h {
10710
+ const ln = new Vl();
10711
+ class Ml extends h {
10712
10712
  constructor() {
10713
10713
  super("MiLaboratories.PL.API.ControllerKVAPI.Get", []);
10714
10714
  }
@@ -10736,8 +10736,8 @@ class jl extends h {
10736
10736
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10737
10737
  }
10738
10738
  }
10739
- new jl();
10740
- class Vl extends h {
10739
+ new Ml();
10740
+ class Gl extends h {
10741
10741
  constructor() {
10742
10742
  super("MiLaboratories.PL.API.ControllerKVAPI.Get.Request", [
10743
10743
  {
@@ -10789,8 +10789,8 @@ class Vl extends h {
10789
10789
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10790
10790
  }
10791
10791
  }
10792
- const cn = new Vl();
10793
- class Ml extends h {
10792
+ const cn = new Gl();
10793
+ class Jl extends h {
10794
10794
  constructor() {
10795
10795
  super("MiLaboratories.PL.API.ControllerKVAPI.Get.Response", [
10796
10796
  {
@@ -10831,8 +10831,8 @@ class Ml extends h {
10831
10831
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10832
10832
  }
10833
10833
  }
10834
- const un = new Ml();
10835
- class Gl extends h {
10834
+ const un = new Jl();
10835
+ class zl extends h {
10836
10836
  constructor() {
10837
10837
  super("MiLaboratories.PL.API.ControllerKVAPI.GetIfExists", []);
10838
10838
  }
@@ -10860,8 +10860,8 @@ class Gl extends h {
10860
10860
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10861
10861
  }
10862
10862
  }
10863
- new Gl();
10864
- class Jl extends h {
10863
+ new zl();
10864
+ class Hl extends h {
10865
10865
  constructor() {
10866
10866
  super("MiLaboratories.PL.API.ControllerKVAPI.GetIfExists.Request", [
10867
10867
  {
@@ -10913,8 +10913,8 @@ class Jl extends h {
10913
10913
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10914
10914
  }
10915
10915
  }
10916
- const fn = new Jl();
10917
- class zl extends h {
10916
+ const fn = new Hl();
10917
+ class Yl extends h {
10918
10918
  constructor() {
10919
10919
  super("MiLaboratories.PL.API.ControllerKVAPI.GetIfExists.Response", [
10920
10920
  {
@@ -10966,8 +10966,8 @@ class zl extends h {
10966
10966
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10967
10967
  }
10968
10968
  }
10969
- const dn = new zl();
10970
- class Hl extends h {
10969
+ const dn = new Yl();
10970
+ class Zl extends h {
10971
10971
  constructor() {
10972
10972
  super("MiLaboratories.PL.API.CacheAPI", []);
10973
10973
  }
@@ -10995,8 +10995,8 @@ class Hl extends h {
10995
10995
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
10996
10996
  }
10997
10997
  }
10998
- new Hl();
10999
- class Yl extends h {
10998
+ new Zl();
10999
+ class Xl extends h {
11000
11000
  constructor() {
11001
11001
  super("MiLaboratories.PL.API.CacheAPI.SetToField", []);
11002
11002
  }
@@ -11024,8 +11024,8 @@ class Yl extends h {
11024
11024
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11025
11025
  }
11026
11026
  }
11027
- new Yl();
11028
- class Zl extends h {
11027
+ new Xl();
11028
+ class Ql extends h {
11029
11029
  constructor() {
11030
11030
  super("MiLaboratories.PL.API.CacheAPI.SetToField.Request", [
11031
11031
  { no: 1, name: "id", kind: "message", T: () => m },
@@ -11065,8 +11065,8 @@ class Zl extends h {
11065
11065
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11066
11066
  }
11067
11067
  }
11068
- const hn = new Zl();
11069
- class Xl extends h {
11068
+ const hn = new Ql();
11069
+ class ec extends h {
11070
11070
  constructor() {
11071
11071
  super("MiLaboratories.PL.API.CacheAPI.SetToField.Response", []);
11072
11072
  }
@@ -11094,8 +11094,8 @@ class Xl extends h {
11094
11094
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11095
11095
  }
11096
11096
  }
11097
- const pn = new Xl();
11098
- class Ql extends h {
11097
+ const pn = new ec();
11098
+ class tc extends h {
11099
11099
  constructor() {
11100
11100
  super("MiLaboratories.PL.API.CacheAPI.DeleteExpiredRecords", []);
11101
11101
  }
@@ -11123,8 +11123,8 @@ class Ql extends h {
11123
11123
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11124
11124
  }
11125
11125
  }
11126
- new Ql();
11127
- class ec extends h {
11126
+ new tc();
11127
+ class nc extends h {
11128
11128
  constructor() {
11129
11129
  super("MiLaboratories.PL.API.CacheAPI.DeleteExpiredRecords.Request", []);
11130
11130
  }
@@ -11152,8 +11152,8 @@ class ec extends h {
11152
11152
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11153
11153
  }
11154
11154
  }
11155
- const yn = new ec();
11156
- class tc extends h {
11155
+ const yn = new nc();
11156
+ class ic extends h {
11157
11157
  constructor() {
11158
11158
  super("MiLaboratories.PL.API.CacheAPI.DeleteExpiredRecords.Response", []);
11159
11159
  }
@@ -11181,8 +11181,8 @@ class tc extends h {
11181
11181
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11182
11182
  }
11183
11183
  }
11184
- const wn = new tc();
11185
- class nc extends h {
11184
+ const wn = new ic();
11185
+ class rc extends h {
11186
11186
  constructor() {
11187
11187
  super("MiLaboratories.PL.API.LocksAPI", []);
11188
11188
  }
@@ -11210,8 +11210,8 @@ class nc extends h {
11210
11210
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11211
11211
  }
11212
11212
  }
11213
- new nc();
11214
- class ic extends h {
11213
+ new rc();
11214
+ class sc extends h {
11215
11215
  constructor() {
11216
11216
  super("MiLaboratories.PL.API.LocksAPI.Lease", []);
11217
11217
  }
@@ -11239,8 +11239,8 @@ class ic extends h {
11239
11239
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11240
11240
  }
11241
11241
  }
11242
- new ic();
11243
- class rc extends h {
11242
+ new sc();
11243
+ class oc extends h {
11244
11244
  constructor() {
11245
11245
  super("MiLaboratories.PL.API.LocksAPI.Lease.Create", []);
11246
11246
  }
@@ -11268,8 +11268,8 @@ class rc extends h {
11268
11268
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11269
11269
  }
11270
11270
  }
11271
- new rc();
11272
- class sc extends h {
11271
+ new oc();
11272
+ class ac extends h {
11273
11273
  constructor() {
11274
11274
  super("MiLaboratories.PL.API.LocksAPI.Lease.Create.Request", [
11275
11275
  {
@@ -11327,8 +11327,8 @@ class sc extends h {
11327
11327
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11328
11328
  }
11329
11329
  }
11330
- const oc = new sc();
11331
- class ac extends h {
11330
+ const lc = new ac();
11331
+ class cc extends h {
11332
11332
  constructor() {
11333
11333
  super("MiLaboratories.PL.API.LocksAPI.Lease.Create.Response", [
11334
11334
  {
@@ -11369,8 +11369,8 @@ class ac extends h {
11369
11369
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11370
11370
  }
11371
11371
  }
11372
- const lc = new ac();
11373
- class cc extends h {
11372
+ const uc = new cc();
11373
+ class fc extends h {
11374
11374
  constructor() {
11375
11375
  super("MiLaboratories.PL.API.LocksAPI.Lease.Update", []);
11376
11376
  }
@@ -11398,8 +11398,8 @@ class cc extends h {
11398
11398
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11399
11399
  }
11400
11400
  }
11401
- new cc();
11402
- class uc extends h {
11401
+ new fc();
11402
+ class dc extends h {
11403
11403
  constructor() {
11404
11404
  super("MiLaboratories.PL.API.LocksAPI.Lease.Update.Request", [
11405
11405
  {
@@ -11468,8 +11468,8 @@ class uc extends h {
11468
11468
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11469
11469
  }
11470
11470
  }
11471
- const fc = new uc();
11472
- class dc extends h {
11471
+ const hc = new dc();
11472
+ class pc extends h {
11473
11473
  constructor() {
11474
11474
  super("MiLaboratories.PL.API.LocksAPI.Lease.Update.Response", []);
11475
11475
  }
@@ -11497,8 +11497,8 @@ class dc extends h {
11497
11497
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11498
11498
  }
11499
11499
  }
11500
- const hc = new dc();
11501
- class pc extends h {
11500
+ const yc = new pc();
11501
+ class wc extends h {
11502
11502
  constructor() {
11503
11503
  super("MiLaboratories.PL.API.LocksAPI.Lease.Release", []);
11504
11504
  }
@@ -11526,8 +11526,8 @@ class pc extends h {
11526
11526
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11527
11527
  }
11528
11528
  }
11529
- new pc();
11530
- class yc extends h {
11529
+ new wc();
11530
+ class mc extends h {
11531
11531
  constructor() {
11532
11532
  super("MiLaboratories.PL.API.LocksAPI.Lease.Release.Request", [
11533
11533
  {
@@ -11580,8 +11580,8 @@ class yc extends h {
11580
11580
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11581
11581
  }
11582
11582
  }
11583
- const wc = new yc();
11584
- class mc extends h {
11583
+ const gc = new mc();
11584
+ class kc extends h {
11585
11585
  constructor() {
11586
11586
  super("MiLaboratories.PL.API.LocksAPI.Lease.Release.Response", []);
11587
11587
  }
@@ -11609,8 +11609,8 @@ class mc extends h {
11609
11609
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11610
11610
  }
11611
11611
  }
11612
- const gc = new mc();
11613
- class kc extends h {
11612
+ const bc = new kc();
11613
+ class Tc extends h {
11614
11614
  constructor() {
11615
11615
  super("MiLaboratories.PL.API.AuthAPI", []);
11616
11616
  }
@@ -11638,8 +11638,8 @@ class kc extends h {
11638
11638
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11639
11639
  }
11640
11640
  }
11641
- new kc();
11642
- class bc extends h {
11641
+ new Tc();
11642
+ class Rc extends h {
11643
11643
  constructor() {
11644
11644
  super("MiLaboratories.PL.API.AuthAPI.ListMethods", []);
11645
11645
  }
@@ -11667,8 +11667,8 @@ class bc extends h {
11667
11667
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11668
11668
  }
11669
11669
  }
11670
- new bc();
11671
- class Tc extends h {
11670
+ new Rc();
11671
+ class Ic extends h {
11672
11672
  constructor() {
11673
11673
  super("MiLaboratories.PL.API.AuthAPI.ListMethods.Request", []);
11674
11674
  }
@@ -11696,8 +11696,8 @@ class Tc extends h {
11696
11696
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11697
11697
  }
11698
11698
  }
11699
- const Rc = new Tc();
11700
- class Ic extends h {
11699
+ const Pc = new Ic();
11700
+ class Nc extends h {
11701
11701
  constructor() {
11702
11702
  super("MiLaboratories.PL.API.AuthAPI.ListMethods.Response", [
11703
11703
  { no: 1, name: "methods", kind: "message", repeat: 1, T: () => mn }
@@ -11733,8 +11733,8 @@ class Ic extends h {
11733
11733
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11734
11734
  }
11735
11735
  }
11736
- const Pc = new Ic();
11737
- class Nc extends h {
11736
+ const _c = new Nc();
11737
+ class Lc extends h {
11738
11738
  constructor() {
11739
11739
  super("MiLaboratories.PL.API.AuthAPI.ListMethods.MethodInfo", [
11740
11740
  {
@@ -11814,8 +11814,8 @@ class Nc extends h {
11814
11814
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11815
11815
  }
11816
11816
  }
11817
- const mn = new Nc();
11818
- class _c extends h {
11817
+ const mn = new Lc();
11818
+ class Ac extends h {
11819
11819
  constructor() {
11820
11820
  super("MiLaboratories.PL.API.AuthAPI.GetJWTToken", []);
11821
11821
  }
@@ -11843,8 +11843,8 @@ class _c extends h {
11843
11843
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11844
11844
  }
11845
11845
  }
11846
- new _c();
11847
- class Lc extends h {
11846
+ new Ac();
11847
+ class Bc extends h {
11848
11848
  constructor() {
11849
11849
  super("MiLaboratories.PL.API.AuthAPI.GetJWTToken.Request", [
11850
11850
  { no: 1, name: "expiration", kind: "message", T: () => P }
@@ -11879,8 +11879,8 @@ class Lc extends h {
11879
11879
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11880
11880
  }
11881
11881
  }
11882
- const Ac = new Lc();
11883
- class Bc extends h {
11882
+ const $c = new Bc();
11883
+ class Uc extends h {
11884
11884
  constructor() {
11885
11885
  super("MiLaboratories.PL.API.AuthAPI.GetJWTToken.Response", [
11886
11886
  {
@@ -11921,8 +11921,8 @@ class Bc extends h {
11921
11921
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11922
11922
  }
11923
11923
  }
11924
- const $c = new Bc();
11925
- class Uc extends h {
11924
+ const Fc = new Uc();
11925
+ class Ec extends h {
11926
11926
  constructor() {
11927
11927
  super("MiLaboratories.PL.API.MiscAPI", []);
11928
11928
  }
@@ -11950,8 +11950,8 @@ class Uc extends h {
11950
11950
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11951
11951
  }
11952
11952
  }
11953
- new Uc();
11954
- class Fc extends h {
11953
+ new Ec();
11954
+ class xc extends h {
11955
11955
  constructor() {
11956
11956
  super("MiLaboratories.PL.API.MiscAPI.ListResourceTypes", []);
11957
11957
  }
@@ -11979,8 +11979,8 @@ class Fc extends h {
11979
11979
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
11980
11980
  }
11981
11981
  }
11982
- new Fc();
11983
- class Ec extends h {
11982
+ new xc();
11983
+ class Wc extends h {
11984
11984
  constructor() {
11985
11985
  super("MiLaboratories.PL.API.MiscAPI.ListResourceTypes.Request", []);
11986
11986
  }
@@ -12008,8 +12008,8 @@ class Ec extends h {
12008
12008
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
12009
12009
  }
12010
12010
  }
12011
- const xc = new Ec();
12012
- class Wc extends h {
12011
+ const Sc = new Wc();
12012
+ class Cc extends h {
12013
12013
  constructor() {
12014
12014
  super("MiLaboratories.PL.API.MiscAPI.ListResourceTypes.Response", [
12015
12015
  { no: 1, name: "types", kind: "message", repeat: 1, T: () => w }
@@ -12045,8 +12045,8 @@ class Wc extends h {
12045
12045
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
12046
12046
  }
12047
12047
  }
12048
- const Sc = new Wc();
12049
- class Cc extends h {
12048
+ const Dc = new Cc();
12049
+ class vc extends h {
12050
12050
  constructor() {
12051
12051
  super("MiLaboratories.PL.API.MaintenanceAPI", []);
12052
12052
  }
@@ -12074,8 +12074,8 @@ class Cc extends h {
12074
12074
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
12075
12075
  }
12076
12076
  }
12077
- new Cc();
12078
- class Dc extends h {
12077
+ new vc();
12078
+ class Oc extends h {
12079
12079
  constructor() {
12080
12080
  super("MiLaboratories.PL.API.MaintenanceAPI.Ping", []);
12081
12081
  }
@@ -12103,8 +12103,8 @@ class Dc extends h {
12103
12103
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
12104
12104
  }
12105
12105
  }
12106
- new Dc();
12107
- class vc extends h {
12106
+ new Oc();
12107
+ class qc extends h {
12108
12108
  constructor() {
12109
12109
  super("MiLaboratories.PL.API.MaintenanceAPI.Ping.Request", []);
12110
12110
  }
@@ -12132,8 +12132,8 @@ class vc extends h {
12132
12132
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
12133
12133
  }
12134
12134
  }
12135
- const Oc = new vc();
12136
- class qc extends h {
12135
+ const Kc = new qc();
12136
+ class jc extends h {
12137
12137
  constructor() {
12138
12138
  super("MiLaboratories.PL.API.MaintenanceAPI.Ping.Response", [
12139
12139
  {
@@ -12201,106 +12201,106 @@ class qc extends h {
12201
12201
  return n !== !1 && (n == !0 ? f.onWrite : n)(this.typeName, e, t), t;
12202
12202
  }
12203
12203
  }
12204
- const Kc = new qc(), gn = new Hi("MiLaboratories.PL.API.Platform", [
12205
- { name: "Tx", serverStreaming: !0, clientStreaming: !0, options: {}, I: Sr, O: Dr },
12206
- { name: "TxSync", options: {}, I: Zr, O: Qr },
12204
+ const Vc = new jc(), gn = new Yi("MiLaboratories.PL.API.Platform", [
12205
+ { name: "Tx", serverStreaming: !0, clientStreaming: !0, options: {}, I: Dr, O: Or },
12206
+ { name: "TxSync", options: {}, I: Qr, O: ts },
12207
12207
  { name: "SubscriptionAttachFilter", options: {}, I: ie, O: re },
12208
12208
  { name: "SubscriptionDetachFilter", options: {}, I: se, O: oe },
12209
12209
  { name: "NotificationsGet", options: {}, I: te, O: ne },
12210
- { name: "ControllerRegister", options: {}, I: fa, O: ha },
12211
- { name: "ControllerDeregister", options: {}, I: _a, O: Aa },
12212
- { name: "ControllerCreate", options: {}, I: Ua, O: Ea },
12213
- { name: "ControllerExists", options: {}, I: wa, O: ga },
12214
- { name: "ControllerGet", options: {}, I: Sa, O: Da },
12215
- { name: "ControllerUpdate", options: {}, I: Ta, O: Ia },
12216
- { name: "ControllerAttachSubscription", options: {}, I: qa, O: ja },
12217
- { name: "GetControllerNotifications", options: {}, I: Ga, O: za },
12218
- { name: "WriteControllerAliasesAndUrls", options: {}, I: Za, O: Qa },
12219
- { name: "RemoveControllerAliasesAndUrls", options: {}, I: al, O: cl },
12220
- { name: "GetControllerUrl", options: {}, I: nl, O: rl },
12210
+ { name: "ControllerRegister", options: {}, I: ha, O: ya },
12211
+ { name: "ControllerDeregister", options: {}, I: Aa, O: $a },
12212
+ { name: "ControllerCreate", options: {}, I: Ea, O: Wa },
12213
+ { name: "ControllerExists", options: {}, I: ga, O: ba },
12214
+ { name: "ControllerGet", options: {}, I: Da, O: Oa },
12215
+ { name: "ControllerUpdate", options: {}, I: Ia, O: Na },
12216
+ { name: "ControllerAttachSubscription", options: {}, I: ja, O: Ma },
12217
+ { name: "GetControllerNotifications", options: {}, I: za, O: Ya },
12218
+ { name: "WriteControllerAliasesAndUrls", options: {}, I: Qa, O: tl },
12219
+ { name: "RemoveControllerAliasesAndUrls", options: {}, I: cl, O: fl },
12220
+ { name: "GetControllerUrl", options: {}, I: rl, O: ol },
12221
12221
  { name: "ControllerSetFeatures", options: {}, I: ae, O: le },
12222
12222
  { name: "ControllerClearFeatures", options: {}, I: ce, O: ue },
12223
- { name: "LeaseResource", options: {}, I: oc, O: lc },
12224
- { name: "UpdateLease", options: {}, I: fc, O: hc },
12225
- { name: "ReleaseLease", options: {}, I: wc, O: gc },
12226
- { name: "AuthMethods", options: {}, I: Rc, O: Pc },
12227
- { name: "GetJWTToken", options: {}, I: Ac, O: $c },
12228
- { name: "ListResourceTypes", options: {}, I: xc, O: Sc },
12229
- { name: "Ping", options: {}, I: Oc, O: Kc }
12223
+ { name: "LeaseResource", options: {}, I: lc, O: uc },
12224
+ { name: "UpdateLease", options: {}, I: hc, O: yc },
12225
+ { name: "ReleaseLease", options: {}, I: gc, O: bc },
12226
+ { name: "AuthMethods", options: {}, I: Pc, O: _c },
12227
+ { name: "GetJWTToken", options: {}, I: $c, O: Fc },
12228
+ { name: "ListResourceTypes", options: {}, I: Sc, O: Dc },
12229
+ { name: "Ping", options: {}, I: Kc, O: Vc }
12230
12230
  ]);
12231
- function jc(l) {
12231
+ function Mc(l) {
12232
12232
  return l instanceof ArrayBuffer || ArrayBuffer.isView(l);
12233
12233
  }
12234
- function Vc(l) {
12234
+ function Gc(l) {
12235
12235
  if (typeof l == "string") return Buffer.from(l);
12236
- if (jc(l)) return l;
12236
+ if (Mc(l)) return l;
12237
12237
  throw new Error(`Unexpected type: ${l}`);
12238
12238
  }
12239
- function _i(l, e = !1) {
12240
- return l instanceof Ui || l.name == "RpcError" && l.code == "UNAVAILABLE" ? !0 : l.cause !== void 0 && !e ? _i(l.cause, !0) : !1;
12241
- }
12242
12239
  function Li(l, e = !1) {
12243
- return l instanceof En || l.name == "RpcError" && l.code == "UNAUTHENTICATED" ? !0 : l.cause !== void 0 && !e ? Li(l.cause, !0) : !1;
12240
+ return l instanceof Fi || l.name == "RpcError" && l.code == "UNAVAILABLE" ? !0 : l.cause !== void 0 && !e ? Li(l.cause, !0) : !1;
12244
12241
  }
12245
12242
  function Ai(l, e = !1) {
12246
- return l instanceof pi || l.name == "AbortError" || l.code == "ABORT_ERR" || l.name == "RpcError" && (l.code == "CANCELLED" || l.code == "DEADLINE_EXCEEDED") ? !0 : l.cause !== void 0 && !e ? Ai(l.cause, !0) : !1;
12243
+ return l instanceof En || l.name == "RpcError" && l.code == "UNAUTHENTICATED" ? !0 : l.cause !== void 0 && !e ? Ai(l.cause, !0) : !1;
12244
+ }
12245
+ function Bi(l, e = !1) {
12246
+ return l instanceof yi || l.name == "AbortError" || l.code == "ABORT_ERR" || l.name == "RpcError" && (l.code == "CANCELLED" || l.code == "DEADLINE_EXCEEDED") ? !0 : l.cause !== void 0 && !e ? Bi(l.cause, !0) : !1;
12247
12247
  }
12248
12248
  const Un = 5;
12249
- class Bi extends Error {
12249
+ class $i extends Error {
12250
12250
  constructor(e) {
12251
12251
  super(`code=${e.code} ${e.message}`), this.status = e;
12252
12252
  }
12253
12253
  }
12254
- function Mc(l) {
12254
+ function Jc(l) {
12255
12255
  throw new Fn({ code: Un, message: l, details: [] });
12256
12256
  }
12257
- class Fn extends Bi {
12257
+ class Fn extends $i {
12258
12258
  constructor(e) {
12259
12259
  super(e);
12260
12260
  }
12261
12261
  }
12262
- class Gc extends Bi {
12262
+ class zc extends $i {
12263
12263
  constructor(e) {
12264
12264
  super(e);
12265
12265
  }
12266
12266
  }
12267
- function $i(l, e = !1) {
12268
- return l.name == "RpcError" && l.code == "NOT_FOUND" ? !0 : l.cause !== void 0 && !e ? $i(l.cause, !0) : l instanceof Fn && l.status.code === Un;
12267
+ function Ui(l, e = !1) {
12268
+ return l.name == "RpcError" && l.code == "NOT_FOUND" ? !0 : l.cause !== void 0 && !e ? Ui(l.cause, !0) : l instanceof Fn && l.status.code === Un;
12269
12269
  }
12270
12270
  class En extends Error {
12271
12271
  constructor(e) {
12272
12272
  super("LoginFailed: " + e);
12273
12273
  }
12274
12274
  }
12275
- class Ui extends Error {
12275
+ class Fi extends Error {
12276
12276
  constructor(e) {
12277
12277
  super("Disconnected: " + e);
12278
12278
  }
12279
12279
  }
12280
- function Jc(l, e = !1) {
12281
- throw Li(l) ? new En(l.message) : _i(l) ? new Ui(l.message) : Ai(l) ? new pi(l) : e ? new Error(l.message, { cause: l }) : l;
12280
+ function Hc(l, e = !1) {
12281
+ throw Ai(l) ? new En(l.message) : Li(l) ? new Fi(l.message) : Bi(l) ? new yi(l) : e ? new Error(l.message, { cause: l }) : l;
12282
12282
  }
12283
- const Fi = "resourceError";
12284
- function zc(l) {
12283
+ const Ei = "resourceError";
12284
+ function Yc(l) {
12285
12285
  return l.deletedTime !== void 0 && l.deletedTime.seconds !== 0n;
12286
12286
  }
12287
12287
  function Yn(l) {
12288
12288
  var e;
12289
- return zc(l) && Mc("resource deleted"), {
12289
+ return Yc(l) && Jc("resource deleted"), {
12290
12290
  id: l.id,
12291
12291
  originalResourceId: l.originalResourceId,
12292
- type: I(l.type),
12292
+ type: T(l.type),
12293
12293
  data: l.data,
12294
12294
  inputsLocked: l.inputsLocked,
12295
12295
  outputsLocked: l.outputsLocked,
12296
12296
  resourceReady: l.resourceReady,
12297
- kind: Hc(l.kind),
12298
- error: Yc(l),
12297
+ kind: Zc(l.kind),
12298
+ error: Xc(l),
12299
12299
  final: l.isFinal,
12300
- fields: (e = l.fields) == null ? void 0 : e.filter((t) => t.id.fieldName !== Fi).map(Ei)
12300
+ fields: (e = l.fields) == null ? void 0 : e.filter((t) => t.id.fieldName !== Ei).map(xi)
12301
12301
  };
12302
12302
  }
12303
- function Hc(l) {
12303
+ function Zc(l) {
12304
12304
  switch (l) {
12305
12305
  case he.STRUCTURAL:
12306
12306
  return "Structural";
@@ -12309,25 +12309,25 @@ function Hc(l) {
12309
12309
  }
12310
12310
  throw new Error("invalid ResourceKind: " + l);
12311
12311
  }
12312
- function Yc(l) {
12312
+ function Xc(l) {
12313
12313
  const e = l.fields.find((t) => {
12314
12314
  var i;
12315
- return ((i = t == null ? void 0 : t.id) == null ? void 0 : i.fieldName) === Fi;
12315
+ return ((i = t == null ? void 0 : t.id) == null ? void 0 : i.fieldName) === Ei;
12316
12316
  });
12317
- return (e == null ? void 0 : e.error) ?? W;
12317
+ return (e == null ? void 0 : e.error) ?? S;
12318
12318
  }
12319
- function Ei(l) {
12319
+ function xi(l) {
12320
12320
  var e;
12321
12321
  return {
12322
- name: I((e = l.id) == null ? void 0 : e.fieldName),
12323
- type: Zc(l.type),
12324
- status: Xc(l.valueStatus),
12322
+ name: T((e = l.id) == null ? void 0 : e.fieldName),
12323
+ type: Qc(l.type),
12324
+ status: eu(l.valueStatus),
12325
12325
  value: l.value,
12326
12326
  error: l.error,
12327
12327
  valueIsFinal: l.valueIsFinal
12328
12328
  };
12329
12329
  }
12330
- function Zc(l) {
12330
+ function Qc(l) {
12331
12331
  switch (l) {
12332
12332
  case k.INPUT:
12333
12333
  return "Input";
@@ -12345,7 +12345,7 @@ function Zc(l) {
12345
12345
  throw new Error("invalid FieldType: " + l);
12346
12346
  }
12347
12347
  }
12348
- function Xc(l) {
12348
+ function eu(l) {
12349
12349
  switch (l) {
12350
12350
  case H.EMPTY:
12351
12351
  return "Empty";
@@ -12357,7 +12357,7 @@ function Xc(l) {
12357
12357
  throw new Error("invalid FieldStatus: " + l);
12358
12358
  }
12359
12359
  }
12360
- function Qc(l) {
12360
+ function tu(l) {
12361
12361
  switch (l) {
12362
12362
  case "Input":
12363
12363
  return k.INPUT;
@@ -12372,7 +12372,7 @@ function Qc(l) {
12372
12372
  case "OTW":
12373
12373
  return k.ONE_TIME_WRITABLE;
12374
12374
  default:
12375
- return yi(l);
12375
+ return wi(l);
12376
12376
  }
12377
12377
  }
12378
12378
  function fe() {
@@ -12435,47 +12435,50 @@ function G(l, e) {
12435
12435
  kvGetBytes: l.kvGetBytes + e.kvGetBytes
12436
12436
  };
12437
12437
  }
12438
- function af(l) {
12438
+ function cf(l) {
12439
12439
  return l.hasOwnProperty("resourceId") && l.hasOwnProperty("fieldName");
12440
12440
  }
12441
- function eu(l) {
12441
+ function nu(l) {
12442
12442
  return typeof l == "bigint" || l.hasOwnProperty("globalId") && l.hasOwnProperty("localId");
12443
12443
  }
12444
- function xi(l) {
12444
+ function uf(l) {
12445
+ return typeof l == "bigint" && !x(l) && !B(l);
12446
+ }
12447
+ function Wi(l) {
12445
12448
  return M(l.resourceId);
12446
12449
  }
12447
12450
  function M(l) {
12448
12451
  return l.hasOwnProperty("globalId") && l.hasOwnProperty("localId");
12449
12452
  }
12450
12453
  function A(l) {
12451
- return xi(l) ? { resourceId: l.resourceId.localId, fieldName: l.fieldName } : l;
12454
+ return Wi(l) ? { resourceId: l.resourceId.localId, fieldName: l.fieldName } : l;
12452
12455
  }
12453
- async function lf(l) {
12454
- return xi(l) ? { resourceId: await l.resourceId.globalId, fieldName: l.fieldName } : l;
12456
+ async function ff(l) {
12457
+ return Wi(l) ? { resourceId: await l.resourceId.globalId, fieldName: l.fieldName } : l;
12455
12458
  }
12456
12459
  function _(l) {
12457
12460
  return M(l) ? l.localId : l;
12458
12461
  }
12459
- async function tu(l) {
12462
+ async function iu(l) {
12460
12463
  return M(l) ? await l.globalId : l;
12461
12464
  }
12462
12465
  function xn(l, e) {
12463
12466
  return { resourceId: l, fieldName: e };
12464
12467
  }
12465
- class Wi extends Error {
12468
+ class Si extends Error {
12466
12469
  }
12467
12470
  async function ee(l) {
12468
12471
  try {
12469
12472
  return await l();
12470
12473
  } catch (e) {
12471
- if ($i(e)) return;
12474
+ if (Ui(e)) return;
12472
12475
  throw e;
12473
12476
  }
12474
12477
  }
12475
- const B = class B {
12478
+ const $ = class $ {
12476
12479
  constructor(e, t, i, n, r, c) {
12477
12480
  y(this, "globalTxId");
12478
- y(this, "localTxId", B.nextLocalTxId());
12481
+ y(this, "localTxId", $.nextLocalTxId());
12479
12482
  /** Used in caching */
12480
12483
  y(this, "txOpenTimestamp", Date.now());
12481
12484
  y(this, "localResourceIdCounter", 0);
@@ -12499,7 +12502,7 @@ const B = class B {
12499
12502
  },
12500
12503
  (a) => {
12501
12504
  var o;
12502
- return I((o = a.txOpen.tx) == null ? void 0 : o.id);
12505
+ return T((o = a.txOpen.tx) == null ? void 0 : o.id);
12503
12506
  }
12504
12507
  ), this.globalTxId.catch((a) => {
12505
12508
  this.globalTxIdWasAwaited || console.warn(a);
@@ -12539,7 +12542,7 @@ const B = class B {
12539
12542
  { oneofKind: "txCommit", txCommit: {} },
12540
12543
  (i) => i.txCommit.success
12541
12544
  ), t = this.ll.complete();
12542
- if (await this.drainAndAwaitPendingOps(), !await e) throw new Wi();
12545
+ if (await this.drainAndAwaitPendingOps(), !await e) throw new Si();
12543
12546
  await t, await this.ll.await();
12544
12547
  } else {
12545
12548
  const e = this.ll.complete();
@@ -12584,7 +12587,7 @@ const B = class B {
12584
12587
  loadFields: t
12585
12588
  }
12586
12589
  },
12587
- (i) => Yn(I(i.resourceGetSingleton.resource))
12590
+ (i) => Yn(T(i.resourceGetSingleton.resource))
12588
12591
  );
12589
12592
  }
12590
12593
  createResource(e, t, i) {
@@ -12673,7 +12676,7 @@ const B = class B {
12673
12676
  }
12674
12677
  async getResourceData(e, t = !0, i = !1) {
12675
12678
  var r, c, a;
12676
- if (!i && !M(e) && !O(e)) {
12679
+ if (!i && !M(e) && !x(e)) {
12677
12680
  const o = this.sharedResourceDataCache.get(e);
12678
12681
  if (o && o.cacheTxOpenTimestamp < this.txOpenTimestamp)
12679
12682
  if (t) {
@@ -12686,19 +12689,25 @@ const B = class B {
12686
12689
  oneofKind: "resourceGet",
12687
12690
  resourceGet: { resourceId: _(e), loadFields: t }
12688
12691
  },
12689
- (o) => Yn(I(o.resourceGet.resource))
12692
+ (o) => Yn(T(o.resourceGet.resource))
12690
12693
  );
12691
- if (this.stat.rGetDataNetRequests++, this.stat.rGetDataNetBytes += ((a = n.data) == null ? void 0 : a.length) ?? 0, this.stat.rGetDataNetFields += n.fields.length, !M(e) && !O(e) && this.finalPredicate(n)) {
12694
+ if (this.stat.rGetDataNetRequests++, this.stat.rGetDataNetBytes += ((a = n.data) == null ? void 0 : a.length) ?? 0, this.stat.rGetDataNetFields += n.fields.length, !M(e) && !x(e) && this.finalPredicate(n)) {
12695
+ jn(n);
12692
12696
  const o = this.sharedResourceDataCache.get(e);
12693
- o ? t && !o.data && (o.data = n, o.cacheTxOpenTimestamp = this.txOpenTimestamp) : t ? this.sharedResourceDataCache.set(e, {
12694
- basicData: Jn(n),
12695
- data: n,
12696
- cacheTxOpenTimestamp: this.txOpenTimestamp
12697
- }) : this.sharedResourceDataCache.set(e, {
12698
- basicData: Jn(n),
12699
- data: void 0,
12700
- cacheTxOpenTimestamp: this.txOpenTimestamp
12701
- });
12697
+ if (o)
12698
+ t && !o.data && (o.data = n, o.cacheTxOpenTimestamp = this.txOpenTimestamp);
12699
+ else {
12700
+ const s = sr(n);
12701
+ jn(s), t ? this.sharedResourceDataCache.set(e, {
12702
+ basicData: s,
12703
+ data: n,
12704
+ cacheTxOpenTimestamp: this.txOpenTimestamp
12705
+ }) : this.sharedResourceDataCache.set(e, {
12706
+ basicData: s,
12707
+ data: void 0,
12708
+ cacheTxOpenTimestamp: this.txOpenTimestamp
12709
+ });
12710
+ }
12702
12711
  }
12703
12712
  return n;
12704
12713
  }
@@ -12706,7 +12715,7 @@ const B = class B {
12706
12715
  const i = await ee(
12707
12716
  async () => await this.getResourceData(e, t, !0)
12708
12717
  );
12709
- return i === void 0 && !M(e) && !O(e) && this.sharedResourceDataCache.delete(e), i;
12718
+ return i === void 0 && !M(e) && !x(e) && this.sharedResourceDataCache.delete(e), i;
12710
12719
  }
12711
12720
  /**
12712
12721
  * Inform platform that resource will not get any new input fields.
@@ -12740,7 +12749,7 @@ const B = class B {
12740
12749
  createField(e, t, i) {
12741
12750
  this.stat.fieldsCreated++, this.sendVoidAsync({
12742
12751
  oneofKind: "fieldCreate",
12743
- fieldCreate: { type: Qc(t), id: A(e) }
12752
+ fieldCreate: { type: tu(t), id: A(e) }
12744
12753
  }), i !== void 0 && this.setField(e, i);
12745
12754
  }
12746
12755
  async fieldExists(e) {
@@ -12753,7 +12762,7 @@ const B = class B {
12753
12762
  );
12754
12763
  }
12755
12764
  setField(e, t) {
12756
- this.stat.fieldsSet++, eu(t) ? this.sendVoidAsync({
12765
+ this.stat.fieldsSet++, nu(t) ? this.sendVoidAsync({
12757
12766
  oneofKind: "fieldSet",
12758
12767
  fieldSet: {
12759
12768
  field: A(e),
@@ -12780,7 +12789,7 @@ const B = class B {
12780
12789
  async getField(e) {
12781
12790
  return this.stat.fieldsGet++, await this.sendSingleAndParse(
12782
12791
  { oneofKind: "fieldGet", fieldGet: { field: A(e) } },
12783
- (t) => Ei(I(t.fieldGet.field))
12792
+ (t) => xi(T(t.fieldGet.field))
12784
12793
  );
12785
12794
  }
12786
12795
  async getFieldIfExists(e) {
@@ -12825,7 +12834,7 @@ const B = class B {
12825
12834
  resourceKeyValueSet: {
12826
12835
  resourceId: _(e),
12827
12836
  key: t,
12828
- value: Vc(i)
12837
+ value: Gc(i)
12829
12838
  }
12830
12839
  });
12831
12840
  }
@@ -12907,97 +12916,97 @@ const B = class B {
12907
12916
  // Helpers
12908
12917
  //
12909
12918
  nextLocalResourceId(e) {
12910
- return Pi(e, ++this.localResourceIdCounter, this.localTxId);
12919
+ return Ni(e, ++this.localResourceIdCounter, this.localTxId);
12911
12920
  }
12912
12921
  static nextLocalTxId() {
12913
- return B.localTxIdCounter++, B.localTxIdCounter === Bn && (B.localTxIdCounter = 1), B.localTxIdCounter;
12922
+ return $.localTxIdCounter++, $.localTxIdCounter === Bn && ($.localTxIdCounter = 1), $.localTxIdCounter;
12914
12923
  }
12915
12924
  };
12916
- y(B, "localTxIdCounter", 0);
12917
- let In = B;
12925
+ y($, "localTxIdCounter", 0);
12926
+ let In = $;
12918
12927
  function N(l, e) {
12919
12928
  return { name: l, version: e };
12920
12929
  }
12921
- const Pn = N("ClientRoot", "1"), nu = N("StructTest", "1"), iu = N("ValueTest", "1"), Si = N("json/string", "1"), Ci = N("json/bool", "1"), Di = N("json/object", "1"), vi = N("json/array", "1"), Oi = N("json/number", "1"), qi = N("json/null", "1"), ru = N("Null", "1"), Wn = N("EphStdMap", "1"), Sn = N("StdMap", "1");
12922
- function su(l) {
12923
- return l.createValue(qi, Buffer.from(JSON.stringify(null)));
12924
- }
12925
- function ou(l, e) {
12926
- return l.createValue(Ci, Buffer.from(JSON.stringify(e)));
12927
- }
12928
- function au(l, e) {
12929
- return l.createValue(Oi, Buffer.from(JSON.stringify(e)));
12930
+ const Pn = N("ClientRoot", "1"), ru = N("StructTest", "1"), su = N("ValueTest", "1"), Ci = N("json/string", "1"), Di = N("json/bool", "1"), vi = N("json/object", "1"), Oi = N("json/array", "1"), qi = N("json/number", "1"), Ki = N("json/null", "1"), ou = N("Null", "1"), Wn = N("EphStdMap", "1"), Sn = N("StdMap", "1");
12931
+ function au(l) {
12932
+ return l.createValue(Ki, Buffer.from(JSON.stringify(null)));
12930
12933
  }
12931
12934
  function lu(l, e) {
12932
- return l.createValue(Si, Buffer.from(JSON.stringify(e)));
12935
+ return l.createValue(Di, Buffer.from(JSON.stringify(e)));
12933
12936
  }
12934
12937
  function cu(l, e) {
12935
- return l.createValue(vi, Buffer.from(JSON.stringify(e)));
12938
+ return l.createValue(qi, Buffer.from(JSON.stringify(e)));
12936
12939
  }
12937
12940
  function uu(l, e) {
12938
- return l.createValue(Di, Buffer.from(JSON.stringify(e)));
12941
+ return l.createValue(Ci, Buffer.from(JSON.stringify(e)));
12942
+ }
12943
+ function fu(l, e) {
12944
+ return l.createValue(Oi, Buffer.from(JSON.stringify(e)));
12945
+ }
12946
+ function du(l, e) {
12947
+ return l.createValue(vi, Buffer.from(JSON.stringify(e)));
12939
12948
  }
12940
12949
  function Cn(l, e) {
12941
12950
  return [l, e];
12942
12951
  }
12943
- function Ki(l, e) {
12952
+ function ji(l, e) {
12944
12953
  return e === void 0 ? Object.entries(l) : e.map((t) => Cn(t, l[t]));
12945
12954
  }
12946
- function fu(l, e, t, i) {
12955
+ function hu(l, e, t, i) {
12947
12956
  const n = i ?? (t ? Wn : Sn), r = t ? l.createEphemeral(n) : l.createStruct(n);
12948
- for (const [c, a] of Array.isArray(e) ? e : Ki(e))
12957
+ for (const [c, a] of Array.isArray(e) ? e : ji(e))
12949
12958
  l.createField(xn(r, c), "Input", a);
12950
12959
  return l.lock(r), r;
12951
12960
  }
12952
- function du(l, e, t, i, n = "") {
12961
+ function pu(l, e, t, i, n = "") {
12953
12962
  return Object.fromEntries(
12954
12963
  t.map((r) => Cn(r, l.getFutureFieldValue(e, `${n}${r}`, i)))
12955
12964
  );
12956
12965
  }
12957
- const ji = Sn, Vi = Wn, me = "ref";
12958
- function hu(l, e) {
12959
- const t = l.createStruct(ji), i = xn(t, me);
12966
+ const Vi = Sn, Mi = Wn, me = "ref";
12967
+ function yu(l, e) {
12968
+ const t = l.createStruct(Vi), i = xn(t, me);
12960
12969
  return l.createField(i, "Input", e), l.lock(t), t;
12961
12970
  }
12962
- function pu(l, e) {
12963
- const t = l.createEphemeral(Vi), i = xn(t, me);
12971
+ function wu(l, e) {
12972
+ const t = l.createEphemeral(Mi), i = xn(t, me);
12964
12973
  return l.createField(i, "Input", e), l.lock(t), t;
12965
12974
  }
12966
- function yu(l, e) {
12975
+ function mu(l, e) {
12967
12976
  return l.getFutureFieldValue(e, me, "Input");
12968
12977
  }
12969
- const cf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12978
+ const df = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12970
12979
  __proto__: null,
12971
12980
  ClientRoot: Pn,
12972
- EphHolder: Vi,
12981
+ EphHolder: Mi,
12973
12982
  EphStdMap: Wn,
12974
- Holder: ji,
12983
+ Holder: Vi,
12975
12984
  HolderRefField: me,
12976
- JsonArray: vi,
12977
- JsonBool: Ci,
12978
- JsonNull: qi,
12979
- JsonNumber: Oi,
12980
- JsonObject: Di,
12981
- JsonString: Si,
12982
- RNull: ru,
12985
+ JsonArray: Oi,
12986
+ JsonBool: Di,
12987
+ JsonNull: Ki,
12988
+ JsonNumber: qi,
12989
+ JsonObject: vi,
12990
+ JsonString: Ci,
12991
+ RNull: ou,
12983
12992
  StdMap: Sn,
12984
- StructTestResource: nu,
12985
- ValueTestResource: iu,
12986
- createPlArray: cu,
12987
- createPlBool: ou,
12988
- createPlMap: fu,
12989
- createPlNull: su,
12990
- createPlNumber: au,
12991
- createPlObject: uu,
12992
- createPlString: lu,
12993
- futureRecord: du,
12994
- plEntries: Ki,
12993
+ StructTestResource: ru,
12994
+ ValueTestResource: su,
12995
+ createPlArray: fu,
12996
+ createPlBool: lu,
12997
+ createPlMap: hu,
12998
+ createPlNull: au,
12999
+ createPlNumber: cu,
13000
+ createPlObject: du,
13001
+ createPlString: uu,
13002
+ futureRecord: pu,
13003
+ plEntries: ji,
12995
13004
  plEntry: Cn,
12996
- unwrapHolder: yu,
12997
- wrapInEphHolder: pu,
12998
- wrapInHolder: hu
13005
+ unwrapHolder: mu,
13006
+ wrapInEphHolder: wu,
13007
+ wrapInHolder: yu
12999
13008
  }, Symbol.toStringTag, { value: "Module" })), Zn = 5e3, Xn = 3e5, Qn = 6e4, ei = 31 * 24 * 60 * 60, ti = 12 * 24 * 60 * 60, ni = 128e6, ii = "exponential", ri = 16, si = 14, oi = 1.5, ai = 50, li = 0.3;
13000
- function R(l) {
13009
+ function I(l) {
13001
13010
  if (!l) return;
13002
13011
  const e = Number(l);
13003
13012
  if (Number.isNaN(e)) throw new Error(`Can't parse number: ${l}`);
@@ -13034,29 +13043,29 @@ function ye(l, e = {}) {
13034
13043
  // this also includes port
13035
13044
  alternativeRoot: t.searchParams.get("alternative-root") ?? void 0,
13036
13045
  ssl: t.protocol === "https:" || t.protocol === "tls:",
13037
- defaultRequestTimeout: R(t.searchParams.get("request-timeout")) ?? Zn,
13038
- defaultROTransactionTimeout: R(t.searchParams.get("ro-tx-timeout")) ?? R(t.searchParams.get("tx-timeout")) ?? Xn,
13039
- defaultRWTransactionTimeout: R(t.searchParams.get("rw-tx-timeout")) ?? R(t.searchParams.get("tx-timeout")) ?? Qn,
13046
+ defaultRequestTimeout: I(t.searchParams.get("request-timeout")) ?? Zn,
13047
+ defaultROTransactionTimeout: I(t.searchParams.get("ro-tx-timeout")) ?? I(t.searchParams.get("tx-timeout")) ?? Xn,
13048
+ defaultRWTransactionTimeout: I(t.searchParams.get("rw-tx-timeout")) ?? I(t.searchParams.get("tx-timeout")) ?? Qn,
13040
13049
  authTTLSeconds: ei,
13041
13050
  authMaxRefreshSeconds: ti,
13042
13051
  grpcProxy: t.searchParams.get("grpc-proxy") ?? void 0,
13043
13052
  httpProxy: t.searchParams.get("http-proxy") ?? void 0,
13044
13053
  user: t.username === "" ? void 0 : t.username,
13045
13054
  password: t.password === "" ? void 0 : t.password,
13046
- txDelay: R(t.searchParams.get("tx-delay")) ?? 0,
13055
+ txDelay: I(t.searchParams.get("tx-delay")) ?? 0,
13047
13056
  forceSync: !!t.searchParams.get("force-sync"),
13048
- maxCacheBytes: R(t.searchParams.get("max-cache-bytes")) ?? ni,
13057
+ maxCacheBytes: I(t.searchParams.get("max-cache-bytes")) ?? ni,
13049
13058
  retryBackoffAlgorithm: t.searchParams.get("retry-backoff-algorithm") ?? ii,
13050
- retryMaxAttempts: R(t.searchParams.get("retry-max-attempts")) ?? ri,
13051
- retryInitialDelay: R(t.searchParams.get("retry-initial-delay")) ?? si,
13052
- retryExponentialBackoffMultiplier: R(t.searchParams.get("retry-exp-backoff-multiplier")) ?? oi,
13053
- retryLinearBackoffStep: R(t.searchParams.get("retry-linear-backoff-step")) ?? ai,
13054
- retryJitter: R(t.searchParams.get("retry-backoff-jitter")) ?? li,
13059
+ retryMaxAttempts: I(t.searchParams.get("retry-max-attempts")) ?? ri,
13060
+ retryInitialDelay: I(t.searchParams.get("retry-initial-delay")) ?? si,
13061
+ retryExponentialBackoffMultiplier: I(t.searchParams.get("retry-exp-backoff-multiplier")) ?? oi,
13062
+ retryLinearBackoffStep: I(t.searchParams.get("retry-linear-backoff-step")) ?? ai,
13063
+ retryJitter: I(t.searchParams.get("retry-backoff-jitter")) ?? li,
13055
13064
  ...e
13056
13065
  };
13057
13066
  }
13058
- const uf = {};
13059
- class wu {
13067
+ const hf = {};
13068
+ class gu {
13060
13069
  constructor(e) {
13061
13070
  y(this, "typeName", gn.typeName);
13062
13071
  y(this, "methods", gn.methods);
@@ -13267,10 +13276,10 @@ class wu {
13267
13276
  return g("unary", this._transport, i, n, e);
13268
13277
  }
13269
13278
  }
13270
- function mu(l, e, t, i) {
13279
+ function ku(l, e, t, i) {
13271
13280
  return { kind: l, expectMultiResponse: e, resolve: t, reject: i };
13272
13281
  }
13273
- function gu(l) {
13282
+ function bu(l) {
13274
13283
  return l.code === Un;
13275
13284
  }
13276
13285
  class J extends Error {
@@ -13278,7 +13287,7 @@ class J extends Error {
13278
13287
  super("Rethrow error, you should never see this one."), this.rethrowLambda = e;
13279
13288
  }
13280
13289
  }
13281
- class ku {
13290
+ class Tu {
13282
13291
  constructor(e) {
13283
13292
  /** Bidirectional channel through which transaction communicates with the server */
13284
13293
  y(this, "stream");
@@ -13288,7 +13297,7 @@ class ku {
13288
13297
  * Incremented on each sent request. */
13289
13298
  y(this, "requestIdxCounter", 0);
13290
13299
  /** Queue from which incoming message processor takes handlers to which pass incoming messages */
13291
- y(this, "responseHandlerQueue", new Qi());
13300
+ y(this, "responseHandlerQueue", new er());
13292
13301
  /** Each new resource, created by the transaction, is assigned with virtual (local) resource id, to make it possible
13293
13302
  * to populate its fields without awaiting actual resource id. This counter tracks those ids on client side, the
13294
13303
  * same way it is tracked on the server, so client can synchronously return such ids to the user. */
@@ -13332,7 +13341,7 @@ class ku {
13332
13341
  }
13333
13342
  if (r.error !== void 0) {
13334
13343
  const c = r.error;
13335
- if (gu(c)) {
13344
+ if (bu(c)) {
13336
13345
  if (t.reject(
13337
13346
  new J(() => {
13338
13347
  throw new Fn(c);
@@ -13346,7 +13355,7 @@ class ku {
13346
13355
  continue;
13347
13356
  } else {
13348
13357
  this.assignErrorFactoryIfNotSet(() => {
13349
- throw new Gc(c);
13358
+ throw new zc(c);
13350
13359
  }, t.reject), t = void 0;
13351
13360
  break;
13352
13361
  }
@@ -13382,7 +13391,7 @@ class ku {
13382
13391
  }
13383
13392
  } catch (r) {
13384
13393
  return this.assignErrorFactoryIfNotSet(() => {
13385
- Jc(r, !0);
13394
+ Hc(r, !0);
13386
13395
  }, t == null ? void 0 : t.reject);
13387
13396
  } finally {
13388
13397
  await this.close();
@@ -13417,7 +13426,7 @@ class ku {
13417
13426
  if (this.closed) return Promise.reject(new Error("Transaction already closed"));
13418
13427
  const i = new Promise((n, r) => {
13419
13428
  this.responseHandlerQueue.push(
13420
- mu(e.oneofKind, t, n, r)
13429
+ ku(e.oneofKind, t, n, r)
13421
13430
  );
13422
13431
  });
13423
13432
  await this.stream.requests.send({
@@ -13447,7 +13456,7 @@ function X(l, e) {
13447
13456
  i + e
13448
13457
  ) * 1e3;
13449
13458
  }
13450
- function ff(l) {
13459
+ function pf(l) {
13451
13460
  return l.jwtToken === void 0 ? void 0 : Dn(l.jwtToken).exp * 1e3;
13452
13461
  }
13453
13462
  class vn {
@@ -13475,7 +13484,7 @@ class vn {
13475
13484
  i !== void 0 && (this.refreshTimestamp = X(
13476
13485
  i.authInformation,
13477
13486
  this.conf.authMaxRefreshSeconds
13478
- ), this.grpcInterceptors.push(this.createAuthInterceptor()), this.authInformation = i.authInformation, this.onAuthUpdate = i.onUpdate, this.onAuthRefreshProblem = i.onUpdateError, this.onAuthError = i.onAuthError), this.grpcInterceptors.push(this.createErrorInterceptor()), this.initGrpc(r ?? !1), this.httpDispatcher = er(this.conf.httpProxy), n !== void 0 && (this.statusListener = n, n(this._status));
13487
+ ), this.grpcInterceptors.push(this.createAuthInterceptor()), this.authInformation = i.authInformation, this.onAuthUpdate = i.onUpdate, this.onAuthRefreshProblem = i.onUpdateError, this.onAuthError = i.onAuthError), this.grpcInterceptors.push(this.createErrorInterceptor()), this.initGrpc(r ?? !1), this.httpDispatcher = tr(this.conf.httpProxy), n !== void 0 && (this.statusListener = n, n(this._status));
13479
13488
  }
13480
13489
  /**
13481
13490
  * Initializes (or reinitializes) _grpcTransport and _grpcPl
@@ -13487,16 +13496,16 @@ class vn {
13487
13496
  // 30 seconds
13488
13497
  interceptors: this.grpcInterceptors
13489
13498
  };
13490
- e && (t["grpc.default_compression_algorithm"] = Zi.gzip);
13499
+ e && (t["grpc.default_compression_algorithm"] = Xi.gzip);
13491
13500
  const i = {
13492
13501
  host: this.conf.hostAndPort,
13493
13502
  timeout: this.conf.defaultRequestTimeout,
13494
- channelCredentials: this.conf.ssl ? Vn.createSsl() : Vn.createInsecure(),
13503
+ channelCredentials: this.conf.ssl ? Mn.createSsl() : Mn.createInsecure(),
13495
13504
  clientOptions: t
13496
13505
  };
13497
13506
  this.conf.grpcProxy ? process.env.grpc_proxy = this.conf.grpcProxy : delete process.env.grpc_proxy;
13498
13507
  const n = this._grpcTransport;
13499
- this._grpcTransport = new Xi(i), this._grpcPl = new wu(this._grpcTransport), n !== void 0 && n.close();
13508
+ this._grpcTransport = new Qi(i), this._grpcPl = new gu(this._grpcTransport), n !== void 0 && n.close();
13500
13509
  }
13501
13510
  get grpcTransport() {
13502
13511
  return this._grpcTransport;
@@ -13546,11 +13555,11 @@ class vn {
13546
13555
  }
13547
13556
  /** Detects certain errors and update client status accordingly */
13548
13557
  createErrorInterceptor() {
13549
- return (e, t) => new Mn(t(e), {
13558
+ return (e, t) => new Gn(t(e), {
13550
13559
  start: (i, n, r) => {
13551
13560
  r(i, {
13552
13561
  onReceiveStatus: (c, a) => {
13553
- c.code == Gn.UNAUTHENTICATED && this.updateStatus("Unauthenticated"), c.code == Gn.UNAVAILABLE && this.updateStatus("Disconnected"), a(c);
13562
+ c.code == Jn.UNAUTHENTICATED && this.updateStatus("Unauthenticated"), c.code == Jn.UNAVAILABLE && this.updateStatus("Disconnected"), a(c);
13554
13563
  }
13555
13564
  });
13556
13565
  }
@@ -13558,7 +13567,7 @@ class vn {
13558
13567
  }
13559
13568
  /** Injects authentication information if needed */
13560
13569
  createAuthInterceptor() {
13561
- return (e, t) => new Mn(t(e), {
13570
+ return (e, t) => new Gn(t(e), {
13562
13571
  start: (i, n, r) => {
13563
13572
  var c;
13564
13573
  ((c = this.authInformation) == null ? void 0 : c.jwtToken) !== void 0 && (i.set("authorization", "Bearer " + this.authInformation.jwtToken), this.refreshAuthInformationIfNeeded()), r(i, n);
@@ -13566,7 +13575,7 @@ class vn {
13566
13575
  });
13567
13576
  }
13568
13577
  createTx(e, t = {}) {
13569
- return new ku((i) => {
13578
+ return new Tu((i) => {
13570
13579
  let n = i;
13571
13580
  return t.abortSignal && (n = AbortSignal.any([n, t.abortSignal])), this.grpcPl.tx({
13572
13581
  abort: n,
@@ -13580,20 +13589,20 @@ class vn {
13580
13589
  }
13581
13590
  }
13582
13591
  function de(l) {
13583
- return l.resourceReady || S(l.originalResourceId) || S(l.error);
13592
+ return l.resourceReady || C(l.originalResourceId) || C(l.error);
13584
13593
  }
13585
- function bu(l) {
13594
+ function Ru(l) {
13586
13595
  if (!de(l) || !l.outputsLocked) return !1;
13587
13596
  if (l.fields === void 0) return !0;
13588
13597
  for (const e of l.fields)
13589
- if (U(e.error) && (U(e.value) || !e.valueIsFinal)) return !1;
13598
+ if (B(e.error) && (B(e.value) || !e.valueIsFinal)) return !1;
13590
13599
  return !0;
13591
13600
  }
13592
- const ci = /* @__PURE__ */ new Set(), Tu = (l) => {
13601
+ const ci = /* @__PURE__ */ new Set(), Iu = (l) => {
13593
13602
  switch (l.type.name) {
13594
13603
  case "StreamManager": {
13595
13604
  if (!de(l)) return !1;
13596
- if (l.fields === void 0 || S(l.error)) return !0;
13605
+ if (l.fields === void 0 || C(l.error)) return !0;
13597
13606
  const e = zn(l, "downloadable");
13598
13607
  return zn(l, "stream").value === e.value;
13599
13608
  }
@@ -13635,7 +13644,7 @@ const ci = /* @__PURE__ */ new Set(), Tu = (l) => {
13635
13644
  default:
13636
13645
  if (l.type.name.startsWith("Blob/")) return !0;
13637
13646
  if (l.type.name.startsWith("BlobUpload/") || l.type.name.startsWith("BlobIndex/"))
13638
- return bu(l);
13647
+ return Ru(l);
13639
13648
  if (l.type.name.startsWith("PColumnData/"))
13640
13649
  return de(l);
13641
13650
  ci.has(l.type.name) || (console.log("UNKNOWN RESOURCE TYPE: " + l.type.name), ci.add(l.type.name));
@@ -13643,7 +13652,7 @@ const ci = /* @__PURE__ */ new Set(), Tu = (l) => {
13643
13652
  return !1;
13644
13653
  }, kn = {
13645
13654
  sync: !1
13646
- }, Ru = "AnonymousRoot";
13655
+ }, Pu = "AnonymousRoot";
13647
13656
  function ui(l) {
13648
13657
  return `alternative_root_${l}`;
13649
13658
  }
@@ -13660,7 +13669,7 @@ class ge {
13660
13669
  y(this, "buildLLPlClient");
13661
13670
  y(this, "_ll");
13662
13671
  /** Stores client root (this abstraction is intended for future implementation of the security model) */
13663
- y(this, "_clientRoot", W);
13672
+ y(this, "_clientRoot", S);
13664
13673
  y(this, "_serverInfo");
13665
13674
  y(this, "_txCommittedStat", fe());
13666
13675
  y(this, "_txConflictStat", fe());
@@ -13674,7 +13683,7 @@ class ge {
13674
13683
  y(this, "resourceDataCache");
13675
13684
  this.buildLLPlClient = (r) => new vn(e, { auth: t, ...i, shouldUseGzip: r }), this._ll = this.buildLLPlClient(!1);
13676
13685
  const n = this._ll.conf;
13677
- switch (this.txDelay = n.txDelay, this.forceSync = n.forceSync, this.finalPredicate = i.finalPredicate ?? Tu, this.resourceDataCache = new tr({
13686
+ switch (this.txDelay = n.txDelay, this.forceSync = n.forceSync, this.finalPredicate = i.finalPredicate ?? Iu, this.resourceDataCache = new nr({
13678
13687
  maxSize: n.maxCacheBytes,
13679
13688
  sizeCalculation: (r) => {
13680
13689
  var c;
@@ -13700,7 +13709,7 @@ class ge {
13700
13709
  };
13701
13710
  break;
13702
13711
  default:
13703
- yi(n.retryBackoffAlgorithm);
13712
+ wi(n.retryBackoffAlgorithm);
13704
13713
  }
13705
13714
  }
13706
13715
  get txCommittedStat() {
@@ -13735,7 +13744,7 @@ class ge {
13735
13744
  return this._ll.grpcTransport;
13736
13745
  }
13737
13746
  get initialized() {
13738
- return !U(this._clientRoot);
13747
+ return !B(this._clientRoot);
13739
13748
  }
13740
13749
  checkInitialized() {
13741
13750
  if (!this.initialized) throw new Error("Client not initialized");
@@ -13749,11 +13758,11 @@ class ge {
13749
13758
  /** Currently implements custom logic to emulate future behaviour with single root. */
13750
13759
  async init() {
13751
13760
  if (this.initialized) throw new Error("Already initialized");
13752
- const e = this._ll.authUser, t = e === null ? Ru : gi("sha256").update(e).digest("hex");
13753
- this._serverInfo = await this.ping(), this._serverInfo.compression === $n.GZIP && (await this._ll.close(), this._ll = this.buildLLPlClient(!0)), this._clientRoot = await this._withTx("initialization", !0, W, async (i) => {
13761
+ const e = this._ll.authUser, t = e === null ? Pu : ki("sha256").update(e).digest("hex");
13762
+ this._serverInfo = await this.ping(), this._serverInfo.compression === $n.GZIP && (await this._ll.close(), this._ll = this.buildLLPlClient(!0)), this._clientRoot = await this._withTx("initialization", !0, S, async (i) => {
13754
13763
  let n;
13755
13764
  if (await i.checkResourceNameExists(t) ? n = await i.getResourceByName(t) : (n = i.createRoot(Pn), i.setResourceName(t, n)), this.conf.alternativeRoot === void 0)
13756
- return await i.commit(), await tu(n);
13765
+ return await i.commit(), await iu(n);
13757
13766
  {
13758
13767
  const r = {
13759
13768
  resourceId: n,
@@ -13776,7 +13785,7 @@ class ge {
13776
13785
  });
13777
13786
  }
13778
13787
  async _withTx(e, t, i, n, r) {
13779
- let c = wi((r == null ? void 0 : r.retryOptions) ?? this.defaultRetryOptions);
13788
+ let c = mi((r == null ? void 0 : r.retryOptions) ?? this.defaultRetryOptions);
13780
13789
  for (; ; ) {
13781
13790
  const a = this._ll.createTx(t, r), o = new In(
13782
13791
  a,
@@ -13790,7 +13799,7 @@ class ge {
13790
13799
  try {
13791
13800
  u = await n(o), this._txCommittedStat = G(this._txCommittedStat, o.stat), s = !0;
13792
13801
  } catch (Kn) {
13793
- if (Kn instanceof Wi)
13802
+ if (Kn instanceof Si)
13794
13803
  this._txConflictStat = G(this._txConflictStat, o.stat);
13795
13804
  else
13796
13805
  throw this._txErrorStat = G(this._txErrorStat, o.stat), Kn;
@@ -13799,7 +13808,7 @@ class ge {
13799
13808
  }
13800
13809
  if (s)
13801
13810
  return ((r == null ? void 0 : r.sync) === void 0 ? this.forceSync : r != null && r.sync) && await this._ll.grpcPl.txSync({ txId: qn }), t && this.txDelay > 0 && await Tn.setTimeout(this.txDelay, void 0, { signal: r == null ? void 0 : r.abortSignal }), u;
13802
- await Tn.setTimeout(c.nextDelay, void 0, { signal: r == null ? void 0 : r.abortSignal }), c = mi(c);
13811
+ await Tn.setTimeout(c.nextDelay, void 0, { signal: r == null ? void 0 : r.abortSignal }), c = gi(c);
13803
13812
  }
13804
13813
  }
13805
13814
  async withTx(e, t, i, n = {}) {
@@ -13826,10 +13835,10 @@ class ge {
13826
13835
  return await n.init(), n;
13827
13836
  }
13828
13837
  }
13829
- function df(l, e) {
13838
+ function yf(l, e) {
13830
13839
  return e = e ?? {}, e.meta = e.meta ?? {}, e.meta.resourceType = `${l.name}:${l.version}`, e;
13831
13840
  }
13832
- class Mi {
13841
+ class Gi {
13833
13842
  constructor(e) {
13834
13843
  y(this, "ll");
13835
13844
  this.ll = new vn(e);
@@ -13852,7 +13861,7 @@ class Mi {
13852
13861
  authorization: "Basic " + Buffer.from(e + ":" + t).toString("base64")
13853
13862
  }
13854
13863
  }
13855
- ).response, n = I(i.token);
13864
+ ).response, n = T(i.token);
13856
13865
  if (n === "") throw new Error("empty token");
13857
13866
  return { jwtToken: n };
13858
13867
  } catch (i) {
@@ -13860,12 +13869,12 @@ class Mi {
13860
13869
  }
13861
13870
  }
13862
13871
  }
13863
- const Iu = "pl.json", Pu = Ln.join(bi.homedir(), ".pl.json"), Nu = "pl.yaml", _u = Ln.join(bi.homedir(), ".pl.yaml"), Lu = [
13864
- Iu,
13872
+ const Nu = "pl.json", _u = Ln.join(Ti.homedir(), ".pl.json"), Lu = "pl.yaml", Au = Ln.join(Ti.homedir(), ".pl.yaml"), Bu = [
13865
13873
  Nu,
13866
- Pu,
13867
- _u
13868
- ], Y = ".pl_auth.json", Au = [
13874
+ Lu,
13875
+ _u,
13876
+ Au
13877
+ ], Y = ".pl_auth.json", $u = [
13869
13878
  "grpcProxy",
13870
13879
  "httpProxy",
13871
13880
  "user",
@@ -13877,14 +13886,14 @@ const Iu = "pl.json", Pu = Ln.join(bi.homedir(), ".pl.json"), Nu = "pl.yaml", _u
13877
13886
  "authTTLSeconds",
13878
13887
  "authMaxRefreshSeconds"
13879
13888
  ];
13880
- function Bu() {
13881
- for (const l of Lu)
13889
+ function Uu() {
13890
+ for (const l of Bu)
13882
13891
  if (E.existsSync(l)) {
13883
13892
  const e = E.readFileSync(l, { encoding: "utf-8" });
13884
- return l.endsWith("json") ? [JSON.parse(e), l] : [ir.parse(e), l];
13893
+ return l.endsWith("json") ? [JSON.parse(e), l] : [rr.parse(e), l];
13885
13894
  }
13886
13895
  }
13887
- function $u(l, e) {
13896
+ function Fu(l, e) {
13888
13897
  return (t) => {
13889
13898
  E.writeFileSync(
13890
13899
  Y,
@@ -13902,30 +13911,30 @@ function $u(l, e) {
13902
13911
  const fi = () => {
13903
13912
  E.rmSync(Y);
13904
13913
  };
13905
- async function hf() {
13914
+ async function wf() {
13906
13915
  let l;
13907
13916
  if (process.env.PL_ADDRESS !== void 0)
13908
13917
  l = ye(process.env.PL_ADDRESS);
13909
13918
  else {
13910
- const i = Bu();
13919
+ const i = Uu();
13911
13920
  if (i !== void 0) {
13912
- const [n, r] = i, c = I(n.address, `no pl address in file: ${r}`);
13921
+ const [n, r] = i, c = T(n.address, `no pl address in file: ${r}`);
13913
13922
  l = ye(c);
13914
- for (const a of Au)
13923
+ for (const a of $u)
13915
13924
  n[a] !== void 0 && (l[a] = n[a]);
13916
13925
  }
13917
13926
  }
13918
13927
  if (l === void 0)
13919
13928
  throw new Error("Can't find configuration to create default platform client.");
13920
13929
  process.env.PL_USER !== void 0 && (l.user = process.env.PL_USER), process.env.PL_PASSWORD !== void 0 && (l.user = process.env.PL_PASSWORD);
13921
- const e = gi("sha256").update(Buffer.from(nr(l))).digest("base64");
13930
+ const e = ki("sha256").update(Buffer.from(ir(l))).digest("base64");
13922
13931
  let t;
13923
13932
  if (E.existsSync(Y)) {
13924
13933
  const i = JSON.parse(E.readFileSync(Y, { encoding: "utf-8" }));
13925
13934
  i.confHash === e && i.expiration > Date.now() && (t = i.authInformation);
13926
13935
  }
13927
13936
  if (t === void 0) {
13928
- const i = new Mi(l);
13937
+ const i = new Gi(l);
13929
13938
  if (await i.requireAuth()) {
13930
13939
  if (l.user === void 0 || l.password === void 0)
13931
13940
  throw new Error("No auth information for found to authenticate with PL server.");
@@ -13946,30 +13955,34 @@ async function hf() {
13946
13955
  }
13947
13956
  return await ge.init(l, {
13948
13957
  authInformation: t,
13949
- onUpdate: (i) => $u(e, l.authMaxRefreshSeconds),
13958
+ onUpdate: (i) => Fu(e, l.authMaxRefreshSeconds),
13950
13959
  onUpdateError: fi,
13951
13960
  onAuthError: fi
13952
13961
  });
13953
13962
  }
13954
- async function pf(l, e) {
13963
+ async function mf(l, e) {
13955
13964
  const t = {
13956
13965
  valueId: e.value,
13957
13966
  errorId: e.error,
13958
13967
  error: ""
13959
13968
  };
13960
- if (S(e.error)) {
13961
- const i = await l.getResourceData(e.error, !0);
13962
- t.error = JSON.parse(I(i.data).toString());
13969
+ if (C(e.error)) {
13970
+ const i = await l.getResourceData(e.error, !0), n = pi(T(i.data));
13971
+ if (typeof n != "string") {
13972
+ const r = T(i.data).toString();
13973
+ throw new Error(`Unexpected error structure: ${r.substring(0, Math.min(r.length, 100))}...`);
13974
+ }
13975
+ t.error = n;
13963
13976
  }
13964
13977
  return t;
13965
13978
  }
13966
13979
  class z extends Error {
13967
13980
  }
13968
- const Uu = {
13981
+ const Eu = {
13969
13982
  failOnError: !0,
13970
13983
  onlyFinal: !1
13971
13984
  };
13972
- class Fu {
13985
+ class xu {
13973
13986
  constructor(e, t, i) {
13974
13987
  this.tx = e, this.data = t, this.path = i;
13975
13988
  }
@@ -13978,7 +13991,7 @@ class Fu {
13978
13991
  return this;
13979
13992
  }
13980
13993
  async requireNoError() {
13981
- return U(this.data.error) ? this : (await this.tx.throwError(this.data.error, this.path), this);
13994
+ return B(this.data.error) ? this : (await this.tx.throwError(this.data.error, this.path), this);
13982
13995
  }
13983
13996
  getFieldData(e, t) {
13984
13997
  const i = this.data.fields.find((n) => n.name === e);
@@ -13993,8 +14006,8 @@ class Fu {
13993
14006
  ) : new z();
13994
14007
  }
13995
14008
  async get(e, t = {}) {
13996
- const { expectedType: i, failOnError: n } = { ...Uu, ...t }, r = [...this.path, e], c = this.getFieldData(e, i);
13997
- if (S(c.error) && (n || U(c.value)) && await this.tx.throwError(c.error, r), U(c.value)) throw new z();
14009
+ const { expectedType: i, failOnError: n } = { ...Eu, ...t }, r = [...this.path, e], c = this.getFieldData(e, i);
14010
+ if (C(c.error) && (n || B(c.value)) && await this.tx.throwError(c.error, r), B(c.value)) throw new z();
13998
14011
  return await this.tx.get(c.value, n, r);
13999
14012
  }
14000
14013
  async getMulti(e, ...t) {
@@ -14008,7 +14021,7 @@ class Fu {
14008
14021
  async getAllFinal(e = {}) {
14009
14022
  return await this.getMultiObj(
14010
14023
  e,
14011
- ...this.data.fields.filter((t) => t.valueIsFinal || S(t.error)).map((t) => t.name)
14024
+ ...this.data.fields.filter((t) => t.valueIsFinal || C(t.error)).map((t) => t.name)
14012
14025
  );
14013
14026
  }
14014
14027
  async getKValue(e) {
@@ -14020,45 +14033,45 @@ class Fu {
14020
14033
  return JSON.parse(await this.getKValue(e));
14021
14034
  }
14022
14035
  }
14023
- class Eu {
14036
+ class Wu {
14024
14037
  constructor(e) {
14025
14038
  this.tx = e;
14026
14039
  }
14027
14040
  async get(e, t = !0, i = []) {
14028
- const n = await this.tx.getResourceData(e, !0), r = new Fu(this, n, [...i, we(e)]);
14041
+ const n = await this.tx.getResourceData(e, !0), r = new xu(this, n, [...i, we(e)]);
14029
14042
  return t && await r.requireNoError(), r;
14030
14043
  }
14031
14044
  async throwError(e, t = []) {
14032
- const i = await this.get(e), n = Buffer.from(I(i.data.data)).toString();
14045
+ const i = await this.get(e), n = Buffer.from(T(i.data.data)).toString();
14033
14046
  throw new Error(`${t.join(" -> ")} = ${n}`);
14034
14047
  }
14035
14048
  }
14036
- const xu = {
14049
+ const Su = {
14037
14050
  type: "linearBackoff",
14038
14051
  jitter: 0,
14039
14052
  maxAttempts: 100,
14040
14053
  backoffStep: 10,
14041
14054
  initialDelay: 10
14042
14055
  };
14043
- async function yf(l, e, t = xu, i = "polling") {
14044
- let n = wi(t);
14056
+ async function gf(l, e, t = Su, i = "polling") {
14057
+ let n = mi(t);
14045
14058
  for (; ; ) {
14046
14059
  try {
14047
- return await l.withReadTx(i, async (r) => await e(new Eu(r)));
14060
+ return await l.withReadTx(i, async (r) => await e(new Wu(r)));
14048
14061
  } catch (r) {
14049
14062
  if (!(r instanceof z)) throw r;
14050
14063
  }
14051
- await Tn.setTimeout(n.nextDelay), n = mi(n);
14064
+ await Tn.setTimeout(n.nextDelay), n = gi(n);
14052
14065
  }
14053
14066
  }
14054
14067
  const Z = "test_config.json";
14055
14068
  let bn;
14056
- function x() {
14069
+ function W() {
14057
14070
  return bn === void 0 && (bn = Ln.resolve(".test_auth.json")), bn;
14058
14071
  }
14059
- function Gi() {
14072
+ function Ji() {
14060
14073
  let l = {};
14061
- if ($.existsSync(Z) && (l = JSON.parse($.readFileSync(Z, { encoding: "utf-8" }))), process.env.PL_ADDRESS !== void 0 && (l.address = process.env.PL_ADDRESS), process.env.PL_TEST_USER !== void 0 && (l.test_user = process.env.PL_TEST_USER), process.env.PL_TEST_PASSWORD !== void 0 && (l.test_password = process.env.PL_TEST_PASSWORD), process.env.PL_TEST_PROXY !== void 0 && (l.test_proxy = process.env.PL_TEST_PROXY), l.address === void 0)
14074
+ if (U.existsSync(Z) && (l = JSON.parse(U.readFileSync(Z, { encoding: "utf-8" }))), process.env.PL_ADDRESS !== void 0 && (l.address = process.env.PL_ADDRESS), process.env.PL_TEST_USER !== void 0 && (l.test_user = process.env.PL_TEST_USER), process.env.PL_TEST_PASSWORD !== void 0 && (l.test_password = process.env.PL_TEST_PASSWORD), process.env.PL_TEST_PROXY !== void 0 && (l.test_proxy = process.env.PL_TEST_PROXY), l.address === void 0)
14062
14075
  throw new Error(
14063
14076
  `can't resolve platform address (checked ${Z} file and PL_ADDRESS environment var)`
14064
14077
  );
@@ -14066,8 +14079,8 @@ function Gi() {
14066
14079
  }
14067
14080
  function di(l) {
14068
14081
  return (e) => {
14069
- const t = x(), i = x() + ki();
14070
- $.writeFileSync(
14082
+ const t = W(), i = W() + bi();
14083
+ U.writeFileSync(
14071
14084
  i,
14072
14085
  Buffer.from(
14073
14086
  JSON.stringify({
@@ -14077,25 +14090,25 @@ function di(l) {
14077
14090
  })
14078
14091
  ),
14079
14092
  "utf8"
14080
- ), $.renameSync(i, t);
14093
+ ), U.renameSync(i, t);
14081
14094
  };
14082
14095
  }
14083
14096
  const hi = () => {
14084
- console.warn(`Removing: ${x()}`), $.rmSync(x());
14097
+ console.warn(`Removing: ${W()}`), U.rmSync(W());
14085
14098
  };
14086
14099
  async function On() {
14087
- const l = Gi();
14100
+ const l = Ji();
14088
14101
  let e;
14089
- if ($.existsSync(x()))
14102
+ if (U.existsSync(W()))
14090
14103
  try {
14091
14104
  const r = JSON.parse(
14092
- $.readFileSync(x(), { encoding: "utf-8" })
14105
+ U.readFileSync(W(), { encoding: "utf-8" })
14093
14106
  );
14094
14107
  r.conf.address === l.address && r.conf.test_user === l.test_user && r.conf.test_password === l.test_password && r.expiration > Date.now() && (e = r.authInformation);
14095
14108
  } catch {
14096
- $.rmSync(x());
14109
+ U.rmSync(W());
14097
14110
  }
14098
- const t = ye(l.address), i = new Mi(t), n = await i.requireAuth();
14111
+ const t = ye(l.address), i = new Gi(t), n = await i.requireAuth();
14099
14112
  if (!n && (l.test_user !== void 0 || l.test_password !== void 0))
14100
14113
  throw new Error(
14101
14114
  `Server require no auth, but test user name or test password are provided via (${Z}) or env variables: PL_TEST_USER and PL_TEST_PASSWORD`
@@ -14114,7 +14127,7 @@ async function On() {
14114
14127
  }
14115
14128
  };
14116
14129
  }
14117
- async function Wu(l = {}) {
14130
+ async function Cu(l = {}) {
14118
14131
  const { conf: e, auth: t } = await On();
14119
14132
  return new vn({ ...e, ...l }, { auth: t });
14120
14133
  }
@@ -14124,9 +14137,9 @@ async function Nn(l) {
14124
14137
  throw new Error("test pl address configured with alternative root");
14125
14138
  return await ge.init({ ...e, alternativeRoot: l }, t);
14126
14139
  }
14127
- async function Su(l) {
14128
- const e = `test_${Date.now()}_${ki()}`;
14129
- let t = W;
14140
+ async function Du(l) {
14141
+ const e = `test_${Date.now()}_${bi()}`;
14142
+ let t = S;
14130
14143
  try {
14131
14144
  const i = await Nn(e);
14132
14145
  t = i.clientRoot;
@@ -14136,16 +14149,16 @@ async function Su(l) {
14136
14149
  throw console.log(`ALTERNATIVE ROOT: ${e} (${we(t)})`), new Error(i.message, { cause: i });
14137
14150
  }
14138
14151
  }
14139
- const wf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14152
+ const kf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14140
14153
  __proto__: null,
14141
14154
  getTestClient: Nn,
14142
14155
  getTestClientConf: On,
14143
- getTestConfig: Gi,
14144
- getTestLLClient: Wu,
14145
- withTempRoot: Su
14156
+ getTestConfig: Ji,
14157
+ getTestLLClient: Cu,
14158
+ withTempRoot: Du
14146
14159
  }, Symbol.toStringTag, { value: "Module" }));
14147
14160
  export {
14148
- uf as AnonymousAuthInformation,
14161
+ hf as AnonymousAuthInformation,
14149
14162
  z as ContinuePolling,
14150
14163
  ti as DEFAULT_AUTH_MAX_REFRESH,
14151
14164
  ni as DEFAULT_MAX_CACHE_BYTES,
@@ -14159,68 +14172,69 @@ export {
14159
14172
  Xn as DEFAULT_RO_TX_TIMEOUT,
14160
14173
  Qn as DEFAULT_RW_TX_TIMEOUT,
14161
14174
  ei as DEFAULT_TOKEN_TTL_SECONDS,
14162
- Tu as DefaultFinalResourceDataPredicate,
14163
- xu as DefaultPollingRetryOptions,
14164
- Ui as DisconnectedError,
14165
- Ii as MaxLocalId,
14175
+ Iu as DefaultFinalResourceDataPredicate,
14176
+ Su as DefaultPollingRetryOptions,
14177
+ Fi as DisconnectedError,
14178
+ Pi as MaxLocalId,
14166
14179
  Bn as MaxTxId,
14167
- W as NullResourceId,
14168
- cf as Pl,
14180
+ S as NullResourceId,
14181
+ df as Pl,
14169
14182
  ge as PlClient,
14170
- Bi as PlError,
14183
+ $i as PlError,
14171
14184
  Un as PlErrorCodeNotFound,
14172
14185
  In as PlTransaction,
14173
- Fu as PollResourceAccessor,
14174
- Eu as PollTxAccessor,
14186
+ xu as PollResourceAccessor,
14187
+ Wu as PollTxAccessor,
14175
14188
  Fn as RecoverablePlError,
14176
- wf as TestHelpers,
14177
- Wi as TxCommitConflict,
14189
+ kf as TestHelpers,
14190
+ Si as TxCommitConflict,
14178
14191
  En as UnauthenticatedError,
14179
- Mi as UnauthenticatedPlClient,
14180
- Gc as UnrecoverablePlError,
14181
- df as addRTypeToMetadata,
14182
- sf as bigintToResourceId,
14183
- nf as checkLocalityOfResourceId,
14184
- ar as createGlobalResourceId,
14185
- Pi as createLocalResourceId,
14186
- hf as defaultPlClient,
14192
+ Gi as UnauthenticatedPlClient,
14193
+ zc as UnrecoverablePlError,
14194
+ yf as addRTypeToMetadata,
14195
+ af as bigintToResourceId,
14196
+ sf as checkLocalityOfResourceId,
14197
+ cr as createGlobalResourceId,
14198
+ Ni as createLocalResourceId,
14199
+ wf as defaultPlClient,
14187
14200
  Rn as ensureResourceIdNotNull,
14188
- ff as expirationFromAuthInformation,
14189
- Jn as extractBasicResourceData,
14190
- Ni as extractTxId,
14201
+ pf as expirationFromAuthInformation,
14202
+ sr as extractBasicResourceData,
14203
+ _i as extractTxId,
14191
14204
  xn as field,
14192
14205
  zn as getField,
14193
14206
  X as inferAuthRefreshTime,
14194
- Yu as isAnyResourceId,
14195
- _i as isConnectionProblem,
14196
- af as isField,
14197
- xi as isFieldRef,
14198
- O as isLocalResourceId,
14199
- $i as isNotFoundError,
14200
- S as isNotNullResourceId,
14201
- U as isNullResourceId,
14202
- eu as isResource,
14207
+ Xu as isAnyResourceId,
14208
+ Li as isConnectionProblem,
14209
+ cf as isField,
14210
+ Wi as isFieldRef,
14211
+ x as isLocalResourceId,
14212
+ Ui as isNotFoundError,
14213
+ C as isNotNullResourceId,
14214
+ B as isNullResourceId,
14215
+ nu as isResource,
14216
+ uf as isResourceId,
14203
14217
  M as isResourceRef,
14204
14218
  Hn as isRootResourceId,
14205
- Ai as isTimeoutOrCancelError,
14206
- Li as isUnauthenticated,
14207
- ef as jsonToData,
14219
+ Bi as isTimeoutOrCancelError,
14220
+ Ai as isUnauthenticated,
14221
+ nf as jsonToData,
14208
14222
  ye as plAddressToConfig,
14209
- yf as poll,
14210
- tf as resDataToJson,
14211
- rf as resourceIdFromString,
14223
+ gf as poll,
14224
+ rf as resDataToJson,
14225
+ of as resourceIdFromString,
14212
14226
  we as resourceIdToString,
14213
- Zu as resourceType,
14214
- Xu as resourceTypeToString,
14215
- Qu as resourceTypesEqual,
14216
- Jc as rethrowMeaningfulError,
14217
- of as stringifyWithResourceId,
14218
- Mc as throwPlNotFoundError,
14227
+ Qu as resourceType,
14228
+ ef as resourceTypeToString,
14229
+ tf as resourceTypesEqual,
14230
+ Hc as rethrowMeaningfulError,
14231
+ lf as stringifyWithResourceId,
14232
+ Jc as throwPlNotFoundError,
14219
14233
  A as toFieldId,
14220
- lf as toGlobalFieldId,
14221
- tu as toGlobalResourceId,
14234
+ ff as toGlobalFieldId,
14235
+ iu as toGlobalResourceId,
14222
14236
  _ as toResourceId,
14223
- Bu as tryGetFileConfig,
14224
- pf as valErr
14237
+ Uu as tryGetFileConfig,
14238
+ mf as valErr
14225
14239
  };
14226
14240
  //# sourceMappingURL=index.mjs.map